:root {
  --void: #070b14;
  --panel: #0b1220;
  --panel-2: #101a2e;
  --raise: #16223b;
  --line: #1e2a40;
  --line-soft: #151f33;
  --bone: #e6eaf2;
  --steel: #8b99b4;
  --steel-dim: #5e6b84;
  --brass: #5b9dff;
  --brass-soft: #a9c8ff;
  --glass: #9fd8ff;
  --ember: #ff6b4a;
  --ok: #7be3a6;
  --display: 'Unbounded', 'Space Grotesk', sans-serif;
  --body: 'Instrument Sans', 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

*, *::before, *::after { box-sizing: border-box; }

.hidden { display: none !important; }

.shell { width: min(1180px, 100% - 40px); margin-inline: auto; }

a { color: var(--glass); text-decoration: none; }
a:hover { color: #a5e3ff; }

:focus-visible {
  outline: 2px solid var(--glass);
  outline-offset: 3px;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 14, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 66px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bone);
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
}
.wordmark:hover { color: var(--bone); }
.wordmark-glyph { color: var(--brass); width: 24px; height: 24px; display: inline-grid; place-items: center; }
.wordmark-glyph svg { width: 100%; height: 100%; }
.topnav-links { display: flex; gap: 26px; margin-right: auto; }
.topnav-links a {
  color: var(--steel);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.topnav-links a:hover, .topnav-links a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--brass); }
.topbar-cta {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 650;
  color: var(--brass);
  border: 1px solid rgba(91, 157, 255, 0.45);
  border-radius: 2px;
  padding: 8px 14px;
  background: rgba(91, 157, 255, 0.06);
}
.topbar-cta:hover { background: rgba(91, 157, 255, 0.14); color: var(--brass-soft); }

/* ---------- type ---------- */
.kicker {
  margin: 0 0 18px;
  color: var(--brass);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; color: var(--bone); }
h3 { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------- buttons ---------- */
.btn-solid, .btn-quiet, .btn-small {
  font-family: var(--body);
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  border-radius: 2px;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.btn-solid {
  border: 1px solid var(--brass-soft);
  background: var(--brass);
  color: #06101f;
  padding: 13px 22px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}
.btn-solid:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55); color: #06101f; }
.btn-solid:active { transform: translate(2px, 2px); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
.btn-solid:disabled { opacity: 0.5; cursor: wait; transform: none; }
.btn-small { padding: 9px 14px; font-size: 13px; }
.btn-quiet {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--steel);
  padding: 9px 14px;
}
.btn-quiet:hover { color: var(--bone); border-color: #2c3648; background: rgba(255, 255, 255, 0.03); }
.text-link {
  display: inline-block;
  font-weight: 650;
  font-size: 14px;
  color: var(--brass);
  border-bottom: 1px solid rgba(91, 157, 255, 0.35);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--brass-soft); border-bottom-color: var(--brass); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  padding: 88px 0 60px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  right: -60px;
  top: 40px;
  width: 560px;
  height: 560px;
  background: radial-gradient(closest-side, rgba(91, 157, 255, 0.11), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero-copy { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-lead {
  margin-top: 20px;
  color: var(--steel);
  font-size: 16px;
  max-width: 54ch;
}
.checker {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 16px;
  max-width: 640px;
}
.checker-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.checker-field { display: flex; flex-direction: column; gap: 7px; flex: 1 1 200px; }
.checker-field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--steel);
}
.checker-field-zone { flex: 0 0 130px; }
.checker-field input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  padding: 12px 13px;
}
.checker-field input::placeholder { color: var(--steel-dim); }
.checker-field input:focus { border-color: var(--glass); outline: none; box-shadow: 0 0 0 1px var(--glass); }
.checker-note { margin-top: 12px; color: var(--steel-dim); font-size: 12.5px; }

.status {
  margin-top: 22px;
  padding: 12px 14px;
  border-left: 2px solid var(--brass);
  background: rgba(91, 157, 255, 0.05);
  color: #d9c48d;
  font-size: 14px;
  max-width: 640px;
}
.status.error { border-left-color: var(--ember); background: rgba(255, 107, 74, 0.06); color: #ffb6a3; }
.status.loading { border-left-color: var(--glass); background: rgba(124, 210, 255, 0.05); color: #a9d9f2; }

.hero-facts {
  display: flex;
  gap: 0;
  margin: 34px 0 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  max-width: 640px;
}
.hero-facts > div { flex: 1; padding-right: 18px; }
.hero-facts > div + div { border-left: 1px solid var(--line-soft); padding-left: 18px; }
.hero-facts dt { color: var(--steel-dim); font-size: 12px; }
.hero-facts dd {
  margin: 4px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}

/* ---------- deck ---------- */
.deck-wrap { position: relative; z-index: 1; padding-bottom: 56px; overflow: visible; }
.deck {
  position: relative;
  width: min(215px, 100%);
  aspect-ratio: 5 / 8;
  margin-inline: auto;
  position: relative;
  left: max(0px, calc((100vw - 1280px) / 4));
}
.deck-card {
  position: absolute;
  inset: 0;
  border: 1px solid #2a3346;
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: transform 840ms cubic-bezier(0.2, 1.22, 0.35, 1), opacity 420ms ease;
  will-change: transform;
  transform-origin: 50% 90%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.deck-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.deck-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 6, 10, 0.96) 0%, rgba(4, 6, 10, 0.55) 34%, rgba(4, 6, 10, 0.08) 62%);
}
.deck-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; z-index: 2; }
.deck-tier {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  color: var(--void);
  background: var(--brass);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.deck-hero {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--bone);
}
.deck-skin { color: var(--steel); font-size: 14px; margin-top: 4px; }
.deck-hint { margin-top: 26px; position: relative; z-index: 30; text-align: right; color: var(--steel-dim); font-size: 12.5px; }

