/* ─── rynko.it — design tokens + base ──────────────────────────────── */

:root {
  /* Dark mode (default) */
  --bg:        oklch(0.135 0.025 248);
  --bg-2:      oklch(0.165 0.03  248);
  --surface:   oklch(0.195 0.032 248);
  --surface-2: oklch(0.225 0.034 248);
  --border:    oklch(0.30  0.028 248);
  --border-soft: oklch(0.25 0.025 248);
  --text:      oklch(0.96  0.006 248);
  --text-2:    oklch(0.80  0.012 248);
  --muted:     oklch(0.62  0.018 248);
  --faint:     oklch(0.45  0.022 248);

  --accent:    oklch(0.78  0.135 242);
  --accent-2:  oklch(0.62  0.17  245);
  --accent-glow: oklch(0.78 0.135 242 / 0.35);

  --pos:       oklch(0.80  0.18  152);
  --pos-2:     oklch(0.70  0.20  152);
  --neg:       oklch(0.70  0.20  25);
  --warn:      oklch(0.82  0.15  85);

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  --shadow-1: 0 1px 0 rgb(255 255 255 / 0.03) inset, 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-2: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 12px 40px rgb(0 0 0 / 0.45);

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-sans:    "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --row-h: 44px;
}

html[data-theme="light"] {
  --bg:        oklch(0.985 0.004 248);
  --bg-2:      oklch(0.965 0.008 248);
  --surface:   oklch(1 0 0);
  --surface-2: oklch(0.97  0.01  248);
  --border:    oklch(0.88  0.012 248);
  --border-soft: oklch(0.93 0.008 248);
  --text:      oklch(0.16  0.025 248);
  --text-2:    oklch(0.28  0.025 248);
  --muted:     oklch(0.48  0.02  248);
  --faint:     oklch(0.65  0.018 248);

  --accent:    oklch(0.48  0.20  245);
  --accent-2:  oklch(0.40  0.22  248);
  --accent-glow: oklch(0.48 0.20 245 / 0.18);

  --pos:       oklch(0.50  0.20  152);
  --pos-2:     oklch(0.42  0.22  152);
  --neg:       oklch(0.55  0.22  25);
  --warn:      oklch(0.60  0.20  85);

  --shadow-1: 0 1px 2px rgb(20 30 60 / 0.05);
  --shadow-2: 0 24px 60px rgb(20 30 60 / 0.08), 0 1px 2px rgb(20 30 60 / 0.04);
}

html[data-density="compact"] { --row-h: 36px; }
html[data-density="comfy"]   { --row-h: 56px; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Subtle starfield in dark mode */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgb(255 255 255 / 0.5), transparent 60%),
    radial-gradient(1px 1px at 28% 72%, rgb(255 255 255 / 0.4), transparent 60%),
    radial-gradient(1px 1px at 53% 22%, rgb(255 255 255 / 0.45), transparent 60%),
    radial-gradient(1px 1px at 68% 58%, rgb(255 255 255 / 0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 81% 12%, rgb(255 255 255 / 0.55), transparent 60%),
    radial-gradient(1px 1px at 92% 84%, rgb(255 255 255 / 0.4), transparent 60%),
    radial-gradient(1px 1px at 38% 92%, rgb(255 255 255 / 0.35), transparent 60%),
    radial-gradient(1px 1px at 8% 64%, rgb(255 255 255 / 0.4), transparent 60%),
    radial-gradient(1px 1px at 47% 47%, rgb(255 255 255 / 0.3), transparent 60%),
    radial-gradient(1.2px 1.2px at 73% 36%, rgb(255 255 255 / 0.5), transparent 60%);
  opacity: 0.65; transition: opacity .3s;
}
html[data-theme="light"] body::before { opacity: 0; }

.app { position: relative; z-index: 1; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

/* ─── Type ──────────────────────────────────────────────────────── */

.serif { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--font-mono); font-feature-settings: "tnum" 1, "zero" 1; }
.uppercase-label {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; color: var(--muted);
}
.h-display {
  font-family: var(--font-display); font-size: clamp(48px, 6vw, 86px);
  line-height: 0.95; letter-spacing: -0.025em; font-weight: 400; margin: 0;
}
.h-display em { font-style: italic; color: var(--accent); }
.h-section {
  font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05; letter-spacing: -0.02em; margin: 0; text-wrap: balance;
}
.section-sub { color: var(--muted); margin: 8px 0 0; font-size: 13px; }

/* ─── Header ────────────────────────────────────────────────────── */

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.hdr-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 50%;
  background-color: #050816;
  position: relative;
  box-shadow: 0 0 0 1px var(--border), 0 0 14px var(--accent-glow);
  flex-shrink: 0;
}
.brand-words { display: flex; align-items: baseline; }
.brand-name {
  font-family: var(--font-display); font-size: 26px;
  letter-spacing: -0.02em; line-height: 1;
}
.brand-tld {
  color: var(--muted); font-size: 12px; font-family: var(--font-mono);
  letter-spacing: 0; margin-left: 2px;
}

.nav { display: flex; gap: 2px; margin-left: 6px; }
.nav-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--text-2);
  cursor: pointer; transition: background .12s, color .12s;
  white-space: nowrap;
}
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.active { color: var(--text); background: var(--surface); }
.nav-item svg { width: 14px; height: 14px; }
.nav-item .badge {
  margin-left: 4px; font-family: var(--font-mono); font-size: 10px;
  color: var(--accent); padding: 1px 5px;
  background: var(--accent-glow); border-radius: 99px;
}

.hdr-spacer { flex: 1; }

.search { position: relative; width: 280px; max-width: 28vw; }
.search input {
  width: 100%; height: 36px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 0 50px 0 34px;
  color: var(--text); font: inherit; font-size: 13.5px;
  outline: none; transition: border-color .12s, background .12s;
}
.search input:focus { border-color: var(--accent); background: var(--bg-2); }
.search input::placeholder { color: var(--faint); }
.search > svg {
  position: absolute; left: 11px; top: 50%;
  transform: translateY(-50%); width: 14px; height: 14px; color: var(--muted);
}
.search-kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 10px; color: var(--faint);
  padding: 2px 5px; border: 1px solid var(--border-soft); border-radius: 4px;
  white-space: nowrap; pointer-events: none;
}

