:root { font-family: Arial, Helvetica, sans-serif; color: #191919; background: #f7f7f2; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 2px solid #191919; border-radius: 8px; padding: 19px 24px; background: transparent; color: inherit; font-weight: 700; font-size: 18px; transition: transform .15s, background .15s; }
button:hover { background: #efefe7; }
button:active { transform: translateY(2px); }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 3px solid #304fff; outline-offset: 5px; }
button:disabled { opacity: .35; cursor: default; }
[hidden] { display: none !important; }
header, footer { width: min(1160px, 100%); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; padding: 32px 40px; gap: 24px; }
.wordmark { font-size: 25px; font-weight: 900; letter-spacing: -1.3px; line-height: .91; color: inherit; text-decoration: none; }
.wordmark span { color: #191919; background: #ffdf35; padding-inline: 3px; }
.header-note { font-size: 14px; color: #55554e; }
main { width: min(740px, 100%); margin: auto; padding: 30px 24px 14px; }
.intro { margin-bottom: 28px; }
h1 { font-size: clamp(28px, 4.5vw, 38px); letter-spacing: -1.5px; margin: 0 0 10px; line-height: 1.12; }
.intro p { margin: 0; color: #55554e; font-size: 17px; line-height: 1.5; }
.card { background: #fff; border: 2px solid #191919; border-radius: 12px; box-shadow: 7px 7px 0 #191919; overflow: hidden; }
.card-top { display: flex; justify-content: space-between; gap: 16px; padding: 21px 30px; background: #ffdf35; border-bottom: 2px solid; font-size: 13px; font-family: 'Courier New', monospace; font-weight: bold; }
#tag { text-align: right; }
#quiz, #result { padding: 32px; }
h2 { margin: 0; font-size: clamp(27px, 4.6vw, 39px); letter-spacing: -1.25px; line-height: 1.17; font-weight: 800; overflow-wrap: break-word; }
#question { min-height: 190px; }
h2:focus { outline: none; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.answers button, #share { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.primary { background: #ffdf35; }
.primary:hover { background: #f4ce00; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 19px; }
.text-button { border: 0; padding: 8px 0; font-size: 14px; font-weight: 400; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { background: transparent; }
.keyboard { font-size: 12px; color: #65655e; font-family: 'Courier New', monospace; }
.progress { display: grid; grid-template-columns: repeat(10, 22px); gap: 7px; margin: 30px auto 0; justify-content: center; }
.progress span { width: 22px; height: 6px; border-radius: 2px; background: #d4d4cb; }
.progress .done { background: #191919; }
.progress .current { background: #967b00; }
.aside { text-align: center; font-size: 14px; color: #62625b; line-height: 1.5; margin: 20px 0 0; }
.status { min-height: 20px; text-align: center; margin: 9px 0 0; font-size: 14px; }
footer { font-size: 12px; color: #62625b; padding-top: 24px; padding-bottom: 24px; }
footer span:first-child { font-weight: bold; color: #191919; }
.score { font-size: 100px; line-height: 1; font-weight: 900; letter-spacing: -7px; margin-bottom: 18px; }
.out-of { font-size: 26px; letter-spacing: -1px; margin-left: 10px; color: #65655e; }
#result-copy { font-size: 17px; line-height: 1.5; color: #55554e; margin: 18px 0; }
#receipt { white-space: pre; font-size: 22px; letter-spacing: 4px; margin: 22px 0; overflow-wrap: anywhere; }
#share { width: 100%; }
#restart { display: block; margin: 16px auto 0; }
#copy-fallback { width: 100%; min-height: 140px; margin-top: 18px; padding: 12px; }
.enter { animation: enter .2s ease-out; }
@keyframes enter { from { opacity: .3; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) {
  header { padding: 25px 24px; }
  .header-note { max-width: 115px; text-align: right; font-size: 12px; }
  main { padding-top: 18px; }
  .intro { margin-bottom: 24px; }
  .intro p { font-size: 16px; }
  .card-top { padding: 18px; font-size: 12px; }
  #quiz, #result { padding: 24px 20px; }
  #question { min-height: 205px; }
  button { padding: 18px 14px; font-size: 17px; }
  .keyboard { display: none; }
  footer { padding-inline: 24px; flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
