/* DropWatch design system: dark, calm, scan-first. One accent, semantic colours for state only. */
:root {
  color-scheme: dark;
  --bg: #0c0f15; --surface: #131823; --surface-2: #1a2130; --surface-3: #212a3b; --line: #263043; --line-strong: #34405a;
  --text: #e9edf5; --muted: #8e99b0; --faint: #5f6a82;
  --accent: #7aa2ff; --accent-ink: #0b1a3a;
  --green: #3ddc97; --amber: #ffc857; --red: #ff6b6b; --pokemon: #ffd166; --lorcana: #c3a6ff;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.28);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 24px; } h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; } h3 { font-size: 14px; }
p { margin: 0; } code { background: var(--surface-3); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .hidden { display: none !important; }
.up { color: var(--green); } .down { color: var(--red); } .error { color: var(--red); font-size: 12px; min-height: 16px; }
.hint, .note { color: var(--muted); font-size: 12px; line-height: 1.5; } .note { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); margin-top: 10px; }

/* shell */
.shell { display: grid; grid-template-columns: 232px 1fr; height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 52px 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 6px; }
.brand-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.brand-accent { color: #5aa9ff; }
.empty-mark { width: 72px; height: 72px; opacity: .95; }
.brand-name { font-weight: 800; font-size: 15px; } .brand-sub { font-size: 11px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px;  }
.view-btn { display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 0; border-radius: var(--r-sm); padding: 9px 10px; color: var(--muted); font-weight: 600; }
.view-btn:hover { background: var(--surface-2); color: var(--text); }
.view-btn.active { background: var(--surface-3); color: var(--text); }
.nav-icon { width: 18px; text-align: center; opacity: .9; } .nav-count { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 700; }
.nav-count.hot { color: var(--green); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.side-line { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.side-hint { font-size: 11px; color: var(--faint); }
.content { overflow: auto; }
.page { max-width: 1180px; margin: 0 auto; padding: 48px 32px 40px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.lede { color: var(--muted); max-width: 640px; margin-top: 4px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap;  } .actions.center { justify-content: center; }
section { margin-top: 26px; }
.section-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.section-head > div { display: flex; align-items: center; gap: 8px; }

/* buttons & badges */
.btn { border: 1px solid var(--line-strong); background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 13px; font-weight: 600; font-size: 13px; }
.btn:hover { background: var(--surface-3); border-color: var(--accent); } .btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 5px 10px; font-size: 12px; } .btn.wide { width: 100%; } .btn.text { border: 0; background: none; color: var(--accent); padding: 4px 6px; }
.icon-btn { width: 30px; height: 30px; padding: 0; border: 1px solid transparent; background: none; border-radius: var(--r-sm); font-size: 16px; color: var(--muted); }
.icon-btn:hover { background: var(--surface-3); color: var(--text); } .icon-btn.danger:hover { color: var(--red); }
.badge { display: inline-block; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.badge.game.pokemon { color: var(--pokemon); background: rgba(255,209,102,.12); } .badge.game.lorcana { color: var(--lorcana); background: rgba(195,166,255,.14); }
.badge.status.confirmed { color: var(--green); background: rgba(61,220,151,.12); } .badge.status.rumor { color: var(--amber); background: rgba(255,200,87,.12); }
.badge.kind.in_stock, .badge.kind.restock { color: var(--green); background: rgba(61,220,151,.12); } .badge.kind.queue { color: var(--amber); background: rgba(255,200,87,.12); } .badge.kind.gone { color: var(--muted); }
.badge.src { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; gap: 6px; } .chip { padding: 6px 11px; border: 1px solid var(--line-strong); background: none; border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 600; } .chip.active { color: var(--text); border-color: var(--accent); background: rgba(122,162,255,.1); }
button.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-align: left; } button.link:hover { text-decoration: underline; }

/* glance strip */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 0; }
.glance-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.glance-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.glance-value { font-size: 22px; font-weight: 800; margin-top: 2px; letter-spacing: -.02em; } .glance-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.glance-value.live { color: var(--green); } .glance-value.warn { color: var(--amber); } .glance-value.bad { color: var(--red); }

/* running summary in sidebar */
.run-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; }
.dot-run { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-run.running { background: var(--green); box-shadow: 0 0 8px var(--green); } .dot-run.stopped { background: var(--red); } .dot-run.waiting { background: var(--amber); }

/* watch rows */
.rows { display: flex; flex-direction: column; gap: 6px; }
.watch-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.watch-row:hover { border-color: var(--line-strong); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.watch-row.in_stock .status-dot { background: var(--green); box-shadow: 0 0 10px var(--green); } .watch-row.queue .status-dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.watch-row.error .status-dot, .watch-row.blocked .status-dot { background: var(--red); } .watch-row.watching .status-dot { background: var(--accent); } .watch-row.challenge .status-dot { background: var(--amber); }
.watch-row.run-stopped { opacity: .55; } .watch-row.run-stopped .status-dot { background: var(--red); box-shadow: none; }
.watch-main { min-width: 0; } .watch-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.watch-title-row h3 { max-width: 460px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status.badge.in_stock { color: var(--green); background: rgba(61,220,151,.12); } .status.badge.queue, .status.badge.challenge { color: var(--amber); background: rgba(255,200,87,.12); } .status.badge.error, .status.badge.blocked { color: var(--red); background: rgba(255,107,107,.12); } .status.badge.watching { color: var(--accent); background: rgba(122,162,255,.12); }
.price { font-weight: 700; color: var(--muted); font-size: 13px; } .watch-row.in_stock .price { color: var(--green); }
.detail { font-size: 12.5px; color: #c4cad6; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 640px; } .meta { font-size: 11.5px; margin-top: 1px; }
.watch-actions { display: flex; align-items: center; gap: 4px; opacity: .85; } .watch-row:hover .watch-actions { opacity: 1; }
.run-toggle { font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; border: 1px solid transparent; background: none; }
.run-toggle.running { background: rgba(61,220,151,.14); color: var(--green); border-color: rgba(61,220,151,.4); }
.run-toggle.stopped { background: rgba(255,107,107,.14); color: var(--red); border-color: rgba(255,107,107,.4); }
.run-toggle.waiting { background: rgba(255,200,87,.14); color: var(--amber); border-color: rgba(255,200,87,.4); }

/* available now */
.avail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.avail-card { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.avail-card.in_stock, .avail-card.restock { border-color: rgba(61,220,151,.45); } .avail-card.queue { border-color: rgba(255,200,87,.5); }
.avail-top { display: flex; justify-content: space-between; align-items: center; } .avail-name { font-weight: 650; line-height: 1.35; }
.avail-actions { display: flex; gap: 12px; align-items: center; } .avail-actions .dismiss { color: var(--muted); font-size: 12px; border: 0; background: none; }

/* empty states */
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); margin-top: 20px; }
.empty-icon { font-size: 40px; color: var(--accent); line-height: 1; } .empty h2 { font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 12px 0 6px; }
.empty p { color: var(--muted); max-width: 520px; margin: 0 auto 18px; } .small-empty { padding: 36px 20px; }

/* history, log, news */
.history-row { display: grid; grid-template-columns: 130px 92px minmax(180px, 1fr) minmax(160px, 1.2fr); gap: 12px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: 12px; }
.history-row button.link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-list { padding: 6px 0; } .log-entry { display: grid; grid-template-columns: 150px 60px 1fr; gap: 12px; font-size: 12px; padding: 7px 4px; color: #bcc3cf; border-bottom: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.log-entry .warn { color: var(--amber); } .log-entry .error { color: var(--red); } .log-entry .alert { color: var(--green); }
.news-row { display: grid; grid-template-columns: 52px 120px 1fr; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 12px; }
.news-row.relevant button.link { color: var(--text); } .news-row.hot button.link { color: var(--green); } .news-row button.link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* releases */
.nextup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.next-card { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); padding: 14px 16px; background: var(--surface); }
.next-card.pokemon { border-left-color: var(--pokemon); } .next-card.lorcana { border-left-color: var(--lorcana); }
.next-count { font-size: 22px; font-weight: 800; letter-spacing: -.02em; } .next-name { font-weight: 650; margin: 4px 0 2px; }
.next-pre { margin-top: 8px; font-size: 12px; color: var(--amber); } .next-pre.open { color: var(--green); font-weight: 700; }
.month { margin: 18px 0 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.releases-list { display: grid; gap: 8px; }
.release-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.release-row.rumor { border-style: dashed; }
.release-date { font-weight: 800; font-size: 14px; } .release-title strong { font-size: 15px; } .release-badges { display: flex; gap: 6px; margin: 6px 0; } .release-facts { font-size: 13px; color: #c4cad6; }
.release-main details { margin-top: 8px; } .release-main summary { cursor: pointer; color: var(--accent); font-size: 12px; } .release-notes { margin: 8px 0 4px; font-size: 12.5px; color: #c4cad6; line-height: 1.5; }
.release-sources { display: flex; gap: 10px; margin-top: 4px; } .release-sources button.link { font-size: 11px; }
.release-actions { display: flex; gap: 6px; align-items: center; } button.tiny { padding: 4px 9px; font-size: 12px; }
.preorder-links { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 8px; } .preorder-links button.link { font-size: 12px; }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.sub-tier { margin: 0 0 8px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.sub-card { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--surface); margin-bottom: 8px; }
.sub-head { display: flex; align-items: center; gap: 8px; } .sub-how { font-size: 12px; color: var(--muted); margin-top: 4px; }
.patterns-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; } .patterns-list li { font-size: 12.5px; color: #c4cad6; display: flex; gap: 8px; align-items: flex-start; }

/* collection */
.table-wrap { overflow-x: auto; }
table.coll { width: 100%; border-collapse: collapse; font-size: 13px; }
table.coll th { text-align: left; color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 8px; border-bottom: 1px solid var(--line); }
table.coll td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
table.coll td:first-child { white-space: normal; min-width: 220px; } .coll-name { font-weight: 650; } .coll-actions { display: flex; gap: 2px; }

/* settings page */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
fieldset.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
fieldset.card legend { padding: 0 6px; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }

/* forms & dialogs */
label { position: relative; display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
label input, label select { display: block; width: 100%; margin-top: 5px; padding: 9px 11px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--text); font-weight: 400; }
label input:focus, label select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(122,162,255,.15); }
label.check { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 500; font-size: 13px; } label.check input { width: auto; margin: 0; accent-color: var(--accent); }
.input-suffix { position: absolute; right: 11px; bottom: 10px; color: var(--muted); font-weight: 400; font-size: 12px; pointer-events: none; }
.row { display: flex; gap: 10px; align-items: flex-start; } .row label { flex: 1; }
details summary { cursor: pointer; color: var(--muted); font-size: 12px; } details label { margin-top: 10px; }
dialog { width: min(640px, calc(100vw - 40px)); max-height: calc(100vh - 60px); overflow: auto; border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(4,6,10,.7); backdrop-filter: blur(4px); }
dialog form { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; } .dialog-head h2 { font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--text); } .dialog-head p { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); border-radius: 10px; padding: 10px 16px; font-size: 13px; font-weight: 700; transition: .2s; z-index: 20; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .sidebar { display: none; } .page { padding: 48px 16px 32px; } .glance { grid-template-columns: 1fr 1fr; } .watch-row { grid-template-columns: 10px 1fr; } .watch-actions { grid-column: 2; } .release-row { grid-template-columns: 1fr; } .history-row { grid-template-columns: 1fr; } }

.status.badge.suppressed { color: var(--muted); background: var(--surface-3); }
.watch-row.suppressed .status-dot { background: var(--faint); box-shadow: none; }

.avail-card.line { border-color: rgba(122,162,255,.5); } .badge.kind.line { color: var(--accent); background: rgba(122,162,255,.12); }
.status.badge.line { color: var(--accent); background: rgba(122,162,255,.12); } .watch-row.line .status-dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--r); background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.5); color: var(--text); }

/* Deals page */
.badge.kind.deal { color: var(--green); background: rgba(61,220,151,.12); }
table.deals td .deal-where { display: flex; flex-direction: column; gap: 2px; }
table.deals td:first-child { min-width: 260px; }
.news-row.deal-row { grid-template-columns: 52px 120px 1fr auto; }

/* Windows page */
.win-list { display: flex; flex-direction: column; gap: 8px; }
.win-day { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 4px; }
.win-card { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.win-card.live { border-color: rgba(61,220,151,.5); } .win-card.past { opacity: .7; } .win-card.st-entered { border-left: 3px solid var(--accent); } .win-card.st-won, .win-card.st-bought { border-left: 3px solid var(--green); } .win-card.st-missed { border-left: 3px solid var(--red); }
.win-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .win-when { margin-left: auto; font-size: 12px; color: var(--muted); }
.win-card.live .win-when { color: var(--green); font-weight: 700; }
.win-name { font-weight: 700; font-size: 15px; } .win-notes { color: var(--muted); }
.win-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; } .win-status { display: flex; gap: 4px; flex-wrap: wrap; }
.chip.small { padding: 3px 8px; font-size: 11px; }
.badge.kind.win-invite, .badge.kind.win-draw { color: var(--amber); background: rgba(255,200,87,.12); } .badge.kind.win-queue { color: var(--accent); background: rgba(122,162,255,.12); } .badge.kind.win-preorder, .badge.kind.win-release { color: var(--green); background: rgba(61,220,151,.12); }
/* Scan dialog */
#scan-dialog { width: min(720px, 92vw); }
.scan-stage { position: relative; background: #000; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.scan-stage video { width: 100%; height: 100%; object-fit: cover; }
.scan-guide { position: absolute; inset: 12% 18%; border: 2px dashed rgba(255,255,255,.55); border-radius: 10px; pointer-events: none; }
.scan-controls { margin-top: 10px; align-items: end; } .scan-file input { display: block; margin-top: 4px; }

/* ---- web shell (printedprice.com) ---- */
html, body { height: auto; min-height: 100%; }
.shell { min-height: 100vh; height: auto; }
.sidebar { position: sticky; top: 0; height: 100vh; padding-top: 22px; }
.content { overflow: visible; }
.page { padding-top: 28px; }
a.link, a { color: var(--accent); text-decoration: none; font-weight: 600; } a:hover { text-decoration: underline; }
.tabs { display: none; }
.foot { margin: 34px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.prose p, .prose li { font-size: 14.5px; line-height: 1.6; color: #d5dae6; } .prose ul { padding-left: 20px; } .prose li { margin-bottom: 8px; } .prose h2 { margin: 20px 0 8px; } .prose p { margin-bottom: 10px; }
.line-card { border-color: rgba(122,162,255,.35); }
.evidence { margin: 8px 0 0; padding: 0; list-style: none; } .evidence li { font-size: 12.5px; padding: 5px 0; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.badge.official { color: var(--green); background: rgba(61,220,151,.12); } .badge.press { color: var(--accent); background: rgba(122,162,255,.12); } .badge.retailer { color: var(--amber); background: rgba(255,200,87,.12); }
.badge.status.multiple { color: var(--amber); background: rgba(255,200,87,.12); } .badge.status.listed { color: var(--accent); background: rgba(122,162,255,.12); }
.rumor-card { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--surface); } .rumor-card.rumor { border-style: dashed; } .rumor-grid { display: grid; gap: 10px; }
.stamp { font-size: 11px; color: var(--faint); }
@media (max-width: 900px) {
  .tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: rgba(12,15,21,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); z-index: 10; }
  .tab { flex: 1; background: none; border: 0; color: var(--muted); font-weight: 700; font-size: 12px; padding: 9px 2px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; } .tab .nav-icon { font-size: 16px; } .tab.active { color: var(--text); background: var(--surface-3); }
  .page { padding: calc(14px + env(safe-area-inset-top)) 14px calc(90px + env(safe-area-inset-bottom)); }
  .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; } .mobile-brand img { width: 30px; height: 30px; border-radius: 8px; }
  h1 { font-size: 21px; } .page-head { flex-direction: column; gap: 10px; } .glance { grid-template-columns: 1fr 1fr; }
  .news-row { grid-template-columns: 44px 1fr; } .news-row .badge.src { display: none; } .news-row.deal-row { grid-template-columns: 44px 1fr auto; }
  table.coll td:first-child { min-width: 160px; } table.deals td:first-child { min-width: 180px; }
}
@media (min-width: 901px) { .mobile-brand { display: none; } }
.glance.flush { margin-top: 0; } .hint.spaced { margin-bottom: 10px; }
a.view-btn, a.tab { text-decoration: none; } a.view-btn { color: var(--muted); } a.view-btn:hover { text-decoration: none; color: var(--text); } a.view-btn.active { color: var(--text); } a.tab { color: var(--muted); } a.tab.active { color: var(--text); } a.tab:hover { text-decoration: none; }
.about-link { margin-left: auto; font-size: 13px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 10px; } .about-link:hover { text-decoration: none; color: var(--text); }
.coll-settings { align-items: flex-end; flex-wrap: wrap; } .coll-settings label { max-width: 220px; }
.file-btn { display: inline-flex; align-items: center; color: var(--text); font-size: 13px; cursor: pointer; } .file-btn input { display: none; }
.coll-sub { color: var(--muted); font-size: 12px; margin-top: 2px; } .coll-src { font-size: 11px; color: var(--faint); }
.content { min-width: 0; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .top-brand { position: sticky; top: 0; z-index: 9; margin: 0; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: rgba(12,15,21,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .page { padding-top: 16px; }
  .actions { width: 100%; }
}
.badge.game.mtg { color: #f0a36b; background: rgba(240,163,107,.12); } .badge.game.onepiece { color: #ff8a8a; background: rgba(255,138,138,.12); }
.chips { flex-wrap: wrap; }
.badge.lang { color: var(--text); background: rgba(255,255,255,.08); text-transform: none; letter-spacing: 0; font-weight: 700; }
#view-deals .actions { flex-direction: column; align-items: flex-end; } @media (max-width: 900px) { #view-deals .actions { align-items: flex-start; } }

/* landing intro */
.intro { border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(122,162,255,.10), rgba(61,220,151,.06)); padding: 20px 22px; margin-bottom: 24px; }
.intro-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.intro-title { font-size: 26px; letter-spacing: -.02em; } .intro-lede { color: #c4cad6; font-size: 15px; margin-top: 6px; max-width: 680px; }
.intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 16px; }
.intro-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; color: var(--text); font-weight: 400; }
.intro-card:hover { border-color: var(--accent); text-decoration: none; } .intro-k { font-weight: 800; color: var(--accent); margin-bottom: 4px; } .intro-v { color: #c4cad6; font-size: 13px; line-height: 1.45; }
.intro-mini { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
@media (max-width: 900px) { .intro { padding: 16px; } .intro-title { font-size: 21px; } .intro-grid { grid-template-columns: 1fr 1fr; } .intro-v { font-size: 12.5px; } }

/* store playbook */
.playbook-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.play-card { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--pokemon); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.play-card.lorcana { border-left-color: var(--lorcana); }
.play-top { display: flex; justify-content: space-between; align-items: center; } .play-store { font-weight: 800; font-size: 15px; }
.play-head { font-weight: 650; line-height: 1.35; }
.play-facts { display: flex; flex-wrap: wrap; gap: 5px; } .play-fact { font-size: 11.5px; font-weight: 600; color: #c4cad6; background: var(--surface-3); border-radius: 999px; padding: 3px 9px; }
.play-tip { font-size: 13px; color: #c4cad6; line-height: 1.45; } .play-tip strong { color: var(--green); }
.play-note { font-size: 12px; color: var(--amber); line-height: 1.4; } .play-link { font-size: 12.5px; }
.badge.community { color: var(--muted); }
.filter-actions { flex-direction: column; align-items: flex-end; gap: 6px; } @media (max-width: 900px) { .filter-actions { align-items: flex-start; } }
@media (max-width: 900px) { .filter-actions { width: 100%; } .filter-actions .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; scrollbar-width: none; } .filter-actions .chips::-webkit-scrollbar { display: none; } .filter-actions .chip { flex: none; } }

/* site-wide game switch */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.game-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; margin: 0 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.gs-btn { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 12px; padding: 7px 4px; border-radius: 7px; }
.gs-btn:hover { color: var(--text); } .gs-btn.active { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.gs-btn.active[data-site-game="pokemon"] { color: var(--pokemon); } .gs-btn.active[data-site-game="lorcana"] { color: var(--lorcana); }
.game-pick { margin-left: auto; position: relative; }
.game-pick select { appearance: none; -webkit-appearance: none; background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238e99b0' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center; border: 1px solid var(--line-strong); color: var(--text); font-weight: 700; font-size: 13px; padding: 6px 28px 6px 12px; border-radius: 999px; }
.top-brand .about-link { margin-left: 8px; }
body[data-game="pokemon"] .game-pick select { color: var(--pokemon); } body[data-game="lorcana"] .game-pick select { color: var(--lorcana); }
@media (max-width: 900px) { .intro-card:last-child:nth-child(odd) { grid-column: span 2; } .intro-lede { font-size: 14px; } .intro-k { font-size: 13.5px; } }
.game-switch { grid-template-columns: repeat(2, 1fr); } .game-switch .gs-btn[data-site-game="all"] { grid-column: span 2; }
.gs-btn.active[data-site-game="onepiece"] { color: #ff8a8a; } .gs-btn.active[data-site-game="mtg"] { color: #f0a36b; }
body[data-game="onepiece"] .game-pick select { color: #ff8a8a; } body[data-game="mtg"] .game-pick select { color: #f0a36b; }
.next-card.onepiece { border-left-color: #ff8a8a; } .next-card.mtg { border-left-color: #f0a36b; }
.play-card.onepiece { border-left-color: #ff8a8a; } .play-card.mtg { border-left-color: #f0a36b; }
