@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --ink: #1c1c1e;
  --sky: #4a90d9;
  --sky-dark: #33689e;
  --gold: #f2b134;
  --gold-dark: #c98f1f;
  --cream: #f8f4e8;
  --sage: #7ec8c2;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

h1, .eyebrow, .finale-card .title, .party-code-display .code {
  font-family: 'Baloo 2', 'Poppins', sans-serif;
}

.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 40px;
  max-width: 480px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--sky);
  text-transform: uppercase;
  margin-bottom: 6px;
}

h1 {
  font-size: 28px;
  margin: 0 0 8px;
  line-height: 1.15;
}

p.subtitle {
  color: #6b6b6b;
  font-size: 15px;
  margin: 0 0 28px;
  line-height: 1.4;
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

button {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 12px;
  transition: transform 0.1s ease;
}
button:active { transform: scale(0.97); }

.btn-primary {
  background: var(--sky);
  color: white;
}
.btn-secondary {
  background: var(--white);
  color: var(--sky);
  border: 2px solid var(--sky);
}
.btn-ghost {
  background: transparent;
  color: #6b6b6b;
  text-decoration: underline;
}

input[type="text"] {
  width: 100%;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  text-align: center;
  text-transform: uppercase;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid #ddd;
  margin-bottom: 16px;
  font-family: inherit;
}
input[type="text"]:focus { outline: none; border-color: var(--sky); }

.party-code-display {
  background: var(--sky);
  color: white;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}
.party-code-display .code {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 8px;
  margin: 8px 0 0;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.stat-row:last-child { border-bottom: none; }
.stat-label { font-size: 14px; color: #6b6b6b; }
.stat-value { font-size: 18px; font-weight: 700; color: var(--ink); }

.skill-bar-track {
  background: #eee;
  border-radius: 6px;
  height: 8px;
  overflow: hidden;
  margin-top: 4px;
}
.skill-bar-fill {
  background: var(--sage);
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
}

.station-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.station-chip {
  padding: 14px 8px;
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--white);
  border: 2px solid #eee;
  color: #999;
}
.station-chip.done {
  background: var(--cream);
  border-color: var(--sage);
  color: var(--ink);
}
.station-chip.locked {
  background: #f2f2f2;
  border-color: #e5e5e5;
  color: #bbb;
}
a.station-chip {
  background: var(--white);
  border-color: var(--sky);
  color: var(--sky);
}

.player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.player-chip {
  background: var(--cream);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.spacer { flex: 1; }

.center { text-align: center; }

.big-emoji { font-size: 56px; text-align: center; margin-bottom: 8px; }

.finale-card {
  background: linear-gradient(160deg, var(--ink), #2b2b2d);
  color: white;
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  margin-bottom: 20px;
}
.finale-card .tier {
  display: inline-block;
  background: var(--sky);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.finale-card .title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}
.finale-card .genre {
  color: var(--sage);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}
.finale-card .tagline {
  font-style: italic;
  color: #ccc;
  font-size: 14px;
}

.game-target {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--sky);
  margin: 30px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 42px;
  font-weight: 800;
  user-select: none;
}

.timer-bar-track {
  background: #eee;
  border-radius: 8px;
  height: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.timer-bar-fill {
  background: var(--sky);
  height: 100%;
  transition: width 0.1s linear;
}

.badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.badge {
  flex: 1;
  background: var(--cream);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.badge .num { font-size: 20px; font-weight: 800; color: var(--sky-dark); }
.badge .lbl { font-size: 11px; color: #6b6b6b; text-transform: uppercase; letter-spacing: 0.5px; }

.tiny-note {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-top: 10px;
}

a { color: var(--sky); }

* { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, .station-chip { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
