:root {
  --pitch: #131010;
  --slab: #1e1917;
  --slab-2: #272120;
  --slab-3: #332b28;
  --edge: #453a35;
  --edge-lit: #6b5748;
  --forge: #e2ab41;
  --forge-lit: #f3c25c;
  --forge-ink: #1c1408;
  --crimson: #93281a;
  --parch: #f4ede1;
  --dim: #b3a595;
  --round: 14px;
  --column: 1060px;
  --rib: 40px;
  --type: "Segoe UI", Tahoma, Verdana, sans-serif;
  --display: Georgia, "Palatino Linotype", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font: 16px/1.62 var(--type);
  color: var(--parch);
  background: var(--pitch);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, span:focus-visible, label:focus-visible, input:focus-visible {
  outline: 2px solid var(--forge-lit);
  outline-offset: 3px;
}
h1, h2, h3, h4 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: .1px;
  overflow-wrap: break-word;
  color: var(--parch);
}
h1 { font-size: 44px; }
h2 { font-size: 29px; color: var(--forge); }
h3 { font-size: 21px; }
h4 { font-size: 18px; }
p { margin: 0 0 16px; overflow-wrap: break-word; }
ul, ol { margin: 0 0 18px; padding-left: 24px; }
li { margin-bottom: 8px; }
strong { font-weight: 700; color: var(--forge-lit); }
time { color: var(--parch); }

.slab-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 26px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 520px; }
th, td { padding: 13px 15px; border: 1px solid var(--edge); text-align: left; vertical-align: top; font-size: 15px; }
th {
  background: linear-gradient(180deg, #3d332c 0%, #2c2523 100%);
  font-family: var(--display);
  font-weight: 700;
  color: var(--forge-lit);
}
td { background: var(--slab-2); }
tbody tr:nth-child(even) td { background: var(--slab); }
td:first-child { font-weight: 600; color: var(--parch); }
table tr:first-child th:first-child { border-top-left-radius: 10px; }
table tr:first-child th:last-child { border-top-right-radius: 10px; }
table tr:last-child td:first-child { border-bottom-left-radius: 10px; }
table tr:last-child td:last-child { border-bottom-right-radius: 10px; }

.arena { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
.parchment { max-width: calc(var(--column) + var(--rib) * 2); margin: 0 auto; padding: 0 var(--rib) 48px; }
.hook { cursor: pointer; -webkit-user-select: none; user-select: none; }
[data-go], [role="link"], [role="button"], .vault__switch { cursor: pointer; -webkit-user-select: none; user-select: none; }

@keyframes anvil-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(226, 171, 65, 0); }
  50% { transform: scale(1.035); box-shadow: 0 0 26px rgba(226, 171, 65, .45); }
}
.forge-key, .join-key, .voices__key {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 10px; font-weight: 700; text-decoration: none;
  background: linear-gradient(180deg, var(--forge-lit) 0%, var(--forge) 100%);
  color: var(--forge-ink);
  transition: filter .2s, transform .12s;
}
.forge-key:hover, .join-key:hover, .voices__key:hover { filter: brightness(1.09); }
.forge-key:active { transform: scale(.985); }
.forge-key {
  width: 100%; max-width: 360px; min-height: 60px; margin: 6px auto 0; padding: 12px 26px;
  font-size: 18px; letter-spacing: .3px;
}
.forge-key--pulse, .join-key--pulse { animation: anvil-breathe 2.8s ease-in-out infinite; will-change: transform; }
.forge-key--pulse:hover, .join-key--pulse:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .forge-key--pulse, .join-key--pulse { animation: none; }
}

