/* SnapStack on the web: the Android app's look (ui/Theme.kt). Design pass 2026-11-19: the "SnapStack" design system, Night
   theme: gold is money, pink is "do this", cyan is live only, one flat raised layer. Overrides at the end of the file. */

/* Space Grotesk (SIL Open Font Licence, fonts/OFL-space-grotesk.txt) for headings and prices. */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/space-grotesk-700.woff2') format('woff2'); }

:root {
  --bg: #0B0714;
  --surface: #140D20;
  --surface-high: #1D1430;
  --surface-top: #291D40;
  --pink: #FF4FA8;
  --action: #E0157F;
  --gold: #FFC83D;
  --on-gold: #1A1028;
  --line: #34264C;
  --purple: #B14CFF;
  --cyan: #23E7FF;
  --amber: #FFB547;
  --green: #3CFF8F;
  --red: #FF5470;
  /* ((2026-11-20) LIVE's light: a real red (the owner asked for red here, though cyan is the design's "live" colour),
     and a lighter one for the word, readable on these dark surfaces.) */
  --live-red: #FF3B30;
  --live-red-text: #FF6159;
  --text: #F6F0FF;
  --muted: #A99CC0;
  --faint: #8E81A8;
  --outline: #34264C;
  --glass: #140D20;
  --glass-2: #1D1430;
  --glass-3: #291D40;
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 10% -10%, rgba(177, 76, 255, 0.18), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(255, 46, 151, 0.12), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-family: var(--display); }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 18px; font-weight: 700; }
p { margin: 0.4em 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.block { display: block; }
.mono-label { font: 600 11px/1.4 var(--mono); letter-spacing: 0.12em; color: var(--faint); text-transform: uppercase; }
.mono-label.pro { color: var(--green); }
.price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.big { font-size: 20px; font-weight: 700; }

/* ---- booting and signing in ---- */

.booting, .signin { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.boot { text-align: center; color: var(--muted); }
.boot img { border-radius: 22px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; transform: scale(0.97); } }
.signin-card {
  width: min(440px, 100%);
  text-align: center;
  padding: 36px 28px;
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--outline);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 46, 151, 0.08);
}
.signin-logo { border-radius: 22px; box-shadow: 0 0 40px rgba(255, 46, 151, 0.35); }
.signin-card h1 { margin: 14px 0 6px; font-size: 32px; background: linear-gradient(90deg, var(--pink), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gsi-button { display: flex; justify-content: center; min-height: 44px; margin: 22px 0 8px; }
.signin-status { min-height: 1.5em; color: var(--amber); }

/* ---- shell ---- */

.shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 10px max(16px, calc((100vw - 1200px) / 2));
  background: rgba(10, 6, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--outline);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.brand b { color: var(--pink); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav-link svg { width: 18px; height: 18px; fill: currentColor; }
.nav-link:hover { background: var(--glass); color: var(--text); text-decoration: none; }
.nav-link.on { background: rgba(255, 46, 151, 0.14); color: var(--pink); box-shadow: inset 0 0 0 1px rgba(255, 46, 151, 0.35); }

.view { max-width: 1200px; margin: 0 auto; padding: 24px 16px 96px; }
.page { display: flex; flex-direction: column; gap: 18px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.page-head h1 { flex: 1 1 auto; min-width: 0; }
.page-head > .muted { flex-basis: 100%; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { color: var(--muted); font-weight: 600; flex-basis: 100%; }

/* ---- panels, stats, layout ---- */

.panel {
  background: linear-gradient(180deg, var(--glass), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}
.panel-title { margin-bottom: 12px; font-size: 16px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
.stat { background: var(--glass); border: 1px solid var(--outline); border-radius: 12px; padding: 10px 14px; min-width: 120px; }
.stat-value { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.button-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.more { display: inline-block; margin-top: 10px; font-weight: 600; }
.inline { display: flex; gap: 8px; margin-top: 12px; }
.inline input { flex: 1; min-width: 0; }

.hero {
  padding: 26px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 46, 151, 0.35);
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(255, 46, 151, 0.25), transparent 70%),
    radial-gradient(500px 220px at 100% 100%, rgba(35, 231, 255, 0.14), transparent 70%),
    var(--surface);
}
.hero-value { font-size: clamp(34px, 6vw, 52px); font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(255, 46, 151, 0.35); }
.hero-sub { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); }

.delta { font: 600 12px/1.4 var(--mono); }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }

/* ---- buttons and forms ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--outline); background: var(--glass-2); color: var(--text);
  font: 600 14px/1.2 inherit; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--glass-3); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn.primary { background: linear-gradient(90deg, var(--pink), var(--purple)); border-color: transparent; color: #fff; box-shadow: 0 6px 24px rgba(255, 46, 151, 0.3); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--cyan); border-color: rgba(35, 231, 255, 0.35); }
.btn.danger { background: transparent; color: var(--red); border-color: rgba(255, 77, 109, 0.45); }
.btn.wide { width: 100%; margin-top: 10px; }
.icon-btn { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 15px; padding: 4px 6px; border-radius: 8px; }
.icon-btn:hover { color: var(--amber); background: var(--glass); }

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--pink); outline: none; box-shadow: 0 0 0 3px rgba(255, 46, 151, 0.18); }
textarea { resize: vertical; }
input[type='checkbox'] { width: 18px; height: 18px; accent-color: var(--pink); vertical-align: -3px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; }
.form-row > .field { flex: 1 1 140px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-label { font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.field-hint { font-size: 12px; color: var(--faint); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }

/* ---- search ---- */

.search-box { position: relative; }
.search-input { padding: 14px 18px; font-size: 17px; border-radius: 999px; background: var(--surface-high); }
.suggest {
  position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface-high); border: 1px solid var(--outline); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.suggest li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.suggest li:hover, .suggest li.on { background: rgba(255, 46, 151, 0.14); }
.suggest .muted { font-size: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--outline); background: var(--glass); color: var(--muted);
  font: 600 13px/1.2 inherit; cursor: pointer;
}
.chip:hover { color: var(--text); text-decoration: none; }
.chip.on { color: var(--text); border-color: var(--pink); background: rgba(255, 46, 151, 0.16); }
.chip-price { color: var(--cyan); font-variant-numeric: tabular-nums; }
.results { display: flex; flex-direction: column; gap: 12px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.game-tile {
  position: relative; display: flex; align-items: flex-end; min-height: 110px; overflow: hidden;
  padding: 12px; border-radius: 14px; border: 1px solid var(--outline); background: var(--surface-high);
  color: var(--text); font-weight: 700;
}
.game-tile:hover { border-color: var(--pink); text-decoration: none; }
.game-tile .tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.game-tile span { position: relative; text-shadow: 0 2px 8px #000; }

/* ---- card tiles and pictures ---- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.card-tile {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--outline); background: var(--surface);
  color: var(--text); transition: transform 0.12s, border-color 0.12s;
}
.card-tile:hover { transform: translateY(-2px); border-color: var(--pink); text-decoration: none; }
.card-pic { aspect-ratio: 63 / 88; background: var(--surface-high); display: grid; place-items: center; overflow: hidden; }
.card-tile .card-pic { margin: 10px 10px 0; border-radius: 8px; }
.card-img { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity 0.2s; }
.card-img.loading { opacity: 0; }
.card-img.missing { opacity: 0; }
.card-meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-name { font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-set { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 6px; }
.game-tag { font: 600 10px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- a card's page ---- */

.card-page { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.card-pic.big { border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(177, 76, 255, 0.15); }
.card-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-info h1 { font-size: 30px; }
.card-info .panel { margin-top: 10px; }
.price-big { font-size: 36px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--text); text-shadow: 0 0 24px rgba(35, 231, 255, 0.3); margin-top: 6px; }
.no-pic { display: grid; place-items: center; width: 100%; height: 100%; color: var(--faint); font-size: 22px; font-weight: 800; background: var(--surface-high); }
.no-pic.big { aspect-ratio: 63 / 88; font-size: 64px; border-radius: 16px; }
.owned { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.owned-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--glass); color: var(--text); }
.owned-row:hover { background: var(--glass-2); text-decoration: none; }
.grade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 8px; }
.grade-cell { padding: 10px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--outline); }
.printings { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.printing { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--glass); border: 1px solid var(--outline); color: var(--text); }
.printing .card-img { aspect-ratio: 63 / 88; }
.printing.current { border-color: var(--pink); }
a.printing:hover { border-color: var(--cyan); text-decoration: none; }
.listing { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--text); }
.listing:hover { background: var(--glass); text-decoration: none; }
.listing img, .listing .no-pic { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; }
.listing-main { flex: 1; min-width: 0; }
.listing-main .small:first-child { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---- the collection ---- */

.filters { display: grid; grid-template-columns: minmax(0, 1fr) 200px 220px; gap: 10px; }
.filters .search-input { font-size: 15px; padding: 10px 16px; }
.list { display: flex; flex-direction: column; gap: 6px; }
.item-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 8px 12px 8px 8px; border-radius: 12px; color: var(--text);
  background: rgba(255, 255, 255, 0.03); border: 1px solid transparent;
}
.item-row:hover { background: var(--glass); border-color: var(--outline); text-decoration: none; }
.item-pic { width: 52px; aspect-ratio: 63 / 88; border-radius: 6px; overflow: hidden; background: var(--surface-high); }
.item-main { min-width: 0; }
.item-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.tag { font: 600 10px/1.5 var(--mono); letter-spacing: 0.05em; padding: 0 6px; border-radius: 6px; background: var(--glass-2); color: var(--muted); }
.tag.slab { background: rgba(255, 181, 71, 0.16); color: var(--amber); }
.tag.own { background: rgba(35, 231, 255, 0.14); color: var(--cyan); }
.qty { margin-left: 6px; color: var(--pink); font-weight: 800; }
.item-value { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.each { font-size: 12px; color: var(--faint); }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); border: 1px dashed var(--outline); border-radius: var(--radius); }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.empty .link-row, .empty .btn { justify-content: center; margin-top: 14px; }
.error-box { padding: 16px; border-radius: 14px; border: 1px solid rgba(255, 77, 109, 0.4); background: rgba(255, 77, 109, 0.08); color: var(--text); }
.error-box .btn { margin-top: 8px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 18px 4px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--outline); border-top-color: var(--pink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- binders ---- */

/* The shelf: each binder stands closed, its cover facing out (the app's BinderCover). */
.binder-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px 24px; padding: 6px 4px 10px; }
.binder { --c: var(--muted); display: flex; flex-direction: column; gap: 12px; color: var(--text); perspective: 900px; }
.binder:hover { text-decoration: none; }
.binder-cover {
  --c: var(--muted);
  position: relative; display: flex; aspect-ratio: 3 / 4; width: 100%;
  border-radius: 6px 16px 16px 6px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 38%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 5px),
    linear-gradient(160deg, color-mix(in srgb, var(--c) 32%, var(--bg)), color-mix(in srgb, var(--c) 10%, #000));
  border: 1.5px solid color-mix(in srgb, var(--c) 75%, transparent);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55), 0 0 26px color-mix(in srgb, var(--c) 28%, transparent);
  transform-origin: left center; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* The pages' edges peeking out at the opening side. */
.binder-cover::before {
  content: ''; position: absolute; top: 7px; bottom: 7px; right: -6px; width: 7px; z-index: -1;
  border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(90deg, #d9d3e3 0 1px, #9d95ab 1px 2px);
}
.binder:hover .binder-cover, .binder:focus-visible .binder-cover {
  transform: rotateY(-14deg) translateX(2px);
  box-shadow: 22px 22px 40px rgba(0, 0, 0, 0.6), 0 0 36px color-mix(in srgb, var(--c) 45%, transparent);
}
.binder-spine {
  position: relative; flex: 0 0 13%;
  border-radius: 5px 0 0 5px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.62));
  border-right: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
}
.binder-spine i {
  position: absolute; left: 22%; width: calc(80% + 6px); height: 7px; border-radius: 4px;
  background: linear-gradient(180deg, #f2eef8, #9a93a8 55%, #4a4458);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}
.binder-spine i:nth-child(1) { top: 20%; }
.binder-spine i:nth-child(2) { top: 50%; }
.binder-spine i:nth-child(3) { top: 80%; }
.binder-front { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 12px; min-width: 0; }
.binder-insert {
  position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden;
  border-radius: 8px; background: #f7f4fb; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), inset 0 8px 14px rgba(0, 0, 0, 0.08);
}
.binder-insert.card { background: linear-gradient(160deg, #241836, #0e0818); }
.binder-insert .insert-img { width: 86%; height: 86%; object-fit: contain; }
.binder-insert .insert-card { height: 92%; width: auto; max-width: 92%; object-fit: contain; border-radius: 5px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55); }
.binder-insert .initials {
  display: none; font: 700 clamp(26px, 5vw, 40px)/1 var(--display); letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--c) 70%, #fff);
}
.binder-insert.none { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, #1a1226), #0c0814); }
.binder-insert .initials.show, .binder-insert img.missing + .initials { display: block; }
.binder-insert img.missing { position: absolute; }
/* (The sleeve-like shine across the insert.) */
.binder-insert::after { content: ''; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255, 255, 255, 0.35), transparent 35%); pointer-events: none; }
.binder-plate {
  position: relative; padding: 7px 14px; border-radius: 8px; text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.78));
  border: 1px solid color-mix(in srgb, var(--c) 80%, transparent);
}
.binder-plate span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 700 14px/1.25 var(--display); }
/* Two small screws holding the plate on. */
.binder-plate::before, .binder-plate::after {
  content: ''; position: absolute; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 60%, transparent);
}
.binder-plate::before { left: 5px; }
.binder-plate::after { right: 5px; }
.binder-info { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.binder-stats { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); }
.bar { height: 5px; border-radius: 3px; background: var(--outline); overflow: hidden; margin: 2px 0; }
.bar.big { height: 8px; margin: 10px 0 4px; max-width: 420px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--c, var(--pink)), var(--cyan)); box-shadow: 0 0 10px var(--c, var(--pink)); }

