/* ============================================================
   PAPERBOARD — the competition front page.
   board (flow + states) · frontpage (leaderboard) · scoring
   ============================================================ */

/* — section shell (the board sits on the press ground) — */
.board { position: relative; background: var(--ink) }
.board__split { display: grid; gap: clamp(26px, 4vw, 60px);
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: start }
.board__title { font-family: var(--serif); font-weight: 900;
  font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1; margin-block: 1rem .8rem }
.board__title .line2 { color: var(--green) }
.board__lede { color: var(--cream-dim); max-width: 52ch }
.board__steps { margin-top: 1.8rem; display: grid; gap: 0 }
.board__step { display: grid; grid-template-columns: auto 1fr; gap: .8em 1.2em;
  align-items: baseline; padding-block: .95rem; border-top: 1px solid var(--line) }
.board__step:last-child { border-bottom: 1px solid var(--line) }
.board__step-n { font-family: var(--mono); font-size: .64rem; letter-spacing: .2em;
  color: var(--green) }
.board__step b { display: block; font-weight: 800; font-stretch: 112%;
  font-size: 1rem; text-transform: uppercase; letter-spacing: .02em }
.board__step span { color: var(--cream-dim); font-size: .9rem }
.board__ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-top: 1.8rem }
@media (max-width: 980px) {
  .board__split { grid-template-columns: minmax(0, 1fr) }
  .board__art { min-height: 340px }
}

/* — the state machine panel (the system readout) — */
.panel { position: relative; border: 1px solid var(--line); background: var(--ink-2);
  border-radius: 12px; padding: clamp(18px, 2.4vw, 28px) }
.panel__head { display: flex; justify-content: space-between; align-items: center;
  gap: 12px; font-family: var(--mono); font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--cream-faint) }
.panel__live { display: inline-flex; align-items: center; gap: .5em }
.panel__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(62, 201, 95, .4); animation: pulse-ring 2.2s ease-out infinite }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(62, 201, 95, .4) }
  70% { box-shadow: 0 0 0 9px rgba(62, 201, 95, 0) }
  100% { box-shadow: 0 0 0 0 rgba(62, 201, 95, 0) }
}
.panel__body { display: grid; gap: 1.1rem }
.panel__states { display: none }
.panel[data-state] .panel__states { display: block }
.panel__state { display: none }
.panel__state.is-active { display: block }

/* connect prompt */
.p-idle { display: grid; gap: .9rem }
.p-idle__art { position: relative; height: clamp(210px, 34svh, 300px) }
.p-idle__art img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 12% }
.p-idle h3, .p-scan h3, .p-none h3, .p-err h3, .state__title {
  font-family: var(--serif); font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.7rem) }
.p-idle p, .p-scan p, .p-none p, .p-err p, .state__body { color: var(--cream-dim); font-size: .92rem }

/* — the account doors (join → email → welcome → dash) — */
.p-join, .p-email, .p-welcome, .p-dash { display: grid; gap: .9rem }
.p-join h3, .p-email h3, .p-welcome h3 {
  font-family: var(--serif); font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.7rem) }
.p-join p, .p-email p, .p-welcome p { color: var(--cream-dim); font-size: .92rem }
.p-join__form, .p-dash__submit { display: flex; gap: .7em; flex-wrap: wrap }
.p-welcome__fields { display: grid; gap: .6rem }
.p-join input, .p-welcome input, .p-dash input {
  flex: 1 1 240px; background: var(--ink); color: var(--cream);
  border: 1px solid var(--line-2); border-radius: 8px; padding: .8em .9em;
  font-family: var(--mono); font-size: .8rem; min-width: 0 }
.p-join input::placeholder, .p-welcome input::placeholder, .p-dash input::placeholder { color: var(--cream-faint) }
.p-join input:focus, .p-welcome input:focus, .p-dash input:focus { outline: none; border-color: var(--green) }
.p-join__err { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em;
  color: var(--cream-faint); min-block-size: 1em }
.p-email__link { margin-block-start: .2rem }

/* the dash (one name, one rank, one number — the rest is lines) */
.p-dash__head { display: flex; justify-content: space-between; align-items: baseline;
  gap: .8em; flex-wrap: wrap }
