/* ==========================================================================
   SPAWNPOINT DAILY — OPTION A: PLAYSTATION / EPIC STOREFRONT + FLOATING GLASS DOCK
   Minimal Top Bar · Bespoke SVG Emblem Cards · Floating App Taskbar · Dark & Light Mode
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg: #101216;
  --surface: #181B22;
  --surface-hover: #222631;
  --surface-glass: rgba(16, 18, 22, 0.88);
  --dock-bg: rgba(22, 26, 34, 0.86);
  --dock-border: rgba(255, 255, 255, 0.13);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F5F7FA;
  --muted: #9CA3AF;
  --cta-bg: #FFFFFF;
  --cta-text: #101216;
  --accent-blue: #2563EB;
  --accent-green: #16A34A;
  --accent-green-ink: #4ADE80;
  --accent-gold: #E5B95C;
  --pill-bg: rgba(255, 255, 255, 0.08);
  --emblem-bg: rgba(255, 255, 255, 0.045);
  --shadow-stage: 0 24px 60px -24px rgba(0, 0, 0, 0.78);
  --shadow-dock: 0 24px 56px rgba(0, 0, 0, 0.76);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-hover: #EFEFF4;
  --surface-glass: rgba(246, 247, 249, 0.90);
  --dock-bg: rgba(255, 255, 255, 0.90);
  --dock-border: rgba(17, 19, 24, 0.12);
  --border: rgba(16, 18, 22, 0.08);
  --border-strong: rgba(16, 18, 22, 0.16);
  --text: #111318;
  --muted: #5B6370;
  --cta-bg: #111318;
  --cta-text: #FFFFFF;
  --accent-blue: #1D4ED8;
  --accent-green: #15803D;
  --accent-green-ink: #15803D;
  --accent-gold: #B45309;
  --pill-bg: rgba(17, 19, 24, 0.06);
  --emblem-bg: rgba(17, 19, 24, 0.045);
  --shadow-stage: 0 18px 42px -22px rgba(17, 19, 24, 0.22);
  --shadow-dock: 0 18px 44px rgba(17, 19, 24, 0.18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: clip;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 180ms ease, color 180ms ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

:is(a, button):focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Ultra-Minimal Topbar (Navigation moved cleanly to Floating Bottom Dock!) */
.store-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.store-header-inner {
  max-width: 1320px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand-lockup { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--border-strong);
}
.brand-name { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-pill {
  padding: 8px 14px; border-radius: 999px;
  background: var(--pill-bg); color: var(--text);
  font-size: 0.78rem; font-weight: 700; white-space: nowrap;
  transition: background-color 150ms ease;
}
.icon-pill:hover { background: var(--surface-hover); }
.icon-pill.muted { color: var(--muted); }

/* Main Storefront Container (extra bottom space so Floating Dock never obscures content) */
.store-main {
  max-width: 1320px; margin: 0 auto; padding: 24px 28px 120px;
  display: flex; flex-direction: column; gap: 38px;
}

.view-panel[hidden] { display: none !important; }

/* Signature Split Storefront Hero (Epic Games Store / PlayStation Store) */
.hero-split {
  display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px;
}
.hero-stage {
  position: relative; min-height: 430px; border-radius: 18px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-stage);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-stage-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  transition: transform 420ms cubic-bezier(0.2, 0, 0, 1);
}
.hero-stage:hover .hero-stage-img { transform: scale(1.025); }
.hero-stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 18, 22, 0.08) 28%, rgba(16, 18, 22, 0.65) 66%, rgba(16, 18, 22, 0.96) 100%);
}
.hero-stage-body {
  position: relative; z-index: 2; padding: 30px 34px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  color: #FFFFFF;
}
.hero-eyebrow {
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #E5B95C; margin-bottom: 8px;
}
.hero-title {
  font-size: clamp(1.6rem, 2.7vw, 2.35rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.08; color: #FFFFFF; max-width: 620px;
}
.hero-desc {
  font-size: 0.9rem; color: rgba(245, 247, 250, 0.82); margin-top: 10px; max-width: 540px;
}
.hero-cta-group { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-primary {
  padding: 13px 24px; border-radius: 10px;
  background: #FFFFFF; color: #101216;
  font-size: 0.88rem; font-weight: 800; white-space: nowrap;
  transition: opacity 150ms ease, transform 150ms ease;
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }

/* Right Spotlight Queue */
.hero-queue { display: flex; flex-direction: column; gap: 10px; }
.queue-item {
  flex: 1; display: flex; align-items: center; gap: 13px;
  padding: 11px 13px; border-radius: 14px; text-align: left;
  background: var(--surface);
  transition: background-color 160ms ease;
}
.queue-item:hover { background: var(--surface-hover); }
.queue-item.active { background: var(--surface-hover); box-shadow: inset 3px 0 0 var(--text); }
.queue-thumb {
  width: 56px; height: 56px; border-radius: 9px; object-fit: cover; flex-shrink: 0;
  background: var(--bg);
}
.queue-title {
  font-size: 0.85rem; font-weight: 700; line-height: 1.25; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.queue-sub { font-size: 0.74rem; color: var(--muted); margin-top: 3px; font-weight: 600; }
.queue-sub.free { color: var(--accent-green-ink); }

/* Storefront Section Shelves */
.shelf { display: flex; flex-direction: column; gap: 16px; }
.shelf-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
}
.shelf-title { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.025em; }
.shelf-sub { font-size: 0.82rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.shelf-link { font-size: 0.84rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.shelf-link:hover { color: var(--text); }

/* E-Commerce Product Grids */
.product-grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.product-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.product-card {
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 180ms cubic-bezier(0.2, 0, 0, 1);
}
.product-card:hover { transform: translateY(-4px); }
.product-art {
  position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px;
  overflow: hidden; background: var(--surface);
}
.product-art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 320ms cubic-bezier(0.2, 0, 0, 1);
}
.product-card:hover .product-art img { transform: scale(1.04); }
.art-tag {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(16, 18, 22, 0.86); color: #FFFFFF;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.art-tag.low { background: #16A34A; color: #FFFFFF; }
.product-meta-top {
  font-size: 0.7rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.product-name {
  font-size: 0.94rem; font-weight: 700; line-height: 1.28; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-desc {
  font-size: 0.8rem; color: var(--muted); line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.badge-disc {
  padding: 3px 7px; border-radius: 5px;
  background: var(--accent-blue); color: #FFFFFF;
  font-size: 0.72rem; font-weight: 800;
}
.badge-disc.free { background: var(--accent-green); }
.price-old { font-size: 0.8rem; color: var(--muted); text-decoration: line-through; }
.price-now { font-size: 0.88rem; font-weight: 800; color: var(--text); }
.price-now.free { color: var(--accent-green-ink); }

/* ==================== OPTION A: BESPOKE SVG EMBLEM DEAL & HARDWARE CARDS ==================== */
.emblem-grid-4 {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.emblem-grid-2 {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.emblem-card {
  padding: 20px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  transition: background-color 160ms ease, transform 180ms cubic-bezier(0.2, 0, 0, 1), border-color 160ms ease;
}
.emblem-card:hover {
  background: var(--surface-hover); transform: translateY(-3px); border-color: var(--border-strong);
}
.emblem-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.emblem-box {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--emblem-bg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.emblem-arrow {
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--pill-bg); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 800; flex-shrink: 0;
  transition: background-color 150ms ease, color 150ms ease;
}
.emblem-card:hover .emblem-arrow { background: var(--cta-bg); color: var(--cta-text); }
.emblem-title { font-size: 0.98rem; font-weight: 800; line-height: 1.25; color: var(--text); }
.emblem-sub { font-size: 0.8rem; color: var(--muted); margin-top: 5px; line-height: 1.42; }
.emblem-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.btn-code {
  padding: 7px 12px; border-radius: 8px;
  background: var(--pill-bg); color: var(--text);
  font-size: 0.76rem; font-weight: 700; white-space: nowrap;
}
.btn-code:hover { background: var(--cta-bg); color: var(--cta-text); }

/* ==================== OPTION A: FLOATING FROSTED-GLASS BOTTOM APP DOCK ==================== */
.dock-wrap {
  position: fixed; left: 0; right: 0; bottom: 18px; z-index: 60;
  display: flex; justify-content: center; padding: 0 14px;
  pointer-events: none;
}
.floating-dock {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 9px; border-radius: 22px;
  background: var(--dock-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--dock-border);
  box-shadow: var(--shadow-dock);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.floating-dock::-webkit-scrollbar { display: none; }
.dock-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; border-radius: 15px;
  font-size: 0.82rem; font-weight: 700; color: var(--muted);
  white-space: nowrap; flex-shrink: 0;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.dock-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.dock-btn:hover { color: var(--text); background: var(--pill-bg); }
.dock-btn.active { background: var(--cta-bg); color: var(--cta-text); }

/* Footer */
.store-footer {
  max-width: 1320px; margin: 0 auto; padding: 24px 28px 118px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 0.8rem; color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-chip {
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: 0.78rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}
.footer-chip:hover { background: var(--surface-hover); }

/* Floating Toast */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 80;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--cta-bg); color: var(--cta-text);
  padding: 11px 20px; border-radius: 999px;
  font-size: 0.84rem; font-weight: 700;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   MOBILE /go STOREFRONT BIO APP + FLOATING DOCK + SVG EMBLEM ROWS
   ========================================================================== */
.go-shell {
  width: 100%; max-width: 480px; margin: 0 auto; padding: 18px 16px 112px;
  display: flex; flex-direction: column; gap: 18px;
}
.go-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.go-hero-card {
  position: relative; width: 100%; min-height: 290px; border-radius: 20px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-stage);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.go-hero-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.go-hero-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 18, 22, 0.05) 26%, rgba(16, 18, 22, 0.94) 100%);
}
.go-hero-content { position: relative; z-index: 2; padding: 20px; color: #FFFFFF; }
.go-hero-cta {
  margin-top: 14px; display: block; width: 100%; padding: 12px 16px; border-radius: 10px;
  background: #FFFFFF; color: #101216; text-align: center; font-size: 0.88rem; font-weight: 800;
}
.go-sec-title { font-size: 0.96rem; font-weight: 800; letter-spacing: -0.015em; }
.go-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.go-stack { display: flex; flex-direction: column; gap: 10px; }
.go-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px; border-radius: 15px; background: var(--surface);
  border: 1px solid var(--border);
  transition: background-color 150ms ease;
}
.go-row:hover { background: var(--surface-hover); }
.go-row-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.go-mini-emblem {
  width: 44px; height: 44px; border-radius: 12px; background: var(--emblem-bg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .product-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid-4, .emblem-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-queue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-header-inner { padding: 12px 16px; }
  .store-main { padding: 18px 16px 110px; gap: 28px; }
  .product-grid-3, .emblem-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .product-grid-5, .product-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .emblem-grid-4 { grid-template-columns: 1fr; }
  .hero-stage { min-height: 330px; }
  .hero-stage-body { flex-direction: column; align-items: flex-start; padding: 20px; }
  .hero-queue { grid-template-columns: 1fr; }
  .mobile-hide { display: none; }
  .dock-btn { padding: 9px 11px; gap: 6px; font-size: 0.74rem; }
  .dock-btn span { display: none; }
  .dock-btn.active span { display: inline; }
}
