/*
 * ShinyPic Arcade.
 *
 * The room is dark because the subject cannot be seen otherwise: every non-black
 * pixel on this page steals contrast from the one thing you are meant to look
 * at. So there are no shadows (a shadow implies a lit room), no gradients, no
 * glow, and no rounded-on-rounded cards. Numerals are monospace throughout,
 * because this is measurement. The step wedge, the instrument used to measure
 * exactly this since sensitometry was invented, is the only motif, and it
 * appears at three scales.
 *
 * ONE HARD RULE. No transform, opacity, filter, backdrop-filter or will-change
 * on an HDR <img> or on ANY of its ancestors. Safari 26.0 to 26.2 silently fell
 * back to SDR inside such containers. That is why nothing here fades, slides or
 * scales, and why hover states move borders and background rather than opacity.
 */

:root {
  --ground: #08090c;
  --ground-lift: #101218;
  --ground-sink: #050609;
  --bone: #f2ede2;
  --bone-dim: rgba(242, 237, 226, .62);
  --bone-faint: rgba(242, 237, 226, .34);
  --rule: rgba(242, 237, 226, .13);
  --rule-strong: rgba(242, 237, 226, .26);
  --orange: #ff6b35;
  --green: #4ade8a;
  --red: #ff5470;
  --range-limit: no-limit;

  color-scheme: dark;
  color: var(--bone);
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--ground); }

.arcade-body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--ground);
  color: var(--bone);
  font-size: 16px;
  line-height: 1.5;
}

button, input, a { font: inherit; }
button { color: inherit; }
/* Class-level display rules outrank the UA's [hidden], so restate it. */
[hidden] { display: none !important; }
button:not(:disabled), a, label[for] { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Every numeral in the arcade is monospace. This is an instrument. */
.figure {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border: 1px solid var(--rule-strong);
  background: var(--ground-lift);
  color: var(--bone);
  font-weight: 700;
  text-decoration: none;
  translate: 0 -180%;
}
.skip-link:focus { translate: 0 0; }

/* ------------------------------------------------------------------ wedge */

.wedge { display: inline-flex; gap: 2px; vertical-align: middle; }
.wedge i {
  width: 6px;
  height: 12px;
  background: color-mix(in srgb, var(--bone) calc(var(--step) * 100%), transparent);
}
.wedge--large { display: flex; margin-bottom: 22px; }
.wedge--large i { width: 16px; height: 30px; }

/* ----------------------------------------------------------------- header */

.arcade-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--rule);
  background: var(--ground);
}

