/*
 * Design tokens. Components read these instead of hard-coded values, so a
 * reskin (or moving to FIAT preset tokens) only changes this block.
 */
:root {
  --color-ink: #0b3d5c;
  --color-text: #fff;
  --color-accent: #ffd84d;
  --color-accent-shadow: #c9a521;
  --color-success: #4fe39a;
  --color-success-light: #b5ffd6;
  --color-success-dark: #1fae6c;
  --color-warning: #ff8a5a;
  --color-warning-light: #ffc29a;
  --color-danger: #ff5a5a;
  --color-hud: rgba(4, 28, 48, 0.78);
  --color-surface: rgba(5, 30, 48, 0.92);
  --color-scrim: rgba(5, 30, 48, 0.55);
  --color-track: rgba(0, 0, 0, 0.35);
  --color-line: rgba(255, 255, 255, 0.15);
  --text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  --radius-card: 16px;
  --radius-pill: 999px;
}

html,
body,
#app,
#game-container {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  background-color: var(--color-ink);
  font-family:
    Roboto,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  /* Holding the screen must never scroll, zoom, pull-to-refresh, select text, or open the long-press menu. */
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Shared by the Vue screens that sit on top of the game. */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px
    max(32px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

/* Shared chrome for the energy, score, pause, and sound controls. */
.hud-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  background: var(--color-hud);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hud-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}