.hdr-tools { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: transparent; border: 1px solid transparent;
  color: var(--text-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s, border-color .12s;
}
.icon-btn:hover { background: var(--surface); color: var(--text); border-color: var(--border-soft); }
.icon-btn svg { width: 16px; height: 16px; }

.btn-ghost {
  height: 36px; padding: 0 14px; border-radius: var(--radius);
  background: transparent; border: 1px solid transparent;
  color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.btn-ghost:hover { color: var(--text); background: var(--surface); border-color: var(--border-soft); }

.btn-solid {
  height: 36px; padding: 0 14px; border-radius: var(--radius);
  background: var(--text); color: var(--bg); border: 0;
  font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: opacity .12s;
}
.btn-solid:hover { opacity: 0.86; }
.btn-solid.lg { height: 44px; padding: 0 22px; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.btn-solid svg { width: 14px; height: 14px; }

.lang-toggle {
  display: flex; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 2px; height: 36px; align-items: center;
}
.lang-toggle button {
  appearance: none; border: 0; background: transparent;
  color: var(--muted); font: inherit; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; padding: 0 8px;
  height: 28px; border-radius: 5px; cursor: pointer;
}
.lang-toggle button.on { background: var(--bg); color: var(--text); box-shadow: var(--shadow-1); }

/* ─── Live ticker ───────────────────────────────────────────────── */

.ticker {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-2);
  overflow: hidden; position: relative;
}
.ticker-label {
  position: absolute; left: 0; top: 0; bottom: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px; background: var(--bg); z-index: 2;
  border-right: 1px solid var(--border-soft);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pos); box-shadow: 0 0 0 0 var(--pos);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--pos) 60%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.ticker-track {
  display: flex; gap: 28px;
  padding: 9px 16px 9px 140px;
  white-space: nowrap;
  animation: marquee 90s linear infinite;
  width: max-content; font-size: 12.5px;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tick { display: inline-flex; gap: 8px; align-items: center; }
.tick-plat { display: inline-flex; align-items: center; }
.tick-name { color: var(--text-2); }
.tick-price { font-family: var(--font-mono); color: var(--text); }
.tick-pct { font-family: var(--font-mono); font-size: 11px; }
.tick-pct.down { color: var(--pos); }

/* ─── Hero ──────────────────────────────────────────────────────── */

.hero { padding: 64px 0 36px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 56px; align-items: center;
}
.hero-text { max-width: 600px; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.hero-eyebrow .live-dot { width: 6px; height: 6px; }
.eyebrow-rule { width: 56px; height: 1px; background: var(--border); }
.hero-sub {
  max-width: 50ch; color: var(--text-2); fontSize: 16; line-height: 1.55;
  margin-top: 22px; font-size: 16px;
}

.hero-search { margin-top: 32px; position: relative; max-width: 520px; }
.hero-search input {
  width: 100%; height: 52px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0 60px 0 50px;
  color: var(--text); font: inherit; font-size: 15px; outline: none;
}
.hero-search input:focus { border-color: var(--accent); }
.hero-search input::placeholder { color: var(--faint); }
.hero-search .search-i {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted);
  display: inline-flex; pointer-events: none;
}
.hero-search .search-i svg { width: 100%; height: 100%; }
.hero-search .kbd-grp {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  padding: 4px 8px; border: 1px solid var(--border-soft); border-radius: 5px;
}

.hero-meta { display: flex; gap: 22px; margin-top: 32px; flex-wrap: wrap; }
.kpi {
  display: flex; flex-direction: column; gap: 4px;
  padding-right: 22px; border-right: 1px solid var(--border-soft);
}
.kpi:last-child { border-right: 0; }
.kpi-v { font-family: var(--font-mono); font-size: 22px; color: var(--text); }
.kpi-l { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ─── Hero board (the right-side widget) ───────────────────────── */

.hero-board { display: flex; justify-content: flex-end; }
.board {
  width: 100%; max-width: 560px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  position: relative;
}
.board::before {
  /* moonlight glow accent */
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.board-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border-soft);
  background: var(--bg-2);
  position: relative; z-index: 1;
}
.board-hd-l { display: flex; align-items: center; gap: 12px; }
.board-mark {
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  background: #050816; box-shadow: 0 0 0 1px var(--border), 0 0 16px var(--accent-glow);
  display: inline-flex;
}
.board-mark img { width: 56px; height: 56px; margin: -8px -13px; object-fit: cover; }
.board-title {
  font-family: var(--font-display); font-size: 18px;
  letter-spacing: -0.01em; line-height: 1; margin-bottom: 4px;
}
.board-sub { font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.board-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.16em; color: var(--pos);
  padding: 3px 8px; border-radius: 99px;
  background: color-mix(in oklab, var(--pos) 12%, transparent);
}
.board-live .live-dot { width: 6px; height: 6px; }
.board-rows { padding: 6px 0; }
.board-row {
  display: grid;
  grid-template-columns: 22px 1fr 22px 90px 64px;
  align-items: center; gap: 12px;
  padding: 9px 18px;
  font-size: 13px;
}
.board-row:nth-child(odd) { background: color-mix(in oklab, var(--bg-2) 35%, transparent); }
.board-plat, .board-store {
  display: inline-flex; align-items: center; justify-content: center;
}
.board-name { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-price { font-family: var(--font-mono); color: var(--text); text-align: right; font-size: 13.5px; }
.board-cut { font-family: var(--font-mono); color: var(--pos); text-align: right; font-size: 12px; }
.board-ft {
  display: flex; justify-content: space-between;
  padding: 10px 18px; border-top: 1px solid var(--border-soft);
  font-size: 10.5px; color: var(--muted); background: var(--bg-2);
}

/* ─── Platform selector bar (homepage) ─────────────────────────── */

.platform-bar-wrap {
  border-bottom: 1px solid var(--border-soft);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: sticky; top: 64px; z-index: 30;
  margin-top: 24px;
}
.platform-bar { display: flex; align-items: center; gap: 20px; padding: 14px 32px; flex-wrap: wrap; }
.platform-bar-label { flex-shrink: 0; }
.platform-pills { display: flex; gap: 8px; flex-wrap: wrap; }

.plat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 99px; color: var(--text-2);
  font: inherit; font-size: 13px; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.plat-pill:hover { border-color: var(--border); color: var(--text); }
.plat-pill.on { background: var(--bg); color: var(--text); border-color: var(--text); }
.plat-pill-icon { display: inline-flex; }
.plat-pill-count {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); margin-left: 4px;
  padding: 1px 7px; background: var(--bg-2); border-radius: 99px;
}
.plat-pill.on .plat-pill-count { background: var(--surface); color: var(--text-2); }
.plat-pill.sm { height: 30px; padding: 0 10px; font-size: 12px; }

/* ─── Section header ────────────────────────────────────────────── */

.section { padding: 56px 0; position: relative; }
.section-hd {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 32px; gap: 24px;
}
.lbl-line { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lbl-line::after { content: ""; width: 60px; height: 1px; background: var(--border); }
.section-hd .link {
  font-size: 12.5px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
}
.section-hd .link:hover { color: var(--accent); }

/* ─── Deal grid ─────────────────────────────────────────────────── */

.deals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.deal {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.deal:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-2); }
.deal-cover {
  aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--surface-2) 0 8px, transparent 8px 16px),
    var(--bg-2);
  display: flex; align-items: center; justify-content: center;
}
.deal-cover-label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 8px; background: color-mix(in oklab, var(--bg) 60%, transparent);
  border-radius: 4px;
}
.deal-pct {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--pos); background: color-mix(in oklab, var(--bg) 88%, transparent);
  border: 1px solid color-mix(in oklab, var(--pos) 30%, transparent);
  padding: 3px 7px; border-radius: 4px;
}
.deal-watch {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border: 1px solid var(--border-soft); color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .1s, color .1s, border-color .1s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.deal-watch:hover { color: var(--accent); border-color: var(--accent); }
.deal-watch.on { color: oklch(0.65 0.22 25); border-color: oklch(0.65 0.22 25); background: color-mix(in oklab, oklch(0.65 0.22 25) 18%, transparent); }
.deal-watch svg { width: 14px; height: 14px; }

.deal-cover-plats {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  display: flex; gap: 4px;
}
.deal-plat-badge {
  width: 24px; height: 24px; border-radius: 5px;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 30%, var(--border-soft));
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.deal-plat-badge.active {
  border-color: var(--accent); background: var(--accent-glow);
}

.deal-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.deal-title {
  font-size: 14.5px; color: var(--text); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.deal-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.deal-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.deal-price-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  padding-top: 10px; border-top: 1px dashed var(--border-soft);
}
.deal-no-price { opacity: 0.72; }
.deal-no-price-label { font-size: 11px; color: var(--muted); }
.deal-price-l { display: flex; flex-direction: column; gap: 2px; }
.deal-price { font-family: var(--font-mono); font-size: 18px; color: var(--text); letter-spacing: -0.01em; }
.deal-price-old { font-family: var(--font-mono); font-size: 12px; color: var(--faint); text-decoration: line-through; }
.deal-store-r { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.deal-store-via { font-size: 10px; color: var(--faint); letter-spacing: 0.04em; text-transform: lowercase; }
.deal-store-line { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-2); }
.deal-store-name { color: var(--text-2); }

/* ─── Biggest drops list ────────────────────────────────────────── */

.drops {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); overflow: hidden;
}
.drop-row {
  display: grid;
  grid-template-columns: 32px 1.4fr 90px 1fr 110px 110px 90px 90px;
  align-items: center; gap: 16px;
  padding: 0 20px; height: var(--row-h);
  border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px; cursor: pointer;
  transition: background .1s;
}
.drop-row:last-child { border-bottom: 0; }
.drop-row.head {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); height: 40px; cursor: default; background: var(--bg-2);
}
.drop-row:not(.head):hover { background: var(--bg-2); }
.drop-rank { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.drop-name { color: var(--text); }
.drop-plat-cell { display: inline-flex; align-items: center; gap: 6px; }
.drop-plat-text { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.04em; }
.drop-store { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.drop-price { font-family: var(--font-mono); color: var(--text); text-align: right; }
.drop-old { font-family: var(--font-mono); color: var(--faint); text-decoration: line-through; text-align: right; font-size: 12px; }
.drop-pct { font-family: var(--font-mono); color: var(--pos); text-align: right; }
.drop-spark { width: 90px; height: 24px; }

/* ─── Wishlist CTA ───────────────────────────────────────────────── */

.wl-cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 56px;
  position: relative; overflow: hidden;
}
.wl-cta::before {
  content: ""; position: absolute; right: -100px; bottom: -100px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.wl-cta-text { position: relative; z-index: 1; }
.wl-cta-text p { color: var(--text-2); font-size: 15px; line-height: 1.55; max-width: 44ch; margin: 16px 0 0; }
.wl-cta-actions { display: flex; align-items: center; gap: 16px; margin-top: 28px; }

.wl-card {
  position: relative; z-index: 1;
  background: var(--bg); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 14px;
  font-size: 13px;
}
.wl-card-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 1px solid var(--border-soft);
  color: var(--muted); font-size: 11px;
}
.wl-card-hd svg { width: 12px; height: 12px; color: oklch(0.65 0.22 25); }
.wl-row {
  display: grid; grid-template-columns: 18px 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.wl-row:last-child { border-bottom: 0; }
.wl-plat { display: inline-flex; align-items: center; }
.wl-name { color: var(--text-2); font-size: 12.5px; }
.wl-prices { font-size: 11px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.wl-current { color: var(--text-2); }
.wl-arrow { color: var(--faint); }
.wl-target { color: var(--muted); }
.wl-status {
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 3px; font-family: var(--font-mono);
}
.wl-status.hit  { color: var(--pos); background: color-mix(in oklab, var(--pos) 16%, transparent); }
.wl-status.near { color: var(--warn); background: color-mix(in oklab, var(--warn) 16%, transparent); }
.wl-status.wait { color: var(--muted); background: var(--surface); }

/* ─── Store chips ────────────────────────────────────────────────── */

.stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.store-chip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border: 1px solid var(--border-soft);
  border-radius: var(--radius); background: var(--surface);
  cursor: pointer; transition: border-color .12s;
  gap: 12px;
}
.store-chip:hover { border-color: var(--accent); }
.store-chip-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.store-chip-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.store-chip-name { font-size: 13.5px; color: var(--text); white-space: nowrap; }
.store-chip-type {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.store-chip-platforms { display: flex; gap: 4px; flex-shrink: 0; }
.store-chip-plat {
  width: 20px; height: 20px; border-radius: 4px;
  background: var(--bg-2); border: 1px solid var(--border-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
}

/* ─── Footer ────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border-soft); margin-top: 80px;
  padding: 56px 0 40px; background: var(--bg-2);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px; }
.footer-col h4 {
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px; color: var(--text-2);
}
.footer-col li { cursor: pointer; }
.footer-col li:hover { color: var(--text); }
.footer-tag {
  font-size: 13px; color: var(--muted); max-width: 36ch;
  line-height: 1.5; margin: 12px 0 16px;
}
.footer-platforms { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-plat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 11.5px; color: var(--muted); font-family: var(--font-mono);
}
.footer-ral {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  opacity: 0.28;
  transition: opacity 0.3s;
}
.footer-ral:hover { opacity: 0.7; }
.footer-ral-wolf {
  width: 36px; height: auto;
  filter: grayscale(1);
  image-rendering: pixelated;
}
.footer-ral-text {
  font-size: 10.5px; color: var(--muted);
  font-family: var(--font-mono); letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Game detail ──────────────────────────────────────────────── */

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  padding: 24px 0 0; font-size: 12.5px; color: var(--muted);
  font-family: var(--font-mono);
}
.breadcrumb a { cursor: pointer; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--faint); }

.game-hero {
  display: grid; grid-template-columns: 360px 1fr;
  gap: 40px; padding: 32px 0 40px; align-items: start;
}
.game-cover {
  aspect-ratio: 3 / 4;
  background:
    repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--surface-2) 10px 20px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
}
.game-cover-lbl {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); background: color-mix(in oklab, var(--bg) 60%, transparent);
  padding: 4px 8px; border-radius: 4px;
}
.game-cover-title {
  font-family: var(--font-display); font-size: 28px;
  color: var(--text-2); text-align: center; padding: 0 24px; line-height: 1.1;
}

