* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #101827;
  color: #fff;
  font-family: system-ui, sans-serif;
  padding: 20px;
}
.game { width: 100%; max-width: 760px; text-align: center; }
h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 8px; }
.subtitle { color: #9ca9bd; }
.stats { display: flex; justify-content: center; gap: 45px; margin: 35px 0; }
.stat strong { display: block; font-size: 1.5rem; color: #fbbf24; }
.stat span { color: #9ca9bd; font-size: .85rem; }
.prompt { color: #fbbf24; font-weight: 700; letter-spacing: .12em; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.event {
  min-height: 210px;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 18px;
  padding: 24px;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font: inherit;
  transition: transform .15s, border-color .15s;
  text-wrap: balance
}
.event:hover:not(:disabled) { transform: translateY(-4px); border-color: #fbbf24; }
.event:disabled { cursor: default; }
.event .category { color: #fbbf24; font-size: .75rem; text-transform: uppercase; letter-spacing: 2px; }
.event .description { font-size: 1.35rem; font-weight: 650; line-height: 1.35; }
.event .year { font-size: 2rem; font-weight: bold; }
.event.correct { border-color: #22c55e; background: #143b31; }
.event.wrong { border-color: #ef4444; background: #42232d; }
#feedback { min-height: 70px; margin-top: 25px; font-size: 1.15rem; }
#next { background: #fbbf24; color: #111827; border: 0; border-radius: 12px; padding: 15px 40px; font-size: 1rem; font-weight: bold; cursor: pointer; }
#next:hover { background: #f59e0b; }
#next[hidden] { display: none; }
@media (max-width: 500px) {
  .cards { grid-template-columns: 1fr; }
  .event { min-height: 145px; padding: 14px;}
  .stats { gap: 22px; margin: 20px 0;}
  body {  min-height: auto;}
  .event .description { font-size: 1.2rem; font-weight: 650; line-height: 1.4rem; }
  h1 { font-size: clamp(1.6rem, 6vw, 3rem); margin-bottom: 8px; margin-top: 10px;}
  #feedback { min-height: 40px;}
}