/* An open binder: its cover beside the details, then its pages. */
.binder-hero { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 26px; align-items: center; }
.binder-hero-cover .binder-cover { transform: rotateY(-10deg); }
.binder-hero-info h1 { margin: 4px 0 6px; }
/* ((2026-11-19) --cols: the binder's page layout's columns. A page is at least 107px a column plus its margins (380px
   at 3 across, as before; 487px at 4), as a real binder's pages are wider for more pockets across, so the pockets stay
   about as big; 2 across stops at 300px, so a full-width screen holds 3 such pages, with pockets near a 3 x 3 page's.
   Never wider than the screen.) */
.binder-pages {
  display: grid; gap: 22px; margin-top: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(300px, calc(var(--cols, 3) * 107px + 59px))), 1fr));
}
.binder-page {
  position: relative; padding: 14px 14px 26px 34px;
  border-radius: 6px 16px 16px 6px;
  background: linear-gradient(180deg, var(--surface-high), var(--surface));
  border: 1px solid var(--glass-3);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}
.page-holes i {
  position: absolute; left: 11px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--glass-3), 0 0 0 3px rgba(255, 255, 255, 0.03);
}
.page-holes i:nth-child(1) { top: 20%; }
.page-holes i:nth-child(2) { top: 50%; }
.page-holes i:nth-child(3) { top: 80%; }
.page-no { position: absolute; bottom: 6px; right: 14px; font: 600 10px/1 var(--mono); color: var(--faint); }
.pockets { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 8px; }
.pocket {
  position: relative; aspect-ratio: 63 / 88; border-radius: 6px; overflow: hidden; display: block;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-3); color: var(--text);
}
.pocket:hover { text-decoration: none; border-color: var(--c, var(--pink)); }
.pocket .card-img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; border-radius: 4px; }
.pocket.missing .card-img { filter: grayscale(1) brightness(0.4) contrast(0.9); opacity: 0.75; }
.pocket.have { border-color: color-mix(in srgb, var(--c, var(--pink)) 45%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--c, var(--pink)) 22%, transparent); }
/* The clear sleeve's shine over whatever is in it. */
.pocket::after { content: ''; position: absolute; inset: 0; background: linear-gradient(130deg, rgba(255, 255, 255, 0.14), transparent 40%); pointer-events: none; }
.pocket.empty { background: rgba(255, 255, 255, 0.025); border-style: dashed; border-color: rgba(255, 255, 255, 0.08); }
.pocket-no { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 700 13px/1 var(--mono); color: var(--muted); text-shadow: 0 1px 4px #000; }
.pocket-qty { position: absolute; top: 5px; right: 5px; padding: 1px 6px; border-radius: 999px; background: var(--pink); color: #fff; font: 700 11px/1.4 var(--mono); }
.pocket-value { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 2px 4px; border-radius: 5px; background: rgba(10, 6, 18, 0.82); font: 700 11px/1.3 var(--mono); text-align: center; }
.extra { margin-top: 18px; }

/* ---- chart ---- */

.chart-wrap { display: flex; flex-direction: column; gap: 8px; }
.chart { position: relative; width: 100%; }
.chart canvas { display: block; touch-action: pan-y; cursor: crosshair; }
.chart-readout { position: absolute; top: 0; right: 0; padding: 3px 8px; border-radius: 8px; background: var(--surface-high); border: 1px solid var(--outline); font: 600 12px/1.4 var(--mono); opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-empty { padding: 30px 10px; text-align: center; color: var(--faint); }

/* ---- leaderboard ---- */

.board-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto 28px; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--outline); }
.board-row.with-card { grid-template-columns: 42px 36px minmax(0, 1fr) auto 28px; }
.board-row:last-child { border-bottom: 0; }
.board-row.me { background: rgba(255, 46, 151, 0.1); border-radius: 10px; }
.rank { font: 800 13px/1 var(--mono); color: var(--pink); }
.nick { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card-img.mini { width: 36px; height: 50px; border-radius: 4px; }

/* ---- dialogs and toasts ---- */

.modal-back { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5, 2, 10, 0.7); backdrop-filter: blur(4px); }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border-radius: 20px; background: var(--surface-high); border: 1px solid var(--outline); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.modal h2 { margin-bottom: 10px; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
#toasts { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(520px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; background: var(--surface-high); border: 1px solid var(--outline); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); transition: opacity 0.4s, transform 0.4s; }
.toast.good { border-color: rgba(60, 255, 143, 0.45); }
.toast.bad { border-color: rgba(255, 77, 109, 0.55); }
.toast.out { opacity: 0; transform: translateY(8px); }
/* (1.2) A toast with a button (Undo): clickable, unlike the toasts' area. */
.toast.has-action { display: flex; align-items: center; gap: 12px; pointer-events: auto; }
.toast-action { margin-left: auto; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--pink); background: transparent; color: var(--pink); font: 700 14px/1.2 var(--display); cursor: pointer; }
.toast-action:hover { background: rgba(255, 46, 151, 0.16); }

/* ---- (1.2) moving cards between binders ---- */
.modal.pick input[type='search'] { margin: 4px 0 10px; }
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: min(46vh, 380px); overflow: auto; padding-right: 2px; }
.pick-row { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--outline); background: var(--glass); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pick-row:hover, .pick-row:focus-visible { border-color: var(--c, var(--pink)); outline: none; }
.pick-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--muted)); grid-row: span 2; }
.pick-name { font-weight: 600; overflow-wrap: anywhere; }
.pick-row .mono-label { grid-column: 2; }
.pick-new { margin-top: 14px; }
.pick-new summary { cursor: pointer; color: var(--cyan); font-weight: 600; }
.pick-new .btn { margin-top: 10px; }
.move-list { display: flex; flex-direction: column; gap: 10px; max-height: 48vh; overflow: auto; margin-top: 12px; }
.move-row { padding-bottom: 8px; border-bottom: 1px solid var(--outline); overflow-wrap: anywhere; }
.move-to { color: var(--cyan); font-size: 14px; }
.warn { color: var(--amber); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.binder-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; }
.move-hint { color: var(--cyan); margin-top: 8px; }
.binder-pages.moving .pocket.have, .list.moving .item-row { outline: 2px dashed var(--cyan); outline-offset: 2px; cursor: copy; }