.game-info { display: flex; flex-direction: column; gap: 18px; }
.game-title {
  font-family: var(--font-display); font-size: 56px;
  line-height: 1; letter-spacing: -0.025em; margin: 0;
}
.game-pubs {
  display: flex; gap: 24px; font-size: 12.5px;
  color: var(--muted); flex-wrap: wrap;
}
.game-pubs strong { color: var(--text-2); font-weight: 500; }

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11.5px; padding: 4px 10px;
  border: 1px solid var(--border-soft); border-radius: 999px; color: var(--text-2);
}

/* ─── Platform tabs (game detail) ──────────────────────────────── */

.plat-tabs-wrap {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 0; border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.plat-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.plat-tab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); cursor: pointer;
  font: inherit; color: var(--text-2);
  transition: background .12s, border-color .12s, color .12s, transform .12s;
}
.plat-tab:hover { color: var(--text); border-color: var(--border); transform: translateY(-1px); }
.plat-tab.on {
  background: var(--bg); border-color: var(--accent);
  color: var(--text); box-shadow: 0 0 0 1px var(--accent);
}
.plat-tab-label { font-size: 14px; font-weight: 500; }
.plat-tab-price {
  font-size: 11.5px; color: var(--muted);
  padding-left: 8px; border-left: 1px solid var(--border-soft);
}

