
:root{
  --bg:#0e0f15;
  --panel:#121522;
  --accent:#ffd166;
  --accent-2:#06d6a0;
  --text:#e8ecf1;
  --muted:#97a4b3;
  --danger:#ef476f;
  --ok:#06d6a0;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% -10%, #2a2f4b 0%, #121522 40%, #0e0f15 100%);
  color:var(--text);
}
.header{
  display:flex;
  gap:16px;
  align-items:center;
  padding:18px 22px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg, rgba(255,255,255,.04), transparent);
}
.header h1{
  font-size: clamp(20px, 2vw, 28px);
  margin:0;
}
.header .subtitle{
  font-size:14px;
  color:var(--muted);
}
.container{
  max-width: 980px;
  margin: 24px auto 56px auto;
  padding: 0 16px;
}
.game-card{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  overflow: hidden;
}
.banner{
  position:relative;
  min-height: 200px;
  display:flex;
  align-items:end;
  justify-content:center;
  background: radial-gradient(600px 240px at 60% -30%, rgba(255,209,102,.4), transparent 70%),
              radial-gradient(400px 200px at 20% -40%, rgba(6,214,160,.25), transparent 70%),
              url('assets/card.png');
  background-size: cover;
  background-position:center;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.banner img{
  height: 220px;
  transform: translateY(12px);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45));
}
.panel{
  padding: 18px;
}
.story{
  background: rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.06);
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
}
.controls{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
button{
  cursor:pointer;
  border:1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  padding: 12px 16px;
  color:var(--text);
  border-radius: 12px;
  font-size:16px;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
}
button:hover{ background: rgba(255,255,255,.08); transform: translateY(-1px);}
button:disabled{opacity:.6; cursor:not-allowed; transform:none}
button.primary{ background: linear-gradient(180deg, #ffd166, #ffb703); color:#1a1300; border-color:#ffb703; font-weight:700}
button.secondary{ border-color:rgba(255,255,255,.2)}

.hud{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin: 10px 0 8px 0;
  font-size: 14px;
  color: var(--muted);
}
.progress{
  width:100%;
  height:10px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  overflow:hidden;
}
.progress > div{
  height:100%;
  width:0;
  background: linear-gradient(90deg, var(--accent), #ffa500);
  transition: width .25s ease;
}

.question{
  font-size: clamp(18px, 2.6vw, 24px);
  margin: 10px 0 6px 0;
}
.choices{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:12px;
  margin-top:10px;
}
.choice{
  text-align:left;
  font-size:18px;
  padding:14px 16px;
  background: rgba(255,255,255,.03);
}
.choice.correct{ outline: 3px solid var(--ok); background: rgba(6,214,160,.1)}
.choice.wrong{ outline: 3px solid var(--danger); background: rgba(239,71,111,.08)}

.feedback{
  margin-top:10px;
  font-size: 15px;
  color: var(--muted);
}

.footer{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:12px;
}

.results{
  text-align:center;
  padding: 16px;
}
.results h2{ margin: 6px 0 4px 0}
.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-weight:700;
  background:linear-gradient(90deg, var(--accent-2), var(--accent));
  color:#1a1300;
}
.small{ font-size: 13px; color: var(--muted);}

.hide{ display:none !important; }