/* ---- narrow screens: the nav moves to the bottom ---- */

@media (max-width: 860px) {
  /* (A backdrop filter would make the header the box the fixed nav is placed in, keeping it at the top.) */
  .topbar { padding: 10px 16px; backdrop-filter: none; background: rgba(10, 6, 18, 0.96); }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    justify-content: space-around; gap: 0; margin: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(18, 10, 30, 0.95); backdrop-filter: blur(14px);
    border-top: 1px solid var(--outline);
  }
  .nav-link { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 10px; border-radius: 12px; flex: 1; }
  .nav-link.on { box-shadow: none; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .card-page { grid-template-columns: minmax(0, 1fr); }
  .card-hero { max-width: 300px; margin: 0 auto; width: 100%; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filters .search-input { grid-column: 1 / -1; }
  h1 { font-size: 24px; }
  #toasts { bottom: 84px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .set-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .item-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; }
  .item-pic { width: 44px; }
  .board-row { grid-template-columns: 34px minmax(0, 1fr) auto 24px; }
  .board-row > .muted.small { display: none; }
  .board-row.with-card { grid-template-columns: 34px 30px minmax(0, 1fr) auto 24px; }
}

/* (search: the box and the game list side by side) */
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 10px; align-items: center; }
.game-picker { border-radius: 999px; padding: 12px 16px; background: var(--surface-high); }
@media (max-width: 600px) { .search-row { grid-template-columns: minmax(0, 1fr); } }