/* ---------- results ---------- */
.results-shell { padding-top: 10px; scroll-margin-top: 84px; }
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 8px;
}
.player-name { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.02em; }
.player-meta { color: var(--steel); font-size: 14px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.player-stats { display: flex; border-left: 1px solid var(--line-soft); }
.stat { padding: 2px 18px; border-right: 1px solid var(--line-soft); text-align: left; }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 11.5px; color: var(--steel-dim); }
.results-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}
.tier-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tier-chip {
  cursor: pointer;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--steel);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 7px 12px;
}
.tier-chip:hover { color: var(--bone); border-color: #2c3648; }
.tier-chip.active { color: var(--brass); border-color: rgba(91, 157, 255, 0.55); background: rgba(91, 157, 255, 0.07); }
.tier-chip small { margin-left: 7px; color: var(--steel-dim); font-variant-numeric: tabular-nums; }
.tier-chip.active small { color: rgba(91, 157, 255, 0.7); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
  padding-bottom: 40px;
}
.skin-card {
  position: relative;
  aspect-ratio: 5 / 8;
  border-radius: 3px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: transform 160ms ease, border-color 160ms ease;
}
.skin-card { box-shadow: none; }
.skin-card:hover { transform: translateY(-3px); border-color: #35405a; }
.skin-card.selected { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.skin-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.skin-card .fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 12px;
  color: var(--steel-dim); font-size: 12px;
  background: radial-gradient(circle at 65% 28%, rgba(255, 255, 255, 0.05), transparent 60%), var(--panel-2);
}
.skin-card .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 4, 8, 0.94), transparent 52%); }
.skin-card .tier-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-family: var(--body); font-size: 10px; font-weight: 650;
  padding: 3px 7px; border-radius: 2px;
  background: rgba(4, 6, 10, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.skin-card .check {
  position: absolute; top: 8px; right: 10px; z-index: 3;
  width: 20px; height: 20px; display: none; place-items: center;
  background: var(--brass); color: #06101f; font-size: 12px; font-weight: 800;
  border-radius: 2px;
}
.skin-card.selected .check { display: grid; }
.skin-card .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px; z-index: 2; }
.skin-card .hero-name { color: var(--brass); font-size: 10px; font-weight: 650; letter-spacing: 0.03em; }
.skin-card .skin-name { color: var(--bone); font-size: 12.5px; font-weight: 600; line-height: 1.25; margin-top: 2px; }

