/* ==========================================================================
   Pages
   ========================================================================== */

/* ---------- Home: intro dashboard ---------- */
.intro { display: grid; gap: 20px; padding: 22px 0 18px; align-items: stretch; }
@media (min-width: 1000px) { .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 36px; padding: 34px 0 24px; align-items: center; } }
.intro h1 {
  font-size: clamp(30px, 7.6vw, 52px); font-weight: 850; letter-spacing: -.035em; line-height: 1;
  margin-top: 12px; max-width: 14ch;
}
.intro h1 em { font-style: normal; color: var(--blue-ink); position: relative; white-space: nowrap; }
.intro h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .1em; background: var(--blue); opacity: .25; }
.intro p { color: var(--ink-2); font-size: var(--fs-lg); margin-top: 12px; max-width: 44ch; }
.intro-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.intro-ctas .btn { flex: 1 1 auto; }
@media (min-width: 520px) { .intro-ctas .btn { flex: 0 0 auto; } }
.intro-ctas .btn .btn-n { font: 500 13px var(--mono); opacity: .75; }

.terminal { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); box-shadow: var(--sh-2); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; background: var(--ink); color: #C5D2E0; font: 500 13px var(--mono); }
.term-bar b { color: #fff; font-weight: 600; }
.term-bar .grow { color: #6F849C; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.term-body { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 10px; background: var(--surface-2); }
@media (min-width: 520px) { .term-body { grid-template-columns: .82fr 1fr; } }
.term-body .slot { box-shadow: none; }
.term-body .slot:hover, .term-body .file:hover { transform: none; }
.term-body .file { margin-top: 15px; box-shadow: none; }
.term-body .file .file-notable { display: none; }
@media (max-width: 519px) { .term-body .slot { display: none; } }
.term-feed { border-top: 1px solid var(--line); }
.term-feed li { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.term-feed li:last-child { border-bottom: 0; }
.term-feed .t { font: 500 12.5px var(--mono); color: var(--blue-ink); }
.term-feed a { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-feed a:hover { text-decoration: underline; }
.term-feed .price { font-size: 13px; }

/* ---------- Home: search + market strip ---------- */
.home-search { margin-top: 6px; }
.market {
  display: flex; align-items: stretch; margin-top: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel);
  overflow: hidden;
}
.market-label {
  flex: none; display: flex; align-items: center; padding: 0 12px;
  background: var(--ink); color: #fff; font: 600 13px var(--mono); letter-spacing: .12em;
}
.market .chips { flex: 1; padding: 7px 8px; min-width: 0; }
.market .chip { border-color: transparent; background: transparent; }
.market .chip:hover { background: var(--bg-2); }
.market .chip .chip-n { font: 500 12.5px var(--mono); color: var(--faint); }
.market-status { flex: none; display: none; align-items: center; gap: 8px; padding: 0 14px; border-left: 1px solid var(--line); }
@media (min-width: 900px) { .market-status { display: flex; } }
.market-status-m { margin-top: 8px; display: flex; justify-content: flex-end; }
@media (min-width: 900px) { .market-status-m { display: none; } }

/* ---------- Home: hunts ---------- */
.hunts { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter) 6px; margin: 0 calc(var(--gutter) * -1); scroll-snap-type: x mandatory; }
.hunts::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .hunts { grid-auto-flow: row; grid-template-columns: repeat(7, 1fr); overflow: visible; padding: 2px 0 0; margin: 0; } }
.hunt {
  position: relative; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 12px; min-height: 124px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: transform var(--t-med) var(--ease), border-color var(--t-fast), box-shadow var(--t-fast);
  overflow: hidden;
}
.hunt:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--sh-2); }
.hunt-icon { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--hunt-bg, var(--bg-2)); color: var(--hunt-fg, var(--ink)); }
.hunt-icon svg { width: 22px; height: 22px; transition: transform .45s var(--ease); }
.hunt:hover .hunt-icon svg { transform: rotate(-8deg) scale(1.1); }
.hunt-name { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.hunt-n { font: 500 13px var(--mono); color: var(--muted); margin-top: 2px; }
.hunt::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 64px; height: 64px;
  border: 1px solid var(--line); border-radius: 50%;
  box-shadow: 0 0 0 10px transparent, 0 0 0 11px var(--line);
  opacity: .8;
}
.hunt.h-shiny { --hunt-bg: var(--gold-tint); --hunt-fg: var(--gold-ink); }
.hunt.h-raid { --hunt-bg: #FDECEA; --hunt-fg: var(--red-ink); }
.hunt.h-lv50 { --hunt-bg: var(--ink); --hunt-fg: #fff; }
.hunt.h-regional { --hunt-bg: #E9F6F2; --hunt-fg: #146C57; }
.hunt.h-costume { --hunt-bg: var(--violet-tint); --hunt-fg: var(--violet-ink); }
.hunt.h-bg { --hunt-bg: var(--violet-tint); --hunt-fg: var(--violet-ink); }
.hunt.h-legendary { --hunt-bg: var(--gold-tint); --hunt-fg: var(--gold-ink); }

/* ---------- Home: featured trainer file ---------- */
.feature-file {
  display: grid; gap: 0;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--sh-1);
}
@media (min-width: 1000px) { .feature-file { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.ff-left { padding: 18px; display: flex; flex-direction: column; gap: 14px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.ff-left::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.ff-left > * { position: relative; }
.ff-kicker { font: 600 13px var(--mono); letter-spacing: .1em; color: #8FD0FF; }
.ff-id { font: 700 clamp(34px, 7vw, 48px)/1 var(--mono); letter-spacing: -.03em; }
.ff-meta { display: flex; flex-wrap: wrap; gap: 12px; color: #B7C5D6; font-size: 13px; font-weight: 600; }
.ff-meta b { color: #fff; }
.ff-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; overflow: hidden; }
.ff-stats div { background: var(--ink); padding: 11px 12px; }
.ff-stats b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ff-stats span { display: block; margin-top: 5px; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #9FB2C8; }
.ff-stats .is-gold b { color: #FFD166; }
.ff-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.ff-foot .price { font-size: 30px; }
.ff-right { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ff-right .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 560px) { .ff-right .tile-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ff-right .tile-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- Home: board preview (dense list) ---------- */
.board-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.bl-row {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid var(--line);
  transition: background var(--t-fast);
}
.bl-row:last-child { border-bottom: 0; }
.bl-row:hover { background: var(--surface-2); }
@media (min-width: 800px) { .bl-row { grid-template-columns: 44px minmax(0, 1.2fr) minmax(0, 1.4fr) 110px 120px 90px; } }
.bl-img { width: 44px; height: 44px; border-radius: 6px; background: var(--slot); display: grid; place-items: center; }
.bl-img img { width: 38px; height: 38px; object-fit: contain; }
.bl-name { font-weight: 800; text-transform: uppercase; font-stretch: 85%; font-size: 14px; letter-spacing: .01em; }
.bl-name a::after { content: ""; position: absolute; inset: 0; }
.bl-name small { display: block; font: 500 12.5px var(--mono); color: var(--muted); text-transform: none; font-stretch: 100%; }
.bl-badges, .bl-move, .bl-avail { display: none; }
@media (min-width: 800px) { .bl-badges, .bl-move, .bl-avail { display: flex; } }
.bl-move { font-size: 13.5px; color: var(--ink-2); }
.bl-row .price { font-size: 16px; justify-self: end; }
.bl-head { display: none; }
@media (min-width: 800px) {
  .bl-head { display: grid; background: var(--surface-2); padding-block: 7px; }
  .bl-head span { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
  .bl-head span:last-child { text-align: right; }
}

/* ---------- Home: how it works ---------- */
.how-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.how-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; }
.how-card h3 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-lg); font-weight: 800; margin-bottom: 14px; }
.how-steps { display: grid; gap: 0; counter-reset: how; }
.how-steps li { counter-increment: how; display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); font-size: var(--fs-sm); color: var(--ink-2); }
.how-steps li::before { content: counter(how, decimal-leading-zero); font: 600 13px/20px var(--mono); color: var(--blue-ink); }
.how-steps b { color: var(--ink); display: block; font-size: var(--fs-md); }

/* ---------- Home: support strip ---------- */
.support-strip { display: grid; gap: 14px; }
@media (min-width: 1000px) { .support-strip { grid-template-columns: 1fr 1.3fr; gap: 24px; } }
.help-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.help-opt {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; min-height: 108px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); text-align: left;
  transition: border-color var(--t-fast), transform var(--t-fast) var(--ease);
}
.help-opt:hover { border-color: var(--blue); transform: translateY(-2px); }
.help-opt[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ring); }
.help-opt svg { color: var(--blue-ink); width: 22px; height: 22px; }
.help-opt b { font-size: 15px; }
.help-opt span { font-size: 13px; color: var(--muted); }

/* ---------- Trade Board ---------- */
.board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.board > section { min-width: 0; }
@media (min-width: 1000px) { .board { grid-template-columns: 248px minmax(0, 1fr); gap: 28px; } }
.rail { display: none; }
@media (min-width: 1000px) {
  .rail {
    display: block; position: sticky; top: calc(var(--header-h) + 14px);
    max-height: calc(100vh - var(--header-h) - 28px); overflow-y: auto; scrollbar-width: thin;
    padding-right: 6px;
  }
}
.fgroup { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fgroup:first-child { padding-top: 0; }
.fgroup-title { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.fgroup-title button { font-size: 13.5px; font-weight: 600; color: var(--blue-ink); letter-spacing: 0; text-transform: none; }
.fgroup .note { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.type-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.type-pill { position: relative; }
.type-pill input { position: absolute; opacity: 0; pointer-events: none; }
.type-pill span {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px;
  border: 1px solid var(--line-2); border-radius: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  background: var(--surface);
}
.type-pill span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--tc, var(--faint)); }
.type-pill input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.type-pill input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.gen-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.gen-grid .type-pill span { justify-content: center; padding: 0; width: 100%; font-family: var(--mono); }
.gen-grid .type-pill span::before { display: none; }
.range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.range .input { min-height: 34px; font-size: var(--fs-sm); padding: 0 8px; }
.range span { color: var(--faint); }

.board-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.board-top .search-sm { flex: 1 1 260px; }
.board-count { font: 500 13px var(--mono); color: var(--muted); }
.board-count b { color: var(--ink); font-weight: 600; }
.board-filters-btn { display: inline-flex; }
@media (min-width: 1000px) { .board-filters-btn { display: none; } }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; align-items: center; }
.board-quick { margin: -2px calc(var(--gutter) * -1) 12px; padding: 0 var(--gutter); }
@media (min-width: 1000px) { .board-quick { display: none; } }
.board-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.board-legend { display: none; gap: 12px; font-size: 13px; color: var(--muted); align-items: center; }
.board-legend span { display: inline-flex; align-items: center; gap: 5px; }
.board-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
@media (min-width: 1000px) { .board-legend { display: flex; } }

/* ---------- Trade detail ---------- */
.pdp { display: grid; gap: 20px; margin-top: 14px; align-items: start; }
@media (min-width: 960px) { .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; } }
.pdp-gallery { display: grid; gap: 8px; }
@media (min-width: 960px) { .pdp-gallery { position: sticky; top: calc(var(--header-h) + 16px); } }
.pdp-stage {
  position: relative; aspect-ratio: 1.1; border-radius: var(--r-card); overflow: hidden;
  background:
    radial-gradient(ellipse 40% 8% at 50% 88%, rgba(21,32,45,.12), transparent 70%),
    var(--slot);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.pdp-stage::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(21,32,45,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(21,32,45,.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.pdp-stage.is-shiny { background: radial-gradient(circle at 50% 45%, rgba(255,222,140,.35), transparent 55%), radial-gradient(ellipse 40% 8% at 50% 88%, rgba(21,32,45,.12), transparent 70%), var(--slot); }
.pdp-stage img { position: relative; width: 70%; height: 82%; object-fit: contain; }
.pdp-stage .coords { position: absolute; left: 12px; bottom: 10px; font: 500 12.5px var(--mono); color: var(--faint); }
.pdp-stage .slot-flags { top: 12px; left: 12px; }
.pdp-thumbs { display: flex; gap: 8px; }
.pdp-thumb { width: 68px; height: 68px; border-radius: 6px; background: var(--slot); border: 1px solid var(--line); display: grid; place-items: center; }
.pdp-thumb img { width: 56px; height: 56px; object-fit: contain; }
.pdp-thumb[aria-current="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-ring); }
.pdp-info { display: grid; gap: 16px; }
.pdp-id { font: 500 13px var(--mono); color: var(--muted); }
.pdp-name { font-size: clamp(30px, 6vw, 44px); font-weight: 850; letter-spacing: -.02em; line-height: 1; text-transform: uppercase; font-stretch: 82%; margin-top: 4px; }
.pdp-buy { display: grid; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); }
.pdp-buy .price { font-size: 38px; }
.pdp-buy-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pdp-section h2 { font-size: 13.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.pdp-notes { font-size: var(--fs-sm); color: var(--ink-2); }
.mobile-buybar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--mnav-h) + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: 10px; padding: 10px var(--gutter);
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(21,32,45,.06);
}
.mobile-buybar .price { font-size: 22px; }
.mobile-buybar .btn { margin-left: auto; }
@media (min-width: 900px) { .mobile-buybar { display: none; } }

/* ---------- Accounts catalog ---------- */
.acct-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.acct-toolbar .search-sm { flex: 1 1 240px; }

/* ---------- Account detail ---------- */
.acct-top { display: grid; gap: 14px; padding: 14px 0 16px; align-items: end; }
@media (min-width: 900px) { .acct-top { grid-template-columns: 1fr auto; } }
.acct-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acct-kicker .label { color: var(--ink-2); }
.acct-id { font: 700 clamp(38px, 9vw, 60px)/1 var(--mono); letter-spacing: -.04em; margin-top: 8px; }
.acct-desc { color: var(--ink-2); margin-top: 8px; max-width: 70ch; font-size: var(--fs-md); }
.acct-top-buy { display: none; align-items: center; gap: 14px; }
.acct-top-buy .price { font-size: 34px; }
@media (min-width: 900px) and (max-width: 1199px) { .acct-top-buy { display: flex; } }

.summary-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-panel); overflow: hidden;
}
@media (min-width: 900px) { .summary-bar { grid-template-columns: repeat(8, 1fr); } }
.sb-cell { padding: 12px 12px 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.sb-cell:nth-child(4n) { border-right: 0; }
.sb-cell:nth-last-child(-n+4) { border-bottom: 0; }
@media (min-width: 900px) { .sb-cell { border-bottom: 0; } .sb-cell:nth-child(4n) { border-right: 1px solid var(--line); } .sb-cell:last-child { border-right: 0; } }
.sb-cell span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sb-cell b { display: block; margin-top: 5px; font-size: clamp(20px, 5vw, 28px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-cell.is-gold b { color: var(--gold-ink); }
.sb-cell .team-dot { font-size: clamp(15px, 3.6vw, 20px); letter-spacing: -.01em; }

.acct-layout { display: grid; gap: 18px; margin-top: 18px; align-items: start; grid-template-areas: "main" "left"; }
@media (min-width: 900px) { .acct-layout { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main right" "main left"; } }
@media (min-width: 1200px) { .acct-layout { grid-template-columns: 250px minmax(0, 1fr) 300px; grid-template-areas: "left main right"; gap: 22px; } }
.acct-left { grid-area: left; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.acct-left .kv { font-size: 13.5px; }
.acct-main { grid-area: main; min-width: 0; }
.acct-right { grid-area: right; display: none; min-width: 0; }
@media (min-width: 900px) { .acct-right { display: grid; gap: 12px; } }
@media (min-width: 1200px) {
  .acct-left, .acct-right { position: sticky; top: calc(var(--header-h) + var(--tabs-h) + 18px); }
}
.acct-tabs {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(241, 243, 242, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
}
@media (min-width: 900px) { .acct-tabs { margin: 0; padding: 0; } }
.acct-panel { padding-top: 16px; }
.buy-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 16px; display: grid; gap: 12px; }
.buy-card .price { font-size: 36px; }
.buy-card .row .btn { flex: 1; }
.receive-list li { display: flex; gap: 8px; padding: 6px 0; font-size: 13.5px; color: var(--ink-2); }
.receive-list svg { color: var(--green); margin-top: 1px; }

.coll-tools { display: grid; gap: 8px; margin-bottom: 12px; }
@media (min-width: 720px) { .coll-tools { grid-template-columns: 1fr auto; align-items: center; } }
.coll-note { font-size: 13px; color: var(--muted); margin: -2px 0 10px; }
.inspect {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start;
  padding: 12px; margin: 2px 0 6px;
  background: var(--surface); border: 1px solid var(--blue); border-radius: var(--r-panel);
  box-shadow: 0 0 0 3px var(--blue-ring);
  animation: arrive .3s var(--ease) both;
}
.inspect-img { aspect-ratio: 1; background: var(--slot); border-radius: 6px; display: grid; place-items: center; }
.inspect-img img { width: 86%; height: 86%; object-fit: contain; }
.inspect h3 { font-size: 18px; font-weight: 800; text-transform: uppercase; font-stretch: 85%; }
.inspect .kvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px 14px; margin-top: 10px; }
.inspect .kvs div span { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.inspect .kvs div b { font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .inspect { grid-template-columns: 80px 1fr; } }

.items-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .items-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .items-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.item-cell { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.item-glyph { width: 42px; height: 42px; border-radius: 6px; display: grid; place-items: center; font: 700 13px var(--mono); color: #fff; background: var(--ig, var(--ink)); letter-spacing: -.02em; }
.item-cell b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.item-cell span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; font-weight: 600; }

.coverage li { display: grid; gap: 5px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.coverage li:last-child { border-bottom: 0; }
.coverage .row-between { font-size: 13.5px; }
.coverage .row-between b { font-variant-numeric: tabular-nums; }

/* ---------- Collections ---------- */
.coll-hero { display: flex; align-items: center; gap: 14px; }
.coll-hero .hunt-icon { width: 52px; height: 52px; }
.coll-hero .hunt-icon svg { width: 28px; height: 28px; }

/* ---------- Checkout ---------- */
.checkout { display: grid; gap: 20px; align-items: start; margin-top: 8px; }
@media (min-width: 960px) { .checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; } }
.co-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.co-step + .co-step { margin-top: 12px; }
.co-step-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.co-step-head .n { width: 24px; height: 24px; border-radius: 5px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 13px var(--mono); }
.co-step-head h2 { font-size: var(--fs-md); font-weight: 800; }
.co-step-body { padding: 16px; display: grid; gap: 14px; }
.co-grid-2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .co-grid-2 { grid-template-columns: 1fr 1fr; } }
.co-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r-btn); cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.pay-opt input { accent-color: var(--blue); width: 16px; height: 16px; }
.pay-opt b { display: block; font-size: 14px; }
.pay-opt span { font-size: 13px; color: var(--muted); }

/* ---------- Confirmation ---------- */
.confirm { max-width: 760px; margin: 0 auto; padding-top: 26px; }
.confirm-head { display: grid; gap: 10px; padding: 22px; background: var(--ink); color: #fff; border-radius: var(--r-card) var(--r-card) 0 0; position: relative; overflow: hidden; }
.confirm-head::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 24px 24px; }
.confirm-head > * { position: relative; }
.confirm-head h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.confirm-head .mono { color: #8FD0FF; }
.confirm-check { width: 44px; height: 44px; border-radius: 10px; background: var(--green); display: grid; place-items: center; animation: pop .5s var(--ease); }
.confirm-body { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-card) var(--r-card); padding: 18px; display: grid; gap: 18px; }
.next-step { border: 1px solid var(--blue); background: var(--blue-tint); border-radius: var(--r-panel); padding: 14px; }
.next-step .label { color: var(--blue-ink); }
.next-step h3 { margin-top: 4px; font-size: var(--fs-lg); font-weight: 800; }
.next-step > ol { margin-top: 8px; display: grid; gap: 6px; counter-reset: ns; }
.next-step > ol > li { counter-increment: ns; display: grid; grid-template-columns: 24px 1fr; font-size: var(--fs-sm); color: var(--ink-2); }
.next-step > ol > li::before { content: counter(ns) "."; font: 600 13px var(--mono); color: var(--blue-ink); }

/* ---------- Support ---------- */
.support-layout { display: grid; gap: 20px; }
@media (min-width: 1000px) { .support-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; } }

/* ---------- Legal / prose ---------- */
.prose { max-width: 74ch; font-size: 15px; color: var(--ink-2); }
.prose h2 { font-size: var(--fs-lg); font-weight: 800; color: var(--ink); margin: 26px 0 8px; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { list-style: disc; padding-left: 20px; }
.prose li + li { margin-top: 4px; }
.prose a { color: var(--blue-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal-layout { display: grid; gap: 20px; }
@media (min-width: 900px) { .legal-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 36px; } }
.legal-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 900px) { .legal-nav { flex-direction: column; position: sticky; top: calc(var(--header-h) + 20px); } }
.legal-nav a { padding: 8px 10px; border-radius: 6px; font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; }
.legal-nav a:hover { background: var(--bg-2); }
.legal-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- 404 ---------- */
.lost { display: grid; justify-items: start; gap: 10px; padding: 60px 0; }
.lost .mono { font-size: 56px; font-weight: 700; letter-spacing: -.04em; color: var(--line-strong); line-height: 1; }
@media (min-width: 1000px) { .board-search { display: none; } .board-top { justify-content: flex-end; } .board-top .board-count { margin-right: auto; } }
@media (min-width: 900px) { [data-cfilters] { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 519px) {
  .intro { padding-top: 16px; gap: 16px; }
  .intro h1 { font-size: 30px; margin-top: 8px; }
  .intro p { font-size: var(--fs-md); margin-top: 8px; }
  .intro-ctas { flex-wrap: nowrap; margin-top: 14px; }
  .intro-ctas .btn { flex: 1 1 0; min-height: 44px; padding: 0 10px; font-size: 14.5px; }
  .intro-ctas .btn svg { display: none; }
}
.hunt::after { opacity: .45; }
@media (max-width: 999px) {
  .board-top .board-search { order: -1; flex: 1 1 100%; }
  .board-top .board-count { margin-right: auto; }
}
@media (max-width: 999px) {
  .board-top [data-sort] { margin-left: auto; }
  .board-top .board-count { order: 5; flex: 1 1 100%; margin: 0; font-size: 13px; }
}
/* single-column grids must not size to their content on phones */
.file-grid, .how-grid, .checkout, .support-layout, .legal-layout, .intro, .pdp, .support-strip, .feature-file, .acct-top { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .file-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .acct-top { grid-template-columns: minmax(0, 1fr) auto; } }
@media (min-width: 960px) { .checkout { grid-template-columns: minmax(0, 1fr) 380px; } .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
@media (min-width: 1000px) { .support-layout { grid-template-columns: minmax(0, 1fr) 380px; } .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } .support-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } .feature-file { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
@media (min-width: 900px) { .legal-layout { grid-template-columns: 200px minmax(0, 1fr); } }
.fmore > summary { list-style: none; cursor: pointer; padding: 12px 0; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--blue-ink); }
.fmore > summary::-webkit-details-marker { display: none; }
.fmore > summary::after { content: " +"; }
.fmore[open] > summary::after { content: " −"; }