/* (the Pro-only screen) */
.signin-card .inline { max-width: 320px; margin: 14px auto 0; }
.link-row.center { justify-content: center; margin-top: 18px; }

/* ((2026-11-21) snapstack.au: the old address taking this browser across, move.js) */
.move-lines { display: grid; gap: 4px; margin: 18px 0 6px; }
.move-lines p { margin: 0; color: var(--muted); }
.move-lines p.now { color: var(--text); font-weight: 600; }

/* (sync status in Settings) */
.sync-line { color: var(--green); margin: 0 0 6px; }
.sync-line.bad { color: var(--amber); }

/* ---- polish (12 Nov): display type for names and money, holo shine, the home page's card fan ---- */

.price, .price-big, .hero-value, .stat-value, .card-name, .item-name, .binder-name, .nick { font-family: var(--display); }
.brand span { background: linear-gradient(90deg, #fff, #e9dcff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand b { background: linear-gradient(90deg, var(--pink), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.panel-title { display: flex; align-items: center; gap: 10px; }
.panel-title::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--pink), var(--purple)); box-shadow: 0 0 10px var(--pink); }

/* Card tiles: lift, glow in the game's colour, and a holo shine sweeping across the picture. */
.card-tile { --c: var(--pink); position: relative; }
.card-tile:hover { border-color: var(--c); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 22px color-mix(in srgb, var(--c) 35%, transparent); transform: translateY(-4px); }
.card-tile .card-pic { position: relative; }
.card-tile .card-pic::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: color-dodge;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 46, 151, 0.35) 42%, rgba(35, 231, 255, 0.35) 50%, rgba(255, 181, 71, 0.3) 58%, transparent 70%);
  background-size: 250% 250%; background-position: 100% 100%; transition: opacity 0.2s, background-position 0.7s ease;
}
.card-tile:hover .card-pic::after { opacity: 1; background-position: 0% 0%; }
.game-tag { color: var(--c); }
.card-foot .price { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }

/* Collection rows: the card's game colour down the edge. */
.item-row { --c: var(--outline); border-left: 3px solid color-mix(in srgb, var(--c) 70%, transparent); }
.item-row:hover .item-pic { transform: scale(1.06) rotate(-2deg); }
.item-pic { transition: transform 0.2s; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45); }

