:root{
  --yellow:#ffd735;--orange:#ff6b31;--orange-dark:#ef5625;--cream:#fffdf0;--cream-2:#fff5cf;
  --blue:#1768f5;--green:#13a466;--red:#ef4f4f;--ink:#50351f;--muted:#8a735d;--line:#eddba6;
  --white:#fff;--radius:24px;--shadow:0 10px 28px rgba(91,59,20,.10);--streak-pct:0%;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;font-family:Nunito,Inter,ui-rounded,"Arial Rounded MT Bold",system-ui,-apple-system,Segoe UI,sans-serif;background:#f3c928;color:var(--ink)}
body{min-height:100dvh;overflow-x:hidden}
button,input{font:inherit}
button{border:0;cursor:pointer;color:inherit}
a{color:var(--blue)}
.mobile-app{width:100%;max-width:480px;min-height:100dvh;margin:0 auto;background:var(--yellow);position:relative;overflow:hidden;box-shadow:0 0 45px rgba(81,58,19,.16)}
.app-header{height:60px;padding:calc(7px + env(safe-area-inset-top)) 14px 7px;display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;z-index:30;background:rgba(255,215,53,.96)}
.brand{background:transparent;padding:0;display:flex;align-items:center;gap:8px;min-width:0}
.brand-mark{width:36px;height:36px;border-radius:13px;background:var(--orange);color:#fff;display:grid;place-items:center;font-size:19px;font-weight:1000;box-shadow:inset 0 -3px 0 rgba(120,37,10,.10)}
.brand-copy{display:flex;flex-direction:column;align-items:flex-start;line-height:1}.brand-copy b{font-size:15px;font-weight:1000}.brand-copy small{font-size:9px;color:#765c42;margin-top:4px;font-weight:800;letter-spacing:.04em}
.header-actions{display:flex;align-items:center;gap:6px}.best-pill{height:34px;padding:0 10px;border-radius:13px;background:var(--cream);display:flex;align-items:center;gap:5px;font-size:12px;box-shadow:0 4px 0 rgba(137,94,25,.06)}
.round-btn{width:34px;height:34px;border-radius:13px;background:var(--cream);display:grid;place-items:center;font-weight:1000;box-shadow:0 4px 0 rgba(137,94,25,.06);transition:transform .12s ease,background .12s ease}.round-btn:active{transform:scale(.92)}.round-btn.is-off{opacity:.5}
.app-main{min-height:calc(100dvh - 60px)}
.screen{display:none}.screen.is-active{display:block}.home-screen,.result-screen{padding:8px 14px calc(22px + env(safe-area-inset-bottom))}.game-screen{padding:4px 12px calc(12px + env(safe-area-inset-bottom))}

/* HOME */
.home-stack{display:flex;flex-direction:column;gap:12px}.hero-card{background:var(--orange);border-radius:30px;padding:18px 18px 16px;color:white;position:relative;overflow:hidden;text-align:center;min-height:530px;box-shadow:0 12px 0 rgba(189,83,27,.10)}
.hero-orb{position:absolute;border-radius:999px;background:rgba(255,255,255,.08)}.orb-a{width:180px;height:180px;left:-80px;top:-80px}.orb-b{width:130px;height:130px;right:-45px;bottom:110px}
.hero-kicker{display:inline-flex;height:28px;align-items:center;padding:0 11px;border-radius:999px;background:rgba(255,255,255,.16);font-size:10px;font-weight:1000;letter-spacing:.1em;position:relative;z-index:2}
.hero-art{height:245px;position:relative;margin:6px -12px 2px;display:grid;place-items:center}.hero-art-ring{position:absolute;width:230px;height:230px;border-radius:50%;background:#ffd66b;border:12px solid rgba(255,255,255,.15)}.hero-art img{position:relative;z-index:2;width:110%;max-width:420px;height:250px;object-fit:contain;object-position:center 60%;filter:drop-shadow(0 16px 12px rgba(70,34,10,.16))}.hero-bubble{position:absolute;right:23px;top:28px;z-index:3;background:#fff;color:var(--orange-dark);padding:9px 12px;border-radius:16px 16px 16px 4px;font-size:11px;font-weight:1000;transform:rotate(4deg)}
.hero-card h1{position:relative;z-index:2;font-size:34px;line-height:.98;margin:0;font-weight:1000;letter-spacing:-.035em}.hero-card h1 span{color:#fff7c8}.hero-card>p{position:relative;z-index:2;margin:10px auto 16px;max-width:330px;font-size:13px;line-height:1.45;color:#fff7eb;font-weight:650}
.btn{min-height:50px;border-radius:18px;padding:0 18px;display:flex;align-items:center;justify-content:center;gap:10px;font-weight:1000;transition:transform .12s ease,filter .12s ease,box-shadow .12s ease}.btn:active{transform:translateY(2px) scale(.985)}.btn-xl{min-height:56px;border-radius:19px;font-size:16px}.btn-primary{background:var(--cream);color:var(--orange-dark);box-shadow:0 5px 0 rgba(120,37,10,.12)}.hero-card .btn-primary{width:100%;position:relative;z-index:2}.btn-blue{background:var(--blue);color:#fff}.btn-soft{background:var(--cream-2);color:var(--ink)}.text-btn{background:transparent;color:white;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;font-size:12px;font-weight:900;margin-top:12px;position:relative;z-index:2}
.quick-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.quick-rules div{background:var(--cream);border-radius:20px;padding:13px 8px;text-align:center;border:1px solid rgba(123,88,37,.06)}.quick-rules span{display:block;font-size:20px;font-weight:1000;color:var(--orange-dark)}.quick-rules small{font-size:10px;font-weight:900;color:var(--muted)}
.world-card{background:var(--cream);border-radius:24px;padding:15px}.world-head{display:flex;justify-content:space-between;align-items:center}.world-head div{display:flex;flex-direction:column;gap:2px}.world-head small{font-size:9px;font-weight:1000;color:var(--orange);letter-spacing:.12em}.world-head b{font-size:17px}.world-head>span{font-size:24px}.world-pills{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}.world-pills span{border-radius:14px;padding:10px 4px;text-align:center;font-size:11px;font-weight:1000}.world-pills .land{background:#e7f7df}.world-pills .sky{background:#e7f0ff}.world-pills .ocean{background:#dff7fa}
.hint-note{display:flex;align-items:center;gap:11px;background:#fff1bd;border-radius:20px;padding:13px 14px}.hint-note>span{width:38px;height:38px;border-radius:13px;background:white;display:grid;place-items:center}.hint-note p{margin:0;display:flex;flex-direction:column;gap:2px}.hint-note b{font-size:13px}.hint-note small{font-size:10px;line-height:1.35;color:var(--muted);font-weight:700}

/* GAME */
.quiz-shell{display:flex;flex-direction:column;gap:9px}.quiz-hud{height:38px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px}.question-count{height:32px;padding:0 9px;border-radius:12px;background:var(--cream);display:flex;align-items:baseline;gap:2px}.question-count b{font-size:16px}.question-count span{font-size:10px;color:var(--muted);font-weight:900}.progress-track{height:8px;border-radius:999px;background:rgba(255,255,255,.58);overflow:hidden}.progress-track i{display:block;height:100%;width:0;border-radius:inherit;background:var(--orange);transition:width .35s ease}.score-chip{height:32px;min-width:66px;padding:0 9px;border-radius:12px;background:var(--cream);display:flex;align-items:center;justify-content:center;gap:4px;font-size:12px}
.question-card{background:var(--cream);border-radius:26px;padding:12px;border:1px solid rgba(123,88,37,.06);box-shadow:0 6px 0 rgba(137,94,25,.06)}.question-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 1px 9px}.question-copy{min-width:0}.question-copy>span{display:block;color:var(--orange-dark);font-size:8.5px;font-weight:1000;letter-spacing:.08em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:250px}.question-copy h2{margin:3px 0 0;font-size:22px;line-height:1;font-weight:1000;letter-spacing:-.025em}
.timer{width:48px;height:48px;position:relative;flex:0 0 auto}.timer svg{width:100%;height:100%;transform:rotate(-90deg)}.timer circle{fill:none;stroke-width:5}.timer-bg{stroke:#f3e8bf}.timer-ring{stroke:var(--blue);stroke-linecap:round;stroke-dasharray:132;stroke-dashoffset:0;transition:stroke .2s ease}.timer b{position:absolute;inset:0;display:grid;place-items:center;font-size:15px}.timer.warning .timer-ring{stroke:var(--red)}.timer.warning b{color:var(--red);animation:timerPulse .55s infinite alternate}@keyframes timerPulse{to{transform:scale(1.14)}}
.image-stage{height:248px;border-radius:20px;overflow:hidden;position:relative;background:#f8efcf;display:grid;place-items:center}.image-stage img{width:100%;height:100%;object-fit:contain;opacity:0;transform:scale(.96);transition:opacity .25s ease,transform .25s ease;background:#f8efcf}.image-stage img.is-loaded{opacity:1;transform:scale(1)}.image-shade{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 -38px 34px rgba(64,40,12,.07)}.mystery-badge{position:absolute;right:10px;top:10px;width:32px;height:32px;border-radius:11px;background:var(--blue);color:white;display:grid;place-items:center;font-weight:1000;font-size:18px}.image-loader{position:absolute;z-index:5;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f8efcf;gap:4px}.image-loader.hidden{display:none}.image-loader span{font-size:33px;animation:egg 1s infinite alternate}@keyframes egg{to{transform:rotate(10deg) translateY(-3px)}}.image-loader b{font-size:12px}.image-loader small{font-size:9px;color:var(--muted)}
.hint-row{padding-top:9px;display:flex;flex-direction:column;gap:7px}.hint-btn{height:42px;width:100%;border-radius:15px;background:#fff0b6;display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:1000}.hint-btn small{font-size:9px;background:white;padding:3px 6px;border-radius:999px;color:var(--muted)}.hint-btn:disabled{opacity:.65}.hint-btn.is-used{background:#f3ecd5;color:#8d7d65}.hint-overlay{border-radius:15px;padding:10px 12px;background:#fff5cc;border:1px dashed #e7c45d;opacity:0;transform:translateY(-5px);transition:.18s ease}.hint-overlay.is-visible{opacity:1;transform:none}.hint-overlay span{font-size:8px;font-weight:1000;color:var(--orange);letter-spacing:.12em}.hint-overlay p{margin:3px 0 0;font-size:11px;line-height:1.38;font-weight:800;color:#705439}
.answers-section{background:var(--cream);border-radius:24px;padding:12px}.answer-title{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;margin-bottom:9px}.answer-title b{font-size:14px}.answer-title small{font-size:8.5px;color:var(--muted);font-weight:800;text-align:right}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.answer-btn{min-height:66px;border-radius:17px;background:#fff8df;border:1.5px solid #ead9a1;padding:8px 9px;display:grid;grid-template-columns:29px 1fr 20px;align-items:center;gap:6px;text-align:left;position:relative;overflow:hidden;transition:transform .12s ease,border-color .12s ease,background .12s ease}.answer-btn:active{transform:scale(.97)}.answer-letter{width:29px;height:29px;border-radius:10px;background:white;display:grid;place-items:center;font-size:11px;font-weight:1000;color:var(--orange-dark);box-shadow:0 3px 0 rgba(85,56,13,.05)}.answer-name{font-size:13px;line-height:1.08;font-weight:1000;overflow-wrap:anywhere}.answer-check{font-size:17px;font-weight:1000;text-align:center}.answer-btn.correct{background:#dcf6e7;border-color:#71c997;color:#23623f}.answer-btn.correct .answer-letter{color:#16784a}.answer-btn.wrong{background:#ffe3df;border-color:#ef8d82;color:#8d382f}.answer-btn.wrong .answer-letter{color:#cf4538}.answer-btn.dim{opacity:.42}
.streak-bar{background:#563921;color:white;border-radius:19px;padding:9px 12px 8px;display:grid;grid-template-columns:auto 1fr;gap:5px 9px;align-items:center}.streak-bar>div{display:flex;align-items:center;gap:5px;white-space:nowrap}.streak-bar>div b{font-size:11px}.streak-bar strong{font-size:13px;color:#ffd735}.streak-bar i{height:6px;border-radius:999px;background:linear-gradient(90deg,#ffd735 var(--streak-pct),rgba(255,255,255,.16) var(--streak-pct));display:block}.streak-bar small{grid-column:1/-1;font-size:8px;color:#eadcc8;font-weight:700}

/* RESULT */
.result-stack{display:flex;flex-direction:column;gap:10px}.result-hero{background:var(--orange);border-radius:28px;padding:23px 18px 18px;color:white;text-align:center;overflow:hidden}.result-mascot{font-size:58px;line-height:1;margin-bottom:8px}.result-hero>span{font-size:9px;font-weight:1000;letter-spacing:.12em}.result-hero h1{margin:5px 0 5px;font-size:31px;line-height:1}.result-hero p{font-size:12px;line-height:1.4;margin:0 auto 14px;max-width:300px;color:#fff4e8}.final-score{background:rgba(255,255,255,.15);border-radius:18px;padding:10px 16px;display:inline-flex;flex-direction:column;min-width:145px}.final-score small{font-size:8px;font-weight:1000}.final-score b{font-size:30px}.result-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.result-stats div{background:var(--cream);border-radius:19px;padding:12px;text-align:center;display:grid;grid-template-columns:auto auto;justify-content:center;gap:2px 7px}.result-stats span{font-size:17px;grid-row:1/3;align-self:center}.result-stats b{font-size:16px}.result-stats small{font-size:8px;color:var(--muted);font-weight:900}.result-actions{display:flex;flex-direction:column;gap:8px}.result-actions .btn{width:100%}.result-actions .btn-primary{background:var(--orange);color:white}.mistakes-panel{background:var(--cream);border-radius:21px;padding:14px}.mistakes-panel h3{margin:0 0 10px;font-size:15px}.mistakes-panel p{font-size:11px}.mistake-list{display:flex;flex-direction:column;gap:7px}.mistake-item{display:flex;align-items:center;gap:9px;background:#fff7db;border-radius:14px;padding:9px}.mistake-item p{margin:0;display:flex;flex-direction:column}.mistake-item b{font-size:11px}.mistake-item small{font-size:8px;color:var(--muted)}

/* BOTTOM SHEETS */
.modal-backdrop{position:fixed;inset:0;background:rgba(55,37,20,.48);z-index:100;display:flex;justify-content:center;align-items:flex-end;opacity:0;pointer-events:none;transition:opacity .2s ease;padding-top:env(safe-area-inset-top)}.modal-backdrop.is-open{opacity:1;pointer-events:auto}.detail-modal,.how-modal{width:100%;max-width:480px;background:var(--cream);border-radius:28px 28px 0 0;transform:translateY(30px);transition:transform .24s ease;box-shadow:0 -14px 45px rgba(48,32,17,.22)}.modal-backdrop.is-open .detail-modal,.modal-backdrop.is-open .how-modal{transform:none}.detail-modal{height:min(90dvh,790px);display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom)}.sheet-handle{width:42px;height:5px;border-radius:999px;background:#d9c9a5;margin:9px auto}.detail-scroll{overflow:auto;overscroll-behavior:contain;padding:0 13px 10px}.detail-visual{height:205px;border-radius:21px;overflow:hidden;position:relative;background:#f4e9c6}.detail-visual img{width:100%;height:100%;object-fit:contain}.answer-status{position:absolute;left:11px;top:11px;height:38px;padding:0 12px;border-radius:13px;background:var(--green);color:white;display:flex;align-items:center;gap:7px;font-size:12px;box-shadow:0 5px 13px rgba(28,100,61,.18)}.answer-status.is-wrong{background:var(--red)}.answer-status.is-timeout{background:#8a735d}.detail-body{padding:13px 2px 2px}.detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.detail-heading>div{min-width:0}.detail-heading>div>span{display:block;font-size:8px;color:var(--orange);font-weight:1000;letter-spacing:.08em;line-height:1.3}.detail-heading h2{font-size:25px;line-height:1;margin:4px 0 3px;overflow-wrap:anywhere}.detail-heading p{font-size:10px;color:var(--muted);margin:0;font-style:italic}.chip-row{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.chip{font-size:8px;font-weight:1000;padding:6px 8px;border-radius:999px}.chip.orange{background:#ffe2d5;color:#b54b27}.chip.blue{background:#dfeaff;color:#2a5eb7}.chip.green{background:#dff4e6;color:#2d7750}.fact-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.fact-grid div{background:#fff6d8;border-radius:15px;padding:10px;min-height:62px}.fact-grid small{display:block;font-size:8px;color:var(--muted);font-weight:900;margin-bottom:3px}.fact-grid b{font-size:10px;line-height:1.25;display:block}.fun-fact{margin-top:8px;background:#e8f2ff;border-radius:16px;padding:10px;display:flex;align-items:flex-start;gap:8px}.fun-fact>span{font-size:18px}.fun-fact p{margin:0;font-size:10px;line-height:1.4}.science-note{font-size:9px;line-height:1.4;color:#705b46;background:#f3ecd8;border-radius:13px;padding:9px;margin:8px 0}.source-line{font-size:7.5px;line-height:1.45;color:#8d7a65;overflow-wrap:anywhere}.sheet-action{padding:9px 13px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #eee1bd;background:var(--cream)}.sheet-action .btn{width:100%;background:var(--orange);color:white}
.how-modal{padding:8px 15px calc(16px + env(safe-area-inset-bottom));position:relative}.modal-close{position:absolute;right:15px;top:17px;width:34px;height:34px;border-radius:12px;background:#f3e8c8;font-size:20px;font-weight:900}.mini-label{font-size:8px;font-weight:1000;color:var(--orange);letter-spacing:.12em}.how-modal h2{font-size:23px;line-height:1.08;margin:5px 42px 14px 0}.how-steps{display:flex;flex-direction:column;gap:8px;margin-bottom:13px}.how-steps>div{display:flex;gap:10px;align-items:center;background:#fff6d8;border-radius:16px;padding:10px}.how-steps>div>span{width:31px;height:31px;border-radius:11px;background:var(--orange);color:white;display:grid;place-items:center;font-size:12px;font-weight:1000;flex:0 0 auto}.how-steps p{margin:0;display:flex;flex-direction:column}.how-steps b{font-size:11px}.how-steps small{font-size:9px;color:var(--muted);line-height:1.35}.how-modal .btn{width:100%;background:var(--orange);color:white}
.toast{position:fixed;z-index:200;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));transform:translate(-50%,18px);max-width:calc(100% - 32px);background:#4d3522;color:white;padding:9px 13px;border-radius:13px;font-size:10px;font-weight:900;opacity:0;pointer-events:none;transition:.2s ease;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}

@media (hover:hover) and (pointer:fine){.btn:hover,.answer-btn:hover,.hint-btn:hover,.round-btn:hover{transform:translateY(-2px);filter:brightness(1.015)}.answer-btn:hover{border-color:#d6b85a}.text-btn:hover{opacity:.82}}
@media (max-width:360px){.app-header{padding-left:10px;padding-right:10px}.brand-copy small{display:none}.best-pill{padding:0 7px}.home-screen{padding-left:10px;padding-right:10px}.game-screen{padding-left:8px;padding-right:8px}.hero-card{padding-left:14px;padding-right:14px;min-height:500px}.hero-art{height:220px}.hero-art img{height:225px}.hero-art-ring{width:205px;height:205px}.hero-card h1{font-size:31px}.question-copy>span{max-width:205px}.image-stage{height:220px}.answer-btn{min-height:61px;padding:7px 7px;grid-template-columns:27px 1fr 16px;gap:5px}.answer-name{font-size:12px}.answer-letter{width:27px;height:27px}.answer-title small{display:none}}
@media (max-height:720px){.app-header{height:54px;padding-top:calc(5px + env(safe-area-inset-top));padding-bottom:5px}.brand-mark{width:32px;height:32px}.brand-copy small{display:none}.round-btn,.best-pill{height:31px}.round-btn{width:31px}.app-main{min-height:calc(100dvh - 54px)}.game-screen{padding-top:2px}.quiz-shell{gap:6px}.quiz-hud{height:32px}.question-card{padding:9px;border-radius:22px}.question-row{padding-bottom:6px}.question-copy h2{font-size:19px}.timer{width:42px;height:42px}.image-stage{height:185px;border-radius:17px}.hint-row{padding-top:6px}.hint-btn{height:36px}.answers-section{padding:9px;border-radius:20px}.answer-title{margin-bottom:6px}.answer-btn{min-height:55px;border-radius:14px}.streak-bar{padding:7px 10px}.hero-card{min-height:470px}.hero-art{height:195px}.hero-art img{height:205px}.hero-art-ring{width:185px;height:185px}.hero-card h1{font-size:29px}}
@media (orientation:landscape) and (max-height:560px){body::before{content:"Untuk pengalaman terbaik, putar HP ke posisi portrait";position:fixed;z-index:1000;inset:0;background:var(--yellow);display:grid;place-items:center;text-align:center;padding:40px;font-weight:1000;font-size:18px;color:var(--ink)}}

/* During gameplay the global header becomes a compact mobile game bar. */
body.game-active .app-header{height:50px;padding-top:calc(5px + env(safe-area-inset-top));padding-bottom:5px}
body.game-active .brand-copy,body.game-active .best-pill{display:none}
body.game-active .brand-mark{width:32px;height:32px;border-radius:11px;font-size:16px}
body.game-active .round-btn{width:32px;height:32px;border-radius:11px}
body.game-active .app-main{min-height:calc(100dvh - 50px)}