.p-dash__name { font-family: var(--serif); font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem) }
.p-dash__rank { font-family: var(--mono); font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--green) }
.p-dash__swap { background: none; border: 0; padding: 0; margin-inline-start: .5em;
  cursor: pointer; font-family: var(--mono); font-size: .56rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream-faint);
  border-bottom: 1px dashed var(--line-2) }
.p-dash__swap:hover { color: var(--green) }
.p-dash__verdict { border-top: 1px dashed var(--line); padding-block-start: .7rem;
  color: var(--cream-dim); font-size: .92rem }
.p-dash__verdict[hidden] { display: none }
.p-dash__verdict b { color: var(--green) }
.p-dash__verdict.is-no { color: var(--tan) }
.p-dash__ledger { display: grid; gap: .3rem; border-top: 1px solid var(--line);
  padding-block-start: .6rem }
.p-dash__ledger-head { font-family: var(--mono); font-size: .58rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--cream-faint); margin: .5em 0 .1em }
.dash-line { color: var(--cream-dim); font-size: .9rem; padding-block: .15rem }
.dash-line b.pos { color: var(--green) }
.dash-line .dim, .dash-line.dim { color: var(--cream-faint) }

/* wallet step */
.p-wallet { display: grid; gap: .9rem }
.p-wallet__form { display: flex; gap: .7em; flex-wrap: wrap }
.p-wallet input { flex: 1 1 240px; background: var(--ink); color: var(--cream);
  border: 1px solid var(--line-2); border-radius: 8px; padding: .8em .9em;
  font-family: var(--mono); font-size: .8rem; min-width: 0 }
.p-wallet input::placeholder { color: var(--cream-faint) }
.p-wallet input:focus { outline: none; border-color: var(--green) }
.p-wallet__note { display: flex; gap: .7em; align-items: start; color: var(--cream-dim);
  font-size: .8rem }
.p-wallet__note .ic { flex: none; width: 14px; height: 14px; margin-top: .25em;
  color: var(--green) }

/* scanning */
.p-scan { display: grid; gap: 1rem; justify-items: start }
.p-scan__art { height: clamp(180px, 28svh, 250px); width: 100%; position: relative;
  overflow: clip }
.p-scan__art img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 10% }
.p-scan__art::after { content: ""; position: absolute; inset-inline: 0; height: 34%;
  top: 8%; background: linear-gradient(transparent,
    rgba(62, 201, 95, .16) 55%, transparent);
  animation: scanline 1.8s var(--ease-out) infinite }
@keyframes scanline { 0% { top: 8% } 55% { top: 62% } 100% { top: 8% } }
.p-scan__log { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green) }

/* result (the scorecard) */
.p-result { display: grid; gap: 1.1rem }
.p-result__hero { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem;
  align-items: center }
.score { display: grid; gap: .1rem }
.score__num { font-family: var(--serif); font-weight: 900;
  font-size: clamp(3rem, 8vw, 4.6rem); line-height: .95; color: var(--green) }
.score__cap { font-family: var(--mono); font-size: .64rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--cream-faint) }
.p-result__art { height: clamp(190px, 26svh, 280px) }
.p-result__art img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 6% }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  border-top: 1px solid var(--line) }
.metric { padding: .9rem 1rem; border-bottom: 1px solid var(--line) }
.metric__k { font-family: var(--mono); font-size: .6rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--cream-faint) }
.metric__v { font-weight: 800; font-stretch: 112%; font-size: 1.35rem; margin-top: .15em }
.metric__v .u { font-family: var(--mono); font-size: .62rem; font-weight: 400;
  letter-spacing: .14em; color: var(--cream-faint) }
.status-line { display: flex; gap: .6em; align-items: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream-dim) }

/* breakdown (VIEW SCORING BREAKDOWN) */
.breakdown { border-top: 2px solid var(--cream); padding-top: 1.1rem;
  display: grid; gap: 1rem }
.breakdown[hidden] { display: none }
.bd-post { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem;
  display: grid; gap: .7rem; background: var(--ink) }
.bd-post__head { display: grid; grid-template-columns: 1fr auto; gap: 1em;
  align-items: baseline }
.bd-post__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: .92rem }
.bd-post__text a { text-decoration: none; border-bottom: 1px solid transparent }
.bd-post__text a:hover { border-bottom-color: var(--green); color: var(--green) }
.bd-post__pts { font-family: var(--mono); font-weight: 500; color: var(--green);
  white-space: nowrap }