.crest { position: sticky; top: 0; z-index: 60; background: var(--slab); border-bottom: 1px solid var(--edge); }
.crest__row {
  max-width: none; margin-inline: 0; padding: 0 var(--rib);
  height: 70px; display: flex; align-items: center; gap: 22px;
}
.crest__brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.crest__mark { height: 42px; width: auto; }
.crest__word { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--forge); white-space: nowrap; }
.rail-toggle { position: absolute; opacity: 0; pointer-events: none; }
.rail-tab {
  display: none; width: 42px; height: 42px; padding: 9px; flex-direction: column; justify-content: space-between;
  cursor: pointer; border-radius: 9px; background: var(--slab-2); border: 1px solid var(--edge); flex: none;
}
.rail-tab span { display: block; height: 3px; border-radius: 2px; background: var(--forge); transition: transform .25s, opacity .25s; }
.pass__list { display: flex; gap: 7px; list-style: none; margin: 0; padding: 0; }
.pass__list li { margin: 0; }
.pass__list .hook {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px;
  background: var(--slab-2); border: 1px solid var(--edge);
  font-size: 14px; font-weight: 600; color: var(--parch); text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.pass__list .hook:hover { background: var(--slab-3); border-color: var(--edge-lit); }
.pass__icon { fill: var(--forge); flex: none; }
.pass__pair { display: none; }
.keys { display: flex; gap: 10px; margin-left: auto; }
.enter-key, .join-key {
  height: 42px; padding: 0 19px; border-radius: 9px; font-size: 14px; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.enter-key {
  background: var(--slab-2); color: var(--forge); border: 1px solid var(--forge);
  font-weight: 700; transition: background .2s;
}
.enter-key:hover { background: var(--slab-3); }

.standard { padding: 34px 0 40px; text-align: center; }
.standard__crown { margin-bottom: 18px; }
.standard__lede { text-align: left; font-size: 17px; }
.standard__lede p:last-child { margin-bottom: 22px; }
.standard__plate { display: block; margin: 0 0 22px; border: 1px solid var(--edge); border-radius: var(--round); overflow: hidden; }
.standard__plate img { width: 100%; }

.ledger, .chapter, .vault, .verdict, .voices, .answers, .stamp {
  margin: 0 0 30px;
  padding: 30px var(--rib);
  background: var(--slab);
  border: 1px solid var(--edge);
  border-radius: var(--round);
}
.ledger__crest {
  display: flex; align-items: center; justify-content: center; min-height: 62px;
  margin: 0 0 22px; padding: 12px 20px; border-radius: 10px;
  background: linear-gradient(135deg, #e6b451 0%, #b57c26 100%);
  color: var(--forge-ink); text-align: center; font-size: 25px;
}
.chapter > *:last-child, .verdict > *:last-child, .voices > *:last-child { margin-bottom: 0; }
.chapter p, .chapter li, .verdict li { font-size: 17px; }
.chapter h3 { margin-top: 26px; color: var(--forge-lit); }
.chapter h3:first-of-type { margin-top: 18px; }
.chapter h4 { margin-top: 20px; margin-bottom: 12px; color: var(--parch); }
.chapter__marks { margin-top: 28px; }
.chapter__plate { margin: 0 0 30px; border: 1px solid var(--edge); border-radius: var(--round); overflow: hidden; }
.chapter__plate img { width: 100%; }
.chapter__steps li { margin-bottom: 10px; }

.vault, .voices, .answers, .base { content-visibility: auto; contain-intrinsic-size: auto 620px; }
.vault h2, .verdict h2, .voices h2, .answers h2 { text-align: center; }
.vault__switches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin: 0 0 22px; padding: 0; }
.vault__switches li { margin: 0; }
.vault__switch {
  display: flex; align-items: center; justify-content: center; gap: 9px; height: 50px; border-radius: 10px;
  background: var(--slab-2); border: 1px solid var(--edge); color: var(--parch);
  font-size: 15px; font-weight: 700; text-decoration: none; transition: background .2s, border-color .2s;
}
.vault__switch svg { fill: var(--forge); flex: none; }
.vault__switch:hover, .vault__switch.lit { background: var(--slab-3); border-color: var(--forge); }
.deck { display: none; }
.deck.lit { display: block; }
.vault__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.vault__grid > * { min-width: 0; }
.slab-card { display: block; text-decoration: none; color: var(--parch); }
.slab-card__art {
  display: block; border-radius: 10px; overflow: hidden; background: var(--slab-2);
  border: 1px solid var(--edge); aspect-ratio: 360 / 472;
}
.slab-card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.slab-card:hover .slab-card__art img { transform: scale(1.04); }
.slab-card__name { display: block; margin-top: 10px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.slab-card small { display: block; font-size: 12px; color: var(--dim); }
.mark-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px 14px; }
.mark-grid > * { min-width: 0; }
.mark-card { display: block; text-decoration: none; color: var(--parch); }
.mark-card__art {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 8 / 5;
  padding: 7px; box-sizing: border-box;
  border-radius: 10px; background: var(--slab-2); border: 1px solid var(--edge); transition: border-color .2s;
}
.mark-card:hover .mark-card__art { border-color: var(--edge-lit); }
.mark-card__art img { width: auto; max-width: 84px; max-height: 42px; }
.mark-card__art img { max-width: min(84px, 100%); max-height: min(42px, 100%); }
.mark-card__name { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.35; color: var(--dim); }

.verdict__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.verdict__grid > * { min-width: 0; }
.verdict__panel { padding: 24px; border-radius: 10px; background: var(--slab-2); border: 1px solid var(--edge); }
.verdict__panel ul { margin: 0; padding: 0; list-style: none; }
.verdict__panel li { position: relative; padding-left: 26px; }
.verdict__panel li::before { content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 11px; border-radius: 3px; }
.verdict__panel--plus li::before { background: #5fb98b; }
.verdict__panel--minus li::before { background: var(--forge); }

.voices__banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; margin-bottom: 22px; border-radius: 10px; background: var(--slab-2); border: 1px solid var(--edge);
}
.voices__score { display: flex; align-items: center; gap: 12px; }
.voices__score b { font-family: var(--display); font-size: 30px; }
.voices__score small { color: var(--dim); font-size: 13px; }
.voices__cap { font-size: 13px; color: var(--dim); margin-bottom: 4px; }
.pips { display: inline-flex; gap: 2px; }
.pips svg { width: 18px; height: 18px; fill: var(--forge); }
.voices__key { height: 46px; padding: 0 24px; font-size: 14px; white-space: nowrap; }
.voices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.voices__grid > * { min-width: 0; }
.voices__card { padding: 20px; border-radius: 10px; background: var(--slab-2); border: 1px solid var(--edge); }
.voices__who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.voices__badge {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, #e6b451 0%, #b57c26 100%);
  font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--forge-ink); flex: none;
}
.voices__meta b { display: block; font-size: 15px; }
.voices__meta small { color: var(--dim); font-size: 12px; }
.voices__rate { margin-bottom: 10px; }
.voices__note { margin: 0; font-size: 15px; }

.answers__row { padding: 20px 24px; margin-bottom: 12px; border-radius: 10px; background: var(--slab-2); border: 1px solid var(--edge); }
.answers__row:last-child { margin-bottom: 0; }
.answers__row h3 { font-size: 18px; margin-bottom: 8px; }
.answers__row p { margin: 0; font-size: 16px; }

.stamp { padding: 18px var(--rib); }
.stamp__plate { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--dim); }
.stamp__icon { fill: var(--forge); flex: none; }

