@font-face {
  font-family: "A Gothic 11";
  src: url("/fonts/a-gothic-11.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "A Gothic 13";
  src: url("/fonts/a-gothic-13.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "A Gothic 17";
  src: url("/fonts/a-gothic-17.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("/fonts/pretendard-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: "A Gothic 13", "Malgun Gothic", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  color: #092eb5;
  background: #e4f6fd;
  --ink: #0a2bb3;
  --blue: #2682f8;
  --orange: #ff6508;
  --paper: #f8fcfd;
  --frame: #cceffc;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: #e4f6fd; }
body { overflow-x: hidden; }
button, input, textarea { font: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #ff8a1e; outline-offset: 2px; }
button:active { filter: brightness(.97); }
.app-shell { width: min(100vw, 560px); min-height: 100svh; margin: 0 auto; padding: 0; }
.design-screen { container-type: inline-size; position: relative; width: 100%; overflow: hidden; background: #e4f6fd; }
.design-art { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.home-screen, .complete-screen { width: min(100%, 53svh); margin-inline: auto; aspect-ratio: 2457 / 5325; }
.home-screen { height: 100svh; min-height: 100svh; aspect-ratio: auto; }
.quiz-screen { width: calc(100% - 24px); min-height: calc(100svh - 24px); margin: 12px auto; padding: 24px clamp(16px, 4vw, 28px) 16px; display: flex; flex-direction: column; overflow: visible; border: 1px solid #def2f8; border-radius: 22px; background: var(--paper); }
.home-screen > .design-art, .complete-screen > .design-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.home-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.home-title-logo { position: absolute; top: 12%; left: 9%; width: 82%; height: auto; object-fit: contain; }
.home-mascot { position: absolute; top: 32.5%; left: 7.5%; width: 85%; height: auto; object-fit: contain; }
.home-tagline { position: absolute; top: 63.5%; left: 5%; width: 90%; margin: 0; color: #202936; font-family: "A Gothic 17", sans-serif; font-size: clamp(14px, 3.8cqw, 20px); line-height: 1.35; text-align: center; word-break: keep-all; }
.home-start, .complete-home { position: absolute; left: 9.36%; width: 81.9%; height: 5.73%; display: flex; align-items: center; justify-content: center; gap: .5em; padding: 0 12px; border: 0; border-radius: clamp(10px, 2cqw, 18px); background: linear-gradient(105deg, #48aaf7, #1677fa); box-shadow: 0 2px 4px rgba(20,104,198,.2); color: white; cursor: pointer; font-family: "Pretendard", sans-serif; font-size: clamp(14px, 4.8cqw, 27px); font-weight: 700; line-height: 1.15; text-align: center; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.home-start { top: 70.5%; height: 6.2%; }
.complete-home { top: 57.75%; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: transparent; }
.home-start:hover, .complete-home:hover { filter: brightness(1.04); }
.quiz-brand-logo, .quiz-footer-symbol { display: block; object-fit: contain; pointer-events: none; flex: 0 0 auto; }
.quiz-brand-logo { width: 36%; max-width: 180px; height: auto; margin: clamp(12px, 4svh, 40px) auto 12px; }
.quiz-footer-symbol { width: 28px; height: 32px; align-self: center; margin-top: auto; padding-top: 0; box-sizing: content-box; border-top: 32px solid transparent; }
.question-count { align-self: flex-end; display: flex; align-items: center; gap: 3px; margin: 0 0 8px; color: #1c35b2; font-family: "A Gothic 17", sans-serif; font-size: clamp(12px, 3.3cqw, 18px); line-height: 1.3; white-space: nowrap; }
.question-count strong { margin-right: 3px; font-weight: 400; }
.question-count span { color: #777ba4; }
.progress-track { flex: 0 0 auto; height: 7px; margin-bottom: 16px; overflow: hidden; border-radius: 999px; background: #d7ecfb; }
.progress-value { width: var(--progress-percent); height: 100%; border-radius: inherit; background: #39a7f5; transition: width 180ms ease; }
.question-title { margin: 0; color: var(--ink); font-family: "A Gothic 17", sans-serif; font-size: clamp(20px, 5.8cqw, 32px); font-weight: 400; line-height: 1.4; letter-spacing: -.045em; text-align: center; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; outline: none; }
.question-hint { margin: 10px 0 22px; color: #55545a; font-family: "A Gothic 11", sans-serif; font-size: clamp(12px, 3.2cqw, 16px); line-height: 1.5; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.choices { display: grid; gap: 8px; }
.choice-button { min-width: 0; min-height: clamp(64px, 8svh, 88px); display: flex; align-items: center; justify-content: center; padding: 16px 12px; border: 1px solid #d3e2ef; border-radius: clamp(12px, 2vw, 19px); background: rgba(255,255,255,.97); box-shadow: 0 2px 4px rgba(46,93,128,.13); color: #1233b4; cursor: pointer; font-family: "A Gothic 13", sans-serif; font-size: clamp(14px, 3.8cqw, 19px); font-weight: 400; line-height: 1.5; text-align: center; word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }
.choice-button[aria-pressed="true"] { border: 2px solid #ff690d; background: #fff8eb; box-shadow: 0 1px 4px rgba(255,105,13,.15); color: #ff6508; font-family: "A Gothic 17", sans-serif; font-size: clamp(14px, 3.8cqw, 19px); font-weight: 400; }
.choice-button[aria-pressed="true"]:focus-visible { outline: none; }
.quiz-nav { display: grid; grid-template-columns: minmax(0, 39fr) minmax(0, 59fr); gap: 8px; margin-top: 24px; }
.quiz-nav button { min-width: 0; min-height: 52px; padding: 12px 8px; border: 1px solid #d0e0ee; border-radius: clamp(11px, 2vw, 17px); cursor: pointer; font-family: "Pretendard", sans-serif; font-size: clamp(14px, 3.8cqw, 21px); font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.secondary-button { background: #edf7ff; color: #0a2eb2; }
.primary-button { background: linear-gradient(105deg, #42a9f8, #1675fa); color: #fff; box-shadow: 0 2px 4px rgba(20,104,198,.18); }
.primary-button:disabled { border-color: #aaa; background: #aaa; box-shadow: none; color: #fff; cursor: not-allowed; }
/* Result layout: the mascot is a separate transparent asset; typography, clouds, cards and speech bubbles are CSS. */
.result-screen { container-type: inline-size; display: grid; gap: clamp(12px, 2.8cqw, 18px); padding: clamp(12px, 2.5cqw, 16px) 2.5% 24px; color: var(--ink); }
.cloud-scene { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 20% 18%, #fff 0 4%, transparent 19%), radial-gradient(ellipse at 82% 16%, #fff 0 5%, transparent 21%), linear-gradient(155deg, #d9f2ff, #f6fcff 49%, #dcf5fc); }
.cloud-scene::before, .cloud-scene::after { position: absolute; z-index: -1; content: ""; width: 42%; height: 18%; border-radius: 999px; background: rgba(255,255,255,.86); filter: blur(1px); }
.cloud-scene::before { left: -17%; bottom: 21%; box-shadow: 34px -24px 0 8px rgba(255,255,255,.85), 77px 0 0 5px rgba(255,255,255,.78), 110px -31px 0 13px rgba(255,255,255,.72); }
.cloud-scene::after { right: -23%; bottom: 18%; box-shadow: -43px -30px 0 8px rgba(255,255,255,.87), -89px 1px 0 2px rgba(255,255,255,.8); }
.result-hero.cloud-scene { background: #d9f2ff url("/assets/cloud-background.png") center / cover no-repeat; }
.result-hero.cloud-scene::before, .result-hero.cloud-scene::after { content: none; }
.result-hero { min-height: clamp(360px, 92cqw, 520px); display: flex; flex-direction: column; align-items: center; padding: 18px 16px 16px; border: 1px solid rgba(160,222,241,.65); border-radius: 22px; box-shadow: 0 2px 4px rgba(44,148,185,.08); text-align: center; }
.type-kicker { min-width: 116px; padding: 8px 22px; border-radius: 999px; background: #c7eafa; color: #1264eb; font-family: "Pretendard", sans-serif; font-size: clamp(14px, 4.2cqw, 20px); font-weight: 700; }
.result-hero h1 { margin: 10px 0 0; font-family: "A Gothic 17", sans-serif; font-size: clamp(32px, 10cqw, 60px); font-weight: 400; line-height: 1.13; letter-spacing: -.045em; }
.result-subtitle { margin: 4px 0 0; font-family: "A Gothic 13", sans-serif; font-size: clamp(15px, 4.1cqw, 23px); line-height: 1.4; }
.result-character { width: min(68%, 340px); height: clamp(160px, 42cqw, 250px); margin: 16px 0 8px; object-fit: contain; }
.result-hero h1 { outline: none; }
.result-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; width: 100%; }
.result-tag { padding: 7px 12px; border-radius: 999px; background: #cceefa; color: #1551d5; font-family: "A Gothic 13", sans-serif; font-size: clamp(13px, 3.5cqw, 18px); }
.result-card-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(10px, 2.2cqw, 14px); }
.result-card { min-width: 0; min-height: 245px; padding: clamp(14px, 3.5cqw, 20px); border: 1px solid #d2eef9; border-radius: 20px; background: #fbfeff; box-shadow: 0 2px 4px rgba(38,135,170,.11); }
.card-label { display: inline-flex; align-items: center; min-height: 32px; max-width: 100%; padding: 4px 10px; border-radius: 999px; background: #123de3; color: white; font-family: "Pretendard", sans-serif; font-size: clamp(10px, 2.8cqw, 14px); font-weight: 700; letter-spacing: -.035em; white-space: normal; }
.result-card h2 { margin: 15px 0 8px; font-family: "A Gothic 17", sans-serif; font-size: clamp(20px, 5.2cqw, 29px); font-weight: 400; line-height: 1.35; word-break: keep-all; }
.result-card p { margin: 0; color: #333; font-size: clamp(15px, 3.8cqw, 20px); line-height: 1.65; word-break: keep-all; text-wrap: pretty; }
.quote-card { display: flex; flex-direction: column; align-items: center; }
.quote-card > .card-label { align-self: flex-start; }
.quote-card ul { display: grid; gap: 10px; width: 100%; margin: 12px 0 0; padding: 0; list-style: none; }
.speech-bubble { position: relative; max-width: 94%; padding: 11px 13px; border-radius: 999px; color: #0736b6; font-family: "A Gothic 13", sans-serif; font-size: clamp(12px, 3.2cqw, 16px); line-height: 1.45; text-align: center; word-break: keep-all; text-wrap: pretty; }
.speech-bubble::after { position: absolute; bottom: -5px; width: 15px; height: 12px; content: ""; background: inherit; }
.speech-1 { justify-self: start; background: #d7f1ff; }
.speech-1::after, .speech-3::after { left: 19px; clip-path: polygon(0 0,100% 0,0 100%); }
.speech-2 { justify-self: end; background: #fff0b4; color: #332d23; }
.speech-2::after { right: 18px; clip-path: polygon(0 0,100% 0,100% 100%); }
.speech-3 { justify-self: center; background: #d7f1ff; }
.growth-card { padding: clamp(18px, 4cqw, 26px); border: 5px solid #ffd278; border-radius: 24px; background: #fff8e9; box-shadow: 0 3px 8px rgba(216,151,23,.15); }
.growth-label { display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px 6px 9px; border-radius: 999px; background: #ff690c; color: white; font-family: "Pretendard", sans-serif; font-size: clamp(13px, 3.6cqw, 18px); font-weight: 700; }
.growth-label span { font-size: 1.2em; line-height: 1; }
.growth-card h2 { margin: 12px 0 8px; color: #102eb2; font-family: "A Gothic 17", sans-serif; font-size: clamp(21px, 5.4cqw, 30px); font-weight: 400; line-height: 1.35; word-break: keep-all; }
.growth-card p { margin: 0; color: #37302b; font-size: clamp(15px, 3.8cqw, 20px); line-height: 1.65; }
.mission-coupon { overflow: hidden; border: 1px solid #ff690c; border-radius: 24px; background: #fff; box-shadow: 0 3px 8px rgba(230,91,12,.12); }
.coupon-copy { position: relative; padding: 18px clamp(14px, 4cqw, 26px) 17px; text-align: center; }
.coupon-eyebrow { margin: 0 0 8px; color: #111; font-family: "A Gothic 17", sans-serif; font-size: clamp(16px, 4.2cqw, 22px); }
.coupon-eyebrow strong { color: var(--orange); }
.coupon-copy h2 { margin: 0; color: var(--orange); font-family: "A Gothic 17", sans-serif; font-size: clamp(19px, 5.1cqw, 27px); font-weight: 400; line-height: 1.35; }
.coupon-note { margin: 8px 0 0; color: #5d534d; font-size: clamp(13px, 3.4cqw, 17px); line-height: 1.5; }
.coupon-cta { width: 100%; min-height: 58px; padding: 10px 16px; border: 0; background-color: #ff690c; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 4px, transparent 4px 8px); background-position: center top; background-size: 100% 3px; background-repeat: no-repeat; color: white; cursor: pointer; font-family: "Pretendard", sans-serif; font-size: clamp(16px, 4.6cqw, 23px); font-weight: 700; }
.coupon-cta:hover { background-color: #f45c00; }
.result-actions { display: grid; gap: 8px; padding: 0 2.5%; }
.result-restart { width: 100%; min-height: 50px; border: 1px solid #bfdcf0; border-radius: 14px; background: #eff8ff; color: #1233b4; cursor: pointer; font-family: "A Gothic 17", sans-serif; font-size: 17px; }
.result-home { padding: 7px; border: 0; background: transparent; color: #1233b4; cursor: pointer; font-size: 14px; text-decoration: underline; }
.save-status { margin: 0; }
.save-error { padding: 12px 14px; border-radius: 12px; background: #fff1e8; color: #923a0e; font-size: 14px; line-height: 1.5; }
.save-error button { display: block; margin-top: 8px; padding: 7px 12px; border: 1px solid #f3aa7e; border-radius: 8px; background: #fff; color: #923a0e; cursor: pointer; }
/* Application form follows the supplied long-form layout and scrolls only where the content requires it. */
.application-page { container-type: inline-size; display: grid; gap: clamp(14px, 3cqw, 20px); padding: 12px; color: #26384b; }
.application-intro { padding: 28px clamp(18px, 4cqw, 28px) 20px; border: 1px solid #d5edf7; border-radius: 22px; background: #f9fdff; }
.application-intro::before, .application-intro::after { content: none; }
.back-link { position: absolute; top: 16px; left: 20px; color: #1c45bd; font-size: 12px; text-decoration: none; }
.application-logo { width: min(62%, 260px); aspect-ratio: 850 / 390; margin: 6px auto 14px; background: url("/assets/application-logo.png") center / contain no-repeat; font-size: 0; line-height: 0; }
.application-logo small { font-size: 0; }
.application-intro h1 { max-width: 100%; margin: 0 0 16px; color: #182942; font-family: "A Gothic 17", sans-serif; font-size: clamp(20px, 5.4cqw, 30px); font-weight: 400; line-height: 1.4; letter-spacing: -.035em; }
.intro-search-icon { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.18em; }
.application-intro p { margin: 0; color: #334155; font-size: clamp(13px, 2.9cqw, 16px); line-height: 1.65; }
.intro-mascot { display: block; align-self: end; width: 100%; max-width: 200px; height: auto; object-fit: contain; }
.intro-body { display: grid; grid-template-columns: minmax(0, 1fr) 40%; align-items: start; gap: 8px; margin-top: 14px; }
.intro-copy { display: grid; gap: 14px; min-width: 0; }
.application-form { display: grid; gap: 22px; padding: clamp(18px, 4.5cqw, 28px); border: 1px solid #d5edf7; border-radius: 22px; background: #f9fdff; }
.form-section { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-section h2, .form-section legend { margin: 0 0 12px; padding: 0; color: #26384b; font-family: "A Gothic 17", sans-serif; font-size: clamp(18px, 4.8cqw, 24px); font-weight: 400; }
.form-question { margin: 0 0 6px; color: #424d5d; font-family: "A Gothic 13", sans-serif; font-size: 15px; line-height: 1.5; }
.event-date, .form-hint { margin: 0 0 8px; color: #929da6; font-size: 13px; }
.field-label { display: grid; gap: 6px; margin-top: 12px; color: #4a5663; font-size: 13px; }
.field-title em { color: #f14440; font-style: normal; }
.field-label input, .field-label textarea, .field-label select { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #d6e5f0; border-radius: 999px; background: white; color: #24364b; box-shadow: 0 1px 3px rgba(41,89,121,.08); }
.team-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.team-selects select { padding-right: 40px; }
.team-selects select:disabled { background: #f1f6fa; color: #9aa6b2; }
.field-label textarea { min-height: 100px; border-radius: 12px; resize: vertical; }
.choice-list { display: grid; gap: 8px; }
.form-choice { display: flex; align-items: flex-start; gap: 8px; color: #38495d; font-size: 14px; line-height: 1.45; cursor: pointer; }
.form-choice input, .consent-check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #2585f5; flex: 0 0 auto; }
.detail-label { margin-top: 16px; }
.environment-detail[hidden] { display: none; }
.consent-details p, .consent-details li { color: #505d6b; font-size: 12px; line-height: 1.6; }
.consent-details ul { display: grid; gap: 10px; padding-left: 18px; }
.consent-details li strong { color: #354253; }
.consent-note { margin: 12px 0; }
.consent-check { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: #35475c; font-size: 14px; }
.consent-row { display: flex; align-items: flex-start; gap: 12px; }
.consent-check { flex: 1; cursor: pointer; line-height: 1.5; }
.consent-view { flex: 0 0 auto; padding: 0 2px; border: 0; background: transparent; color: #1c45bd; font: inherit; font-size: 14px; line-height: 1.5; text-decoration: underline; cursor: pointer; }
.consent-dialog { width: min(480px, calc(100% - 32px)); max-height: 80vh; max-height: 80dvh; padding: 24px; border: 1px solid #d5edf7; border-radius: 20px; background: #f9fdff; color: #26384b; overflow-y: auto; }
.consent-dialog::backdrop { background: rgba(20, 35, 55, .5); }
.consent-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.consent-dialog-header h2 { margin: 0; font-family: "A Gothic 17", sans-serif; font-size: 20px; font-weight: 400; line-height: 1.4; }
.consent-close { flex: 0 0 auto; min-height: 36px; padding: 6px 12px; border: 1px solid #bfdcf0; border-radius: 8px; background: #eff8ff; color: #1233b4; font: inherit; cursor: pointer; }
.application-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff1e8; color: #a63e11; font-size: 14px; }
.application-submit { min-height: 54px; border: 0; border-radius: 14px; background: linear-gradient(105deg, #42a9f8, #1675fa); box-shadow: 0 2px 4px rgba(20,104,198,.18); color: #fff; cursor: pointer; font-family: "Pretendard", sans-serif; font-size: 20px; font-weight: 700; }
.application-submit:disabled { opacity: .7; cursor: wait; }
/* Keep Korean phrases together, then distribute short headings across balanced lines. */
.home-tagline, .result-hero h1, .result-subtitle, .result-card h2,
.growth-card h2, .coupon-copy h2, .application-intro h1,
.form-section h2, .form-section legend, .form-question,
.consent-dialog-header h2, .card-label, .growth-label {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.result-card p, .growth-card p, .coupon-note, .application-intro p,
.field-label, .form-choice, .consent-check, .consent-details p,
.consent-details li, .speech-bubble {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.result-hero h1, .result-subtitle, .card-label, .growth-label,
.form-choice > span, .consent-check > span { min-width: 0; max-width: 100%; }
.result-tag { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 700px) { .app-shell { width: min(100%, 560px); } }
@media (max-width: 390px) {
  .result-hero { min-height: clamp(360px, 92cqw, 390px); }
  .result-card-grid { grid-template-columns: 1fr; }
  .result-card { min-height: unset; }
  .quote-card ul { grid-template-columns: 1fr 1fr; }
  .speech-3 { grid-column: 1 / -1; }
}
@media (max-height: 700px) and (orientation: landscape) {
  .home-screen, .complete-screen { width: auto; height: 100svh; aspect-ratio: auto; }
  .home-title-logo { top: 3%; left: 29%; width: 42%; }
  .home-mascot { top: 20%; left: 29%; width: 42%; }
  .home-tagline { top: 65%; }
  .home-start { top: 72%; height: 10%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
