* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #ef4444;
  --red-dark: #b91c1c;
  --yellow: #facc15;
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #222222;
  --text: #f5f5f5;
  --muted: #71717a;
  --dimmer: #3f3f46;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* ── Overlays ── */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
}

/* ── Screens ── */
.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 2rem 1.25rem;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Typography ── */
.big-number {
  font-size: clamp(5rem, 28vw, 14rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--red);
  text-shadow: 0 0 20px var(--red), 0 0 60px rgba(239,68,68,0.4);
  animation: flicker 3s infinite;
  user-select: none;
}

.big-number.yellow {
  color: var(--yellow);
  text-shadow: 0 0 20px var(--yellow), 0 0 60px rgba(250,204,21,0.4);
}

.big-number.grey {
  color: #333;
  text-shadow: none;
  animation: none;
  font-size: clamp(4rem, 20vw, 10rem);
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.7; }
  94% { opacity: 1; }
  96% { opacity: 0.8; }
  97% { opacity: 1; }
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.headline {
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.subtext {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 22rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ── Buttons ── */
.btn {
  display: block;
  width: 100%;
  max-width: 22rem;
  padding: 1.1rem 2rem;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.1s;
  text-align: center;
}

.btn:active {
  transform: scale(0.96);
}

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 20px rgba(239,68,68,0.5), 0 0 60px rgba(239,68,68,0.2);
}

.btn-red:hover {
  background: #f87171;
}

.btn-green {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 0 20px rgba(22,163,74,0.5);
}

.btn-green:hover {
  background: #22c55e;
}

.btn-yellow {
  background: var(--yellow);
  color: #000;
  box-shadow: 0 0 20px rgba(250,204,21,0.5), 0 0 60px rgba(250,204,21,0.2);
}

.btn-yellow:hover {
  background: #fde047;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--dimmer);
}

.btn + .btn {
  margin-top: 0.75rem;
}

/* ── Dare Card ── */
.dare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  max-width: 32rem;
  width: 100%;
  margin-bottom: 2rem;
}

.dare-card .dare-text {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.dare-card .dare-text::before { content: '\201C'; }
.dare-card .dare-text::after  { content: '\201D'; }

.difficulty-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid currentColor;
  margin-bottom: 1.5rem;
}

.difficulty-badge.easy   { color: #4ade80; }
.difficulty-badge.medium { color: var(--yellow); }
.difficulty-badge.hard   { color: var(--red); }

/* ── Timer ── */
.timer-wrap {
  width: 100%;
  max-width: 32rem;
  margin-bottom: 2rem;
}

.timer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.timer-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.timer-count {
  font-size: 1.75rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  transition: color 0.3s;
}

.timer-count.urgent {
  color: var(--red);
  text-shadow: 0 0 10px var(--red);
  animation: tick 1s ease infinite;
}

@keyframes tick {
  0%   { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.timer-bar-bg {
  height: 3px;
  background: var(--border);
  width: 100%;
}

.timer-bar {
  height: 3px;
  background: var(--red);
  transition: width 1s linear, background 0.3s;
}

.timer-bar.safe {
  background: #4ade80;
}

/* ── Button row (2 buttons side by side on tablet+) ── */
.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 32rem;
}

@media (min-width: 480px) {
  .btn-row {
    flex-direction: row;
  }

  .btn-row .btn {
    flex: 1;
    max-width: none;
  }
}

/* ── Footer stamp ── */
.stamp {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2a2a2a;
  pointer-events: none;
}

/* ── Shake animation ── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px) rotate(-1deg); }
  40%       { transform: translateX(8px) rotate(1deg); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}

.shake {
  animation: shake 0.45s ease-in-out;
}