.base { background: var(--slab); border-top: 1px solid var(--edge); }
.base__top { max-width: calc(var(--column) + var(--rib) * 2); margin: 0 auto; padding: 42px var(--rib) 30px; }
.base__row { display: flex; justify-content: space-between; gap: 46px; }
.base__row > * { min-width: 0; }
.base__brand { flex: 0 1 380px; }
.base__brand img { height: 108px; width: auto; margin-bottom: 16px; }
.base__blurb { font-size: 14px; color: var(--dim); }
.base__social { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.base__social-key {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--slab-2); border: 1px solid var(--edge); transition: background .2s, border-color .2s;
}
.base__social-key svg { width: 18px; height: 18px; fill: var(--forge); }
.base__social-key:hover { background: var(--slab-3); border-color: var(--forge); }
.base__device-cap { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--forge-lit); margin-bottom: 6px; }
.base__device p { font-size: 14px; color: var(--dim); }
.base__device-keys { display: flex; flex-wrap: wrap; gap: 10px; }
.base__device-key {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px; border-radius: 11px;
  background: var(--slab-2); border: 1px solid var(--edge); font-size: 14px; font-weight: 700;
  color: var(--parch); text-decoration: none; transition: background .2s, border-color .2s;
}
.base__device-key svg { width: 20px; height: 20px; fill: var(--forge); flex: none; }
.base__device-key:hover { background: var(--slab-3); border-color: var(--forge); }
.base__cols { display: flex; gap: 50px; }
.base-col__cap { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--forge-lit); margin-bottom: 12px; }
.base-col__list { list-style: none; margin: 0; padding: 0; }
.base-col__list li { margin-bottom: 9px; }
.base-col__list .hook { font-size: 14px; color: var(--dim); text-decoration: none; }
.base-col__list .hook:hover { color: var(--parch); text-decoration: underline; }
.base__pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; padding: 26px 0; }
.base__pay img { height: 27px; width: auto; opacity: .92; }
.base__seals {
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; justify-items: center;
  gap: 18px; padding: 24px 0 4px; border-top: 1px solid var(--edge);
}
.base__seals img { height: 46px; width: auto; opacity: .92; }
.base__seals a:hover img { opacity: 1; }
.age-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 50%; border: 3px solid var(--crimson); color: #e0705d; font-weight: 700; font-size: 15px;
}
.base__legal { border-top: 1px solid var(--edge); }
.base__note {
  max-width: calc(var(--column) + var(--rib) * 2); margin: 0 auto; padding: 22px var(--rib);
  font-size: 12px; line-height: 1.7; color: var(--dim);
}
.base__note p { margin: 0 0 8px; }
.base__note p:last-child { margin: 0; }
.base__note a { color: var(--dim); }

