/* ==========================================================================
   CJ RESTOCK — base layout + components
   Mobile-first. Breakpoints: 600 (large phone/small tablet), 768 (tablet → side rail),
   1100 (laptop → 2-column lists), 1400 (wide).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: var(--scheme); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  transition: background-color .25s ease, color .25s ease;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-feature-settings: "tnum"; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100dvh; }
.main {
  flex: 1;
  min-width: 0;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(96px + env(safe-area-inset-bottom));
}
.screen { max-width: 1180px; margin: 0 auto; animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Navigation: bottom tabs (mobile) → side rail (≥768) ---------- */
.nav {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: grid; grid-template-columns: repeat(6, 1fr);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line);
}
.nav-brand { display: none; }
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted); font-size: 12px; font-weight: 600; padding: 2px 0;
  position: relative; min-height: 48px;
}
.nav-item .pill {
  display: grid; place-items: center; width: 48px; height: 32px; border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--text); }
.nav-item.active .pill { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow); }
.nav-item:active .pill { transform: scale(.92); }
.nav-badge {
  position: absolute; top: -4px; left: calc(50% + 6px);
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--bg);
}
.nav-item.active .nav-badge { background: var(--accent-2); color: var(--accent-2-ink); }

@media (min-width: 768px) {
  .nav {
    position: sticky; top: 0; inset: auto; height: 100dvh; width: 92px; flex: none;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 20px 8px; border-top: 0; border-right: 1px solid var(--line);
  }
  .nav-brand { display: grid; place-items: center; margin-bottom: 18px; }
  .nav-item { width: 76px; padding: 8px 0; }
  .main { padding: 28px 28px 40px; }
}
@media (min-width: 1200px) {
  .nav { width: 232px; align-items: stretch; padding: 24px 16px; }
  .nav-brand { display: flex; justify-content: flex-start; gap: 10px; padding: 0 10px; }
  .nav-brand .brand-word { display: block; }
  .nav-item { flex-direction: row; width: auto; gap: 12px; font-size: 15px; padding: 4px 6px; border-radius: 14px; }
  .nav-item .pill { width: 44px; height: 36px; }
  .nav-item:hover { background: var(--surface); }
  .nav-badge { position: static; margin-left: auto; border: 0; }
  .main { padding: 36px 40px 48px; }
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow);
  font-family: "Anton", Impact, sans-serif; font-size: 18px; letter-spacing: .5px;
}
.brand-word { display: none; font-family: "Anton", Impact, sans-serif; font-size: 22px; font-style: italic; letter-spacing: .5px; line-height: 40px; }
.brand-word span { color: var(--accent); }

/* ---------- Screen header ---------- */
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 8px 0 16px; }
.head > div:first-child { min-width: 0; }
.display {
  font-family: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  font-style: italic; font-weight: 400; text-transform: uppercase;
  color: var(--display-color);
  font-size: clamp(36px, 10vw, 60px); line-height: .95; letter-spacing: .5px; margin: 0;
  transform: skewX(-6deg); transform-origin: left bottom;
}
.display-sm {
  font-family: "Anton", Impact, sans-serif; font-style: italic; text-transform: uppercase;
  color: var(--display-alt); font-size: 26px; letter-spacing: .4px; margin: 0;
  transform: skewX(-6deg); transform-origin: left bottom; line-height: 1;
}
.head-sub { color: var(--muted); margin-top: 6px; font-size: 14px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.head-actions { display: flex; align-items: center; gap: 4px; padding-top: 6px; flex: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--text-2);
  transition: background .15s ease;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.accent { color: var(--accent); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: conic-gradient(from 200deg, var(--accent), var(--accent-2), var(--accent));
  padding: 2.5px; box-shadow: var(--shadow);
}
.avatar span {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); font-weight: 800; font-size: 16px; color: var(--text);
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(51, 214, 159, .55); } 70% { box-shadow: 0 0 0 9px rgba(51, 214, 159, 0); } 100% { box-shadow: 0 0 0 0 rgba(51, 214, 159, 0); } }

/* ---------- Search ---------- */
.search {
  display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 14px;
}
.search svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; height: 100%; }
.search input::placeholder { color: var(--muted); }
.search .divider { width: 1px; height: 26px; background: var(--line-strong); }
.search .icon-btn { color: var(--accent); width: 42px; height: 42px; border-radius: 50%; }

