:root {
  color-scheme: light;
  --shell: #dfe6e1;
  --paper: #f7f8f4;
  --paper-strong: #ffffff;
  --ink: #15251f;
  --muted: #5b6a64;
  --rule: #aab8b1;
  --rule-strong: #52645c;
  --board: #101a17;
  --board-grid: #263630;
  --signal: #e95f2b;
  --signal-dark: #a93b16;
  --ready: #a9d53b;
  --focus: #086bff;
  --shadow: 0 16px 42px rgb(21 37 31 / 14%);
  --z-settings: 40;
  --z-dialog: 80;
  font-family: "Segoe UI", "Noto Sans TC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--shell);
}

button,
select,
summary {
  font: inherit;
}

button,
select,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button,
summary {
  touch-action: manipulation;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, select, summary, canvas):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 28px;
}

.topbar {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 2px solid var(--rule-strong);
}

.back-link {
  width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--signal-dark);
}

.back-arrow {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 1.25rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-piece {
  width: 28px;
  height: 28px;
  display: grid;
  grid-template-columns: repeat(3, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 2px;
  transform: rotate(-4deg);
}

.brand-piece i {
  display: block;
  background: var(--signal);
  border: 1px solid var(--signal-dark);
}

.brand-piece i:first-child {
  grid-column: 2;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy > span {
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-copy strong {
  margin-top: 5px;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.top-actions {
  justify-self: end;
}

.settings {
  position: relative;
}

.settings > summary {
  min-width: 94px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.settings > summary::-webkit-details-marker {
  display: none;
}

.settings[open] > summary,
.settings > summary:hover {
  color: var(--paper);
  background: var(--ink);
}

.settings-icon {
  font-size: 0.95rem;
}

.settings-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: var(--z-settings);
  width: 240px;
  padding: 16px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.settings-panel label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
}

.settings-version {
  display: flex;
  justify-content: space-between;
  margin: 14px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.75rem;
}

.game-layout {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  align-items: stretch;
  margin-top: 22px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.playfield-panel {
  min-width: 0;
  padding: 26px clamp(18px, 3vw, 38px) 28px;
  border-right: 1px solid var(--rule-strong);
}

.stage-heading {
  min-height: 84px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--rule);
}

.stage-code,
.module-label,
.metric span,
.dialog-header > div > span,
.gauge-label {
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-code {
  margin: 0 0 4px;
  color: var(--signal-dark);
}

.stage-heading h1 {
  margin: 0;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.stage-heading p:last-child {
  max-width: 490px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.phase-chip {
  flex: none;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 0 11px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-strong);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.phase-light {
  width: 8px;
  height: 8px;
  display: block;
  border-radius: 50%;
  background: var(--rule-strong);
  box-shadow: 0 0 0 3px rgb(82 100 92 / 12%);
}

.phase-chip[data-phase="running"] .phase-light {
  background: var(--ready);
  box-shadow: 0 0 0 3px rgb(169 213 59 / 20%);
}

.phase-chip[data-phase="paused"] .phase-light {
  background: #f1b936;
}

.phase-chip[data-phase="gameover"] .phase-light {
  background: var(--signal);
}

.board-station {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 13px;
  margin-top: 20px;
}

.board-frame {
  position: relative;
  flex: none;
  align-self: flex-start;
  width: clamp(226px, 29vw, 284px);
  aspect-ratio: 1 / 2;
  padding: 7px;
  border: 3px solid var(--ink);
  background: #33433d;
  box-shadow:
    7px 7px 0 var(--rule),
    inset 0 0 0 1px #61736b;
}

.board-frame::before {
  content: "";
  position: absolute;
  inset: -3px auto -3px -8px;
  width: 3px;
  background: var(--signal);
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--board);
  cursor: default;
  touch-action: none;
}

.line-flash {
  position: absolute;
  inset: 7px;
  pointer-events: none;
  background: rgb(255 255 255 / 78%);
  opacity: 0;
  transform: scaleX(0.82);
}

.board-frame.is-clearing .line-flash {
  animation: line-confirm 240ms ease-out;
}

@keyframes line-confirm {
  0% {
    opacity: 0;
    transform: scaleX(0.82);
  }
  35% {
    opacity: 0.82;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

.depth-ruler {
  position: relative;
  flex: none;
  width: 27px;
  border-right: 1px solid var(--rule-strong);
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.62rem;
}

.depth-ruler::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 6px;
  height: 1px;
  background: var(--rule-strong);
  box-shadow:
    0 calc(25% - 1px) 0 var(--rule-strong),
    0 calc(50% - 1px) 0 var(--rule-strong),
    0 calc(75% - 1px) 0 var(--rule-strong),
    0 calc(100% - 1px) 0 var(--rule-strong);
}

.depth-ruler span {
  position: absolute;
  top: calc(var(--row) * 5%);
  right: 8px;
  transform: translateY(-50%);
}

.depth-ruler span:first-child {
  transform: translateY(0);
}

.depth-ruler span:last-child {
  transform: translateY(-100%);
}

.stack-gauge {
  position: relative;
  flex: none;
  width: 42px;
  display: grid;
  grid-template-columns: 8px 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 7px 6px;
  align-items: end;
}

.gauge-label {
  position: absolute;
  top: 0;
  left: 17px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.gauge-track {
  position: relative;
  grid-row: 1;
  grid-column: 1;
  width: 8px;
  height: 100%;
  min-height: 110px;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background: var(--paper-strong);
}

.gauge-track::after {
  content: "";
  position: absolute;
  inset: 25% 0 auto;
  height: 1px;
  background: var(--rule);
  box-shadow:
    0 calc(25% - 1px) 0 var(--rule),
    0 calc(50% - 1px) 0 var(--rule);
}

.gauge-fill {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--stack-level, 0%);
  background: var(--signal);
  transition: transform 180ms ease-out;
  transform: scaleY(1);
  transform-origin: bottom;
}

.stack-gauge strong,
.stack-gauge > span:last-child {
  align-self: end;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.72rem;
}

.stack-gauge strong {
  grid-row: 2;
  grid-column: 1;
}

.stack-gauge > span:last-child {
  grid-row: 2;
  grid-column: 2;
}

.instrument-deck {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 25px 24px;
  background: var(--paper-strong);
}

.next-module {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-strong);
}

.next-module > div {
  min-width: 0;
}

.next-module strong {
  display: block;
  margin-top: 8px;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 2.4rem;
  line-height: 1;
}

#next-canvas {
  width: 92px;
  height: 92px;
  flex: none;
  border: 1px solid var(--rule-strong);
  background: var(--board);
}

.score-rack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule-strong);
}

.metric {
  min-height: 87px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.metric:nth-child(2n) {
  border-right: 0;
}

.metric:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.metric strong {
  margin-top: 5px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.metric-score strong {
  color: var(--signal-dark);
  font-size: 1.8rem;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  font-weight: 800;
}

.primary-action {
  color: #fff;
  background: var(--ink);
}

.primary-action:hover {
  background: var(--signal-dark);
  border-color: var(--signal-dark);
}

.secondary-action {
  background: transparent;
}

.secondary-action:hover:not(:disabled) {
  color: #fff;
  background: var(--ink);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.control-console {
  margin-top: 19px;
}

.console-heading {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 11px;
}

.console-heading > span {
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.console-heading small {
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.35;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    ". rotate ."
    "left down right"
    "drop drop drop";
  gap: 8px;
}

.control-button {
  min-width: 44px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--paper);
  cursor: pointer;
}

.control-button:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--ready);
}

.control-button > span {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 1.2rem;
  line-height: 1;
}

.control-button small {
  font-size: 0.65rem;
  font-weight: 700;
}

.rotate-control {
  grid-area: rotate;
}

.control-button[data-action="left"] {
  grid-area: left;
}

.control-button[data-action="down"] {
  grid-area: down;
}

.control-button[data-action="right"] {
  grid-area: right;
}

.drop-control {
  grid-area: drop;
  color: #fff;
  border-color: var(--signal-dark);
  background: var(--signal);
}

.drop-control:hover:not(:disabled) {
  background: var(--signal-dark);
}

.game-dialog {
  z-index: var(--z-dialog);
  width: min(390px, calc(100% - 32px));
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper-strong);
  box-shadow: 12px 12px 0 rgb(21 37 31 / 32%);
}

.game-dialog::backdrop {
  background: rgb(11 20 17 / 68%);
}

.dialog-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid var(--rule-strong);
}

.dialog-mark {
  width: 18px;
  height: 42px;
  background: var(--signal);
}

.dialog-header h2 {
  margin: 4px 0 0;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.dialog-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px;
  color: var(--muted);
}

.dialog-score strong {
  color: var(--ink);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 2.5rem;
}

.record-message {
  margin: -7px 22px 16px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--ready);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.dialog-action {
  width: calc(100% - 44px);
  margin: 0 22px 22px;
}

@media (max-width: 780px) {
  #fa-help-btn.fa-help-btn {
    top: 12px !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .app-shell {
    width: min(100% - 20px, 700px);
  }

  .topbar {
    min-height: 62px;
    grid-template-columns: 1fr auto;
  }

  .brand-lockup {
    display: none;
  }

  .game-layout {
    min-height: 0;
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .playfield-panel {
    padding: 20px 14px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--rule-strong);
  }

  .stage-heading {
    min-height: 75px;
    padding-bottom: 13px;
  }

  .stage-heading h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .stage-heading p:last-child {
    margin-top: 6px;
    font-size: 0.8rem;
  }

  .board-station {
    gap: 9px;
    margin-top: 15px;
  }

  .board-frame {
    width: min(56vw, 240px);
    min-width: 190px;
    padding: 5px;
    box-shadow: 5px 5px 0 var(--rule);
  }

  .line-flash {
    inset: 5px;
  }

  .depth-ruler {
    width: 22px;
  }

  .depth-ruler span {
    right: 6px;
    font-size: 0.56rem;
  }

  .stack-gauge {
    width: 33px;
  }

  .gauge-label {
    font-size: 0.58rem;
  }

  .instrument-deck {
    padding: 18px 16px 20px;
  }

  .next-module {
    min-height: 100px;
  }

  #next-canvas {
    width: 78px;
    height: 78px;
  }

  .next-module strong {
    font-size: 2rem;
  }

  .score-rack {
    grid-template-columns: repeat(4, 1fr);
  }

  .metric {
    min-height: 72px;
    padding: 10px 8px;
    border-right: 1px solid var(--rule);
    border-bottom: 0;
  }

  .metric:nth-child(2n) {
    border-right: 1px solid var(--rule);
  }

  .metric:last-child {
    border-right: 0;
  }

  .metric span {
    font-size: 0.58rem;
  }

  .metric strong,
  .metric-score strong {
    font-size: 1.25rem;
  }

  .control-grid {
    grid-template-areas: "left rotate right" "down drop drop";
  }
}

@media (max-width: 390px) {
  .settings-label {
    display: none;
  }

  .settings > summary {
    min-width: 44px;
    padding: 0 10px;
  }

  .stage-heading {
    gap: 9px;
  }

  .phase-chip {
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.64rem;
  }

  .board-frame {
    width: min(54vw, 218px);
    min-width: 180px;
  }

  .next-module {
    min-height: 88px;
  }
}

@media (min-width: 700px) and (max-height: 699px) {
  .app-shell {
    width: min(1180px, calc(100% - 22px));
    padding-bottom: 10px;
  }

  .topbar {
    min-height: 48px;
  }

  .game-layout {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
    margin-top: 10px;
  }

  .playfield-panel {
    padding: 12px 20px 14px;
  }

  .stage-heading {
    min-height: 50px;
    padding-bottom: 8px;
  }

  .stage-code {
    display: none;
  }

  .stage-heading h1 {
    font-size: 2rem;
  }

  .stage-heading p:last-child {
    margin-top: 3px;
    font-size: 0.75rem;
  }

  .phase-chip {
    min-height: 30px;
  }

  .board-station {
    margin-top: 10px;
  }

  .board-frame {
    width: min(calc((100vh - 160px) / 2), 200px);
    min-width: 108px;
    padding: 5px;
    box-shadow: 5px 5px 0 var(--rule);
  }

  .line-flash {
    inset: 5px;
  }

  .instrument-deck {
    padding: 13px 16px;
  }

  .next-module {
    min-height: 76px;
    padding-bottom: 9px;
  }

  #next-canvas {
    width: 62px;
    height: 62px;
  }

  .next-module strong {
    margin-top: 4px;
    font-size: 1.7rem;
  }

  .score-rack {
    grid-template-columns: repeat(4, 1fr);
  }

  .metric {
    min-height: 60px;
    padding: 8px 6px;
    border-right: 1px solid var(--rule);
    border-bottom: 0;
  }

  .metric:nth-child(2n) {
    border-right: 1px solid var(--rule);
  }

  .metric:last-child {
    border-right: 0;
  }

  .metric span {
    font-size: 0.53rem;
    letter-spacing: 0.05em;
  }

  .metric strong,
  .metric-score strong {
    font-size: 1.1rem;
  }

  .action-row {
    margin-top: 10px;
  }

  .primary-action,
  .secondary-action,
  .control-button {
    min-height: 44px;
  }

  .control-console {
    margin-top: 9px;
  }

  .console-heading {
    margin-bottom: 6px;
  }

  .console-heading small {
    display: none;
  }

  .control-grid {
    grid-template-areas: "left rotate right" "down drop drop";
    gap: 6px;
  }
}

@media (min-width: 781px) and (min-height: 700px) and (max-height: 840px) {
  .board-frame {
    width: min(29vw, calc((100vh - 270px) / 2), 284px);
  }
}

@media (orientation: landscape) and (max-width: 699px) and (max-height: 460px) {
  .app-shell {
    width: calc(100% - 12px);
    padding-bottom: 6px;
  }

  .topbar {
    min-height: 42px;
  }

  .game-layout {
    grid-template-columns: minmax(250px, 1fr) minmax(240px, 0.92fr);
    margin-top: 6px;
  }

  .playfield-panel {
    padding: 8px 10px 9px;
    border-right: 1px solid var(--rule-strong);
    border-bottom: 0;
  }

  .stage-heading {
    min-height: 42px;
    padding-bottom: 5px;
  }

  .stage-code,
  .stage-heading p:last-child {
    display: none;
  }

  .stage-heading h1 {
    font-size: 1.5rem;
  }

  .phase-chip {
    min-height: 28px;
  }

  .board-station {
    gap: 6px;
    margin-top: 6px;
  }

  .board-frame {
    width: min(calc((100vh - 125px) / 2), 128px);
    min-width: 90px;
    padding: 3px;
    border-width: 2px;
    box-shadow: 3px 3px 0 var(--rule);
  }

  .line-flash {
    inset: 3px;
  }

  .depth-ruler {
    width: 20px;
  }

  .stack-gauge {
    width: 28px;
  }

  .instrument-deck {
    padding: 8px 10px;
  }

  .next-module {
    min-height: 54px;
    padding-bottom: 5px;
  }

  #next-canvas {
    width: 48px;
    height: 48px;
  }

  .next-module strong {
    margin-top: 2px;
    font-size: 1.25rem;
  }

  .score-rack {
    grid-template-columns: repeat(4, 1fr);
  }

  .metric {
    min-height: 48px;
    padding: 5px;
    border-right: 1px solid var(--rule);
    border-bottom: 0;
  }

  .metric:nth-child(2n) {
    border-right: 1px solid var(--rule);
  }

  .metric:last-child {
    border-right: 0;
  }

  .metric span {
    font-size: 0.48rem;
    letter-spacing: 0;
  }

  .metric strong,
  .metric-score strong {
    margin-top: 2px;
    font-size: 0.95rem;
  }

  .action-row,
  .control-console {
    margin-top: 6px;
  }

  .primary-action,
  .secondary-action,
  .control-button {
    min-height: 44px;
  }

  .console-heading {
    display: none;
  }

  .control-grid {
    grid-template-areas: "left rotate right" "down drop drop";
    gap: 4px;
  }

  .control-button {
    min-width: 44px;
    padding: 2px;
  }
}

@media (min-width: 700px) and (max-height: 440px) {
  #fa-help-btn.fa-help-btn {
    top: auto !important;
    right: auto !important;
    bottom: 10px !important;
    left: 12px !important;
    transform: none !important;
  }

  .control-console {
    margin-top: 6px;
  }

  .console-heading {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .phase-light,
  .dialog-mark,
  .brand-piece i,
  .gauge-fill {
    forced-color-adjust: none;
  }

  #game-canvas,
  #next-canvas {
    border: 1px solid CanvasText;
  }
}
