body[data-screen='choose'] #choose,
body[data-screen='quiz-setup'] #quiz-setup,
body[data-screen='quiz'] #quiz {
  display: grid;
}

.game-card {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.game-card:hover {
  transform: translateY(-2px);
  background: var(--ground-3);
}

.game-card-name {
  font-size: clamp(28px, 2.4vw, 40px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.game-card-go {
  color: var(--accent);
  font-weight: 800;
}

.quiz {
  grid-template-rows: auto auto 1fr auto;
  gap: clamp(16px, 2.4vh, 32px);
}

.quiz .clock {
  font-size: clamp(64px, 7vw, 140px);
}

.quiz-body {
  display: grid;
  gap: clamp(24px, 3vw, 56px);
  align-content: start;
  min-height: 0;
}

.quiz.is-reveal .quiz-body {
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
}

.quiz-main {
  display: grid;
  gap: clamp(18px, 3vh, 36px);
  align-content: start;
}

.quiz-q {
  max-width: 26ch;
  font-size: clamp(36px, 4vw, 80px);
  line-height: 1;
  animation: rise 600ms var(--ease-out) both;
}

.quiz-count {
  display: none;
}

body.is-counting .quiz-count {
  display: block;
  color: var(--accent);
  font-size: clamp(120px, 16vw, 300px);
  font-weight: 800;
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
  animation: pop 1s var(--ease-out) infinite;
}

body.is-counting .quiz .answers {
  display: none;
}

.quiz .answers {
  gap: 16px;
}

.quiz .ans {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 1.6vw, 28px);
  align-items: center;
  min-height: clamp(88px, 14vh, 160px);
  padding: clamp(16px, 2vw, 32px);
  border-radius: 28px;
  font-size: clamp(24px, 2.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  animation: rise 500ms var(--ease-out) both;
}

.quiz .ans:nth-child(2) {
  animation-delay: 60ms;
}

.quiz .ans:nth-child(3) {
  animation-delay: 120ms;
}

.quiz .ans:nth-child(4) {
  animation-delay: 180ms;
}

.quiz .ans-shape {
  width: clamp(36px, 3.4vw, 68px);
  height: clamp(36px, 3.4vw, 68px);
}

.quiz.is-reveal .ans {
  opacity: 0.3;
}

.quiz.is-reveal .ans.is-correct {
  opacity: 1;
  box-shadow: 0 0 0 6px var(--ground), 0 0 0 12px var(--ok);
  animation: pop 500ms var(--ease-out);
}

.quiz.is-reveal .ans-count {
  display: block;
  font-size: clamp(36px, 4vw, 80px);
  line-height: 1;
}

.quiz-board {
  display: none;
}

.quiz.is-reveal .quiz-board {
  display: grid;
  gap: 18px;
  align-content: start;
}

.quiz-board h2 {
  font-size: clamp(32px, 3vw, 56px);
}

.quiz-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.quiz-answered {
  margin-right: auto;
  color: var(--ok);
  font-size: clamp(22px, 2vw, 36px);
  font-weight: 600;
}

.quiz:not(.is-reveal) #btn-quiz-next,
.quiz.is-reveal #btn-quiz-skip {
  display: none;
}

@media (max-width: 900px) {
  .quiz.is-reveal .quiz-body {
    grid-template-columns: 1fr;
  }
}