@media (max-width: 1100px) {
  .crest__row { gap: 14px; }
  .pass__list .hook { padding: 8px 10px; font-size: 13px; }
  .mark-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 1000px) {
  .rail-tab { display: flex; order: 1; }
  .crest__brand { order: 2; }
  .keys { order: 3; }
  .pass {
    display: none; position: absolute; left: 0; right: 0; top: 70px; order: 4;
    padding: 14px var(--rib) 22px; background: var(--slab); border-bottom: 1px solid var(--edge);
  }
  .rail-toggle:checked ~ .pass { display: block; }
  .rail-toggle:checked ~ .rail-tab span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .rail-toggle:checked ~ .rail-tab span:nth-child(2) { opacity: 0; }
  .rail-toggle:checked ~ .rail-tab span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .pass__list { flex-direction: column; gap: 8px; }
  .pass__list .hook { width: 100%; padding: 11px 14px; font-size: 15px; }
  .pass__pair { display: flex; gap: 10px; margin-top: 14px; }
  .pass__pair > * { flex: 1; }
  .voices__grid { grid-template-columns: repeat(2, 1fr); }
  .base__row { flex-direction: column; gap: 32px; }
  .base__cols { gap: 40px; }
}
@media (max-width: 768px) {
  :root { --rib: 24px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
  h4 { font-size: 17px; }
  .ledger__crest { font-size: 19px; min-height: 54px; }
  .chapter p, .chapter li, .verdict li, .standard__lede { font-size: 16px; }
  .ledger, .chapter, .vault, .verdict, .voices, .answers { padding: 24px var(--rib); }
  .pass { top: 70px; }
  .vault__grid { grid-template-columns: repeat(3, 1fr); gap: 18px 14px; }
  .mark-grid { grid-template-columns: repeat(4, 1fr); gap: 16px 10px; }
  .mark-card__art { padding: 6px; }
  .mark-card__art img { max-width: min(62px, 100%); max-height: min(32px, 100%); }
  .verdict__grid { grid-template-columns: 1fr; }
  th, td { padding: 10px 11px; font-size: 13px; }
  .base__seals { grid-template-columns: repeat(2, 1fr); }
  .base__cols { flex-direction: column; gap: 28px; }
}
@media (max-width: 560px) {
  :root { --rib: 18px; }
  .crest__row { height: 64px; gap: 10px; }
  .pass { top: 64px; }
  .crest__mark { height: 34px; }
  .crest__word { font-size: 17px; }
  .enter-key, .join-key { height: 38px; padding: 0 13px; font-size: 13px; }
  .vault__switches { grid-template-columns: 1fr; gap: 8px; }
  .vault__switch { height: 44px; font-size: 14px; }
  .vault__grid { grid-template-columns: repeat(2, 1fr); }
  .voices__grid { grid-template-columns: 1fr; }
  .voices__banner { flex-direction: column; align-items: flex-start; }
  .voices__key { width: 100%; }
  .forge-key { min-height: 54px; font-size: 16px; }
  .base__brand img { height: 88px; }
}
@media (max-width: 380px) {
  :root { --rib: 14px; }
  h1 { font-size: 27px; }
  .crest__word { display: none; }
  .mark-grid { grid-template-columns: repeat(3, 1fr); }
  .mark-card__art img { max-width: min(70px, 100%); max-height: min(36px, 100%); }
  .base__seals { grid-template-columns: repeat(2, 1fr); }
}