/* Home: the three most valuable cards fanned out beside the total. */
.hero { position: relative; overflow: hidden; min-height: 190px; }
.hero > :not(.hero-fan) { position: relative; z-index: 1; }
.hero-value { background: linear-gradient(90deg, #fff 30%, #ffd1ea); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-fan { position: absolute; right: 28px; top: 50%; width: 230px; height: 190px; transform: translateY(-50%); pointer-events: none; }
.hero-fan .card-img {
  position: absolute; left: 50%; bottom: 0; width: 112px; height: auto; aspect-ratio: 63 / 88; object-fit: cover;
  border-radius: 7px; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6); transform-origin: 50% 120%;
}
.hero-fan .card-img:nth-child(1) { transform: translateX(-50%) rotate(-16deg); }
.hero-fan .card-img:nth-child(2) { transform: translateX(-50%) rotate(0deg); z-index: 2; }
.hero-fan .card-img:nth-child(3) { transform: translateX(-50%) rotate(16deg); z-index: 1; }

/* The card page: the picture tilts toward the pointer a little. */
.card-pic.big { transition: transform 0.15s ease-out; transform-style: preserve-3d; }

/* Leaderboard: gold, silver and bronze for the top three. */
.board-row:nth-child(-n + 3) .rank { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #1a1020; font-size: 12px; }
.board-row:nth-child(1) .rank { background: linear-gradient(135deg, #ffe28a, #ffb547); box-shadow: 0 0 14px rgba(255, 181, 71, 0.6); }
.board-row:nth-child(2) .rank { background: linear-gradient(135deg, #f4f1fa, #a9a2b8); }
.board-row:nth-child(3) .rank { background: linear-gradient(135deg, #f0b48a, #b8693a); }

@media (max-width: 860px) {
  .hero-fan { width: 150px; right: 8px; opacity: 0.55; }
  .hero-fan .card-img { width: 74px; }
  .binder-hero { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
  .binder-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .binder-plate span { font-size: 12px; }
  .binder-front { padding: 8px; gap: 7px; }
  .pockets { gap: 5px; }
  .binder-page { padding: 10px 10px 22px 26px; }
  .page-holes i { left: 8px; width: 7px; height: 7px; }
  .pocket-value { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .binder-cover, .card-tile, .card-pic.big, .item-pic { transition: none; }
  .binder:hover .binder-cover { transform: none; }
}
/* (Any card picture: hidden until it has loaded, and when it can't.) */
img.loading, img.missing { opacity: 0; }

/* ---- Live price check ---- */

.live-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; border-radius: 18px; border: 1px solid rgba(255, 46, 151, 0.35);
  background: radial-gradient(500px 200px at 0% 0%, rgba(255, 46, 151, 0.18), transparent 70%), var(--surface); }
.live-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.live-steps b { color: var(--text); }
.btn.big { padding: 13px 24px; font-size: 16px; }
.live-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.live-status { flex: 1 1 200px; display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1.4 var(--mono); color: var(--green); }
.live-status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulse 1.6s ease-in-out infinite; }
.live-status.paused { color: var(--amber); }
.live-status.paused::before { animation: none; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); gap: 18px; align-items: start; margin-top: 14px; }
.live-preview { min-width: 0; }
.live-preview { text-align: center; }
/* (The stage is exactly the video's size, so the box's fractions are the frame's.) */
.live-stage { position: relative; display: inline-block; max-width: 100%; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--outline); line-height: 0; vertical-align: top; }
.live-video { display: block; width: auto; height: auto; max-width: 100%; max-height: 80vh; }
/* (1.1: the card Live found, outlined over the stream view; clicks go through to the video) */
.live-overlay { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.live-zone { position: absolute; border: 2px solid var(--pink); border-radius: 10px; cursor: move; touch-action: none;
  box-shadow: 0 0 0 9999px rgba(5, 2, 10, 0.45), 0 0 18px rgba(255, 46, 151, 0.6); }
.live-zone-label { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--pink); color: #fff; font: 600 11px/1.5 var(--mono); }
.live-zone-handle { position: absolute; right: -7px; bottom: -7px; width: 16px; height: 16px; border-radius: 50%; background: var(--pink); border: 2px solid #fff; cursor: nwse-resize; }
.live-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.live-result { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: 18px;
  border: 1px solid rgba(255, 181, 71, 0.55); background: radial-gradient(400px 160px at 100% 0%, rgba(255, 181, 71, 0.16), transparent 70%), var(--surface-high);
  box-shadow: 0 0 30px rgba(255, 181, 71, 0.15); animation: liveIn 0.25s ease-out; }
@keyframes liveIn { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
.live-result.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 190px; text-align: center; border-color: var(--outline); box-shadow: none; animation: none; color: var(--muted); }
.live-pulse { font-size: 34px; color: var(--pink); text-shadow: 0 0 18px var(--pink); }
.live-card .card-img { width: 100%; aspect-ratio: 63 / 88; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55); }
.live-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.live-name { font: 700 22px/1.15 var(--display); }
.live-price { font: 700 32px/1.1 var(--display); color: var(--amber); text-shadow: 0 0 18px rgba(255, 181, 71, 0.45); margin: 4px 0; }
.live-variants { display: flex; flex-wrap: wrap; gap: 6px; }
.live-variants span { padding: 2px 8px; border-radius: 999px; background: var(--glass-2); font: 600 11px/1.5 var(--mono); color: var(--muted); }
.live-others { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.live-history { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.live-hist { display: flex; flex-direction: column; gap: 3px; color: var(--text); font-size: 12px; }
.live-hist:hover { text-decoration: none; }
.live-hist .card-img { width: 100%; aspect-ratio: 63 / 88; object-fit: contain; border-radius: 6px; }
.live-hist-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* (The pop-out window: the card and its price, then the cards seen this session, a row each.) */
.live-pip-body { margin: 0; padding: 10px; background: var(--bg); }
.live-pip { display: flex; flex-direction: column; gap: 10px; }
.live-pip .live-result { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; }
.live-pip .live-result.empty { min-height: 150px; }
.live-pip .live-name { font-size: 18px; }
.live-pip .live-price { font-size: 26px; }
.live-pip .live-others, .live-pip .live-variants { display: none; }
.live-pip .live-seen { padding: 10px 12px; }
.live-pip .live-seen .panel-title { margin-bottom: 8px; font-size: 13px; }
.live-pip .live-history { display: flex; flex-direction: column; gap: 4px; }
.live-pip .live-hist { flex-direction: row; align-items: center; gap: 10px; padding: 3px 4px; border-radius: 8px; font-size: 13px; }
.live-pip .live-hist:hover { background: var(--glass); }
.live-pip .live-hist::before { display: none; }
.live-pip .live-hist .card-img { flex: 0 0 30px; width: 30px; border-radius: 3px; }
.live-pip .live-hist-name { flex: 1; min-width: 0; }
.live-pip .live-hist .price { font-weight: 700; color: var(--amber); white-space: nowrap; }
/* (The nav's Live, lit while Live price check is on.) */
.nav-link.running { color: var(--green); }
.nav-link.running svg { filter: drop-shadow(0 0 6px rgba(60, 255, 143, 0.85)); animation: liveGlow 1.6s ease-in-out infinite; }
@keyframes liveGlow { 50% { opacity: 0.55; } }

@media (max-width: 860px) {
  .live-grid { grid-template-columns: minmax(0, 1fr); }
}
/* (A card with no catalogue picture: a card-shaped placeholder.) */
.live-card, .live-hist { position: relative; }
.live-card::before, .live-hist::before { content: ''; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 63 / 88; border-radius: 8px; z-index: 0;
  background: linear-gradient(160deg, rgba(255, 181, 71, 0.22), rgba(177, 76, 255, 0.18)), var(--surface); border: 1px dashed var(--outline); }
.live-card .card-img, .live-hist .card-img { position: relative; z-index: 1; }
/* (Live: what the last read found, and why) */
.live-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.live-read { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--outline); background: var(--surface); text-align: left; }
.live-read summary { cursor: pointer; font: 600 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.live-why { margin: 8px 0 2px; font-weight: 600; color: var(--amber); }
.live-lines { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; max-height: 120px; overflow: auto; }
.live-lines span { padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); font: 11px/1.6 var(--mono); color: var(--faint); }
.live-lines span.kept { background: rgba(60, 255, 143, 0.14); color: var(--green); }
/* (Live: the cards' language) */
.live-lang { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1.4 var(--mono); color: var(--muted); }
.live-lang select { width: auto; padding: 7px 10px; border-radius: 999px; font: 600 13px/1.2 inherit; }
.live-intro .live-lang { margin-top: 2px; }
.live-tip { margin: 6px 0 2px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 181, 71, 0.12); color: var(--amber); font-size: 12px; }
/* (1.1, Live: the eBay photo lookup switch, and eBay's answer for a card it couldn't tell) */
.live-photo { display: inline-flex; align-items: flex-start; gap: 8px; max-width: 640px; font-size: 13px; color: var(--muted); cursor: pointer; }
.live-photo input { margin-top: 3px; accent-color: var(--pink); }
.live-controls .live-photo { align-items: center; font: 600 12px/1.4 var(--mono); }
.live-controls .live-photo input { margin-top: 0; }
/* (1.3) The grade estimate on a card's page (grading.js) */
.grade { display: flex; flex-direction: column; gap: 12px; }
.grade-purple { color: var(--purple); }
.grade-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.grade-num { font-size: 40px; font-weight: 800; line-height: 1.1; }
.grade-summary .grade-num { font-size: 30px; }
.grade-tier { color: var(--amber); font-weight: 700; font-size: 17px; }
.grade-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 14px; }
.grade-side { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.grade-slot { width: 100%; aspect-ratio: 68 / 93; border-radius: 12px; overflow: hidden; border: 1px solid var(--outline); background: var(--surface-high); }
.grade-slot-msg { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 0; background: none; color: var(--muted); font: inherit; text-align: center; }
button.grade-slot-msg { cursor: pointer; }
button.grade-slot-msg:hover .grade-add { text-decoration: underline; }
.grade-add { color: var(--cyan); font-weight: 700; }
.grade-pic { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.grade-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.grade-cen { font-weight: 600; font-variant-numeric: tabular-nums; }
.grade-warn { color: var(--amber); }
.grade-est, .grade-tilt, .grade-measured { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; border: 1px solid var(--outline); background: var(--glass); }
.grade-est { border-color: rgba(177, 76, 255, 0.5); }
.grade-odds { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 6px; }
.grade-odds-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.grade-odds-g { font-weight: 700; }
.grade-odds-p { color: var(--muted); text-align: right; font-size: 13px; }
.grade-bar { height: 10px; border-radius: 999px; background: var(--glass); overflow: hidden; }
.grade-bar span { display: block; height: 100%; border-radius: 999px; background: rgba(177, 76, 255, 0.45); }
.grade-odds-row.on .grade-bar span { background: var(--purple); }
.grade-others { display: flex; flex-direction: column; gap: 4px; }
.grade-other { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.grade-sure { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.grade-pill { padding: 3px 10px; border-radius: 999px; font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid; }
.grade-pill.good { color: var(--green); border-color: rgba(60, 255, 143, 0.5); background: rgba(60, 255, 143, 0.12); }
.grade-pill.mid { color: var(--cyan); border-color: rgba(35, 231, 255, 0.5); background: rgba(35, 231, 255, 0.1); }
.grade-pill.low { color: var(--amber); border-color: rgba(255, 181, 71, 0.5); background: rgba(255, 181, 71, 0.12); }
.grade-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grade-done { color: var(--green); }
.grade-fact { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.grade-notes { margin: 4px 0 0 18px; color: var(--amber); font-size: 13px; }
.grade-fine { color: var(--faint); }
.grade-zoom img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; }
@media (max-width: 480px) {
  .grade-num { font-size: 32px; }
  .grade-other { grid-template-columns: 80px minmax(0, 1fr) auto; }
}

/* (Streamers) Partner streamers: views-streamers.js. */
.st-intro h1 { margin-bottom: 4px; }
.st-intro p { margin: 0 0 16px; }
.st-filter { margin-bottom: 16px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.st-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--outline); }
.st-head { display: flex; align-items: center; gap: 12px; color: var(--text); }
.st-head:hover { text-decoration: none; }
.st-head:hover .st-name { color: var(--cyan); }
.st-avatar, .st-avatar-sm { flex: none; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--purple), var(--pink)); }
.st-avatar { width: 64px; height: 64px; }
.st-avatar-sm { width: 40px; height: 40px; }
.st-initial { display: grid; place-items: center; color: #fff; font: 700 24px/1 var(--display); }
.st-avatar-sm.st-initial { font-size: 16px; }
.st-who { min-width: 0; }
.st-name { font: 700 17px/1.3 var(--display); overflow-wrap: anywhere; }
.st-badge { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 2px 8px; border-radius: 999px; font: 700 10.5px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); border: 1px solid rgba(60, 255, 143, 0.45); background: rgba(60, 255, 143, 0.08); }
.st-badge.sponsored { color: var(--amber); border-color: rgba(255, 181, 71, 0.5); background: rgba(255, 181, 71, 0.08); }
.st-games .chip { cursor: default; padding: 4px 10px; font-size: 12.5px; }
/* ((2026-11-20) A long web address in a streamer's words wraps inside the card instead of running out of it, and the
   line breaks they typed show, as they do in the Android app.) */
.st-blurb { margin: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; white-space: pre-line; }
.st-card { min-width: 0; }
.st-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px dashed rgba(35, 231, 255, 0.4); font-size: 14px; }
.st-code b { font-family: var(--mono); color: var(--cyan); letter-spacing: 0.06em; }
.st-open { align-self: flex-start; margin-top: auto; }
.st-note { margin-top: 18px; }
.st-row { display: flex; flex-wrap: wrap; gap: 10px; }
.st-mini { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--outline); color: var(--text); }
.st-mini:hover { text-decoration: none; border-color: var(--cyan); }
.st-mini-name { font-weight: 600; }
.st-mini .st-badge { margin-left: 0; }
/* ((2026-11-20) Show times on a card: "Next show: Today 5:00 pm" (or "LIVE, started 5:00 pm"), then up to two more as
   chips. A time stays on one line.) */
.st-shows { display: flex; flex-direction: column; gap: 6px; }
.st-next { font-weight: 600; white-space: nowrap; }
.st-more { gap: 6px; }
.st-more .chip { cursor: default; padding: 3px 9px; font-size: 12px; }
.st-later { white-space: nowrap; }
/* ---- (2026-11-20) LIVE: a red light that blinks and the word, while a show is on by its show times and length
   (streamer-shows.js isLive): after the name in the banner, on a card, a dot alone in the "Streamers who sell" row.
   Red, not cyan: the owner's call, the usual sign of a stream on air. The light fades out and back every 1.2 s (never
   quicker than once a second), with a slight glow; with reduced motion it stays lit. ---- */
.st-live {
  display: inline-flex; flex: none; align-items: center; gap: 5px; height: 16px; padding: 0 7px 0 6px; vertical-align: middle;
  border-radius: 999px; border: 1px solid rgba(255, 59, 48, 0.55); background: rgba(255, 59, 48, 0.12);
  color: var(--live-red-text); font: 700 9.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.st-live-dot {
  display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--live-red);
  box-shadow: 0 0 5px 1px rgba(255, 59, 48, 0.6); animation: stLiveBlink 1.2s ease-in-out infinite;
}
@keyframes stLiveBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } } /* ((2026-11-20) 0.3 at its dimmest, as on the phone) */
.st-on .st-live { height: 20px; gap: 6px; padding: 0 8px 0 7px; font-size: 11px; }
.st-on .st-live-dot { width: 8px; height: 8px; }
.st-mini-live { width: 8px; height: 8px; margin-left: -2px; }
@media (prefers-reduced-motion: reduce) {
  .st-live-dot { animation: none; }
}

/* ==== Design pass 2026-11-19 (Claude Design, "SnapStack" system): colour roles and flat surfaces ==== */
body { background-image: none; }
a { color: var(--pink); }
:focus-visible { outline-color: var(--pink); }
.brand span, .brand b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); }
.panel-title::before { display: none; }
.hero-value { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--gold); }
.price, .price-big, .chip-price, .live-price, .live-pip .live-hist .price, .grade-tier { color: var(--gold); text-shadow: none; }
.card-foot .price { background: var(--surface-high); }
.btn { border-radius: 12px; border-color: var(--line); background: var(--surface-high); }
.btn:hover { background: var(--surface-top); }
.btn.primary { background: var(--action); border-color: transparent; color: #fff; box-shadow: 0 0 0 1px rgba(255, 46, 151, 0.4), 0 8px 28px rgba(224, 21, 127, 0.33); }
.btn.ghost { background: transparent; color: var(--pink); border-color: var(--line); }
.btn.danger { border-color: var(--line); }
.nav-link { border-radius: 10px; }
.nav-link.on { background: var(--surface-high); color: var(--text); box-shadow: inset 0 -2px 0 var(--action); }
.nav-link[href="#/live"] { color: var(--cyan); }
.chip { background: var(--surface-high); border-color: transparent; color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: transparent; }
.chip.on .chip-price { color: var(--bg); opacity: 0.75; }
.tag.slab { background: var(--gold); color: var(--on-gold); }
.tag.own { background: var(--surface-high); color: var(--purple); }
.bar i { background: var(--gold); box-shadow: none; }
.move-to, .move-hint, .pick-new summary, .grade-add { color: var(--pink); }
.binder-pages.moving .pocket.have, .list.moving .item-row { outline-color: var(--pink); }
.st-code b { color: var(--text); }
.signin-card h1 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); }
.panel { background: var(--surface); border-color: var(--line); }
.hero { background: var(--surface); border-color: var(--line); border-radius: 22px; }