.arcade-brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.arcade-brand-mark { width: 26px; height: 26px; color: var(--orange); }
.arcade-brand-mark svg { width: 100%; height: 100%; }
.arcade-brand-text { display: flex; align-items: baseline; gap: 8px; }
.arcade-brand-text strong { font-size: 17px; letter-spacing: -.02em; }
.arcade-brand-text span {
  color: var(--bone-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.arcade-brand:hover .arcade-brand-text span { color: var(--orange); }

.arcade-header-actions { display: flex; align-items: center; gap: 8px; }

.chrome-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: none;
  color: var(--bone-dim);
  font-size: 12px;
  font-weight: 700;
}
.chrome-toggle:hover { border-color: var(--rule-strong); color: var(--bone); }
.chrome-toggle-mark { width: 9px; height: 9px; border: 1px solid currentColor; }
.chrome-toggle[aria-pressed="true"] { border-color: var(--orange); color: var(--orange); }
.chrome-toggle[aria-pressed="true"] .chrome-toggle-mark { background: var(--orange); }

.chrome-link {
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--bone);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.chrome-link:hover { border-color: var(--orange); color: var(--orange); }

@media (max-width: 720px) {
  .chrome-toggle span:not(.chrome-toggle-mark) { display: none; }
  .chrome-toggle { padding: 7px 9px; }
}

/* -------------------------------------------------------------------- hub */

.arcade-main { padding: 0 clamp(16px, 4vw, 48px) 96px; }
.hub, .game-view { max-width: 1080px; margin: 0 auto; }

.hub-intro { padding: clamp(48px, 9vw, 104px) 0 clamp(32px, 5vw, 56px); max-width: 720px; }

.hub-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--bone-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hub-title {
  font-size: clamp(38px, 8vw, 76px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
}

.hub-lede {
  margin-top: 22px;
  max-width: 56ch;
  color: var(--bone-dim);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.6;
}
.hub-lede em { color: var(--bone); font-style: normal; font-weight: 700; }

.capability-panel {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  margin-top: 34px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--green);
  border-radius: 2px;
  background: var(--ground-lift);
  text-align: left;
}
.capability-panel.is-sdr { border-left-color: var(--orange); }
.capability-dot { width: 8px; height: 8px; margin-top: 6px; background: var(--green); flex: none; }
.capability-panel.is-sdr .capability-dot { background: var(--orange); }
.capability-copy { display: grid; gap: 5px; }
.capability-copy strong { font-size: 14px; }
.capability-copy small { color: var(--bone-dim); font-size: 13px; line-height: 1.5; }

/* ----------------------------------------------------------------- benches */

.hub-grid { border-top: 1px solid var(--rule); }

/* Until the notice is accepted the specimens are clamped, and say so. */
.hub-grid.is-clamped .bench-specimen { position: relative; }
.hub-grid.is-clamped .bench-specimen::after {
  content: "clamped until you accept the notice";
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  background: rgba(8, 9, 12, .82);
  color: var(--bone-faint);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
}

.bench {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  padding: 26px 4px;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
}
.bench:hover { background: var(--ground-lift); }
.bench:hover .bench-go { border-color: var(--orange); color: var(--orange); }
.bench:hover .bench-title { color: var(--orange); }

/* No transform or opacity anywhere in here: the specimen is a real HDR image. */
.bench-specimen { background: var(--ground-sink); border: 1px solid var(--rule); }
.specimen-image {
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 96;
  dynamic-range-limit: var(--range-limit);
}

.bench-copy { display: grid; gap: 7px; }
.bench-index { color: var(--bone-faint); font-size: 11px; letter-spacing: .18em; }
.bench-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.bench-blurb { max-width: 52ch; color: var(--bone-dim); font-size: 14px; line-height: 1.55; }
.bench-streak:not(:empty) {
  color: var(--orange);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
}

.bench-go {
  padding: 10px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .bench { grid-template-columns: 1fr; gap: 16px; padding: 22px 4px; }
  .bench-specimen { max-width: 320px; }
  .bench-go { justify-self: start; }
}

/* Not a bench: a tool. Marked out by its rule rather than by decoration. */
.sidebench {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--rule);
  border-left: 2px solid var(--orange);
  padding-left: 18px;
  color: inherit;
  text-decoration: none;
}
.sidebench:hover { background: var(--ground-lift); }
.sidebench:hover .sidebench-go { border-color: var(--orange); color: var(--orange); }
.sidebench-mark { display: flex; gap: 3px; align-items: flex-end; }
.sidebench-mark i { width: 7px; background: color-mix(in srgb, var(--bone) calc(var(--step) * 100%), transparent); }
.sidebench-mark i:nth-child(1) { height: 12px; }
.sidebench-mark i:nth-child(2) { height: 19px; }
.sidebench-mark i:nth-child(3) { height: 26px; }
.sidebench-mark i:nth-child(4) { height: 33px; }
.sidebench-copy { display: grid; gap: 6px; }
.sidebench-copy strong { font-size: 17px; letter-spacing: -.02em; }
.sidebench-copy small { max-width: 66ch; color: var(--bone-dim); font-size: 13px; line-height: 1.55; }
.sidebench-go {
  padding: 9px 15px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .sidebench { grid-template-columns: 1fr; }
  .sidebench-go { justify-self: start; }
}

/* ---------------------------------------------------------------- hub foot */

.hub-foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--rule);
}
.hub-foot-col h2 {
  margin-bottom: 10px;
  color: var(--bone-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hub-foot-col p { color: var(--bone-dim); font-size: 13px; line-height: 1.65; }

.fact-list { display: grid; gap: 7px; }
.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--rule);
  color: var(--bone-dim);
  font-size: 13px;
}
.fact-list .figure { color: var(--bone); }

/* ------------------------------------------------------------- game shell */

.game-view { padding: 28px 0 0; }

.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 26px;
  color: var(--bone-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}
.back-link:hover { color: var(--orange); }