/* ---------- Chips / segmented ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 18px; padding: 2px 16px; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .chips { margin: 0 0 18px; padding: 2px 0; flex-wrap: wrap; } }
.chip {
  flex: none; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--text-2); font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; scroll-snap-align: start;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--line-strong); }
.chip.active { background: var(--chip-active-bg); color: var(--chip-active-ink); border-color: transparent; }
.chip .count { font-size: 12px; opacity: .75; }
.chip.outline { background: transparent; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border-radius: 999px; padding: 5px; gap: 4px; border: 1px solid var(--line); }
.seg button { height: 42px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: all .15s ease; white-space: nowrap; padding: 0 10px; }
.seg button.active { background: var(--chip-active-bg); color: var(--chip-active-ink); }
.seg.sm button { height: 36px; font-size: 14px; }

/* ---------- Section header ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.section-head .meta { color: var(--muted); font-size: 14px; }
.section-head .rule { flex: 1; height: 1px; background: var(--line-strong); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.card.pad { padding: 18px; }
.grid-list { display: grid; gap: 10px; }
@media (min-width: 1100px) { .grid-list.two { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* ---------- Alert row ---------- */
.alert {
  position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 14px 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  cursor: pointer; transition: transform .12s ease, border-color .15s ease, background .15s ease; overflow: hidden;
}
.alert:hover { border-color: var(--line-strong); }
.alert:active { transform: scale(.99); }
.alert::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--status-color, var(--ok)); }
.alert.new { animation: landed 1.6s ease; }
@keyframes landed { 0% { background: var(--accent-soft); transform: translateY(-8px); opacity: 0; } 20% { opacity: 1; transform: none; } 100% { background: var(--surface); } }
.art { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: #fff; flex: none; }
.art svg { width: 100%; height: 100%; }
.alert-title { font-weight: 700; font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alert-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.alert-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.price { font-weight: 800; font-size: 19px; letter-spacing: -.2px; font-feature-settings: "tnum"; }
.delta { font-size: 12px; font-weight: 700; }
.delta.good { color: var(--ok); } .delta.mid { color: var(--warn); } .delta.high { color: var(--bad); }
@media (max-width: 380px) {
  .alert { grid-template-columns: 52px 1fr; gap: 12px; }
  .art { width: 52px; height: 52px; border-radius: 12px; }
  .alert-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .alert-side > div { display: flex; align-items: baseline; gap: 8px; }
}

.status { font-weight: 800; font-size: 12px; letter-spacing: .6px; }
.status.in { color: var(--ok); } .status.out { color: var(--muted); } .status.queue { color: var(--warn); } .status.pre { color: var(--info); }
.dotsep::before { content: "·"; margin-right: 2px; }
.retailer { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; }
.r-badge { width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 900; color: #fff; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: 16px; transition: transform .1s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.ghost:hover { background: var(--surface-3); }
.btn.outline { border: 1px solid var(--line-strong); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.tag svg { width: 13px; height: 13px; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.accent { background: var(--accent-soft); color: var(--accent); }
.tag.info { background: rgba(111, 183, 255, .14); color: var(--info); }

/* Confidence meter */
.conf { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.conf-bars { display: inline-flex; gap: 2px; align-items: flex-end; }
.conf-bars i { width: 4px; border-radius: 2px; background: var(--surface-3); }
.conf-bars i:nth-child(1) { height: 6px; } .conf-bars i:nth-child(2) { height: 9px; } .conf-bars i:nth-child(3) { height: 12px; } .conf-bars i:nth-child(4) { height: 15px; }
.conf.high .conf-bars i { background: var(--ok); }
.conf.med .conf-bars i:nth-child(-n+3) { background: var(--warn); }
.conf.low .conf-bars i:nth-child(-n+2) { background: var(--bad); }

/* ---------- Empty ---------- */
.empty { text-align: center; color: var(--muted); padding: 48px 20px; }
.empty svg { width: 40px; height: 40px; margin: 0 auto 12px; opacity: .6; }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }

/* ---------- News ---------- */
.news-feature { padding: 22px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 1.2px; color: var(--info); text-transform: uppercase; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.kicker.read::before { background: transparent; border: 1.5px solid var(--muted); }
.kicker time { color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.news-feature h2 { font-size: clamp(24px, 6.5vw, 34px); line-height: 1.12; margin: 10px 0; letter-spacing: -.4px; }
.news-feature p, .news-item p { color: var(--text-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-src { color: var(--muted); font-size: 14px; margin-top: 12px; }
.news-item { padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.news-item h3 { font-size: 19px; line-height: 1.25; margin: 8px 0 6px; letter-spacing: -.2px; }
.news-item p { -webkit-line-clamp: 2; }
.news-item.read h3 { color: var(--text-2); font-weight: 600; }
.unread-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 14px; margin-bottom: 4px; }
.link-btn { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.link-btn svg { width: 16px; height: 16px; }
.news-layout { display: grid; gap: 18px; }
@media (min-width: 1100px) { .news-layout { grid-template-columns: 1.1fr 1fr; align-items: start; } .news-layout .sticky { position: sticky; top: 24px; } }
.article-body p { color: var(--text-2); line-height: 1.6; margin: 0 0 14px; display: block; }
.article-body ul { color: var(--text-2); padding-left: 20px; line-height: 1.6; }

/* ---------- Calendar ---------- */
.hero { overflow: hidden; padding: 0; }
.hero-art { height: clamp(150px, 38vw, 230px); position: relative; overflow: hidden; }
.hero-art svg { width: 100%; height: 100%; }
.hero-body { padding: 18px 22px 6px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hero-body h2 { font-size: clamp(24px, 6.5vw, 32px); line-height: 1.12; margin: 10px 0 6px; letter-spacing: -.4px; }
.hero-body .sub { color: var(--muted); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--accent); color: var(--accent-ink); margin-top: 16px; }
.countdown div { text-align: center; padding: 16px 4px 14px; }
.countdown b { display: block; font-family: "Anton", Impact, sans-serif; font-style: italic; font-size: clamp(36px, 10vw, 54px); line-height: 1; font-weight: 400; font-feature-settings: "tnum"; }
.countdown span { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; opacity: .85; }
.remind { display: flex; align-items: center; gap: 14px; padding: 16px 22px; width: 100%; text-align: left; }
.remind .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.remind.on .ic { background: var(--accent); color: var(--accent-ink); }
.remind b { display: block; font-size: 17px; }
.remind small { color: var(--muted); font-size: 14px; }
.remind .ic svg { width: 20px; height: 20px; }
.remind > svg { margin-left: auto; color: var(--muted); width: 20px; height: 20px; }
.week { padding: 18px 14px; }
.week-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.week-head .display-sm { color: var(--accent); font-size: 24px; }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 4px; }
.week-grid .dow { color: var(--muted); font-size: 13px; font-weight: 700; padding-bottom: 8px; }
.day { height: 58px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 18px; color: var(--text-2); border: 1.5px solid transparent; font-feature-settings: "tnum"; }
.day:hover { background: var(--surface-2); }
.day.today { color: var(--text); font-weight: 800; }
.day.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.day i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.day i.none { background: transparent; }
.event { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: 14px; }
.event-date { text-align: center; border-radius: 14px; background: var(--surface-2); padding: 8px 0; }
.event-date b { display: block; font-size: 22px; line-height: 1; font-feature-settings: "tnum"; }
.event-date small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.event h4 { margin: 0 0 4px; font-size: 16px; line-height: 1.25; }
.event .meta { color: var(--muted); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cal-layout { display: grid; gap: 14px; }
@media (min-width: 1100px) { .cal-layout { grid-template-columns: 1.05fr 1fr; align-items: start; } }
.bell-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.bell-btn.on { background: var(--accent); color: var(--accent-ink); }
.bell-btn svg { width: 19px; height: 19px; }

/* ---------- Checker ---------- */
.sheet-panel { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 28px 28px 22px 22px; margin: 0 -16px; padding: 10px 16px 16px; }
@media (min-width: 768px) { .sheet-panel { margin: 0; padding: 14px 20px 20px; } }
.grabber { width: 44px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 4px auto 14px; }
.lookup-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.field label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; height: 50px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong);
  padding: 0 14px; outline: none; font-size: 16px; transition: border-color .15s ease;
}
.textarea { height: 92px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); }
.range { width: 100%; accent-color: var(--accent); height: 30px; }
.results-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.results-head b { font-size: 17px; display: block; } .results-head small { color: var(--muted); font-size: 15px; }
.sighting { padding: 16px 18px; }
.sighting h4 { margin: 0 0 6px; font-size: 18px; }
.sighting .store .mono { white-space: nowrap; }
.sighting .store { display: flex; justify-content: space-between; color: var(--muted); gap: 10px; }
.sighting .store b { color: var(--text-2); }
.sighting .ev { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; font-size: 14px; color: var(--muted); }
.sighting .actions { display: flex; gap: 8px; margin-top: 12px; }
.note { color: var(--muted); font-size: 14px; margin: 0 2px 14px; }
.sticky-cta { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom)); margin-top: 16px; z-index: 5; }
@media (min-width: 768px) { .sticky-cta { bottom: 16px; } }
.win { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; }
.win .who { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; }
.checker-layout { display: grid; gap: 14px; }
@media (min-width: 1100px) { .checker-layout.split { grid-template-columns: 1fr 1fr; } }

/* ---------- Market ---------- */
.market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.listing { overflow: hidden; cursor: pointer; transition: transform .12s ease, border-color .15s ease; display: flex; flex-direction: column; }
.listing:hover { border-color: var(--line-strong); }
.listing:active { transform: scale(.985); }
.listing-art { aspect-ratio: 1 / 1; position: relative; background: #f4f1ec; }
.listing-art svg { width: 100%; height: 100%; }
.listing-art .cond { position: absolute; left: 10px; bottom: 10px; background: rgba(10, 10, 10, .82); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; padding: 5px 10px; border-radius: 8px; }
.listing-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.listing-body .price { font-size: 20px; font-family: "JetBrains Mono", monospace; font-weight: 700; }
.listing-body h4 { margin: 6px 0 10px; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-foot { display: flex; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 13px; margin-top: auto; }
.listing-foot .new { color: var(--accent-2); }
[data-app-theme="red-gold"] .listing-foot .new { color: var(--accent-2); }
.fab {
  position: fixed; right: 18px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 30;
  height: 60px; padding: 0 26px; border-radius: 20px; font-size: 18px;
}
@media (min-width: 768px) { .fab { bottom: 28px; right: 32px; } }
.msrp-line { font-size: 12px; font-weight: 700; margin-top: 2px; }

/* ---------- Sheets (bottom sheet mobile → modal ≥768) ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 60; animation: fade .2s ease; backdrop-filter: blur(2px); }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-elev); border-radius: 28px 28px 0 0; border: 1px solid var(--line);
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2, .9, .25, 1);
}
@keyframes up { from { transform: translateY(100%); } }
@media (min-width: 768px) {
  .sheet { left: 50%; top: 50%; bottom: auto; right: auto; width: min(580px, 92vw); max-height: 86dvh; transform: translate(-50%, -50%); border-radius: 26px; padding: 8px 26px 26px; animation: pop .22s ease; }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, -46%); } }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: -8px; background: var(--bg-elev); padding: 10px 0; z-index: 2; }
.sheet-head h3 { margin: 0; font-size: 20px; }
.sheet .grabber { margin-top: 2px; }
@media (min-width: 768px) { .sheet .grabber { display: none; } }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.kv div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.kv small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.kv b { font-size: 15px; }
.detail-top { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; margin: 6px 0 4px; }
.detail-top .art { width: 96px; height: 96px; border-radius: 20px; }
.detail-top h2 { font-size: 20px; margin: 0 0 6px; line-height: 1.25; }
.row-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 16px; }
.provenance { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-top: 4px; }
.provenance h5 { margin: 0 0 10px; font-size: 13px; color: var(--muted); letter-spacing: .8px; text-transform: uppercase; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: 14px; color: var(--text-2); }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline li small { color: var(--muted); }
.spark { width: 100%; height: 64px; }

/* Settings list */
.settings-group { margin: 18px 0; }
.settings-group h5 { margin: 0 0 8px 4px; font-size: 12px; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; }
.settings-list { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.setting { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); min-height: 58px; width: 100%; text-align: left; }
.setting:last-child { border-bottom: 0; }
.setting .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); flex: none; }
.setting .ic svg { width: 19px; height: 19px; }
.setting .txt { flex: 1; min-width: 0; }
.setting .txt b { display: block; font-weight: 600; }
.setting .txt small { color: var(--muted); font-size: 13px; }
.setting > svg { width: 18px; height: 18px; color: var(--muted); }
.switch { position: relative; width: 50px; height: 30px; border-radius: 999px; background: var(--surface-3); transition: background .2s ease; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(20px); }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-opt { border-radius: 18px; padding: 10px; border: 2px solid var(--line); background: var(--surface); text-align: left; transition: border-color .15s ease, transform .1s ease; }
.theme-opt:active { transform: scale(.97); }
.theme-opt.active { border-color: var(--accent); }
.theme-opt .sw { height: 58px; border-radius: 12px; display: grid; grid-template-columns: 2fr 1fr 1fr; overflow: hidden; margin-bottom: 8px; border: 1px solid var(--line); }
.theme-opt b { display: block; font-size: 13px; line-height: 1.25; }
.theme-opt small { color: var(--muted); font-size: 12px; }
.profile-card { display: flex; gap: 14px; align-items: center; padding: 16px; }
.profile-card .avatar { width: 60px; height: 60px; }
.profile-card .avatar span { font-size: 20px; }
.profile-card h3 { margin: 0; font-size: 19px; }
.plan { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.fineprint { color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; margin: 18px 6px 0; }
.form-grid { display: grid; gap: 12px; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-row .chip { height: 38px; padding: 0 14px; font-size: 14px; }
.photo-drop { border: 1.5px dashed var(--line-strong); border-radius: 16px; padding: 18px; display: flex; gap: 12px; align-items: center; color: var(--muted); cursor: pointer; }
.photo-drop svg { width: 26px; height: 26px; color: var(--accent); }
.photo-drop img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }

/* ---------- Toast ---------- */
.toasts { position: fixed; top: calc(env(safe-area-inset-top) + 12px); left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: drop .3s cubic-bezier(.2, .9, .25, 1);
  font-size: 14px; cursor: pointer;
}
.toast > div:not(.art) > svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.toast .art { width: 40px; height: 40px; border-radius: 10px; }
.toast b { display: block; font-size: 14px; }
.toast small { color: var(--muted); }
.toast.out { animation: rise .25s ease forwards; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } }
@keyframes rise { to { opacity: 0; transform: translateY(-14px); } }

/* ---------- Misc ---------- */
.demo-banner { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.demo-banner b { color: var(--accent); }
.spacer { height: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.region-select { height: 44px; width: 72px; border-radius: 999px; padding: 0 10px; }
.cat-seg { margin-bottom: 12px; max-width: 520px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.note svg { width: 15px; height: 15px; display: inline; vertical-align: -2px; color: var(--accent); }
.live-tag { height: 20px; padding: 0 7px; font-size: 10px; letter-spacing: .8px; }
.live-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 2px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Pokédex ---------- */
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.art { position: relative; }
.art-stack { position: relative; display: block; width: 100%; height: 100%; }
.art-stack > svg { width: 100%; height: 100%; }
.art-pk { position: absolute; right: -6%; bottom: -8%; width: 66%; height: 66%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.listing-art .art-pk { right: 4%; bottom: 2%; width: 58%; height: 58%; }
.hero-art .hero-pk { position: absolute; right: 4%; bottom: -4%; height: 100%; width: auto; max-width: 46%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); }
.fav-dot { display: inline-grid; place-items: center; color: var(--warn); margin-right: 4px; vertical-align: -2px; }
.fav-dot svg { width: 15px; height: 15px; }
.dex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.dex-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 10px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); text-align: center; transition: border-color .15s ease, transform .1s ease; }
.dex-cell:hover { border-color: var(--line-strong); }
.dex-cell:active { transform: scale(.96); }
.dex-cell.fav { border-color: var(--accent); background: var(--accent-soft); }
.dex-cell img { width: 72px; height: 72px; }
.dex-cell b { font-size: 13px; line-height: 1.2; }
.dex-no { font-size: 11px; color: var(--muted); }
.dex-star { position: absolute; top: 6px; right: 6px; color: var(--accent); }
.dex-star svg { width: 14px; height: 14px; }
.featured-pk { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.fpk { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid transparent; text-align: left; }
.fpk.fav { border-color: var(--accent); }
.fpk-art { width: 56px; height: 56px; object-fit: contain; background: var(--surface-3); border-radius: 12px; flex: none; }
.fpk b { display: block; } .fpk small { display: block; color: var(--muted); font-size: 12px; }
.fav-sprites { display: flex; margin-right: 4px; }
.fav-sprites img { width: 34px; height: 34px; margin-left: -8px; }

/* ---------- Cards / Merch switch ---------- */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin: 0 0 14px; max-width: 720px; }
.mode-btn { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); text-align: left; min-width: 0; transition: all .15s ease; }
.mode-btn:hover { border-color: var(--line-strong); }
.mode-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.mode-ic svg { width: 20px; height: 20px; }
.mode-txt { min-width: 0; flex: 1; }
.mode-txt b { display: block; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode-txt small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode-count { font-size: 12px; font-weight: 800; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.mode-btn.active { border-color: var(--accent); background: var(--accent-soft); }
.mode-btn.active .mode-ic { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow); }
.mode-btn.active .mode-count { background: var(--accent); color: var(--accent-ink); }
.mode-all { padding: 0 14px; border-radius: 18px; border: 1.5px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; }
.mode-all.active { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.cat-tag { height: 20px; padding: 0 7px; font-size: 10px; letter-spacing: .8px; }
@media (max-width: 420px) {
  .mode-txt .long { display: none; }
  .mode-all { padding: 0 10px; font-size: 13px; }
  .mode-txt small { display: none; }
  .mode-ic { width: 32px; height: 32px; border-radius: 10px; }
  .mode-btn { padding: 8px 10px; gap: 8px; }
}
.steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--text-2); line-height: 1.5; }
.steps b { color: var(--text); }

/* ---------- Store filter ---------- */
.store-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 2px 16px; }
.store-chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .store-chips { margin: 0 0 12px; padding: 2px 0; flex-wrap: wrap; } }
.store-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 8px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: border-color .15s ease, background .15s ease; }
.store-chip[data-rfilter="all"] { padding: 0 14px; }
.store-chip:hover { border-color: var(--line-strong); }
.store-chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.store-chip .count { font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.store-chip.active .count { background: var(--accent); color: var(--accent-ink); }
.store-search-pill { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 12px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--accent-soft); border: 1.5px solid var(--accent); font-size: 14px; color: var(--text-2); }
.store-search-pill .retailer { color: var(--text); font-weight: 700; }
.store-search-pill .link-btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.store-select { position: relative; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px 0 8px; margin: 0 0 12px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); max-width: 420px; cursor: pointer; }
.store-select:hover { border-color: var(--line-strong); }
.store-select.active { border-color: var(--accent); background: var(--accent-soft); }
.store-select-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.store-select-ic svg { width: 18px; height: 18px; }
.store-select-ic .r-badge { width: 26px; height: 26px; font-size: 11px; border-radius: 8px; }
.store-select-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.store-select select { flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; background: none; border: 0; outline: none; font-size: 16px; font-weight: 700; color: var(--text); cursor: pointer; height: 100%; padding-right: 22px; }
.store-select select option { color: #111; }
.store-select-chev { position: absolute; right: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }

/* ---------- Real catalog: sets + products ---------- */
.hero-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 62%; max-height: 70%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.sets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.set-card { display: flex; gap: 14px; align-items: center; padding: 12px; text-align: left; transition: border-color .15s ease; }
.set-card:hover { border-color: var(--line-strong); }
.set-logo { position: relative; width: 96px; height: 56px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; overflow: hidden; padding: 4px; }
.set-logo img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); background: #fff; }
.set-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.set-logo-text { font-family: "Anton", Impact, sans-serif; font-style: italic; color: #1a140c; font-size: 13px; text-align: center; line-height: 1.1; }
.set-meta { min-width: 0; } .set-meta b { display: block; } .set-meta small { color: var(--muted); }
.sheet-logo { display: grid; place-items: center; background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.sheet-logo img { max-height: 70px; max-width: 80%; object-fit: contain; }
.product-row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; }
.product-row .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ---------- Pokémon Center pulse (member reports) ---------- */
.pulse { padding: 14px 16px; margin-bottom: 14px; display: grid; gap: 10px; }
.pulse-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pulse-head { font-size: 16px; }
.pulse-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pulse-actions .btn { height: 38px; font-size: 14px; padding: 0 14px; }
.pulse-actions .btn svg { width: 14px; height: 14px; }
.pulse-note { color: var(--muted); font-size: 12px; line-height: 1.4; }

/* Prices by store */
.price-table { display: grid; gap: 6px; }
.price-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "store val" "src src"; gap: 6px 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, rgba(255,255,255,.03)); border: 1px solid var(--line); }
.price-row.lowest { border-color: var(--accent); }
.price-row.empty { opacity: .62; }
.price-row .retailer { grid-area: store; }
.price-row .price-src { grid-area: src; min-width: 0; display: grid; gap: 4px; }
.price-row.empty { grid-template-areas: "store src"; grid-template-columns: auto 1fr; }
.price-row.empty .price-val { display: none; }
.price-row.empty .price-src { text-align: right; }
.price-row .price-src small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.price-row .price-src .tp { color: var(--warn, #f5a524); }
.price-row .price-val { grid-area: val; text-align: right; display: grid; justify-items: end; gap: 2px; }
.price-row .price-val b { font-size: 18px; }
.price-row .price-val .delta { font-size: 11px; }
.price-row .price-line { display: flex; align-items: baseline; gap: 8px; justify-content: flex-end; }
.price-row .price-val small { color: var(--muted); font-size: 11px; }
.price-row .opt-row { gap: 4px; }
.product-row.tappable { cursor: pointer; }

/* Photos */
.photo-thumb { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; width: 72px; height: 72px; background: var(--surface-2); cursor: zoom-in; display: inline-block; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.photo-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.photo-lightbox .icon-btn { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; color: #fff; }

/* Deal alerts */
.chip-check { display: inline-flex; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); font-size: 13px; cursor: pointer; }
.chip-check input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.switch-row input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 2px; }
.deal-rule.paused { opacity: .6; }
.deal-now { margin-top: 8px; }
.deal-now svg { width: 14px; height: 14px; vertical-align: -2px; }

/* Collection / leaderboard stats */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { padding: 14px 16px; display: grid; gap: 4px; }
.stat small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.stat b { font-size: 22px; }

/* Leaderboard */
.rep-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 10px 0 6px; }
.rep-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.leader-list { padding: 4px 0; }
.leader { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.leader:last-child { border-bottom: 0; }
.leader.mine { background: var(--accent-soft, rgba(255,64,160,.08)); }
.leader .rank { width: 22px; color: var(--muted); text-align: right; }
.leader .who { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 12px; flex: none; }
.leader small { display: block; color: var(--muted); font-size: 12px; }
.price-row a.retailer { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.price-row a.retailer .ext svg { width: 13px; height: 13px; color: var(--muted); }

/* Launch day */
.launch-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px; text-decoration: none; color: inherit; border-color: var(--accent); }
.launch-banner img { height: 34px; max-width: 90px; object-fit: contain; }
.launch-banner small { display: block; color: var(--muted); font-size: 12px; }
.launch-banner > svg { width: 18px; height: 18px; color: var(--muted); }
.launch-hero .hero-body { padding: 18px; }
.launch-logo { max-height: 70px; max-width: 70%; object-fit: contain; margin: 10px 0 4px; display: block; }
.launched { padding: 0 18px 14px; display: grid; gap: 2px; }
.launched b { font-size: 20px; color: var(--ok); }
.launched small { color: var(--muted); }
.launch-table-wrap { overflow-x: auto; padding: 0; -webkit-overflow-scrolling: touch; }
.launch-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px; font-size: 13px; }
.launch-table th, .launch-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.launch-table thead th { position: sticky; top: 0; background: var(--surface); font-weight: 600; }
.launch-table tbody th { text-align: left; position: sticky; left: 0; background: var(--surface); min-width: 140px; max-width: 180px; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.launch-table { min-width: 560px; }
.launch-table thead th small { font-weight: 500; margin-top: 4px; }
.launch-table td { min-width: 62px; }
.launch-hero .opt-row .btn { flex: 0 0 auto; }
.launch-table tbody th b { display: block; font-size: 13px; line-height: 1.3; }
.launch-table tbody th small, .launch-table td small { display: block; color: var(--muted); font-size: 11px; }
.launch-table tbody tr { cursor: pointer; }
.launch-table tbody tr:hover td, .launch-table tbody tr:hover th { background: var(--surface-2); }
.launch-table .lc.ok b { color: var(--ok); }
.launch-table .lc.bad b { color: var(--muted); text-decoration: line-through; }
.launch-table .lc.empty, .launch-table .lc.na { color: var(--muted); opacity: .6; }
.launch-table thead .retailer, .launch-table thead th > * { justify-content: center; }

/* ---------- Responsive hardening (v0.11.1) ---------- */
/* Grid children never force their column wider than the screen (long chip rows, tables, nowrap text). */
.news-layout, .cal-layout, .checker-layout, .grid-list, .form-grid, .price-table, .stat-row { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) {
  .news-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .grid-list.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.week-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.stat-row { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
.news-layout > *, .cal-layout > *, .checker-layout > *, .grid-list > *, .screen > * { min-width: 0; }
img, svg, video { max-width: 100%; }

/* Readable minimums */
.r-badge { font-size: 11px; }
.live-tag, .cat-tag { font-size: 11px; }
.launch-table thead th small { font-size: 11px; }

/* Comfortable tap targets (44px guideline; never under 36px) */
.link-btn { min-height: 36px; padding: 0 2px; }
.price-row a.retailer { min-height: 36px; }
.row-actions .link-btn, [data-feedback] { min-height: 40px; }

/* Header + titles shrink smoothly on small phones */
.display { font-size: clamp(30px, 9.5vw, 60px); overflow-wrap: anywhere; }
.hero-top { flex-wrap: wrap; row-gap: 4px; }
.launch-hero .hero-top > span:last-child { flex-basis: 100%; }
@media (min-width: 560px) { .launch-hero .hero-top > span:last-child { flex-basis: auto; margin-left: auto; } }

/* Small phones (≤ 380px: iPhone SE 1st gen, mini Androids, Fold cover screen) */
@media (max-width: 380px) {
  #main { padding-left: 12px; padding-right: 12px; }
  .sheet-panel { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
  .display { font-size: clamp(26px, 9vw, 34px); }
  .head-actions .icon-btn, .head-actions .avatar { transform: scale(.9); }
  .region-select { max-width: 72px; }
  .mode-switch { gap: 6px; }
  .mode-btn { padding: 8px; gap: 6px; border-radius: 14px; }
  .mode-ic { display: none; }
  .mode-btn.active { box-shadow: inset 0 0 0 1px var(--accent); }
  .mode-txt b { font-size: 14px; }
  .mode-all { padding: 0 9px; font-size: 12px; border-radius: 14px; }
  .seg button { padding: 0 6px; font-size: 13px; }
  .sticky-cta .btn { font-size: 15px; padding: 0 12px; }
  .market-grid { grid-template-columns: minmax(0, 1fr); }
  .price-row { padding: 10px; }
  .countdown b { font-size: clamp(26px, 10vw, 40px); }
  .launch-hero .opt-row .btn { flex: 1 1 100%; justify-content: center; }
  .day { height: 50px; font-size: 15px; border-radius: 12px; }
  .chips { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 300px) {
  .head { flex-wrap: wrap; }
  .mode-count { display: none; }
  .week-grid { gap: 2px; }
  .day { min-width: 0; }
  .toast { font-size: 13px; }
}
/* Short landscape phones: don't let tall heroes eat the screen */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-art { height: 120px; }
  .countdown b { font-size: 30px; }
  .sheet { max-height: 92vh; }
}
.field label small { font-size: 12px; }
.section-head { flex-wrap: wrap; row-gap: 8px; }

/* ===================== v0.13 — landing, auth, footer, admin ===================== */
body.is-landing .app { display: none; }
#landing[hidden] { display: none; }
.boot { min-height: 60vh; display: grid; place-items: center; }
.boot .brand-mark { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.94); } }

/* Created by 365NCC — same spec as the 81Sketch footer (CreatorCredit): 10px, weight 900, uppercase, .16em tracking,
   slate-400, 16px-tall logo. Dark themes use the official white 365NCC logo; the light theme uses the original. */
.ncc-footer { position: relative; z-index: 10; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); padding: 20px 0; margin-top: 28px; }
.ncc-footer a { display: flex; width: fit-content; margin: 0 auto; align-items: center; justify-content: center; gap: 8px; border-radius: 9999px; padding: 6px 12px;
  font-family: Montserrat, Inter, Arial, sans-serif; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; color: #94a3b8; text-decoration: none; transition: opacity .15s; }
.ncc-footer a:hover { opacity: .9; }
.ncc-footer img { height: 16px; width: auto; display: block; }
.ncc-footer .on-light { display: none; }
[data-app-theme="red-gold"] .ncc-footer { border-top-color: rgba(11, 45, 66, .05); background: rgba(255, 255, 255, .4); }
[data-app-theme="red-gold"] .ncc-footer .on-dark { display: none; }
[data-app-theme="red-gold"] .ncc-footer .on-light { display: block; }

/* Landing */
.lp { --gut: clamp(16px, 4vw, 40px); max-width: 1240px; margin: 0 auto; padding: env(safe-area-inset-top) var(--gut) calc(24px + env(safe-area-inset-bottom)); position: relative; overflow-x: clip; }
.lp::before { content: ""; position: fixed; inset: -20vh -20vw auto; height: 90vh; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 70% 30%, var(--accent-soft), transparent 70%), radial-gradient(30% 40% at 15% 10%, rgba(111, 183, 255, .10), transparent 70%); }
.lp-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.lp-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.lp-word { font-family: "Anton", Impact, sans-serif; font-style: italic; font-size: 24px; letter-spacing: .5px; }
.lp-word span { color: var(--accent); }
.lp-hero { display: grid; gap: 28px; padding: clamp(8px, 4vw, 40px) 0 28px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage" "auth"; }
.lp-copy { grid-area: copy; }
.lp-stage { grid-area: stage; }
.lp-auth { grid-area: auth; }
@media (min-width: 980px) {
  .lp-hero { grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); grid-template-areas: "copy auth" "stage auth"; align-items: start; column-gap: 48px; }
  .lp-auth { position: sticky; top: 24px; }
}
.lp-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.lp-h1 { font-family: "Anton", Impact, sans-serif; font-style: italic; text-transform: uppercase; font-weight: 400; color: var(--display-color);
  font-size: clamp(54px, 13vw, 128px); line-height: .88; letter-spacing: .5px; margin: 14px 0 18px; transform: skewX(-6deg); transform-origin: left bottom; }
.lp-h1 em, .lp-h2 em { font-style: inherit; color: var(--accent); text-shadow: 0 0 40px var(--accent-soft); }
.lp-sub { font-size: clamp(16px, 2.2vw, 20px); line-height: 1.5; color: var(--text-2); max-width: 560px; margin: 0 0 22px; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.btn.lg { height: 54px; padding: 0 26px; font-size: 16px; }
.lp-stores { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--text-2); font-size: 13px; }
.lp-stores .retailer { gap: 6px; }

.lp-stage { position: relative; height: clamp(250px, 46vw, 360px); }
.lp-fan { position: absolute; inset: 0; display: grid; place-items: center; }
.lp-card { --w: clamp(130px, 22vw, 190px); position: absolute; width: var(--w); aspect-ratio: 5 / 7; border-radius: 18px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--surface-3), var(--surface)); border: 1px solid var(--line-strong); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.04) inset;
  transform: translateX(calc((var(--n) - 1) * 62%)) rotate(calc((var(--n) - 1) * 9deg)) translateY(calc(var(--n) * 0px)); animation: float 6s ease-in-out infinite; animation-delay: calc(var(--n) * -2s); }
