@charset "UTF-8";
:root {
  --ink: #17213b;
  --paper: #fffaf0;
  --yellow: #f4c542;
  --red: #e44b3f;
  --mint: #63c5a5;
  --blue: #3776d6;
  --muted: #6e6a62;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: #f4c542;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--yellow); }
body { margin: 0; min-height: 100vh; background: var(--paper); overflow-x: hidden; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 99; padding: 12px 18px; background: white; border: var(--line); font-weight: 900; }
.skip-link:focus { top: 12px; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .08; z-index: 20; background-image: radial-gradient(var(--ink) .7px, transparent .8px); background-size: 5px 5px; mix-blend-mode: multiply; }
.site-header { min-height: 76px; padding: 14px clamp(16px, 4vw, 52px); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: var(--line); background: var(--yellow); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 950; letter-spacing: -.04em; font-size: clamp(19px, 3vw, 25px); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: var(--line); border-radius: 50%; background: var(--red); color: white; transform: rotate(-8deg); box-shadow: 3px 3px 0 var(--ink); }
.sound-toggle { min-height: 44px; border: 2px solid var(--ink); background: transparent; padding: 9px 13px; font-weight: 800; cursor: pointer; }
.game-shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; min-height: calc(100vh - 148px); display: grid; align-items: center; padding: 46px 0 64px; }
.screen { position: relative; }
.intro-screen { padding: clamp(28px, 6vw, 70px); border: var(--line); background: var(--paper); box-shadow: 10px 10px 0 var(--ink); }
.intro-screen::before { content: ""; position: absolute; width: 130px; height: 25px; left: 50%; top: -14px; transform: translateX(-50%) rotate(-1deg); background: rgba(255,255,255,.68); border-left: 1px solid rgba(23,33,59,.25); border-right: 1px solid rgba(23,33,59,.25); }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: 14px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 680px; margin: 0; font-size: clamp(46px, 9vw, 94px); line-height: .95; letter-spacing: -.085em; font-weight: 950; }
h1 span { color: var(--red); text-decoration: underline; text-decoration-thickness: 6px; text-underline-offset: 8px; }
.lead { max-width: 590px; margin: 28px 0 32px; color: #3e4250; font-size: clamp(17px, 2.4vw, 21px); line-height: 1.65; word-break: keep-all; }
.sticker { position: absolute; right: clamp(20px, 6vw, 60px); top: clamp(24px, 5vw, 54px); width: 92px; height: 92px; display: grid; place-content: center; text-align: center; background: var(--mint); border: var(--line); border-radius: 50%; transform: rotate(9deg); box-shadow: 4px 4px 0 var(--ink); }
.sticker strong { font-size: 32px; line-height: .9; }
.sticker span { font-size: 13px; font-weight: 900; }
.category-picker { margin: 0 0 28px; padding: 0; border: 0; }
.category-picker legend { margin-bottom: 12px; font-weight: 900; }
.category-list { display: flex; flex-wrap: wrap; gap: 10px; }
.category-chip { position: relative; min-height: 46px; padding: 9px 17px; border: 2px solid var(--ink); background: white; font-weight: 850; cursor: pointer; }
.category-chip[aria-pressed="true"] { background: var(--ink); color: white; transform: translateY(-2px); }
.start-actions, .result-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.primary-button, .secondary-button, .text-button { min-height: 52px; padding: 13px 22px; cursor: pointer; font-weight: 950; border: var(--line); }
.primary-button { background: var(--red); color: white; box-shadow: 5px 5px 0 var(--ink); }
.secondary-button { background: white; box-shadow: 5px 5px 0 var(--ink); }
.text-button { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 5px; }
.primary-button:hover, .secondary-button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.primary-button:active, .secondary-button:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.best-score { margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.quiz-screen { width: min(760px, 100%); margin: 0 auto; }
.quiz-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 950; }
.question-count { font-size: 20px; letter-spacing: .04em; }
.score-display { color: var(--red); }
.progress-track { height: 14px; margin-bottom: 24px; overflow: hidden; background: white; border: var(--line); }
.progress-track span { display: block; width: 10%; height: 100%; background: var(--mint); transition: width .3s ease; }
.question-paper { position: relative; min-height: 470px; padding: clamp(26px, 6vw, 56px); border: var(--line); background: #fffdf7; box-shadow: 9px 9px 0 var(--ink); }
.question-paper::after { content: "QUIZ"; position: absolute; right: 18px; bottom: 8px; color: rgba(23,33,59,.07); font-size: 64px; font-weight: 950; transform: rotate(-4deg); pointer-events: none; }
.question-meta { display: flex; gap: 8px; margin-bottom: 24px; }
.question-meta span { padding: 6px 10px; border: 2px solid var(--ink); background: var(--yellow); font-size: 13px; font-weight: 900; }
.question-meta span:last-child { background: white; }
.question-paper h2 { position: relative; z-index: 1; max-width: 620px; margin: 0 0 32px; font-size: clamp(30px, 5.5vw, 48px); line-height: 1.2; letter-spacing: -.045em; word-break: keep-all; }
.answer-form { position: relative; z-index: 2; }
.answer-form > label { display: block; margin-bottom: 10px; font-weight: 950; }
.answer-form > label span { color: var(--muted); font-size: 13px; font-weight: 750; }
.answer-entry { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.answer-entry input { min-width: 0; min-height: 58px; padding: 13px 16px; border: var(--line); border-radius: 0; background: white; color: var(--ink); font-size: 18px; font-weight: 800; }
.answer-entry input::placeholder { color: #77746e; font-weight: 700; }
.answer-submit { min-height: 58px; padding: 12px 20px; border: var(--line); background: var(--ink); color: white; font-weight: 950; cursor: pointer; }
.give-up-button { min-height: 44px; margin-top: 10px; padding: 8px 4px; border: 0; background: transparent; color: var(--muted); font-weight: 850; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.feedback { position: relative; z-index: 2; margin-top: 22px; padding: 18px; border-left: 8px solid var(--red); background: #fff3c9; }
.feedback-kicker { margin: 0 0 5px; color: var(--red); font-size: 14px; font-weight: 950; }
.feedback-answer { margin: 0; font-size: 23px; font-weight: 950; }
.feedback-note { margin: 7px 0 0; line-height: 1.5; }
.next-button { float: right; margin-top: 26px; }
.result-screen { width: min(710px, 100%); margin: 0 auto; padding: clamp(30px, 7vw, 68px); border: var(--line); background: var(--yellow); box-shadow: 10px 10px 0 var(--ink); text-align: center; }
.result-screen .eyebrow { color: var(--ink); }
.result-seal { position: absolute; right: 28px; top: 28px; width: 78px; height: 78px; display: grid; place-content: center; border: 4px double var(--red); border-radius: 50%; color: var(--red); font-weight: 950; transform: rotate(12deg); }
.result-score { margin: 18px 0 0; line-height: 1; }
.result-score strong { font-size: clamp(82px, 18vw, 148px); letter-spacing: -.09em; }
.result-score span { font-size: 25px; font-weight: 950; }
.result-screen h2 { margin: 10px 0; font-size: clamp(34px, 7vw, 60px); letter-spacing: -.06em; }
.result-copy { margin: 0 auto 24px; max-width: 480px; font-size: 18px; line-height: 1.6; word-break: keep-all; }
.answer-blocks { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 24px 0 30px; }
.answer-blocks span { width: 30px; height: 30px; border: 2px solid var(--ink); background: var(--ink); }
.answer-blocks .hit { background: var(--paper); }
.result-actions { justify-content: center; }
.share-status { min-height: 24px; margin: 20px 0 0; font-weight: 800; }
footer { padding: 22px 16px; border-top: var(--line); background: var(--ink); color: white; text-align: center; font-size: 13px; }
footer p { margin: 0; }
@media (max-width: 640px) {
  .site-header { min-height: 66px; padding: 10px 14px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .sound-toggle { padding-inline: 10px; font-size: 13px; }
  .game-shell { width: min(100% - 24px, 920px); min-height: calc(100vh - 126px); padding: 26px 0 44px; }
  .intro-screen { padding: 36px 22px 30px; box-shadow: 6px 6px 0 var(--ink); }
  h1 { font-size: clamp(44px, 14.5vw, 62px); max-width: 330px; }
  .sticker { position: static; width: 74px; height: 74px; margin: 24px 0; transform: rotate(6deg); }
  .lead { margin: 22px 0; }
  .category-list { display: grid; grid-template-columns: repeat(3, 1fr); }
  .category-chip { padding-inline: 8px; }
  .start-actions { align-items: stretch; flex-direction: column; }
  .start-actions button { width: 100%; }
  .question-paper { min-height: 500px; padding: 28px 20px; box-shadow: 6px 6px 0 var(--ink); }
  .question-paper h2 { font-size: 31px; margin-bottom: 26px; }
  .answer-entry { grid-template-columns: 1fr; }
  .answer-entry input, .answer-submit { min-height: 56px; }
  .next-button { width: 100%; float: none; margin-top: 22px; }
  .result-screen { padding: 42px 20px 34px; box-shadow: 6px 6px 0 var(--ink); }
  .result-seal { position: static; margin: 0 auto; width: 68px; height: 68px; }
  .result-score strong { font-size: 96px; }
  .result-actions { flex-direction: column; }
  .result-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