/* ─── KPI stat row ─────────────────────────────────────────────── */

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.stat-card {
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 4px;
}
.stat-card .l {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.stat-card .v { font-size: 22px; color: var(--text); letter-spacing: -0.015em; }
.stat-card .v.pos { color: var(--pos); }
.stat-card .sub { font-size: 11.5px; color: var(--faint); font-family: var(--font-mono); }

.game-actions { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.btn {
  height: 42px; padding: 0 18px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 13.5px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary {
  background: var(--accent); border-color: var(--accent);
  color: oklch(0.08 0.05 248);
}
html[data-theme="light"] .btn.primary { color: white; }
.btn.primary:hover { background: color-mix(in oklab, var(--accent) 80%, white); border-color: var(--accent); }
.btn.on {
  background: color-mix(in oklab, oklch(0.65 0.22 25) 14%, transparent);
  border-color: oklch(0.65 0.22 25); color: oklch(0.65 0.22 25);
}
.btn svg { width: 14px; height: 14px; }

/* ─── Detail grid (filters + table) ─────────────────────────────── */

.detail-grid {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 28px; padding-bottom: 64px;
}

.filters {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 20px;
  position: sticky; top: 132px; align-self: start;
}
.filter-block { padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.filter-block:first-of-type { padding-top: 0; }
.filter-block:last-of-type { border-bottom: 0; padding-bottom: 0; }
.filter-block h5 {
  font-family: var(--font-sans); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 12px; font-weight: 500;
}
.filter-list { display: flex; flex-direction: column; gap: 8px; }
.filter-check {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none;
}
.filter-check:hover { color: var(--text); }
.filter-check .box {
  width: 14px; height: 14px; border: 1px solid var(--border);
  border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.filter-check.on .box { background: var(--accent); border-color: var(--accent); }
.filter-check.on .box svg { color: oklch(0.08 0.05 248); opacity: 1; }
html[data-theme="light"] .filter-check.on .box svg { color: white; }
.filter-check .box svg { width: 10px; height: 10px; opacity: 0; }
.filter-check .count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

.filter-store-l { display: inline-flex; align-items: center; gap: 8px; }

.price-range {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted);
}
.price-range input {
  width: 64px; height: 28px; background: var(--bg-2);
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  font: inherit; font-family: var(--font-mono); font-size: 12px;
  color: var(--text); padding: 0 6px; outline: none;
}
.price-range input:focus { border-color: var(--accent); }

/* ─── Price table ───────────────────────────────────────────────── */

.table-wrap {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); overflow: hidden;
}
.table-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border-soft);
  background: var(--bg-2);
}
.table-hd h3 { font-size: 22px; margin: 0; letter-spacing: -0.02em; font-weight: 400; }
.table-hd .count {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em;
}

.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th {
  text-align: left;
  font-family: var(--font-sans); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  font-weight: 500; padding: 12px 16px;
  background: var(--bg-2); border-bottom: 1px solid var(--border-soft);
  cursor: pointer; user-select: none; white-space: nowrap;
}
.tbl thead th .sort-i {
  display: inline-block; margin-left: 4px;
  font-family: var(--font-mono); color: var(--faint); font-size: 9px;
}
.tbl thead th.sorted { color: var(--text); }
.tbl thead th.sorted .sort-i { color: var(--accent); }
.tbl thead th.num { text-align: right; }

.tbl tbody td {
  padding: 0 16px; border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px; vertical-align: middle; height: var(--row-h);
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .1s; }
.tbl tbody tr:hover { background: var(--bg-2); }
.tbl tbody tr.best td:first-child { box-shadow: inset 3px 0 0 var(--pos); }

.tbl .store-cell { display: flex; align-items: center; gap: 12px; }
.tbl .store-cell-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tbl .store-cell-name { color: var(--text); font-size: 13.5px; }
.tbl .store-cell-type {
  font-family: var(--font-mono); font-size: 9.5px;
  color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
}
.tbl .ed { color: var(--text-2); }
.tbl .ed-sub { font-size: 11px; color: var(--muted); display: block; }
.tbl .region { font-size: 11px; letter-spacing: 0.06em; color: var(--text-2); }
.tbl .num { text-align: right; }
.tbl .price { font-size: 15px; color: var(--text); }
.tbl .price.best { color: var(--pos); }
.tbl .pct { color: var(--pos); font-size: 12.5px; }
.tbl .cash { color: var(--text-2); font-size: 12.5px; }
.tbl .cash.none { color: var(--faint); }
.tbl .best-tag {
  display: inline-block; margin-left: 8px;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.12em; color: var(--pos);
  background: color-mix(in oklab, var(--pos) 14%, transparent);
  padding: 2px 6px; border-radius: 3px; vertical-align: 2px;
}
.tbl .buy-btn {
  height: 30px; padding: 0 12px; background: transparent;
  border: 1px solid var(--border); border-radius: 6px;
  font: inherit; font-size: 12px; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  transition: background .1s, border-color .1s;
}
.tbl .buy-btn:hover { border-color: var(--accent); color: var(--accent); }
.tbl .buy-btn.primary { background: var(--accent); border-color: var(--accent); color: oklch(0.08 0.05 248); }
html[data-theme="light"] .tbl .buy-btn.primary { color: white; }

/* ─── Chart ──────────────────────────────────────────────────────── */

.chart-card {
  margin-top: 28px; background: var(--surface);
  border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 20px 20px 8px;
}
.chart-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.chart-hd h3 { font-size: 22px; margin: 0; letter-spacing: -0.02em; font-weight: 400; }
.chart-range {
  display: flex; gap: 2px; background: var(--bg-2); padding: 2px; border-radius: var(--radius-sm);
}
.chart-range button {
  appearance: none; border: 0; background: transparent;
  font: inherit; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; padding: 4px 10px; border-radius: 4px;
  color: var(--muted); cursor: pointer;
}
.chart-range button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.chart-svg { width: 100%; height: 220px; display: block; }
.chart-x {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--faint); padding: 8px 0 12px;
}

/* ─── Toast ──────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 100; background: var(--surface);
  border: 1px solid var(--accent); color: var(--text);
  font-size: 13px; padding: 12px 18px;
  border-radius: var(--radius); box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: 10px;
  animation: toast-in .25s ease-out;
}
@keyframes toast-in {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to   { transform: translate(-50%, 0);    opacity: 1; }
}
.toast svg { color: var(--accent); width: 14px; height: 14px; }

/* ─── Brand tiles (store/platform logos) ─────────────────────────── */

.brand-tile {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.18);
  overflow: hidden;
}
html[data-theme="light"] .brand-tile {
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.08);
}
.brand-tile img { display: block; }
.brand-tile-initials {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1;
  color: inherit;
}

/* ─── Store mark fallback (legacy class kept for compatibility) ────── */
.store-mark {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 5px; font-family: var(--font-mono); font-size: 10px;
  color: var(--text-2);
}

/* ─── Cover images ─────────────────────────────────────────────────── */

.deal-cover-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.deal-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--bg) 30%, transparent) 0%,
    transparent 30%,
    transparent 60%,
    color-mix(in oklab, var(--bg) 55%, transparent) 100%);
  pointer-events: none;
}

.game-cover-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.game-cover {
  background: var(--surface-2);
  padding: 0;
}

/* ─── Subscription badges ────────────────────────────────────────── */

.subs-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.subs-label { white-space: nowrap; flex-shrink: 0; }
.sub-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.sub-badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px;
  border-radius: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  font-family: var(--font-sans);
  opacity: 0.92;
  transition: opacity .12s;
}
.sub-badge:hover { opacity: 1; }

/* ─── Media / Trailer section ────────────────────────────────────── */

.media-section { padding: 16px 0 40px; }

/* Gallery layout: main viewer + vertical thumbnail strip */
.media-gallery {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 10px;
  height: 280px;
}
@media (max-width: 720px) {
  .media-gallery { grid-template-columns: 1fr; height: auto; }
}

