:root {--navy:#08235c;--navy2:#0d337d;--navy3:#172c72;--gold:#ffcb16;--gold2:#ffe68c;--ice:#eff4fc;--text:#101f4a;--muted:#768aac;--line:#dce5f3;--shadow:0 6px 13px rgba(18,46,107,.12)}
*{box-sizing:border-box}
html{min-height:100%;background:#071f54}
body{margin:0;background:#061d4d;color:var(--text);font-family:'Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR','NanumSquare',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer}
button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
[hidden]{display:none!important}
.app-frame{position:relative;max-width:510px;min-height:100svh;margin:0 auto;overflow:hidden;background:#fff;box-shadow:0 12px 85px rgba(2,13,36,.55)}
.brand-hero{position:relative;isolation:isolate;width:100%;height:398px;background:var(--navy) url('assets/01_hero_background.jpg') center bottom/cover no-repeat;overflow:hidden}
.brand-hero::after{position:absolute;content:'';inset:auto 0 0 0;height:76px;background:linear-gradient(transparent,#0826639c);z-index:0;pointer-events:none}
.hero-cloud{position:absolute;width:160px;left:-52px;top:114px;opacity:.48;z-index:0}
.hero-script{position:absolute;z-index:4;top:39px;left:24px;color:#fff;font-size:clamp(15px,3.9vw,19px);font-weight:900;line-height:1.43;letter-spacing:-.045em;transform:rotate(-9deg);text-shadow:0 2px 1px #0b2762;white-space:nowrap}
.hero-script::after{content:'';position:absolute;bottom:-12px;left:14px;width:137px;height:4px;border-radius:80%;background:var(--gold);transform:rotate(-4deg)}
.hero-lion{position:absolute;z-index:1;width:74%;max-width:385px;height:auto;right:6%;top:24px;filter:drop-shadow(0 7px 3px rgba(0,11,58,.35));pointer-events:none}
.hero-crest{position:absolute;z-index:5;width:28%;max-width:142px;right:5%;top:151px;filter:drop-shadow(0 5px 5px rgba(0,17,67,.4));pointer-events:none}
.hero-title{position:absolute;z-index:4;bottom:64px;left:27px;display:flex;flex-direction:column;align-items:flex-start;transform:rotate(-3deg)}
.hero-title>span{display:block;font-weight:1000;letter-spacing:-.105em;line-height:.99;white-space:nowrap;-webkit-text-stroke:6px white;paint-order:stroke fill;filter:drop-shadow(4px 5px 0 #051947);text-shadow:2px 3px 0 #0a1941}
.title-school{font-size:clamp(45px,12.2vw,67px);color:white;text-shadow:-3px 2px 0 #091d59,3px 2px 0 #091d59,0 4px 0 #091d59!important;-webkit-text-stroke:7px #e7efff!important}
.title-quiz{font-size:clamp(58px,15.6vw,86px);color:var(--gold);margin-left:27px;text-shadow:-3px 2px 0 #061746,3px 2px 0 #061746,0 4px 0 #061746!important;-webkit-text-stroke:7px #e7efff!important}
.title-crown{position:absolute;width:53px;height:auto;top:-26px;left:68px;transform:rotate(12deg);filter:drop-shadow(0 2px 0 #0d2159)}
.hero-caption{position:absolute;z-index:2;left:190px;bottom:21px;color:#fff;font-size:clamp(12px,3vw,15px);font-weight:800;text-align:center;line-height:1.4;transform:rotate(-7deg);text-shadow:0 2px 3px #061943}
.hero-spark{position:absolute;z-index:3;width:62px;left:4px;bottom:93px;pointer-events:none}
.white-sheet{position:relative;z-index:6;margin-top:-11px;padding:25px 22px 38px;border-radius:31px 31px 0 0;background:#fff;min-height:480px}
.game-sheet{margin-top:-11px;padding-bottom:27px}
.question-status{display:flex;align-items:center;gap:13px;min-height:55px;margin:0 0 14px}
.book-badge{width:50px;height:50px;flex:0 0 50px;object-fit:contain;filter:drop-shadow(0 3px 3px #b7c1d2)}
.question-counter{font-size:23px;font-weight:950;letter-spacing:-.09em;color:var(--text);white-space:nowrap}
.question-counter b{font-size:27px;margin-left:2px}
.question-counter i{color:#8097c5;font-style:normal;font-weight:650}
.progress-dots{margin-left:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative;padding:0 2px}
.progress-dots::before{position:absolute;content:'';height:5px;left:13px;right:13px;top:50%;transform:translateY(-50%);background:#cbd8ec;z-index:0}
.progress-dots span{position:relative;z-index:1;background:#cdd7e9;width:19px;height:19px;border-radius:50%;box-shadow:0 1px 3px #c8d7ec}
.progress-dots span.filled{background:#ffc314;box-shadow:0 1px 5px #ffc31470}
.question-box{position:relative;overflow:hidden;border-radius:21px;min-height:128px;padding:20px 18px 22px;background:linear-gradient(128deg,#f0f4fc 30%,#e5edf9);display:flex;flex-direction:column;justify-content:center;margin:8px 0 17px;isolation:isolate}
.question-box::before{position:absolute;content:'';right:-40px;bottom:-55px;width:230px;height:230px;background:url('assets/04_lion_watermark.png') center/contain no-repeat;opacity:.72;z-index:-1;pointer-events:none}
.question-type{color:#405f97;font-size:11px;font-weight:800;letter-spacing:.04em;margin:0 0 6px}
.question-box h1{font-size:clamp(19px,5.15vw,25px);letter-spacing:-.065em;line-height:1.42;overflow-wrap:anywhere;font-weight:950;margin:0;color:#102451}
.multi-help{font-size:12px;margin:9px 0 0;color:#4a6796;font-weight:750;line-height:1.4}
.answer-list{display:flex;flex-direction:column;gap:9px}
.answer-button{position:relative;display:flex;align-items:center;text-align:left;gap:16px;width:100%;min-height:61px;background:#fff;padding:10px 15px;border:2px solid #dce5f2;border-radius:24px;color:var(--text);box-shadow:var(--shadow);transition:transform .12s,border-color .12s,background .12s;touch-action:manipulation}
.answer-button:active:not(:disabled){transform:scale(.985)}
.answer-button.selected{background:#eef4ff;border-color:#174ca0;box-shadow:0 4px 10px #174ca02e}
.answer-button.correct{background:#eaf8ee;border-color:#15915f}
.answer-button.incorrect{background:#fff0f3;border-color:#df4e68}
.answer-button:disabled{cursor:default}
.answer-letter{display:grid;place-items:center;border-radius:50%;width:38px;height:38px;flex:0 0 38px;background:linear-gradient(130deg,#15509f,#081d58);color:white;font-size:20px;font-weight:900;box-shadow:0 2px 2px #0e244c24}
.answer-button.selected .answer-letter{background:#ffc51b;color:#0d2a64}
.answer-label{flex:1;line-height:1.42;font-size:clamp(14px,3.85vw,18px);font-weight:850;overflow-wrap:anywhere;letter-spacing:-.045em}
.answer-check{color:var(--navy2);font-weight:950;font-size:22px}
.action-button{display:flex;align-items:center;justify-content:center;gap:13px;width:100%;min-height:66px;margin-top:18px;border:0;border-radius:34px;color:#fff;background:linear-gradient(155deg,#174b97 0%,#0b2868 65%,#061c51 100%);box-shadow:inset 0 2px 0 #4c87e1,0 5px 0 #09245b,0 9px 14px #142d632c;font-size:clamp(17px,4.9vw,23px);font-weight:950;letter-spacing:-.055em;text-align:center;padding:12px 16px;transition:transform .12s;touch-action:manipulation}
.action-button:active:not(:disabled){transform:translateY(3px)}
.action-button span{font-size:22px;font-weight:900}
.action-button:disabled{opacity:.48;cursor:not-allowed;box-shadow:inset 0 2px 0 #a6b7d4,0 4px 0 #6c82ac;background:linear-gradient(150deg,#6d85b2,#516a9b)}
.response-hint{font-size:14px;min-height:22px;text-align:center;margin:14px 0 0;font-weight:850}
.response-hint.good{color:#13804f}.response-hint.bad{color:#c83351}
.bottom-note{font-size:11px;color:#7384a4;text-align:center;margin:20px auto 0;line-height:1.6}
.bottom-decoration{position:relative;height:58px;margin-top:0;background:url('assets/05_bottom_wave.png') center bottom / 100% 80px no-repeat;z-index:7;pointer-events:none}
/* Intro / start screen */
.hero-home{height:400px}
.home-sheet{padding-top:23px;padding-bottom:53px}
.sheet-heading{display:flex;align-items:center;gap:12px;margin:0 0 17px}
.sheet-heading h1{font-size:clamp(20px,5.8vw,27px);font-weight:950;margin:1px 0 0;letter-spacing:-.06em}
.subheading{color:#7890b4;letter-spacing:.06em;font-size:10px;font-weight:750}
.intro-card{border-radius:22px;background:linear-gradient(115deg,#ecf3fd,#e3ecf9);padding:23px 18px;margin:0 0 17px;position:relative;overflow:hidden}
.intro-card::after{position:absolute;content:'';width:190px;height:190px;bottom:-72px;right:-36px;background:url('assets/04_lion_watermark.png') center/contain no-repeat;pointer-events:none}
.intro-card h2{position:relative;margin:0 0 9px;font-size:23px;line-height:1.4;letter-spacing:-.05em;font-weight:950;z-index:1}
.intro-card p{position:relative;margin:0;color:#40557f;font-size:14px;font-weight:650;line-height:1.65;z-index:1}
.intro-card p b{color:#0c3280}
.rule-list{display:flex;flex-direction:column;gap:7px;padding:0 4px 3px}
.rule-row{display:flex;align-items:center;gap:14px;padding:8px 2px}
.rule-num{display:grid;place-items:center;background:#ffdf70;border:1px solid #ffce34;color:#0b295e;font-size:16px;font-weight:950;width:44px;height:44px;flex:0 0 44px;border-radius:50%}
.rule-row p{font-size:13px;letter-spacing:-.035em;margin:0;line-height:1.5;color:#526385;font-weight:600}
.rule-row b{color:#173b84}
/* result screens */
.result-sheet{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;gap:13px;padding-top:45px;padding-bottom:95px;min-height:530px}
.result-sheet h1{font-size:clamp(32px,8vw,43px);font-weight:950;margin:0;letter-spacing:-.07em;color:#0b285e}
.result-sheet>p{font-size:15px;margin:0;color:#50658e;line-height:1.72;letter-spacing:-.035em}
.result-sheet>p b{color:#13295f}
.fail-visual{position:relative;display:grid;place-items:center;width:170px;height:150px}
.fail-visual img{width:145px;opacity:.16;filter:grayscale(1)}
.fail-visual span{position:absolute;font-size:115px;font-weight:950;color:#ef4e70;text-shadow:0 5px 0 #ffc3d0}
.result-kicker{color:#2760b3;letter-spacing:.11em;font-weight:950;font-size:14px}
.fail-sheet .result-kicker{color:#d3466a}
.home-text-link{font-size:13px;text-decoration:underline;text-underline-offset:5px;color:#6781b5;margin-top:12px}
.success-frame{background:#fff}
.hero-success{height:354px}
.hero-success .hero-lion{width:65%;top:8px;right:4%}
.hero-success .hero-crest{top:135px;width:27%}
.hero-success .hero-title{bottom:33px;left:24px}
.hero-success .title-school{font-size:clamp(37px,10.2vw,57px)}
.hero-success .title-quiz{font-size:clamp(47px,14.3vw,74px);margin-left:12px}
.hero-success .hero-caption{bottom:8px;left:auto;right:20px;font-size:11px;transform:none}
.confetti{position:absolute;z-index:2;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.result-medal{font-size:68px;line-height:1.2;filter:drop-shadow(0 6px 3px #f5cc7760)}
.reward-card{border-radius:21px;background:linear-gradient(145deg,#fff9e8,#fff0ae);padding:24px 13px;display:flex;align-items:center;gap:9px;flex-direction:column;width:100%;box-shadow:0 4px 10px #dcbe7d66;border:2px solid #ffe18e}
.reward-card span{font-size:13px;color:#92601a;font-weight:850}
.reward-card strong{font-size:clamp(24px,7vw,33px);letter-spacing:-.07em;color:#07265c;font-weight:1000}
.reward-card small{font-size:12px;color:#6b6581;line-height:1.5;font-weight:750}
.verification{font-size:12px!important;font-weight:800;color:#335383!important}
.verification time{font-variant-numeric:tabular-nums}
.success-sheet .bottom-note{font-size:11px;margin:0;max-width:320px}
@media(min-width:540px){body{padding:28px 0}.app-frame{border-radius:25px;min-height:780px}.brand-hero{height:407px}.hero-script{font-size:19px}.hero-title{bottom:58px}.hero-crest{width:139px}.white-sheet{min-height:440px}.hero-success{height:360px}}
@media(max-width:385px){.brand-hero{height:347px}.hero-title{bottom:52px;left:20px}.hero-lion{width:74%;top:18px}.hero-crest{top:130px;width:27%}.hero-script{top:29px;left:20px;font-size:14px}.hero-caption{left:157px;bottom:16px;font-size:11px}.title-school{font-size:44px}.title-quiz{font-size:58px}.white-sheet{padding:20px 16px 39px}.book-badge{width:44px;height:44px;flex-basis:44px}.question-counter{font-size:21px}.progress-dots{gap:9px}.progress-dots span{width:16px;height:16px}.answer-button{min-height:58px;padding:9px 12px}.answer-letter{width:34px;height:34px;flex-basis:34px;font-size:17px}.answer-list{gap:8px}.question-box{min-height:122px;padding:16px}.hero-home{height:357px}.hero-success{height:310px}.hero-success .hero-crest{top:113px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Hero title sticker composed as a separate transparent asset to preserve the reference look */
.hero-game .hero-title,.hero-home .hero-title{left:11px;bottom:53px;width:310px;transform:rotate(-4deg)}
.title-art{display:block;width:100%;height:auto;filter:drop-shadow(1px 4px 0 #041744)}
.hero-game .title-crown,.hero-home .title-crown{width:46px;top:-13px;left:77px;transform:rotate(11deg)}
.hero-home .hero-lion,.hero-game .hero-lion{width:70%;right:0;top:21px}
.hero-home .hero-caption,.hero-game .hero-caption{left:195px;bottom:23px}
@media(max-width:385px){.hero-game .hero-title,.hero-home .hero-title{width:285px;left:5px;bottom:45px}.hero-home .hero-caption,.hero-game .hero-caption{left:185px;bottom:14px}.hero-home .hero-lion,.hero-game .hero-lion{width:69%;right:0;top:17px}}

/* Final spacing: preserve a readable title and keep the authentic crest separate */
.hero-game .hero-title,.hero-home .hero-title{width:282px;left:10px;bottom:53px}
.hero-game .hero-crest,.hero-home .hero-crest{width:24%;right:2%;top:139px}
.hero-game .hero-caption,.hero-home .hero-caption{left:auto;right:10px;bottom:17px;font-size:12px;text-align:right}
@media(max-width:385px){.hero-game .hero-title,.hero-home .hero-title{width:263px;left:3px;bottom:45px}.hero-game .hero-crest,.hero-home .hero-crest{width:24%;right:2%;top:122px}.hero-game .hero-caption,.hero-home .hero-caption{right:8px;bottom:14px;font-size:11px}}

/* v2.1: 가운데 등장하는 정답 / 오답 / 최종 성공 메시지 박스 */
.answer-effect[hidden]{display:none!important}
.answer-effect{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:calc(20px + env(safe-area-inset-top)) 19px calc(20px + env(safe-area-inset-bottom));isolation:isolate;overflow:hidden}
.answer-effect-shade{position:absolute;inset:0;background:rgba(3,18,52,.66);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);animation:effect-shade-in .2s ease-out both}
.effect-card{--effect-main:#1357a3;--effect-soft:#ffdc55;--effect-glow:rgba(255,202,30,.32);position:relative;z-index:1;width:min(100%,370px);border:5px solid #fff;border-radius:32px;padding:48px 24px 33px;background:linear-gradient(157deg,#fdfefe 0%,#f3f7ff 60%,#e4edff 100%);box-shadow:0 11px 0 #071b4c,0 28px 60px rgba(1,11,39,.48),0 0 0 3px rgba(255,221,78,.68);display:flex;flex-direction:column;align-items:center;text-align:center;animation:effect-pop .55s cubic-bezier(.16,1.35,.35,1) both;overflow:visible}
.effect-card::before{content:'';position:absolute;left:19px;right:19px;top:16px;height:7px;border-radius:999px;background:linear-gradient(90deg,transparent,var(--effect-soft),transparent);opacity:.75}
.effect-symbol{position:relative;display:grid;place-items:center;width:102px;height:102px;margin-bottom:19px;border-radius:50%;background:linear-gradient(135deg,#ffe98e,#ffbf12);color:#09265d;box-shadow:inset 0 4px 0 #fff6c7,0 6px 0 #dc9300,0 12px 22px var(--effect-glow);animation:effect-icon-in .55s .15s cubic-bezier(.16,1.35,.35,1) both}
.effect-symbol::before,.effect-symbol::after{content:'';position:absolute;border:2px solid rgba(255,191,24,.55);border-radius:50%;inset:-13px;animation:effect-ring .95s .18s ease-out both}
.effect-symbol::after{inset:-24px;animation-delay:.31s}
.effect-symbol>span{font-size:65px;font-weight:1000;line-height:1;text-shadow:0 2px 0 rgba(255,255,255,.46)}
.effect-kicker{color:#3565a1;font-size:12px;font-weight:1000;letter-spacing:.17em;margin-bottom:5px}
.effect-card h2{font-size:clamp(34px,9vw,43px);line-height:1.18;letter-spacing:-.09em;font-weight:1000;color:#08245e;margin:3px 0 13px;word-break:keep-all}
.effect-card p{color:#3d5885;font-weight:850;font-size:clamp(14px,3.7vw,17px);line-height:1.55;word-break:keep-all;margin:0 0 21px}
.effect-timebar{width:80%;height:6px;border-radius:100px;background:#d3deef;overflow:hidden}
.effect-timebar span{display:block;height:100%;width:100%;background:linear-gradient(90deg,#ffbc16,#ffe17a);border-radius:inherit;transform-origin:left center;animation:effect-timebar linear forwards}
.effect-spark{position:absolute;color:#ffd130;font-size:32px;font-weight:900;line-height:1;text-shadow:0 2px 0 #e8a406;animation:effect-twinkle 1s .2s ease-in-out infinite alternate;pointer-events:none}
.effect-spark-a{top:29px;left:22px;transform:rotate(-23deg)}
.effect-spark-b{top:80px;right:14px;font-size:22px;animation-delay:.47s}
.effect-spark-c{bottom:93px;left:18px;font-size:24px;animation-delay:.72s}
.effect-spark-d{bottom:51px;right:23px;font-size:22px;animation-delay:.19s}
.answer-effect.effect-wrong .effect-card{--effect-main:#c63658;--effect-soft:#ff8495;--effect-glow:rgba(255,69,105,.27);background:linear-gradient(157deg,#fffefd 0%,#fff6f8 65%,#ffebef 100%);box-shadow:0 11px 0 #691c38,0 28px 60px rgba(1,11,39,.48),0 0 0 3px rgba(255,155,170,.65)}
.answer-effect.effect-wrong .effect-symbol{background:linear-gradient(135deg,#ffb4bd,#f34e6c);color:#fff;box-shadow:inset 0 4px 0 #ffd9de,0 6px 0 #ab2248,0 12px 22px var(--effect-glow);animation:effect-icon-shake .45s .18s ease-out both}
.answer-effect.effect-wrong .effect-symbol::before,.answer-effect.effect-wrong .effect-symbol::after{border-color:rgba(240,73,115,.5)}
.answer-effect.effect-wrong .effect-kicker{color:#d34a6e}
.answer-effect.effect-wrong .effect-card h2{color:#b82e51}
.answer-effect.effect-wrong .effect-timebar span{background:linear-gradient(90deg,#fa5477,#ff9aa9)}
.answer-effect.effect-wrong .effect-spark{color:#ff647b;text-shadow:0 1px 0 #b52b50}
.answer-effect.effect-perfect .effect-card{border-color:#fff7d6;background:linear-gradient(160deg,#fff 0%,#fffaf0 73%,#fff1bb 100%);box-shadow:0 11px 0 #765319,0 28px 60px rgba(1,11,39,.48),0 0 0 3px rgba(255,210,56,.85)}
.answer-effect.effect-perfect .effect-symbol{width:112px;height:112px;background:linear-gradient(135deg,#fff5b1,#ffbf13);color:#13366c}
.answer-effect.effect-perfect .effect-symbol>span{font-size:68px}
.answer-effect.effect-perfect .effect-card h2{font-size:clamp(30px,8.2vw,39px)}
@keyframes effect-pop{0%{opacity:0;transform:scale(.66) translateY(65px) rotate(-3deg)}58%{opacity:1;transform:scale(1.055) translateY(-6px) rotate(1deg)}100%{opacity:1;transform:scale(1) translateY(0) rotate(0deg)}}
@keyframes effect-shade-in{from{opacity:0}to{opacity:1}}
@keyframes effect-icon-in{from{opacity:0;transform:scale(.25) rotate(-30deg)}to{opacity:1;transform:scale(1) rotate(0)}}
@keyframes effect-icon-shake{0%{transform:scale(.5) rotate(-15deg)}30%{transform:scale(1.15) rotate(10deg)}55%{transform:rotate(-9deg)}75%{transform:rotate(5deg)}100%{transform:rotate(0)}}
@keyframes effect-ring{from{opacity:.8;transform:scale(.7)}to{opacity:0;transform:scale(1.23)}}
@keyframes effect-twinkle{from{opacity:.55;scale:.82}to{opacity:1;scale:1.25}}
@keyframes effect-timebar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media(max-width:385px){.effect-card{padding:36px 18px 28px;border-radius:28px}.effect-symbol{width:90px;height:90px;margin-bottom:16px}.effect-symbol>span{font-size:55px}.effect-card p{margin-bottom:19px}}
@media(prefers-reduced-motion:reduce){.effect-card,.answer-effect-shade,.effect-symbol,.effect-symbol::before,.effect-symbol::after,.effect-spark,.effect-timebar span{animation:none!important}}


/* v2.7: Original Blion & school crest, mobile-first uncluttered redesign.
   DO NOT composite the AI posters: original transparent source assets guarantee exact school logo and clean eyes. */
.hero-script,.hero-crest,.hero-cloud,.hero-caption,.hero-spark,.title-crown{display:none!important}
.brand-hero{background-position:center bottom;background-size:cover}
.brand-hero::after{height:96px;background:linear-gradient(0deg,rgba(7,31,78,.68),transparent)}
.hero-home{height:352px}
.hero-home .hero-lion{width:clamp(235px,75%,330px);max-width:none;right:2%;top:5px;z-index:1}
.hero-home .hero-title{width:clamp(218px,63%,300px);left:10px;bottom:70px;transform:rotate(-2deg);z-index:2}
.hero-home .hero-title .title-art{width:100%}
.hero-tagline{position:absolute;z-index:3;display:block;left:50%;transform:translateX(-50%) rotate(-2deg);bottom:16px;white-space:nowrap;background:#ffcf34;color:#0a295e;border-radius:50px;padding:8px 22px;font-size:clamp(13px,3.9vw,18px);font-weight:950;letter-spacing:-.04em;box-shadow:0 5px 0 #12295788}
.hero-game{height:239px}
.hero-game .hero-lion{width:clamp(166px,54%,244px);max-width:none;right:6%;top:-9px;z-index:1}
.hero-game .hero-title{width:clamp(174px,50%,245px);left:12px;bottom:14px;transform:rotate(-2deg);z-index:2}
.hero-game .title-art{width:100%}
.hero-success{height:303px}
.hero-success .hero-lion{width:clamp(210px,67%,325px);max-width:none;right:0;top:0;z-index:1}
.hero-success .hero-title{z-index:3;left:16px;bottom:29px;transform:rotate(-3deg);max-width:85%}
.hero-success .title-school{font-size:clamp(42px,11vw,58px);line-height:1.03}
.hero-success .title-quiz{font-size:clamp(55px,15vw,78px);line-height:1.03;margin-left:5px}
.hero-success .confetti{z-index:0;opacity:.48;object-fit:cover}
.white-sheet{margin-top:-13px;border-radius:30px 30px 0 0}
.home-sheet{padding:25px 20px 49px;min-height:0}
.intro-card{border-radius:24px;padding:23px 18px;margin-bottom:13px;background:linear-gradient(125deg,#f1f5ff,#e6eefb)}
.intro-card::after{width:165px;height:165px;right:-42px;bottom:-45px;opacity:.34}
.intro-heading{display:flex;align-items:center;gap:14px;position:relative;z-index:2}
.intro-crest{display:block;flex:0 0 clamp(75px,21vw,101px);width:clamp(75px,21vw,101px);height:clamp(75px,21vw,101px);object-fit:contain;filter:drop-shadow(0 2px 2px #193b6638)}
.intro-card h1{margin:0;flex:1;min-width:0;font-size:clamp(19px,5.65vw,27px);line-height:1.29;font-weight:950;letter-spacing:-.07em;word-break:keep-all;color:#102655}
.intro-card p{margin:13px 0 0;padding-left:3px;font-size:clamp(14px,3.95vw,17px);line-height:1.56;font-weight:680;color:#516887;position:relative;z-index:2}
.intro-card p b{color:#0c3280}
.rule-list{gap:2px;padding:0 5px}
.rule-row{padding:7px 2px;gap:11px}
.rule-num{width:35px;height:35px;flex:0 0 35px;font-size:13px}
.rule-row p{font-size:clamp(12px,3.5vw,15px)}
.home-sheet .action-button{margin-top:16px}
.game-sheet{padding-top:22px;padding-bottom:38px}
.success-sheet{padding:31px 24px 64px;min-height:460px;gap:16px}
.result-crest{display:block;width:clamp(96px,27vw,134px);height:clamp(96px,27vw,134px);object-fit:contain;filter:drop-shadow(0 5px 8px #17366e22)}
.success-sheet h1{font-size:clamp(32px,9vw,47px);margin:0}
.success-sheet>p{font-size:clamp(14px,4vw,17px);line-height:1.55}
.success-sheet .reward-card{margin-top:5px;padding:22px 12px;gap:7px}
.success-sheet .verification{margin-top:0}
/* Keep the answer-submit button complete, including its lower radius/shadow. */
.game-sheet .action-button{margin-top:18px;margin-bottom:8px}
/* Narrow displays and very compact browser webviews. */
@media(max-width:385px){
 .hero-home{height:324px}
 .hero-home .hero-lion{width:75%;right:1%;top:3px}
 .hero-home .hero-title{width:63%;left:8px;bottom:66px}
 .hero-game{height:213px}
 .hero-game .hero-lion{width:54%;top:-7px}
 .hero-game .hero-title{width:50%;left:8px;bottom:11px}
 .hero-success{height:275px}
 .hero-success .hero-lion{width:67%;right:0;top:0}
 .hero-success .hero-title{bottom:24px;left:12px}
 .hero-success .title-school{font-size:clamp(36px,11vw,47px)}
 .hero-success .title-quiz{font-size:clamp(48px,15vw,59px)}
 .intro-heading{gap:11px}
 .home-sheet{padding:20px 15px 38px}
 .intro-card{padding:19px 13px}
 .intro-card h1{font-size:clamp(17px,5.5vw,21px)}
 .intro-crest{flex-basis:73px;width:73px;height:73px}
 .success-sheet{padding:26px 18px 50px}
}
@media(min-width:540px){
 .hero-home{height:365px}
 .hero-game{height:253px}
 .hero-success{height:322px}
 .hero-success .hero-lion{width:325px}
 .hero-home .hero-lion{width:330px}
 .white-sheet{min-height:0}
}
/* Final optical alignment: mascot's mane tip stays in-frame on mobile. */
.hero-game .hero-lion{top:9px;width:52%;right:5%}
.hero-success .hero-lion{top:7px;width:63%;right:2%}
.hero-success .confetti{opacity:.3}
@media(max-width:385px){.hero-game .hero-lion{top:7px;width:52%}.hero-success .hero-lion{top:8px;width:63%}}


/* ================================================================
   v2.8 — Galaxy S23 compact portrait layout
   Goal: start / question (including 5 choices) / result fit inside the
   visible mobile browser viewport. No content or gameplay is removed.
   Original lion and crest images stay independent and unmodified.
   ================================================================ */
@media (max-width: 539px) {
  .app-frame { min-height: 100svh; }
  .brand-hero::after { height: 34px; }

  /* The "서귀포고 퀴즈" lock-up is deliberately MUCH smaller than before. */
  .hero-home { height: 142px; }
  .hero-home .hero-lion { width: 43%; max-width: 180px; right: 7%; top: -2px; }
  .hero-home .hero-title { width: 39%; max-width: 160px; left: 15px; bottom: 29px; transform: rotate(-2deg); }
  .hero-tagline { left: 16px; bottom: 9px; transform: none; font-size: 10px; padding: 4px 10px; box-shadow:0 2px 0 #12295788; }

  /* Every new question fits as a compact single-screen activity. */
  .hero-game { height: 104px; }
  .hero-game .hero-lion { width: 31%; max-width: 135px; right: 10%; top: -3px; }
  .hero-game .hero-title { width: 31%; max-width: 139px; left: 14px; bottom: 13px; transform: rotate(-2deg); }

  /* Keep the success emblem entirely separate from the blue header. */
  .hero-success { height: 128px; }
  .hero-success .hero-lion { width: 38%; max-width: 159px; top: -1px; right: 8%; }
  .hero-success .hero-title { left: 16px; bottom: 12px; }
  .hero-success .title-school { font-size: 24px; -webkit-text-stroke: 3px #e7efff !important; }
  .hero-success .title-quiz { font-size: 35px; margin-left: 1px; -webkit-text-stroke: 3px #e7efff !important; }
  .hero-success .confetti { opacity: .22; }

  .white-sheet { margin-top: -8px; border-radius: 22px 22px 0 0; }
  .home-sheet { padding: 12px 16px 14px; }
  .intro-card { padding: 13px 12px; border-radius: 18px; margin-bottom: 8px; }
  .intro-heading { gap: 11px; }
  .intro-crest { width: 60px; height: 60px; flex: 0 0 60px; }
  .intro-card h1 { font-size: clamp(16px, 4.9vw, 21px); line-height: 1.28; }
  .intro-card p { margin-top: 9px; font-size: 12px; line-height: 1.35; padding-left: 1px; }
  .intro-card::after { width: 118px; height: 118px; opacity:.24; }
  .rule-list { gap: 0; padding: 0; }
  .rule-row { gap: 10px; padding: 5px 2px; }
  .rule-num { width: 28px; height: 28px; flex: 0 0 28px; font-size: 11px; }
  .rule-row p { font-size: clamp(11px, 3.1vw, 13px); line-height: 1.35; }
  .home-sheet .action-button { margin-top: 10px; min-height: 46px; }

  .game-sheet { padding: 9px 13px 10px; min-height: 0; }
  .question-status { gap: 8px; min-height: 34px; margin: 0 0 5px; }
  .book-badge { width: 32px; height: 32px; flex-basis: 32px; }
  .question-counter { font-size: 16px; letter-spacing: -.06em; }
  .question-counter b { font-size: 18px; }
  .progress-dots { gap: 7px; }
  .progress-dots span { width: 11px; height: 11px; }
  .progress-dots::before { height: 3px; left: 8px; right: 8px; }
  .question-box { min-height: 74px; margin: 4px 0 9px; border-radius: 16px; padding: 12px 13px; }
  .question-box::before { width: 150px; height: 150px; right: -31px; bottom: -35px; }
  .question-type { font-size: 9px; margin-bottom: 4px; }
  .question-box h1 { font-size: clamp(14px, 4vw, 18px); line-height: 1.32; letter-spacing: -.045em; }
  .multi-help { font-size: 10px; line-height: 1.25; margin: 5px 0 0; }
  .answer-list { gap: 5px; }
  .answer-button { min-height: 45px; padding: 6px 9px; gap: 10px; border-width: 1.5px; border-radius: 16px; box-shadow: 0 2px 6px #172a5520; }
  .answer-letter { height: 28px; width: 28px; flex-basis: 28px; font-size: 14px; }
  .answer-label { font-size: clamp(12px, 3.35vw, 15px); line-height: 1.32; font-weight: 820; letter-spacing:-.028em; }
  .answer-check { font-size: 17px; }
  #responseHint:empty { display: none; }
  .response-hint { margin: 6px 0 0; min-height: 0; font-size: 12px; }
  .game-sheet .action-button { min-height: 48px; margin-top: 10px; margin-bottom: 3px; }
  .action-button { min-height: 48px; border-radius: 25px; gap: 6px; padding: 8px 11px; font-size: 16px; box-shadow:inset 0 1px 0 #4c87e1, 0 3px 0 #09245b,0 5px 9px #142d632c; }
  .action-button span { font-size: 18px; }
  .bottom-decoration { height: 10px; margin-top: 0; background-size: 100% 33px; background-position: center bottom; }

  .success-sheet { padding: 16px 16px 16px; gap: 8px; min-height: 0; }
  .result-crest { width: 76px; height: 76px; }
  .success-sheet h1 { font-size: 29px; }
  .success-sheet>p { font-size: 13px; line-height: 1.5; }
  .success-sheet .reward-card { padding: 13px 10px; gap: 5px; margin-top: 5px; border-radius: 16px; }
  .reward-card strong { font-size: 22px; }
  .reward-card span { font-size: 11px; }
  .reward-card small { font-size: 11px; }
  .verification { font-size: 11px !important; }

  .fail-sheet { padding: 17px 15px 20px; min-height: 0; gap: 7px; }
  .fail-sheet h1 { font-size: 27px; }
  .fail-sheet>p { font-size: 13px; line-height: 1.4; }
  .fail-sheet .action-button { min-height: 47px; margin-top: 10px; }
}

/* Short Chrome / Samsung Internet viewport in Galaxy S23. */
@media (max-width: 539px) and (max-height: 690px) {
  .hero-home { height: 128px; }
  .hero-game { height: 90px; }
  .hero-success { height: 112px; }
  .hero-home .hero-lion { width: 39%; }
  .hero-home .hero-title { width: 35%; bottom: 28px; }
  .hero-game .hero-lion { width: 27%; }
  .hero-game .hero-title { width: 28%; bottom: 9px; }
  .hero-success .hero-lion { width: 33%; }
  .hero-success .title-school { font-size: 21px; }
  .hero-success .title-quiz { font-size: 30px; }
  .home-sheet { padding-top: 10px; padding-bottom: 8px; }
  .intro-card { padding: 11px; }
  .intro-crest { width: 53px; height: 53px; flex-basis: 53px; }
  .intro-card h1 { font-size: 17px; }
  .intro-card p { font-size: 11px; margin-top: 6px; }
  .rule-row { padding: 4px 2px; }
  .rule-row p { font-size: 11px; }
  .home-sheet .action-button { margin-top: 8px; }
  .game-sheet { padding-top: 7px; padding-bottom: 7px; }
  .question-status { margin-bottom: 3px; }
  .question-box { padding: 9px 11px; min-height: 66px; margin: 2px 0 6px; }
  .question-box h1 { font-size: 14px; line-height: 1.27; }
  .answer-list { gap: 4px; }
  .answer-button { min-height: 43px; padding: 5px 8px; }
  .answer-label { font-size: 12px; line-height: 1.24; }
  .game-sheet .action-button { min-height: 46px; margin-top: 8px; }
  .success-sheet { padding-top: 10px; gap: 5px; }
  .result-crest { width: 67px; height: 67px; }
  .success-sheet .reward-card { padding: 10px 8px; }
}

@media (max-width: 345px) {
  .intro-card h1 { font-size: 15px; }
  .intro-crest { width: 48px; height: 48px; flex-basis: 48px; }
  .hero-home .hero-title { width: 38%; }
  .answer-label { font-size: 11px; }
}

/* v2.8 finishing pass: use free space for readable 44px+ targets while
   staying within Galaxy S23 browser's relatively short content viewport. */
@media (max-width: 539px) {
 .hero-home { height: 185px; }
 .hero-home .hero-lion { width: 50%; max-width: 205px; right: 5%; top: -3px; }
 .hero-home .hero-title { width: 43%; max-width: 170px; bottom: 30px; left: 16px; }
 .hero-game { height: 147px; }
 .hero-game .hero-lion { width: 40%; max-width: 167px; right: 9%; top: -5px; }
 .hero-game .hero-title { width: 37%; max-width: 157px; bottom: 13px; }
 .hero-success { height: 165px; }
 .hero-success .hero-lion { width: 45%; max-width: 190px; right: 8%; top: -1px; }
 .hero-success .title-school { font-size: 27px; }
 .hero-success .title-quiz { font-size: 39px; }
 .home-sheet { padding-top: 15px; padding-bottom: 16px; }
 .intro-card { padding: 14px 13px; margin-bottom: 12px; }
 .intro-crest { width: 64px; height: 64px; flex-basis: 64px; }
 .intro-card h1 { font-size: clamp(17px, 4.9vw, 21px); }
 .intro-card p { font-size: 12px; margin-top: 10px; }
 .rule-row { padding: 7px 2px; }
 .rule-num { width: 31px; height: 31px; flex-basis: 31px; }
 .rule-row p { font-size: clamp(11px,3.25vw,14px); }
 .home-sheet .action-button { margin-top: 13px; min-height: 50px; }
 .game-sheet { padding: 10px 14px 13px; }
 .question-status { min-height: 37px; margin-bottom: 6px; }
 .question-box { min-height: 84px; padding: 12px 13px; margin: 5px 0 10px; }
 .question-box h1 { font-size: clamp(15px,4.15vw,18px); }
 .answer-list { gap: 6px; }
 .answer-button { min-height: 48px; padding: 7px 10px; }
 .answer-label { font-size: clamp(12px,3.55vw,15px); }
 .game-sheet .action-button { min-height: 50px; margin-top: 11px; }
 .success-sheet { padding: 18px 16px 19px; gap: 9px; }
 .result-crest { width: 84px; height: 84px; }
}
@media (max-width: 539px) and (max-height: 690px) {
 .hero-home { height: 174px; }
 .hero-home .hero-lion { width: 47%; }
 .hero-home .hero-title { width: 41%; }
 .hero-game { height: 132px; }
 .hero-game .hero-lion { width: 37%; }
 .hero-game .hero-title { width: 35%; }
 .hero-success { height: 144px; }
 .hero-success .hero-lion { width: 41%; }
 .hero-success .title-school { font-size: 24px; }
 .hero-success .title-quiz { font-size: 35px; }
 .home-sheet { padding-top: 12px; padding-bottom: 13px; }
 .intro-card { padding: 13px 12px; margin-bottom: 10px; }
 .intro-crest { width: 59px; height: 59px; flex-basis: 59px; }
 .intro-card p { font-size: 12px; margin-top: 8px; }
 .rule-row { padding: 6px 2px; }
 .home-sheet .action-button { margin-top: 12px; min-height: 49px; }
 .game-sheet { padding-top: 9px; padding-bottom: 10px; }
 .question-status { min-height: 36px; margin-bottom: 5px; }
 .question-box { min-height: 77px; padding: 11px 12px; margin: 4px 0 8px; }
 .question-box h1 { font-size: 15px; }
 .answer-list { gap: 5px; }
 .answer-button { min-height: 47px; padding: 6px 9px; }
 .answer-label { font-size: clamp(12px,3.45vw,14px); }
 .game-sheet .action-button { min-height: 48px; margin-top: 10px; }
 .result-crest { width: 75px; height: 75px; }
}
@media (max-width: 345px) and (max-height: 690px) {
 .hero-home { height: 158px; }
 .hero-game { height: 116px; }
 .hero-success { height: 132px; }
 .answer-label { font-size: 11.5px; }
 .question-box h1 { font-size: 14px; }
}