/* ---------- landing bands ---------- */
.band { border-top: 1px solid var(--line); padding: 58px 0 50px; }
.band-head { max-width: 760px; margin-bottom: 30px; }
.band-head h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; max-width: 22ch; }
.band-head .kicker { margin: 8px 0 0; }
.band-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.band-item { padding: 4px 26px 4px 0; }
.band-item + .band-item { border-left: 1px solid var(--line-soft); padding-left: 26px; }
.band-item h3 { margin-bottom: 10px; }
.band-item p { color: var(--steel); font-size: 14.5px; max-width: 40ch; }
.band .text-link { margin-top: 26px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.steps li { display: flex; gap: 18px; padding: 6px 26px 6px 0; }
.steps li + li { border-left: 1px solid var(--line-soft); padding-left: 26px; }
.step-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 15.5px; margin-bottom: 6px; }
.steps p { color: var(--steel); font-size: 14px; }

/* ---------- why us page ---------- */
.page-head { padding: 72px 0 56px; max-width: 860px; }
.page-title { font-size: clamp(36px, 5vw, 64px); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.page-lead { margin-top: 20px; color: var(--steel); font-size: 17px; max-width: 62ch; }
.page-head .btn-solid { margin-top: 30px; display: inline-block; }

.feature-list { border-top: 1px solid var(--line-soft); }
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.feature-row h3 { font-size: 17px; }
.feature-row p { color: var(--steel); font-size: 14.5px; max-width: 58ch; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 3px; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.compare th { font-size: 12px; font-weight: 650; color: var(--steel); background: rgba(255, 255, 255, 0.02); }
.compare tr:last-child td { border-bottom: 0; }
.compare td { color: #b9bfcd; }
.compare th:nth-child(2), .compare td:nth-child(2) { color: var(--brass); }
.compare .yes { color: var(--ok); text-align: center; }
.compare .no { color: var(--steel-dim); text-align: center; }
.compare td.yes, .compare td.no { text-align: center; }

.faq details { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--bone); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--steel); font-size: 14.5px; margin-top: 10px; max-width: 66ch; }

.cta-band { border-top: 1px solid var(--line); padding: 64px 0 72px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; }
.cta-band .btn-solid { margin-top: 24px; display: inline-block; }

.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0 40px; }
.footer-inner p { color: var(--steel-dim); font-size: 12.5px; }

/* ---------- selection bar ---------- */
.selbar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; z-index: 60;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 12px 10px 14px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}
.selbar span { font-size: 13.5px; font-weight: 600; color: var(--bone); white-space: nowrap; }
.sel-clear { border: 0; background: transparent; color: var(--steel-dim); cursor: pointer; font-size: 14px; padding: 4px 6px; }
.sel-clear:hover { color: var(--bone); }