.media-main {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-soft);
  position: relative; height: 100%;
}

/* Thumbnail strip */
.media-thumbs {
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.media-thumbs::-webkit-scrollbar { width: 3px; }
.media-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.media-thumb-item {
  position: relative; flex-shrink: 0;
  aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s, opacity .15s;
  background: var(--surface-2);
}
.media-thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb-item:hover { opacity: 0.85; }
.media-thumb-item.active { border-color: var(--accent); }

.media-thumb-play-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0 0 0 / 0.45); color: #fff;
  pointer-events: none;
}

/* Shared: used inside both .media-main and old full-width trailer */
.media-iframe { width: 100%; height: 100%; border: none; display: block; }
.media-thumb-cover {
  width: 100%; height: 100%; position: relative;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.media-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    color-mix(in oklab, var(--bg) 15%, transparent) 0%,
    color-mix(in oklab, var(--bg) 45%, transparent) 100%);
  transition: background .2s;
}
.media-thumb-cover:hover .media-thumb-overlay {
  background: color-mix(in oklab, var(--bg) 28%, transparent);
}
.media-play-btn {
  position: absolute;
  width: 52px; height: 52px; border-radius: 50%;
  background: color-mix(in oklab, var(--bg) 68%, transparent);
  border: 1px solid color-mix(in oklab, var(--text) 18%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: background .15s, transform .15s, border-color .15s;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.4);
}
.media-thumb-cover:hover .media-play-btn {
  background: var(--accent); border-color: var(--accent);
  color: oklch(0.08 0.05 248); transform: scale(1.07);
}
html[data-theme="light"] .media-thumb-cover:hover .media-play-btn { color: white; }
.media-thumb-label {
  position: absolute; bottom: 10px; right: 12px;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in oklab, var(--bg) 60%, transparent);
  padding: 3px 8px; border-radius: 4px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* ─── DLC section ────────────────────────────────────────────────── */

.dlc-section { padding: 0 0 40px; }

/* Vertical strip of DLC rows */
.dlc-strip { display: flex; flex-direction: column; gap: 10px; }

.dlc-row-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .15s;
}
.dlc-row-card:hover { border-color: var(--accent); }

.dlc-row-cover {
  aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background: var(--surface-2);
  /* Make cover fill height by matching row-card height */
  align-self: stretch;
  aspect-ratio: unset;
  min-height: 100%;
}
.dlc-row-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dlc-cover-placeholder {
  width: 100%; height: 100%; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, transparent 8px 16px);
}

.dlc-row-info { padding: 14px 18px; min-width: 0; }

.dlc-row-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.dlc-title { font-size: 14px; color: var(--text); font-weight: 500; }
.dlc-msrp { font-size: 11px; color: var(--faint); text-decoration: line-through; flex-shrink: 0; }

.dlc-price-list { display: flex; flex-direction: column; gap: 0; }
.dlc-price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid var(--border-soft);
  gap: 10px;
}
.dlc-price-row:last-child { border-bottom: 0; padding-bottom: 0; }
.dlc-price-row.best {
  background: color-mix(in oklab, var(--pos) 5%, transparent);
  margin: 0 -18px; padding: 7px 18px;
  border-left: 2px solid var(--pos);
}

.dlc-store-l {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-2); min-width: 0;
}
.dlc-store-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlc-best-tag {
  font-size: 9px; letter-spacing: 0.12em;
  color: var(--pos); background: color-mix(in oklab, var(--pos) 14%, transparent);
  padding: 2px 5px; border-radius: 3px; flex-shrink: 0;
}

.dlc-price-r { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.dlc-cut { font-size: 11px; color: var(--pos); }
.dlc-price { font-size: 13.5px; color: var(--text); }
.dlc-price.pos { color: var(--pos); }

/* DLC buy button — themed, NOT the browser default */
.dlc-buy-btn {
  height: 26px; padding: 0 10px;
  background: transparent;
  border: 1px solid var(--border); border-radius: 5px;
  font: inherit; font-size: 11px; color: var(--text-2);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 3px;
  transition: border-color .12s, color .12s, background .12s;
  flex-shrink: 0;
}
.dlc-buy-btn:hover { border-color: var(--accent); color: var(--accent); }
.dlc-buy-btn.primary {
  border-color: var(--pos); color: var(--pos);
}
.dlc-buy-btn.primary:hover {
  background: var(--pos); color: var(--bg);
}

@media (max-width: 600px) {
  .dlc-row-card { grid-template-columns: 1fr; }
  .dlc-row-cover { aspect-ratio: 16/9; min-height: unset; }
}

/* ─── More from developer ────────────────────────────────────────── */

.more-dev-section { padding: 0 0 72px; }

.more-dev-strip {
  display: flex; gap: 16px; overflow-x: auto;
  scrollbar-width: none; padding-bottom: 8px;
}
.more-dev-strip::-webkit-scrollbar { display: none; }

.more-dev-card {
  flex-shrink: 0; width: 280px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.more-dev-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-2);
}

.more-dev-cover {
  aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background: var(--surface-2);
}
.more-dev-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.more-dev-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    transparent 50%,
    color-mix(in oklab, var(--bg) 55%, transparent) 100%);
  pointer-events: none;
}
.more-dev-pct {
  position: absolute; top: 8px; left: 8px;
  font-size: 10.5px; font-weight: 500;
  color: var(--pos); background: color-mix(in oklab, var(--bg) 88%, transparent);
  border: 1px solid color-mix(in oklab, var(--pos) 30%, transparent);
  padding: 2px 6px; border-radius: 4px;
}
.more-dev-sub-dot {
  position: absolute; top: 8px; right: 8px;
  color: #107c10; filter: drop-shadow(0 1px 3px rgb(0 0 0 / 0.5));
}

.more-dev-body { padding: 12px 14px 14px; }

