@charset "UTF-8";

:root {
  color-scheme: dark;
  --paper: #0d0f14;
  --ink: #f5f6fa;
  --muted: #a0a7b4;
  --blue: #78a7ff;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.page { max-width: 1440px; min-height: 100svh; padding: 0 56px; margin: auto; display: flex; flex-direction: column; }
.header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 24px; letter-spacing: -1.3px; font-weight: 800; white-space: nowrap; }
.brand img { display: block; width: 216px; max-width: 100%; height: auto; }
.header-note { font-size: 13px; color: var(--muted); }
main { text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 0; }
.status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
h1 { margin: 30px 0 0; display: flex; flex-direction: column; align-items: center; font-weight: 800; }
.brb { font-size: clamp(136px, 17vw, 210px); letter-spacing: -.055em; line-height: .95; padding-right: .055em; }
.period { color: var(--blue); }
.description { font-size: 16px; line-height: 1.8; color: var(--muted); margin: 25px 0 0; }
footer { min-height: 105px; display: flex; justify-content: center; align-items: center; padding: 24px 0 34px; }
.urgent { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.urgent a { color: var(--blue); }
.urgent a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) {
  .page { padding: 0 24px; }
  .header { min-height: 80px; }
  .brand { font-size: 22px; }
  .header-note { display: none; }
  main { padding: 48px 0 32px; }
  .brb { font-size: clamp(132px, 43vw, 195px); }
  .description { max-width: 330px; font-size: 16px; }
  .urgent { flex-direction: column; gap: 7px; }
  footer { padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Keep the maintenance notice compact so the game is easy to reach. */
main { padding: 24px 0; }
h1 { margin-top: 18px; }
.brb { font-size: clamp(96px, 10vw, 130px); }
.description { margin-top: 18px; }
.game { width: min(100%, 344px); margin-top: 30px; text-align: left; outline-offset: 8px; border-radius: 8px; }
.game:focus-visible { outline: 2px solid #78a7ff; }
.game-heading { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.game-heading h2 { margin: 0; font-size: 16px; font-weight: 500; text-align: center; }
.scores { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.scores strong { color: var(--ink); font-variant-numeric: tabular-nums; margin-left: 5px; }
.board { position: relative; overflow: hidden; border: 1px solid #2a3240; border-radius: 8px; background: #131720; }
#snake-board { width: 100%; aspect-ratio: 1; display: block; touch-action: none; }
.game-overlay { position: absolute; inset: 0; background: #131720ed; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.game-overlay[hidden] { display: none; }
.game-overlay p { font-size: 16px; margin: 0; }
.play-button { border: 0; border-radius: 5px; background: #2563eb; color: white; padding: 12px 20px; min-height: 44px; cursor: pointer; font-size: 14px; }
.play-button:hover { background: #1d4ed8; }
.game-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.game-toolbar p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; }
.game-toolbar button { background: none; border: 0; color: var(--blue); font-size: 13px; cursor: pointer; min-height: 44px; padding: 8px 0 8px 8px; }
.game-toolbar button:disabled { color: #929baa; cursor: default; }
.touch-controls { display: none; text-align: center; margin-top: 8px; }
.touch-controls div { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.touch-controls button { width: 48px; height: 44px; border: 1px solid #303744; border-radius: 5px; background: #171e2a; color: var(--blue); font-size: 22px; touch-action: manipulation; cursor: pointer; }
.touch-controls button:active { background: #223453; }
.game-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px), (pointer: coarse) { .touch-controls { display: block; } }

.touch-help { display: none; }
@media (max-width: 600px), (pointer: coarse) { .keyboard-help { display: none; } .touch-help { display: inline; } }