/* ---------- poster modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(3, 4, 8, 0.82);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  backdrop-filter: blur(6px);
}
.modal-box {
  width: min(1000px, 100%);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
}
.modal-head, .modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px;
}
.modal-head { border-bottom: 1px solid var(--line); }
.modal-head strong { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; }
.modal-foot { border-top: 1px solid var(--line); }
.pager { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--steel); font-variant-numeric: tabular-nums; }
.pager .btn-quiet { padding: 4px 10px; }
.poster-controls {
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.poster-controls label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11.5px; font-weight: 600; color: var(--steel);
}
.poster-controls select {
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--bone);
  font-family: var(--body);
  font-size: 13px;
  padding: 7px 9px;
  min-width: 150px;
}
.poster-controls select:focus { border-color: var(--glass); outline: none; }
.poster-controls label.chk { flex-direction: row; align-items: center; gap: 7px; padding-bottom: 7px; font-size: 13px; }
.poster-controls input[type="checkbox"] { accent-color: var(--brass); }
.modal-body {
  padding: 14px;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-height: calc(94vh - 170px);
}
#posterCanvas {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(94vh - 230px);
  border-radius: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .deck { width: 165px; left: 0; }
  .deck-hint { text-align: center; }

  .band-grid, .steps { grid-template-columns: 1fr; }
  .band-item, .steps li { padding: 16px 0; }
  .band-item + .band-item, .steps li + li { border-left: 0; border-top: 1px solid var(--line-soft); padding-left: 0; }
  .feature-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 28px); }
  .topnav-links { display: none; }
  .results-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .player-stats { border-left: 0; }
  .stat:first-child { padding-left: 0; }
  .modal-body { justify-content: center; max-height: calc(94vh - 160px); }
  .modal-head strong { display: none; }
  .modal-foot { flex-direction: column-reverse; align-items: stretch; }
  .modal-foot .btn-solid, .modal-foot .btn-quiet { width: 100%; }
}



/* ---------- v30 motion + refinement ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; }

@keyframes page-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.988); }
  to { opacity: 1; transform: none; }
}
@keyframes pop-check {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

main { animation: page-rise 520ms cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.modal-box { animation: modal-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.skin-card.selected .check { animation: pop-check 160ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.tier-chip { transition: color 150ms ease, border-color 150ms ease, background 150ms ease; }
.deck-card { border-radius: 3px; }
.deck-card:focus-visible { outline-offset: 4px; }
.btn-solid { box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5); }
.btn-solid:hover { box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5); }
.modal-box { box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65); }
.selbar { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }




/* ---------- auth + owner ---------- */
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.owner-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--steel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 7px 11px 7px 9px;
  white-space: nowrap;
}
.owner-chip:hover { color: var(--bone); border-color: var(--glass); }
.owner-mark {
  width: 17px;
  height: 17px;
  flex: none;
  display: inline-grid;
  place-items: center;
  color: #2aabee;
}
.owner-mark svg { width: 100%; height: 100%; }
.owner-chip:hover .owner-mark {
  color: #63c8ff;
  filter: drop-shadow(0 0 5px rgba(42, 171, 238, 0.5));
}
.btn-login { padding: 8px 12px; font-size: 13px; }
.auth-user { font-size: 13px; font-weight: 600; color: var(--glass); white-space: nowrap; }

.auth-box { width: min(470px, 100%); }
.auth-body { padding: 22px 20px 24px; }

.auth-intro { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.auth-glyph {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  color: var(--glass);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(91, 157, 255, 0.07);
}
.auth-glyph svg { width: 21px; height: 21px; }
.auth-intro p { color: var(--steel); font-size: 14px; max-width: 34ch; }

.auth-steps { list-style: none; margin: 0 0 20px; padding: 0; border-left: 1px solid var(--line); }
.auth-steps li { display: flex; gap: 14px; padding: 9px 0 9px 16px; }
.auth-steps li span {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--glass);
  line-height: 1.2;
  min-width: 12px;
}
.auth-steps b { display: block; color: var(--bone); font-size: 14px; font-weight: 650; }
.auth-steps p { color: var(--steel-dim); font-size: 12.5px; margin-top: 2px; }

.auth-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.auth-bot-link { text-decoration: none; }