.more-dev-title {
  font-size: 13.5px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.more-dev-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.more-dev-genre { font-size: 11px; color: var(--muted); }
.more-dev-sub-badge {
  font-size: 10.5px; font-weight: 600; font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.more-dev-price-row {
  display: flex; align-items: baseline; gap: 5px;
  border-top: 1px dashed var(--border-soft); padding-top: 8px;
}
.more-dev-from { font-size: 10px; color: var(--faint); letter-spacing: 0.06em; }
.more-dev-price { font-size: 15px; color: var(--pos); letter-spacing: -0.01em; }

/* ─── Coupon chip (price table) ─────────────────────────────────── */

.coupon-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: 6px; cursor: pointer;
  font: inherit; font-size: 11.5px; color: var(--accent);
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.coupon-chip:hover {
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  border-color: var(--accent);
}
.coupon-chip.copied {
  background: color-mix(in oklab, var(--pos) 12%, transparent);
  border-color: color-mix(in oklab, var(--pos) 40%, transparent);
  color: var(--pos);
}
.coupon-pct {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 5px; border-radius: 3px;
  background: color-mix(in oklab, var(--accent) 20%, transparent);
}
.coupon-chip.copied .coupon-pct { background: color-mix(in oklab, var(--pos) 20%, transparent); }
.coupon-code { font-size: 11px; letter-spacing: 0.08em; }
.coupon-copy-icon { display: inline-flex; }
.coupon-copy-icon svg { width: 11px; height: 11px; }

.no-coupon { font-size: 12px; color: var(--faint); }

/* ─── Effective price cell ───────────────────────────────────────── */

.effective-cell { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.effective-price { font-size: 15px; }
.effective-saving {
  font-size: 10px; color: var(--pos);
  opacity: 0.75;
}
.strikethrough-soft {
  font-size: 13px; color: var(--faint);
  text-decoration: line-through;
}

/* ─── Sort effective button ──────────────────────────────────────── */

.sort-eff-btn {
  height: 26px; padding: 0 10px;
  background: transparent; border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); cursor: pointer;
  font: inherit; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  transition: background .1s, border-color .1s, color .1s;
}
.sort-eff-btn:hover { color: var(--text); border-color: var(--border); }
.sort-eff-btn.on {
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border-color: var(--accent); color: var(--accent);
}

/* ─── Vouchers page — hero section ──────────────────────────────── */

.voucher-hero-section {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 32px;
}
.voucher-hero-row {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.voucher-hero-kpis { display: flex; gap: 32px; flex-shrink: 0; }

/* ─── Vouchers filter bar ────────────────────────────────────────── */

.voucher-filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.voucher-filter-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 99px; color: var(--text-2);
  font: inherit; font-size: 13px; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.voucher-filter-pill:hover { border-color: var(--border); color: var(--text); }
.voucher-filter-pill.on {
  background: var(--bg); color: var(--text); border-color: var(--text);
}

/* ─── Voucher card grid ──────────────────────────────────────────── */

.voucher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.voucher-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
  position: relative;
}
.voucher-card:hover { border-color: var(--accent); box-shadow: var(--shadow-2); }
.voucher-card.expiring {
  border-color: color-mix(in oklab, var(--warn) 45%, transparent);
}
.voucher-card.expiring:hover { border-color: var(--warn); }

/* Store header */
.voucher-card-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border-soft);
  background: var(--bg-2);
}
.voucher-store-id { display: flex; align-items: center; gap: 12px; }
.voucher-store-name { font-size: 14px; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.voucher-plats { display: flex; gap: 4px; }
.voucher-plat-icon { display: inline-flex; align-items: center; }

.voucher-discount-pill {
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  color: var(--pos); letter-spacing: -0.02em;
  padding: 6px 14px;
  background: color-mix(in oklab, var(--pos) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--pos) 25%, transparent);
  border-radius: var(--radius);
}

/* Code block — coupon ticket aesthetic */
.voucher-code-block {
  padding: 0 18px 4px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-soft);
}
.voucher-dashes {
  display: flex; align-items: center;
  gap: 8px; padding: 6px 0;
}
.voucher-dash-l, .voucher-dash-r {
  flex: 1; height: 1px;
  border-top: 1px dashed var(--border);
}
.voucher-hole {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border-soft);
}
.voucher-code-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-bottom: 14px;
}
.voucher-code-text {
  font-size: 22px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--text);
}
.voucher-copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--text-2);
  transition: background .1s, border-color .1s, color .1s;
  flex-shrink: 0;
}
.voucher-copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.voucher-copy-btn.copied {
  border-color: var(--pos); color: var(--pos);
  background: color-mix(in oklab, var(--pos) 10%, transparent);
}
.voucher-copy-btn svg { width: 13px; height: 13px; }

/* Note */
.voucher-note {
  font-size: 12.5px; color: var(--muted); padding: 12px 18px 8px;
  line-height: 1.5; flex: 1; margin: 0;
}

/* Footer */
.voucher-card-ft {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 12px;
  margin-top: auto;
}
.voucher-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: 11px; flex-wrap: wrap;
}
.voucher-expiry {
  letter-spacing: 0.04em; color: var(--muted);
}
.voucher-expiry.soon { color: var(--warn); font-weight: 600; }
.voucher-expiry.noexp { color: var(--faint); }
.voucher-verified { color: var(--faint); }

.voucher-use-btn {
  width: 100%; height: 40px;
  background: var(--accent); border: 0; border-radius: var(--radius);
  color: oklch(0.08 0.05 248); font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px;
  transition: opacity .12s, background .12s;
}
html[data-theme="light"] .voucher-use-btn { color: white; }
.voucher-use-btn:hover { opacity: 0.88; }
.voucher-use-btn svg { width: 13px; height: 13px; }

/* Disclaimer */
.voucher-disclaimer {
  font-size: 11px; color: var(--faint); line-height: 1.6;
  margin: 0 0 64px; max-width: 80ch;
  padding-top: 16px; border-top: 1px solid var(--border-soft);
}

/* ─── Catalog page ───────────────────────────────────────────────── */

.catalog-hero-section {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 32px;
}
.catalog-hero-row {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.catalog-hero-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 0 16px; height: 48px;
  min-width: 320px; flex: 0 1 400px;
  transition: border-color .15s;
}
.catalog-hero-search:focus-within { border-color: var(--accent); }
.catalog-search-i { color: var(--muted); display: flex; }
.catalog-search-i svg { width: 16px; height: 16px; }
.catalog-hero-search input {
  flex: 1; background: none; border: 0; outline: 0;
  font: inherit; font-size: 14.5px; color: var(--text);
}
.catalog-hero-search input::placeholder { color: var(--muted); }

.catalog-controls {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 28px;
}
.catalog-sort-row { display: flex; gap: 10px; flex-shrink: 0; }
.catalog-select {
  height: 38px; padding: 0 32px 0 12px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aaa' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 6px;
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  font: inherit; font-size: 13px; color: var(--text-2);
  cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: border-color .12s;
}
.catalog-select:hover, .catalog-select:focus { border-color: var(--accent); outline: 0; }

.catalog-empty {
  text-align: center; padding: 80px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.catalog-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; padding: 48px 0 80px;
}
.catalog-page-info {
  color: var(--muted); font-size: 13px; min-width: 100px; text-align: center;
}
.catalog-pagination .btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }

/* ─── Watchlist page ─────────────────────────────────────────────── */

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; padding-top: 8px;
}
.watchlist-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; transition: border-color .15s, transform .15s;
  display: flex; flex-direction: column;
}
.watchlist-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.watchlist-card-cover {
  position: relative; height: 140px; background: var(--surface-2);
  overflow: hidden;
}
.watchlist-card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .3s;
}
.watchlist-card:hover .watchlist-card-cover img { transform: scale(1.04); }
.watchlist-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, oklch(0.1 0.02 248 / 0.7) 0%, transparent 60%);
}
.watchlist-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.watchlist-card-title {
  font-size: 14.5px; font-weight: 600; color: var(--text);
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.watchlist-card-plats { display: flex; gap: 4px; }
.watchlist-card-price-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 4px; margin-top: auto;
}
.watchlist-target-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 6px 10px; margin-top: 4px;
}
.watchlist-target-input {
  display: flex; align-items: center; gap: 4px;
  background: var(--bg); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 2px 8px; flex: 1; min-width: 0;
}
.watchlist-target-input input {
  flex: 1; background: none; border: 0; outline: 0;
  font: inherit; font-family: var(--font-mono); font-size: 13px; color: var(--text);
  width: 0; min-width: 0;
}
.wl-status {
  font-size: 11px; font-weight: 600; padding: 2px 7px;
  border-radius: 99px; flex-shrink: 0;
}
.wl-status.hit  { background: color-mix(in oklab, var(--pos) 18%, transparent); color: var(--pos); }
.wl-status.near { background: color-mix(in oklab, var(--warn) 18%, transparent); color: var(--warn); }
.wl-status.wait { background: color-mix(in oklab, var(--muted) 12%, transparent); color: var(--muted); }

