:root{
  --bg: #0b0f1a;
  --card: rgba(255,255,255,0.08);
  --card2: rgba(255,255,255,0.10);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.65);
  --accent: #5eead4;
  --danger: #ff6b6b;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: radial-gradient(1200px 800px at 50% 0%, #162044, var(--bg));
}

.app{
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
}

.screen{
  width: min(720px, 100%);
}

.hidden{ display: none !important; }

.header{
  text-align: center;
  margin: 10px 0 18px;
}
.header h1{
  font-size: clamp(28px, 5vw, 42px);
  margin: 0 0 6px;
}
.sub{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card{
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(10px);
}

.label{
  display:block;
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.input, .select{
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline: none;
  font-size: 16px;
}

.row{
  display:flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}
.select{ flex: 1; }

.btn{
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.10);
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  width: 100%;
}
.btn:active{ transform: scale(0.99); }

.primary{
  background: linear-gradient(135deg, rgba(94,234,212,0.25), rgba(94,234,212,0.10));
  border-color: rgba(94,234,212,0.35);
}
.ghost{
  background: transparent;
  border-color: rgba(255,255,255,0.14);
  color: var(--muted);
}

.hint{
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.topbar{
  display:flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 12px;
  gap: 10px;
}
.pill{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 700;
}
.counter{
  color: var(--muted);
  font-weight: 650;
}

.game-card{
  padding: 18px;
}
.category{
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.10em;
  font-size: 12px;
  margin-bottom: 10px;
}
.question{
  font-size: clamp(20px, 4.2vw, 30px);
  font-weight: 800;
  line-height: 1.2;
}

.answerBlock{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.answerLabel{
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.answer{
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 900;
}

.actions{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