/* ---- (2026-11-19) Quick add: a "+" under each of a set's pockets in a binder ----
   A bar the pocket's width under the card, not on it: a press meant to open the card can't add one, and it's easy to hit
   on purpose. Rows sit further apart, so a press meant for a card doesn't land on the "+" of the card above it, and a
   finger (a touch screen) gets a taller bar.
   Pink: an action. Hidden (its space kept) while "Move cards" is on, where a press means a move. */
.pockets { align-items: start; row-gap: 14px; }
.pocket-slot { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pocket-add {
  display: flex; align-items: center; justify-content: center; min-height: 32px; margin: 0 2px; padding: 0 4px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface-high); color: var(--pink);
  font: 700 13px/1 var(--display); white-space: nowrap; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.pocket-add:hover { border-color: var(--pink); background: var(--surface-top); }
.pocket-add:active { background: rgba(224, 21, 127, 0.24); }
.pocket-add:disabled { cursor: progress; border-color: var(--line); background: var(--surface-high); }
.pocket-add .spin { width: 14px; height: 14px; }
.binder-pages.moving .pocket-add, .pocket-add.blank { visibility: hidden; }
@media (pointer: coarse) { .pocket-add { min-height: 40px; font-size: 14px; } }
@media (max-width: 480px) { .pockets { row-gap: 12px; } .pocket-add { margin: 0 1px; } }

/* ---- (2026-11-19) Binder page layouts: pockets per page (2 x 2 to 4 x 4), picked per binder beside the All / Have /
   Missing chips; a little picture of the pages beside the list. 4 across on a phone: the value badge is left off (the
   pocket is too narrow for it; the card's page has it) and the badges and "+" get smaller. ---- */
.binder-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.layout-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.layout-select { width: auto; max-width: 100%; padding: 7px 10px; border-radius: 999px; background: var(--surface-high); border-color: transparent; font: 600 13px/1.2 inherit; cursor: pointer; }
.layout-glyph-box { display: inline-flex; }
.layout-glyph {
  display: inline-grid; grid-template-columns: repeat(var(--gc, 3), minmax(0, 1fr)); grid-template-rows: repeat(var(--gr, 3), minmax(0, 1fr));
  gap: 1.5px; width: 17px; height: 20px; color: var(--muted);
}
.layout-glyph i { background: currentColor; border-radius: 1.5px; }
.layout-all { white-space: nowrap; }
@media (max-width: 480px) {
  .binder-pages[data-cols="4"] .pockets { gap: 4px; row-gap: 10px; }
  .binder-pages[data-cols="4"] .pocket-value { display: none; }
  .binder-pages[data-cols="4"] .pocket-no { font-size: 11px; }
  .binder-pages[data-cols="4"] .pocket-qty { top: 3px; right: 3px; padding: 0 4px; font-size: 10px; }
  .binder-pages[data-cols="4"] .pocket-add { margin: 0; padding: 0 2px; font-size: 12px; }
}

/* ---- (2026-11-19) The home page's streamers banner (views-streamers.js streamersBanner) ----
   One link to the Streamers screen, across the top of the home page. Its row is the list twice, side by side; the track
   moves left by half its width (one copy) and starts over, so the loop has no seam. Each copy is at least the banner's
   width (100cqw): a short list goes by with space after it rather than a gap at the end, its streamers spread evenly
   (space-around, with half the gap at each end, keeps the spacing the same across the join). The speed comes from a
   copy's width (paceBanner). Cyan: streaming, the live colour; pink: "See all", the action. The row's ends fade out. */
.st-banner {
  position: relative; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  padding: 12px 0 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: border-color 0.15s;
}
.st-banner::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(35, 231, 255, 0.65) 25%, rgba(35, 231, 255, 0.65) 75%, transparent);
}
.st-banner:hover { text-decoration: none; border-color: rgba(35, 231, 255, 0.45); }
.st-bn-head { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 16px; }
.st-bn-icon {
  display: grid; place-items: center; flex: none; width: 22px; height: 22px; padding-left: 1px; border-radius: 50%;
  background: var(--surface-high); color: var(--cyan); font-size: 9px; box-shadow: inset 0 0 0 1px rgba(35, 231, 255, 0.4);
}
.st-bn-head .mono-label { color: var(--cyan); white-space: nowrap; }
.st-bn-on { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.st-bn-all { flex: none; margin-left: auto; color: var(--pink); font-weight: 600; font-size: 13px; white-space: nowrap; }
.st-banner:hover .st-bn-all { text-decoration: underline; }
.st-bn-view {
  container-type: inline-size; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}
.st-bn-track { display: flex; width: max-content; animation: stBannerRoll 40s linear infinite; }
@keyframes stBannerRoll { to { transform: translateX(-50%); } }
/* (A touch screen has no hover, and a tap opens the Streamers screen, so there only reduced motion stops it: a pause
   control of its own (WCAG 2.2.2) would be a spot on the banner that doesn't open it, which is the owner's call.) */
.st-banner:hover .st-bn-track, .st-banner:focus-within .st-bn-track { animation-play-state: paused; }
/* (100vw first: a browser without container units still gets a copy at least the banner's width, just wider.) */
.st-bn-group { display: flex; flex: none; align-items: center; justify-content: space-around; gap: 12px; min-width: 100vw; min-width: 100cqw; padding: 2px 6px; }
.st-bn-item { display: flex; flex: none; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--surface-high); }
.st-avatar-bn {
  flex: none; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 0 0 2px var(--surface-high), 0 0 0 3.5px rgba(35, 231, 255, 0.5);
}
.st-avatar-bn.st-initial { font-size: 17px; }
/* ((2026-11-20) Two lines, the same height whoever is live: the name's line is a fixed height, and the LIVE pill
   (16px) and the badge sit inside it. The banner is drawn first from the list kept from last time, and LIVE coming on
   with a newer one mustn't make it taller after the home page's scroll position was put back. Only its width changes,
   which paceBanner allows for.) */
