:root {
  --page: #f4f3ee;
  --paper: #fcfbf7;
  --ink: #26392f;
  --muted: #7b847a;
  --line: #dfe3d9;
  --orange: #dc825b;
  --orange-light: #f0e1d3;
  --stage: #dce6dd;
  --stage-ink: #526b53;
  --score-bg: #284638;
  --score-text: #f0f1dd;
  --accent: #608672;
  color-scheme: light;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
}
:root[data-theme="neon"] {
  --stage: #141c2d;
  --stage-ink: #b1cbde;
  --score-bg: #253b51;
  --accent: #6eb1c3;
}
:root[data-theme="crystal"] {
  --stage: #dbe4ef;
  --stage-ink: #637897;
  --score-bg: #485e87;
  --accent: #8a9ed6;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
body {
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button,
select,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:disabled,
select:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select,
a,
[tabindex="0"] {
  outline-offset: 5px;
}
button:focus-visible,
select:focus-visible,
a:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--orange);
}
svg.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
::selection {
  background: #e8bb98;
  color: #283c2f;
}
.app-shell {
  max-width: 1600px;
  width: calc(100% - 104px);
  margin-inline: auto;
}
.site-header {
  height: 103px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  letter-spacing: -0.8px;
  line-height: 0.95;
  font-weight: 500;
}
.brand-glyph {
  background: var(--orange);
  border-radius: 12px;
  width: 43px;
  height: 43px;
  color: #fff9ed;
  display: grid;
  place-items: center;
}
.brand-glyph svg {
  width: 32px;
  height: 32px;
}
.brand-second {
  display: block;
  font-size: 16px;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-top: 2px;
}
.brand-dot {
  color: var(--orange);
}
.header-middle {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 35px;
}
.status-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #99a888;
}
.header-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}
.help-button {
  display: flex;
  gap: 8px;
  align-items: center;
  background: none;
  border: 0;
  font-size: 11px;
  padding: 10px 0;
}
.help-button .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition:
    color 0.2s,
    background 0.2s;
}
.icon-button:hover {
  color: var(--ink);
  background: var(--paper);
}
.sound-button[aria-pressed="true"] {
  color: var(--orange);
  border-color: var(--orange);
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 36px 0 33px;
  gap: 24px;
}
.eyebrow {
  font-family: "DM Sans", sans-serif;
  font-size: 8px;
  letter-spacing: 1.35px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--muted);
}
h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 53px);
  letter-spacing: -2.4px;
  line-height: 1.15;
  margin-top: 9px;
  text-wrap: balance;
}
h1 > span {
  font-family: Georgia, serif;
  font-style: italic;
  color: #788c71;
  letter-spacing: -2.8px;
}
.intro-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  padding-bottom: 3px;
  max-width: 200px;
}
.intro-note em {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 14px;
}
.playground {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr) 174px;
  gap: 27px;
  align-items: start;
}
.settings {
  padding-top: 5px;
}
.settings-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}
.settings-heading .eyebrow {
  font-size: 7px;
  letter-spacing: 1px;
}
.tiny-plus {
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
}
.setting-group {
  border: 0;
  padding: 0;
  margin-top: 23px;
  min-width: 0;
}
.setting-group legend {
  padding: 0;
  margin-bottom: 13px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.1px;
}
.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: #e9ece3;
  border-radius: 10px;
  gap: 4px;
}
.mode-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  border: 0;
  background: transparent;
  padding: 10px 3px 9px;
  border-radius: 7px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #85907d;
  transition:
    color 0.2s,
    background 0.2s;
}
.mode-switch button .icon {
  width: 16px;
  height: 16px;
}
.mode-switch button > span {
  width: 100%;
  font:
    6px "DM Sans",
    sans-serif;
  letter-spacing: 1px;
  margin-top: 1px;
}
.mode-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #f1f2e7;
  box-shadow: 0 2px 4px #1e332610;
}
.mode-switch button:hover:not([aria-pressed="true"]) {
  background: #dce1d3;
  color: var(--ink);
}
.theme-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 9px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.theme-option:hover {
  background: #e9ece3;
}
.theme-option.selected {
  background: var(--paper);
  border-color: #ced8c7;
  box-shadow: 0 2px 5px #3c4f2e04;
}
.theme-thumbnail {
  position: relative;
  display: block;
  width: 40px;
  height: 43px;
  flex-shrink: 0;
  border-radius: 7px;
  overflow: hidden;
  perspective: 100px;
}
.theme-thumbnail:before {
  content: "";
  position: absolute;
  inset: 8px 4px 5px;
  border-radius: 3px;
  transform: rotateX(30deg) rotateZ(-25deg);
  box-shadow: 0 5px 7px #0002;
}
.zen-thumb {
  background: #dae5d5;
}
.zen-thumb:before {
  background: repeating-linear-gradient(
    0deg,
    #e8ecdb 0px,
    #e8ecdb 5px,
    #d8e1ca 5px,
    #d8e1ca 6px
  );
}
.neon-thumb {
  background: #202e45;
}
.neon-thumb:before {
  background: repeating-linear-gradient(
    0deg,
    #293c57 0px,
    #293c57 5px,
    #406677 5px,
    #406677 6px
  );
}
.crystal-thumb {
  background: #d5deef;
}
.crystal-thumb:before {
  background: repeating-linear-gradient(
    0deg,
    #e6edfa 0px,
    #e6edfa 5px,
    #ccd9ef 5px,
    #ccd9ef 6px
  );
}
.theme-thumbnail > span {
  position: absolute;
  width: 20px;
  height: 7px;
  border: 4px solid #448969;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  transform: rotate(-25deg);
  top: 19px;
  left: 10px;
}
.neon-thumb > span {
  border-color: #77d6d8;
}
.crystal-thumb > span {
  border-color: #8598d1;
}
.theme-copy {
  min-width: 0;
  flex: 1;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.1px;
}
.theme-copy > small {
  display: block;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 4px;
}
.theme-check {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  background: #668771;
  color: #fff;
  border-radius: 50%;
  opacity: 0;
}
.selected .theme-check {
  opacity: 1;
}
.theme-check .icon {
  width: 10px;
  height: 10px;
  stroke-width: 2;
}
.select-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 22px;
}
.select-row > label {
  font-size: 10px;
}
.select-row > select {
  border: 0;
  background: transparent;
  max-width: 106px;
  font-size: 10px;
  color: var(--muted);
  padding: 4px 12px 4px 4px;
  cursor: pointer;
}
.select-row option {
  background: var(--page);
  color: var(--ink);
}
.challenge-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.challenge-option > span:first-child > small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 5px;
}
.challenge-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.toggle-track {
  display: block;
  width: 27px;
  height: 16px;
  border-radius: 12px;
  background: #d7ddcf;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-track:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 2px;
  top: 2px;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 1px 2px #0001;
  transition: transform 0.2s;
}
.challenge-option input:checked + .toggle-track {
  background: #668771;
}
.challenge-option input:checked + .toggle-track:after {
  transform: translateX(11px);
}
.challenge-option input:focus-visible + .toggle-track {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}
.challenge-option:has(input:disabled) {
  opacity: 0.45;
  cursor: default;
}
.quality-row {
  margin-top: 0;
  padding-top: 15px;
  border: 0;
}
.quality-row label,
.quality-row select {
  font-size: 9px;
  color: var(--muted);
}
.setting-footnote {
  font-size: 8px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 16px;
  max-width: 175px;
}
.arena-shell {
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--stage);
  border: 1px solid #48614410;
  position: relative;
  isolation: isolate;
}
.arena-toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 21px;
  color: var(--stage-ink);
}
.arena-toolbar > div:first-child {
  font-size: 7px;
  letter-spacing: 1px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.arena-live-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.arena-separator {
  opacity: 0.45;
  margin: 0 3px;
}
.arena-toolbar #view-label {
  opacity: 0.6;
  font-size: 6px;
  letter-spacing: 0.7px;
}
.arena-buttons {
  display: flex;
  gap: 7px;
}
.arena-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  opacity: 0.65;
  transition:
    opacity 0.2s,
    background 0.2s;
}
.arena-icon .icon {
  width: 13px;
  height: 13px;
}
.arena-icon:hover {
  opacity: 1;
  background: #ffffff20;
}
.arena-stage {
  height: 451px;
  position: relative;
  min-width: 0;
  isolation: isolate;
  margin-top: -13px;
  overflow: hidden;
  touch-action: pan-y;
}
.arena-stage[data-playing="true"] {
  touch-action: none;
}
#canvas-2d,
.canvas-3d,
.canvas-3d > canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  outline-offset: -5px;
}
.canvas-3d > canvas {
  touch-action: pan-y !important;
}
.arena-stage[data-playing="true"] .canvas-3d > canvas {
  touch-action: none !important;
}
.stage-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 32%, #ffffff25, transparent 70%);
}
.arena-coordinate {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  font-size: 6px;
  line-height: 1.7;
  letter-spacing: 1px;
  color: var(--stage-ink);
  opacity: 0.4;
}
.coordinate-one {
  left: 22px;
  top: 20px;
}
.coordinate-two {
  right: 22px;
  bottom: 48px;
  text-align: right;
}
.game-overlay {
  position: absolute;
  z-index: 4;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 21px;
  background: #fcfcf0e8;
  backdrop-filter: blur(12px);
  border: 1px solid #fff8;
  border-radius: 12px;
  box-shadow: 0 8px 30px #213d2410;
}
.overlay-copy > .eyebrow {
  font-size: 6px;
  letter-spacing: 1px;
  color: #8b9680;
}
.overlay-copy > h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  letter-spacing: -0.7px;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 6px;
}
.overlay-copy > p:last-child {
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
}
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
  flex-shrink: 0;
  background: var(--orange);
  border: 0;
  border-radius: 7px;
  padding: 15px 17px;
  font-size: 10px;
  font-weight: 500;
  color: #fffdf0;
  transition:
    background 0.2s,
    transform 0.2s;
  min-height: 44px;
}
.play-button .icon {
  width: 17px;
  height: 17px;
}
.play-button:hover:not(:disabled) {
  background: #c97650;
  transform: translateY(-2px);
}
.play-button .icon {
  transition: transform 0.2s;
}
.play-button:hover .icon {
  transform: translateX(3px);
}
.arena-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 21px 16px;
  border-top: 1px solid #48614414;
  color: var(--stage-ink);
}
.arena-bottom > span {
  font-size: 6px;
  letter-spacing: 1.2px;
  margin-right: auto;
}
.arena-bottom > div {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 6px;
  letter-spacing: 0.8px;
}
.live-status-dot {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: currentColor;
}
.arena-pause,
.arena-reset {
  display: grid;
  place-items: center;
  padding: 3px;
  border: 0;
  background: transparent;
  color: inherit;
}
.arena-pause .icon,
.arena-reset .icon {
  width: 14px;
  height: 14px;
}
.arena-pause:disabled {
  opacity: 0.35;
}
.arena-shell:fullscreen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 0;
  padding: 0 3vw;
}
.arena-shell:fullscreen .arena-stage {
  height: auto;
  flex: 1;
  min-height: 0;
}
.arena-shell:fullscreen .game-overlay {
  max-width: 650px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: calc(100% - 50px);
}
.arena-shell:fullscreen .touch-controls {
  position: absolute;
  bottom: 70px;
  right: 5vw;
  z-index: 10;
}
.countdown {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--stage-ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 90px;
  font-weight: 400;
  background: #ffffff11;
  pointer-events: none;
  text-shadow: 0 5px 20px #fff4;
}
.game-feedback {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  font-size: 10px;
  white-space: nowrap;
  z-index: 7;
  box-shadow: 0 4px 15px #0001;
}
.scoreboard {
  min-width: 0;
}
.score-card {
  background: var(--score-bg);
  color: var(--score-text);
  border-radius: 13px;
  padding: 24px 21px 17px;
  position: relative;
  overflow: hidden;
}
.score-card:after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -60px;
  top: 14px;
  border: 1px solid #e2e7c919;
  border-radius: 50%;
  box-shadow:
    0 0 0 14px #e2e7c904,
    0 0 0 28px #e2e7c903;
  pointer-events: none;
}
.score-card .eyebrow {
  font-size: 7px;
  color: #c9d7bc;
  letter-spacing: 1.1px;
}
.score-display {
  font:
    400 65px/1.2 "Space Grotesk",
    sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -4px;
  margin-top: 10px;
}
.score-unit {
  font-size: 6px;
  letter-spacing: 1.2px;
  color: #c9d7bc;
  display: block;
  margin: 3px 0 24px;
}
.best-row {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #dce6c928;
  padding-top: 15px;
}
.best-row .icon {
  width: 12px;
  height: 12px;
  color: #d5b686;
}
.best-row > span {
  font-size: 8px;
  color: #c9d7bc;
}
.best-row > strong {
  font:
    400 13px "Space Grotesk",
    sans-serif;
  margin-left: auto;
}
.best-note {
  font-size: 6px;
  color: #c9d7bc80;
  margin-top: 8px;
  padding-left: 18px;
}
.session-stats {
  margin-top: 24px;
  padding-inline: 3px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.session-stats > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
}
.session-stats > div > span {
  font-size: 8px;
  color: var(--muted);
}
.session-stats strong {
  font:
    400 12px "Space Grotesk",
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.session-stats strong small {
  font:
    7px "DM Sans",
    sans-serif;
  color: var(--muted);
}
.controls-note {
  padding-top: 25px;
  margin: 24px 3px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.controls-note .eyebrow {
  font-size: 6px;
  letter-spacing: 1.4px;
}
.keyboard-diagram {
  margin: 14px auto 11px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
}
.keyboard-diagram > span,
.keyboard-diagram > div > span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 22px;
  background: var(--paper);
  border: 1px solid #d6ddce;
  border-bottom-width: 3px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--muted);
}
.keyboard-diagram > div {
  display: flex;
  gap: 3px;
}
.controls-note > p {
  font-size: 8px;
  color: var(--muted);
  line-height: 1.9;
}
.controls-note strong {
  color: var(--ink);
  font-size: 7px;
  letter-spacing: 1px;
  font-weight: 500;
}
.controls-note > p > span {
  font-size: 7px;
  color: #98a08f;
}
.controls-note .camera-note {
  font-size: 7px;
  margin-top: 13px;
  line-height: 1.8;
  color: #98a08f;
}
.tiny-manifesto {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.tiny-manifesto svg {
  width: 22px;
  color: #a2ad91;
}
.tiny-manifesto p {
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
}
.tiny-manifesto em {
  font:
    italic 12px Georgia,
    serif;
  color: #738069;
}
.bottom-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0 34px;
  padding-left: 232px;
  color: #8c9584;
  font-size: 6px;
  letter-spacing: 1px;
}
.bottom-caption > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.bottom-caption .status-dot {
  width: 4px;
  height: 4px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 25px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
footer > span:first-child {
  font:
    500 11px "Space Grotesk",
    sans-serif;
  letter-spacing: -0.2px;
}
.footer-dot {
  color: var(--orange);
}
footer small {
  font:
    8px "DM Sans",
    sans-serif;
  color: var(--muted);
  margin-left: 16px;
  letter-spacing: 0;
}
footer > span:last-child {
  font-size: 6px;
  color: var(--muted);
  letter-spacing: 1px;
}
.footer-version {
  margin-left: 26px;
  opacity: 0.6;
}
.touch-controls {
  display: none;
}
.mobile-only {
  display: none;
}
.hidden {
  display: none !important;
}
.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;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 14px 19px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
  font-size: 13px;
}
.skip-link:focus {
  transform: translateY(0);
}
dialog {
  margin: auto;
  max-width: 650px;
  width: calc(100% - 36px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--page);
  color: var(--ink);
  padding: 38px;
  box-shadow: 0 25px 100px #1d342a30;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #1e352c75;
  backdrop-filter: blur(7px);
}
.dialog-close {
  position: absolute;
  right: 20px;
  top: 20px;
}
dialog > h2 {
  font:
    400 35px "Space Grotesk",
    sans-serif;
  letter-spacing: -1.5px;
  margin-top: 12px;
}
dialog > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 16px;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 28px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.help-grid strong {
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
}
.help-grid p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 10px;
}
dialog .help-scoring {
  font-size: 10px !important;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  margin: 25px 0;
}
.game-over .score-display {
  color: #efc5a3;
}
@media (min-width: 1500px) {
  .playground {
    grid-template-columns: 225px minmax(0, 1fr) 195px;
    gap: 33px;
  }
  .arena-stage {
    height: 530px;
  }
  .score-card {
    padding: 28px 25px 23px;
  }
  .score-display {
    font-size: 78px;
  }
  .bottom-caption {
    padding-left: 258px;
  }
  .theme-option {
    padding: 11px;
  }
  .theme-thumbnail {
    width: 44px;
    height: 46px;
  }
  .setting-group {
    margin-top: 29px;
  }
  .select-row {
    margin-top: 28px;
  }
  .quality-row {
    margin-top: 0;
  }
  .scoreboard .controls-note {
    margin-top: 30px;
    padding-top: 26px;
  }
  .session-stats {
    gap: 21px;
  }
  .tiny-manifesto {
    margin-top: 30px;
  }
  .intro {
    padding: 40px 0;
  }
  .site-header {
    height: 110px;
  }
}
@media (max-width: 1180px) {
  .app-shell {
    width: calc(100% - 60px);
  }
  .playground {
    grid-template-columns: 178px minmax(0, 1fr) 150px;
    gap: 20px;
  }
  .theme-option {
    padding: 8px 7px;
    gap: 7px;
  }
  .theme-thumbnail {
    width: 34px;
    height: 38px;
  }
  .theme-copy {
    font-size: 10px;
  }
  .theme-copy > small {
    font-size: 7px;
  }
  .theme-check {
    width: 12px;
    height: 12px;
  }
  .theme-check .icon {
    width: 9px;
  }
  .settings-heading .eyebrow {
    font-size: 6px;
  }
  .select-row > label,
  .challenge-option {
    font-size: 9px;
  }
  .select-row select {
    font-size: 9px;
  }
  .score-card {
    padding: 22px 17px 16px;
  }
  .score-display {
    font-size: 57px;
  }
  .best-row > span {
    font-size: 7px;
  }
  .best-row {
    gap: 5px;
  }
  .best-row .icon {
    width: 11px;
  }
  .best-row strong {
    font-size: 11px;
  }
  .session-stats > div > span {
    font-size: 7px;
  }
  .session-stats strong {
    font-size: 11px;
  }
  .session-stats strong small {
    font-size: 6px;
  }
  .arena-stage {
    height: 440px;
  }
  .game-overlay {
    padding: 16px;
    gap: 14px;
    left: 15px;
    right: 15px;
    bottom: 16px;
  }
  .overlay-copy > h2 {
    font-size: 18px;
  }
  .overlay-copy > .eyebrow {
    font-size: 5px;
  }
  .play-button {
    font-size: 9px;
    gap: 12px;
    padding: 13px;
  }
  .overlay-copy > p:last-child {
    font-size: 8px;
  }
  .arena-bottom {
    padding-inline: 17px;
    gap: 8px;
  }
  .arena-bottom > span {
    font-size: 5px;
  }
  .arena-bottom > div {
    font-size: 5px;
    gap: 4px;
  }
  .arena-bottom .icon {
    width: 12px;
  }
  .bottom-caption {
    padding-left: 198px;
  }
  .controls-note .camera-note {
    font-size: 6px;
  }
  .tiny-manifesto p {
    font-size: 8px;
  }
  .header-middle {
    margin-right: 0;
  }
}
@media (max-width: 980px) {
  .app-shell {
    width: calc(100% - 48px);
  }
  .playground {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
  }
  .scoreboard {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: center;
    margin-top: 0;
  }
  .score-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
    align-items: center;
    padding: 20px;
  }
  .score-card .eyebrow {
    font-size: 6px;
    grid-column: 1;
  }
  .score-display {
    grid-column: 1;
    grid-row: 2/4;
    font-size: 49px;
    margin-top: 5px;
  }
  .score-unit {
    display: none;
  }
  .best-row {
    grid-column: 2;
    grid-row: 1/3;
    flex-wrap: wrap;
    border: 0;
    padding: 0;
    gap: 5px;
  }
  .best-row strong {
    width: 100%;
    font-size: 18px;
    margin: 5px 0 0 16px;
  }
  .best-note {
    grid-column: 2;
    grid-row: 3;
    font-size: 5px;
    padding-left: 0;
  }
  .session-stats {
    margin: 0;
    gap: 14px;
  }
  .controls-note,
  .tiny-manifesto {
    display: none;
  }
  .settings {
    grid-row: 1/3;
  }
  .arena-stage {
    height: 455px;
  }
  .bottom-caption {
    padding-left: 202px;
  }
  .bottom-caption > span:last-child {
    display: none;
  }
  .header-middle {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .intro-note {
    font-size: 10px;
  }
  .game-overlay {
    flex-direction: column;
    align-items: flex-start;
    width: 245px;
    right: auto;
    bottom: 14px;
    gap: 12px;
    padding: 15px 17px;
  }
  .game-overlay .play-button {
    padding: 11px 14px;
    min-height: 39px;
    gap: 20px;
  }
  .overlay-copy > p:last-child {
    display: none;
  }
  .arena-toolbar {
    padding: 16px 17px;
  }
  .arena-toolbar > div:first-child {
    font-size: 6px;
    gap: 6px;
  }
  .arena-toolbar #view-label {
    font-size: 5px;
  }
  .coordinate-one {
    left: 18px;
    font-size: 5px;
  }
  .coordinate-two {
    right: 18px;
    font-size: 5px;
  }
  .arena-bottom {
    padding-block: 15px;
  }
  .theme-copy > small {
    font-size: 7px;
  }
  .intro {
    padding-top: 29px;
    padding-bottom: 28px;
  }
  h1 {
    font-size: 37px;
  }
}
@media (max-width: 700px) {
  .app-shell {
    width: calc(100% - 32px);
  }
  .site-header {
    height: 83px;
  }
  .brand {
    font-size: 20px;
    gap: 10px;
  }
  .brand-second {
    font-size: 14px;
  }
  .brand-glyph {
    width: 37px;
    height: 37px;
    border-radius: 10px;
  }
  .brand-glyph svg {
    width: 28px;
    height: 28px;
  }
  .header-middle {
    display: none;
  }
  .header-actions {
    gap: 15px;
  }
  .help-button > span {
    display: none;
  }
  .help-button .icon {
    width: 19px;
    height: 19px;
  }
  .sound-button {
    width: 32px;
    height: 32px;
  }
  .sound-button .icon {
    width: 16px;
    height: 16px;
  }
  .intro {
    padding: 27px 0 23px;
    align-items: center;
    gap: 12px;
  }
  .intro .eyebrow {
    font-size: 6px;
    letter-spacing: 1.2px;
  }
  h1 {
    font-size: 35px;
    letter-spacing: -1.9px;
    line-height: 1.07;
    margin-top: 10px;
  }
  h1 > span {
    letter-spacing: -2px;
  }
  .mobile-only {
    display: block;
  }
  .intro-note {
    font-size: 9px;
    max-width: 95px;
    line-height: 1.8;
    align-self: flex-end;
    padding-bottom: 3px;
  }
  .intro-note em {
    font-size: 11px;
  }
  .playground {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .settings {
    display: contents;
  }
  .settings-heading {
    display: none;
  }
  .setting-group {
    margin: 0;
  }
  .setting-group legend {
    display: none;
  }
  .setting-group:first-of-type {
    order: 0;
    width: 100%;
  }
  .mode-switch {
    max-width: none;
    grid-template-columns: 1fr 1fr;
    border-radius: 9px;
    padding: 4px;
    gap: 5px;
  }
  .mode-switch button {
    padding: 11px 8px;
    gap: 9px;
    font-size: 13px;
    flex-wrap: nowrap;
  }
  .mode-switch button > span {
    width: auto;
    font-size: 6px;
    margin: 0 0 0 5px;
  }
  .mode-switch .icon {
    width: 15px;
    height: 15px;
  }
  .theme-setting {
    order: 2;
    width: 100%;
    margin-top: 1px;
  }
  .theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .theme-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    position: relative;
    border-color: var(--line);
    padding: 12px 11px;
    border-radius: 10px;
    min-width: 0;
  }
  .theme-option.selected {
    border-color: #9eb299;
  }
  .theme-thumbnail {
    width: 37px;
    height: 35px;
    border-radius: 6px;
  }
  .theme-copy {
    font-size: 10px;
    letter-spacing: -0.1px;
    white-space: nowrap;
  }
  .theme-copy > small {
    font-size: 6px;
    line-height: 1.7;
    margin-top: 3px;
    white-space: normal;
  }
  .theme-check {
    position: absolute;
    right: 10px;
    top: 12px;
    width: 12px;
    height: 12px;
  }
  .arena-shell {
    order: 1;
    width: 100%;
    border-radius: 12px;
  }
  .arena-stage {
    height: 350px;
    margin-top: -10px;
  }
  .arena-toolbar {
    padding: 15px 16px 13px;
  }
  .arena-toolbar > div:first-child {
    font-size: 6px;
    gap: 6px;
  }
  .arena-toolbar #view-label {
    font-size: 5px;
  }
  .arena-buttons {
    gap: 6px;
  }
  .arena-icon {
    width: 25px;
    height: 25px;
  }
  .coordinate-one {
    top: 10px;
    left: 16px;
    font-size: 5px;
  }
  .coordinate-two {
    right: 16px;
    bottom: 80px;
    font-size: 5px;
  }
  .game-overlay {
    left: 13px;
    right: 13px;
    bottom: 13px;
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 12px;
    padding: 15px;
  }
  .overlay-copy > .eyebrow {
    font-size: 5px;
    letter-spacing: 0.5px;
    max-width: 145px;
  }
  .overlay-copy > h2 {
    font-size: 16px;
    letter-spacing: -0.5px;
    max-width: 150px;
    line-height: 1.2;
    margin-top: 6px;
  }
  .game-overlay .play-button {
    padding: 11px 12px;
    gap: 9px;
    min-height: 41px;
    font-size: 8px;
  }
  .game-overlay .play-button .icon {
    width: 14px;
  }
  .arena-bottom {
    padding: 14px 15px;
    gap: 10px;
  }
  .arena-bottom > span {
    font-size: 5px;
    letter-spacing: 0.6px;
  }
  .arena-bottom > div {
    font-size: 5px;
    letter-spacing: 0.4px;
    gap: 5px;
  }
  .arena-bottom .icon {
    width: 13px;
    height: 13px;
  }
  .scoreboard {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 0;
  }
  .score-card {
    padding: 18px 15px;
    gap: 0 10px;
    border-radius: 11px;
  }
  .score-display {
    font-size: 45px;
    letter-spacing: -3px;
  }
  .score-card .eyebrow {
    font-size: 5px;
    letter-spacing: 1px;
  }
  .best-row .icon {
    width: 10px;
  }
  .best-row > span {
    font-size: 6px;
  }
  .best-row > strong {
    font-size: 15px;
    margin-left: 15px;
  }
  .best-note {
    font-size: 5px;
    line-height: 1.7;
  }
  .session-stats {
    gap: 14px;
    padding-right: 4px;
  }
  .session-stats > div > span {
    font-size: 7px;
  }
  .session-stats strong {
    font-size: 10px;
  }
  .session-stats strong small {
    font-size: 5px;
  }
  .select-row {
    order: 4;
    flex: 1;
    margin: 3px 0 0;
    padding: 17px 0 0;
    border-top: 1px solid var(--line);
    width: 100%;
    display: flex;
  }
  .select-row > label {
    font-size: 10px;
  }
  .select-row select {
    font-size: 10px;
    max-width: 150px;
    padding-right: 10px;
  }
  .challenge-option {
    order: 5;
    justify-content: space-between;
    padding: 0 0 16px;
    width: 100%;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    gap: 10px;
  }
  .challenge-option > span:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .challenge-option > span:first-child > small {
    margin: 0;
    font-size: 8px;
  }
  .quality-row {
    order: 6;
    width: 100%;
    margin-top: -5px;
    border: 0;
    padding: 0;
  }
  .quality-row label,
  .quality-row select {
    font-size: 9px;
  }
  .setting-footnote {
    order: 7;
    max-width: none;
    margin-top: -4px;
    width: 100%;
    font-size: 7px;
    line-height: 1.8;
    text-align: center;
  }
  .touch-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 13px;
    border-top: 1px solid #48614414;
  }
  .touch-controls > div {
    display: flex;
    gap: 5px;
  }
  .touch-controls button {
    width: 42px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #48614424;
    border-bottom-width: 3px;
    border-radius: 7px;
    background: #ffffff29;
    color: var(--stage-ink);
    font-size: 17px;
    user-select: none;
    touch-action: none;
  }
  .touch-controls button:active {
    background: #ffffff55;
    transform: translateY(1px);
  }
  .bottom-caption {
    padding: 0;
    justify-content: center;
    margin: 24px 0;
    font-size: 5px;
    letter-spacing: 0.8px;
  }
  .bottom-caption > span:last-child {
    display: none;
  }
  footer {
    align-items: flex-start;
    padding: 20px 0;
    gap: 10px;
  }
  footer > span:first-child {
    font-size: 10px;
  }
  footer small {
    display: block;
    margin: 7px 0 0;
    font-size: 7px;
  }
  footer > span:last-child {
    font-size: 5px;
    padding-top: 2px;
    line-height: 1.7;
    text-align: right;
  }
  .footer-version {
    display: block;
    margin: 7px 0 0;
    font-size: 5px;
  }
  .arena-shell:fullscreen {
    padding-inline: 0;
  }
  .arena-shell:fullscreen .arena-stage {
    min-height: 0;
  }
  .arena-shell:fullscreen .arena-bottom {
    padding-inline: 20px;
  }
  .arena-shell:fullscreen .touch-controls {
    position: static;
  }
  .arena-shell:fullscreen .game-overlay {
    left: 13px;
    right: 13px;
    transform: none;
    width: auto;
  }
  .game-feedback {
    font-size: 9px;
    max-width: calc(100% - 25px);
    white-space: normal;
    text-align: center;
    padding: 9px 13px;
  }
  .help-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .help-grid p {
    font-size: 12px;
  }
  dialog {
    padding: 30px 24px;
    max-height: calc(100dvh - 30px);
  }
  dialog > h2 {
    font-size: 30px;
  }
  .dialog-close {
    right: 15px;
    top: 15px;
    width: 31px;
    height: 31px;
  }
  dialog > .eyebrow {
    font-size: 6px;
    max-width: 220px;
  }
  dialog > p:not(.eyebrow) {
    font-size: 12px;
  }
  dialog .play-button {
    width: 100%;
  }
  .countdown {
    font-size: 75px;
  }
}
@media (max-width: 365px) {
  .app-shell {
    width: calc(100% - 26px);
  }
  h1 {
    font-size: 31px;
  }
  .intro-note {
    font-size: 8px;
    max-width: 80px;
  }
  .arena-stage {
    height: 320px;
  }
  .arena-toolbar > div:first-child {
    font-size: 5px;
  }
  .overlay-copy > h2 {
    font-size: 14px;
  }
  .overlay-copy > .eyebrow {
    font-size: 4px;
  }
  .game-overlay {
    padding: 13px 12px;
    gap: 9px;
  }
  .game-overlay .play-button {
    font-size: 7px;
    padding: 10px;
    gap: 7px;
  }
  .theme-option {
    padding: 11px 9px;
  }
  .theme-copy {
    font-size: 9px;
  }
  .theme-copy small {
    font-size: 5px;
  }
  .score-card {
    padding: 16px 12px;
  }
  .best-row > span {
    font-size: 5px;
  }
  .score-display {
    font-size: 40px;
  }
  .scoreboard {
    gap: 14px;
  }
  .session-stats > div > span {
    font-size: 6px;
  }
  .challenge-option > span:first-child > small {
    font-size: 7px;
  }
  .arena-bottom > span {
    font-size: 4px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .brand-glyph {
    animation: appear 0.65s both;
  }
  .intro {
    animation: appear 0.75s 0.05s both;
  }
  .settings,
  .arena-shell,
  .scoreboard {
    animation: appear 0.8s 0.15s both;
  }
  .scoreboard {
    animation-delay: 0.25s;
  }
  .score-display.bump {
    animation: score-pop 0.35s;
  }
  .countdown.beat {
    animation: count-in 0.55s ease-out;
  }
  .game-overlay {
    animation: appear 0.4s both;
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes score-pop {
  50% {
    transform: scale(1.08);
  }
}
@keyframes count-in {
  from {
    opacity: 0.1;
    transform: scale(1.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.theme-check {
  background: var(--accent);
}
@media (hover: none) {
  .camera-note {
    display: none;
  }
}
.motion-button[aria-pressed="true"] {
  color: var(--orange);
  border-color: var(--orange);
}
@media (prefers-reduced-motion: reduce) {
  .motion-button {
    display: none;
  }
}
.score-display.compact-score {
  font-size: 44px;
  letter-spacing: -2px;
}
@media (max-width: 700px) {
  .touch-controls button {
    width: 44px;
    height: 40px;
  }
}

/* Aparência da interface. As paletas das arenas ficam em themes.js. */
:root[data-appearance="dark"] {
  --page: #111a15;
  --paper: #1b2820;
  --ink: #e0e9d9;
  --muted: #a2af9c;
  --line: #2d3c30;
  --orange: #e39a72;
  --orange-light: #382e24;
  --stage: #1d3026;
  --stage-ink: #b0c6a7;
  --score-bg: #284635;
  --score-text: #eaf0dc;
  color-scheme: dark;
}
:root[data-appearance="dark"][data-theme="neon"] {
  --stage: #141c2d;
  --stage-ink: #b1cbde;
  --score-bg: #253b51;
}
:root[data-appearance="dark"][data-theme="crystal"] {
  --stage: #1e283d;
  --stage-ink: #b6c5e2;
  --score-bg: #394f75;
}
:root[data-appearance="dark"] h1 > span {
  color: #a9bc94;
}
:root[data-appearance="dark"] .mode-switch {
  background: #1c2b21;
}
:root[data-appearance="dark"] .mode-switch button {
  color: #a3b49b;
}
:root[data-appearance="dark"] .mode-switch button[aria-pressed="true"] {
  background: #cbd9bf;
  color: #1b3021;
}
:root[data-appearance="dark"]
  .mode-switch
  button:hover:not([aria-pressed="true"]) {
  background: #2a3b2d;
  color: var(--ink);
}
:root[data-appearance="dark"] .theme-option:hover {
  background: #1d2c22;
}
:root[data-appearance="dark"] .theme-option.selected {
  background: #223427;
  border-color: #68865e;
  box-shadow: none;
}
:root[data-appearance="dark"] .theme-option .theme-copy > small {
  color: #a8b59f;
}
:root[data-appearance="dark"] .toggle-track {
  background: #3b4f3d;
}
:root[data-appearance="dark"] .toggle-track:after {
  background: #d8e4cd;
}
:root[data-appearance="dark"] .challenge-option input:checked + .toggle-track {
  background: #769e71;
}
:root[data-appearance="dark"] .game-overlay {
  background: #17271eeb;
  border-color: #b6cf9e20;
  box-shadow: 0 8px 30px #0002;
}
:root[data-appearance="dark"] .overlay-copy > .eyebrow {
  color: #b1c49e;
}
:root[data-appearance="dark"] .play-button {
  color: #19291e;
}
:root[data-appearance="dark"] .play-button:hover:not(:disabled) {
  background: #efad83;
}
:root[data-appearance="dark"] .arena-shell {
  border-color: #83a87520;
}
:root[data-appearance="dark"] .arena-bottom,
:root[data-appearance="dark"] .touch-controls {
  border-color: #d1e6b915;
}
:root[data-appearance="dark"] .touch-controls button {
  background: #ffffff0a;
  border-color: #c4d9b626;
}
:root[data-appearance="dark"] .touch-controls button:active {
  background: #ffffff20;
}
:root[data-appearance="dark"] .keyboard-diagram > span,
:root[data-appearance="dark"] .keyboard-diagram > div > span {
  border-color: #40503c;
}
:root[data-appearance="dark"] .controls-note > p > span,
:root[data-appearance="dark"] .controls-note .camera-note {
  color: #96a78b;
}
:root[data-appearance="dark"] .tiny-manifesto em {
  color: #b2c2a2;
}
:root[data-appearance="dark"] .bottom-caption {
  color: #a8b599;
}
:root[data-appearance="dark"] .countdown {
  background: #00000008;
  text-shadow: 0 4px 25px #0003;
}
:root[data-appearance="dark"] dialog::backdrop {
  background: #07100b99;
}
:root[data-appearance="dark"] .game-over .score-display {
  color: #f0bd8f;
}
.appearance-button[aria-pressed="true"] {
  color: var(--orange);
}
.walls-option {
  padding-block: 16px;
}
@media (max-width: 700px) {
  .site-header {
    gap: 12px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .icon-button {
    width: 30px;
    height: 30px;
  }
  .walls-option {
    margin-top: -4px;
    padding: 0 0 16px;
  }
}
@media (max-width: 365px) {
  .header-actions {
    gap: 5px;
  }
  .header-actions .icon-button {
    width: 28px;
    height: 28px;
  }
}
