:root { --accent: #c7566d; --wash: #fff0ee; --ink: #333b49; font-family: "Noto Sans KR", system-ui, sans-serif; }
body { margin: 0; min-width: 320px; background: #f4f3f0; color: var(--ink); }
body[data-quiz="men"] { --accent: #416ea4; --wash: #eaf3ff; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.page { width: min(100% - 32px, 1120px); margin: auto; padding: 14px 0 40px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 55px; }
.brand { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-size: 14px; font-weight: 900; }
.brand img { width: 42px; height: 42px; }
.brand small { display: block; font-size: 8px; color: #78808b; letter-spacing: .1em; }
.header-links { display: flex; gap: 14px; font-size: 12px; font-weight: 700; }
.header-links a { color: inherit; text-underline-offset: 4px; }
.top-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; margin-top: 22px; }
.main-column { min-width: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 195px; align-items: center; gap: 12px; padding: 22px 24px; border: 1px solid #ddd9d2; background: var(--wash); }
.eyebrow, .card-kicker { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .05em; }
.hero h1 { margin: 10px 0 12px; font-size: clamp(30px, 4vw, 43px); letter-spacing: -.055em; line-height: 1.2; }
.hero p { margin: 0; font-size: 14px; line-height: 1.75; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.hero-pills span { padding: 5px 8px; border: 1px solid #d3c9c9; background: #fff; font-size: 11px; }
.hero-art { margin: 0; text-align: center; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.hero-art figcaption { font: 700 19px "Gaegu", sans-serif; }
.quiz-card { margin-top: 20px; padding: 28px; border: 1px solid #ccc7bf; background: #fff; scroll-margin-top: 18px; }
.quiz-card h2 { margin: 12px 0; font-size: 25px; line-height: 1.5; letter-spacing: -.04em; }
.quiz-card p { font-size: 14px; line-height: 1.8; }
.exam-info { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 25px; padding-bottom: 13px; border-bottom: 2px solid #333b49; font-size: 12px; font-weight: 700; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 12px 18px; border: 1px solid #333b49; background: #333b49; color: #fff; font-weight: 800; font-size: 14px; }
.primary-button { width: 100%; margin-top: 12px; }
.secondary-button { background: #fff; color: var(--ink); }
.small-note { color: #6d727a; font-size: 12px !important; line-height: 1.7 !important; }
.intro-rules { margin: 18px 0; padding-left: 20px; font-size: 13px; line-height: 2; }
.progress-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 800; }
.progress-track { height: 4px; background: #e9e9e9; margin-top: 13px; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--accent); }
.question-scene { padding-top: 12px; }
.message-box { display: flex; gap: 12px; align-items: start; padding: 18px; border: 1px solid #ddd; background: var(--wash); }
.message-box > span { flex: 0 0 32px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #b9adb1; border-radius: 50%; background: #fff; font-size: 11px; }
.message-box blockquote { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.7; }
.choices { display: grid; gap: 9px; margin-top: 20px; }
.choice { display: flex; align-items: start; gap: 12px; width: 100%; padding: 15px 14px; border: 1px solid #ddd; color: var(--ink); background: #fff; text-align: left; font-size: 14px; line-height: 1.75; }
.choice-index { flex: 0 0 22px; font-size: 19px; line-height: 1.35; }
.choice:hover { border-color: var(--accent); }
.choice[aria-pressed="true"] { border: 2px solid var(--accent); padding: 14px 13px; background: var(--wash); }
.quiz-stage { scroll-margin-top: 8px; }
.question-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 18px; }
.question-controls .primary-button { margin-top: 0; }
.text-button { padding: 8px 0; border: 0; color: #646c76; background: transparent; font-size: 12px; }
.is-playing .hero, .is-result .hero { display: none; }
.is-playing .quiz-card, .is-result .quiz-card { margin-top: 0; }
.guide { margin-top: 28px; padding: 24px; border: 1px solid #ddd9d2; background: #fff; }
.guide h2 { margin: 0 0 12px; font-size: 20px; }
.guide h3 { margin: 24px 0 9px; font-size: 16px; }
.guide p { font-size: 13px; line-height: 1.9; }
.guide a { color: var(--accent); }
.grade-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.grade-table th, .grade-table td { padding: 10px 7px; border-bottom: 1px solid #e5e2dc; text-align: left; }
.grade-table caption { text-align: left; margin-bottom: 9px; color: #68707a; line-height: 1.6; }
.grade-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.grade-preview { padding: 14px; background: #faf8f2; }
.grade-preview img { display: block; width: 92px; height: 92px; object-fit: contain; margin: 0 auto 8px; }
.grade-preview h3 { margin: 0; font: 700 24px "Gaegu", sans-serif; }
.grade-preview p { margin-bottom: 0; }
.side-links { padding: 20px; background: #fff; border: 1px solid #ddd9d2; }
.side-links h2 { margin: 0 0 13px; font-size: 15px; }
.side-links a { display: block; margin-top: 15px; color: var(--accent); font-size: 13px; font-weight: 700; line-height: 1.7; }
.side-note { font-size: 12px; color: #6d727a; line-height: 1.9; }
.side-column { display: grid; gap: 14px; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; border-top: 1px solid #d6d2cb; padding-top: 18px; font-size: 12px; }
.site-footer nav { display: flex; gap: 13px; }
.site-footer a { color: inherit; }

/* 결과지는 일부러 삐뚤게 그린 크레파스 성적표처럼 보여줍니다. */
.result-card { position: relative; border: 3px dashed #71685c; border-radius: 7px 14px 5px 12px; background: radial-gradient(#8b734b12 .8px, transparent 1px) 0 0 / 5px 5px, #fffbed; box-shadow: 5px 7px 0 #ded7c5; }
.result-sticker { display: inline-block; transform: rotate(-2deg); padding: 5px 13px; border: 2px solid #a78d56; border-radius: 3px 8px 4px 6px; background: #ffedb2; font: 700 23px "Gaegu", sans-serif; }
.result-grade { position: absolute; top: 19px; right: 24px; display: grid; place-items: center; width: 82px; height: 65px; border: 3px solid #cc6263; border-radius: 49% 54% 46% 51%; color: #c34553; font: 700 48px "Gaegu", sans-serif; transform: rotate(-11deg); }
.result-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 27px; }
.result-art { border-radius: 48% 53% 45% 50%; background: #ffe7d8; }
.result-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.result-heading h2 { font: 700 clamp(34px, 4vw, 45px) "Gaegu", sans-serif; line-height: 1.12; word-break: keep-all; }
.result-heading > p { font: 700 22px "Gaegu", sans-serif; line-height: 1.35; word-break: keep-all; }
.result-label { font: 700 18px "Gaegu", sans-serif; color: #806c8b; }
.result-keywords { display: flex; flex-wrap: wrap; gap: 5px 11px; font: 700 17px "Gaegu", sans-serif; }
.result-keywords span { text-decoration: underline; text-decoration-color: #e1bf86; text-decoration-thickness: 4px; text-underline-offset: 3px; }
.result-score-box { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 25px; padding: 18px 12px; border: 2px solid #a28d61; border-radius: 5px 2px 6px 3px; background: repeating-linear-gradient(transparent 0 27px, #c8c1b32b 28px 29px), #fffaf0; }
.score-stamp { position: relative; flex: 0 0 155px; display: grid; place-content: center; text-align: center; min-height: 119px; border: 4px solid #bc4954; border-radius: 50%; color: #bc4954; transform: rotate(-9deg); animation: stamp-in .42s ease-out both; font-family: "Gaegu", sans-serif; }
.score-stamp::after { content: ""; position: absolute; inset: 5px; border: 1px solid currentColor; border-radius: 50%; pointer-events: none; }
.score-stamp span { font-size: 19px; font-weight: 700; }
.score-stamp strong { font: 700 43px "Gaegu", sans-serif; line-height: 1.05; }
.score-stamp small { font-size: 16px; font-weight: 700; }
.score-summary { display: grid; gap: 8px; font-family: "Gaegu", sans-serif; }
.score-summary strong { font-size: 31px; }
.score-summary span { font-size: 22px; }
.score-summary small { font-size: 18px; color: #726654; }
@keyframes stamp-in { from { opacity: 0; transform: scale(1.3) rotate(-16deg); } to { opacity: 1; transform: scale(1) rotate(-9deg); } }
.result-summary { font: 700 22px "Gaegu", sans-serif !important; line-height: 1.6 !important; }
.result-details { display: grid; gap: 12px; margin: 23px 0; }
.result-details article { padding: 12px 17px; border-left: 4px solid #dcb67b; background: #f5edda; }
.result-details article:nth-child(2) { border-color: #d78d9b; background: #fce8e6; transform: rotate(.4deg); }
.result-details article:nth-child(3) { border-color: #96b983; background: #eaf1df; transform: rotate(-.4deg); }
.result-details strong { font: 700 23px "Gaegu", sans-serif; }
.result-details p { margin: 6px 0 0; font: 700 20px "Gaegu", sans-serif; line-height: 1.5; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.share-actions .primary-button { grid-column: 1 / -1; margin: 0; background: #f8d18b; color: #403a32; }
.result-card button { border: 2px solid #756853; border-radius: 5px 2px 6px 4px; font: 700 21px "Gaegu", sans-serif; word-break: keep-all; }
.retry-cta { display: block; margin: 21px auto; padding: 10px 25px; background: #e6e8fc; color: #474779; }
.result-card .small-note { font-family: "Noto Sans KR", sans-serif; }
.shared-note { margin-top: 26px; padding: 10px; background: #ece6f4; font-size: 12px !important; }
.review-section { margin-top: 25px; padding-top: 18px; border-top: 1px dashed #a69b86; }
.review-section h3 { margin: 0 0 10px; font: 700 28px "Gaegu", sans-serif; }
.review-item { margin-top: 10px; padding: 0 13px; border: 1px solid #cfc7b8; background: #ffffffb3; }
.review-item summary { padding: 14px 0; font-size: 13px; font-weight: 800; cursor: pointer; }
.review-item.correct summary { color: #3e7458; }
.review-item.partial summary, .review-partial { color: #8a651d; }
.review-item.incorrect summary { color: #af4c51; }
.review-item p { font-size: 13px; }
.review-item blockquote { margin: 12px 0; padding: 10px 13px; background: #f5efe4; font-size: 15px; font-weight: 700; }
.review-answer { color: #376849; font-weight: 700; }
.review-scene { color: #727169; }
@media (max-width: 980px) { .top-layout { grid-template-columns: minmax(0, 1fr); } .side-column { display: none; } .page { max-width: 790px; } }
@media (max-width: 600px) {
  .page { width: min(100% - 20px, 790px); padding-top: 9px; }
  .brand { font-size: 11px; gap: 6px; } .brand img { width: 34px; height: 34px; }
  .header-links { gap: 9px; font-size: 10px; }
  .top-layout { margin-top: 15px; }
  .hero { grid-template-columns: minmax(0, 1fr) 112px; padding: 17px 15px; gap: 4px; }
  .hero h1 { font-size: 29px; } .hero p { font-size: 12px; } .hero-art figcaption { font-size: 16px; }
  .hero-pills { gap: 4px; margin-top: 10px; } .hero-pills span { padding: 4px 5px; font-size: 9px; }
  .quiz-card { padding: 21px 16px; } .quiz-card h2 { font-size: 21px; }
  #quiz-question { padding: 13px 14px; }
  #quiz-question .progress-head { font-size: 11px; }
  #quiz-question .progress-track { margin-top: 8px; }
  #quiz-question .question-scene { margin: 12px 0; padding: 0; font-size: 14px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; }
  #quiz-question .message-box { padding: 10px; gap: 8px; }
  #quiz-question .message-box > span { flex-basis: 27px; width: 27px; height: 27px; }
  #quiz-question .message-box blockquote { font-size: 16px; line-height: 1.5; word-break: keep-all; }
  #quiz-question h2 { margin: 12px 0 8px; font-size: 17px; line-height: 1.4; }
  #quiz-question .choices { margin-top: 0; gap: 7px; }
  #quiz-question .choice { min-height: 44px; padding: 9px 10px; font-size: 14px; line-height: 1.5; word-break: keep-all; overflow-wrap: break-word; }
  #quiz-question .choice[aria-pressed="true"] { padding: 8px 9px; }
  #quiz-question .choice-index { font-size: 17px; }
  .question-controls { gap: 8px; margin-top: 12px; }
  .question-controls .primary-button, .question-controls .secondary-button { min-height: 44px; padding: 9px 11px; font-size: 13px; }
  .question-controls .text-button { min-height: 44px; padding: 8px 3px; }
  .exam-info { font-size: 10px; gap: 5px; margin-bottom: 18px; }
  .message-box { padding: 13px 11px; gap: 9px; } .message-box blockquote { font-size: 17px; }
  .choice { font-size: 13px; gap: 8px; padding: 13px 10px; } .choice[aria-pressed="true"] { padding: 12px 9px; }
  .guide { padding: 19px 15px; } .grade-previews { gap: 8px; } .grade-preview { padding: 11px; }
  .result-sticker { font-size: 19px; padding: 5px 8px; } .result-grade { right: 16px; top: 17px; width: 64px; height: 53px; font-size: 39px; }
  .result-hero { grid-template-columns: 130px minmax(0, 1fr); gap: 13px; margin-top: 28px; }
  .result-heading h2 { font-size: 31px; margin-top: 8px; } .result-heading > p { font-size: 19px; }
  .result-label, .result-keywords { font-size: 15px; }
  .result-score-box { gap: 16px; padding: 15px 9px; } .score-stamp { flex-basis: 119px; min-height: 102px; } .score-stamp strong { font-size: 35px; } .score-stamp span { font-size: 16px; } .score-stamp small { font-size: 14px; } .score-summary strong { font-size: 25px; } .score-summary span { font-size: 18px; } .score-summary small { font-size: 16px; }
  .result-summary { font-size: 21px !important; } .result-details p { font-size: 19px; }
}
/* The banner has its own row: it never covers the answers or navigation. */
@media (max-width: 600px) and (min-height: 480px) {
  .is-playing .quiz-stage { display: grid; grid-template-rows: minmax(0, 1fr); height: calc(100dvh - 40px); }
  .is-playing #quiz-question { display: flex; flex-direction: column; min-height: 0; }
  .is-playing .question-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; }
  .is-playing .question-controls { flex: 0 0 auto; padding-top: 10px; margin-top: 0; border-top: 1px solid #ece9e3; }
}
@media (max-width: 360px) { .result-hero { grid-template-columns: 104px minmax(0, 1fr); gap: 9px; } .hero { grid-template-columns: minmax(0, 1fr) 95px; } .result-heading h2 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .score-stamp { animation: none; } }
