/* Orbitron is licensed under the SIL Open Font License; see ../assets/fonts/OFL.txt */
@font-face {
  font-family: Orbitron;
  src: url(../assets/fonts/Orbitron.ttf) format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #080e17;
  --panel: #101b28;
  --line: #243241;
  --text: #edf6f4;
  --muted: #8d9fae;
  --accent: #b7f575;
  --cyan: #67dfd5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
input {
  outline-offset: 5px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
}
button {
  font: inherit;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--line);
  background: #13202e;
  border-radius: 12px;
  padding: 12px 18px;
}
button:hover {
  background: #203244;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  height: 76px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 850;
  font-size: 25px;
  letter-spacing: 5px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand i {
  display: inline-block;
  width: 25px;
  height: 25px;
  border: 7px solid var(--accent);
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-35deg);
}
nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}
nav a:hover {
  color: var(--accent);
}
.tag {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 2px;
  border: 1px solid #405137;
  padding: 7px 10px;
  border-radius: 30px;
}
.page {
  max-width: 1500px;
  margin: auto;
  padding: 28px 4%;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--accent);
  font-weight: 700;
}
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}
.intro h1 {
  font-size: 27px;
  letter-spacing: -1px;
  margin: 8px 0;
}
.intro p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.status {
  font-size: 12px;
  color: var(--muted);
}
.status b {
  color: var(--accent);
  margin-right: 6px;
}
.arena {
  position: relative;
  height: min(690px, 75vh);
  min-height: 480px;
  border: 1px solid #2a3a43;
  border-radius: 20px;
  overflow: hidden;
  background: #09131c;
  isolation: isolate;
}
#game {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.arena:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 120px #02061066;
  border-radius: 20px;
  z-index: 1;
}
.hud {
  position: absolute;
  inset: 22px 24px auto;
  display: flex;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
}
.scores {
  display: flex;
  gap: 28px;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.8px;
  margin-bottom: 6px;
}
.stat strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.stat:first-child strong {
  color: var(--accent);
}
.tools {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.tools button {
  padding: 10px 13px;
  font-size: 12px;
  background: #101c2be6;
}
.overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #07101935;
  backdrop-filter: blur(0.5px);
}
[hidden] {
  display: none !important;
}
.card {
  width: 390px;
  max-width: calc(100% - 32px);
  text-align: center;
  padding: 32px;
  border: 1px solid #35473f;
  background: linear-gradient(145deg, #172630f5, #0d1725f5);
  border-radius: 24px;
  box-shadow: 0 25px 90px #0007;
}
.hero-icon {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  border: 1px solid #506442;
  border-radius: 20px;
  background: #b7f5750d;
  margin: 0 auto 20px;
  font-size: 36px;
  color: var(--accent);
}
.card h2 {
  font-size: 32px;
  letter-spacing: -1.2px;
  margin: 10px 0;
}
.card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 10px 0 24px;
}
.card label {
  display: block;
  text-align: left;
  font-size: 11px;
  color: #b8c5ce;
  margin-bottom: 9px;
}
.card input {
  width: 100%;
  border-radius: 10px;
  background: #08121c;
  border: 1px solid #34434f;
  color: white;
  padding: 14px;
  font: inherit;
  font-size: 14px;
}
.primary {
  background: var(--accent);
  color: #172211;
  font-weight: 750;
  border-color: var(--accent);
}
.primary:hover {
  background: #ccff94;
}
.card .primary {
  width: 100%;
  margin: 14px 0 12px;
  padding: 15px;
}
.link-button {
  background: none;
  border: 0;
  color: #bac8d1;
  font-size: 12px;
}
.card .note {
  font-size: 10px;
  letter-spacing: 1px;
  color: #6f8696;
  margin: 18px 0 0;
}
.bottom-hud {
  position: absolute;
  bottom: 22px;
  left: 24px;
  z-index: 3;
  pointer-events: none;
}
.boost-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #b4c4cf;
  margin-bottom: 9px;
}
.meter {
  width: 150px;
  height: 5px;
  background: #2b3740;
  border-radius: 5px;
  overflow: hidden;
}
.meter i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
}
.hint {
  font-size: 11px;
  color: #6d8597;
  margin-top: 12px;
}
#map {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 124px;
  height: 124px;
  background: #09141bd9;
  border: 1px solid #31424d;
  border-radius: 14px;
  z-index: 2;
}
#warning {
  position: absolute;
  top: 95px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffc294;
  font-size: 12px;
  z-index: 3;
}
#boost {
  position: absolute;
  right: 170px;
  bottom: 30px;
  z-index: 3;
  border-radius: 50%;
  height: 66px;
  width: 66px;
  padding: 0;
  color: var(--accent);
  border-color: #809e58;
  background: #17271fbb;
  touch-action: none;
  font-size: 11px;
  font-weight: 800;
}
.under {
  display: flex;
  justify-content: space-between;
  padding: 17px 3px;
  font-size: 11px;
  color: var(--muted);
}
kbd {
  background: #17232f;
  border: 1px solid #34404b;
  padding: 3px 5px;
  border-radius: 4px;
  font: 10px inherit;
  color: #c9d6df;
}
.details {
  margin: 38px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
}
.details h2 {
  font-size: 21px;
}
.details p,
.details li,
details {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.features span {
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 7px 11px;
  border-radius: 20px;
  color: #bac7d0;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
summary {
  cursor: pointer;
  color: #d9e4e9;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.seo {
  margin: 28px 0;
}
.seo h3 {
  font-size: 15px;
  color: #d0e0e3;
}
.seo ul {
  padding-left: 20px;
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
#fps {
  position: absolute;
  top: 80px;
  left: 24px;
  font: 11px monospace;
  color: var(--accent);
  z-index: 3;
}
body.playing {
  overflow: hidden;
}
body.playing header,
body.playing .intro,
body.playing .under,
body.playing .details,
body.playing .seo,
body.playing footer {
  display: none;
}
body.playing .page {
  padding: 0;
  max-width: none;
}
body.playing .arena {
  height: 100dvh;
  min-height: 0;
  border: 0;
  border-radius: 0;
}
#results {
  display: flex;
  justify-content: space-around;
  margin: 22px 0;
  color: #d7e4e8;
  font-size: 13px;
  line-height: 2;
}
#results strong {
  display: block;
  font-size: 23px;
  color: var(--accent);
}
@media (max-width: 650px) {
  header {
    height: 62px;
  }
  nav a:not(:last-child) {
    display: none;
  }
  .tag {
    display: none;
  }
  .page {
    padding: 20px 14px;
  }
  .intro h1 {
    font-size: 23px;
  }
  .status {
    display: none;
  }
  .arena {
    min-height: 540px;
    height: 76vh;
  }
  .hud {
    inset: 16px 14px auto;
  }
  .scores {
    gap: 16px;
  }
  .stat strong {
    font-size: 20px;
  }
  .tools {
    gap: 4px;
  }
  .tools button {
    font-size: 10px;
    padding: 8px;
  }
  .card {
    padding: 25px;
  }
  .card h2 {
    font-size: 28px;
  }
  .under {
    line-height: 2;
    gap: 15px;
  }
  .under > span:last-child {
    display: none;
  }
  .details,
  .seo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  #map {
    width: 95px;
    height: 95px;
    right: 15px;
    bottom: 18px;
  }
  #boost {
    right: 125px;
    bottom: 22px;
  }
  .bottom-hud {
    left: 16px;
    bottom: 23px;
  }
  .meter {
    width: 100px;
  }
  .hint {
    max-width: 110px;
    line-height: 1.5;
  }
  .brand {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
dialog {
  color: var(--text);
  background: #101d2b;
  border: 1px solid #425360;
  border-radius: 24px;
  padding: 25px;
  width: 440px;
  max-width: calc(100% - 24px);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #030811bb;
  backdrop-filter: blur(5px);
}
dialog h2 {
  margin: 0 0 6px;
  font-size: 24px;
}
dialog p {
  color: var(--muted);
  font-size: 13px;
}
#skin-preview {
  width: 100%;
  height: 160px;
  background: radial-gradient(ellipse, #29354c, #101923);
  border-radius: 16px;
  margin: 10px 0;
}
.skin-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.skin-fields label {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skin-fields input,
.skin-fields select {
  width: 100%;
  height: 40px;
  border: 1px solid #40515f;
  border-radius: 8px;
  background: #172637;
  color: white;
  padding: 4px;
}
.skin-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.skin-presets button {
  font-size: 11px;
  padding: 8px 10px;
}
.skin-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 10px;
}
#customize {
  border: 1px solid #44573e;
  border-radius: 9px;
  padding: 9px 14px;
  color: var(--accent);
  display: block;
  margin: 0 auto 5px;
}
/* Landscape phones use the full viewport, including the menu and paused state. */
@media (orientation: landscape) and (max-height: 600px),
  (orientation: landscape) and (any-pointer: coarse) {
  html,
  body {
    width: 100%;
    height: 100%;
    overscroll-behavior: none;
  }
  body {
    overflow: hidden;
  }
  body header,
  body .intro,
  body .under,
  body .details,
  body .seo,
  body footer {
    display: none;
  }
  body .page {
    padding: 0;
    max-width: none;
  }
  body .arena,
  body.playing .arena {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }
  .hud {
    inset: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) auto
      max(12px, env(safe-area-inset-left));
    align-items: start;
  }
  .scores {
    gap: 20px;
  }
  .stat span {
    font-size: 9px;
    margin-bottom: 3px;
  }
  .stat strong {
    font-size: 19px;
  }
  .tools button {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 11px;
  }
  .overlay {
    padding: 58px max(12px, env(safe-area-inset-right)) 65px max(12px, env(safe-area-inset-left));
  }
  .card {
    padding: 14px 22px;
    width: 390px;
    max-height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: 16px;
  }
  .card .hero-icon,
  .card .note,
  .card > .eyebrow {
    display: none;
  }
  .card h2 {
    font-size: 24px;
    margin: 0 0 5px;
  }
  .card p {
    font-size: 12px;
    line-height: 1.4;
    margin: 4px 0 10px;
  }
  .card label {
    margin-bottom: 5px;
  }
  .card input {
    padding: 9px 12px;
    font-size: 14px;
  }
  .card .primary {
    padding: 10px;
    margin: 8px 0 4px;
    min-height: 40px;
  }
  .card .link-button {
    padding: 7px 12px;
    min-height: 36px;
  }
  #start-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
  }
  #start-form h2,
  #start-form p,
  #start-form label,
  #start-form input,
  #start-form .primary {
    grid-column: 1/-1;
  }
  #start-form #customize {
    font-size: 11px;
    margin: 2px 0;
    padding: 7px;
  }
  #start-form #help {
    font-size: 11px;
  }
  .bottom-hud {
    left: max(14px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .boost-label {
    font-size: 9px;
    margin-bottom: 6px;
  }
  .meter {
    width: 110px;
  }
  .hint {
    display: none;
  }
  #map {
    width: 72px;
    height: 72px;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    border-radius: 10px;
  }
  #boost {
    width: 56px;
    height: 56px;
    right: calc(max(12px, env(safe-area-inset-right)) + 86px);
    bottom: max(12px, env(safe-area-inset-bottom));
    font-size: 10px;
  }
  #warning {
    top: 52px;
    font-size: 10px;
  }
  #results {
    margin: 8px 0;
    line-height: 1.4;
  }
  #results strong {
    font-size: 20px;
  }
  #skin-dialog {
    width: 680px;
    max-height: calc(100dvh - 16px);
    padding: 16px;
    display: none;
  }
  #skin-dialog[open] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
  }
  #skin-dialog h2,
  #skin-dialog > p {
    grid-column: 1/-1;
    margin: 0;
  }
  #skin-preview {
    grid-column: 1;
    grid-row: 3/5;
    height: 160px;
    margin: 0;
  }
  .skin-presets {
    grid-column: 2;
    margin: 0;
    gap: 4px;
  }
  .skin-presets button {
    padding: 6px;
    font-size: 10px;
    min-height: 32px;
  }
  .skin-fields {
    grid-column: 2;
    gap: 8px;
  }
  .skin-fields label {
    font-size: 10px;
    gap: 3px;
  }
  .skin-fields input,
  .skin-fields select {
    height: 34px;
  }
  .skin-actions {
    grid-column: 1/-1;
    margin-top: 0;
  }
  .skin-actions button {
    padding: 8px 16px;
    min-height: 40px;
  }
  #skin-status:empty {
    display: none;
  }
}
#rotate-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at top, #203448, #080e17);
  text-align: center;
}
#rotate-screen .rotate-card {
  max-width: 330px;
}
#rotate-screen h2 {
  font-size: 28px;
  margin: 22px 0 12px;
}
#rotate-screen p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
#rotate-screen button {
  width: 100%;
  margin-top: 16px;
  min-height: 48px;
}
.phone-outline {
  width: 100px;
  height: 56px;
  border: 3px solid var(--accent);
  border-radius: 12px;
  margin: auto;
  position: relative;
  box-shadow: 0 0 35px #b7f57522;
}
.phone-outline:after {
  content: '';
  position: absolute;
  right: 7px;
  top: 20px;
  width: 5px;
  height: 10px;
  background: var(--accent);
  border-radius: 5px;
}
body.rotate-required {
  overflow: hidden;
}
body.rotate-required > header,
body.rotate-required > main {
  visibility: hidden;
}
/* Neon arcade typography, with quiet body copy for readable instructions. */
:root {
  --bg: #090b1d;
  --panel: #15172f;
  --line: #343455;
  --text: #f0edff;
  --muted: #b0accb;
  --accent: #59f5e8;
  --cyan: #59f5e8;
  --pink: #ff85d5;
  --violet: #bd9aff;
  --game-font: Orbitron, 'Trebuchet MS', sans-serif;
}
body {
  background: radial-gradient(ellipse at top, #1a1434, var(--bg) 65%);
}
h1,
h2,
h3,
.brand,
button,
.eyebrow,
.tag,
.stat,
.boost-label,
#results strong {
  font-family: var(--game-font);
  font-weight: 700;
}
.intro h1,
.card h2,
dialog h2,
#rotate-screen h2 {
  color: #f3dfff;
  text-shadow: 0 0 20px #c879ff50;
  letter-spacing: 0.3px;
  line-height: 1.25;
}
.intro h1 {
  font-size: 25px;
}
.card h2 {
  font-size: 26px;
}
.brand {
  color: var(--cyan);
  text-shadow: 0 0 18px #59f5e850;
}
.brand i {
  border-color: var(--pink);
}
.eyebrow {
  color: var(--pink);
  letter-spacing: 2px;
  font-size: 10px;
}
.tag {
  border-color: #785592;
  color: var(--violet);
  font-size: 9px;
}
.status b {
  color: var(--cyan);
}
.card {
  background: linear-gradient(145deg, #231b39f5, #10182bf5);
  border-color: #795291;
  box-shadow:
    0 20px 80px #0008,
    0 0 35px #a878ff12;
}
.hero-icon {
  color: var(--cyan);
  background: #59f5e80c;
  border-color: #50928c;
}
.primary {
  background: linear-gradient(110deg, #69f9e8, #8de5ff);
  border-color: #8bfbee;
  color: #101c30;
  box-shadow: 0 0 18px #59f5e821;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.primary:hover {
  background: linear-gradient(110deg, #a1fff3, #b6efff);
  box-shadow: 0 0 24px #59f5e840;
}
button {
  font-size: 12px;
}
.tools button {
  color: #dcd4ff;
  border-color: #4b4468;
  background: #15162eea;
}
.tools button:hover {
  border-color: var(--violet);
}
.link-button {
  color: #d4c3f3;
}
.card input {
  border-color: #554568;
  background: #101226;
  color: #f5efff;
}
#customize {
  border-color: #6a538b;
  color: var(--pink);
  font-size: 10px;
}
.stat span {
  color: #b6aed2;
  font-size: 9px;
  letter-spacing: 1.2px;
}
.stat strong {
  font-size: 23px;
  text-shadow: 0 0 13px currentColor;
}
.stat:nth-child(1) strong {
  color: var(--cyan);
}
.stat:nth-child(2) strong {
  color: var(--pink);
}
.stat:nth-child(3) strong {
  color: #ffdf88;
}
.meter i {
  background: linear-gradient(90deg, var(--violet), var(--pink), var(--cyan));
}
.boost-label {
  color: var(--cyan);
  font-size: 9px;
}
#boost {
  color: var(--cyan);
  border-color: #68cfc8;
  background: #19203bdf;
  box-shadow: 0 0 20px #59f5e81c;
  font-size: 9px;
}
.details h2,
.seo h3 {
  color: #d3b7ff;
}
.features span {
  color: #d3b7ff;
  border-color: #473b67;
}
summary {
  color: #d7cff0;
}
nav a:hover,
footer a {
  color: var(--cyan);
}
#results strong {
  color: var(--pink);
}
dialog {
  background: #17172e;
  border-color: #70538c;
}
.skin-presets button {
  color: #e9d4ff;
  background: #27213b;
}
.skin-fields label {
  color: #d6cbe9;
}
.skin-fields input,
.skin-fields select {
  background: #18182d;
  border-color: #554568;
}
.phone-outline {
  border-color: var(--cyan);
  box-shadow: 0 0 35px #59f5e822;
}
@media (max-width: 650px) {
  .intro h1 {
    font-size: 20px;
  }
  .card h2 {
    font-size: 22px;
  }
  .stat strong {
    font-size: 18px;
  }
  .scores {
    gap: 13px;
  }
  .tools button {
    font-size: 9px;
    padding: 8px;
  }
  .card .primary {
    font-size: 12px;
  }
}
@media (orientation: landscape) and (max-height: 600px),
  (orientation: landscape) and (any-pointer: coarse) {
  .card h2 {
    font-size: 20px;
  }
  .stat strong {
    font-size: 18px;
  }
  .card .primary {
    font-size: 12px;
  }
  .tools button {
    font-size: 9px;
  }
  #start-form #customize,
  #start-form #help {
    font-size: 9px;
  }
  .skin-presets button {
    font-size: 9px;
  }
  #rotate-screen h2 {
    font-size: 24px;
  }
}
#settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  color: var(--cyan);
}
#settings-dialog {
  width: 980px;
  max-width: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  overscroll-behavior: contain;
}
#settings-dialog .settings-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  background: #17172ef5;
  border-bottom: 1px solid var(--line);
}
#settings-dialog .settings-heading h2 {
  font-size: 20px;
  margin: 0;
}
#settings-dialog .settings-content {
  padding: 0 24px 20px;
}
#settings-dialog .under {
  display: flex;
  gap: 12px;
  line-height: 2;
  flex-wrap: wrap;
}
#settings-dialog .details {
  display: grid;
  gap: 30px;
  margin: 20px 0;
}
#settings-dialog .seo {
  display: block;
}
#settings-dialog footer {
  display: flex;
  padding: 20px 0 0;
}
#settings-dialog .details h2 {
  font-size: 18px;
}
#settings-dialog section {
  scroll-margin-top: 85px;
}
@media (max-width: 700px) {
  #settings-dialog .details {
    grid-template-columns: 1fr;
  }
  #settings-dialog .settings-heading {
    padding: 12px 16px;
  }
  #settings-dialog .settings-heading h2 {
    font-size: 16px;
  }
  #settings-dialog .settings-content {
    padding: 0 16px 16px;
  }
}
@media (orientation: landscape) and (max-height: 600px),
  (orientation: landscape) and (any-pointer: coarse) {
  #settings-dialog {
    max-height: calc(100dvh - 16px);
  }
  #settings-dialog .settings-heading {
    padding: 10px 16px;
  }
  #settings-dialog .settings-heading h2 {
    font-size: 16px;
  }
  #settings-dialog .details {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  #settings-dialog .details p,
  #settings-dialog details {
    font-size: 12px;
  }
  .tools {
    gap: 4px;
  }
  .tools button {
    padding: 8px;
  }
  #settings {
    padding: 8px;
    min-width: 36px;
  }
}
@media (any-pointer: coarse) {
  .hint {
    display: block;
    font-size: 10px;
    max-width: 210px;
    margin-top: 6px;
  }
  .hint .desktop-boost-hint {
    display: none;
  }
}
@media (any-pointer: fine) {
  .mobile-boost-hint {
    display: none;
  }
}
#name {
  font-family: var(--game-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.5;
}
#name::placeholder {
  font-family: var(--game-font);
  color: #c1b5db;
  opacity: 1;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3px;
}
@media (orientation: landscape) and (max-height: 600px),
  (orientation: landscape) and (any-pointer: coarse) {
  #name,
  #name::placeholder {
    font-size: 12px;
  }
}
/* Consistent, compact menu rhythm on every touch landscape viewport. */
@media (orientation: landscape) and (max-height: 600px),
  (orientation: landscape) and (any-pointer: coarse) {
  #menu {
    padding: 54px max(16px, env(safe-area-inset-right)) 54px max(16px, env(safe-area-inset-left));
  }
  #start-form {
    width: min(440px, 72vw);
    padding: 18px 24px;
    gap: 8px 12px;
    align-content: start;
    max-height: 100%;
    scrollbar-width: thin;
  }
  #start-form .hero-icon,
  #start-form > .eyebrow,
  #start-form .note {
    display: none;
  }
  #start-form h2 {
    font-size: clamp(18px, 2.7vw, 24px);
    line-height: 1.3;
    margin: 0;
    text-align: center;
  }
  #start-form > p:not(.note) {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.5;
  }
  #start-form label {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
  }
  #start-form #name {
    margin: 0;
    padding: 10px 14px;
    height: 42px;
    font-size: 12px;
    line-height: 20px;
  }
  #start-form .primary {
    margin: 2px 0 0;
    padding: 11px 16px;
    min-height: 42px;
    font-size: 12px;
  }
  #start-form #customize,
  #start-form #help {
    margin: 0;
    min-height: 36px;
    padding: 8px 6px;
    font-size: 9px;
    line-height: 1.4;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (orientation: landscape) and (max-height: 360px) {
  #menu {
    padding-top: 48px;
    padding-bottom: 38px;
  }
  #start-form {
    padding: 10px 18px;
    gap: 5px 10px;
  }
  #start-form h2 {
    font-size: 18px;
  }
  #start-form > p:not(.note) {
    font-size: 10px;
    margin: 0;
  }
  #start-form label {
    font-size: 10px;
  }
  #start-form #name {
    height: 36px;
    padding: 7px 12px;
  }
  #start-form .primary {
    min-height: 36px;
    padding: 8px 12px;
  }
  #start-form #customize,
  #start-form #help {
    min-height: 32px;
    padding: 6px;
  }
}