.watchlist-empty {
  text-align: center; padding: 100px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.watchlist-empty-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.watchlist-empty-icon svg { width: 28px; height: 28px; }

/* ─── Modal overlay ──────────────────────────────────────────────── */

.modal-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: oklch(0.06 0.02 248 / 0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 80px;
  animation: modal-fade-in .12s ease;
}
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ─── Search modal ───────────────────────────────────────────────── */

.search-modal {
  background: var(--bg-2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); width: 100%; max-width: 600px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  animation: modal-slide-in .14s ease;
}
@keyframes modal-slide-in { from { transform: translateY(-12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.search-modal-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
}
.search-modal-input-row svg { width: 18px; height: 18px; flex-shrink: 0; }
.search-modal-input {
  flex: 1; background: none; border: 0; outline: 0;
  font: inherit; font-size: 16px; color: var(--text);
}
.search-modal-input::placeholder { color: var(--muted); }
.search-modal-esc {
  font-family: var(--font-mono); font-size: 11px; color: var(--faint);
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 2px 6px; cursor: pointer;
  flex-shrink: 0;
}
.search-results { max-height: 400px; overflow-y: auto; padding: 8px; }
.search-result {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius);
  cursor: pointer; transition: background .1s;
}
.search-result:hover { background: var(--surface); }
.search-result-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.search-result-title { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-plats { display: flex; gap: 3px; }
.search-result-price { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.search-result-arrow { color: var(--faint); display: flex; flex-shrink: 0; }
.search-result-arrow svg { width: 14px; height: 14px; }
.search-result-cover { width: 36px; height: 48px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: var(--surface); }
.search-result-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-result-genre { font-size: 11px; color: var(--muted); }
.search-modal-spinner { width: 16px; height: 16px; flex-shrink: 0; border: 2px solid var(--faint); border-top-color: var(--accent); border-radius: 50%; animation: spin .6s linear infinite; }
.search-empty { text-align: center; padding: 32px; color: var(--muted); font-size: 14px; }

/* ─── Auth modal ─────────────────────────────────────────────────── */

.auth-modal {
  position: relative;
  background: var(--bg-2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); width: 100%; max-width: 400px;
  box-shadow: var(--shadow-2); padding: 32px;
  animation: modal-slide-in .14s ease;
}
.modal-close-btn {
  position: absolute; top: 14px; right: 14px;
}
.auth-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border-soft);
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1; height: 40px; background: none; border: 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: color .12s, border-color .12s;
}
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.auth-field input {
  height: 42px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); font: inherit; font-size: 14px; color: var(--text);
  transition: border-color .12s;
}
.auth-field input:focus { outline: 0; border-color: var(--accent); }
.auth-submit {
  width: 100%; height: 44px; margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-footer-link {
  text-align: center; font-size: 13px; color: var(--muted);
  cursor: pointer; transition: color .12s;
}
.auth-footer-link:hover { color: var(--accent); }
.auth-error {
  font-size: 13px; color: #f97171;
  background: rgba(249,113,113,.10); border: 1px solid rgba(249,113,113,.25);
  border-radius: var(--radius); padding: 8px 12px;
}
.auth-or {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 12px; margin: 12px 0 4px;
}
.auth-or::before, .auth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--border-soft);
}
.btn-google-auth {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 44px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border-soft);
  font: inherit; font-size: 14px; font-weight: 500; color: var(--text);
  cursor: not-allowed; opacity: 0.55; transition: opacity .12s;
}
.btn-google-auth:not(:disabled) { cursor: pointer; opacity: 1; }
.btn-google-auth:not(:disabled):hover { border-color: var(--accent); }

/* ─── Header auth user display ──────────────────────────────────── */
.hdr-user {
  display: flex; align-items: center; gap: 8px;
}
.hdr-user-name {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ─── Price alert modal ──────────────────────────────────────────── */

.alert-modal {
  position: relative;
  background: var(--bg-2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); width: 100%; max-width: 380px;
  box-shadow: var(--shadow-2); padding: 32px;
  animation: modal-slide-in .14s ease;
}
.alert-modal-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.alert-modal-header h3 { margin: 0; font-size: 18px; font-weight: 700; }
.alert-modal-game { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.alert-modal-desc { font-size: 13px; color: var(--muted); margin: 0 0 20px; line-height: 1.5; }
.alert-form { display: flex; flex-direction: column; gap: 16px; }
.alert-current {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted);
  background: var(--surface); border-radius: var(--radius-sm); padding: 8px 12px;
}

/* ─── Hamburger + mobile menu ────────────────────────────────────── */

.hamburger-btn { display: none; }
.mobile-menu-actions .btn-ghost { display: flex; }

/* ─── Cookie banner ──────────────────────────────────────────────── */

.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgb(0 0 0 / 0.25);
  animation: cookie-slide-up .22s ease;
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner-text {
  flex: 1; min-width: 200px;
  font-size: 13px; color: var(--text-2); line-height: 1.5;
}
.cookie-banner-actions {
  display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; align-items: center;
}
.cookie-btn-accept {
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-sm); padding: 7px 16px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: opacity .15s;
}
.cookie-btn-accept:hover { opacity: .85; }
.cookie-btn-manage {
  background: var(--surface); color: var(--text-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 14px;
  font-size: 13px; cursor: pointer;
  transition: background .15s, color .15s;
}
.cookie-btn-manage:hover { background: var(--surface-2); color: var(--text); }
.cookie-inline-link {
  color: var(--accent); background: none; border: none; padding: 0;
  font-size: inherit; font-family: inherit; cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-inline-link:hover { opacity: .8; }

/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed; inset: 0; z-index: 9100;
  background: rgb(0 0 0 / 0.55); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
@media (min-width: 600px) {
  .cookie-modal-overlay { align-items: center; padding: 24px; }
}
.cookie-modal {
  background: var(--bg-2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; width: 100%; max-width: 520px;
  box-shadow: var(--shadow-2); overflow: hidden;
  animation: modal-slide-in .16s ease;
}
@media (min-width: 600px) {
  .cookie-modal { border-radius: var(--radius-lg); }
}
.cookie-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0; gap: 12px;
}
.cookie-modal-header h3 { margin: 0; font-size: 17px; font-weight: 700; }
.cookie-modal-body { padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.cookie-modal-intro { font-size: 13px; color: var(--text-2); line-height: 1.55; margin: 0; }
.cookie-cat {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px;
}
.cookie-cat-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cookie-cat-title { font-size: 14px; font-weight: 600; margin: 0; }
.cookie-cat-desc  { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }
.cookie-always-on {
  font-size: 11px; font-weight: 600; color: var(--pos);
  background: oklch(0.80 0.18 152 / 0.12); border-radius: 99px; padding: 3px 10px;
  white-space: nowrap; flex-shrink: 0;
}
/* Toggle switch */
.cookie-toggle { position: relative; width: 38px; height: 22px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle-slider {
  position: absolute; inset: 0; border-radius: 99px; cursor: pointer;
  background: var(--border); transition: background .2s;
}
.cookie-toggle-slider::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform .2s;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle-slider::after { transform: translateX(16px); }
.cookie-modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 16px 24px; border-top: 1px solid var(--border-soft); flex-wrap: wrap;
}
.cookie-btn-reject {
  background: none; color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 14px;
  font-size: 13px; cursor: pointer; transition: color .15s, border-color .15s;
}
.cookie-btn-reject:hover { color: var(--text); border-color: var(--muted); }
.cookie-btn-save {
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-sm); padding: 7px 18px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: opacity .15s;
}
.cookie-btn-save:hover { opacity: .85; }

/* ─── Footer link buttons ────────────────────────────────────────── */

.footer-link-btn {
  background: none; border: none; padding: 0; margin: 0;
  color: var(--muted); font-size: inherit; font-family: inherit;
  cursor: pointer; transition: color .15s;
  text-decoration: none;
}
.footer-link-btn:hover { color: var(--text-2); }

/* ─── Legal pages ────────────────────────────────────────────────── */

.legal-page {
  max-width: 760px; margin: 0 auto; padding: 48px 24px 80px;
}
.legal-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); margin-bottom: 32px;
}
.breadcrumb-link {
  background: none; border: none; padding: 0;
  color: var(--accent); font-size: inherit; font-family: inherit;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.breadcrumb-link:hover { opacity: .8; }
.breadcrumb-sep { color: var(--faint); }
.legal-page h1 { font-size: 28px; font-weight: 700; margin: 0 0 8px; }
.legal-updated { font-size: 13px; color: var(--muted); margin: 0 0 36px; }
.legal-content { font-size: 15px; color: var(--text-2); line-height: 1.7; }
.legal-content h2 {
  font-size: 18px; font-weight: 700; color: var(--text);
  margin: 36px 0 12px;
}
.legal-content h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 24px 0 8px; }
.legal-content p  { margin: 0 0 14px; }
.legal-content ul { padding-left: 22px; margin: 0 0 14px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a, .legal-inline-link {
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
  background: none; border: none; padding: 0;
  font-size: inherit; font-family: inherit; cursor: pointer;
}
.legal-content a:hover, .legal-inline-link:hover { opacity: .8; }
.legal-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  margin: 16px 0 24px;
}
.legal-table th {
  background: var(--surface); padding: 10px 14px; text-align: left;
  font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border);
}
.legal-table td {
  padding: 9px 14px; border-bottom: 1px solid var(--border-soft);
  color: var(--text-2); vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:hover td { background: var(--surface); }

.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
  background: var(--bg-2); border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-2);
  padding: 8px 0 12px;
  animation: mobile-menu-in .15s ease;
}
@keyframes mobile-menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.mobile-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 24px; font-size: 15px; font-weight: 500;
  color: var(--text-2); cursor: pointer; transition: background .1s, color .1s;
}
.mobile-menu-item:hover { background: var(--surface); color: var(--text); }
.mobile-menu-divider { height: 1px; background: var(--border-soft); margin: 8px 0; }
.mobile-menu-actions {
  display: flex; gap: 10px; padding: 4px 24px 0;
}
.mobile-menu-actions .btn-ghost,
.mobile-menu-actions .btn-solid { flex: 1; justify-content: center; }