.st-bn-text { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; }
.st-bn-name { display: flex; align-items: center; gap: 6px; height: calc(15px * 1.25); font: 700 15px/1.25 var(--display); }
.st-bn-nm { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-bn-name .st-badge { margin-left: 0; padding: 0 6px; font-size: 9.5px; }
.st-bn-sells { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
@media (max-width: 420px) {
  .st-bn-on { display: none; }
  .st-bn-nm { max-width: 150px; }
  .st-bn-sells { max-width: 170px; }
}
/* Reduced motion (the device's setting): still, one copy of the list, scrolled by hand (a swipe, a trackpad, Shift and
   the mouse wheel). The room at the end lets the last streamer come clear of the fade. */
@media (prefers-reduced-motion: reduce) {
  .st-banner { transition: none; }
  .st-bn-track { animation: none; }
  .st-bn-group { min-width: 0; justify-content: flex-start; padding: 2px 40px 4px 16px; }
  .st-bn-group + .st-bn-group { display: none; }
  .st-bn-view {
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }
}

/* ---- (2026-11-20) Free accounts: Magic: The Gathering's search and card pages are free (plan.js); the rest says it's
   part of SnapStack Pro. Green: Pro, as Settings' "SNAPSTACK PRO" label. ---- */
.pro-tag, .nav-pro {
  display: inline-block; flex: none; padding: 1px 7px; border-radius: 999px; font: 700 10px/1.5 var(--mono); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green); border: 1px solid rgba(60, 255, 143, 0.45); background: rgba(60, 255, 143, 0.08);
}
.nav-pro { padding: 0 5px; font-size: 9px; }
.pro-note { display: flex; flex-direction: column; gap: 6px; max-width: 680px; }
.pro-note h2 { font-size: 20px; }
.pro-note .link-row { margin-top: 8px; }
.pro-note .inline { max-width: 360px; margin-top: 6px; }
.pro-note .signin-status { margin: 0; }
.pro-hint { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; }
.pro-hint a { font-weight: 600; white-space: nowrap; }
.card-info .pro-hint { margin-top: 10px; }
.game-fixed {
  padding: 12px 16px; border-radius: 999px; border: 1px solid var(--outline); background: var(--surface-high); color: var(--text);
  font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.credit { margin: 4px 0 0; }
@media (max-width: 860px) {
  /* (The bottom nav: the tag sits on the icon's corner rather than taking a row of its own.) */
  .nav-link { position: relative; }
  .nav-pro { position: absolute; top: 2px; left: calc(50% + 4px); padding: 0 4px; font-size: 8px; letter-spacing: 0.04em; background: var(--bg); }
}

/* ---- (2026-11-21) The web for everyone: a free account's "part of Pro" lines, See Pro (pink: an action), today's free
   allowance, the note that its collection is kept in this browser, and SnapStack Pro's page (pro.js). ---- */
.pro-hint { align-items: center; flex-wrap: wrap; color: var(--text); }
.pro-hint-text { flex: 1 1 200px; min-width: 0; color: var(--muted); }
.pro-hint .see-pro { color: #fff; }
.see-pro { flex: none; }
.limit-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 181, 71, 0.45); background: var(--surface); }
.limit-box p { flex: 1 1 220px; margin: 0; color: var(--amber); }
.allowance-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.live-allowance:empty { display: none; }
.local-note .btn.ghost { flex: none; }
.pro-page { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.pro-page .panel-title { margin: 8px 0 0; }
.pro-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pro-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-high); }
.pro-offer { padding-top: 4px; }
.pro-page .inline { max-width: 360px; }
.boot-about { max-width: 320px; margin: 4px auto 0; font-size: 13px; }

