@font-face {
  font-family: Vazir;
  src: url('../vazirmatn.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
}
:root {
  color-scheme: dark;
  --bg: #0b171b;
  --ink: #f1efe3;
  --muted: #a5b8b3;
  --line: #2d4549;
  --mint: #a8ecd4;
  --gold: #e9ba69;
  --accent: #a8ecd4;
  --mono: Consolas, Vazir, monospace;
  font-family: Vazir, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 47% 40%, #203c3c88, transparent 64%),
    linear-gradient(110deg, #101f23, #081418);
}
body[data-chapter='1'] {
  --accent: #f0cb83;
}
body[data-chapter='2'] {
  --accent: #c4b5ef;
}
body[data-chapter='3'] {
  --accent: #f0ad94;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 0;
  transition:
    background 0.16s,
    border-color 0.16s,
    transform 0.16s;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
p {
  margin: 0;
}
.app {
  max-width: 1340px;
  margin: auto;
  padding: 0 38px;
}
.topbar {
  height: 74px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  direction: ltr;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  font: 20px var(--mono);
  letter-spacing: 3px;
}
.wordmark small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 5px;
}
.brand-symbol {
  width: 35px;
  height: 40px;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  font-size: 22px;
  border-radius: 10px 2px 10px 2px;
  color: var(--accent);
}
.edition {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 10px #a8ecd466;
}
.tools {
  display: flex;
  gap: 7px;
}
.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #152a2d60;
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #294043;
  border-color: var(--accent);
}
.icon-button[aria-pressed='true'] {
  color: var(--gold);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(160px, 210px) minmax(0, 1fr);
  gap: clamp(25px, 4vw, 62px);
  align-items: center;
  min-height: calc(100dvh - 112px);
  padding: 18px 0 20px;
  direction: ltr;
}
.workspace > * {
  direction: rtl;
}
html[dir='ltr'] .workspace > * {
  direction: ltr;
}
.intro {
  width: 100%;
  align-self: center;
}
.eyebrow {
  font:
    10px var(--mono),
    Vazir;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--muted);
}
html[dir='rtl'] .eyebrow {
  letter-spacing: 0.2px;
}
.intro > .eyebrow {
  direction: ltr;
  text-align: start;
  font-size: 8px;
  letter-spacing: 1.1px;
}
.intro h1 {
  font-size: 48px;
  line-height: 1.45;
  font-weight: 450;
  margin: 8px 0 4px;
  color: var(--accent);
}
html[dir='ltr'] .intro h1 {
  font-size: 37px;
}
.chapter-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 100%;
  font-size: 11px;
  color: var(--accent);
  border-inline-start: 2px solid var(--accent);
  padding-inline-start: 10px;
}
.route-art {
  position: relative;
  margin: 14px 0 26px;
  border-block: 1px solid #38535266;
  padding: 12px 0 20px;
}
.route-art svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  overflow: visible;
}
.route-grid {
  stroke: #61827d18;
  stroke-width: 0.7;
}
.route-ghost {
  stroke: #719a8a25;
  stroke-width: 9;
}
.route-beam {
  stroke: url(#route-glow);
  stroke-width: 1;
  stroke-dasharray: 5 6;
}
.route-node {
  stroke: #59766f;
  fill: #11282d;
}
.route-node circle + circle {
  fill: var(--accent);
  stroke: none;
}
.route-node path {
  stroke: var(--accent);
}
.route-node.node-0,
body[data-chapter='1'] .node-1,
body[data-chapter='2'] .node-2,
body[data-chapter='3'] .node-3 {
  stroke: var(--accent);
}
.route-art text {
  font: 8px var(--mono);
  fill: #9db6ad;
  stroke: none;
  letter-spacing: 2px;
}
.route-coordinate {
  position: absolute;
  bottom: 8px;
  left: 0;
  font: 7px var(--mono);
  letter-spacing: 1.5px;
  color: #7d9992;
}
.chapter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.chapter strong {
  font: 24px var(--mono);
  color: var(--ink);
  direction: ltr;
}
.chapter em {
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}
.intro h2 {
  font-size: 20px;
  margin: 9px 0;
}
.muted {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}
.level-dots {
  display: flex;
  gap: 4px;
  margin-top: 19px;
  direction: ltr;
}
.level-dots span {
  height: 4px;
  flex: 1;
  background: #354647;
}
.level-dots span:nth-child(4n) {
  margin-inline-end: 5px;
}
.level-dots span:last-child {
  margin-inline-end: 0;
}
.level-dots span.done {
  background: var(--gold);
}
.level-dots span.current {
  background: var(--accent);
  box-shadow: 0 0 10px #a8ecd440;
}
.chapter-progress {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
  min-height: 18px;
}
.text-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
}
.text-button:hover {
  color: var(--ink);
}
.save-note {
  font-size: 9px;
  color: #91a5a0;
  margin-top: 4px;
  line-height: 1.8;
}
.game-column {
  --board-width: min(480px, calc((100dvh - 216px) * 2/3));
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, var(--board-width)) minmax(185px, 225px);
  grid-template-rows: 44px 22px auto 1fr;
  column-gap: 30px;
  align-items: start;
  justify-content: center;
  direction: ltr;
}
.game-column > * {
  direction: rtl;
}
html[dir='ltr'] .game-column > * {
  direction: ltr;
}
.board-header {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 10px;
}
.board-header > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.board-header .eyebrow {
  font-size: 9px;
  flex-shrink: 0;
}
.board-header strong {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chapter-chip {
  background: #203537;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: 11px var(--mono);
  padding: 7px 11px;
  min-height: 44px;
  flex-shrink: 0;
  direction: ltr;
}
.chapter-chip:hover {
  border-color: var(--accent);
}
.board-context {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  width: 100%;
  min-width: 0;
  height: 22px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
#board-caption {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 20px;
}
#event-banner {
  position: absolute;
  inset: 0;
  z-index: 3;
  color: var(--gold);
  background: #132b2e;
  line-height: 20px;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#event-banner:empty,
#event-banner[hidden] {
  display: none;
}
canvas[data-aiming='true'] {
  cursor: crosshair;
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.arena-wrap {
  grid-column: 1;
  grid-row: 3/5;
  position: relative;
  aspect-ratio: 2/3;
  width: 100%;
  min-width: 0;
  background: #0b191c;
  border: 1px solid #6a958b88;
  border-radius: 17px;
  padding: 0;
  box-shadow:
    0 25px 70px #0007,
    0 0 0 5px #0e1d20,
    0 0 0 6px #5c837226;
  overflow: hidden;
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  border-radius: 17px;
}
.mirror-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mirror-hit {
  position: absolute;
  background: transparent;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  touch-action: none;
}
.mirror-hit:hover:not(:disabled) {
  background: #a8ecd415;
}
.mirror-hit:active:not(:disabled) {
  transform: translate(-50%, -50%);
}
.mirror-hit:disabled {
  pointer-events: none;
}
#load-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #102225;
  font-size: 13px;
  text-align: center;
  padding: 24px;
}
#load-status[hidden] {
  display: none;
}
.control-deck {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  align-self: start;
  border-top: 2px solid var(--accent);
  padding-top: 14px;
}
.console-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.console-code {
  margin-inline-start: auto;
  font: 8px var(--mono);
  letter-spacing: 1px;
  color: var(--accent);
}
.score-readout {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 19px;
  border-bottom: 1px solid var(--line);
}
.score-readout > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.score-readout span {
  color: var(--muted);
  font-size: 10px;
}
.score-readout strong {
  font: 30px var(--mono);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  color: var(--ink);
  min-width: 6ch;
}
.score-readout .combo-readout {
  align-items: flex-end;
}
.combo-readout strong {
  min-width: 3ch;
  text-align: end;
  color: var(--gold);
  font-size: 25px;
}
.telemetry {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
  font-size: 10px;
  color: var(--muted);
}
.energy,
.attempts {
  display: flex;
  align-items: center;
  gap: 6px;
}
.energy i {
  font-size: 21px;
  line-height: 1;
  color: var(--gold);
  font-style: normal;
}
.telemetry b {
  color: var(--ink);
  font: 11px var(--mono);
  direction: ltr;
  white-space: nowrap;
}
.attempts b {
  color: var(--accent);
  letter-spacing: 2px;
}
.aim-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 8px;
  margin-top: 22px;
  font-size: 10px;
  color: var(--muted);
}
.aim-control label {
  white-space: nowrap;
  flex: 1;
}
.aim-control input {
  min-width: 0;
  flex-basis: 100%;
  order: 2;
  accent-color: var(--accent);
  height: 30px;
  margin: 0;
  direction: ltr;
  cursor: ew-resize;
}
.aim-control output {
  width: 36px;
  text-align: center;
  font: 12px var(--mono);
  direction: ltr;
  color: var(--accent);
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 9px;
}
.primary {
  width: 100%;
  background: var(--accent);
  color: #142b26;
  border: 1px solid #d9eee580;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow:
    inset 0 1px #ffffff30,
    0 3px 15px #0002;
}
.primary:hover {
  filter: brightness(1.1);
}
.primary svg {
  width: 18px;
}
.focus-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  margin-top: 9px;
  border: 1px solid #77928a55;
  border-radius: 8px;
  padding: 7px 11px;
  background: #1a3235;
  color: var(--accent);
  font-size: 11px;
}
.focus-button:hover {
  border-color: var(--accent);
  background: #254145;
}
.focus-button[aria-pressed='true'] {
  background: #34443a;
  border-color: var(--gold);
  color: var(--gold);
}
.focus-button svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.focus-track {
  display: block;
  flex: 1;
  max-width: 70px;
  margin-inline-start: auto;
  height: 3px;
  background: #5e7d7440;
  overflow: hidden;
  direction: ltr;
}
.focus-track > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transition: width 0.2s linear;
  transform-origin: left;
}
kbd {
  font: 9px var(--mono);
  border: 1px solid var(--line);
  border-radius: 3px;
  min-width: 18px;
  padding: 2px 3px;
  color: var(--muted);
  text-align: center;
}
.status {
  min-height: 38px;
  width: 100%;
  text-align: start;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
  margin-top: 12px;
}
.field-notes {
  grid-column: 2;
  grid-row: 4;
  align-self: end;
  min-width: 0;
  padding-top: 16px;
}
.field-notes > .eyebrow {
  font-size: 8px;
  letter-spacing: 1.4px;
}
.note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 8px 0;
  border-bottom: 1px solid #30434688;
}
.note p {
  font-size: 10px;
  line-height: 1.9;
  color: var(--muted);
}
.note-icon {
  font: 23px var(--mono);
  width: 20px;
  flex-shrink: 0;
  line-height: 1.2;
}
.diamond {
  color: var(--gold);
}
.mirror-icon {
  color: var(--accent);
}
.paddle-icon {
  color: #ebe4d0;
}
.best-record {
  margin-top: 16px;
  font-size: 10px;
  color: var(--muted);
}
.best-record strong {
  display: block;
  font: 27px var(--mono);
  margin: 9px 0;
  color: var(--gold);
  direction: ltr;
}
.best-record small {
  font-size: 12px;
  color: var(--muted);
}
.progress-track {
  height: 3px;
  background: var(--line);
  direction: ltr;
}
.progress-track span {
  height: 3px;
  display: block;
  background: var(--gold);
  width: 0;
  transition: width 0.4s;
}
.signature {
  font: 7px var(--mono);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 7px;
  direction: ltr;
  color: #92aaa3;
  margin-top: 14px;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  height: 38px;
  align-items: center;
  font: 7px var(--mono);
  letter-spacing: 1.5px;
  color: #819d95;
  direction: ltr;
}
dialog {
  background: linear-gradient(150deg, #193337, #102226);
  color: var(--ink);
  border: 1px solid #7baca080;
  border-radius: 18px;
  padding: 0;
  width: min(580px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  box-shadow: 0 30px 120px #000b;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #061013cf;
  backdrop-filter: blur(9px);
}
.modal-inner {
  padding: 30px;
}
.modal-inner h2 {
  font-size: 27px;
  margin: 14px 0 10px;
  font-weight: 500;
  line-height: 1.5;
}
.modal-inner > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 20px;
}
.modal-inner .text-button {
  justify-content: center;
}
.result-stars {
  font-size: 39px;
  color: var(--gold);
  letter-spacing: 10px;
  text-align: center;
  direction: ltr;
  text-shadow: 0 0 22px #e9ba6930;
}
.result-stars:empty {
  display: none;
}
.help-list {
  padding-inline-start: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.help-list li {
  margin-bottom: 14px;
}
.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.chapter-card {
  padding: 13px;
  border: 1px solid #607f7750;
  border-radius: 10px;
  background: #0d242866;
}
.chapter-card:nth-child(2) {
  --accent: #f0cb83;
}
.chapter-card:nth-child(3) {
  --accent: #c4b5ef;
}
.chapter-card:nth-child(4) {
  --accent: #f0ad94;
}
.chapter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 13px;
}
.chapter-heading small {
  font: 9px var(--mono);
  color: var(--muted);
}
.chapter-card p {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 6px 0 12px;
}
.level-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  direction: ltr;
}
.chapter-card .level-grid {
  gap: 6px;
  margin-bottom: 0;
}
.level-grid button {
  background: #213c3c;
  border: 1px solid #58777055;
  border-radius: 7px;
  min-width: 0;
  min-height: 62px;
  font: 19px var(--mono);
}
.chapter-card .level-grid button {
  font-size: 16px;
  min-height: 54px;
}
.level-grid button:hover:not(:disabled) {
  background: #2d4c46;
  border-color: var(--accent);
}
.level-grid button small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: var(--gold);
  margin-top: 7px;
}
.level-grid button.current {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
@media (max-width: 1150px) {
  .app {
    padding: 0 26px;
  }
  .workspace {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 26px;
  }
  .game-column {
    column-gap: 24px;
    grid-template-columns: minmax(0, var(--board-width)) 190px;
  }
  .intro h1 {
    font-size: 42px;
  }
  .intro h2 {
    font-size: 18px;
  }
  .route-art {
    margin: 14px 0 20px;
  }
  .score-readout strong {
    font-size: 25px;
  }
  .combo-readout strong {
    font-size: 22px;
  }
  .telemetry {
    gap: 6px;
    font-size: 9px;
  }
  .energy,
  .attempts {
    gap: 4px;
  }
  .telemetry b {
    font-size: 10px;
  }
  .attempts b {
    letter-spacing: 1px;
  }
}
@media (max-width: 980px) {
  .intro {
    display: none;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .game-column {
    grid-template-columns: minmax(0, var(--board-width)) 225px;
  }
  .topbar {
    height: 64px;
  }
  .workspace {
    min-height: calc(100dvh - 102px);
  }
  .game-column {
    --board-width: min(480px, calc((100dvh - 206px) * 2/3));
  }
  .telemetry {
    font-size: 10px;
  }
  .score-readout strong {
    font-size: 30px;
  }
}
@media (max-width: 700px) {
  .app {
    padding: 0 14px;
  }
  .topbar {
    height: calc(58px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    gap: 8px;
  }
  .edition {
    display: none;
  }
  .wordmark {
    font-size: 16px;
    gap: 8px;
    letter-spacing: 2px;
  }
  .wordmark small {
    font-size: 6px;
    letter-spacing: 1.2px;
    margin-top: 3px;
  }
  .brand-symbol {
    width: 28px;
    height: 33px;
    font-size: 18px;
  }
  .tools {
    gap: 2px;
  }
  .tools .icon-button {
    width: 44px;
    height: 44px;
    background: transparent;
    border-color: transparent;
  }
  .workspace {
    display: block;
    padding: 7px 0 0;
    min-height: 0;
  }
  .game-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 460px;
    width: 100%;
    margin: auto;
  }
  .board-header {
    min-height: 44px;
    flex-shrink: 0;
  }
  .board-header .eyebrow {
    display: none;
  }
  .board-header strong {
    font-size: 12px;
  }
  .chapter-chip {
    font-size: 10px;
    background: transparent;
    padding: 6px 10px;
  }
  .board-context {
    height: 20px;
    flex-shrink: 0;
    font-size: 9px;
  }
  .arena-wrap {
    width: min(
      100%,
      calc(
        (
            100dvh - 302px - env(safe-area-inset-top) -
              env(safe-area-inset-bottom)
          ) *
          2 / 3
      )
    );
    border-radius: 13px;
    flex-shrink: 0;
    box-shadow:
      0 15px 35px #0005,
      0 0 0 3px #0e1d20,
      0 0 0 4px #5c837226;
  }
  canvas {
    border-radius: 13px;
  }
  .control-deck {
    width: 100%;
    border-top: 0;
    padding-top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    column-gap: 8px;
  }
  .console-heading {
    display: none;
  }
  .score-readout {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
    border: 0;
    padding: 9px 0 0;
    align-items: center;
  }
  .score-readout > div {
    gap: 1px;
  }
  .score-readout span {
    font-size: 8px;
  }
  .score-readout strong {
    font-size: 14px;
    min-width: 5ch;
  }
  .combo-readout strong {
    font-size: 14px;
    min-width: 2ch;
  }
  .telemetry {
    grid-column: 1;
    grid-row: 1;
    margin-top: 9px;
    font-size: 9px;
    gap: 8px;
    justify-content: flex-start;
    align-self: center;
  }
  .telemetry .energy > span,
  .attempts > span {
    display: none;
  }
  .energy i {
    font-size: 21px;
  }
  .telemetry b {
    font-size: 11px;
  }
  .attempts {
    margin-inline-start: 8px;
  }
  .attempts b {
    letter-spacing: 2px;
  }
  .aim-control {
    grid-column: 1/3;
    grid-row: 2;
    flex-wrap: nowrap;
    gap: 9px;
    margin-top: 4px;
    font-size: 10px;
  }
  .aim-control label {
    flex: initial;
  }
  .aim-control input {
    order: 0;
    flex: 1;
    height: 30px;
  }
  .aim-control output {
    width: 30px;
    font-size: 11px;
  }
  .actions {
    grid-column: 1;
    grid-row: 3;
    margin-top: 3px;
    gap: 6px;
  }
  .primary {
    min-height: 44px;
    font-size: 12px;
    padding: 8px 11px;
    gap: 8px;
  }
  .actions .icon-button {
    width: 44px;
    height: 44px;
  }
  .focus-button {
    grid-column: 2;
    grid-row: 3;
    min-height: 44px;
    margin-top: 3px;
    padding: 7px;
    gap: 5px;
    font-size: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .focus-button svg {
    width: 15px;
    height: 15px;
  }
  .focus-track {
    position: absolute;
    bottom: 5px;
    left: 12px;
    right: 12px;
    max-width: none;
    height: 2px;
  }
  .focus-button kbd {
    display: none;
  }
  .status {
    grid-column: 1/3;
    grid-row: 4;
    text-align: center;
    font-size: 9px;
    line-height: 1.7;
    min-height: 29px;
    margin: 6px 0 env(safe-area-inset-bottom);
  }
  .field-notes,
  footer {
    display: none;
  }
  .modal-inner {
    padding: 22px;
  }
  .modal-inner h2 {
    font-size: 23px;
  }
  .chapter-grid {
    gap: 10px;
    grid-template-columns: 1fr;
  }
  .chapter-card {
    padding: 12px;
  }
  .chapter-card .level-grid button {
    min-height: 50px;
  }
  .chapter-heading {
    margin-bottom: 8px;
  }
  .mirror-hit {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 380px) {
  .app {
    padding-inline: 11px;
  }
  .wordmark {
    font-size: 14px;
  }
  .brand-symbol {
    display: none;
  }
  .board-header strong {
    max-width: 215px;
  }
  .aim-control label {
    font-size: 9px;
  }
  .control-deck {
    grid-template-columns: minmax(0, 1fr) 92px;
  }
  .status {
    font-size: 8.5px;
  }
}
@media (max-height: 760px) and (min-width: 701px) {
  .route-art {
    display: none;
  }
  .intro h1 {
    margin-bottom: 14px;
  }
  .chapter-badge {
    margin-bottom: 24px;
  }
  .field-notes {
    padding-top: 12px;
  }
  .field-notes > .eyebrow,
  .field-notes .note,
  .signature {
    display: none;
  }
  .best-record {
    margin-top: 10px;
  }
  .score-readout {
    padding: 15px 0;
  }
  .aim-control {
    margin-top: 14px;
  }
  .status {
    margin-top: 8px;
  }
  .game-column {
    --board-width: min(480px, calc((100dvh - 178px) * 2/3));
  }
  .workspace {
    padding: 12px 0;
  }
  .topbar {
    height: 60px;
  }
  footer {
    height: 28px;
  }
}
@media (max-height: 580px) and (min-width: 581px) {
  .app {
    padding: 0 20px;
  }
  .topbar {
    height: 50px;
  }
  .wordmark {
    font-size: 16px;
  }
  .wordmark small {
    font-size: 6px;
  }
  .brand-symbol {
    width: 27px;
    height: 30px;
    font-size: 17px;
  }
  .intro,
  .field-notes,
  footer {
    display: none;
  }
  .workspace {
    display: block;
    padding: 12px 0;
    min-height: 0;
  }
  .game-column {
    display: grid;
    grid-template-columns: calc((100dvh - 78px) * 2 / 3) minmax(230px, 290px);
    grid-template-rows: 44px 22px auto;
    column-gap: 32px;
    max-width: 650px;
    margin: auto;
    --board-width: 100%;
  }
  .arena-wrap {
    grid-column: 1;
    grid-row: 1/4;
    width: 100%;
    height: auto;
  }
  .board-header {
    grid-column: 2;
    grid-row: 1;
  }
  .board-context {
    grid-column: 2;
    grid-row: 2;
  }
  .control-deck {
    grid-column: 2;
    grid-row: 3;
    padding-top: 0;
    border: 0;
    display: grid;
    grid-template-columns: 1fr 95px;
    column-gap: 8px;
  }
  .console-heading {
    display: none;
  }
  .score-readout {
    grid-column: 2;
    grid-row: 1;
    border: 0;
    padding: 0;
    gap: 8px;
  }
  .score-readout > div {
    gap: 3px;
  }
  .score-readout span {
    font-size: 8px;
  }
  .score-readout strong,
  .combo-readout strong {
    font-size: 15px;
    min-width: 3ch;
  }
  .telemetry {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 9px;
    justify-content: flex-start;
    gap: 10px;
  }
  .energy > span,
  .attempts > span {
    display: none;
  }
  .aim-control {
    grid-column: 1/3;
    grid-row: 2;
    flex-wrap: nowrap;
    margin-top: 8px;
  }
  .aim-control label {
    flex: initial;
  }
  .aim-control input {
    order: 0;
    flex: 1;
    height: 28px;
  }
  .actions {
    grid-column: 1;
    grid-row: 3;
    margin-top: 6px;
  }
  .primary {
    min-height: 44px;
    font-size: 11px;
    padding: 8px;
    gap: 6px;
  }
  .focus-button {
    grid-column: 2;
    grid-row: 3;
    margin-top: 6px;
    padding: 8px;
    gap: 5px;
    font-size: 10px;
  }
  .focus-button kbd {
    display: none;
  }
  .focus-track {
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 10px;
    max-width: none;
    height: 2px;
  }
  .status {
    grid-column: 1/3;
    grid-row: 4;
    min-height: 20px;
    font-size: 9px;
    margin-top: 8px;
  }
  .chapter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .modal-inner {
    padding: 20px;
  }
  .modal-inner h2 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media (max-height: 880px) and (min-width: 701px),
  (min-width: 701px) and (max-width: 1100px) {
  .field-notes > .eyebrow,
  .field-notes .note,
  .field-notes .signature {
    display: none;
  }
  .field-notes {
    padding-top: 12px;
  }
}
.chapter-card[data-chapter='0'] {
  --accent: #a8ecd4;
}
.chapter-card[data-chapter='1'] {
  --accent: #f0cb83;
}
.chapter-card[data-chapter='2'] {
  --accent: #c4b5ef;
}
.chapter-card[data-chapter='3'] {
  --accent: #f0ad94;
}
.chapter-heading {
  margin: 0 0 10px;
}
.combo-readout strong[data-active='true'] {
  color: var(--accent);
  text-shadow: 0 0 18px #a8ecd450;
}
.result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-block: 1px solid var(--line);
  padding: 20px 0;
  margin: 4px 0 14px;
}
.result-summary > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.result-summary span {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.result-summary strong {
  color: var(--accent);
  font: 27px var(--mono);
  direction: ltr;
  font-variant-numeric: tabular-nums;
}
.stars-rule {
  margin: 0 0 22px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}
/* Verified progression stays separate from the score for this run. */
.account-panel {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.account-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  font-size: 9px;
  color: var(--muted);
}
.account-summary > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.account-summary b {
  font: 20px var(--mono);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.reward-multiplier {
  font: 15px var(--mono);
  color: var(--gold);
  direction: ltr;
}
.account-state {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  font-size: 9px;
  color: var(--muted);
}
.account-status {
  background: transparent;
  padding: 0;
  text-align: start;
  line-height: 1.7;
  font-size: inherit;
  color: inherit;
}
.account-status[data-state='ranked'],
.account-status[data-state='confirmed'] {
  color: var(--accent);
}
.account-status[data-state='pending'],
.account-status[data-state='failed'] {
  color: var(--gold);
}
.account-state a,
.account-state > button:not(.account-status) {
  flex-shrink: 0;
  color: var(--accent);
  background: transparent;
  font-size: 10px;
  padding: 3px;
}
.leaderboard-button {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #203537;
  color: var(--accent);
  font-size: 11px;
}
.leaderboard-button:hover {
  border-color: var(--accent);
}
.field-notes .note {
  display: none;
}
.reward-detail {
  padding: 14px;
  margin: 12px 0 20px;
  background: #0b2025;
  border-inline-start: 2px solid var(--gold);
  border-radius: 4px;
}
.reward-detail[data-state='confirmed'] {
  border-color: var(--accent);
}
.reward-detail > strong {
  font-size: 12px;
  line-height: 1.8;
  color: var(--gold);
}
.reward-detail[data-state='confirmed'] > strong {
  color: var(--accent);
}
.reward-detail p {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.9;
  color: var(--muted);
}
.level-paging {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.level-paging button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #203537;
  font-size: 11px;
}
.level-paging span {
  color: var(--muted);
  font: 10px var(--mono);
  direction: ltr;
}
.rank-table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0 24px;
  table-layout: fixed;
}
.rank-table th {
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  padding: 10px 4px;
  text-align: start;
}
.rank-table td {
  border-top: 1px solid var(--line);
  padding: 12px 4px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.rank-table th:first-child,
.rank-table td:first-child {
  width: 12%;
  color: var(--gold);
}
.rank-table th:nth-child(2),
.rank-table td:nth-child(2) {
  width: 38%;
}
@media (max-width: 700px) {
  .arena-wrap {
    width: min(
      100%,
      calc(
        (
            100dvh - 328px - env(safe-area-inset-top) -
              env(safe-area-inset-bottom)
          ) *
          2 / 3
      )
    );
  }
  .account-panel {
    grid-column: 1 / 3;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    column-gap: 10px;
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    min-height: 44px;
  }
  .account-summary {
    grid-column: 1;
    grid-row: 1;
    gap: 8px;
    font-size: 7px;
  }
  .account-summary > span {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }
  .account-summary b {
    font-size: 12px;
  }
  .reward-multiplier {
    font-size: 11px;
  }
  .account-state {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
    gap: 4px;
    font-size: 7px;
    overflow: hidden;
  }
  .account-status {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .account-state a,
  .account-state > button:not(.account-status) {
    font-size: 8px;
    padding: 0;
  }
  .leaderboard-button {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
    min-height: 44px;
    font-size: 9px;
  }
  .telemetry,
  .score-readout {
    grid-row: 2;
    margin-top: 4px;
  }
  .score-readout {
    padding-top: 4px;
  }
  .aim-control {
    grid-row: 3;
    margin-top: 0;
  }
  .actions,
  .focus-button {
    grid-row: 4;
  }
  .status {
    grid-row: 5;
    min-height: 18px;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .result-summary strong {
    font-size: 23px;
  }
}
@media (max-height: 580px) and (min-width: 581px) {
  .account-panel {
    grid-column: 1 / 3;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 0 10px;
    padding: 0;
    margin: 0 0 5px;
    border: 0;
    min-height: 44px;
  }
  .account-summary {
    grid-column: 1;
    grid-row: 1;
    gap: 6px;
    font-size: 7px;
  }
  .account-summary > span {
    flex-direction: row;
    gap: 4px;
  }
  .account-summary b {
    font-size: 12px;
  }
  .reward-multiplier {
    font-size: 10px;
  }
  .account-state {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: 7px;
  }
  .account-status {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .leaderboard-button {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
    min-height: 44px;
    font-size: 9px;
  }
  .telemetry,
  .score-readout {
    grid-row: 2;
  }
  .aim-control {
    grid-row: 3;
  }
  .actions,
  .focus-button {
    grid-row: 4;
  }
  .status {
    grid-row: 5;
  }
  .arena-wrap {
    width: 100%;
  }
}
.account-summary {
  font-size: 10px;
}
.account-state {
  font-size: 10px;
}
@media (max-width: 700px), (max-height: 580px) and (min-width: 581px) {
  .account-summary {
    font-size: 9px;
  }
  .account-state {
    font-size: 9px;
  }
  .account-state a,
  .account-state > button:not(.account-status) {
    font-size: 10px;
  }
  .account-summary b[data-large='true'] {
    font-size: 9px;
  }
  .account-summary > span > span {
    white-space: nowrap;
  }
}
/* POUYAM SMART CITY — a layered optical skyline, behind every interaction. */
body {
  isolation: isolate;
  background: #08151b;
}
.app {
  position: relative;
  z-index: 1;
}
.city-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  contain: layout paint style;
  background: radial-gradient(
    ellipse at 53% 38%,
    #28463d66 0,
    #0a1b2080 48%,
    #06121a 100%
  );
}
.city-backdrop *,
.city-backdrop *::before,
.city-backdrop *::after {
  pointer-events: none;
}
.city-horizon {
  position: absolute;
  inset: 26% -10% -15%;
  background: radial-gradient(ellipse at 50% 83%, #76978114 0, transparent 57%);
}
.city-architecture {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  stroke-width: 1;
  overflow: visible;
  opacity: 0.75;
}
.city-district-far {
  opacity: 0.42;
}
.city-district-near {
  opacity: 0.72;
}
.city-brand {
  position: absolute;
  top: clamp(92px, 11.5dvh, 120px);
  left: max(38px, calc((100vw - 1264px) / 2));
  width: 355px;
  padding: 4px 0 12px;
  overflow: hidden;
  direction: ltr;
  text-align: left;
  font-family: Bahnschrift, 'Arial Narrow', sans-serif;
  font-weight: 800;
  color: #83a38d;
  opacity: 0.68;
  transform: perspective(700px) rotateY(9deg);
  transform-origin: left center;
}
.city-brand-top {
  display: block;
  font-size: 66px;
  line-height: 0.97;
  letter-spacing: 5px;
  text-shadow:
    1px 1px #32483e,
    2px 2px #293d37,
    3px 3px #20342e,
    4px 4px #192c29,
    5px 5px #122522,
    6px 6px #0b1a18,
    10px 13px 0 #0003,
    15px 19px 0 #0002;
}
.city-brand-bottom {
  display: block;
  font-size: 23px;
  line-height: 1.7;
  letter-spacing: 9.2px;
  color: #bcb598;
  text-shadow: 2px 3px 0 #0008;
}
.city-brand-rule {
  display: block;
  width: 47px;
  height: 2px;
  background: #d6b97c;
  margin-top: 8px;
  box-shadow:
    60px 0 #81988a33,
    120px 0 #81988a19;
}
.city-light {
  position: absolute;
  width: 58px;
  height: 145%;
  left: -25%;
  top: -20%;
  background: linear-gradient(90deg, transparent, #e2edd329, transparent);
  transform: translate3d(0, 0, 0) skewX(-24deg);
  mix-blend-mode: screen;
}
.city-orbit {
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid #76988016;
  border-radius: 50%;
  top: 14%;
  left: -20%;
  transform: rotate(-32deg);
}
.city-orbit::before {
  content: '';
  position: absolute;
  inset: 28px;
  border: 1px dashed #a4b79a13;
  border-radius: 50%;
}
.city-orbit::after {
  content: '';
  position: absolute;
  inset: 78px;
  border: 1px solid #afc8ad0b;
  border-radius: 50%;
}
.city-orbit i {
  position: absolute;
  top: 12%;
  left: 14%;
  width: 6px;
  height: 6px;
  background: #c5d8b5;
  border-radius: 50%;
  box-shadow:
    0 0 0 7px #bdcfab0a,
    0 0 12px #bacfa248;
}
.city-orbit-two {
  width: 460px;
  height: 460px;
  left: auto;
  right: -17%;
  top: 20%;
  opacity: 0.6;
}
.city-orbit-two i {
  background: #e2c58d;
}
.city-beam {
  position: absolute;
  width: 180px;
  height: 112%;
  bottom: -30%;
  transform-origin: 50% 100%;
  background: linear-gradient(
    0deg,
    #b4b89a00,
    #b4c5ac0b 34%,
    #c9c8a510 82%,
    transparent
  );
  clip-path: polygon(0 0, 100% 0, 51% 100%, 49% 100%);
}
.city-beam-left {
  left: 6%;
  transform: rotate(18deg);
}
.city-beam-right {
  right: 3%;
  width: 210px;
  transform: rotate(-23deg);
}
.city-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      #07141b 0,
      transparent 15%,
      transparent 80%,
      #06121a99
    ),
    radial-gradient(
      ellipse at 52% 50%,
      transparent 35%,
      #06131c30 76%,
      #050e1666
    );
}
.city-signal {
}
.topbar,
footer {
  border-color: #66847838;
}
.topbar {
  background: linear-gradient(180deg, #08171ac9, #08171a00);
}
.intro {
  text-shadow: 0 2px 12px #07151b;
}
.control-deck {
  background: linear-gradient(90deg, #08191b50, #08191bc9);
  box-shadow: 15px 0 28px #08191b66;
}
.arena-wrap {
  box-shadow:
    0 25px 70px #0009,
    0 0 0 5px #0e1d20,
    0 0 0 6px #83a5892e,
    0 0 55px #a8ecd409;
}

.city-backdrop[data-paused='true'] *,
.city-backdrop[data-paused='true'] *::before,
.city-backdrop[data-paused='true'] *::after {
  animation-play-state: paused !important;
}
@media (max-width: 1150px) {
  .city-brand {
    width: 265px;
    left: 26px;
    top: 84px;
    opacity: 0.45;
  }
  .city-brand-top {
    font-size: 47px;
    letter-spacing: 4px;
  }
  .city-brand-bottom {
    font-size: 17px;
    letter-spacing: 6.2px;
  }
  .city-district-near {
    opacity: 0.52;
  }
}
@media (max-width: 980px) {
  .city-brand {
    left: 12px;
    top: 32%;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    width: 48px;
    overflow: visible;
    opacity: 0.2;
  }
  .city-brand-top {
    font-size: 27px;
  }
  .city-brand-bottom {
    font-size: 13px;
    letter-spacing: 5px;
    line-height: 2;
  }
  .city-brand-rule,
  .city-light {
    display: none;
  }
}
@media (max-width: 700px) {
  .city-architecture {
    width: 170%;
    left: -35%;
    opacity: 0.65;
  }
  .city-brand {
    top: 24%;
    left: 5px;
    width: 30px;
    opacity: 0.35;
  }
  .city-brand-top {
    font-size: 18px;
    letter-spacing: 3px;
  }
  .city-brand-bottom {
    font-size: 9px;
    letter-spacing: 4px;
  }
  .city-orbit {
    width: 350px;
    height: 350px;
    left: -80%;
    top: 23%;
  }
  .city-orbit-two {
    left: auto;
    right: -65%;
    width: 310px;
    height: 310px;
  }
  .city-beam {
    width: 100px;
    opacity: 0.5;
  }
  .control-deck {
    background: linear-gradient(180deg, #091a1bbd, #091a1b70);
    box-shadow: 0 0 15px #091a1b88;
  }
  .wordmark small {
    letter-spacing: 0.9px;
    font-size: 7px;
  }
}
@media (max-height: 580px) and (min-width: 581px) {
  .city-brand {
    left: 12px;
    top: 30%;
    width: 42px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    opacity: 0.25;
  }
  .city-brand-top {
    font-size: 24px;
  }
  .city-brand-bottom {
    font-size: 11px;
    letter-spacing: 3px;
  }
  .city-brand-rule,
  .city-light {
    display: none;
  }
  .city-district-near {
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  .city-backdrop *,
  .city-backdrop *::before,
  .city-backdrop *::after {
    animation: none !important;
  }
  .city-light {
    display: none;
  }
}
@media (min-width: 981px) and (min-height: 581px) {
  .intro > .eyebrow {
    visibility: hidden;
  }
}

/* The city is the wide stage; the optical instrument always keeps its 2:3 camera. */
#city-scene {
  width: 100%;
  height: 100%;
  display: block;
}
.city-vignette {
  background:
    linear-gradient(180deg, #040b1255, transparent 35%, #050d1620),
    linear-gradient(90deg, transparent 60%, #040c1640);
}
.city-sign {
  display: none;
}
.arena-wrap {
  box-shadow:
    0 25px 65px #0009,
    0 0 0 6px #09202588,
    0 0 0 7px #99c3b31c;
}
@media (min-width: 981px) and (min-height: 581px) {
  .app {
    max-width: 1800px;
    padding-inline: clamp(24px, 3vw, 56px);
  }
  .topbar {
    height: 66px;
  }
  .workspace {
    max-width: 1450px;
    margin-inline: auto;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: clamp(22px, 3vw, 56px);
    min-height: calc(100dvh - 66px);
    padding: 18px 0 20px;
    align-items: center;
  }
  .intro {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-content: center;
    padding: 0 0 12vh;
    max-width: 350px;
    direction: ltr;
    text-align: start;
  }
  .intro > * {
    display: none;
  }
  .intro .city-sign {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .city-sign-coordinate {
    font:
      10px Consolas,
      monospace;
    letter-spacing: 3px;
    color: #98b4ac;
    margin-bottom: 24px;
  }
  .city-sign-name {
    font:
      800 clamp(36px, 4.2vw, 73px)/0.95 Bahnschrift,
      'Segoe UI',
      sans-serif;
    letter-spacing: -3px;
    color: #d9e4cc;
    text-shadow:
      0 3px 0 #46605b,
      0 9px 0 #07151c,
      0 18px 32px #0009;
  }
  .city-sign-caption {
    margin-top: 16px;
    color: #c1c4a0;
    font:
      500 clamp(11px, 1.25vw, 18px) Bahnschrift,
      'Segoe UI',
      sans-serif;
    letter-spacing: clamp(4px, 0.7vw, 11px);
  }
  .city-sign-line {
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 28px;
    background: linear-gradient(90deg, #ccba80aa, #7eac9722, transparent);
  }
  .city-sign-line i {
    display: block;
    width: 5px;
    height: 5px;
    margin-top: -2px;
    background: #e4c884;
    transform: rotate(45deg);
    box-shadow: 0 0 16px #dfbc80;
  }
  .game-column {
    --board-width: calc((100dvh - 108px) * 2/3);
    width: auto;
    max-width: none;
    grid-template-columns: var(--board-width) clamp(265px, 22vw, 340px);
    grid-template-rows: 48px 56px auto 1fr;
    gap: 0 clamp(24px, 3vw, 48px);
  }
  .arena-wrap {
    grid-column: 1;
    grid-row: 1/5;
    width: var(--board-width);
    height: auto;
    min-height: 0;
    aspect-ratio: 2/3;
    align-self: start;
    border-radius: 20px;
  }
  .board-header {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
  .board-header strong {
    font-size: 15px;
  }
  .board-context {
    grid-column: 2;
    grid-row: 2;
    text-align: start;
    align-self: start;
    padding-top: 4px;
  }
  .control-deck {
    grid-column: 2;
    grid-row: 3;
    padding: 16px 18px 12px;
    border: 1px solid #88b6a830;
    border-top: 2px solid var(--accent);
    border-radius: 2px 2px 16px 16px;
    background: linear-gradient(140deg, #142b30ed, #0c1c25e8);
    box-shadow: 0 16px 35px #02080e55;
  }
  .account-panel {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
  .account-summary b {
    font-size: 19px;
  }
  .account-state {
    margin-block: 6px;
  }
  .leaderboard-button {
    min-height: 38px;
  }
  .console-heading {
    padding-block: 8px;
  }
  .score-readout {
    padding: 10px 0 14px;
  }
  .score-readout strong {
    font-size: 30px;
  }
  .telemetry {
    padding-block: 12px;
  }
  .aim-control {
    margin-block: 10px;
  }
  .actions {
    margin-top: 10px;
  }
  .actions button {
    min-height: 46px;
  }
  .status {
    font-size: 11px;
    margin-top: 10px;
  }
  .field-notes {
    grid-column: 2;
    grid-row: 4;
    padding-top: 14px;
  }
  .field-notes > .eyebrow,
  .field-notes .note,
  .field-notes .signature {
    display: none;
  }
  footer {
    display: none;
  }
}
@media (min-width: 981px) and (min-height: 581px) and (max-height: 880px) {
  .game-column {
    grid-template-rows: 42px 42px auto 1fr;
  }
  .control-deck {
    padding: 10px 14px;
  }
  .console-heading,
  .field-notes {
    display: none;
  }
  .score-readout {
    padding: 7px 0 10px;
  }
  .telemetry {
    padding-block: 8px;
  }
  .account-panel {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  .status {
    margin-bottom: 0;
  }
}
@media (min-width: 981px) and (max-width: 1240px) and (min-height: 581px) {
  .workspace {
    display: block;
  }
  .intro {
    display: none;
  }
  .game-column {
    justify-content: center;
    --board-width: min(calc((100dvh - 108px) * 2/3), calc(100vw - 400px));
  }
}