.game-head {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.game-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  color: var(--bone-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.game-title { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -.04em; }
.game-blurb { max-width: 54ch; margin-top: 12px; color: var(--bone-dim); font-size: 15px; line-height: 1.55; }

.rung-legend { display: grid; gap: 4px; }
.rung-legend-item {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
}
.rung-number { color: var(--bone-faint); }
@media (max-width: 860px) { .game-head-side { display: none; } }

/* ---------------------------------------------------------------- keyhole */

.keyhole { max-width: 620px; padding: 8px 0 4px; }
.keyhole-eyebrow {
  color: var(--bone-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.keyhole-title { margin-top: 12px; font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.keyhole-blurb { margin-top: 12px; color: var(--bone-dim); font-size: 14px; line-height: 1.6; }

.keyhole-stage {
  display: grid;
  place-items: center;
  width: max-content;
  max-width: 100%;
  margin: 26px 0;
  padding: 20px;
  border: 1px solid var(--rule);
  background: var(--ground-sink);
}
.keyhole-plate {
  width: var(--keyhole-width, 320px);
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--keyhole-aspect, 2.6);
  dynamic-range-limit: var(--range-limit);
}

.keypad { display: flex; gap: 6px; flex-wrap: wrap; }
.keypad-key {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: none;
  color: var(--bone);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 16px;
}
.keypad-key:hover { border-color: var(--orange); color: var(--orange); }

.keyhole-feedback { min-height: 20px; margin-top: 14px; color: var(--bone-dim); font-size: 13px; }
.keyhole-feedback.is-wrong { color: var(--orange); }
.keyhole-out { margin-top: 6px; }

/* ------------------------------------------------------------- run framing */

.tier-badge {
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.tier-step { color: var(--bone-faint); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.tier-name { font-size: 19px; letter-spacing: -.02em; }
.tier-blurb { color: var(--bone-dim); font-size: 13px; }

.run-pips { display: flex; gap: 6px; margin-bottom: 18px; }
.run-pips i { width: 30px; height: 6px; border: 1px solid var(--rule-strong); }
.run-pips i.is-clear { background: var(--green); border-color: var(--green); }
.run-pips i.is-failed { background: var(--red); border-color: var(--red); }
.run-summary { margin-top: 30px; }

.shade-pips { display: inline-flex; gap: 3px; }
.shade-pips i { width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 50%; }
.shade-pips i.is-left { background: currentColor; }
.figure.is-shaded { color: var(--orange); }

.inline-link { color: var(--orange); }

/* ---------------------------------------------------------------- altimeter */

.pair-row { display: flex; gap: 22px; align-items: stretch; justify-content: center; }
.altimeter { display: flex; gap: 10px; align-items: stretch; }
.altimeter-scale {
  position: relative;
  width: 3px;
  min-height: 150px;
  background: var(--rule);
}
.altimeter-mark {
  position: absolute;
  right: -1px;
  bottom: var(--at);
  width: 9px;
  height: 1px;
  background: var(--rule-strong);
}
.altimeter-mark::after {
  content: attr(data-label);
  position: absolute;
  left: 13px;
  top: -7px;
  color: var(--bone-faint);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9px;
}
.altimeter-needle {
  position: absolute;
  left: -4px;
  bottom: var(--at, 0%);
  width: 11px;
  height: 3px;
  background: var(--orange);
}
.altimeter-ceiling {
  position: absolute;
  left: -7px;
  bottom: var(--at, 0%);
  width: 17px;
  height: 1px;
  background: var(--green);
}
.altimeter-readout { display: flex; flex-direction: column; justify-content: flex-end; padding-left: 24px; }
.altimeter-readout span { color: var(--bone-faint); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.altimeter-value { font-size: 15px; }

@media (max-width: 620px) { .pair-row { flex-direction: column; align-items: center; } .altimeter { display: none; } }

/* ------------------------------------------------------------ play surfaces */

.board-stage,
.plate-stage,
.pair-stage {
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 30px);
  border: 1px solid var(--rule);
  background: var(--ground-sink);
}

.board-stage { position: relative; width: max-content; max-width: 100%; margin: 0 auto; }
.board-image {
  width: var(--board-width, 720px);
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--board-aspect, 1.5);
  dynamic-range-limit: var(--range-limit);
}

.plate-image {
  width: var(--plate-width, 480px);
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--plate-aspect, 6.4);
  dynamic-range-limit: var(--range-limit);
}
.pair-image {
  width: var(--pair-width, 420px);
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--pair-aspect, 2.6);
  dynamic-range-limit: var(--range-limit);
}

/* Markers sit above the board and never touch it: the image stays photometric. */
.marker-layer { position: absolute; inset: clamp(14px, 3vw, 30px); pointer-events: none; }
.marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  pointer-events: auto;
}
.marker:hover { border-color: var(--rule-strong); }
.marker.is-marked { border: 2px solid var(--orange); }
.marker.is-revealed { border-style: solid; }
.marker.is-revealed.is-real { border: 2px dashed var(--green); }
.marker.is-hit { border: 2px solid var(--green); }
.marker.is-wrong { border: 2px solid var(--red); }
.marker:disabled { cursor: default; }

.board-bar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 18px;
}
.board-counter { color: var(--bone-dim); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.board-bar-actions { display: flex; gap: 10px; }

/* ---------------------------------------------------------------- controls */

.arcade-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: none;
  color: var(--bone);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.arcade-button:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.arcade-button:disabled { border-color: var(--rule); color: var(--bone-faint); cursor: not-allowed; }
.arcade-button--primary { border-color: var(--orange); background: var(--orange); color: #14100c; }
.arcade-button--primary:hover:not(:disabled) { background: #ff8154; border-color: #ff8154; color: #14100c; }
.arcade-button--ghost { border-color: var(--rule); color: var(--bone-dim); }

.squint-dot { width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 50%; }
.squint-button.is-active { border-color: var(--orange); color: var(--orange); }
.squint-button.is-active .squint-dot { background: var(--orange); }

.choice-row { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.choice-button { min-width: 150px; }
.choice-prompt { max-width: 52ch; margin: 18px auto 0; color: var(--bone-dim); font-size: 13px; text-align: center; }

.staircase-progress { height: 2px; margin-top: 26px; background: var(--rule); }
.staircase-fill { display: block; width: var(--progress, 0%); height: 100%; background: var(--orange); }

/* ------------------------------------------------------------ rung readouts */

.rung-readout {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.rung-position { display: flex; align-items: baseline; gap: 8px; }
.rung-label { color: var(--bone-faint); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.rung-position strong { font-size: 30px; letter-spacing: -.04em; }
.rung-of { color: var(--bone-faint); font-size: 13px; }

.rung-meters { display: flex; gap: 26px; flex-wrap: wrap; }
.rung-meters div { display: grid; gap: 2px; }
.rung-meters span { color: var(--bone-faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.rung-meters strong { font-size: 14px; }

.rung-track { display: flex; gap: 3px; }
.rung-track i { width: 10px; height: 22px; border: 1px solid var(--rule-strong); }
.rung-track i.is-read { background: var(--bone-faint); }
.rung-track i.is-current { border-color: var(--orange); background: var(--orange); }

.rung-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.rung-input {
  min-height: 44px;
  width: 260px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--ground-sink);
  color: var(--bone);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rung-input--wide { width: min(460px, 100%); }
.rung-input::placeholder { color: var(--bone-faint); letter-spacing: .04em; text-transform: none; }
.rung-feedback { min-height: 22px; margin-top: 12px; color: var(--bone-dim); font-size: 13px; text-align: center; }
.rung-feedback.is-wrong { color: var(--red); }

/* ----------------------------------------------------------------- results */

.result-panel { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--rule); }
.result-head { display: flex; gap: 32px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.result-score { display: grid; gap: 4px; }
.result-score strong { font-size: clamp(34px, 6vw, 54px); line-height: 1; letter-spacing: -.04em; }
.result-score .figure--soft { font-size: clamp(18px, 3vw, 26px); color: var(--bone-dim); }
.result-score span { color: var(--bone-dim); font-size: 13px; }

.result-stats { display: flex; gap: 26px; }
.result-stats div { display: grid; gap: 3px; }
.result-stats dt { color: var(--bone-faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.result-stats dd { font-size: 18px; }

.result-subhead {
  margin-bottom: 14px;
  color: var(--bone-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.result-note { max-width: 62ch; margin-top: 20px; color: var(--bone-dim); font-size: 14px; line-height: 1.6; }
.result-clean { max-width: 62ch; margin-top: 24px; color: var(--green); font-size: 14px; }
.result-fineprint { max-width: 62ch; margin-top: 14px; color: var(--bone-faint); font-size: 12px; line-height: 1.6; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

.forgery-list { margin-top: 30px; }
.forgery-card { padding: 16px 0; border-top: 1px solid var(--rule); }
.forgery-card strong { display: block; margin-bottom: 6px; font-size: 15px; }
.forgery-card p { max-width: 68ch; color: var(--bone-dim); font-size: 13px; line-height: 1.6; }
.forgery-tell { margin-top: 6px; color: var(--orange); }

.revealed-message { margin-top: 30px; }
.revealed-words { display: flex; gap: 8px; flex-wrap: wrap; }
.revealed-word {
  padding: 6px 10px;
  border: 1px solid var(--rule);
  color: var(--bone-faint);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  letter-spacing: .1em;
}
.revealed-word.is-read { border-color: var(--rule-strong); color: var(--bone); }

.advice-card { margin-top: 30px; padding: 20px; border: 1px solid var(--rule); border-left: 2px solid var(--orange); }
.advice-card p { max-width: 66ch; margin: 0 0 18px; color: var(--bone-dim); font-size: 14px; line-height: 1.6; }

/* ------------------------------------------------------------- overwhite */

.consent-gate {
  max-width: 640px;
  margin-bottom: 44px;
  padding: 24px;
  border: 1px solid var(--rule-strong);
  border-left: 2px solid var(--orange);
  background: var(--ground-lift);
}
.consent-gate h2 { margin-bottom: 12px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.consent-gate > p { max-width: 62ch; color: var(--bone-dim); font-size: 14px; line-height: 1.6; }
.consent-body { display: grid; gap: 10px; margin: 20px 0; }
.consent-body p { max-width: 66ch; color: var(--bone-dim); font-size: 13px; line-height: 1.6; }
.consent-body strong { color: var(--bone); }

.composer {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  padding-bottom: 20px;
}
@media (max-width: 820px) { .composer { grid-template-columns: 1fr; } }

.composer-controls { display: grid; gap: 24px; }
.composer-field { display: grid; gap: 8px; }
.composer-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: var(--bone-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.composer-label em { font-style: normal; letter-spacing: 0; text-transform: none; }
.composer-label em.is-full { color: var(--orange); }
.composer-field small { color: var(--bone-faint); font-size: 12px; line-height: 1.55; }

.composer-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--ground-sink);
  color: var(--bone);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  letter-spacing: .08em;
  line-height: 1.5;
  resize: vertical;
}

.composer-field input[type="range"] {
  width: 100%;
  accent-color: var(--orange);
}

.download-button { flex-direction: column; gap: 2px; min-height: 58px; align-items: center; }
.download-button small { font-size: 11px; font-weight: 600; opacity: .78; }
.download-button[aria-disabled="true"] { border-color: var(--rule); background: none; color: var(--bone-faint); pointer-events: none; }

.composer-preview { display: grid; gap: 16px; justify-items: center; }
.composer-preview .plate-stage { width: 100%; }
.composer-preview .plate-image { width: var(--plate-width, 480px); aspect-ratio: var(--plate-aspect, 4); }
.plate-stage.is-clamped { border-style: dashed; }
.plate-status { max-width: 56ch; min-height: 34px; color: var(--bone-dim); font-size: 12px; line-height: 1.55; text-align: center; }

.disclosure-body { display: grid; gap: 10px; }
.disclosure-body p { color: var(--bone-dim); font-size: 13px; line-height: 1.65; }

/* ------------------------------------------------------------- method note */

.method-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); }
.method-note summary {
  color: var(--bone-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}
.method-note summary::marker { color: var(--bone-faint); }
.method-body { display: grid; gap: 12px; margin-top: 16px; }
.method-body p { max-width: 70ch; color: var(--bone-dim); font-size: 13px; line-height: 1.65; }
.method-warning { color: var(--orange); }

/* ----------------------------------------------------------------- dialogs */

.safety-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: clamp(26px, 5vw, 40px);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--ground-lift);
  color: var(--bone);
}
.safety-dialog::backdrop { background: rgba(3, 4, 6, .88); }
.safety-dialog h2 { margin-bottom: 14px; font-size: clamp(22px, 4vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.safety-dialog > p { max-width: 58ch; color: var(--bone-dim); font-size: 14px; line-height: 1.6; }

.safety-facts { display: grid; gap: 12px; margin: 24px 0; }
.safety-facts p { display: grid; gap: 3px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.safety-facts strong { font-size: 13px; }
.safety-facts span { color: var(--bone-dim); font-size: 13px; line-height: 1.55; }

.safety-note { color: var(--bone-faint) !important; font-size: 12px !important; line-height: 1.65 !important; }
.safety-dialog .arcade-button { width: 100%; margin-top: 24px; }

/* ------------------------------------------------------------------- toast */

.arcade-toast {
  position: fixed;
  z-index: 60;
  right: 16px;
  bottom: 16px;
  display: none;
  gap: 12px;
  align-items: flex-start;
  width: min(380px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid var(--rule-strong);
  border-left: 2px solid var(--orange);
  background: var(--ground-lift);
}
.arcade-toast.is-visible { display: flex; }
.toast-wedge { width: 8px; height: 8px; margin-top: 5px; background: var(--orange); flex: none; }
.arcade-toast-copy { display: grid; gap: 4px; flex: 1; }
.arcade-toast-copy strong { font-size: 13px; }
.arcade-toast-copy small { color: var(--bone-dim); font-size: 12px; line-height: 1.5; }
.arcade-toast button { padding: 0 4px; border: 0; background: none; color: var(--bone-faint); font-size: 18px; line-height: 1; }
.arcade-toast button:hover { color: var(--bone); }