/* ---- (2026-11-21) iPhone web app: on the Home Screen (standalone, status bar over the page) the bars and the content
   keep clear of the notch, the rounded corners and the home indicator (env(safe-area-inset-*): 0 everywhere else). ---- */
.topbar {
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-left: max(16px, calc((100vw - 1200px) / 2), env(safe-area-inset-left, 0px));
  padding-right: max(16px, calc((100vw - 1200px) / 2), env(safe-area-inset-right, 0px));
}
.view {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
.booting, .signin {
  padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.signin { align-content: center; gap: 14px; }
.modal-back {
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
#toasts { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 860px) {
  .topbar { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .nav { padding-left: max(4px, env(safe-area-inset-left, 0px)); padding-right: max(4px, env(safe-area-inset-right, 0px)); }
  #toasts { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* (The "Add to Home Screen" card, iPhone and iPad Safari only: webapp.js homeScreenHint.) */
.home-hint {
  display: flex; align-items: center; gap: 10px; width: min(1168px, calc(100% - 32px)); margin: 12px auto 0; padding: 10px 8px 10px 14px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface-high); color: var(--text); font-size: 14px;
}
.home-hint p { flex: 1; min-width: 0; margin: 0; }
/* ((2026-11-21) review WF-5) Its words, and with cards kept here only, that they don't come along (and Save a backup). */
.home-hint-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.home-hint-body .btn { justify-self: start; }
.home-hint-warn { color: var(--muted); font-size: 13px; }
.home-hint-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-top); color: var(--pink); font-weight: 700; }
.home-hint-close { flex: none; min-width: 44px; min-height: 44px; font-size: 22px; line-height: 1; }
.signin .home-hint { width: min(440px, 100%); margin: 0; }

/* (Touch screens: buttons big enough for a finger.) */
@media (pointer: coarse) {
  .btn.small, .see-pro { min-height: 40px; }
}

/* ---- (2026-11-21) Stripe: SnapStack Pro bought on the website (pro.js): the two plans with their prices (gold: money)
   and a pink button each, what the page says on the way back from Stripe's payment page, Settings' payment problem and
   Delete my SnapStack account. ---- */
.pro-trial { margin: 0; color: var(--text); font-weight: 600; }
.pro-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pro-plan { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-high); }
.pro-plan p { margin: 0; }
.pro-plan .btn { margin-top: auto; }
.pro-price { font-family: var(--display); }
.pro-price .price { font-size: 26px; font-weight: 700; }
.pro-per { color: var(--muted); font-size: 14px; }
.pro-fix:empty { display: none; }
.pro-checkout { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); }
.pro-checkout p { margin: 0; }
.pro-checkout.pro { border-color: rgba(60, 255, 143, 0.45); }
.pro-checkout.pro p { color: var(--green); font-weight: 600; }
.pro-checkout.waiting, .pro-checkout.failed { border-color: rgba(255, 181, 71, 0.45); }
.pro-checkout.waiting p, .pro-checkout.failed p { color: var(--amber); }
/* ((2026-11-21) review UX28) The Pro page's live region (pro.js partsOf): empty, it takes no room; its box keeps the
   page's gap below it. The heading takes focus when a checkout's outcome is said (it isn't a control: no ring). */
.pro-checkout-live .pro-checkout { margin-bottom: 18px; }
.page-head h1[tabindex="-1"]:focus { outline: none; }
.plan-problem { color: var(--amber); font-weight: 600; }
.delete-row { margin-top: 18px; }
@media (max-width: 520px) { .pro-plans { grid-template-columns: minmax(0, 1fr); } }

/* ---- ((2026-11-22) honest prices) A slab counted at its raw card's price ("Raw price": amber outline, apart from the
   gold slab tag, since gold is money), what each price is (its source line and what that means, under the big price),
   and the CHECK SOLD PRICES row: plain links out, each with its hint under it. ---- */
.tag.raw { background: transparent; color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.6); }
.pocket-value.raw { color: var(--amber); }
.hero-note { margin: 6px 0 0; max-width: 60ch; }
.slab-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 6px 0 2px; }
.slab-note p { margin: 0; flex: 1 1 260px; }
.price-note { margin: 2px 0 4px; }
.price-note-short { font: 600 12px/1.5 var(--mono); color: var(--faint); }
.price-note-why { font-size: 13px; color: var(--faint); max-width: 60ch; }
.sold-links { margin-top: 14px; }
.sold-list { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 6px; }
.sold-item { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: 100%; }
.sold-item .btn { max-width: 100%; white-space: normal; text-align: left; }
.sold-hint { font-size: 12px; color: var(--faint); max-width: 36ch; overflow-wrap: anywhere; }
.sold-foot { margin: 8px 0 0; }