.bd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(110px, 100%), 1fr));
  gap: .5rem 1rem }
.bd-cell { display: grid }
.bd-cell dt { font-family: var(--mono); font-size: .56rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--cream-faint) }
.bd-cell dd { margin: .1em 0 0; font-weight: 700; font-size: .95rem }
.bd-cell dd.neg { color: var(--cream-faint); font-weight: 500 }
.bd-audit { display: flex; gap: .45em; flex-wrap: wrap; font-family: var(--mono);
  font-size: .56rem; letter-spacing: .14em; text-transform: uppercase }
.bd-audit .tag { color: var(--green); border-color: var(--green-soft) }
.bd-audit .tag--off { color: var(--tan); border-color: var(--tan) }
.bd-post.is-no .bd-post__pts { color: var(--cream-faint) }
.bd-post.is-no .bd-cell dd { color: var(--cream-dim) }
.bd-post .bd-flag { display: inline-flex }

/* — the front page (full leaderboard) — */
.frontpage { background: var(--ink) }
.board-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums }
.board-table thead th { font-family: var(--mono); font-size: .58rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--cream-faint); text-align: left;
  padding: .6rem .8rem; border-bottom: 2px solid var(--cream) }
.board-table tbody td { padding: .85rem .8rem; border-bottom: 1px solid var(--line);
  vertical-align: middle }
.board-table tbody tr { transition: background .25s }
.board-table tbody tr:hover { background: rgba(242, 239, 228, .035) }
.board-table tbody tr.is-you { background: rgba(62, 201, 95, .07);
  box-shadow: inset 3px 0 0 var(--green) }
.rk { font-family: var(--serif); font-weight: 900; font-size: 1.25rem; width: 2.6em }
.rk .mv { font-family: var(--mono); font-size: .56rem; font-weight: 400;
  margin-left: .3em }
.rk .mv.up { color: var(--green) }
.rk .mv.down { color: var(--tan) }
.nm { display: grid; gap: .1em }
.nm__handle { font-weight: 800; font-stretch: 112%; font-size: 1rem; text-decoration: none }
.nm__handle:hover { color: var(--green) }
.nm__sub { font-family: var(--mono); font-size: .58rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cream-faint) }
.nm__tag { margin-left: .6em }
.num { font-weight: 700; font-stretch: 110%; font-size: 1.02rem; text-align: right }
.num--pts { color: var(--green) }
.num .dim { font-family: var(--mono); font-size: .6rem; color: var(--cream-faint) }
.tr-front { background: linear-gradient(90deg, rgba(217, 181, 84, .11), transparent 70%) }
.tr-front .rk { color: var(--gold); font-size: 1.6rem }
.tr-front .nm__handle { font-size: 1.2rem }
.tr-head .rk, .tr-head .nm__handle { color: var(--silver) }
.fp__foot { margin-top: 1.4rem; display: flex; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cream-faint) }
.fp__empty { display: grid; gap: 1rem; justify-items: center; text-align: center;
  padding-block: 2rem }
.fp__empty-art { width: min(300px, 70%) }
.fp__empty-art img { width: 100% }

/* — how it scores (the rules spread) — */
.scoring { border-top: 1px solid var(--line) }
.scoring .cols h3 { font-weight: 800; font-stretch: 114%; text-transform: uppercase;
  letter-spacing: .04em; font-size: 1rem; margin-block-end: .7rem }
.scoring .cols h3 .ic { width: 14px; height: 14px; vertical-align: -2px;
  margin-right: .4em; color: var(--green) }
.scoring p { color: var(--cream-dim); font-size: .94rem }
.scoring code { font-family: var(--mono); font-size: .82em; color: var(--cream);
  background: rgba(242, 239, 228, .07); padding: .12em .4em; border-radius: 4px }
.scoring li b { overflow-wrap: anywhere; hyphens: auto }
.scoring ul li { padding-block: .3rem; border-bottom: 1px dashed var(--line);
  color: var(--cream-dim); font-size: .9rem }
.scoring ul li b { color: var(--cream) }
.score-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums }
.score-table th { text-align: left; font-family: var(--mono); font-size: .56rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--cream-faint);
  padding-block: .4rem }