.auth-form { margin-top: 16px; }
.auth-code-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--steel);
  margin-bottom: 4px;
}
.auth-code-row { display: flex; gap: 12px; align-items: flex-end; }
.auth-code-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--bone);
  font-family: var(--body);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
  padding: 6px 2px 8px;
  outline: none;
  transition: border-color 160ms ease;
}
.auth-code-row input::placeholder { color: #3a4a63; letter-spacing: 0.04em; font-size: 17px; }
.auth-code-row input:focus { border-bottom-color: var(--glass); }
.auth-code-row .btn-solid { padding: 11px 18px; }

.auth-restart { padding: 9px 13px; font-size: 13px; }
.auth-msg { font-size: 13px; color: var(--steel-dim); min-height: 18px; margin-top: 12px; }
.auth-msg.error { color: var(--ember); }
.auth-msg.ok { color: var(--ok); }

@keyframes overlay-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes auth-panel {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes auth-step {
  from { opacity: 0; transform: translateX(-7px); }
  to { opacity: 1; transform: none; }
}
.modal { animation: overlay-fade 200ms ease both; }
.auth-box { animation: auth-panel 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.auth-steps li { animation: auth-step 380ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.auth-steps li:nth-child(1) { animation-delay: 70ms; }
.auth-steps li:nth-child(2) { animation-delay: 120ms; }
.auth-steps li:nth-child(3) { animation-delay: 170ms; }

@media (max-width: 720px) {
  .topbar-actions .owner-chip {
    display: inline-flex;
    flex: none;
    gap: 5px;
    padding: 6px 8px;
    font-size: 11.5px;
  }
  .owner-mark { width: 15px; height: 15px; }
  .owner-handle { display: none; }
  .auth-code-row { flex-direction: column; align-items: stretch; }
  .auth-code-row .btn-solid { width: 100%; }

  .topbar-inner { height: auto; min-height: 58px; padding-block: 10px; gap: 10px; flex-wrap: nowrap; }
  .wordmark { font-size: 12.5px; letter-spacing: 0.08em; gap: 7px; }
  .wordmark-glyph { width: 19px; height: 19px; }
  .topbar-actions { gap: 7px; margin-left: auto; min-width: 0; }
  .topbar-actions .topbar-cta { display: none; }
  .auth-user { max-width: 76px; overflow: hidden; text-overflow: ellipsis; }
  .btn-login { padding: 7px 10px; font-size: 12.5px; }
  .btn-login#authLogout { padding: 7px 9px; }
}
@media (max-width: 390px) {
  .topbar-actions .auth-user { display: none; }
}


/* ---------- progress + stats card ---------- */
.results-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.progress-panel { margin: 0 0 20px; max-width: 760px; }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 7px; }
.progress-head span { font-size: 12.5px; color: var(--steel); font-weight: 600; }
.progress-head b { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--bone); }
.progress-head em { font-style: normal; color: var(--glass); font-family: var(--body); font-size: 13px; font-weight: 650; margin-left: 6px; }
.progress-bar { height: 7px; border-radius: 2px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--line-soft); }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, #3f7fe0, var(--brass)); }
.progress-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 18px; margin-top: 12px; }
.ptier { display: grid; grid-template-columns: 74px 1fr 56px; align-items: center; gap: 8px; }
.pt-name { font-size: 11px; font-weight: 650; }
.pt-bar { height: 4px; background: var(--panel-2); border-radius: 2px; overflow: hidden; border: 1px solid var(--line-soft); }
.pt-bar i { display: block; height: 100%; }
.pt-num { font-size: 10.5px; color: var(--steel-dim); text-align: right; font-variant-numeric: tabular-nums; }
.stats-box { width: min(560px, 100%); }
#statsCanvas { max-width: 100%; max-height: calc(94vh - 190px); width: auto; height: auto; border-radius: 2px; }
@media (max-width: 900px) { .progress-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .progress-tiers { grid-template-columns: 1fr; } }


/* ---------- v58 ambient texture ---------- */
body {
  background-color: var(--void);
  background-image:
    radial-gradient(1000px 560px at 72% -12%, rgba(91, 157, 255, 0.075), transparent 62%),
    radial-gradient(760px 420px at 8% 8%, rgba(91, 157, 255, 0.035), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: auto, auto, 84px 84px, 84px 84px;
  background-attachment: fixed, fixed, fixed, fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 62%, rgba(2, 4, 9, 0.28) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main { position: relative; z-index: 1; }
.topbar { z-index: 50; }
.site-footer { position: relative; z-index: 1; }

.deck-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(560px, 120%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(91, 157, 255, 0.14), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.deck { position: relative; z-index: 1; }

.band {
  position: relative;
  border-top-color: transparent;
}
.band::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 157, 255, 0.32), transparent);
  pointer-events: none;
}
.site-footer {
  border-top-color: transparent;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 157, 255, 0.22), transparent);
  pointer-events: none;
}
.band-head .kicker { margin-bottom: 10px; }

/* ---------- v62 panel + mono detail ---------- */
:root {
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.checker-field span,
.hero-facts dt,
.progress-head span,
.pt-name,
.pt-num {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.checker-field span,
.hero-facts dt { font-size: 10.5px; }
.checker,
.hero-facts,
.progress-panel { position: relative; }
.checker::before,
.hero-facts::before,
.progress-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--brass);
  border-left: 1px solid var(--brass);
  opacity: 0.55;
  pointer-events: none;
}
.checker::after,
.hero-facts::after,
.progress-panel::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-bottom: 1px solid var(--brass);
  border-right: 1px solid var(--brass);
  opacity: 0.55;
  pointer-events: none;
}
.progress-panel {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.015);
  padding: 14px 16px;
}
