@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  font-family: 'Space Grotesk', Arial, sans-serif;
  background: #101410;
  color: #e9eee5;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse 52% 34% at 50% 47%, rgba(147, 187, 79, .075), transparent 85%),
    #101410;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid #d4fa75; outline-offset: 4px; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.masthead, .footer { width: min(100% - 64px, 1360px); margin-inline: auto; }
.masthead {
  height: 83px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #30382f;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #f1f3ec; text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: -.055em; }
.brand-icon { display: grid; place-items: center; height: 23px; width: 23px; border: 2px solid #d4fa75; color: #d4fa75; border-radius: 50%; font-size: 15px; line-height: 1; }
.brand-dot { color: #8a9386; }
.masthead-status, .eyebrow, .panel-topline, .question-kicker, .result-kicker, .result-label, .below-panel, .footer, .keyboard-hint, .back-button, .restart-button, kbd, #result-count {
  font-family: 'DM Mono', 'Courier New', monospace;
  letter-spacing: .035em;
}
.masthead-status { display: flex; align-items: center; gap: 9px; color: #b3beaa; font-size: 11px; }
.status-light { width: 7px; height: 7px; background: #d4fa75; border-radius: 50%; box-shadow: 0 0 12px #d4fa75aa; }
.main-content { width: min(100% - 48px, 800px); margin: auto; padding: 64px 0 52px; }
.intro { margin-bottom: 42px; }
.eyebrow { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; color: #d4fa75; font-size: 11px; font-weight: 500; }
.eyebrow-line { width: 26px; height: 1px; background: #d4fa75; }
.edition { color: #667261; }
h1 { margin: 0; font-size: clamp(52px, 9vw, 99px); line-height: .93; font-weight: 700; letter-spacing: -.087em; white-space: nowrap; }
h1 span { color: #d4fa75; }
.intro > p { margin: 23px 0 0; color: #a7b0a3; font-size: 17px; letter-spacing: -.02em; }
.quiz-panel { border: 1px solid #586451; background: #171d17; box-shadow: 10px 10px 0 #0a0d0a; }
.panel-topline { height: 50px; padding: 0 25px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #414b3e; color: #aab5a4; font-size: 11px; font-weight: 500; }
.panel-topline span:last-child { color: #d4fa75; }
.path-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 52px; padding: 10px 25px; border-bottom: 1px solid #344031; }
.path-chip, .path-arrow { font-family: 'DM Mono', 'Courier New', monospace; font-size: 10px; letter-spacing: .025em; }
.path-step { display: inline-flex; align-items: center; gap: 7px; }
.path-chip { padding: 5px 8px; border: 1px solid #4b5946; color: #a8b6a0; white-space: nowrap; }
.path-chip.start { border-color: #d4fa75; color: #d4fa75; }
.path-chip.yes { border-color: #829c61; color: #d4fa75; }
.path-arrow { color: #687963; }
.panel-body { padding: 35px 38px 26px; min-height: 355px; }
.question-kicker, .result-kicker { margin: 0 0 14px; color: #d4fa75; font-size: 11px; font-weight: 500; }
.question { max-width: 660px; min-height: 100px; margin: 0; font-size: clamp(28px, 4.8vw, 43px); line-height: 1.13; font-weight: 600; letter-spacing: -.055em; }
.question:focus, .message-title:focus, .result-title:focus { outline: none; }
.question-note { min-height: 25px; margin: 10px 0 26px; color: #8e9a8c; font-size: 14px; }
.answer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answer-button { height: 69px; padding: 0 21px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #67745d; background: #212a20; color: #e9eee5; font-size: 22px; font-weight: 700; letter-spacing: -.04em; transition: background .15s, transform .15s, border-color .15s; }
.answer-button:hover { transform: translateY(-2px); border-color: #d4fa75; background: #293627; }
.answer-button:active { transform: translateY(0); }
.answer-yes { background: #d4fa75; color: #15200e; border-color: #d4fa75; }
.answer-yes:hover { background: #e2ff9b; color: #15200e; }
kbd { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid currentColor; border-radius: 3px; font-size: 11px; font-weight: 400; opacity: .7; }
.panel-actions { display: flex; justify-content: space-between; align-items: center; min-height: 46px; margin-top: 12px; }
.back-button { padding: 10px 0; background: transparent; color: #a3af9d; border: 0; font-size: 11px; }
.back-button:hover { color: #d4fa75; }
.back-button[hidden] { visibility: hidden; display: block; }
.keyboard-hint { color: #788575; font-size: 10px; }
.message-view { display: flex; flex-direction: column; padding: 37px 38px 26px; min-height: 355px; }
.message-view[hidden] { display: none; }
.message-title { margin: 10px 0 0; color: #d4fa75; font-size: clamp(54px, 8vw, 82px); line-height: 1; font-weight: 700; letter-spacing: -.075em; }
.message-description { max-width: 570px; margin: 19px 0 32px; color: #c5cfc0; font-size: 18px; line-height: 1.45; }
.message-next { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 69px; margin-top: auto; padding: 0 21px; border: 1px solid #d4fa75; background: #d4fa75; color: #15200e; font-size: 22px; font-weight: 700; letter-spacing: -.04em; }
.message-next:hover { background: #e2ff9b; }
.message-back { align-self: flex-start; margin-top: 13px; }
.result-view { padding: 37px 38px 28px; min-height: 355px; }
.result-view[hidden] { display: none; }
.result-kicker { display: flex; justify-content: space-between; margin-bottom: 38px; }
.result-cross { font-size: 20px; line-height: 9px; }
.result-label { margin: 0 0 8px; color: #a4b09e; font-size: 11px; }
.result-title { margin: 0; color: #d4fa75; font-size: clamp(58px, 10vw, 92px); line-height: .98; font-weight: 700; letter-spacing: -.08em; }
.result-view.is-unknown .result-title, .result-view.is-unknown .result-label { color: #f3c579; }
.result-description { max-width: 570px; min-height: 65px; margin: 22px 0 39px; color: #c5cfc0; font-size: 18px; line-height: 1.45; }
.result-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 19px; border-top: 1px solid #414b3e; }
#result-count { color: #8e9b89; font-size: 10px; }
.result-actions { display: flex; align-items: center; gap: 23px; }
.result-actions .back-button { padding: 0; }
.restart-button { background: transparent; border: 0; color: #d4fa75; font-size: 11px; font-weight: 500; }
.restart-button:hover { text-decoration: underline; text-underline-offset: 5px; }
.below-panel { display: flex; justify-content: space-between; gap: 20px; margin-top: 29px; color: #768271; font-size: 10px; }
.tiny-square { display: inline-block; width: 6px; height: 6px; margin-right: 7px; background: #d4fa75; vertical-align: 1px; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 26px; border-top: 1px solid #30382f; color: #65705f; font-size: 10px; }

@media (max-width: 640px) {
  .masthead, .footer { width: min(100% - 32px, 1360px); }
  .masthead { height: 70px; }
  .brand { font-size: 13px; }
  .masthead-status { font-size: 0; }
  .main-content { width: min(100% - 32px, 800px); padding: 56px 0 45px; }
  .intro { margin-bottom: 34px; }
  h1 { font-size: clamp(46px, 10.8vw, 68px); white-space: normal; }
  .intro > p { font-size: 15px; line-height: 1.5; }
  .panel-topline { padding-inline: 19px; font-size: 9px; }
  .path-trail { padding-inline: 19px; }
  .panel-body, .message-view, .result-view { padding-inline: 20px; }
  .panel-body { min-height: 340px; }
  .question { min-height: 112px; font-size: clamp(27px, 7vw, 38px); }
  .message-title { font-size: clamp(52px, 14vw, 75px); }
  .message-description { font-size: 16px; }
  .message-next { height: 64px; padding-inline: 15px; }
  .answer-button { height: 64px; padding-inline: 15px; }
  .keyboard-hint { display: none; }
  .result-title { font-size: clamp(58px, 17vw, 92px); }
  .result-description { font-size: 16px; }
  .result-footer { align-items: flex-start; flex-direction: column; gap: 16px; }
  .result-actions { width: 100%; justify-content: space-between; }
  .below-panel, .footer { line-height: 1.6; }
  .below-panel span:last-child, .footer span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .answer-button { transition: none; }
}
