/* Card Radar — design system */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e3e7ef;
  --brand: #d7182a;
  --brand-2: #ff3b4a;
  --brand-soft: #fde8ea;
  --navy: #0b1120;
  --navy-2: #131c33;
  --up: #15803d;
  --down: #c81e1e;
  --warn: #b45309;
  --focus: #2563eb;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, .14);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --f2f: #3b82f6; --s401: #ef4444; --cb: #a855f7;
  /* the home banner: pale, with the cards in full colour over it, in light mode; navy in dark mode */
  --hero-bg: radial-gradient(1000px 420px at 78% -20%, rgba(255,59,74,.12) 0%, transparent 60%),
             linear-gradient(180deg, #e9edf6 0%, var(--bg) 100%);
  --hero-ink: var(--ink); --hero-sub: var(--ink-2); --hero-ring: rgba(215,24,42,.4); --hero-art: .62;
  --hero-art-filter: none; --hero-sweep: .28;
  --spark-hi: #fff3c4; --spark-star: #f5b301;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1c; --surface: #111827; --surface-2: #172034; --ink: #e8ecf4; --ink-2: #c3cad8;
    --muted: #8b95a8; --line: #232d42; --brand-soft: #3a1116; --up: #34d399; --down: #f87171;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 10px 40px rgba(0,0,0,.5); color-scheme: dark;
    --hero-bg: radial-gradient(1200px 500px at 70% -10%, #2a1320 0%, transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    --hero-ink: #fff; --hero-sub: #b8c2d6; --hero-ring: rgba(255,255,255,.2); --hero-art: .26; --hero-art-filter: saturate(.85);
    --hero-sweep: .42; --spark-hi: #fffbe8; --spark-star: #ffe08a;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f1c; --surface: #111827; --surface-2: #172034; --ink: #e8ecf4; --ink-2: #c3cad8;
  --muted: #8b95a8; --line: #232d42; --brand-soft: #3a1116; --up: #34d399; --down: #f87171;
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 10px 40px rgba(0,0,0,.5); color-scheme: dark;
    --hero-bg: radial-gradient(1200px 500px at 70% -10%, #2a1320 0%, transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    --hero-ink: #fff; --hero-sub: #b8c2d6; --hero-ring: rgba(255,255,255,.2); --hero-art: .26; --hero-art-filter: saturate(.85);
    --hero-sweep: .42; --spark-hi: #fffbe8; --spark-star: #ffe08a;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); min-height: 100vh;
       display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header: logo · search (fills the space) · Cards / Sets / Decks / About / account · theme ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 90%, transparent);
               backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand search actions";
               column-gap: 24px; align-items: center; min-height: 68px; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 9px; }
.brand img { width: 36px; height: 36px; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.03em; color: var(--ink); }
.wordmark span { color: var(--brand); }
.brand:hover { color: inherit; }
/* The search bar is one rounded field holding the game picker box and the search input. */
.search-bar { grid-area: search; display: flex; align-items: center; gap: 4px; min-width: 0; height: 46px; padding-left: 5px;
              background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
              transition: border-color .15s, box-shadow .15s, background .15s; }
.search-bar:focus-within { background: var(--surface); border-color: var(--brand);
                           box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.search-bar .header-search { flex: 1; min-width: 0; }
.search-bar .search input[type=search] { height: 44px; background: transparent; border: 0; box-shadow: none; padding-left: 38px; }
.search-bar .search input[type=search]:focus { box-shadow: none; background: transparent; }
.search-bar .search > svg { left: 13px; }
.header-actions { grid-area: actions; display: flex; align-items: center; gap: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav form { margin: 0; }
.nav-divider { width: 1px; height: 22px; margin: 0 6px; background: var(--line); }
.nav a, .nav .nav-btn { padding: 8px 12px; border-radius: 8px; font-weight: 500; color: var(--ink-2); font-size: 14.5px; white-space: nowrap; }
.nav a:hover, .nav .nav-btn:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { color: var(--brand); }
.btn.nav-toggle { display: none; }
/* Below ~1060px the one-row header would squeeze the search, so it stacks and the links move into the menu. */
@media (max-width: 1060px) {
  .header-grid { grid-template-columns: auto 1fr; grid-template-areas: "brand actions" "search search";
                 row-gap: 10px; padding: 10px 20px 12px; }
  .header-actions { justify-self: end; }
  .btn.nav-toggle { display: inline-grid; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface);
         border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav .btn.primary { margin-top: 6px; }
  .nav .nav-btn { width: 100%; text-align: left; }
  .nav-divider { width: auto; height: 1px; margin: 6px 0; }
}

/* ---------- search box ---------- */
.search { position: relative; }
.search input[type=search] { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
                padding: 0 16px 0 42px; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s; }
.search input[type=search]:focus { outline: none; background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.search > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search.lg input[type=search] { height: 58px; font-size: 17px; padding-left: 52px; background: var(--surface); border: 0; box-shadow: var(--shadow-lg); }
.search.lg > svg { left: 18px; width: 22px; height: 22px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line);
           border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; display: none; text-align: left; }
.suggest.open { display: block; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: var(--ink); }
.suggest a img { width: 30px; height: 44px; object-fit: cover; border-radius: 3px; background: var(--surface-2); }
.suggest a .s-name { flex: 1; font-weight: 500; }
.suggest a .s-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.suggest a[aria-selected="true"], .suggest a:hover { background: var(--surface-2); color: var(--ink); }
.suggest .s-all { justify-content: center; color: var(--brand); font-weight: 600; font-size: 14px; border-top: 1px solid var(--line); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
       border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14.5px var(--font);
       cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #b9101f; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--down); }
button.linklike { background: none; border: 0; font: inherit; cursor: pointer; color: inherit; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field .help { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field .errors, .form-errors { color: var(--down); font-size: 13px; margin-top: 5px; }
.form-errors { background: var(--brand-soft); padding: 10px 12px; border-radius: 8px; margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px;
  padding: 10px 12px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
textarea { min-height: 220px; font: 13.5px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; resize: vertical; }
select { width: auto; padding: 8px 32px 8px 12px; }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: 14px; }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-pad { padding: 20px; }
.panel h2 { font-size: 17px; }
.section { margin: 36px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head a:not(.btn) { color: var(--brand); font-weight: 600; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; background: var(--hero-bg); color: var(--hero-ink); padding: 56px 0 44px; min-height: 325px;
        display: flex; align-items: center; }
.hero > .container { width: 100%; }
/* a faded, tilted wall of each game's priciest cards behind the banner; clear behind the text (left), fading
   in toward the radar (right). The banner is navy in both themes, so one treatment fits both. */
.hero-art { position: absolute; top: -40%; right: -6%; width: 78%; height: 180%; display: grid;
            grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; align-content: center;
            transform: rotate(-11deg); opacity: var(--hero-art); pointer-events: none; filter: var(--hero-art-filter);
            -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 80%, transparent 100%),
                                linear-gradient(180deg, transparent 4%, #000 30%, #000 62%, transparent 92%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 80%, transparent 100%),
                        linear-gradient(180deg, transparent 4%, #000 30%, #000 62%, transparent 92%);
            -webkit-mask-composite: source-in; mask-composite: intersect; animation: hero-drift 60s ease-in-out infinite alternate; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 168 / 246; object-fit: cover; border-radius: 6px;
                box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.hero-art img:nth-child(16n+9), .hero-art img:nth-child(16n+10), .hero-art img:nth-child(16n+11),
.hero-art img:nth-child(16n+12), .hero-art img:nth-child(16n+13), .hero-art img:nth-child(16n+14),
.hero-art img:nth-child(16n+15), .hero-art img:nth-child(16n+16) { transform: translateX(-50%); }   /* brick rows */
@keyframes hero-drift { to { translate: -40px 18px; } }
@media (prefers-reduced-motion: reduce) { .hero-art { animation: none; } }
@media (max-width: 860px) { .hero-art { width: 120%; right: -40%; opacity: calc(var(--hero-art) * .7); } }
.hero .rings { position: absolute; right: -180px; top: -200px; width: 760px; height: 760px; pointer-events: none; z-index: 1; }
.hero .rings circle { fill: none; stroke: var(--hero-ring); stroke-width: 1.6; }
.hero .rings .sweep { opacity: var(--hero-sweep); }
.hero .sweep { transform-origin: 380px 380px; animation: sweep 7s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero .sweep { animation: none; } }
.hero h1 { color: var(--hero-ink); font-size: clamp(32px, 5vw, 52px); max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--brand-2); }
.hero p.lead { color: var(--hero-sub); font-size: 18px; max-width: 620px; margin-bottom: 0; }
.hero p.lead.today { color: var(--hero-ink); font-weight: 600; }

/* ---------- Premium: the name shimmers (a gold glint sweeping across the red) with stars twinkling round it ---------- */
.premium-name { position: relative; display: inline-block;
                background: linear-gradient(110deg, var(--brand-2) 0%, var(--brand-2) 38%, #ffc94a 46%, var(--spark-hi) 50%,
                            #ffc94a 54%, var(--brand-2) 62%, var(--brand-2) 100%);
                background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
                -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 10px rgba(255, 59, 74, .35));
                animation: premium-shimmer 3.4s linear infinite; }
@keyframes premium-shimmer { from { background-position: 100% 0; } to { background-position: -160% 0; } }
.premium-name .sparks { position: absolute; inset: -14% -6%; pointer-events: none; }
.premium-name .sparks i { position: absolute; width: 14px; height: 14px; background: var(--spark-star);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 4px #ffd76a); transform: scale(0); animation: premium-twinkle 2.4s ease-in-out infinite; }
.premium-name .sparks i:nth-child(1) { left: -2%; top: 8%; animation-delay: 0s; }
.premium-name .sparks i:nth-child(2) { left: 22%; top: -6%; width: 10px; height: 10px; animation-delay: .9s; }
.premium-name .sparks i:nth-child(3) { left: 55%; top: 82%; animation-delay: .4s; }
.premium-name .sparks i:nth-child(4) { left: 78%; top: -4%; width: 18px; height: 18px; animation-delay: 1.5s; }
.premium-name .sparks i:nth-child(5) { left: 98%; top: 55%; width: 11px; height: 11px; animation-delay: 1.1s; }
.premium-name .sparks i:nth-child(6) { left: 36%; top: 88%; width: 9px; height: 9px; animation-delay: 1.9s; }
@keyframes premium-twinkle { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; }
                             45% { transform: scale(1) rotate(45deg); opacity: 1; } 70% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .premium-name, .premium-name .sparks i { animation: none; }
                                           .premium-name .sparks i { transform: scale(.8); opacity: .8; } }
.hero .plan-sep { margin: 0 6px; opacity: .45; font-weight: 400; }
/* the green PREMIUM beside the date, with its own small green sparkles */
.hero .hero-premium { position: relative; display: inline-block; color: var(--up); font-weight: 800; letter-spacing: .08em;
                      text-shadow: 0 0 12px color-mix(in srgb, var(--up) 45%, transparent); }
.hero-premium .sparks { position: absolute; inset: -55% -18%; pointer-events: none; }
.hero-premium .sparks i { position: absolute; width: 9px; height: 9px; background: var(--up);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 3px var(--up)); transform: scale(0); animation: premium-twinkle 2.6s ease-in-out infinite; }
.hero-premium .sparks i:nth-child(1) { left: 0; top: 4%; animation-delay: .3s; }
.hero-premium .sparks i:nth-child(2) { left: 46%; top: -8%; width: 7px; height: 7px; animation-delay: 1.4s; }
.hero-premium .sparks i:nth-child(3) { left: 92%; top: 20%; width: 11px; height: 11px; animation-delay: .8s; }
.hero-premium .sparks i:nth-child(4) { left: 70%; top: 78%; width: 7px; height: 7px; animation-delay: 2s; }
@media (prefers-reduced-motion: reduce) { .hero-premium .sparks i { animation: none; transform: scale(.8); opacity: .7; } }
.hero .search { max-width: 640px; }
.hero .search input[type=search] { color: #0f172a; background: #fff; }
.hero .quick { margin-top: 0; display: flex; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: #9aa6bd; align-items: center; }
.hero .quick a { color: #dbe3f1; background: rgba(255,255,255,.08); padding: 4px 11px; border-radius: 999px; }
.hero .quick a:hover { background: rgba(255,255,255,.16); color: #fff; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .v { font-family: var(--font-display); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .k { color: var(--muted); font-size: 13px; }

/* ---------- card tiles ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 18px; }
.tile { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.tile .art { position: relative; aspect-ratio: 421 / 614; border-radius: 9px; overflow: hidden; background: var(--surface-2);
             box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.tile .art img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover { color: var(--ink); }
.tile:hover .art { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile .name { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 13px; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.price.lg { font-family: var(--font-display); font-size: 30px; font-weight: 800; }
.oos { color: var(--muted); font-size: 12.5px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
         background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.chg { font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.chg.up { color: var(--up); } .chg.down { color: var(--down); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600;
                padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data .r { text-align: right; }
table.data a.out { color: var(--brand); font-weight: 600; white-space: nowrap; }
.cond { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); }
.cond-0 { color: var(--up); } .cond-1 { color: #65a30d; } .cond-2 { color: var(--warn); } .cond-3, .cond-4 { color: var(--down); }

/* ---------- card detail ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin: 22px 0 14px; }
.crumbs a:hover { color: var(--brand); }
.card-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.card-art { position: sticky; top: 84px; }
.card-art img { border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%; height: auto; aspect-ratio: 421/614; background: var(--surface-2); }
@media (max-width: 860px) { .card-layout { grid-template-columns: 1fr; } .card-art { position: static; max-width: 260px; margin: 0 auto; } }
.card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.card-title h1 { margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; }
.card-text { white-space: pre-line; color: var(--ink-2); font-size: 14.5px; background: var(--surface-2); padding: 14px 16px; border-radius: 10px; }
.pod { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; }
.pod > div { padding: 18px 20px; }
.pod > div + div { border-left: 1px solid var(--line); }
.pod .k { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.pod .day { font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) { .pod { grid-template-columns: 1fr 1fr; } .pod > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .pod > div:nth-child(2) { border-left: 0; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font: 600 14px var(--font);
                         color: var(--muted); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tabs .on { color: var(--ink); border-bottom-color: var(--brand); }
.chart-box { position: relative; height: 300px; }
.chart-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 3px; }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 7px; font: 600 13px var(--font); color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.locked { position: relative; overflow: hidden; border-radius: var(--radius); }
.locked .ghost-chart { height: 260px; filter: blur(5px); opacity: .55; }
.locked .unlock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
                  text-align: center; gap: 10px; padding: 20px; }
.locked .unlock .lock { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
                        display: grid; place-items: center; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.flash { padding: 12px 16px; border-radius: 10px; margin: 16px 0; font-weight: 500; }
.flash.success { background: color-mix(in srgb, var(--up) 12%, var(--surface)); color: var(--up); }
.flash.error { background: var(--brand-soft); color: var(--down); }
.flash.info, .flash.warning { background: var(--surface-2); color: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 6px; font-weight: 600; }
.legal { max-width: 780px; }
.legal h2 { margin-top: 28px; font-size: 20px; }
.legal p, .legal li { line-height: 1.6; }
.legal .updated { color: var(--muted); }
.verify-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 0;
  padding: 10px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, #f59e0b 45%, var(--line));
  background: color-mix(in srgb, #f59e0b 10%, var(--surface)); color: var(--ink-2); font-size: 14px; }
.auth { max-width: 420px; margin: 56px auto; }
.auth .panel-pad { padding: 28px; }
.auth h1 { font-size: 26px; text-align: center; }
.auth .sub { text-align: center; color: var(--muted); margin-bottom: 22px; }
.auth .alt { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.auth .alt a { color: var(--brand); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0; align-items: center; }
.layout-2 { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .layout-2 { grid-template-columns: 1fr; } }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.thumb { width: 38px; height: 55px; object-fit: cover; border-radius: 4px; background: var(--surface-2); flex: none; }
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.site-footer a:hover { color: var(--brand); }
.theme-btn { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; border-radius: 8px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.store-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
details.more summary { cursor: pointer; color: var(--muted); font-size: 13px; }

/* Grid children must be allowed to shrink so wide tables scroll inside their panel on phones. */
.card-layout > *, .layout-2 > *, .grid > * { min-width: 0; }
h1 { overflow-wrap: anywhere; }
select { max-width: 100%; text-overflow: ellipsis; }
.stat .store-chip { white-space: normal; }

/* ---------- movers ---------- */
.section.movers { margin-top: 28px; }
.movers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.movers-grid > * { min-width: 0; }
@media (max-width: 760px) { .movers-grid { grid-template-columns: 1fr; } }
.up-h { color: var(--up); } .down-h { color: var(--down); }
.seg button:disabled { cursor: not-allowed; opacity: .6; }
.ghost-rows { filter: blur(4px); opacity: .5; }
.ghost-row { height: 44px; border-radius: 8px; background: var(--surface-2); margin-bottom: 10px; }
.locked .unlock h3 { font-family: var(--font-display); font-size: 18px; }
.seg button { white-space: nowrap; }
.movers .section-head { flex-wrap: wrap; align-items: center; }

/* ---------- search dropdown: recent + popular ---------- */
.suggest .s-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 4px;
                   font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.suggest .s-head + * { margin-top: 2px; }
.suggest .s-clear { background: none; border: 0; color: var(--brand); font: 600 12px var(--font); cursor: pointer; text-transform: none; letter-spacing: 0; }
.suggest .s-row { display: flex; align-items: center; }
.suggest .s-row .s-term { flex: 1; min-width: 0; }
.suggest a.s-term { padding: 8px 12px; }
.suggest .s-ico { color: var(--muted); display: inline-grid; place-items: center; width: 22px; flex: none; }
.suggest .s-term .s-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .s-x { background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; width: 34px; height: 34px;
                border-radius: 8px; cursor: pointer; margin-right: 4px; flex: none; }
.suggest .s-x:hover { background: var(--surface-2); color: var(--ink); }
.suggest .s-head:not(:first-child) { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }

.pod .pod-scope { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink-2); }
.pod.no-market { grid-template-columns: 1.3fr 1fr; }
.pod.no-market .pod-market { display: none; }
@media (max-width: 640px) { .pod.no-market > div:last-child { border-left: 0; } }

/* The selected game's card back, on the blip in the middle of the hero radar (centre = 200px from right, 180px from top).
   Easter egg: it's a button that flips over to the next game. */
.hero .radar-card-form { position: absolute; right: 161.5px; top: 124px; margin: 0; z-index: 2; }
.hero .radar-card { display: block; width: 77px; height: 112px; padding: 0; border: 0; background: none; cursor: pointer;
                    perspective: 600px; transform: rotate(-8deg); transition: transform .2s; }
.hero .radar-card:hover { transform: rotate(-4deg) scale(1.04); }
.hero .radar-card:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 6px; border-radius: 6px; }
.radar-card-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d;
                    transition: transform .6s cubic-bezier(.4, .2, .2, 1); }
.radar-card .face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 5px;
                    filter: drop-shadow(0 0 26px rgba(255, 59, 74, .45)) drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.radar-card .face.back { transform: rotateY(180deg); }
.radar-card-form.flipping .radar-card-inner { transform: rotateY(180deg); }
@media (max-width: 860px) { .hero .radar-card-form { opacity: .5; } }
@media (max-width: 560px) { .hero .radar-card-form { display: none; } }

/* ---------- game picker (box at the left of the search bar) ---------- */
.game-switch { position: relative; flex: none; }
.game-pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 10px; border-radius: 999px;
             border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); background: color-mix(in srgb, var(--ink) 9%, var(--surface-2)); color: var(--ink); cursor: pointer;
             font: 600 13.5px var(--font); white-space: nowrap; box-shadow: var(--shadow); transition: background .15s, border-color .15s; }
.game-pill:hover, .game-pill[aria-expanded="true"] { border-color: var(--brand); background: var(--brand-soft); }
.game-pill:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.game-pill img { width: 12px; height: 17px; border-radius: 2px; }
.game-pill svg { color: var(--muted); transition: transform .15s; }
.game-pill[aria-expanded="true"] svg { transform: rotate(180deg); }
.game-menu { position: absolute; top: calc(100% + 10px); left: -5px; z-index: 70; width: 270px; padding: 6px; margin: 0;
             background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.game-menu-head { padding: 8px 10px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.game-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px;
               background: none; color: var(--ink); font: 600 14px var(--font); text-align: left; cursor: pointer; }
.game-option:hover, .game-option:focus-visible { background: var(--surface-2); outline: none; }
.game-option img { width: 22px; height: 32px; border-radius: 2px; flex: none; }
.game-option-name { flex: 1; }
.game-option.on { color: var(--brand); }
.game-option .tick { color: var(--brand); flex: none; }

/* ---------- coming soon ---------- */
.coming-soon { display: flex; gap: 22px; align-items: center; padding: 26px; }
.coming-soon img { flex: none; transform: rotate(-6deg); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.coming-soon h2 { margin-bottom: 6px; }
.coming-soon p { max-width: 560px; }
.coming-soon-games { display: flex; gap: 8px; flex-wrap: wrap; }
.coming-soon-games form { margin: 0; }
@media (max-width: 560px) { .coming-soon { flex-direction: column; align-items: flex-start; } }
/* Keep the headline clear of the radar card at mid widths (the card sits ~240px in from the right edge). */
@media (min-width: 561px) { .hero h1, .hero p.lead { max-width: min(760px, calc(100% - 250px)); } }

/* ---------- chart legend: bullet chips (filled = shown, hollow = hidden) ---------- */
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.legend-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 8px; border-radius: 999px;
               border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 12.5px var(--font); cursor: pointer; }
.legend-chip:hover { background: var(--surface-2); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); border: 2px solid var(--c); flex: none; }
.legend-chip[aria-pressed="false"] { color: var(--muted); }
.legend-chip[aria-pressed="false"] .legend-dot { background: transparent; }

/* ---------- watchlist ---------- */
.watch { position: relative; margin-left: auto; }
.watch-btn { gap: 6px; }
.watch-btn.on { color: #f59e0b; border-color: rgba(245, 158, 11, .5); }
.watch-btn.on .star { fill: currentColor; }
.watch-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 290px; padding: 6px;
              background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
              text-align: left; }
.watch-head { padding: 8px 10px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.watch-config { padding: 0 10px 8px; font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.watch-lists { max-height: 240px; overflow-y: auto; }
.watch-list { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
              background: none; color: var(--ink); font: 600 14px var(--font); text-align: left; cursor: pointer; }
.watch-list:hover, .watch-list:focus-visible { background: var(--surface-2); outline: none; }
.watch-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-check { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--muted); flex: none; position: relative; }
.watch-list[aria-checked="true"] .watch-check { background: var(--brand); border-color: var(--brand); }
.watch-list[aria-checked="true"] .watch-check::after { content: ""; position: absolute; left: 3.5px; top: 0; width: 4px; height: 8px;
              border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.watch-new { display: flex; gap: 6px; padding: 8px 4px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.watch-new input, .watch-rename input, .watch-add input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border-radius: 8px;
              border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 14px var(--font); }
.watch-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 6px 2px; font-size: 13px; }
.watch-foot a { color: var(--brand); font-weight: 600; white-space: nowrap; }
.watch-error { color: var(--down); }
.panel.empty .watch { margin: 14px 0 0; }
.panel.empty .watch-menu { right: auto; left: 50%; transform: translateX(-50%); }

.watch-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 18px; }
.watch-tabs > a, .watch-add summary { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
              border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.watch-tabs > a:hover, .watch-add summary:hover { background: var(--surface-2); }
.watch-tabs > a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.watch-tabs > a.on .muted { color: rgba(255, 255, 255, .8); }
.watch-add { position: relative; }
.watch-add summary { list-style: none; color: var(--brand); border-style: dashed; }
.watch-add summary::-webkit-details-marker { display: none; }
.watch-add form { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; display: flex; gap: 6px; width: 300px; padding: 8px;
              background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.watch-rename { display: flex; gap: 6px; }
.watch-table th a { color: inherit; }
.icon-btn { width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--down); }
@media (max-width: 640px) {
  .watch-menu { width: min(290px, calc(100vw - 32px)); }
  .watch-add form { width: min(300px, calc(100vw - 32px)); }
}

/* ---------- card page: price sort + listing pages ---------- */
.th-sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer;
           font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
.th-sort:hover, .th-sort:focus-visible { color: var(--ink); outline: none; }
.sort-arrow { font-size: 12px; line-height: 1; color: var(--brand); }
#listings { scroll-margin-top: 90px; }
.listing-pager { margin: 14px 0 6px; }
.listing-pager[hidden] { display: none; }
.listing-pager .btn:disabled { opacity: .45; cursor: default; }

/* Pokémon: set + number under the name on tiles */
.tile .tile-sub { padding: 0 12px; margin-top: -4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge.special { background: rgba(234, 179, 8, .15); color: #eab308; font-size: 11px; padding: 1px 7px; margin-left: 4px; }
.plan-premium-badge { color: var(--up); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- plans: locks and upgrade prompts ---------- */
.seg-lock { display: inline-block; vertical-align: -1px; opacity: .7; }
.premium-lock { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.premium-lock span { display: block; margin-top: 2px; font-size: 13.5px; }
.premium-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800;
               letter-spacing: .05em; text-transform: uppercase; color: #fff;
               background: linear-gradient(110deg, var(--brand) 0%, #f59e0b 100%); vertical-align: 1px; }
.watch-upgrade { color: var(--muted); }

/* ---------- the upgrade page ---------- */
.upgrade-hero { padding: 28px 0 22px; }
.upgrade-hero h1 { font-size: clamp(32px, 5vw, 50px); margin-bottom: 10px; }
.upgrade-hero h1 em { font-style: normal; }
.upgrade-hero .lead { color: var(--ink-2); font-size: 17px; max-width: 640px; margin: 0; }
.upgrade-status { margin: 14px 0 0; font-weight: 700; color: var(--up); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 6px 0 18px; }
.plan-card { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.plan-card .btn { align-self: flex-start; margin-top: auto; }
.plan-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.plan-price { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
.plan-price-alt { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.plan-per { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-card > form { margin: auto 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.plan-card > form .btn { margin-top: 0; }
.plan-warn { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--down) 12%, transparent); }
.plan-list { margin: 4px 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan-list li { position: relative; padding-left: 24px; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--up); font-weight: 800; }
.plan-premium { border: 1.5px solid color-mix(in srgb, var(--brand) 55%, #f59e0b); box-shadow: 0 10px 40px rgba(215, 24, 42, .14); }
.compare td.c, .compare th.c { text-align: center; white-space: nowrap; }
.compare .yes { color: var(--up); font-weight: 800; }
.compare .no { color: var(--muted); }
.compare tbody.soon th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
                         padding-top: 18px; }
.compare tbody.soon td { color: var(--ink-2); }

/* ---------- the Account menu (Settings / Upgrade) ---------- */
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 8px; font-weight: 500; color: var(--ink-2);
                    font-size: 14.5px; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover, .nav-menu[open] summary { background: var(--surface-2); color: var(--ink); }
.nav-menu summary.active { color: var(--brand); }
.nav-menu[open] summary svg { transform: rotate(180deg); }
.nav-menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; padding: 6px; z-index: 50;
                 background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
                 display: grid; gap: 2px; }
.nav .nav-menu-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
@media (max-width: 1060px) {      /* inside the mobile menu: the links sit under "Account" */
  .nav-menu-list { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
}
.seg a.seg-locked { padding: 5px 11px; border-radius: 7px; font: 600 13px var(--font); color: var(--muted); opacity: .75;
                    display: inline-flex; align-items: center; gap: 4px; }
.seg a.seg-locked:hover { color: var(--brand); opacity: 1; }

/* ---------- unidentified listings (store products not matched to a card yet) ---------- */
.tile-unid .art img { opacity: .92; }
.tile-unid .unid-badge { position: absolute; left: 8px; top: 8px; background: rgba(15, 23, 42, .78); color: #e2e8f0;
                         font-size: 11px; padding: 2px 8px; }
.tile-unid .name { font-weight: 500; font-size: 13px; -webkit-line-clamp: 3; }
.tile-unid .tile-sub { padding: 0; margin-top: -2px; display: flex; align-items: center; gap: 5px; }
.tile-unid .tile-sub .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.unid-note { max-width: 760px; margin: 0 0 16px; }
.unid-hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; padding: 8px 12px;
             border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); }
.unid-hint .unid-q { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
                     background: var(--surface-2); font-weight: 800; font-size: 12px; color: var(--ink); }
.badge.unconfirmed { background: var(--surface-2); color: var(--muted); font-size: 11px; padding: 1px 7px; margin-left: 4px; }

/* ---------- store location / shipping, report a wrong match, last seen ---------- */
.store-meta { font-size: 11.5px; margin-top: 2px; white-space: nowrap; }
td.nowrap { white-space: nowrap; }
.report-btn { margin-left: 8px; padding: 3px 4px; border: 0; background: none; color: var(--muted); cursor: pointer;
              border-radius: 5px; vertical-align: middle; opacity: .55; }
.report-btn:hover, .report-btn:focus-visible { opacity: 1; color: var(--down); background: var(--surface-2); }
.report-dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink);
                 padding: 20px 22px; width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
.report-dialog::backdrop { background: rgba(2, 6, 23, .55); }
.report-dialog h2 { margin: 0 0 4px; font-size: 18px; }
.report-dialog fieldset { border: 0; padding: 0; margin: 10px 0 12px; display: grid; gap: 6px; }
.report-dialog legend { margin-bottom: 6px; }
.report-dialog textarea { width: 100%; margin-top: 4px; box-sizing: border-box; font: inherit; padding: 8px; border-radius: 8px;
                          border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); resize: vertical;
                          min-height: 0; height: 76px; }
.report-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.report-actions #report-msg { margin-right: auto; color: var(--ink-2); }
.last-seen { margin-top: 14px; }
.split-row { flex-wrap: wrap; }
.split-ship { flex-basis: 100%; margin-top: 2px; padding-left: 16px; }
.ship-free { color: var(--up); font-weight: 600; }

/* ---------- Premium: price alerts, email settings, CSV ---------- */
.alert-on { color: var(--up); margin-top: 2px; }
.alert-pop { display: inline-block; position: relative; vertical-align: middle; }
.alert-pop > summary { list-style: none; cursor: pointer; filter: grayscale(1); opacity: .55; }
.alert-pop > summary::-webkit-details-marker { display: none; }
.alert-pop > summary.on, .alert-pop[open] > summary { filter: none; opacity: 1; }
.alert-form { position: fixed; z-index: 60; width: 250px; text-align: left; display: grid;
              gap: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
              box-shadow: var(--shadow-lg); white-space: normal; }
.alert-form .dollar { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; }
.alert-form input[type=number] { width: 90px; padding: 5px 7px; border-radius: 7px; border: 1px solid var(--line);
                                 background: var(--surface-2); color: var(--ink); font: inherit; }
.alert-actions { display: flex; gap: 6px; justify-content: flex-end; }
a.icon-btn { text-decoration: none; filter: grayscale(1); opacity: .45; }
.email-settings { display: grid; gap: 10px; justify-items: start; }
.email-settings select { margin-left: 6px; }
.hist-csv { display: inline-block; margin: 0 0 8px; }

/* the card page's bell (Premium price alert), beside Watch */
.watch { display: flex; gap: 6px; align-items: center; }
.bell-btn { padding-left: 9px; padding-right: 9px; }
.bell-btn.on { color: var(--up); border-color: color-mix(in srgb, var(--up) 50%, transparent); }
.bell-btn.on svg { fill: currentColor; }
.bell-menu { display: grid; gap: 8px; padding: 10px 12px; }
.bell-menu[hidden] { display: none; }
.bell-menu .dollar { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; }
.bell-menu input[type=number] { width: 90px; padding: 5px 7px; border-radius: 7px; border: 1px solid var(--line);
                                background: var(--surface-2); color: var(--ink); font: inherit; }
.bell-actions { display: inline-flex; gap: 6px; margin-left: auto; }
.btn[hidden] { display: none; }

/* ---------- daily feed ---------- */
.feed-head { flex-wrap: wrap; gap: 12px; }
.feed-days { display: flex; gap: 8px; }
.feed-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 20px; }
.feed-movers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 760px) { .feed-movers { grid-template-columns: 1fr; } }
.feed-movers h2 { margin-top: 0; }

/* ---------- About: "Run a store? Get listed" ---------- */
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 14px; }
.store-grid label { display: grid; gap: 4px; }
.store-grid label.wide { grid-column: 1 / -1; }
.store-grid input, .store-grid textarea { width: 100%; box-sizing: border-box; padding: 9px 10px; border-radius: 8px; font: inherit;
                                          border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
.store-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--down); }
.store-sent { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--up) 12%, transparent); }
@media (max-width: 640px) { .store-grid { grid-template-columns: 1fr; } }

/* ---------- deck: buy it from fewer stores ---------- */
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; align-items: start; }
.plan { padding: 0; }
.plan > summary { list-style: none; cursor: pointer; display: grid; gap: 4px; padding: 14px 16px; }
.plan > summary::-webkit-details-marker { display: none; }
.plan[open] { grid-column: 1 / -1; }
.plan-best { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.plan-label { font-weight: 700; }
.plan-total { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.plan-open { color: var(--brand); font-weight: 600; }
.plan[open] .plan-open { display: none; }
.plan-store { border-top: 1px solid var(--line); padding: 10px 16px; }
.plan-store-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.plan-lines li { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.plan-lines .price { margin-left: auto; }

/* ---------- collections ---------- */
.coll-add { position: relative; }
.coll-add > summary { list-style: none; cursor: pointer; }
.coll-add > summary::-webkit-details-marker { display: none; }
.coll-add-form { display: grid; gap: 8px; padding: 10px 12px; left: 0; right: auto; }
.coll-add-form label { display: grid; gap: 4px; }
.coll-add-form input, .coll-add-form select { padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line);
                                                background: var(--surface-2); color: var(--ink); font: inherit; }
.coll-add-form [hidden] { display: none; }
.coll-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0; }
.coll-table select { max-width: 260px; }
.coll-qty { display: inline-flex; gap: 4px; align-items: center; }
.coll-qty input { width: 64px; text-align: right; }
.coll-menu { position: relative; }
.coll-menu > summary { list-style: none; }
.coll-menu > summary::-webkit-details-marker { display: none; }
.coll-menu-box { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 280px; }
.coll-rename { display: flex; gap: 6px; }
.coll-rename input { flex: 1; min-width: 0; }
.coll-paste { width: 100%; box-sizing: border-box; }
