/* Power the Town base: tokens, reset, screens, type. */
@font-face {
  font-family: 'Fredoka';
  src: url('../assets/fonts/fredoka.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #1e3a5f;          /* deep navy text */
  --paper: #ffffff;
  --chip: rgba(255, 255, 255, 0.88);
  --sun: #ffd94d;
  --ok: #5aa876;
  --alert: #c94f4f;
  --gen: #e8734a;
  --batt: #54c6e8;
  --money: #2c8c4f;
  --dock: rgba(23, 46, 79, 0.95);
  --dock-slot: #2d4a73;
  --display: 'Fredoka', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { font-family: var(--body); color: var(--ink); user-select: none; }
button { font-family: inherit; border: none; cursor: pointer; }

/* full-screen layers */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; z-index: 10; }
.screen[hidden] { display: none; }

h1.brand { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 8vw, 88px);
  margin: 0; color: var(--paper); text-shadow: 0 3px 24px rgba(20, 40, 80, 0.35); }
.btn-big { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--ink);
  background: var(--sun); border-radius: 22px; padding: 18px 56px;
  box-shadow: 0 6px 0 rgba(20, 40, 80, 0.25); min-height: 64px; }
.btn-big:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(20, 40, 80, 0.25); }
.chip { background: var(--chip); border-radius: 16px; padding: 8px 16px; font-weight: 700; }
button.chip { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

#titleScreen, #readyScreen, #resumeScreen { background: rgba(20, 40, 80, 0.18); }
#overScreen { background: rgba(20, 40, 80, 0.45); }
#teamName { font-family: var(--display); font-size: 30px; padding: 12px 28px; }
#finalScore { font-family: var(--display); font-weight: 700; font-size: 96px; color: var(--sun);
  text-shadow: 0 4px 30px rgba(0,0,0,0.35); line-height: 1; }
#finalCode { font-family: ui-monospace, monospace; font-size: 44px; letter-spacing: 0.12em;
  padding: 14px 30px; }