.score-table td { padding-block: .35rem; border-top: 1px dashed var(--line); font-size: .88rem }
.score-table td:last-child { text-align: right; color: var(--green);
  font-family: var(--mono); font-size: .8rem }
.prizes { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 44px);
  align-items: center; margin-top: clamp(28px, 4vw, 48px); padding: clamp(16px, 2.6vw, 26px);
  border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2) }
.prizes__art { width: clamp(140px, 16vw, 230px) }
.prizes__art img { width: 100% }
.prizes h3 { font-family: var(--serif); font-weight: 800; font-size: 1.4rem;
  margin-block-end: .5rem }
.prizes p { color: var(--cream-dim); font-size: .92rem }
@media (max-width: 860px) {
  .prizes { grid-template-columns: minmax(0, 1fr); }
  .prizes__art { width: min(230px, 60%) }
}

/* — the board's one honest label: the mode stamp (panel head carries it) — */

/* the 2026-10-06 pose set is sliced from the founder's sheet by
   server/tools/pose_alpha.py (component-aware), so every figure arrives
   whole — no intruder bands, no clip paths needed anymore. */

/* — compact leaderboard for small screens — */
@media (max-width: 760px) {
  .board-table thead { display: none }
  .board-table, .board-table tbody { display: block; width: 100% }
  .board-table tbody tr { display: grid; width: 100%;
    grid-template-columns: auto 1fr auto; grid-template-rows: auto auto;
    align-items: baseline; gap: .2em .9em;
    border: 1px solid var(--line); border-radius: 10px;
    margin-block-end: .7rem; padding: .7rem .9rem }
  .board-table tbody td { border: 0; padding: 0 }
  .board-table .cell-rank { grid-column: 1; grid-row: 1 }
  .board-table .cell-name { grid-column: 2; grid-row: 1; display: block }
  .board-table tbody td.num { text-align: left }
  .board-table tbody td[data-label="Points"] { grid-column: 3; grid-row: 1 / 3;
    align-self: center; font-size: 1.2rem }
  .board-table tbody td[data-label="Share"] { grid-column: 2; grid-row: 2 }
  .board-table tbody td[data-label="Posts"],
  .board-table tbody td[data-label="Receipts"] { display: none }
  .board-table tbody td.num .dim::before { content: " · " }
  .rk { font-size: 1.4rem }
}

/* the hidden attribute must mean hidden on buttons too: .btn sets
   display:inline-flex (paper.css), which outranks the UA's [hidden] rule.
   the legacy demo sign-in ships hidden; this is the guard that keeps it so. */
.btn[hidden] { display: none }

/* PAPERBOARD UX pass — the X-verification lane is one grid and hidden must
   mean hidden inside it (mirrors the verdict lane's own guard). the disabled
   state is deliberate, not browser-default gray. the account's own row on the
   front page gets a green spine, so 'you' never reads like the gold lanes. */
.p-dash__xverify { display: grid; gap: .9rem }
.p-dash__xverify[hidden] { display: none }
.p-dash button[disabled] { opacity: .55; pointer-events: none }
.board-table tbody tr.tr-you { background: rgba(62, 201, 95, .07);
  box-shadow: inset 3px 0 0 var(--green) }

/* PAPERBOARD onboarding pass — Step 1 is one bordered task, the prompt rides
   in mono so it reads as copyable law, the copy button answers out loud, and
   the closed submit desk explains itself. */
.pb-spam-note { font-size: .8rem; color: var(--tan) }
.p-xverify__step { display: grid; gap: .7rem; border: 1px dashed var(--line);
  padding: .9rem 1rem }
.p-xverify__step[hidden] { display: none }
.p-xverify__tag { font-family: var(--mono); font-size: .6rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--tan); margin: 0 }
.p-xverify__why, .p-xverify__next { font-size: .84rem; margin: 0 }
.p-xverify__prompt { font-family: var(--mono); font-size: .8rem; white-space: pre-wrap;
  word-break: break-word; margin: 0; border: 1px dashed var(--line); padding: .7em .8em }
.p-xverify__copyline { display: flex; gap: .7em; align-items: baseline;
  flex-wrap: wrap; margin: 0 }
.p-xverify__copy { font-family: var(--mono); font-size: .66rem; color: var(--green) }
.p-xverify__gate { font-size: .84rem; color: var(--tan) }