/* ─── Responsive ─────────────────────────────────────────────────── */

/* ─── Shared page hero ───────────────────────────────────────────────────── */
.page-hero {
  background: var(--surface); border-bottom: 1px solid var(--border-soft);
  padding: 48px 0 36px;
}
.page-hero-label {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.page-hero-title { font-size: 38px; font-weight: 700; margin: 0 0 10px; line-height: 1.1; }
.page-hero-sub { color: var(--text-muted); font-size: 15px; margin: 0; max-width: 560px; }

/* ─── Shared tab row ──────────────────────────────────────────────────────── */
.tab-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tab-pill {
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border-soft); background: transparent; color: var(--text-muted);
  cursor: pointer; transition: all .15s;
}
.tab-pill:hover { border-color: var(--accent); color: var(--accent); }
.tab-pill.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ─── Free Games ──────────────────────────────────────────────────────────── */
.nav-item-free { color: var(--accent) !important; font-weight: 600; }
.free-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.free-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .12s;
}
.free-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.free-card-img { position: relative; height: 150px; background: var(--surface-2); }
.free-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.free-card-img-placeholder { width: 100%; height: 100%; background: var(--surface-2); }
.free-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: var(--bg);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 4px;
}
.free-source-badge {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  border-radius: 6px; padding: 4px 8px;
  display: flex; align-items: center; gap: 5px;
}
.free-source-name { font-size: 11px; color: #fff; font-weight: 500; }
.free-card-body { padding: 14px 16px 8px; flex: 1; }
.free-card-title { font-size: 15px; font-weight: 600; margin: 0 0 6px; line-height: 1.3; }
.free-card-date { font-size: 11px; color: var(--text-muted); }
.free-card-foot { padding: 10px 16px 14px; }
.free-btn { width: 100%; justify-content: center; font-size: 13px; text-decoration: none; display: flex; align-items: center; }
.free-btn.disabled { opacity: .5; cursor: default; pointer-events: none; }

/* ─── Digital products (subscriptions + gift cards) ─────────────────────── */
.filter-row { display: flex; gap: 16px; align-items: flex-start; flex-direction: column; }
.digital-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.digital-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, transform .12s;
}
.digital-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.digital-card.has-deal { border-color: color-mix(in srgb, var(--pos) 40%, transparent); }
.digital-card-brand { display: flex; align-items: center; }
.digital-card-body { flex: 1; }
.digital-card-title { font-size: 14px; font-weight: 600; margin: 0 0 6px; line-height: 1.35; }
.digital-card-desc { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.4; }
.digital-card-dur { font-size: 11px; color: var(--accent); margin-top: 6px; }
.gc-face-value { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.digital-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.digital-card-price { display: flex; align-items: center; gap: 8px; }
.digital-price { font-size: 18px; font-weight: 700; color: var(--text); }
.digital-discount { font-size: 12px; font-weight: 600; color: var(--pos); background: color-mix(in srgb, var(--pos) 12%, transparent); padding: 2px 6px; border-radius: 4px; }
.digital-noprice { font-size: 12px; color: var(--faint); }
.digital-btn { font-size: 13px; white-space: nowrap; text-decoration: none; padding: 7px 14px; }

/* spinner */
.load-row { display: flex; justify-content: center; padding: 80px 0; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { color: var(--text-muted); text-align: center; padding: 80px 0; font-size: 15px; }

@media (max-width: 1200px) {
  .deals-grid { grid-template-columns: repeat(3, 1fr); }
  .stores { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-board { justify-content: flex-start; }
  .wl-cta { grid-template-columns: 1fr; padding: 36px; }
  .detail-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
  .game-hero { grid-template-columns: 220px 1fr; }
  .game-title { font-size: 44px; }
  .drop-row { grid-template-columns: 28px 1.4fr 80px 1fr 90px 90px 80px; }
  .drop-spark, .drop-spark-head { display: none; }
}

/* Hide nav + show hamburger earlier */
@media (max-width: 1100px) {
  .nav { display: none; }
  .search { width: 220px; max-width: 24vw; }
  .btn-ghost { display: none; }
  .hamburger-btn { display: flex; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
  .watchlist-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .search { display: none; }
  .hdr-tools .btn-solid { display: none; }
  .hamburger-btn { display: flex; }
  .game-hero { grid-template-columns: 1fr; }
  .stores { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .platform-bar-wrap { top: 64px; }
  .drop-row { grid-template-columns: 1fr 80px 80px 80px; }
  .drop-row > :nth-child(1), .drop-row > :nth-child(4), .drop-row > :nth-child(6) { display: none; }
  .catalog-hero-search { min-width: 0; width: 100%; }
  .catalog-controls { flex-direction: column; align-items: stretch; }
  .catalog-sort-row { flex-wrap: wrap; }
  .search-modal { max-width: 95vw; margin: 0 12px; }
  .auth-modal, .alert-modal { max-width: 95vw; margin: 0 12px; padding: 24px 20px; }
}