.lp-card:nth-child(2) { z-index: 2; }
.lp-card .art { width: 70%; height: auto; aspect-ratio: 1; border-radius: 14px; }
.lp-card > span { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.lp-foil { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 20%, rgba(255,61,139,.22) 35%, rgba(111,183,255,.22) 45%, rgba(255,230,120,.2) 55%, transparent 70%);
  background-size: 250% 250%; mix-blend-mode: screen; animation: foil 5s linear infinite; pointer-events: none; }
@keyframes foil { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
@keyframes float { 50% { margin-top: -12px; } }
.lp-toast { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 10px; width: min(360px, 92%);
  padding: 10px 14px; border-radius: 16px; background: var(--bg-elev); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: pop 4s ease-in-out infinite; }
.lp-toast > div { flex: 1; min-width: 0; }
.lp-toast b { display: block; font-size: 13px; color: var(--ok); }
.lp-toast small { display: block; color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-price { font-family: "JetBrains Mono", monospace; font-weight: 700; }
@keyframes pop { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .lp-card, .lp-foil, .lp-toast, .lp-track { animation: none !important; } }

.lp-auth { padding: 20px; border-radius: 24px; background: var(--bg-elev); border: 1px solid var(--line-strong); box-shadow: var(--shadow); scroll-margin: 20px; }
.auth-tabs { margin-bottom: 16px; }
.auth-h { margin: 10px 0 6px; font-size: 20px; }
.auth-err { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: 14px; }
.auth-sent { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 8px 0; }
.auth-sent > svg { width: 44px; height: 44px; color: var(--accent); }
.auth-sent .btn { margin-top: 6px; }
.forgot { justify-self: end; margin-top: -6px; font-size: 14px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; width: 100%; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); border-radius: 10px; }
.pw-eye.on { color: var(--accent); }
.pw-eye svg { width: 20px; height: 20px; }
.hint { color: var(--muted); font-size: 12px; }

.lp-next { display: grid; gap: 14px; padding: 18px 20px; margin: 10px 0 40px; overflow: hidden; }
.lp-next h2 { margin: 6px 0 2px; font-size: clamp(24px, 4vw, 34px); }
.lp-next p { margin: 0; color: var(--text-2); }
.lp-cd { margin: 0 -20px -18px; }
@media (min-width: 760px) { .lp-next { grid-template-columns: 1fr minmax(320px, 420px); align-items: center; } .lp-cd { margin: -18px -20px -18px 0; height: calc(100% + 36px); align-content: center; } }

.lp-h2 { font-family: "Anton", Impact, sans-serif; font-style: italic; text-transform: uppercase; font-weight: 400; font-size: clamp(32px, 6vw, 56px); line-height: .95; margin: 0 0 22px; transform: skewX(-6deg); transform-origin: left bottom; }
.lp-feats { margin: 20px 0 50px; }
.lp-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.lp-feat { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.lp-feat:hover { border-color: var(--accent); transform: translateY(-2px); }
.lp-feat h3 { margin: 12px 0 6px; font-size: 18px; }
.lp-feat p { margin: 0; color: var(--text-2); line-height: 1.5; font-size: 15px; }
.lp-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.lp-ic svg { width: 22px; height: 22px; }

.lp-dex { margin: 0 calc(var(--gut) * -1) 50px; padding: 30px 0; background: linear-gradient(180deg, transparent, var(--accent-soft), transparent); }
.lp-dex-copy { padding: 0 var(--gut); max-width: 720px; }
.lp-dex-copy p { color: var(--text-2); font-size: 17px; margin: -8px 0 18px; }
.lp-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lp-track { display: flex; gap: 18px; width: max-content; animation: marquee 50s linear infinite; }
.lp-sprite { width: 72px; height: 72px; image-rendering: pixelated; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
@keyframes marquee { to { transform: translateX(-50%); } }

.lp-steps { margin: 0 0 40px; }
.lp-steps ol { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; counter-reset: s; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.lp-steps li { counter-increment: s; padding: 20px 20px 20px 70px; position: relative; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.lp-steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; font-family: "Anton", Impact, sans-serif; font-style: italic; font-size: 38px; color: var(--accent); }
.lp-steps li span { color: var(--text-2); font-size: 15px; }
.lp-legal { color: var(--muted); font-size: 12px; text-align: center; max-width: 720px; margin: 0 auto; line-height: 1.5; }
@media (max-width: 380px) { .lp-ctas .btn { flex: 1 1 100%; } .lp-auth { padding: 16px; } }

/* Admin */
.admin-list { padding: 4px 0; }
.admin-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: 0; }
.admin-row .who { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; font-size: 13px; flex: none; }
.admin-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.admin-main small { color: var(--muted); overflow-wrap: anywhere; }
.admin-role .select { min-width: 96px; }
.admin-post { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.admin-post small { display: block; color: var(--muted); }
.btn.danger { background: var(--bad); color: #fff; border-color: var(--bad); }
@media (max-width: 520px) { .admin-row { flex-wrap: wrap; } .admin-role { margin-left: 50px; } .admin-post { flex-wrap: wrap; } }

/* Brand logo (v0.14) */
.brand-logo { width: 40px; height: 40px; border-radius: 11px; display: block; object-fit: cover; }
.lp-brand .brand-logo { width: 44px; height: 44px; }
.boot .brand-logo { width: 72px; height: 72px; border-radius: 20px; animation: pulse 1.2s ease-in-out infinite; }
.lp-logo { position: absolute; left: 50%; top: 50%; width: clamp(150px, 28vw, 240px); height: auto; transform: translate(-50%, -58%); z-index: 1; filter: drop-shadow(0 18px 40px rgba(0,0,0,.5)); animation: float 7s ease-in-out infinite; }
.lp-fan { z-index: 0; }
.lp-fan .lp-card { opacity: .9; }
.lp-fan .lp-card:nth-child(2) { opacity: .55; }
.art-setlogo .art-logo { position: absolute; left: 8%; right: 8%; top: 50%; transform: translateY(-50%); width: 84%; height: auto; max-height: 60%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.price-row .stock-line { margin-bottom: 2px; }
.price-row.has-stock { border-color: rgba(51, 214, 159, .45); }
.price-row.has-stock .retailer { font-weight: 700; }
.price-row.empty .stock-line { display: none; }

/* Bigger logo, no wordmark (v0.14.1) */
.brand-logo { width: 72px; height: 72px; border-radius: 18px; }
.lp-brand .brand-logo { width: clamp(64px, 9vw, 88px); height: auto; }
.nav-brand .brand-logo { width: 64px; height: 64px; }
@media (min-width: 1200px) { .nav-brand .brand-logo { width: 96px; height: 96px; border-radius: 24px; } .nav-brand { padding: 0 4px 6px; } }
.brand-word, .lp-word { display: none !important; }
/* Sidebar logo: large and centered (v0.14.2) */
@media (min-width: 1200px) {
  .nav-brand { justify-content: center; padding: 0 0 10px; margin-bottom: 14px; }
  .nav-brand a { display: block; margin: 0 auto; }
  .nav-brand .brand-logo { width: 100%; max-width: 184px; height: auto; border-radius: 32px; }
}
@media (min-width: 768px) and (max-width: 1199px) { .nav-brand .brand-logo { width: 68px; height: 68px; } }

/* v0.15.1 — plain tile for products without a real photo */
.art-plain{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;height:100%;background:var(--surface-2,#1c1626);color:var(--muted,#8c8098);text-align:center;padding:6px}
.art-plain b{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.art-plain small{font-size:9px;opacity:.75}

.hero-art .hero-photo{border-radius:12px;position:absolute;left:6%;top:8%;height:84%;width:auto;max-width:44%;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(0,0,0,.3))}

/* v0.16 — Cards (TCGdex rolodex) */
.tcg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px;margin-top:12px}
.tcg-cell{position:relative;display:flex;flex-direction:column;gap:4px;padding:8px;border-radius:14px;background:var(--surface);border:1.5px solid var(--line);text-align:left;transition:border-color .15s ease,transform .1s ease}
.tcg-cell:hover{border-color:var(--line-strong)} .tcg-cell:active{transform:scale(.97)}
.tcg-cell img,.tcg-noimg{width:100%;aspect-ratio:63/88;object-fit:contain;border-radius:8px;background:var(--surface-2,#1c1626)}
.tcg-noimg{display:grid;place-items:center;color:var(--muted)} .tcg-noimg svg{width:28px;height:28px}
.tcg-cell b{font-size:12px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tcg-cell small{font-size:11px;color:var(--muted)}
.tcg-saved{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:999px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center} .tcg-saved svg{width:13px;height:13px}
.tcg-series{margin-top:10px;overflow:hidden}
.tcg-series-head{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;text-align:left;font-weight:700}
.tcg-series-head img{height:28px;width:auto;max-width:120px;object-fit:contain}
.tcg-series-head b{flex:1}
.tcg-chev{color:var(--muted);transition:transform .15s ease;display:grid} .tcg-chev svg{width:18px;height:18px;transform:rotate(90deg)} .tcg-chev.open svg{transform:rotate(-90deg)}
.tcg-sets{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;padding:0 10px 12px}
.tcg-sets .set-card img{width:64px;height:40px;object-fit:contain;flex:none}
.tcg-sethead{display:flex;align-items:center;gap:14px} .tcg-sethead img{height:48px;width:auto;max-width:140px;object-fit:contain}
.tcg-detail{padding:0 16px 20px}
.tcg-big{display:block;width:min(100%,320px);margin:0 auto 12px;border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.4)}
.tcg-meta{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.tcg-meta div{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:2px}
.tcg-meta small,.tcg-prices small{color:var(--muted);font-size:11px}
.tcg-prices{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;margin:8px 0}
.tcg-prices div{display:flex;flex-direction:column;gap:1px}
.tcg-prices b{font-size:18px}
@keyframes tcgspin{to{transform:rotate(360deg)}} .empty svg.spin{animation:tcgspin 1s linear infinite}
@media (max-width:380px){.nav-item{font-size:11px}}