/* — the scoring spread, simplified (2026-10-13): breathing room in one
     section, nothing else. heading air over its body, lists and paragraphs
     given line-height, the maximum line and footnote given their own lane,
     and stacked columns given comfortable gaps. the headline gap rides the
     h2's own margin-block; the long contract address already wraps through
     .scoring li b's overflow-wrap; dividers and the one-column phone stack
     ride the ground .cols rules, untouched. */
.scoring .cols { gap: clamp(34px, 3.4vw, 56px) }
.scoring .cols h3 { margin-block: .4rem 1.15rem }
.scoring .cols p { line-height: 1.65 }
.scoring .cols ul { margin-block: .7rem .5rem }
.scoring .cols li { line-height: 1.6 }
.scoring .sc-max { margin-block: 1rem .35rem }
.scoring .sc-fn { margin-block: 0; font-size: .8rem; line-height: 1.6;
  color: var(--cream-faint) }

/* ============================================================
   P6B — the state vocabulary: one named pattern for the five honest
   states — loading, empty, error, success, and deferred. the shipped
   panels keep their own selectors (zero behavior change); the new
   lanes below cite the system so the Artboard and the Map arrive
   styled from their first pixel. */
.state { display: grid; gap: var(--sp-2); justify-content: start }
.state--center { justify-content: center; text-align: center }
.state__figure { position: relative; min-block-size: clamp(180px, 28svh, 260px) }
.state__figure img { width: 100%; height: 100%; object-fit: contain;
  object-position: 50% 10% }
.state__title { font-family: var(--serif); font-weight: 800;
  font-size: var(--fs-h3) }
.state__body { color: var(--cream-dim); font-size: .92rem }
/* deferred — the fifth state, named after the mail lane learned to tell
   the truth: not an error, not a cheer, a window. */
.p-defer { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--tan) }
/* the one form-field pattern (the lane inputs keep their look; this is
   the citable shape for everything still to come). */
.field { flex: 1 1 240px; background: var(--ink); color: var(--cream);
  border: 1px solid var(--line-2); border-radius: var(--r-field);
  padding: .8em .9em; font-family: var(--mono); font-size: .8rem;
  min-inline-size: 0 }
.field:focus { outline: none; border-color: var(--green) }
.field::placeholder { color: var(--cream-faint) }

/* — the artboard: the community wall (feature one) —
   press-sheet rules: hairline grid, mono micro-labels, tabular counts,
   square frames. zero card-mountain shadows in this whole block. */
.artboard { background: var(--ink) }
.ab__sort { display: grid; gap: var(--sp-1); justify-content: start;
  grid-auto-flow: column; margin: var(--sp-3) 0 var(--sp-2) }
.ab__sort .btn { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cream-faint); border: 1px solid var(--line) }
.ab__sort .btn.is-on { color: var(--cream); border-color: var(--cream) }
.art-grid { display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  border-top: 1px solid var(--line); padding-top: var(--sp-3) }
.art { margin: 0; display: grid; gap: var(--sp-1) }
.art__frame { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border: 1px solid var(--line-2); border-radius: 0; background: var(--ink-2) }
.art__cap { display: grid; gap: .15em }
.art__title { font-family: var(--serif); font-weight: 700; font-size: 1.02rem }
.art__credit { font-family: var(--mono); font-size: var(--fs-caption);
  letter-spacing: .16em; text-transform: uppercase; color: var(--cream-faint) }
.art__like { justify-self: start; margin-top: var(--sp-1); background: none;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line); color: var(--cream-dim);
  padding: .35em .7em; cursor: pointer }
.art__like:hover { border-color: var(--green-soft); color: var(--green) }
.art__like.is-defer { border-color: var(--green-soft); color: var(--green) }
.ab__hang { margin-top: var(--sp-4); display: grid; gap: var(--sp-2);
  border-top: 2px solid var(--cream); padding-top: var(--sp-2) }
.ab__hang .field { display: grid; gap: .2em; font-family: var(--mono);
  font-size: var(--fs-caption); letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-faint) }
@media (width ≤ 720px) {
  .art-grid { grid-template-columns: 1fr }
}

/* — the world map: where the paper comes from (feature two) —
   stroke over fill, tabular chips, and the press-sheet vow holds. */
.worldmap { background: var(--ink) }
.wm__canvas { position: relative; height: min(60vh, 460px); max-width: 760px;
  margin: var(--sp-2) auto; border: 1px solid var(--line); overflow: hidden }
