:root {
  --bg: #0b0d10;
  --panel: #12161b;
  --panel-2: #181d23;
  --line: #232a32;
  --text: #e6e9ee;
  --muted: #8a94a3;
  --accent: #35d07f;        /* bargain green */
  --accent-ink: #06210f;
  --warn: #f2b84b;
  --bad: #ef6461;
  --tcg: #4ea1ff;
  --ebay: #f2b84b;
  --amazon: #ff9f43;
  --radius: 10px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* never let a layout rule (display:grid/flex) un-hide something */
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11,13,16,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1400px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .02em; font-size: 18px; }
.brand-logo { width: 34px; height: 34px; flex: none; display: block; }
.nav-account { text-decoration: none; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.nav-account:hover { color: var(--text); }
.nav-account.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #1f8f55); display: grid; place-items: center; color: var(--accent-ink); font-family: var(--mono); font-weight: 800; font-size: 13px; }
.brand b { color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.nav a.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.top .spacer { flex: 1; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.live-dot.demo::before { background: var(--warn); box-shadow: 0 0 8px var(--warn); }

.sound-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid #2c5e44; color: var(--accent); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.sound-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sound-btn.off { color: var(--muted); border-color: var(--line); text-decoration: line-through; }
.sound-btn:hover { filter: brightness(1.15); }

main { max-width: 1400px; margin: 0 auto; padding: 16px; }

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.ctl { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
.ctl:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search { flex: 1 1 220px; min-width: 180px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; user-select: none; font-size: 13px; }
.chip input { accent-color: var(--accent); margin: 0; }
.chip.price-toggle { border-color: #2c5e44; }
.view-hidden { display: none !important; }

/* "All games" dropdown with a checkbox per game */
.games-dd { position: relative; }
.games-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.games-btn span { color: var(--muted); font-size: 11px; }
.games-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 230px; max-height: 70vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.gm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 4px;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gm-head.gm-sports { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.gm-quick button { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 11px; font-weight: 700; padding: 2px 4px; }
.gm-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text); text-transform: none; letter-spacing: 0; }
.gm-row:hover { background: var(--panel-2); }
.gm-row input { accent-color: var(--accent); margin: 0; }
.gm-master { padding: 0; font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gm-master:hover { background: none; }
.gm-note { font-size: 10px; text-transform: none; letter-spacing: 0; }

/* table */
.feed { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
td.c-buy { width: 1%; }
td.c-buy .btn { padding: 7px 12px; font-size: 13px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); cursor: pointer; white-space: nowrap; }
/* data columns: value centred under its column name */
th.num, td.num, th[data-key="ends"], td.ends { text-align: center; }
th.sorted { color: var(--accent); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.row:hover td { background: #151a20; }
tr.section td { background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 8px 12px; }
tr.section .tag { margin-right: 8px; }
.card-cell { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.thumb { width: 42px; height: 58px; border-radius: 4px; object-fit: cover; background: var(--panel-2); flex: none; border: 1px solid var(--line); }
.thumb.ph { display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.card-title { font-weight: 600; line-height: 1.3; }
.card-sub { color: var(--muted); font-size: 12px; margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag { display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; letter-spacing: .03em; }
.tag.tcgplayer { background: rgba(78,161,255,.14); color: var(--tcg); }
.tag.ebay { background: rgba(242,184,75,.14); color: var(--ebay); }
.tag.cat { background: var(--panel-2); color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.sprite { flex: none; vertical-align: -2px; object-fit: contain; }
svg.sprite[shape-rendering] { image-rendering: pixelated; }
/* black Magic icon: thin light outline so it shows on the dark theme (image itself stays black on transparent) */
img.icon-magic { filter: drop-shadow(0 0 .6px rgba(230,236,243,.95)) drop-shadow(0 0 .6px rgba(230,236,243,.95)) drop-shadow(0 0 1.5px rgba(230,236,243,.35)); }
.nav a .sprite { margin-right: 6px; }
/* nav item with a dropdown (Riftbound Tools) */
.nav-dd .caret { font-size: 10px; margin-left: 3px; opacity: .8; }
.nav-dd[aria-expanded="true"] { color: var(--text); background: var(--panel-2); }
.nav-menu { position: fixed; z-index: 40; min-width: 250px; max-width: calc(100vw - 32px); background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.nav-menu a { display: block; padding: 9px 12px; border-radius: 6px; text-decoration: none; color: var(--muted); font-weight: 600; }
.nav-menu a:hover, .nav-menu a:focus { background: var(--panel-2); color: var(--text); outline: none; }
.nav-menu a.active { color: var(--accent); }
/* 1st vs 2nd print comparison */
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 14px; }
.cmp { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.cmp a { display: block; }
.cmp img { display: block; width: 100%; height: auto; background: var(--panel-2); }
.cmp figcaption { padding: 12px 14px; line-height: 1.5; }
.cmp figcaption h3 { margin: 0 0 6px; font-size: 15px; }
.cmp figcaption ul { margin: 0; padding-left: 18px; color: var(--muted); }
.cmp figcaption li { margin: 3px 0; }
.cmp figcaption b { color: var(--text); }
.title-sprite { margin-right: 10px; vertical-align: -3px; }
.thumb.ph .sprite { opacity: .9; }
.tag.grade { background: #1e2630; color: var(--text); }
.tag.lowvol { background: rgba(239,100,97,.12); color: var(--bad); }
.mono { font-family: var(--mono); }
.price { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.muted { color: var(--muted); }
.pct { font-family: var(--mono); font-weight: 700; padding: 3px 8px; border-radius: 6px; display: inline-block; min-width: 52px; text-align: center; }
.pct.hot { background: rgba(53,208,127,.16); color: var(--accent); }
.pct.good { background: rgba(53,208,127,.08); color: #8fe3b6; }
.pct.meh { background: var(--panel-2); color: var(--muted); }
.ends { font-family: var(--mono); white-space: nowrap; }
.ends.soon { color: var(--bad); font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.tcgplayer { background: var(--tcg); color: #04172e; }
.btn.ebay { background: var(--ebay); color: #2a1c02; }
.btn.amazon { background: var(--amazon); color: #2a1402; }
.btn.ghost { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); }
.btn:hover { filter: brightness(1.08); }
.empty { padding: 48px; text-align: center; color: var(--muted); }
.count { color: var(--muted); font-size: 12px; font-family: var(--mono); padding: 10px 2px; }

/* accessories */
.acc-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.acc-head h1 { margin: 0; font-size: 22px; }
.acc-head p { margin: 4px 0 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.acc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.acc .icon { width: 100%; aspect-ratio: 16/10; border-radius: 8px; background: var(--panel-2); display: grid; place-items: center; overflow: hidden; }
.acc .icon img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.acc .icon svg { width: 44px; height: 44px; stroke: var(--amazon); }
.acc h3 { margin: 0; font-size: 15px; }
.acc p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; }
.acc .row-b { display: flex; justify-content: space-between; align-items: center; }

/* pack EV tools */
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--accent); margin-bottom: 4px; }
.mock-banner { background: rgba(242,184,75,.1); border: 1px solid rgba(242,184,75,.4); color: var(--warn); border-radius: 8px; padding: 9px 12px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.ev-controls { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 12px; }
.slider { display: flex; flex-direction: column; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; min-width: 220px; }
.slider span { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.slider b { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.slider small { font-size: 11px; }
.slider input { accent-color: var(--accent); width: 100%; }
.evt th { font-size: 10.5px; }
.evt tr.grp th { cursor: default; background: var(--bg); color: var(--muted); font-size: 10px; letter-spacing: .12em; padding: 6px 12px; }
.evt th.c { text-align: center; border-left: 1px solid var(--line); }
.evt td { font-family: var(--mono); white-space: nowrap; }
.evt td.set { font-family: var(--sans); white-space: normal; min-width: 170px; }
.evt td.set b { display: block; }
.evt td.set span { color: var(--muted); font-size: 11px; font-family: var(--mono); text-transform: uppercase; }
.evt tr.click { cursor: pointer; }
.evt tr.click:hover td { background: #151a20; }
.evt td.hl { color: var(--accent); font-weight: 700; }
.pos { color: var(--accent); }
.neg { color: var(--bad); }
.ret { font-weight: 700; padding: 3px 8px; border-radius: 6px; display: inline-block; min-width: 54px; text-align: center; }
.ret.pos { background: rgba(53,208,127,.16); }
.ret.neg { background: rgba(239,100,97,.1); }
.play { font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.play.grade { background: rgba(53,208,127,.16); color: var(--accent); }
.play.raw { background: var(--panel-2); color: var(--muted); }
.notes { color: var(--muted); font-size: 12px; line-height: 1.6; padding: 12px 2px; }
.notes b { color: var(--text); font-family: var(--mono); font-size: 11px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 12px 0; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.tile .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile .v { font-family: var(--mono); font-size: 26px; font-weight: 700; margin: 6px 0 2px; }
.tile .s { font-size: 12px; color: var(--muted); }
.ev-two { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr); gap: 12px; margin-bottom: 12px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.box h3 { margin: 0 0 4px; font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.box p.s { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.pay { display: flex; align-items: center; gap: 10px; margin: 7px 0; font-size: 12px; }
.pay .l { flex: 0 0 110px; text-align: right; color: var(--muted); }
.pay .bar { flex: 1; height: 12px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.pay .bar i { display: block; height: 100%; }
.pay .p { flex: 0 0 48px; font-family: var(--mono); font-weight: 700; }
.back { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font-weight: 600; }
.back:hover { color: var(--text); }
.cthumb { width: 34px; height: 47px; border-radius: 3px; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line); flex: none; }
.ccell { display: flex; align-items: center; gap: 10px; font-family: var(--sans); white-space: normal; min-width: 200px; }
.ccell small { display: block; color: var(--muted); font-size: 11px; }
.evt tr.dist td { background: var(--bg); white-space: normal; }
.mini { width: auto; border-collapse: collapse; font-size: 12px; }
.mini td, .mini th { padding: 4px 10px; border-bottom: 1px solid var(--line); background: none; cursor: default; }
.links { display: flex; gap: 6px; }
.links .btn { padding: 5px 9px; font-size: 11.5px; }

ol.steps { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
ol.steps b, ol.steps code { color: var(--text); }

/* AdSense in-feed rows */
tr.ad-row td { padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel); }
.ad-label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ad-note { font-size: 10.5px; letter-spacing: 0; text-transform: none; color: var(--muted); opacity: .85; }
.ad-note a { color: var(--accent); text-decoration: underline; }
.ad-preview { border: 1px dashed #3a4552; border-radius: 8px; padding: 22px 12px; text-align: center; color: var(--muted); font-size: 13px; font-family: var(--mono); }
tr.ad-row ins.adsbygoogle { min-height: 90px; }
.ad-bottom { max-width: 1400px; margin: 8px auto 0; padding: 12px 16px 0; }
.ad-bottom ins.adsbygoogle { min-height: 90px; }

/* listing actions: bell + buy + bought */
.buy-row { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.bell { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); cursor: pointer; padding: 0; }
.bell svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bell:hover { color: var(--text); border-color: #3a4552; }
.bell.on { color: var(--warn); border-color: rgba(242,184,75,.5); background: rgba(242,184,75,.1); }
.bell.on svg { fill: currentColor; }
.btn.bought { padding: 7px 10px; font-size: 12px; }

/* dialog + toast */
.dlg { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 0; width: min(440px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(0,0,0,.6); }
.dlg form { padding: 22px; position: relative; }
.dlg h2 { margin: 0 0 6px; font-size: 19px; }
.dlg-x { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); margin: 12px 0 0; flex: 1; }
.fld input, .fld select { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; color: var(--text); font-size: 14px; }
.fld input:focus, .fld select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.fld-row { display: flex; gap: 12px; flex-wrap: wrap; }
.tos-box { margin-top: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.tos-box b { color: var(--text); font-size: 12.5px; }
.tos-box ul { margin: 6px 0 0; padding-left: 16px; line-height: 1.5; }
.fld-check a { color: var(--accent); }
.dlg { max-height: 92vh; overflow: auto; }
.fld-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin-top: 12px; line-height: 1.4; cursor: pointer; }
.fld-check input { accent-color: var(--accent); margin-top: 2px; }
.dlg-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.msg { font-size: 13px; margin-top: 8px; min-height: 0; }
.msg.err { color: var(--bad); } .msg.ok { color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: min(520px, calc(100vw - 32px)); font-size: 14px; }
.toast-actions { display: flex; gap: 8px; margin-top: 10px; }

/* account tab */
.acct-empty { max-width: 460px; margin: 30px auto; }
.acct-empty h1 { margin: 0 0 6px; }
.acct-auth { margin-top: 16px; }
.acct-btns { display: flex; gap: 8px; }
#acct-range { margin-bottom: 4px; }
.acct-h { font-size: 15px; margin: 22px 0 10px; }
.acct-set { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.fld-inline { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.pill-s { font-size: 11px; font-family: var(--mono); padding: 2px 7px; border-radius: 5px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.pill-s.ok { background: rgba(53,208,127,.14); color: var(--accent); }
.chart { width: 100%; min-height: 220px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax0 { stroke: #3a4552; stroke-width: 1; }
.chart .yl { fill: var(--muted); font: 11px var(--mono); text-anchor: end; }
.chart .xl { fill: var(--muted); font: 11px var(--sans); }
.chart .bar { fill: var(--tcg); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart rect.hit.on { fill: rgba(255,255,255,.04); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: rgba(53,208,127,.12); }
.chart .xh { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.chart-tip { position: fixed; z-index: 60; pointer-events: none; background: #0f1318; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.5; box-shadow: 0 6px 20px rgba(0,0,0,.5); }

/* Terms of Service page */
main.legal { max-width: 820px; line-height: 1.65; }
main.legal h1 { margin: 10px 0 4px; }
main.legal h2 { font-size: 17px; margin: 30px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
main.legal p, main.legal li { color: #c9d1db; }
main.legal a { color: var(--accent); }
main.legal ul { padding-left: 20px; }
main.legal .toc { font-size: 13px; line-height: 2; margin: 14px 0 18px; color: var(--muted); }
main.legal .pre { white-space: pre-line; }
footer .legal-links { margin-top: 6px; }
footer .legal-links a { color: var(--muted); }
.disclose-line { font-size: 12px; color: var(--muted); margin: -4px 0 10px; }
.disclose-line a { color: var(--muted); }

footer { max-width: 1400px; margin: 24px auto; padding: 0 16px 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* responsive: table rows become cards */
@media (max-width: 1000px) {
  .top-inner { gap: 10px; flex-wrap: wrap; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr.row { border-bottom: 1px solid var(--line); padding: 10px 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
  tr.row td { border: 0; padding: 0; background: none !important; }
  tr.row td.c-card { grid-column: 1 / -1; }
  /* phone cards: each value centred under its name, 3 per row */
  tr.row td[data-label], tr.row td.num { text-align: center; }
  tr.row td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
  tr.row td.c-buy { grid-column: 1 / -1; width: auto; }
  tr.row td.c-buy .btn { width: 100%; }
  tr.row td.c-buy .buy-row .btn { width: auto; flex: 1; }
  .card-cell { min-width: 0; }
  /* pack EV tables stay real tables and scroll sideways */
  table.evt, table.mini { display: table; } .evt thead { display: table-header-group; } .evt tbody, .mini tbody { display: table-row-group; }
  .evt tr, .mini tr { display: table-row; } .evt td, .evt th, .mini td, .mini th { display: table-cell; width: auto; }
  table.mini[style] { width: 100% !important; }
  .ev-two { grid-template-columns: 1fr; }
  /* nav becomes its own swipeable row */
  .brand-logo { width: 30px; height: 30px; }
  .sound-btn { padding: 6px 8px; }
  .sound-btn span { display: none; }       /* icon-only so Account stays beside SFX */
  .nav-account { padding: 6px 10px; }
  .live-dot { order: 6; }
  .nav { order: 5; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; flex: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile .v { font-size: 20px; }
  .acc-head .acct-btns { width: 100%; }
  .slider { flex: 1 1 100%; }
}
