:root {
  color-scheme: dark;
  --bg-1: #1a0f1f;
  --bg-2: #2b1330;
  --card-bg: #241226;
  --accent-1: #ff5f9e;
  --accent-2: #a24bf0;
  --text-main: #f5e9f7;
  --text-muted: #c9a9d1;
  --truth-color: #4fc3f7;
  --dare-color: #ff5f5f;
  --danger: #ff4d6d;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, var(--bg-2), var(--bg-1) 70%);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.screen {
  display: none;
  width: 100%;
  max-width: 480px;
}

.screen.active {
  display: block;
  animation: fade-in 0.35s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  text-align: center;
}

h1 {
  margin: 0 0 4px;
  font-size: 2rem;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 0 0 20px;
  color: var(--text-muted);
}

.warning {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(162, 75, 240, 0.12);
  border: 1px solid rgba(162, 75, 240, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  line-height: 1.4;
}

.question {
  font-weight: 600;
  margin-bottom: 18px;
}

.button-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.toggle-row {
  margin-bottom: 24px;
}

.toggle-row.compact {
  margin: 8px 0 4px;
}

.toggle-row.compact .btn {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
  background: rgba(255,255,255,0.06);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  flex: 1 1 auto;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #1a0f1f;
}

.btn.secondary {
  background: rgba(255,255,255,0.08);
}

.btn.full {
  width: 100%;
  margin-top: 8px;
}

.btn.toggle.active {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #1a0f1f;
}

.btn.choice {
  flex: 1 1 45%;
  padding: 20px;
  font-size: 1.15rem;
}

.btn.choice.truth {
  background: rgba(79, 195, 247, 0.15);
  border: 1px solid rgba(79, 195, 247, 0.4);
}

.btn.choice.dare {
  background: rgba(255, 95, 95, 0.15);
  border: 1px solid rgba(255, 95, 95, 0.4);
}

label {
  display: block;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 14px 0 6px;
}

input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.25);
  color: var(--text-main);
  font-size: 1rem;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-1);
}

.label-heading {
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 20px 0 10px;
}

.label-note {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.75rem;
}

.hidden {
  display: none !important;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.turn-indicator {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icon-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.scoreboard {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.score-card {
  flex: 1 1 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
}

.score-name {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-line {
  margin: 2px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.score-line span {
  color: var(--text-main);
  font-weight: 600;
}

.tagline {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.reveal-type {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--accent-1);
  margin-bottom: 8px;
}

.reveal-text {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 24px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#age-no-message {
  margin-top: 14px;
  color: var(--danger);
  font-weight: 600;
}

footer,
.footnote {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 18px;
}

@media (max-width: 400px) {
  .card {
    padding: 24px 18px;
  }
  h1 {
    font-size: 1.6rem;
  }
}