/* leaflet puts .leaflet-container ON the mount itself, so a descendant form
   never matched and leaflet's own pale default won the box: the map reads
   as a flat light sheet until tiles paint. the compound form pins the ink onto the
   mount, and the belt keeps a child container honest if leaflet ever nests
   one. (the height lane died here too: it never applied, and a percent on the
   mount would collapse the box — the height belongs to .wm__canvas alone.) */
.wm__canvas.leaflet-container, .wm__canvas .leaflet-container {
  background: var(--ink) }
.wm__canvas path.wm__seat { stroke: var(--green); stroke-width: 1.5;
  fill: var(--green); fill-opacity: .35 }
.wm__canvas .leaflet-control-attribution {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .1em;
  color: var(--cream-dim) }
.wm__attr { font-family: var(--mono); font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cream-faint); text-align: center;
  margin: 0 0 var(--sp-2) }
.wm__bare { font-family: var(--mono); font-size: .64rem; color: var(--cream-faint);
  letter-spacing: .1em; margin: var(--sp-1) 0 0 }
.wm__chips { display: flex; flex-wrap: wrap; gap: var(--sp-1) .9rem;
  border-top: 1px solid var(--line); padding-top: var(--sp-2) }
.wm__chip { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream-dim);
  border-bottom: 1px solid var(--line); padding: .2em .1em }
.wm__chip b { color: var(--cream); font-variant-numeric: tabular-nums }
.wm__seat-doors { display: flex; gap: var(--sp-2); flex-wrap: wrap }
@media (width ≤ 720px) {
  .wm__canvas { height: min(52vh, 360px); max-width: none }
}

/* — the arcade: the games floor (feature three) —
   tiles in hairline frames, boards as ruled rows; the press-sheet vow holds. */
.arcade { background: var(--ink) }
.ar__tiles { display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  border-top: 1px solid var(--line); padding-top: var(--sp-3) }
.ar__tile { border: 1px solid var(--line-2); padding: var(--sp-2); margin: 0 }
.ar__tile-state { font-family: var(--mono); font-size: var(--fs-caption);
  letter-spacing: .18em; text-transform: uppercase; color: var(--cream-faint);
  margin: 0 0 .4em }
.ar__tile-state::before { content: "· "; }
.ar__tile-name { font-family: var(--serif); font-size: var(--fs-h3);
  margin: 0 0 var(--sp-1) }
.ar__blurb { color: var(--cream-dim); margin: 0 }
.ar__boards { display: grid; gap: var(--sp-3); margin-top: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)) }
.ar__board { border-top: 2px solid var(--cream); padding-top: var(--sp-1) }
.ar__board-name { font-family: var(--mono); font-size: var(--fs-kicker);
  letter-spacing: .2em; text-transform: uppercase; color: var(--cream-dim) }
.ar__rows { display: grid }
.ar__row { display: flex; justify-content: space-between; gap: var(--sp-2);
  border-bottom: 1px solid var(--line); padding: .5em 0;
  font-variant-numeric: tabular-nums }
.ar__rank { font-family: var(--serif); font-weight: 900; width: 1.6em }
.ar__handle { flex: 1 1 auto; font-weight: 800 }
.ar__score { color: var(--cream) }
@media (width ≤ 720px) {
  .ar__tiles, .ar__boards { grid-template-columns: 1fr }
}

/* the arcade's score desk rides the hang-desk idiom; the select is
   a field like any other, and the options keep the ink. */
.ar__score { margin-top: var(--sp-3) }
.ar__score select { -webkit-appearance: none; appearance: none;
  background: transparent; color: var(--cream);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em }
.ar__score option { background: var(--ink-2); color: var(--cream) }

/* — the redress (P6R): the spread folds; the index is the page.
   six views, one visible at a time — a broadsheet shows one page, not the
   whole stack. the dash is the one new composition: a woven, unsymmetric
   masthead of real figures. on the phone the index rides at the thumb.
   the press-sheet vow holds: hairline over shadow, scale over noise. */
.view { display: none }
.view.is-view { display: block }
.mast__link.is-active { color: var(--cream) }
.mast__link.is-active::after { right: 0 }
.dash__grid { display: grid; grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-4) var(--sp-3); margin-top: var(--sp-4) }
.dash__cell { grid-column: span 5; border-top: 2px solid var(--cream);
  padding-top: var(--sp-2); margin: 0 }
