* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #0B1F3A;
  color: #fff;
  font-family: 'Heebo', 'Segoe UI', Arial, sans-serif;
  overscroll-behavior: none;
  user-select: none;
}

.screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  align-items: center;
  justify-content: center;
}
.screen.active { display: flex; }

.card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.card h1 { font-size: 28px; margin: 0; }
.card h2 { font-size: 22px; margin: 0; }
.hint { color: #B9C6E0; font-size: 15px; margin: 0; }

input {
  width: 100%;
  font-size: 16px;
  padding: 14px 16px;
  min-height: 44px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-align: center;
}
input::placeholder { color: #7A88A8; }

.btn-primary {
  width: 100%;
  min-height: 44px;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 24px;
  border: none;
  border-radius: 14px;
  background: #4BD37B;
  color: #06331A;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn-primary:active { transform: scale(0.97); }

.error { color: #FF8B8B; font-size: 14px; margin: 0; }

.my-bird { font-size: 72px; }

/* ---------- Play ---------- */
.play-screen {
  padding: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  font-size: 28px;
  font-weight: 800;
  background: rgba(255,255,255,0.06);
}
.tap-zone {
  flex: 1;
  border: none;
  background: linear-gradient(#3FA9FF, #2E86D6);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
}
.tap-zone:active { transform: scale(0.98); background: linear-gradient(#2E86D6, #1F6BB0); }
.tap-zone.too-high { background: linear-gradient(#FF9138, #E0741F); }
.dead-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  background: rgba(11,31,58,0.85);
  pointer-events: none;
}

.my-final { font-size: 64px; font-weight: 800; color: #FFD23F; }
.record { color: #FFD23F; font-weight: 700; font-size: 18px; }

.dead-box { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 24px; }
.dead-title { font-size: 26px; font-weight: 800; }
.dead-score { font-size: 20px; color: #FFD23F; font-weight: 700; }
.dead-score span { font-size: 40px; }
.dead-sub { font-size: 15px; color: #B9C6E0; }
