:root {
  --paper: #f5f1e8;
  --ink: #17150f;
  --signal: #d8432b;
  --line: rgba(23, 21, 15, .18);
  --subtle: rgba(23, 21, 15, .54);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", Georgia, serif;
  --sans: "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", sans-serif;
  font-synthesis: none;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); height: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); min-width: 320px; min-height: 100%; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible, #arena:focus-visible { outline: 2px solid var(--signal); outline-offset: 5px; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--signal); color: var(--paper); }
.app { min-height: 100dvh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.masthead { flex: none; height: 89px; width: min(100%, 1530px); margin: 0 auto; padding: 0 clamp(20px, 3.5vw, 58px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 15px; user-select: none; }
.brand-symbol { width: 24px; height: 24px; border: 1.5px solid var(--ink); transform: rotate(45deg); display: grid; place-items: center; position: relative; }
.brand-symbol span { position: absolute; width: 9px; height: 9px; border: 1.4px solid var(--signal); border-radius: 50%; }
.brand-symbol span:nth-child(2) { width: 3px; height: 3px; background: var(--ink); border: none; left: 4px; top: 4px; }
.brand-word { font-size: 20px; font-weight: 780; letter-spacing: -.09em; white-space: nowrap; }
.brand-slash { display: inline-block; color: var(--signal); font-weight: 350; margin: 0 3px; }
.masthead-right { display: flex; align-items: center; gap: clamp(15px, 2.2vw, 37px); }
.edition { font-size: 9px; font-weight: 600; letter-spacing: .19em; color: var(--subtle); white-space: nowrap; }
.edition b { color: var(--ink); padding-left: 9px; letter-spacing: .02em; font-size: 10px; }
.utility { display: flex; gap: 4px; }
.tool-button { display: flex; align-items: center; gap: 8px; min-height: 42px; border: 1px solid transparent; background: transparent; color: var(--ink); padding: 8px 9px; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.tool-button:hover { border-color: var(--line); background: rgba(23, 21, 15, .035); }
.tool-button:active { transform: translateY(1px); }
.tool-button svg { width: 18px; height: 18px; }
.tool-button span { font-size: 9px; letter-spacing: .12em; font-weight: 700; white-space: nowrap; }
.layout { flex: 1; min-height: 0; width: min(100%, 1530px); margin: 0 auto; padding: clamp(12px, 2.2vw, 34px) clamp(20px, 3.5vw, 58px); display: grid; grid-template-columns: minmax(225px, .89fr) minmax(310px, 1.45fr) minmax(210px, .82fr); gap: clamp(20px, 2.7vw, 47px); align-items: stretch; }
.headline { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-bottom: 3vh; }
.eyebrow { font-size: 9px; font-weight: 700; letter-spacing: .22em; color: var(--signal); display: flex; align-items: center; white-space: nowrap; gap: 9px; }
.eyebrow-line { display: block; width: 18px; height: 1px; background: var(--signal); }
.headline h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 83px); letter-spacing: -.075em; line-height: .97; margin: 36px 0 27px; }
.headline h1 em { font-weight: 400; font-style: italic; }
.period { color: var(--signal); font-style: normal; margin-left: 2px; }
.deck { margin: 0 0 16px; font-size: clamp(12px, 1vw, 16px); font-weight: 700; letter-spacing: .035em; line-height: 1.8; }
.subdeck { margin: 0; font-size: 12px; line-height: 2.25; color: var(--subtle); letter-spacing: .035em; }
.fineprint { margin-top: clamp(40px, 9vh, 132px); display: flex; flex-direction: column; gap: 12px; font-size: 9px; letter-spacing: .15em; font-weight: 700; color: var(--subtle); }
.fineprint span:first-child { color: var(--ink); }
.playarea { min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; position: relative; }
.playarea-top, .playarea-bottom { width: min(100%, 670px); flex: none; min-height: 33px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.playarea-top { border-top: 1px solid var(--line); }
.playarea-bottom { border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.dial-coordinate, .dial-reference, .bottom-key, .bottom-legend { font-size: 9px; font-weight: 700; letter-spacing: .16em; white-space: nowrap; }
.dial-coordinate { display: flex; align-items: center; gap: 9px; }
.signal-dot { width: 5px; height: 5px; background: var(--signal); border-radius: 50%; box-shadow: 0 0 0 4px rgba(216, 67, 43, .10); }
.dial-reference { color: var(--subtle); }
.small-divider { display: inline-block; height: 9px; width: 1px; background: var(--line); margin: 0 10px; vertical-align: middle; }
.dial-shell { position: relative; width: min(100%, calc(100dvh - 235px), 670px); max-height: min(calc(100dvh - 235px), 670px); aspect-ratio: 1; flex: none; isolation: isolate; overflow: visible; }
#arena { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; -webkit-user-select: none; user-select: none; outline: none; }
.outer-notation { position: absolute; top: 50%; color: rgba(23, 21, 15, .35); font-size: 8px; font-weight: 700; letter-spacing: .22em; user-select: none; pointer-events: none; writing-mode: vertical-rl; }
.outer-notation-left { left: -10px; transform: translate(-100%, -50%) rotate(180deg); }
.outer-notation-right { right: -10px; transform: translate(100%, -50%); }
.dial-center { position: absolute; z-index: -1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 42%; height: 42%; display: flex; flex-direction: column; justify-content: center; align-items: center; pointer-events: none; text-align: center; }
.center-kicker { font-size: clamp(8px, .8vw, 10px); font-weight: 700; letter-spacing: .21em; color: var(--subtle); }
.center-level { font-family: var(--serif); font-size: clamp(67px, 8vw, 132px); letter-spacing: -.09em; font-weight: 400; line-height: 1; margin: 9px 0 3px; font-variant-numeric: lining-nums tabular-nums; }
.center-caption { font-size: clamp(7px, .7vw, 9px); font-weight: 700; letter-spacing: .2em; color: var(--signal); }
.hit-label { position: absolute; left: 50%; top: 76%; transform: translate(-50%, -10px) scale(.85); pointer-events: none; color: var(--signal); font-family: var(--serif); font-size: clamp(23px, 2.7vw, 40px); font-style: italic; letter-spacing: -.045em; opacity: 0; text-align: center; z-index: 2; white-space: nowrap; }
.hit-label.show { animation: hitReveal .8s cubic-bezier(.18,1,.28,1) both; }
.hit-label.good { color: var(--ink); }
.hit-label.miss { color: var(--signal); }
@keyframes hitReveal { 0% { opacity: 0; transform: translate(-50%, 9px) scale(.8); } 16% { opacity: 1; transform: translate(-50%, -7px) scale(1.08); } 48% { opacity: 1; transform: translate(-50%, -12px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -25px) scale(.98); } }
.tap-indicator { pointer-events: none; position: absolute; left: 50%; bottom: 11%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 800; letter-spacing: .22em; color: var(--subtle); white-space: nowrap; opacity: .8; }
.tap-indicator-dot { width: 17px; height: 17px; border: 1px solid var(--ink); border-radius: 50%; position: relative; }
.tap-indicator-dot::before { content: ""; position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--signal); top: 6px; left: 6px; }
.state-layer { position: absolute; inset: 10%; z-index: 6; border-radius: 50%; border: 1px solid rgba(23, 21, 15, .13); background: rgba(245, 241, 232, .96); backdrop-filter: blur(9px); box-shadow: 0 0 0 13px rgba(245, 241, 232, .8), 0 0 45px rgba(23, 21, 15, .045); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 15px; }
.state-kicker { color: var(--signal); font-size: clamp(7px, .8vw, 10px); font-weight: 700; letter-spacing: .21em; }
.state-heading { font-family: var(--serif); font-size: clamp(40px, 5.5vw, 80px); letter-spacing: -.065em; margin: 16px 0 10px; }
.state-heading span { color: var(--signal); }
.state-layer p { font-size: 11px; color: var(--subtle); margin: 0 0 19px; }
.state-action { appearance: none; background: var(--ink); border: 1px solid var(--ink); color: var(--paper); min-height: 46px; padding: 0 17px; display: inline-flex; justify-content: center; align-items: center; gap: 30px; font-size: 10px; font-weight: 700; letter-spacing: .18em; transition: background .16s ease, color .16s ease, transform .16s ease; }
.state-action:hover { background: var(--signal); border-color: var(--signal); }
.state-action:active { transform: scale(.97); }
.state-action span { font-size: 17px; }
.end-score-label { font-weight: 700; font-size: 9px !important; letter-spacing: .2em; margin: 2px 0 0 !important; }
.end-score { font-family: var(--serif); font-size: clamp(37px, 4vw, 64px); font-variant-numeric: tabular-nums; letter-spacing: -.035em; line-height: 1.08; }
.end-best { margin: 2px 0 15px; color: var(--signal); font-size: 10px; letter-spacing: .13em; font-weight: 800; }
.state-hint { margin-top: 10px; font-size: 8px; color: var(--subtle); letter-spacing: .12em; }
.bottom-legend { display: flex; align-items: center; letter-spacing: .08em; font-weight: 600; }
.legend-mark { width: 15px; height: 7px; border-top: 3px solid var(--signal); display: inline-block; transform: rotate(-18deg); flex: none; }
.legend-title { font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.legend-copy { font-size: 10px; font-weight: 450; color: var(--subtle); letter-spacing: 0; }
.bottom-key { color: var(--subtle); }
.scoreboard { border-left: 1px solid var(--line); padding: 21px 0 0 clamp(16px, 2.3vw, 36px); display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; }
.score-label, .metric-label { font-size: 9px; font-weight: 800; letter-spacing: .17em; color: var(--subtle); line-height: 1.3; }
.score-label { display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.score-label span { color: var(--signal); font-size: 19px; font-weight: 400; }
.numeric { font-variant-numeric: tabular-nums lining-nums; }
.score-value { font-family: var(--serif); font-size: clamp(38px, 4.1vw, 72px); font-weight: 400; letter-spacing: -.055em; line-height: 1.18; margin: 12px 0 14px; white-space: nowrap; }
.score-rule { height: 2px; width: 100%; background: var(--line); }
.score-rule > div { height: 100%; width: 0; background: var(--signal); transition: width .25s cubic-bezier(.22,1,.36,1); }
.score-pair { display: grid; grid-template-columns: 1fr; gap: 29px; margin: 39px 0; }
.metric { display: flex; flex-direction: column; gap: 9px; }
.metric-value { font-family: var(--serif); font-size: clamp(27px, 2vw, 37px); line-height: 1; letter-spacing: -.045em; }
.combo-value { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--serif); font-size: clamp(39px, 3.1vw, 58px); letter-spacing: -.06em; line-height: 1; transform-origin: left center; }
.combo-value small { color: var(--signal); font: 700 14px var(--sans); }
.combo-value.pop { animation: comboPop .34s cubic-bezier(.2,1.5,.24,1); }
@keyframes comboPop { 0% { transform: scale(.75); } 56% { transform: scale(1.22); } 100% { transform: scale(1); } }
.lives-section { margin: 5px 0 28px; }
.lives-section .metric-label { display: flex; justify-content: space-between; gap: 12px; }
.lives { display: flex; gap: 7px; width: 100%; margin-top: 14px; }
.lives span { display: block; flex: 1; height: 5px; background: var(--signal); transition: background .16s, opacity .16s; }
.lives span.lost { background: var(--line); }
.verdict { margin-top: auto; padding: 20px 0; border-top: 1px solid var(--line); display: flex; align-items: flex-start; gap: 14px; min-height: 85px; }
.verdict-index { font-family: var(--serif); color: var(--signal); font-size: 27px; line-height: 1; }
.verdict div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.verdict strong { font-size: 11px; font-weight: 800; letter-spacing: .055em; line-height: 1.25; }
.verdict div span { font-size: 9px; letter-spacing: .05em; color: var(--subtle); line-height: 1.5; }
.scoreboard-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; min-height: 33px; gap: 12px; color: var(--subtle); font-size: 9px; letter-spacing: .12em; font-weight: 700; white-space: nowrap; }
.crosshair { font-size: 19px; color: var(--signal); }
.footer { flex: none; width: min(100%, 1530px); margin: 0 auto; min-height: 51px; padding: 0 clamp(20px, 3.5vw, 58px); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); gap: 12px; }
.footer-left, .footer-right { display: flex; gap: 10px; align-items: center; font-size: 8px; font-weight: 700; letter-spacing: .18em; white-space: nowrap; color: var(--subtle); }
.footer-accent { width: 17px; height: 2px; background: var(--signal); }
.footer-divider { width: 1px; height: 11px; background: var(--line); }
.footer-right { letter-spacing: .12em; }

@media (min-width: 901px) and (max-height: 700px) {
  .masthead { height: 66px; } .layout { padding-top: 8px; padding-bottom: 8px; }
  .dial-shell { width: min(100%, calc(100dvh - 155px)); max-height: calc(100dvh - 155px); }
  .score-pair { gap: 16px; margin: 21px 0; } .footer { min-height: 34px; }
  .headline h1 { margin: 24px 0 16px; } .fineprint { margin-top: 30px; }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .layout { grid-template-columns: minmax(160px,.75fr) minmax(300px,1.45fr) minmax(190px,.75fr); gap: 18px; }
  .outer-notation { display: none; } .headline h1 { font-size: clamp(40px, 4vw, 65px); }
  .score-value { font-size: 43px; }
}
@media (max-width: 900px) {
  .masthead { height: 64px; padding: 0 20px; }
  .brand { gap: 11px; } .brand-symbol { width: 19px; height: 19px; }
  .brand-word { font-size: 18px; } .edition { display: none; }
  .tool-button { min-height: 41px; padding: 6px 9px; } .tool-button span { display: none; }
  .layout { padding: 5px 16px 7px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 4px; }
  .headline { display: none; }
  .scoreboard { order: -1; width: min(100%, 530px); border-left: 0; padding: 8px 0 2px; display: grid; grid-template-columns: 1.15fr 1fr auto; align-items: end; gap: 10px; }
  .score-main { min-width: 0; }
  .score-label { font-size: 8px; } .score-label span { display: none; }
  .score-value { font-size: clamp(31px, 6vw, 47px); margin: 1px 0 6px; }
  .score-pair { margin: 0; display: flex; gap: 14px; }
  .metric { gap: 6px; } .metric-label { font-size: 8px; letter-spacing: .09em; }
  .metric-value { font-size: 21px; } .combo-value { font-size: 31px; } .combo-value small { font-size: 10px; }
  .lives-section { align-self: center; min-width: 51px; margin: 0 0 9px; }
  .lives-section .metric-label { display: none; } .lives { gap: 4px; margin-top: 10px; } .lives span { height: 5px; }
  .verdict,.scoreboard-footer { display: none; }
  .playarea { flex: 1; justify-content: center; width: min(100%, 530px); }
  .dial-shell { width: min(100%, calc(100dvh - 235px), 530px); max-height: min(calc(100dvh - 235px), 530px); }
  .outer-notation { display: none; }
  .playarea-top,.playarea-bottom { min-height: 27px; }
  .center-level { font-size: clamp(70px, 15vw, 112px); }
  .center-kicker { font-size: 8px; } .center-caption { font-size: 7px; }
  .footer { min-height: 32px; padding: 0 20px; } .footer-left,.footer-right { font-size: 7px; }
  .footer-note,.footer-right span:first-child,.footer-divider { display: none; }
}
@media (max-width: 460px) {
  .masthead { padding: 0 16px; }
  .layout { padding-inline: 13px; }
  .scoreboard { grid-template-columns: minmax(0,1.12fr) minmax(0,.95fr) minmax(37px,.2fr); gap: 8px; }
  .score-pair { gap: 9px; }
  .score-label,.metric-label { font-size: 7px; letter-spacing: .045em; }
  .score-value { font-size: clamp(27px, 7.5vw, 35px); }
  .metric-value { font-size: clamp(17px, 4.6vw, 22px); }
  .combo-value { font-size: clamp(24px, 6vw, 32px); }
  .dial-shell { width: min(100%, calc(100dvh - 214px)); max-height: calc(100dvh - 214px); }
  .dial-reference,.dial-coordinate,.bottom-key,.legend-title { font-size: 7px; letter-spacing: .09em; }
  .legend-copy { font-size: 8px; }
  .bottom-legend { gap: 5px; } .legend-mark { width: 12px; }
  .tap-indicator { bottom: 9%; font-size: 8px; }
  .state-heading { font-size: clamp(37px, 10vw, 55px); margin: 11px 0 8px; }
  .state-layer p { font-size: 9px; margin-bottom: 10px; }
  .state-action { min-height: 38px; padding: 0 14px; font-size: 9px; }
  .end-score { font-size: 40px; } .end-best { margin-bottom: 9px; }
  .state-hint { font-size: 7px; margin-top: 7px; }
}
@media (max-height: 640px) and (max-width: 900px) {
  .masthead { height: 48px; } .layout { padding-top: 0; padding-bottom: 1px; }
  .dial-shell { width: min(100%, calc(100dvh - 163px)); max-height: calc(100dvh - 163px); }
  .playarea-top,.playarea-bottom { min-height: 21px; }
  .footer { min-height: 24px; } .scoreboard { padding-top: 3px; }
  .state-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