.dash__cell--wide { grid-column: span 7 }
.dash__cell--broad { grid-column: span 7 }
.dash__cell--lean { grid-column: span 5 }
.dash__head { font-family: var(--mono); font-size: var(--fs-kicker);
  letter-spacing: .18em; text-transform: uppercase; color: var(--cream-dim);
  margin: 0 }
.dash__peel { list-style: none; display: grid; margin: var(--sp-2) 0 0;
  padding: 0 }
.dash__row { display: flex; align-items: baseline; gap: var(--sp-2);
  border-bottom: 1px solid var(--line); padding: .45em .1em;
  font-variant-numeric: tabular-nums }
.dash__rank { font-family: var(--serif); font-weight: 900; width: 1.4em;
  color: var(--green) }
.dash__pts { margin-left: auto; font-weight: 700 }
.dash__thumbs { display: grid; grid-template-columns: 1fr 1fr;
  gap: .8rem; margin: var(--sp-2) 0 0 }
.dash__thumb { display: block; text-decoration: none }
.dash__thumb img { display: block; width: 100%; height: auto;
  border: 1px solid var(--line) }
.dash__thumb span { display: block; font-family: var(--mono);
  font-size: var(--fs-caption); letter-spacing: .08em; color: var(--cream-dim);
  margin-top: .35em }
.dash__door { display: inline-block; margin-top: var(--sp-3);
  font-family: var(--mono); font-size: var(--fs-kicker); letter-spacing: .16em;
  text-transform: uppercase; color: var(--cream-dim); text-decoration: none;
  border-bottom: 1px solid var(--green-ink); padding-bottom: .2em;
  transition: color var(--dur-1) var(--ease-out) }
.dash__door:hover { color: var(--green) }
.dash__hush { color: var(--cream-faint); font-size: .8rem; margin: var(--sp-2) 0 0 }
@media (width ≤ 720px) {
  .dash__grid { grid-template-columns: 1fr }
  .dash__cell, .dash__cell--wide, .dash__cell--broad, .dash__cell--lean {
    grid-column: auto }
  .mast__links { position: fixed; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(5, 1fr);
    justify-items: center; align-items: center; overflow-x: visible;
    background: var(--ink-2); border-top: 1px solid var(--line);
    padding: .7rem .3rem calc(.7rem + env(safe-area-inset-bottom, 0px)) }
  .footer { padding-bottom: 84px }
}

/* ————————————————————— P6T: the studio door —————————————————————
   the mast index counts six since PAPER Studio joined the navigation,
   and the phone's thumb rail breathes with it. the five-track rule
   above stays standing — it is the wall's printed history — and this
   later rule simply speaks over it at the same weight, zero new ink,
   zero shadow, the same hairline voice. */
@media (max-width: 720px) {
  .mast__links { grid-template-columns: repeat(6, 1fr) }
}

/* ---------------------------------------------------------------- P6Y: the run
   the first game rides the floor as a live frame on its own rails: a
   positioned box, a sheet two shades off the page, one hairline. no
   shadow at all (the map's doctrine carries into the game), no radius, and
   the phone lane sizes the box for thumbs instead of trusting a ratio. the
   caption shares the width with the escape pill; the slow-rails note rides
   a mono rail like every other silence on this sheet. */
.run { background: var(--ink) }
.run__stage { margin: var(--sp-4) 0 0 }
.run__frame { position: relative; height: min(calc(100svh - 19rem), 43rem);
  min-height: 18rem; border: 1px solid var(--line-2); background: var(--ink-2) }
.run__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; display: block }
.run__cap { display: flex; flex-wrap: wrap; gap: var(--sp-3);
  align-items: center; justify-content: space-between;
  margin: var(--sp-2) 0 0 }
.run__keys { font-family: var(--mono); font-size: var(--fs-caption);
  color: var(--cream-dim) }
.run__down { margin: var(--sp-2) 0 0; border-left: 3px solid var(--line);
  padding-left: var(--sp-2); font-family: var(--mono);
  font-size: var(--fs-caption); color: var(--cream-dim) }
@media (max-width: 760px) {
  .run__frame { height: 56svh }
  .run__cap { flex-direction: column; align-items: flex-start }
}
