@import url("quiz.css");

[hidden] { display: none !important; }

.quiz-section { padding-top: clamp(38px, 5vw, 64px); }

.separation-cover {
  width: 100%;
  min-height: 650px;
  padding: clamp(38px, 5vw, 58px) clamp(30px, 6vw, 66px) 36px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .14);
}

.cover-number {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 600;
  letter-spacing: .12em;
}

.cover-copy { margin: auto 0; }
.cover-copy .eyebrow { margin-bottom: 28px; }
.cover-copy h1 {
  margin: 0 0 28px;
  font-size: clamp(3.1rem, 7vw, 5.5rem);
}
.cover-description {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: .03em;
}

.cover-start {
  width: 100%;
  padding: 22px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  font: 400 .95rem/1.5 "Noto Sans TC", sans-serif;
  letter-spacing: .1em;
  cursor: pointer;
}
.cover-start span:last-child { font-size: 1.35rem; transition: transform .2s ease; }
.cover-start:hover span:last-child { transform: translateX(5px); }
.cover-start:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.quiz-shell { min-height: 650px; }
.quiz-topline { align-items: flex-start; }
.quiz-progress { margin-top: 20px; }
.separation-heading { align-items: flex-start; }
.separation-heading .quiz-title { max-width: 980px; }

.separation-answer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.separation-answer-grid .answer-card { min-height: 132px; }

.separation-result {
  width: min(100%, 780px);
  margin-top: clamp(44px, 7vw, 78px);
}
.separation-result .eyebrow { margin-bottom: 22px; }
.separation-result h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5.8vw, 4.8rem);
  letter-spacing: -.045em;
}
.separation-result .result-description {
  max-width: 680px;
  margin: 22px auto 34px;
  color: var(--muted);
  font-family: "Noto Serif TC", serif;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 2;
}

.result-drink {
  padding: 26px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.result-label {
  margin: 0 0 8px;
  color: var(--muted);
  font: 500 .7rem/1.6 "Noto Sans TC", sans-serif;
  letter-spacing: .14em;
}
.result-drink h2 {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -.025em;
}
.result-symbol {
  max-width: 680px;
  margin: 12px auto 0;
  color: var(--muted);
  font: 300 .9rem/1.9 "Noto Sans TC", sans-serif;
  white-space: pre-line;
}
.result-actions {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.restart-button {
  min-width: 220px;
  padding: 17px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--bg);
  border: 1px solid var(--ink);
  background: var(--ink);
  font: 400 .88rem/1.2 "Noto Sans TC", sans-serif;
  letter-spacing: .1em;
  cursor: pointer;
}
.restart-button:hover { color: var(--ink); background: transparent; }
.home-link {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.home-link:hover { color: var(--ink); }

@media (max-width: 760px) {
  .quiz-section { padding-top: 28px; }
  .separation-cover { min-height: 560px; padding: 30px 24px 28px; }
  .cover-copy .eyebrow { margin-bottom: 20px; }
  .cover-copy h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .quiz-shell { min-height: 560px; }
  .separation-heading { gap: 18px; }
  .separation-answer-grid { grid-template-columns: 1fr; gap: 12px; }
  .separation-answer-grid .answer-card { min-height: 106px; }
  .separation-result { margin-top: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .cover-start span:last-child { transition: none; }
}
