/* Pocket Binder: design prototype styles, round 2 */

:root {
  --paper: #F4F6FA;
  --surface: #FFFFFF;
  --tile: #E9EEF5;
  --tile-2: #DFE6EF;
  --ink: #172033;
  --ink-2: #46536A;
  --muted: #6F7C94;
  --line: #DAE1EA;
  --gold: #FFC233;
  --gold-ink: #5A3B00;
  --danger: #C8304A;
  --accent: #2B6CF6;
  --accent-strong: #1E56D6;
  --accent-soft: #E6EEFF;
  --accent-ink: #FFFFFF;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-md: 14px;
  --r-lg: 22px;
  --appbar-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --shadow-1: 0 1px 2px rgba(23, 32, 51, .06), 0 2px 8px rgba(23, 32, 51, .05);
  --shadow-2: 0 10px 40px rgba(23, 32, 51, .18), 0 2px 8px rgba(23, 32, 51, .08);
  --ease-out: cubic-bezier(.2, .9, .3, 1.2);
  color-scheme: light;
}
html[data-accent="grape"] { --accent: #7B4DFF; --accent-strong: #6237E6; --accent-soft: #EEE8FF; }
html[data-accent="cherry"] { --accent: #E0336B; --accent-strong: #C11F55; --accent-soft: #FDE7EE; }
html[data-accent="teal"] { --accent: #0E8F9C; --accent-strong: #0A7380; --accent-soft: #DFF4F5; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.4; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 8px; }
#view:focus { outline: none; }
.page { max-width: 1240px; margin: 0 auto; padding: 14px 16px calc(16px + var(--safe-b)); }
@media (min-width: 760px) { .page { padding: 22px 28px 28px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15px; white-space: nowrap; }
.btn svg { font-size: 20px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:active { background: var(--accent-strong); }
.btn-soft { background: var(--accent-soft); color: var(--accent-strong); }
.btn-danger { background: #FDE8EB; color: var(--danger); }
.btn-sm { padding: 0 14px; font-size: 14px; }
.btn-big { min-height: 56px; font-size: 18px; padding: 0 24px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); font-size: 22px; }
.icon-btn:active { background: var(--tile); }
.pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.pill-on { background: #fff; color: var(--accent-strong); }

/* ---------- App bar (hides while scrolling down the binder) ---------- */
.appbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 246, 250, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform .25s ease;
}
body.bar-hidden .appbar { transform: translateY(-100%); }
.appbar-inner { max-width: 1240px; margin: 0 auto; height: var(--appbar-h); display: flex; align-items: center; gap: 6px; padding: 0 8px 0 10px; }
@media (min-width: 760px) { .appbar-inner { padding: 0 24px; gap: 10px; } }
.brand { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; min-width: 44px; padding-right: 4px; }
.brand .mark { width: 32px; height: 32px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.appbar-title { font-weight: 700; font-size: 17px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.appbar-spacer { flex: 1; }
.brand-compact + .appbar-title::before { content: ""; display: inline-block; width: 1px; height: 18px; background: var(--line); margin: 0 12px 0 2px; vertical-align: -3px; }
.btn-pack { padding: 0 14px 0 12px; gap: 6px; font-size: 15px; }
.btn-pack svg { font-size: 22px; }
/* Design-review tool: dashed so it never reads as part of the app. */
.mock-open {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 10px;
  border-radius: 12px; border: 1.5px dashed #9AA6B8; background: transparent; color: #4C586D;
  font-family: system-ui, -apple-system, sans-serif; font-size: 13px; font-weight: 600;
}
.mock-open svg { font-size: 19px; }
@media (max-width: 599px) {
  .brand-compact .brand-name { display: none; }
  .mock-open-label { display: none; }
  .mock-open { padding: 0; }
  body[data-route="set"] .appbar-title { display: none; }
}
@media (max-width: 359px) { .btn-pack span:not(.pill) { display: none; } }

/* ---------- Footer: language + legal ---------- */
.foot { margin: 28px 0 4px; text-align: center; color: var(--muted); font-size: 13px; }
.lang { display: inline-flex; align-items: center; gap: 2px; }
.lang-btn { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--muted); font-size: 13px; }
.lang-btn[aria-pressed="true"] { font-weight: 800; color: var(--ink-2); }
.legal { max-width: 640px; margin: 2px auto 0; font-size: 11.5px; line-height: 1.5; color: #8A95A8; }

/* ---------- Meter, rarity, energy ---------- */
.meter { height: 8px; border-radius: 99px; background: var(--tile-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .5s var(--ease-out); }
.meter-lg { height: 10px; }
.rarity { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.rglyph { font-size: .8em; letter-spacing: -.12em; color: var(--ink-2); }
.tone-gold .rglyph { color: #D99A00; }
.tone-silver .rglyph { color: #8E9BB0; }
.energy { display: inline-block; width: .92em; height: .92em; border-radius: 50%; vertical-align: -.12em; margin: 0 .1em; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .14), 0 0 0 1.5px #fff; }
.e-W { background: radial-gradient(circle at 35% 30%, #9ED4FF, #2F8BE6 70%); }
.e-G { background: radial-gradient(circle at 35% 30%, #A8EBA0, #2F9E46 70%); }
.e-R { background: radial-gradient(circle at 35% 30%, #FFB199, #E5452B 70%); }
.e-L { background: radial-gradient(circle at 35% 30%, #FFF0A3, #F2B705 70%); }
.e-P { background: radial-gradient(circle at 35% 30%, #E1B8FF, #8E48CF 70%); }
.e-F { background: radial-gradient(circle at 35% 30%, #F2C08F, #B4652A 70%); }
.e-D { background: radial-gradient(circle at 35% 30%, #6D8C9A, #22363F 70%); }
.e-M { background: radial-gradient(circle at 35% 30%, #E4E9EE, #7D8995 70%); }
.e-C { background: radial-gradient(circle at 35% 30%, #FFFFFF, #D9D3C4 70%); }

/* ---------- Set art (data-driven from set.theme) ---------- */
.set-art { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(160deg, #0B1B4A, var(--set-accent, #1B3B8C) 60%, #2A1F55); }
.set-art.has-art { background: var(--art-tall) var(--art-tall-pos) / var(--art-tall-size) no-repeat, #0B1B4A; }
.set-art > .sa-logo { position: relative; z-index: 3; }
.set-art > .sa-layer { position: absolute; inset: 0; pointer-events: none; }
.set-art .sa-scrim { z-index: 2; }
.set-art.has-art .sa-scrim {
  background:
    radial-gradient(ellipse 42% 62% at 27% 52%, rgba(8, 14, 40, .78), rgba(8, 14, 40, .55) 48%, rgba(8, 14, 40, 0) 88%),
    linear-gradient(90deg, rgba(8, 14, 40, .45), rgba(8, 14, 40, .1) 55%, rgba(8, 14, 40, 0) 75%);
}
.set-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 4; background: linear-gradient(90deg, #F2B21B, #E8641B); }

/* ---------- Home ---------- */
.home-hero { margin: 6px 0 18px; }
.home-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.stat { position: relative; display: grid; align-content: start; min-height: 88px; background: var(--surface); border-radius: var(--r-md); padding: 10px 30px 10px 14px; box-shadow: var(--shadow-1); }
.stat:active { background: var(--accent-soft); }
.stat > svg { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: #A5B0C2; font-size: 20px; }
.stat-label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.stat-val { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.15; }
.stat-sub { font-size: 12.5px; color: var(--muted); }
.home-value { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 15px; color: var(--ink-2); }
.home-value b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.src { font-size: 12px; color: var(--muted); }

.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.set-tile { position: relative; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); display: flex; flex-direction: column; overflow: hidden; }
.set-tile-main { display: block; flex: 1; }
.set-logo { height: 168px; display: grid; place-items: center; padding: 16px 24px; }
.set-logo.has-art { place-items: center start; padding: 14px 16px 14px 4%; }
.set-logo .sa-logo { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.set-logo.has-art .sa-logo { width: 54%; max-height: 92%; }
.set-body { padding: 14px 16px 12px; }
.set-name { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.set-series { color: var(--muted); font-size: 14px; margin: 2px 0 12px; }
.set-counts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.set-counts b { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.count-secret { display: inline-flex; align-items: center; gap: 5px; }
.count-secret svg { color: #D99A00; }
.set-pack { margin: 0 16px 16px; }
.set-tile-soon { box-shadow: none; background: transparent; border: 2px dashed #C9D2DE; }
.set-tile-soon .soon-logo { background: repeating-linear-gradient(135deg, #EEF2F7 0 12px, #E6EBF2 12px 24px); }
.soon-logo span { display: grid; place-items: center; width: 64px; height: 64px; opacity: .25; filter: grayscale(1); }
.soon-logo .mark { width: 64px; height: 64px; }
.set-tile-soon .set-name { color: var(--muted); font-size: 18px; }
.color-pick { margin-top: 24px; }
.color-pick h2 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.sw-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--sw); }
.swatch-btn[aria-pressed="true"] { border-color: var(--sw); color: var(--ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--sw) 25%, transparent); }

/* ---------- Binder head: slim art strip with progress inline ---------- */
.binder-head { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.bh-strip { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px 11px; }
.bh-strip.has-art .sa-scrim { background: linear-gradient(90deg, rgba(8, 14, 40, .72), rgba(8, 14, 40, .2) 38%, rgba(8, 14, 40, .25) 52%, rgba(8, 14, 40, .82) 78%); }
.bh-strip .sa-logo { height: 62px; width: auto; max-width: 44%; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .55)); }
.bh-progress { position: relative; z-index: 3; width: 50%; max-width: 340px; color: #fff; }
.bh-numbers { display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; }
.bh-big { font-variant-numeric: tabular-nums; letter-spacing: -.02em; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.bh-big b { font-size: 26px; font-weight: 800; line-height: 1; }
.bh-big span { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.bh-label { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.bh-progress .meter { margin-top: 5px; background: rgba(255, 255, 255, .28); }
.bh-progress .meter > span { background: linear-gradient(90deg, #FFE36B, #FFB13B); }
.bh-togo { margin-top: 4px; font-size: 12px; text-align: right; color: rgba(255, 255, 255, .88); text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.bh-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 0 14px; min-height: 48px; }
.bh-secret { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--ink-2); }
.bh-secret svg { color: #D99A00; font-size: 17px; }
.bh-secret b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rb-toggle { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 999px; background: none; font-weight: 700; font-size: 14px; color: var(--accent-strong); }
.rb-toggle svg { font-size: 18px; transition: transform .2s; }
.rb-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.rb { display: none; list-style: none; margin: 0; padding: 4px 14px 12px; }
.rb[data-open="true"] { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.rb li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.rb .rarity { color: var(--ink-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.rb-n { font-variant-numeric: tabular-nums; color: var(--muted); }
.rb-n b { color: var(--ink); }
.rb-bar { grid-column: 1 / -1; height: 4px; border-radius: 9px; background: var(--tile-2); overflow: hidden; }
.rb-bar span { display: block; height: 100%; background: var(--accent); }
.rb li.is-secret .rb-bar span { background: linear-gradient(90deg, #FFC233, #FF7AB6); }
.rb li.done .rb-n b { color: var(--accent-strong); }
@media (min-width: 760px) {
  .bh-strip { height: 116px; padding: 12px 24px 15px 4%; }
  .bh-strip.has-art { background: var(--art-wide) var(--art-wide-pos) / var(--art-wide-size) no-repeat, #0B1B4A; }
  .bh-strip .sa-logo { height: 88px; }
  .bh-big b { font-size: 34px; }
  .bh-big span { font-size: 18px; }
  .bh-label { font-size: 14px; }
  .bh-togo { font-size: 13px; }
  .bh-row { padding: 0 22px; }
  .rb-toggle { display: none; }
  .rb, .rb[data-open] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 22px; padding: 0 22px 14px; }
}

/* ---------- Tools row + sticky filter bar ---------- */
.tools { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 0 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search > svg { font-size: 19px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 100%; font-size: 16px; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { width: 44px; height: 42px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); }
.search-clear svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--tile); }
.search-clear[hidden] { display: none; }
.sort { position: relative; flex: none; }
.sort select { appearance: none; -webkit-appearance: none; height: 44px; max-width: 150px; padding: 0 30px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink-2); text-overflow: ellipsis; }
.sort > svg { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.seg { flex: none; display: flex; border-radius: 999px; background: var(--tile); }
.seg-btn { width: 46px; height: 44px; border: 3px solid var(--tile); border-radius: 999px; background: transparent; color: var(--muted); display: grid; place-items: center; font-size: 19px; }
.seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
@media (min-width: 760px) { .tools { justify-content: flex-end; } .search { flex: 0 1 300px; } }

.chipbar {
  position: sticky; top: var(--appbar-h); z-index: 20; margin: 8px -16px 0; padding: 8px 16px;
  background: rgba(244, 246, 250, .94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  transition: top .25s ease;
}
body.bar-hidden .chipbar { top: 0; }
@media (min-width: 760px) { .chipbar { margin: 8px -28px 0; padding: 10px 28px; } }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 16px; background: var(--tile); max-width: 620px; }
.chip { min-width: 0; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 2px 4px; border: 0; border-radius: 13px; background: transparent; color: var(--ink-2); line-height: 1.15; transition: background .15s, color .15s; }
.chip-l { font-weight: 800; font-size: 14px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip-n { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: var(--shadow-1); }
.chip[aria-pressed="true"] .chip-n { color: rgba(255, 255, 255, .72); }

/* ---------- Groups ---------- */
.group { margin-top: 14px; }
.group-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 17px; font-weight: 800; margin: 0 2px 10px; }
.group-title svg { color: #D99A00; }
.g-sub { font-size: 13px; font-weight: 600; color: var(--muted); }
.group-secret { margin-top: 26px; }
.empty { text-align: center; padding: 44px 16px; color: var(--ink-2); display: grid; gap: 14px; justify-items: center; font-size: 17px; max-width: 520px; margin: 0 auto; }

/* ---------- Grid + tiles: 3 across on a phone, 8–10 on desktop ---------- */
.grid { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 8px; }
@media (max-width: 339px) { .grid { --cols: 2; } }
@media (min-width: 600px) { .grid { --cols: 5; gap: 10px; } }
@media (min-width: 900px) { .grid { --cols: 7; } }
@media (min-width: 1100px) { .grid { --cols: 8; } }
@media (min-width: 1440px) { .grid { --cols: 10; } }
.tile { position: relative; background: var(--tile); border-radius: var(--r-md); border: 2px solid transparent; padding: 5px 5px 7px; -webkit-touch-callout: none; }
.tile-main { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; border-radius: 10px; touch-action: manipulation; }
.tile-main:active .tile-img { transform: scale(.97); }
.tile-img { position: relative; display: block; aspect-ratio: 63 / 88; border-radius: 5% / 3.6%; overflow: hidden; background: var(--tile-2); transition: transform .12s; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: filter .25s, opacity .25s; -webkit-user-drag: none; }
.tile-meta { display: block; padding: 6px 2px 0; }
.tile-title { font-size: 13px; font-weight: 700; line-height: 1.22; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.tnum { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12px; white-space: nowrap; }
.tile-sub { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.tile-sub .rglyph { font-size: 10px; }
.trar { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; font-size: 9.5px; overflow: hidden; text-overflow: ellipsis; }
.tile-spare { font-size: 11.5px; font-weight: 700; color: var(--accent-strong); }
@media (min-width: 900px) { .tile-title { font-size: 13.5px; } }

.qty-badge { position: absolute; top: 5px; right: 5px; z-index: 2; min-width: 28px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; line-height: 22px; text-align: center; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .25); font-variant-numeric: tabular-nums; }
.wish-badge { position: absolute; bottom: 5px; left: 5px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #F2A900; display: grid; place-items: center; font-size: 16px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.price-chip { position: absolute; bottom: 5px; right: 5px; z-index: 2; padding: 2px 7px; border-radius: 99px; background: rgba(23, 32, 51, .86); color: #fff; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.need-badge { display: none; position: absolute; left: 5px; top: 5px; z-index: 2; padding: 2px 8px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 0 0 2px #fff; }

/* Missing cards: the chosen look applies to the All view only. Need and Wishlist stay full color. */
html[data-missing="pocket"] #cards[data-filter="all"] .tile.is-missing { background: rgba(255, 255, 255, .7); border: 2px dashed #B3BFCF; }
html[data-missing="pocket"] #cards[data-filter="all"] .is-missing .tile-img img { filter: grayscale(1) contrast(.9) brightness(1.06); }
html[data-missing="faded"] #cards[data-filter="all"] .is-missing .tile-img img { filter: grayscale(.85); opacity: .55; }
html[data-missing="badge"] #cards[data-filter="all"] .is-missing .need-badge { display: block; }
#cards[data-filter="all"] .is-missing .tile-title { color: var(--ink-2); }

/* Holo shimmer on owned secret rares */
.holo { position: relative; }
.holo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 110, 200, .55) 36%, rgba(110, 220, 255, .55) 45%, rgba(255, 240, 130, .55) 54%, rgba(150, 255, 180, .5) 63%, transparent 75%);
  background-size: 260% 260%; mix-blend-mode: color-dodge; opacity: .6; animation: holo 5s ease-in-out infinite;
}
@keyframes holo { 0%, 100% { background-position: 100% 100%; } 50% { background-position: 0% 0%; } }
html[data-celebrate="off"] .holo::after { animation: none; background-position: 40% 40%; opacity: .35; }
.is-secret.is-owned { background: linear-gradient(160deg, #FFF4D6, #F2E6FF 55%, #DDF3FF); }

.tile.pop .tile-img { animation: pop .42s var(--ease-out); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.07); } 100% { transform: scale(1); } }
.plus-one { position: absolute; left: 50%; top: 34%; z-index: 4; pointer-events: none; transform: translate(-50%, 0); padding: 4px 12px; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); animation: rise .9s ease-out forwards; }
.plus-one.is-new { background: var(--gold); color: var(--gold-ink); }
@keyframes rise { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -34px) scale(1); } }

/* ---------- Quick list: 44px rows, full names, 2–3 columns on desktop ---------- */
.list { display: grid; gap: 6px; }
@media (min-width: 760px) { .list { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 8px 10px; } }
.row { position: relative; display: flex; align-items: center; gap: 4px; background: var(--surface); border-radius: 12px; padding: 2px 4px 2px 2px; box-shadow: var(--shadow-1); }
.row .plus-one { top: 50%; left: auto; right: 54px; transform: translate(0, -50%); }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 6px 4px 10px; border: 0; background: none; text-align: left; border-radius: 10px; }
.row-num { flex: none; width: 34px; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.row-text { min-width: 0; display: grid; }
.row-name { font-weight: 700; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.row-text .rarity { font-size: 12px; color: var(--muted); font-weight: 600; }
.row-wish { display: inline-block; color: #F2A900; margin-left: 5px; vertical-align: -1px; font-size: 14px; }
.row.is-missing .row-num { color: var(--muted); }
.row.is-missing .row-name { color: var(--ink-2); font-weight: 600; }
.stepper { flex: none; display: flex; align-items: center; background: var(--tile); border-radius: 999px; }
.step { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; font-size: 18px; color: var(--ink); }
.step:disabled { color: #B3BDCB; }
.step-plus { background: var(--surface); color: var(--accent-strong); box-shadow: inset 0 0 0 3px var(--tile); }
.step-q { min-width: 24px; text-align: center; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(16px + var(--safe-b)); z-index: 90; display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
body.sheet-open .toasts { bottom: auto; top: 12px; flex-direction: column; }
@media (min-width: 760px) { .toasts { bottom: 24px; } body.sheet-open .toasts { top: 20px; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(520px, 100%); min-height: 48px; padding: 6px 6px 6px 16px; border-radius: 16px; background: #1C2436; color: #fff; box-shadow: var(--shadow-2); font-size: 15px; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .2s, transform .25s var(--ease-out); }
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(8px); }
.toast:not(:has(.toast-undo)) { padding-right: 16px; }
.toast-msg { min-width: 0; }
.toast-msg b { margin-right: 4px; }
.toast .t-sub { color: rgba(255, 255, 255, .65); font-size: 13px; white-space: nowrap; }
.toast-undo { flex: none; min-height: 44px; min-width: 64px; padding: 0 14px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 800; }
.toast-milestone { background: linear-gradient(120deg, #FFD45C, #FFB13B 50%, #FF8CC0); color: #3B2300; font-size: 15px; padding: 10px 16px; }
.toast-milestone .ms-icon { display: inline-flex; vertical-align: -3px; margin-right: 6px; font-size: 20px; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 95; }

/* ---------- Card sheet ---------- */
#sheet-root .sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(15, 21, 36, .5); opacity: 0; transition: opacity .25s; }
#sheet-root .sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-2); padding: 8px 16px calc(20px + var(--safe-b)); transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .9, .25, 1); }
#sheet-root .sheet:focus { outline: none; }
#sheet-root.open .sheet-backdrop { opacity: 1; }
#sheet-root.open .sheet { transform: none; }
.grabber { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 2px auto 6px; }
.sheet-close { position: absolute; top: 8px; right: 8px; background: var(--tile); z-index: 2; }
.sheet-art { display: flex; align-items: center; justify-content: center; gap: 10px; touch-action: pan-y; margin-top: 6px; }
.sheet-img { position: relative; width: min(56vw, 32dvh, 300px); aspect-ratio: 63 / 88; border-radius: 4.5% / 3.3%; overflow: hidden; background: var(--tile-2); box-shadow: 0 14px 34px rgba(23, 32, 51, .28); }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.sheet-img.slide-l { animation: slideL .26s ease-out; }
.sheet-img.slide-r { animation: slideR .26s ease-out; }
@keyframes slideL { from { opacity: .3; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes slideR { from { opacity: .3; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.nav { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: 22px; color: var(--ink); box-shadow: var(--shadow-1); }
.nav:disabled { opacity: .35; box-shadow: none; }
.sheet-info { text-align: center; padding: 12px 4px 0; display: grid; justify-items: center; gap: 4px; }
.si-code { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.secret-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; background: linear-gradient(120deg, #FFF0C2, #FFE0F0); color: #8A5A00; font-size: 12px; font-weight: 800; }
.si-name { font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.si-rarity { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.si-status { margin-top: 4px; font-size: 15px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.si-status.have { background: var(--accent-soft); color: var(--accent-strong); }
.si-status.need { background: var(--tile); color: var(--ink-2); }
.si-fromwish { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: #8A6400; }
.si-fromwish svg { color: #F2A900; }
.big-stepper { display: flex; align-items: center; gap: 18px; margin: 8px 0 4px; }
.big-step { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--tile); color: var(--ink); display: grid; place-items: center; font-size: 28px; transition: transform .1s; }
.big-step:active { transform: scale(.93); }
.big-step:disabled { color: #B3BDCB; }
.big-plus { background: var(--accent); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent); }
.big-q { min-width: 56px; font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; line-height: 1; }
.big-q.bump { animation: bump .3s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.3); } }
.wish-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px; color: var(--ink-2); }
.wish-btn svg { font-size: 20px; color: #E2A200; }
.wish-btn[aria-pressed="true"] { background: #FFF6DA; border-color: #FFE08A; color: #6B4A00; }
.si-price { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.si-price b { color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
.si-pos { font-size: 13px; color: var(--muted); margin-top: 6px; }
.si-hint { display: none; }
@media (min-width: 760px) {
  #sheet-root .sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: min(860px, calc(100vw - 48px)); max-height: min(720px, calc(100dvh - 48px)); border-radius: 28px; padding: 28px 28px 24px; transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .25s var(--ease-out), opacity .2s; }
  #sheet-root.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
  .grabber { display: none; }
  .sheet-close { top: 14px; right: 14px; }
  .sheet-body { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
  .sheet-art { margin: 0; }
  .sheet-img { width: min(340px, calc((100dvh - 120px) * 63 / 88)); }
  .sheet-info { text-align: left; justify-items: start; padding: 0 8px 0 0; }
  .si-name { font-size: 32px; }
  .si-hint { display: inline; margin-left: 6px; }
  .si-hint::before { content: "  ·  "; white-space: pre; }
}

/* ---------- Quick add ---------- */
.qa { display: grid; gap: 10px; padding-top: 10px; }
.qa-tray { background: var(--surface); border-radius: var(--r-md); padding: 8px 10px 8px 12px; box-shadow: var(--shadow-1); min-width: 0; }
.qa-tray-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.qa-tray-head h2 { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.qa-counter { font-size: 14px; font-weight: 800; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.qa-counter.full { color: #B07800; }
.qa-tray-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 2px; min-height: 52px; align-items: flex-start; }
.qa-tray-empty { color: var(--muted); font-size: 14px; align-self: center; }
.tray-item { animation: trayIn .3s var(--ease-out); }
@keyframes trayIn { from { transform: scale(.4); opacity: 0; } }
.tray-btn { display: grid; justify-items: center; gap: 1px; width: 46px; min-height: 64px; padding: 3px 0 0; border: 2px solid transparent; border-radius: 10px; background: none; }
.tray-item.is-selected .tray-btn { border-color: var(--accent); background: var(--accent-soft); }
.tray-thumb { position: relative; width: 34px; aspect-ratio: 63 / 88; border-radius: 3px; overflow: hidden; background: var(--tile-2); }
.tray-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tray-new { position: absolute; left: 0; right: 0; bottom: 0; background: var(--gold); color: var(--gold-ink); font-size: 8px; font-weight: 900; text-align: center; letter-spacing: .04em; }
.tray-count { position: absolute; top: 0; right: 0; padding: 0 3px; border-radius: 0 0 0 5px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 900; }
.tray-num { font-size: 11px; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.qa-tray-action { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.qa-tray-action[hidden] { display: none; }
.qa-action-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-action-name .t-sub { color: var(--muted); }
.qa-preview { position: relative; min-width: 0; }
.qa-banner { position: absolute; left: 0; right: 0; top: -4px; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.qa-card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow-1); min-height: 182px; }
.qa-art { position: relative; aspect-ratio: 63 / 88; border-radius: 5% / 3.6%; overflow: hidden; background: var(--tile-2); box-shadow: 0 8px 20px rgba(23, 32, 51, .2); }
.qa-art img { width: 100%; height: 100%; object-fit: cover; }
.qa-card.is-added .qa-art { animation: pop .45s var(--ease-out); }
.qa-art-empty { box-shadow: none; background: var(--tile); border: 2px dashed #C3CDDA; display: grid; place-items: end center; padding: 10px; }
.hint-card { width: 100%; display: grid; gap: 5px; }
.hint-line { height: 6px; border-radius: 4px; background: #D3DBE6; }
.hint-line.short { width: 60%; }
.hint-code { justify-self: start; margin-top: 4px; padding: 2px 6px; border-radius: 6px; background: var(--surface); font-size: 12px; font-weight: 800; color: var(--accent-strong); box-shadow: 0 0 0 2px var(--accent); font-variant-numeric: tabular-nums; }
.qa-info { min-width: 0; display: grid; gap: 3px; align-content: center; justify-items: start; }
.qa-code { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.qa-name { font-size: 21px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.qa-rarity { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.qa-price { font-size: 13.5px; color: var(--ink-2); }
.qa-price b { color: var(--ink); }
.qa-help { font-size: 15px; color: var(--ink-2); }
.qa-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 5px 11px; border-radius: 99px; font-weight: 800; font-size: 13.5px; }
.qa-status svg { font-size: 16px; }
.qa-status.new { background: var(--gold); color: var(--gold-ink); animation: wiggle .5s var(--ease-out); }
.qa-status.have { background: var(--tile); color: var(--ink-2); }
.qa-status.added { background: var(--accent-soft); color: var(--accent-strong); }
.qa-packnote { font-size: 12.5px; font-weight: 700; color: #8A5A00; }
.qa-again { min-height: 40px; margin-top: 4px; font-size: 14px; padding: 0 14px; }
@keyframes wiggle { 0% { transform: scale(.8) rotate(-4deg); } 60% { transform: scale(1.06) rotate(2deg); } 100% { transform: none; } }
.new-stamp { position: absolute; z-index: 2; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-12deg); padding: 4px 12px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-weight: 900; font-size: 20px; box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(0, 0, 0, .3); animation: stamp .45s var(--ease-out); }
@keyframes stamp { from { transform: translate(-50%, -50%) rotate(-12deg) scale(2.2); opacity: 0; } }
.qa-pad { display: grid; gap: 8px; }
.qa-display { display: flex; align-items: baseline; justify-content: center; gap: 2px; font-variant-numeric: tabular-nums; letter-spacing: .04em; line-height: 1; }
#qa-digits { font-size: 44px; font-weight: 800; color: var(--ink); }
#qa-digits .pad0 { color: #C5CEDA; }
.qa-of { font-size: 21px; font-weight: 700; color: var(--muted); }
.qa-display.shake { animation: shake .3s; }
@keyframes shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.qa-hint { min-height: 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--danger); }
.qa-hint:empty { display: none; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.key { height: 56px; border-radius: 16px; border: 0; background: var(--surface); box-shadow: 0 1px 0 #D3DBE6, var(--shadow-1); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); display: grid; place-items: center; transition: transform .08s, background .1s; }
.key:active, .key.pressed { transform: scale(.95); background: var(--accent-soft); }
.key-fn { font-size: 16px; color: var(--ink-2); background: var(--tile); box-shadow: none; }
.key-fn svg { font-size: 26px; }
.add-btn { height: 62px; border-radius: 20px; border: 0; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; font-weight: 800; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent); transition: transform .1s, background .15s; }
.add-btn svg { font-size: 26px; }
.add-btn:active:not(:disabled) { transform: scale(.98); background: var(--accent-strong); }
.add-btn:disabled { background: #C9D2DE; box-shadow: none; color: #F4F6FA; }
.add-btn.flash { animation: flash .4s; }
@keyframes flash { 30% { transform: scale(1.03); } }
.qa-kbd-hint { display: none; text-align: center; font-size: 13px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) and (min-width: 760px) { .qa-kbd-hint { display: block; } }
@media (max-height: 760px) and (max-width: 759px) { .key { height: 50px; } .qa-card { min-height: 160px; grid-template-columns: 96px 1fr; } #qa-digits { font-size: 38px; } .add-btn { height: 56px; } }
@media (max-height: 700px) and (max-width: 759px) {
  .qa { gap: 8px; padding-top: 8px; }
  .qa-card { min-height: 0; grid-template-columns: 84px 1fr; padding: 10px; }
  .qa-name { font-size: 19px; }
  .key { height: 46px; }
  #qa-digits { font-size: 34px; }
  .add-btn { height: 54px; }
}
@media (min-width: 760px) {
  .qa { max-width: 1000px; grid-template-columns: 1fr 380px; grid-template-areas: "tray pad" "preview pad" "foot foot"; align-items: start; gap: 20px 28px; padding-top: 26px; }
  .qa-tray { grid-area: tray; }
  .qa-preview { grid-area: preview; }
  .qa .foot { grid-area: foot; }
  .qa-pad { grid-area: pad; background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-1); }
  .qa-card { grid-template-columns: 220px 1fr; gap: 24px; padding: 20px; min-height: 348px; }
  .qa-name { font-size: 30px; }
  .key { height: 62px; background: var(--paper); box-shadow: 0 1px 0 #D3DBE6; }
  .key-fn { background: var(--tile); }
}

/* ---------- Pack summary ---------- */
.summary { max-width: 760px; padding-bottom: 0; }
.sum-hero { text-align: center; padding: 18px 0 14px; }
.sum-count { font-weight: 800; color: var(--accent-strong); font-size: 15px; }
.sum-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 12px; }
.sum-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sum-stat { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow-1); font-weight: 800; font-size: 15px; color: var(--ink-2); }
.sum-stat.new { background: var(--gold); color: var(--gold-ink); }
.sum-best { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; background: linear-gradient(135deg, #FFF7DD, #F4EBFF 60%, #E3F4FF); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-1); }
.sum-best-art { position: relative; aspect-ratio: 63 / 88; border-radius: 5% / 3.6%; overflow: hidden; box-shadow: 0 8px 20px rgba(23, 32, 51, .25); }
.sum-best-art img { width: 100%; height: 100%; object-fit: cover; }
.sum-k { font-size: 13px; font-weight: 800; color: #8A5A00; }
.sum-best-name { font-size: 20px; font-weight: 800; line-height: 1.2; }
.sum-best-price { margin-top: 4px; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sum-value { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 8px; margin: 14px 0 4px; font-size: 15px; color: var(--ink-2); }
.sum-value b { font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sum-new { margin-top: 16px; }
.sum-new h2 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.sum-new-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .sum-new-list { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sum-new-list img { width: 100%; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 5% / 3.6%; box-shadow: var(--shadow-1); }
.sum-new-list span { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; line-height: 1.2; }
.sum-none { color: var(--ink-2); }
.sum-saved { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.sum-saved svg { color: var(--accent); }
.sum-actions { position: sticky; bottom: 0; z-index: 10; display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; margin: 8px -16px 0; padding: 14px 16px calc(14px + var(--safe-b)); background: linear-gradient(rgba(244, 246, 250, 0), var(--paper) 28%); }
.sum-actions .btn { white-space: normal; text-align: center; line-height: 1.2; }
.sum-actions .btn-big { min-height: 58px; }

/* ---------- Big pull moment ---------- */
#pull-root .pull { position: fixed; inset: 0; z-index: 92; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 42%, #2A2F6B, #0B0F26 70%); opacity: 0; transition: opacity .25s; }
#pull-root.open .pull { opacity: 1; }
.pull-rays { position: absolute; left: 50%; top: 42%; width: 220vmax; height: 220vmax; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .10) 0 7deg, rgba(255, 255, 255, 0) 7deg 18deg); animation: spin 22s linear infinite; }
.tier-2 .pull-rays { background: repeating-conic-gradient(from 0deg, rgba(160, 200, 255, .16) 0 7deg, transparent 7deg 18deg); }
.tier-3 .pull-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 210, 90, .22) 0 7deg, transparent 7deg 16deg); }
.tier-4 .pull-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 120, 200, .22) 0 6deg, rgba(120, 220, 255, .2) 6deg 12deg, rgba(255, 230, 120, .22) 12deg 18deg, transparent 18deg 26deg); animation-duration: 12s; }
.pull.is-wish { background: radial-gradient(circle at 50% 42%, #6B2A63, #1A0B26 70%); }
.pull.is-wish .pull-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 200, 80, .2) 0 7deg, rgba(255, 140, 200, .16) 7deg 14deg, transparent 14deg 22deg); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.pull-inner { position: relative; display: grid; justify-items: center; gap: 8px; padding: 20px; text-align: center; color: #fff; max-width: 520px; }
.pull-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 99px; background: rgba(255, 255, 255, .14); font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.pull-kicker svg { color: #FFD45C; font-size: 18px; }
.pull-title { font-size: clamp(26px, 7vw, 40px); font-weight: 900; letter-spacing: .01em; text-transform: uppercase; line-height: 1.05; background: linear-gradient(90deg, #FFE36B, #FFFFFF 45%, #FFB3DD); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .4)); }
.tier-2 .pull-title { background: linear-gradient(90deg, #CFE3FF, #FFFFFF 50%, #CFE3FF); -webkit-background-clip: text; background-clip: text; }
.pull-card { position: relative; width: min(58vw, 42dvh, 300px); aspect-ratio: 63 / 88; border-radius: 4.5% / 3.3%; overflow: hidden; box-shadow: 0 0 0 3px rgba(255, 255, 255, .5), 0 20px 60px rgba(0, 0, 0, .6), 0 0 80px rgba(255, 210, 90, .35); animation: pullIn .7s var(--ease-out); }
.tier-4 .pull-card { box-shadow: 0 0 0 3px #FFE36B, 0 20px 60px rgba(0, 0, 0, .6), 0 0 120px rgba(255, 140, 220, .55); }
.pull-card img { width: 100%; height: 100%; object-fit: cover; }
@keyframes pullIn { 0% { transform: perspective(800px) rotateY(90deg) scale(.6); opacity: 0; } 60% { transform: perspective(800px) rotateY(-8deg) scale(1.05); opacity: 1; } 100% { transform: none; } }
.pull-name { font-size: 18px; font-weight: 800; }
.pull-price { font-size: 14px; color: rgba(255, 255, 255, .75); }
.pull-ok { margin-top: 6px; background: #fff; color: #172033; min-width: 180px; }

/* ---------- Mock options drawer (design-review tool) ---------- */
#mock-root .mock-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(10, 12, 18, .22); opacity: 0; transition: opacity .2s; }
#mock-root .mock-drawer { position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; max-height: 80dvh; overflow-y: auto; overscroll-behavior: contain; background: #1F232C; color: #E8ECF3; border-radius: 20px 20px 0 0; padding: 18px 18px calc(20px + var(--safe-b)); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .9, .25, 1); box-shadow: 0 -10px 40px rgba(0, 0, 0, .35); }
#mock-root .mock-drawer:focus { outline: none; }
#mock-root.open .mock-backdrop { opacity: 1; }
#mock-root.open .mock-drawer { transform: none; }
@media (min-width: 760px) { #mock-root .mock-drawer { left: auto; top: 0; width: 400px; max-height: none; border-radius: 0; transform: translateX(100%); padding: 22px; } }
.mock-head { display: flex; justify-content: space-between; align-items: start; }
.mock-head .icon-btn { color: #E8ECF3; margin: -6px -8px 0 0; }
.mock-kicker { display: inline-block; font-size: 12px; font-weight: 700; color: #FFD45C; border: 1px dashed rgba(255, 212, 92, .6); border-radius: 6px; padding: 1px 7px; margin-bottom: 6px; }
.mock-head h2 { font-size: 20px; font-weight: 700; }
.mock-intro { color: #A9B2C3; margin: 8px 0 14px; line-height: 1.45; }
.mock-group { border: 0; margin: 0; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.mock-group legend { float: left; width: 100%; font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.mock-seg { clear: both; display: flex; flex-wrap: wrap; gap: 6px; }
.mock-opt { flex: 1 1 auto; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #DDE3EE; font-family: inherit; font-size: 14px; font-weight: 600; }
.mock-opt[aria-pressed="true"] { background: #E8ECF3; color: #1F232C; border-color: #E8ECF3; }
.mock-opt:focus-visible, .mock-btn:focus-visible { outline-color: #FFD45C; }
.mock-note { color: #98A2B5; font-size: 13px; margin-top: 6px; }
.mock-data { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 14px; }
.mock-data-title { font-weight: 700; margin-bottom: 8px; }
.mock-data-btns { display: flex; gap: 8px; }
.mock-btn { flex: 1; min-height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #E8ECF3; font-family: inherit; font-weight: 600; font-size: 14px; }
.mock-btn.danger { border-color: rgba(255, 110, 120, .5); color: #FF9AA3; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .holo::after { animation: none; background-position: 40% 40%; opacity: .35; }
  .pull-rays { animation: none; }
  .plus-one { display: none; }
}
