:root{--navy:#17324d;--teal:#0f766e;--gold:#f4b942;--bg:#f4f7fa;--ink:#172b3a;--muted:#687b8c;--line:#e3eaf0}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif}.shell{max-width:820px;min-height:100dvh;margin:auto;padding-bottom:78px}header{display:flex;align-items:center;gap:11px;padding:15px 18px;background:white;border-bottom:1px solid var(--line);position:relative;top:auto;z-index:auto}.logo{width:42px;height:42px;border-radius:13px;background:var(--navy);color:var(--gold);display:grid;place-items:center;font-weight:900}header div:nth-child(2){display:grid;gap:3px}header small{font-size:10px;letter-spacing:.12em;color:var(--teal);font-weight:800}header b{color:var(--navy)}#network{margin-left:auto;font-size:10px;border-radius:20px;padding:7px;background:#e5f5f0;color:var(--teal)}#network.off{background:#fff0d6;color:#965d12}main{padding:18px}.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#17324d,#24546a);color:white;border-radius:23px;padding:23px 20px;min-height:250px}.kicker{font-size:10px;color:#b9e5d9;font-weight:800;letter-spacing:.1em}.hero h1{font-size:clamp(30px,8vw,42px);line-height:1.07;margin:17px 0 10px;letter-spacing:-.04em}.hero h1 em{font-style:normal;color:var(--gold)}.hero p{font-size:13px;line-height:1.6;color:#d8e5ec;max-width:320px}.btn,.wide{border:0;border-radius:13px;padding:13px 16px;font-size:14px;font-weight:800;cursor:pointer}.gold{background:var(--gold);color:var(--navy)}.art{position:absolute;right:15px;bottom:7px;font-size:70px;opacity:.7}.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 25px}.stat,.panel,.menu{background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px}.stat{display:flex;align-items:center;gap:10px}.stat .ico{font-size:23px}.stat small{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.stat strong{font-size:22px;color:var(--navy)}.eyebrow{font-size:10px;color:var(--teal);font-weight:800;letter-spacing:.13em}.section-title{font-size:21px;margin:5px 0 13px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.menu{display:flex;align-items:center;gap:10px;text-align:left;color:var(--ink);cursor:pointer;min-width:0}.menu .emoji{font-size:22px;background:#e8f4f1;border-radius:11px;padding:9px}.menu strong{display:block;font-size:12px;margin-bottom:4px}.menu small{font-size:10px;line-height:1.3;color:var(--muted)}.note{font-size:11px;line-height:1.5;color:var(--muted);margin:20px 2px}.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(820px,100%);display:grid;grid-template-columns:repeat(4,1fr);padding:9px 8px calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}.bottom button{border:0;background:none;color:#81909d;font-size:21px;display:grid;gap:2px;justify-items:center}.bottom small{font-size:10px}.bottom button.active{color:var(--teal);font-weight:800}.head{display:flex;align-items:center;gap:10px;margin:5px 0 18px}.back{width:42px;height:42px;border:1px solid var(--line);background:white;border-radius:12px;font-size:22px;color:var(--navy)}.head h1{font-size:25px;margin:0;color:var(--navy)}.head p{margin:4px 0 0;color:var(--muted);font-size:12px}.panel{margin-bottom:12px;box-shadow:0 4px 14px #17324d08}.panel h3{margin:5px 0 9px;font-size:18px}.panel p{font-size:13px;line-height:1.6;color:var(--muted)}.wide{width:100%;margin-top:10px;background:var(--teal);color:white}.choice{display:block;width:100%;text-align:left;border:1px solid var(--line);border-radius:12px;background:white;padding:13px;margin:8px 0;color:var(--ink);font-size:13px}.choice.good{background:#e7f7ef;border-color:#45a879}.choice.bad{background:#fff0f0;border-color:#d87979}.feedback{padding:12px;background:#f1f6f8;border-radius:10px;font-size:13px;line-height:1.5;margin-top:10px}.track{height:7px;background:#e4ebef;border-radius:10px;overflow:hidden;margin:13px 0}.fill{height:100%;background:var(--teal)}.score{font-size:50px;font-weight:900;color:var(--navy)}.pill{display:inline-block;border-radius:20px;padding:5px 8px;background:#e5f4f0;color:var(--teal);font-size:10px;font-weight:800}.history{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.empty{text-align:center;padding:25px;color:var(--muted)}@media(max-width:400px){main{padding:14px}.grid{grid-template-columns:1fr}.art{opacity:.35;right:0}.hero{min-height:265px}}
.level-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0 24px}.level-card{display:flex;flex-direction:column;gap:6px;text-align:left;border:1px solid var(--line);border-radius:14px;padding:13px 11px;background:#fff;color:var(--ink);cursor:pointer}.level-card b{font-size:16px;color:var(--teal)}.level-card strong{font-size:12px;line-height:1.3}.level-card small{font-size:10px;color:var(--muted);line-height:1.4}.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;padding:15px;border:1px solid var(--line);border-radius:16px;background:white;color:var(--ink);cursor:pointer;min-height:145px}.category-card span{font-size:25px}.category-card b{font-size:13px}.category-card small{font-size:11px;line-height:1.4;color:var(--muted)}.filter{width:100%;margin:6px 0 12px;padding:12px;border:1px solid var(--line);border-radius:11px;background:white;color:var(--ink);font:inherit;font-size:13px}.panel label{font-size:12px;font-weight:800;color:var(--navy)}.small-note{font-size:11px!important;line-height:1.55!important;color:var(--muted)}.material-title{display:flex;align-items:center;gap:11px;margin-bottom:12px}.material-title>span{display:grid;place-items:center;flex:0 0 45px;height:45px;border-radius:13px;background:#e8f4f1;font-size:24px}.material-title h3{margin:0 0 4px}.material-title small{font-size:11px;color:var(--muted)}.tag-list{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.tag{display:inline-block;border-radius:8px;padding:6px 8px;background:#f0f4f7;color:#41596b;font-size:10px}.wide.secondary{background:white;color:var(--navy);border:1px solid var(--line)}.wide.danger{background:#fff;color:#a22;border:1px solid #ecc}.panel ul{padding-left:20px;color:var(--muted);font-size:13px;line-height:1.65}.panel li{margin:5px 0}@media(max-width:500px){.level-cards{grid-template-columns:1fr}.level-card{display:grid;grid-template-columns:70px 1fr;align-items:center}.level-card small{grid-column:2}.category-grid{grid-template-columns:1fr 1fr}}@media(max-width:360px){.category-grid{grid-template-columns:1fr}}

.lesson-row{border-top:1px solid var(--line);padding:12px 0;margin-top:10px}.lesson-row>b{display:block;font-size:14px;color:var(--navy)}.lesson-row>small{display:block;font-size:10px;color:var(--teal);margin-top:4px}.lesson-row>p{margin:8px 0}.panel a{color:var(--teal);overflow-wrap:anywhere}

/* v0.3.0: clear stage separation */
.stage-section{margin:22px 0 28px}.stage-heading{display:flex;gap:12px;align-items:center;margin:12px 0}.stage-heading h2{font-size:1.05rem;margin:0 0 4px}.stage-heading small{color:var(--muted,#6b7280)}.stage-chip{display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;border-radius:13px;background:#17324d;color:#fff;font-weight:800;white-space:nowrap}.stage-banner{padding:18px;border-radius:20px;background:linear-gradient(135deg,#e8f4ee,#f8f3df);margin-bottom:14px}.stage-banner h2{margin:10px 0 6px;font-size:1.25rem}.stage-banner p{margin:0 0 10px}.stage-banner small{display:block;line-height:1.5;color:#44515c}.mission-card{border-left:4px solid #d4a84f}.level-card{min-height:140px}.lesson-row small{display:block;margin-top:5px;color:var(--muted,#667085)}

/* Bacaan inti pada halaman materi */
.reading-box{background:#f0faf7;border:1px solid #cce9e1;border-radius:18px;padding:18px;margin:18px 0 24px}.reading-box h3:first-child{margin-top:0}.arabic-text{font-family:"Noto Naskh Arabic","Amiri",serif;font-size:clamp(1.8rem,6vw,2.5rem);line-height:2;text-align:center;color:#173b36;margin:12px 0 20px}.reading-box p{overflow-wrap:anywhere}

.lesson-content{margin:18px 0 22px;padding:16px;border-radius:14px;background:var(--soft,#f2f7f6);border:1px solid var(--line,#dce8e6)}.lesson-content h3{margin-top:0}.lesson-content p{line-height:1.8}.build-version{font-size:.7em;font-weight:700;opacity:.75}

/* Standar visual Petualangan Santri v0.3.5: faceless untuk semua makhluk hidup.
   Hindari emoji/ilustrasi berfitur wajah; gunakan simbol objek, siluet polos,
   karakter tampak belakang, ornamen geometris, dan animasi lingkungan. */
.account-symbol{width:72px;height:72px;margin:0 auto 12px;display:grid;place-items:center;border-radius:22px;background:var(--soft,#e7f4f0);font-size:38px}

/* Adventure map UI v0.3.6 */
body{background:#eaf7ee}.game-shell{max-width:1100px;margin:auto;padding:12px 12px 92px;color:#203b42}.game-hud{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:4px 0 12px}.game-brand{display:flex;align-items:center;gap:9px;font-weight:900;font-size:1rem}.game-brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,#ffdf70,#ffac43);box-shadow:0 4px 0 #d98a34;font-size:23px}.game-hud-spacer{flex:1}.hud-pill{padding:8px 12px;border-radius:99px;background:#fffdf4;border:2px solid #d7e9d9;box-shadow:0 3px 0 #c9dfce;font-weight:900;font-size:.85rem}.adventure-banner{border-radius:25px;padding:20px;background:linear-gradient(120deg,#145b58,#238a70 58%,#83bd65);color:white;box-shadow:0 7px 0 #b4d5b7;margin-bottom:15px}.adventure-banner h1{margin:0 0 7px;font-size:clamp(1.5rem,4vw,2.2rem);color:white}.adventure-banner p{margin:0;line-height:1.55;color:#e2fff1}.banner-progress{display:flex;align-items:center;gap:12px;margin-top:14px;max-width:430px}.progress-track{height:10px;border-radius:99px;background:#ffffff35;overflow:hidden;flex:1}.progress-track span{display:block;height:100%;background:#ffcf59}.map-board{position:relative;min-height:480px;border:4px solid white;border-radius:27px;overflow:hidden;background:linear-gradient(#9ce2f5 0 25%,#c7efb5 25% 48%,#8ed18b 48%);box-shadow:0 7px 0 #c2dfc7}.map-sun{position:absolute;width:66px;height:66px;right:8%;top:7%;border-radius:50%;background:#ffe37a;box-shadow:0 0 0 12px #fff5a044}.map-cloud{position:absolute;width:92px;height:25px;background:#fff9;border-radius:99px;top:13%;left:12%}.map-cloud:before,.map-cloud:after{content:"";position:absolute;bottom:0;background:inherit;border-radius:50%}.map-cloud:before{width:38px;height:38px;left:15px}.map-cloud:after{width:28px;height:28px;left:44px}.map-hill{position:absolute;bottom:-14%;width:74%;height:48%;border-radius:50% 50% 0 0;background:#73c66e}.map-hill.h2{right:-18%;bottom:-19%;width:68%;height:53%;background:#54b967}.map-hill.h3{left:-25%;bottom:-22%;width:70%;height:53%;background:#98d978}.map-river{position:absolute;left:31%;top:33%;width:45%;height:85px;background:#5cc7dc;border:7px solid #a5e9e9;border-radius:50%;transform:rotate(19deg)}.map-path{position:absolute;left:10%;top:26%;width:79%;height:62%;border:10px dotted #f8e6a2;border-left-color:transparent;border-top-color:transparent;border-radius:47% 38% 45% 32%;transform:rotate(-9deg)}.landmark{position:absolute;display:flex;flex-direction:column;align-items:center;gap:2px;user-select:none}.landmark-icon{display:grid;place-items:center;font-size:clamp(32px,6vw,54px);height:58px;min-width:60px}.landmark-label{padding:5px 9px;border:2px solid white;border-radius:99px;background:#fffdf1;color:#31584b;font-size:.72rem;font-weight:900;box-shadow:0 3px 0 #c2d8b7;white-space:nowrap}.landmark.forest{left:7%;top:39%}.landmark.mosque{right:9%;top:28%}.landmark.bridge{left:43%;top:47%}.landmark.treasure{right:12%;bottom:9%}.mission-node{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;width:62px;height:62px;border-radius:21px;border:4px solid white;background:linear-gradient(145deg,#ffdf72,#ffb83f);color:#6c4a18;font-weight:1000;box-shadow:0 6px 0 #d58b30,0 8px 14px #295c3c30;cursor:pointer}.mission-node:active{transform:translateY(3px)}.mission-node .node-num{font-size:1.2rem;line-height:1}.mission-node .node-stars{font-size:.64rem;color:white;text-shadow:0 1px 2px #8d6428}.mission-node.locked{filter:grayscale(.6);background:linear-gradient(145deg,#e2e8e3,#b9c9c1);box-shadow:0 6px 0 #94a79d;color:#63756c;cursor:not-allowed}.mission-node.done{background:linear-gradient(145deg,#c8f078,#7cce69);box-shadow:0 6px 0 #48a35c;color:#285d35}.node-1{left:12%;top:25%}.node-2{left:35%;top:38%}.node-3{left:56%;top:29%}.node-4{right:13%;top:49%}.node-5{right:26%;bottom:9%}.map-legend{position:absolute;left:12px;bottom:12px;display:flex;gap:7px;flex-wrap:wrap}.map-legend span{font-size:.68rem;font-weight:850;padding:6px 8px;background:#ffffffdf;border:1px solid #d8e8ce;border-radius:99px}.game-below{display:grid;grid-template-columns:1.25fr .75fr;gap:14px;margin-top:16px}.game-card{border:2px solid #e0eddd;border-radius:22px;background:#fffdf4;padding:16px;box-shadow:0 5px 0 #d5e6d4}.game-card h2{margin:0 0 8px;color:#27594c}.game-card p{margin:0;color:#607a70;line-height:1.5}.quest-row{display:flex;align-items:center;gap:12px;margin-top:12px;padding:12px;border-radius:16px;background:#f0f9e9;border:1px solid #d7ebcc}.quest-icon{width:48px;height:48px;display:grid;place-items:center;flex-shrink:0;border-radius:15px;background:#ffdc7b;font-size:25px}.quest-copy{flex:1;min-width:0}.quest-copy strong,.quest-copy small{display:block}.quest-copy small{color:#6e877b;margin-top:3px}.game-btn{border:0;border-radius:14px;padding:11px 15px;background:#ffca55;color:#634819;font-weight:950;box-shadow:0 4px 0 #d99a2c;cursor:pointer}.game-btn.green{background:#36ad7e;color:white;box-shadow:0 4px 0 #21835e}.reward-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.reward-chip{padding:10px 4px;text-align:center;border-radius:15px;background:#fff3c9;border:1px solid #f1d88a}.reward-chip b{display:block;color:#805c18}.reward-chip span{font-size:.7rem;color:#816b3e;font-weight:800}.game-toast{position:fixed;z-index:100;left:50%;bottom:90px;transform:translate(-50%,15px);opacity:0;pointer-events:none;padding:12px 18px;border-radius:99px;background:#173f37;color:white;font-weight:900;transition:all .2s}.game-toast.show{opacity:1;transform:translate(-50%,0)}.mission-modal{position:fixed;z-index:90;inset:0;display:none;align-items:flex-end;justify-content:center;background:#14382f77;padding:16px}.mission-modal.show{display:flex}.mission-sheet{width:min(100%,520px);background:#fffdf3;border:3px solid white;border-radius:26px;padding:22px;box-shadow:0 10px 0 #a9cdb0}.mission-sheet h2{margin:0 0 8px;color:#235b4b}.mission-sheet p{line-height:1.6;color:#5b776a}.mission-actions{display:flex;gap:10px;margin-top:16px}.mission-actions>*{flex:1}@media(max-width:650px){.game-shell{padding:8px 8px 84px}.hud-pill{padding:7px 8px;font-size:.76rem}.map-board{min-height:425px;border-radius:22px}.mission-node{width:54px;height:54px;border-radius:18px}.node-1{left:8%;top:26%}.node-2{left:31%;top:39%}.node-3{left:55%;top:28%}.node-4{right:8%;top:48%}.node-5{right:22%;bottom:9%}.landmark-icon{height:44px}.landmark-label{font-size:.62rem;padding:4px 6px}.game-below{grid-template-columns:1fr}}

/* v0.3.7 — playable mini-game, polished responsive panels */
.challenge-card{max-width:720px;margin:0 auto;padding:clamp(18px,4vw,30px)}
.challenge-scene{display:flex;align-items:center;justify-content:center;gap:34px;padding:22px;margin-bottom:18px;border-radius:18px;background:linear-gradient(180deg,#a8e5f4,#e3f4c7);font-size:38px;min-height:92px}
.scene-tree:before{content:"";display:block;width:34px;height:44px;background:#48a76b;border-radius:60% 60% 45% 45%;box-shadow:0 15px 0 -8px #8c5d35}
.scene-bridge{width:72px;height:24px;border-top:8px solid #c58c45;border-bottom:5px solid #c58c45;transform:skew(-16deg)}
.scene-gem{color:#258fbb;text-shadow:0 3px 0 #146b94;font-size:48px}
.challenge-kicker{font-size:.75rem;letter-spacing:.12em;font-weight:950;color:#43866b}
.challenge-card h2{font-size:clamp(1.3rem,4vw,1.9rem);line-height:1.35;color:#214f44;margin:8px 0 18px}
.answer-list{display:grid;gap:10px}
.answer-option{display:flex;align-items:center;gap:12px;text-align:left;padding:13px;border:2px solid #dcebe0;border-radius:16px;background:#fff;color:#294a42;font-weight:800;cursor:pointer;min-height:58px}
.answer-letter{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:11px;background:#e9f5e7;color:#3e8061;font-weight:1000}
.answer-option.correct{background:#e2f8df;border-color:#72c776}.answer-option.correct .answer-letter{background:#4eaa68;color:white}
.answer-option.incorrect{background:#fff0e7;border-color:#e9a37c}
.answer-option:disabled{cursor:default}
.answer-feedback{min-height:28px;margin:13px 0;color:#a65b38;font-weight:800}.answer-feedback.good{color:#258356}
.game-btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.challenge-result{max-width:560px;margin:0 auto;text-align:center;padding:24px}
.result-treasure{font-size:68px;margin:8px auto 14px;color:#d49a30}
.quest-row{flex-wrap:wrap}
@media(max-width:480px){.challenge-scene{min-height:75px;padding:14px}.answer-option{min-height:54px;padding:10px}}

/* v0.3.8: level-based adventure missions and refreshed bottom navigation */
.level-select-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.level-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;padding:16px;border:2px solid #d8e9d8;border-radius:22px;background:#fffdf2;box-shadow:0 5px 0 #d3e5d2;color:#294e43;cursor:pointer;min-width:0}
.level-card:active,.subject-mission-card:active{transform:translateY(2px);box-shadow:0 2px 0 #d3e5d2}
.level-card.level-complete{border-color:#8ed49a;background:#f1ffdf}
.level-emblem{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,#ffe27d,#ffbd48);font-size:26px;color:#6d521e}
.level-card-title{font-weight:950;font-size:1rem;line-height:1.3}
.level-card-desc{font-size:.82rem;line-height:1.45;color:#688075}
.level-progress{height:9px;width:100%;border-radius:99px;background:#e5eee2;overflow:hidden;margin-top:auto}
.level-progress span{display:block;height:100%;border-radius:99px;background:#45b77c}
.level-count{font-size:.74rem;font-weight:850;color:#57816b}
.subject-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.subject-chip{display:flex;align-items:center;gap:8px;padding:11px;border-radius:13px;background:#f0f8e9;color:#3b6554;font-weight:800;font-size:.85rem}
.subject-chip span{font-size:1.2rem}
.subject-mission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.subject-mission-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:9px;text-align:left;min-height:156px;padding:16px;border:2px solid #dcebdc;border-radius:22px;background:#fffdf2;color:#254e42;box-shadow:0 5px 0 #d3e5d2;cursor:pointer}
.subject-mission-card strong{font-size:1rem;line-height:1.3}
.subject-mission-card small{font-size:.78rem;color:#6a8376}
.subject-emblem{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#dff3d6;color:#2b8c65;font-size:24px;font-weight:900}
.subject-arrow{margin-top:auto;font-size:.8rem;font-weight:950;color:#228863}
.subject-mission-card.subject-done{background:#f1ffdf;border-color:#9bd49b}
.subject-done .subject-emblem{background:#bfe9a8}
.bottom-nav{background:#fffdf7;border-top:1px solid #dcebe0;box-shadow:0 -4px 18px #254e420b}
.bottom-nav button,.bottom-nav a{font-weight:800}
@media(max-width:650px){.level-select-grid{grid-template-columns:1fr}.level-card{display:grid;grid-template-columns:52px 1fr;column-gap:12px;align-items:center}.level-emblem{grid-row:span 3}.level-card-title,.level-card-desc,.level-progress,.level-count{grid-column:2}.subject-mission-grid{grid-template-columns:1fr 1fr}.subject-mission-card{min-height:160px;padding:13px}.subject-grid{grid-template-columns:1fr}}
@media(max-width:380px){.subject-mission-grid{grid-template-columns:1fr}.subject-mission-card{min-height:130px}}

/* v0.3.9 — main game dashboard and level picker */
.level-overline,.mission-eyebrow{display:block;font-size:.72rem;letter-spacing:.12em;font-weight:950;color:#c7f3d7;margin-bottom:8px}.mission-eyebrow{color:#4d8c70}
.home-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px;position:relative;z-index:2}
.home-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0}
.home-feature-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px;padding:13px;border:2px solid #dcebdc;border-radius:22px;background:#fffdf3;box-shadow:0 5px 0 #d3e5d2;color:#2a5547;cursor:pointer;min-width:0}
.home-feature-card strong{font-size:.96rem;line-height:1.25}.home-feature-card small{color:#71887b;line-height:1.4;font-size:.76rem}
.feature-art{position:relative;display:grid;place-items:center;width:100%;height:76px;border-radius:15px;overflow:hidden;font-size:35px;font-weight:900}
.map-art{background:linear-gradient(160deg,#9ee3f0 0 43%,#b9e6a0 43% 100%);color:#26865f}.mission-art{background:linear-gradient(145deg,#d8f1c9,#8bd6a5);color:#388d67}.reward-art{background:linear-gradient(145deg,#ffe7a0,#ffbf54);color:#986b1d}
.feature-link{font-size:.78rem;font-weight:950;color:#208463;margin-top:auto}
.home-progress{margin-bottom:12px}.home-progress-track{height:12px;border-radius:99px;background:#e5eee2;overflow:hidden;margin:12px 0 8px}.home-progress-track span{display:block;height:100%;background:linear-gradient(90deg,#ffcb55,#4dc486);border-radius:99px}.home-progress p{margin:0;color:#6d8478;font-size:.84rem}
.level-picker-page .level-card{min-height:180px}.level-select-action{font-size:.8rem;font-weight:950;color:#218863;margin-top:auto}.level-picker-note{color:#6d8478;line-height:1.6;font-size:.84rem;padding:10px 2px}
.mission-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 12px}.mission-toolbar h2{margin:0;color:#244e42;font-size:1.35rem}.mission-toolbar .mission-eyebrow{margin-bottom:3px}.level-summary{margin-top:14px}
.node-6{left:43%;bottom:7%}.map-board .mission-node{width:56px;height:56px}
@media(max-width:650px){.home-feature-grid{grid-template-columns:1fr}.home-feature-card{display:grid;grid-template-columns:78px 1fr;column-gap:12px;align-items:center}.feature-art{grid-row:span 3;height:76px}.home-feature-card strong,.home-feature-card small,.home-feature-card .feature-link{grid-column:2}.home-actions .game-btn{flex:1}.level-picker-page .level-card{min-height:145px}}

/* v0.4.0 — map-first game flow and four destination navigation */
.map-first-shell{padding-top:14px}
.map-first-top{display:flex;align-items:center;gap:11px;margin:0 0 12px}
.map-player-mark{width:54px;height:54px;flex:0 0 54px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(145deg,#ffdf70,#ffb746);color:#355d4b;font-size:30px;box-shadow:0 4px 0 #d5ad53}
.map-player-copy{min-width:0;flex:1}.map-player-copy .mission-eyebrow{margin:0 0 3px;font-size:.64rem}.map-player-copy h1{font-size:1.3rem;line-height:1.1;margin:0;color:#244e42}.map-player-copy p{margin:4px 0 0;color:#6c8678;font-size:.83rem}
.map-player-stats{display:flex;flex-direction:column;gap:5px;align-items:flex-end}.map-player-stats span{border:2px solid #dcebdc;border-radius:99px;padding:6px 9px;background:#fffdf3;font-size:.78rem;font-weight:950;color:#35594b;white-space:nowrap}
.map-level-strip{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 13px;border-radius:17px;background:#fffdf3;border:1px solid #dcebdc;margin-bottom:12px}.map-level-strip strong,.map-level-strip small{display:block}.map-level-strip strong{color:#2d5948}.map-level-strip small{color:#71887b;font-size:.78rem;margin-top:3px}.game-btn.compact{padding:9px 12px;font-size:.8rem}
.map-level-empty{padding:18px;border-radius:20px;background:#fffdf3;border:1px solid #dcebdc;margin-bottom:12px}.map-level-empty h2{margin:0 0 8px;color:#2b5647}.map-level-empty p{margin:0 0 12px;color:#6d8478;line-height:1.5}
.map-board-main{margin:0 auto 14px;max-width:820px;min-height:420px}
.map-next-mission{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;border-radius:20px;background:#fffdf3;border:1px solid #dcebdc;box-shadow:0 4px 0 #d3e5d2}.map-next-mission h2{font-size:1.05rem;margin:0;color:#285746}.map-next-mission p{font-size:.82rem;line-height:1.45;margin:5px 0 0;color:#71887b}.map-next-mission .mission-eyebrow{font-size:.63rem;margin-bottom:4px}
.reward-total-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:16px}.reward-total{padding:12px 8px;border-radius:14px;background:#ffffff1c;border:1px solid #ffffff35}.reward-total b,.reward-total span{display:block}.reward-total b{font-size:1rem}.reward-total span{font-size:.72rem;margin-top:4px;color:#e0f6e8}
.badge-collection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.badge-tile{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;padding:14px 7px;border-radius:16px;background:#f0f8e9}.badge-tile span{font-size:28px}.badge-tile strong{font-size:.8rem}.badge-tile small{font-size:.7rem;color:#6d8478}.empty-rewards{text-align:center;padding:20px 10px}.empty-reward-art{font-size:54px;color:#c69b3e}.empty-rewards h3{margin:8px 0;color:#315c4b}.empty-rewards p{color:#6d8478}
.completed-list{display:grid;gap:8px}.completed-row{display:flex;align-items:center;gap:9px;padding:10px;border-radius:12px;background:#f1f8ed;color:#315c4b;font-weight:750;font-size:.88rem}.completed-check{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#c9efbb;color:#247b52;font-weight:950}
.bottom-nav{background:#fff;border-top:1px solid #dce9e0;box-shadow:0 -4px 16px #204d3a0d}
.bottom-nav button,.bottom-nav a{font-size:.76rem}
@media(max-width:520px){.map-board-main{min-height:390px}.map-next-mission{align-items:flex-start;flex-direction:column}.map-next-mission .game-btn{width:100%}.reward-total-row{gap:5px}.reward-total{padding:10px 5px}.reward-total b{font-size:.86rem}.badge-collection{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.4.1 — exit confirmation dialog */
.ps-exit-overlay{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(11,35,28,.62);backdrop-filter:blur(5px)}
.ps-exit-dialog{width:min(100%,420px);padding:24px;border-radius:24px;background:#fffdf3;color:#244e42;box-shadow:0 18px 70px #001b1250;text-align:center;animation:psExitIn .18s ease-out}
.ps-exit-mark{display:grid;place-items:center;width:58px;height:58px;border-radius:19px;margin:0 auto 12px;background:linear-gradient(145deg,#ffe27d,#ffb84d);font-size:32px}
.ps-exit-dialog h2{font-size:1.45rem;margin:0 0 10px}.ps-exit-dialog p{font-size:.96rem;line-height:1.55;color:#6b8175;margin:0 0 20px}
.ps-exit-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ps-exit-actions .game-btn{min-height:48px}
@keyframes psExitIn{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}

/* v0.6.2 recovery: child-friendly sign-in screen */
.login-scene{position:relative;isolation:isolate;overflow:hidden;max-width:560px;margin:0 auto;padding:22px 4px 26px;background:radial-gradient(ellipse at 90% 5%,#fff1a8 0,transparent 25%),linear-gradient(155deg,#dff7f2 0%,#e9f2ff 48%,#fff4d6 100%);border-radius:26px;min-height:560px}
.login-stars{position:absolute;right:18px;top:18px;color:#e8a72d;font-size:22px;letter-spacing:7px;opacity:.85;z-index:-1}
.login-mascot{width:104px;height:104px;margin:6px auto 12px;border-radius:30px;background:linear-gradient(145deg,#ffe17c,#ffbd45);box-shadow:0 7px 0 #d99932,0 12px 24px #17324d18;display:grid;place-items:center;position:relative;transform:rotate(-3deg)}
.mascot-book{font-size:48px;filter:drop-shadow(0 3px 0 #fff8)}
.mascot-spark{position:absolute;right:-11px;top:-11px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#e7a82f;font-size:20px}
.login-welcome{text-align:center;padding:4px 12px 22px}
.login-kicker{display:inline-block;padding:7px 12px;border-radius:20px;background:#fff9;color:#287d73;font-size:10px;font-weight:900;letter-spacing:.13em}
.login-welcome h2{margin:12px 0 8px;color:#173b4a;font-size:clamp(25px,7vw,34px);line-height:1.12;letter-spacing:-.04em}
.login-welcome p{margin:0 auto;max-width:290px;color:#56717c;font-size:14px;line-height:1.5}
.login-card{margin:0 auto!important;max-width:430px;padding:22px!important;border:1px solid #ffffff!important;border-radius:23px!important;background:#fffdf7!important;box-shadow:0 10px 28px #234c5b14}
.login-card-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.login-lock{width:44px;height:44px;display:grid;place-items:center;border-radius:15px;background:#e5f6ef;font-size:22px;flex-shrink:0}
.login-card h3{margin:0 0 4px;color:#244e4a;font-size:20px}
.login-card-heading p{margin:0}
.login-card label{display:block;margin:13px 0 7px;font-size:13px;font-weight:750;color:#385a60}
.login-card input{display:block;width:100%;min-height:48px;border:1.5px solid #d9e5df;border-radius:13px;padding:12px 14px;background:white;color:#183344;font:inherit;outline:none}
.login-card input:focus{border-color:#2e9b88;box-shadow:0 0 0 3px #2e9b881c}
.login-card .login-primary{margin-top:19px;min-height:50px;border:0;border-radius:15px;background:linear-gradient(100deg,#168b7c,#237eaa);color:#fff;font-weight:850;box-shadow:0 4px 0 #12665e}
.login-card .login-primary span{float:right}
.login-card .login-primary:disabled{opacity:.65}
.login-divider{display:flex;align-items:center;gap:10px;margin:19px 0 12px;color:#849398;font-size:12px}
.login-divider:before,.login-divider:after{content:"";height:1px;flex:1;background:#e7ece7}
.login-card .login-register{min-height:46px;border:1.5px solid #cce4dc;border-radius:14px;background:#eff9f4;color:#22695e;font-weight:800}
.login-message{min-height:18px;margin:12px 0 0;overflow-wrap:anywhere}
.login-footer{text-align:center;color:#527c79;font-size:12px;font-weight:750;letter-spacing:.03em;padding:16px 8px 0}
@media(min-width:700px){.login-scene{padding:28px 22px 30px}.login-mascot{width:112px;height:112px}.login-card{padding:25px!important}}
@media(max-width:380px){main{padding:12px}.login-scene{padding:18px 2px 22px;border-radius:20px}.login-card{padding:17px!important}.login-welcome h2{font-size:27px}}

/* v0.6.3 bank soal import */
.bank-import-shell{display:grid;gap:1rem;max-width:980px;margin:0 auto;padding:1rem}
.bank-intro{background:linear-gradient(135deg,#e4f7ef,#fff6d8);border:1px solid #d5eadf}
.bank-table-scroll{overflow:auto;max-width:100%;border-radius:12px}
.bank-table{width:100%;border-collapse:collapse;min-width:620px;font-size:.9rem}
.bank-table th,.bank-table td{padding:.7rem;border-bottom:1px solid var(--line,#dce5e9);text-align:left;vertical-align:top}
.bank-table th{background:#eaf5ef;color:#214c3c;position:sticky;top:0}
#ps-bank-preview[hidden]{display:none!important}
.login-scene{max-width:760px;margin:0 auto;padding:1rem;overflow:hidden}
.login-card{max-width:480px;margin:1rem auto}
.login-welcome{text-align:center}
#ps-bank-file{display:block;width:100%;max-width:100%;margin:.5rem 0 1rem}

/* v0.6.4 public landing and login */
.ps-public-page{background:#f5fbf7}
.ps-public-page .shell{max-width:1180px;margin:0 auto;min-height:100vh}
.ps-public-page .shell>header{max-width:1180px;margin:auto;padding:1rem clamp(1rem,4vw,2.5rem);background:#fff;border-bottom:1px solid #e3eee7}
.ps-public-page .shell>header .logo{background:#173b55;color:#ffe17a;border-radius:18px}
.ps-public-page .shell>header b{font-size:1.05rem}
.ps-public-page .bottom{display:none!important}
.ps-landing{padding:clamp(1rem,4vw,3rem);max-width:1120px;margin:0 auto;color:#173c32}
.landing-hero{display:grid;grid-template-columns:1.04fr .96fr;align-items:center;gap:clamp(1rem,4vw,3.5rem);min-height:490px}
.landing-copy{padding:1rem 0}
.landing-pill{display:inline-flex;align-items:center;gap:.4rem;border-radius:99px;background:#e0f4e8;color:#267458;font-weight:800;font-size:.78rem;letter-spacing:.07em;padding:.6rem .9rem}
.landing-copy h1,.login-promo h1{font-size:clamp(2.25rem,5vw,4.3rem);line-height:1.06;letter-spacing:-.04em;margin:1.1rem 0;color:#193e34}
.landing-copy h1 em{font-style:normal;color:#e59a27}
.landing-copy>p,.login-promo>p{font-size:clamp(1rem,1.6vw,1.18rem);line-height:1.7;color:#557166;max-width:540px}
.landing-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin:1.6rem 0}
.landing-actions button{border:0;border-radius:16px;padding:.95rem 1.2rem;font-weight:800;font-size:1rem;cursor:pointer}
.landing-primary,.login-primary{background:linear-gradient(135deg,#ffc94f,#ffb62e);color:#5d4110;box-shadow:0 5px 0 #df9826}
.landing-secondary{background:#fff;color:#27664e;border:2px solid #d6eadf!important}
.landing-trust{display:flex;gap:.7rem;flex-wrap:wrap;color:#537568;font-size:.83rem;font-weight:700}
.landing-art{position:relative;min-height:390px;border-radius:38px;overflow:hidden;background:linear-gradient(#9ee4f1 0 47%,#d4f0ae 47% 72%,#88d18a 72%);box-shadow:0 12px 0 #d9e9dc;border:8px solid #fff}
.art-sun{position:absolute;width:92px;height:92px;border-radius:50%;background:#ffda70;right:13%;top:10%;box-shadow:0 0 0 14px #ffe8a866}
.art-cloud{position:absolute;background:#fff9;border-radius:99px;height:24px;width:100px;top:23%}
.art-cloud:before,.art-cloud:after{content:"";position:absolute;background:inherit;border-radius:50%;width:38px;height:38px;left:18px;top:-15px}
.art-cloud:after{left:48px;top:-9px}.cloud-one{left:8%}.cloud-two{right:10%;top:36%;transform:scale(.65)}
.art-hill{position:absolute;bottom:-50px;width:120%;height:170px;border-radius:50% 50% 0 0}
.hill-one{background:#67bd72;left:-18%;transform:rotate(-7deg)}.hill-two{background:#a5df77;left:34%;bottom:-82px;transform:rotate(9deg)}
.art-book{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%) rotate(-7deg);font-size:clamp(5rem,10vw,8rem);filter:drop-shadow(0 12px 0 #337f6355);z-index:2}
.art-star{position:absolute;color:#fff4b0;font-size:2.4rem;z-index:3}.star-one{top:25%;left:22%}.star-two{top:52%;right:18%}
.art-badge{position:absolute;z-index:3;right:16%;bottom:18%;background:#fff8d9;border:4px solid #fff;border-radius:24px;padding:.65rem;font-size:2rem;box-shadow:0 5px 0 #d6a340}
.art-caption{position:absolute;z-index:4;bottom:8%;left:8%;background:#fffdf0;border-radius:15px;padding:.7rem 1rem;font-weight:800;line-height:1.4;box-shadow:0 4px 0 #d3e7d5}
.landing-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:2.2rem 0}
.landing-features>div{background:#fff;border:1px solid #e0eee5;border-radius:22px;padding:1.3rem;box-shadow:0 5px 0 #e5f0e7}
.landing-features span{font-size:2rem}.landing-features h3{margin:.7rem 0 .35rem;font-size:1.1rem}.landing-features p{margin:0;color:#698075;line-height:1.55;font-size:.92rem}
.landing-footer{text-align:center;color:#7a9286;font-size:.85rem;padding:1.5rem}.landing-footer span{padding:0 .4rem}
.ps-login-page{max-width:1000px;margin:0 auto;padding:clamp(1rem,4vw,3rem)}
.login-back{border:0;background:transparent;color:#346b56;font-weight:800;padding:.6rem 0;cursor:pointer}
.login-layout{display:grid;grid-template-columns:1fr minmax(300px,.85fr);gap:clamp(1.5rem,5vw,4rem);align-items:center;min-height:65vh}
.login-promo{padding:1rem 0}.login-promo-icon{font-size:3.8rem;margin-bottom:1rem}
.login-promo h1{font-size:clamp(2rem,4vw,3.4rem)}
.login-promo-stars{font-size:1.6rem;color:#e8ad37;margin-top:1.5rem}
.login-card-new{width:100%;box-sizing:border-box;padding:clamp(1.25rem,3vw,2rem);background:#fff;border:1px solid #e1eee6;border-radius:26px;box-shadow:0 12px 35px #204d3212}
.login-card-heading{display:flex;gap:.8rem;align-items:center;margin-bottom:1.3rem}.login-card-heading h2{margin:0;font-size:1.35rem}.login-card-heading p{margin:.3rem 0 0}
.login-card-new label{display:block;font-weight:750;font-size:.9rem;margin:.9rem 0 .4rem;color:#355a4a}
.login-card-new input{box-sizing:border-box;width:100%;border:1px solid #d3e3d9;border-radius:12px;padding:.9rem 1rem;font:inherit;background:#fbfdfb}
.login-card-new input:focus{outline:3px solid #c8ebd6;border-color:#54a87b}
.login-card-new button{margin-top:1rem;min-height:48px;border-radius:13px;font-weight:800}
.login-config-warning{background:#fff4d9;color:#76531c;border-radius:12px;padding:1rem;line-height:1.5}
.ps-hide-bottom .bottom{display:none!important}
@media(max-width:720px){.landing-hero{grid-template-columns:1fr;gap:1rem;min-height:0}.landing-copy{padding:.6rem 0}.landing-art{min-height:300px;order:-1;border-radius:28px}.landing-copy h1{font-size:clamp(2.3rem,11vw,3.4rem)}.landing-trust{font-size:.78rem}.landing-features{grid-template-columns:1fr;gap:.8rem;margin-top:1.5rem}.landing-features>div{padding:1rem}.login-layout{grid-template-columns:1fr;gap:1rem;min-height:0}.login-promo{padding:.4rem 0}.login-promo-icon{font-size:2.6rem}.login-promo h1{font-size:2rem;margin:.8rem 0}.login-promo>p{font-size:.96rem}.login-promo-stars{display:none}.login-card-new{margin-bottom:1rem}}

/* v0.6.7 — peta responsif khusus layar HP */
@media(max-width:650px){
  .map-board-main{min-height:500px;height:500px;max-width:100%;}
  .map-board-main .mission-node{width:58px;height:58px;border-radius:18px;gap:3px;}
  .map-board-main .node-1{left:7%;right:auto;top:16%;bottom:auto}
  .map-board-main .node-2{left:auto;right:7%;top:16%;bottom:auto}
  .map-board-main .node-3{left:7%;right:auto;top:43%;bottom:auto}
  .map-board-main .node-4{left:auto;right:7%;top:43%;bottom:auto}
  .map-board-main .node-5{left:7%;right:auto;top:70%;bottom:auto}
  .map-board-main .node-6{left:auto;right:7%;top:70%;bottom:auto}
  .map-board-main .landmark-label{display:none}
  .map-board-main .landmark{opacity:.38}
  .map-board-main .map-path{left:15%;top:20%;width:70%;height:65%;border-width:7px}
  .map-board-main .map-river{left:25%;top:35%;width:50%;height:75px}
  .map-board-main .map-legend{left:9px;right:9px;bottom:9px;gap:5px}
  .map-board-main .map-legend span{font-size:.62rem;padding:5px 7px}
  .map-next-mission{padding:17px}
  .map-next-mission h2{font-size:1.15rem;line-height:1.35}
  .map-next-mission p{font-size:.9rem;line-height:1.55}
  .map-next-mission .game-btn{min-height:48px}
}
@media(max-width:380px){
  .map-board-main{height:465px;min-height:465px}
  .map-board-main .node-1,.map-board-main .node-2{top:15%}
  .map-board-main .node-3,.map-board-main .node-4{top:41%}
  .map-board-main .node-5,.map-board-main .node-6{top:67%}
  .map-board-main .mission-node{width:52px;height:52px;border-width:3px}
}

/* v0.6.8: accessible password recovery link */
.text-link{display:inline-flex;align-items:center;justify-content:flex-start;border:0;background:transparent;color:#187b70;text-decoration:underline;font:inherit;font-size:.9rem;font-weight:750;padding:.45rem 0;cursor:pointer}
.text-link:disabled{opacity:.6;cursor:wait}
.recovery-card{max-width:520px;margin:1rem auto;padding:clamp(1.2rem,4vw,2rem)}
.recovery-card label{display:block;font-weight:750;margin:.9rem 0 .4rem;color:#355a4a}
.recovery-card input{box-sizing:border-box;width:100%;padding:.9rem 1rem;border:1px solid #d3e3d9;border-radius:12px;font:inherit}

/* v0.7.3 teacher plan panel */
.ps-plan-card{margin:16px 0;padding:18px;border:1px solid var(--line,#dce7e5);border-radius:18px;background:var(--card,#fff)}
.ps-plan-card h3{margin-top:0}.ps-plan-card label{display:block;margin:12px 0 6px;font-weight:700}.ps-plan-card .filter{width:100%;min-height:44px}.ps-plan-card .tag-list{margin:10px 0}

/* v0.7.8 — branded in-app payment confirmation */
.ps-payment-confirm-backdrop{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(18,48,43,.62);backdrop-filter:blur(3px)}
.ps-payment-confirm-card{width:min(100%,430px);padding:26px 22px 22px;border:2px solid #fff;border-radius:26px;background:#fffdf5;color:#203b42;box-shadow:0 16px 50px #102b2540;text-align:center;animation:psPaymentConfirmIn .16s ease-out}
.ps-payment-confirm-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 12px;border-radius:18px;background:#e4f5eb;color:#14786f;font-size:26px;font-weight:900}
.ps-payment-confirm-card h2{margin:0 0 10px;color:#17324d;font-size:1.35rem}
.ps-payment-confirm-card p{margin:0;color:#687c80;line-height:1.65}
.ps-payment-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
.ps-payment-confirm-actions button{margin:0;min-width:0}
@keyframes psPaymentConfirmIn{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:380px){.ps-payment-confirm-actions{grid-template-columns:1fr}}

.ps-bank-details{border:1px solid var(--border,#dce6e3);border-radius:16px;padding:16px;margin:12px 0;background:#f5faf8;line-height:1.6}.ps-bank-number{font-size:1.5rem;font-weight:800;letter-spacing:.04em;margin:4px 0}.ps-bank-details button{margin-top:10px}

/* v0.8.4 — bank soal form responsive, readable and touch-friendly */
.bank-import-shell{box-sizing:border-box;width:100%;padding:clamp(10px,3vw,20px);gap:16px}
.bank-import-shell .panel{box-sizing:border-box;min-width:0;width:100%;padding:clamp(16px,4vw,26px);border:1px solid #dfeae4;border-radius:20px;background:#fff;box-shadow:0 5px 18px #204d3510}
.bank-import-shell .panel h3{margin:0 0 18px;font-size:clamp(1.2rem,4vw,1.55rem);line-height:1.3;color:#203f43}
.bank-import-shell #ps-manual-question{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.bank-import-shell #ps-manual-question label{display:block;margin:8px 0 0;font-size:.93rem;font-weight:750;line-height:1.4;color:#29444b}
.bank-import-shell #ps-manual-question input:not([type=file]),
.bank-import-shell #ps-manual-question select,
.bank-import-shell #ps-manual-question textarea{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin:0;padding:13px 14px;border:1px solid #d4e0dc;border-radius:12px;background:#fbfdfc;color:#203b42;font:inherit;font-size:16px;line-height:1.45;box-shadow:none}
.bank-import-shell #ps-manual-question input:not([type=file]),.bank-import-shell #ps-manual-question select{min-height:49px}
.bank-import-shell #ps-manual-question textarea{min-height:94px;resize:vertical}
.bank-import-shell #ps-manual-question #ps-q-explanation{min-height:82px}
.bank-import-shell #ps-manual-question input:focus,
.bank-import-shell #ps-manual-question select:focus,
.bank-import-shell #ps-manual-question textarea:focus{outline:3px solid #2e9b8826;border-color:#2e9b88;background:#fff}
.bank-import-shell #ps-manual-question #ps-q-a,
.bank-import-shell #ps-manual-question #ps-q-b,
.bank-import-shell #ps-manual-question #ps-q-c,
.bank-import-shell #ps-manual-question #ps-q-d{margin-bottom:2px}
.bank-import-shell #ps-manual-question #ps-q-save{width:100%;min-height:54px;margin-top:12px;border-radius:14px;font-size:1rem;font-weight:850}
.bank-import-shell #ps-q-status{margin:4px 0 0;line-height:1.5;overflow-wrap:anywhere}
.bank-import-shell .bank-intro p{line-height:1.6}
.bank-import-shell #ps-bank-file{box-sizing:border-box;width:100%;min-width:0;padding:10px;border:1px dashed #b8d1c5;border-radius:12px;background:#f8fcf9}
@media(min-width:700px){.bank-import-shell{padding:18px}.bank-import-shell #ps-manual-question{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px;align-items:start}.bank-import-shell #ps-manual-question h3,.bank-import-shell #ps-manual-question label[for="ps-q-question"],.bank-import-shell #ps-manual-question #ps-q-question,.bank-import-shell #ps-manual-question label[for="ps-q-answer"],.bank-import-shell #ps-manual-question #ps-q-answer,.bank-import-shell #ps-manual-question label[for="ps-q-explanation"],.bank-import-shell #ps-manual-question #ps-q-explanation,.bank-import-shell #ps-manual-question label[for="ps-q-reference"],.bank-import-shell #ps-manual-question #ps-q-reference,.bank-import-shell #ps-manual-question #ps-q-save,.bank-import-shell #ps-manual-question #ps-q-status{grid-column:1/-1}}

/* v0.10.1 visual admin question editor */
.ps-modal-overlay{position:fixed;inset:0;z-index:9999;background:rgba(13,28,38,.68);display:flex;align-items:center;justify-content:center;padding:14px;overflow:auto}.ps-edit-modal{width:min(100%,620px);max-height:92dvh;overflow:auto;margin:auto;padding:22px!important;border-radius:22px!important;box-shadow:0 24px 70px rgba(0,0,0,.25)}.ps-edit-modal h2{margin-top:0}.ps-edit-modal label{display:block;margin:14px 0 6px;font-weight:700}.ps-edit-modal input,.ps-edit-modal textarea,.ps-edit-modal select{box-sizing:border-box;width:100%;max-width:100%;font:inherit;font-size:16px;padding:12px 13px;border:1px solid #d5e0df;border-radius:12px;background:#fff;color:#23343a}.ps-edit-modal textarea{resize:vertical;min-height:76px}.ps-edit-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.ps-edit-actions button{margin:0}@media(max-width:420px){.ps-edit-modal{padding:16px!important}.ps-edit-actions{grid-template-columns:1fr}}

/* v0.10.8: responsive teacher group form */
.ps-teacher-groups-panel label[for="ps-group-name"]{display:block;margin:14px 0 7px;font-size:14px;line-height:1.4;font-weight:800;color:#203b42}
.ps-teacher-groups-panel .ps-group-name-input{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:50px;margin:0 0 12px;padding:13px 15px;border:1px solid #d4e0dc;border-radius:13px;background:#fff;color:#203b42;font:inherit;font-size:16px;line-height:1.4}
.ps-teacher-groups-panel .ps-group-name-input:focus{outline:3px solid #2e9b8826;border-color:#2e9b88}
.ps-teacher-groups-panel #ps-create-group{display:block;width:100%;min-height:50px;margin:8px 0 12px}
.ps-teacher-groups-panel #ps-group-status{overflow-wrap:anywhere}
.ps-teacher-groups-panel #ps-group-list .panel{margin-top:14px;padding:16px}

/* v0.10.9: teacher group invite panel, bank selector and empty states */
.ps-teacher-group-card{padding:clamp(14px,3vw,22px)!important;min-width:0;overflow:hidden}
.ps-teacher-group-card h3{overflow-wrap:anywhere;margin-top:0}
.ps-group-invite{display:grid;gap:10px;margin:14px 0 18px;padding:14px;border:1px solid #cfe4dc;border-radius:16px;background:linear-gradient(135deg,#f1fbf6,#fffdf4)}
.ps-group-invite .small-note{margin:0;line-height:1.5;overflow-wrap:anywhere}
.ps-group-code{display:block;margin-top:5px;font-size:clamp(1.35rem,5vw,1.8rem);letter-spacing:.12em;color:#176f61;overflow-wrap:anywhere}
.ps-group-invite button{width:100%;min-height:48px;margin:0}
.ps-teacher-group-card label{display:block;margin:12px 0 7px;font-weight:800;color:#203b42}
.ps-teacher-group-card select{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:50px;margin:0 0 12px;font-size:16px;white-space:normal}
.ps-teacher-group-card [data-assign-group],.ps-teacher-group-card [data-a="bank"]{width:100%;min-height:50px;margin:4px 0 10px}
.ps-empty-questions{padding:13px 14px;border-radius:12px;background:#fff7df;border:1px solid #f1dfad;color:#70551a;line-height:1.55;overflow-wrap:anywhere}
.ps-teacher-groups-panel #ps-group-list .ps-group-invite{margin-top:12px}
/* v0.11.0 student group join + multi-question assignment */
.ps-student-groups-panel,.ps-student-group-card{margin-top:1rem}
.ps-student-groups-panel input.filter{width:100%;box-sizing:border-box}
.ps-group-question-picker{border:1px solid var(--line,#dfe8e4);border-radius:14px;overflow:hidden;margin:.6rem 0}
.ps-select-all,.ps-group-question-option{display:flex;align-items:flex-start;gap:.7rem;padding:.75rem .85rem;margin:0;border-bottom:1px solid var(--line,#e6ece9);font-weight:500}
.ps-select-all{background:var(--soft,#eef7f2);font-weight:700}
.ps-group-question-option:last-child{border-bottom:0}
.ps-group-question-option input,.ps-select-all input{width:20px;height:20px;flex:0 0 20px;margin-top:.1rem;accent-color:#168575}
.ps-group-question-option span{overflow-wrap:anywhere;line-height:1.45}
.ps-group-question-list{max-height:320px;overflow:auto}
.ps-student-assignments ul{padding-left:1.2rem}
.ps-student-assignments li{margin:.35rem 0;overflow-wrap:anywhere}
/* v0.11.6: respect filtered-out question rows in group assignment */
.ps-group-question-option[hidden]{display:none!important}


/* v0.14.6 — bank soal responsive and fixed student level */
.bank-import-panel{min-width:0;overflow:hidden}
.bank-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.bank-section-heading h3{margin:4px 0 6px!important}
.bank-section-heading p{margin:0;max-width:64ch}
.bank-template-btn{flex:0 0 auto;white-space:normal;min-height:44px}
.bank-import-panel #ps-bank-text{box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0;min-height:260px;resize:vertical;padding:14px;border:1px solid #cbded5;border-radius:14px;background:#fbfdfc;color:#203b42;font:14px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre;overflow:auto}
.bank-file-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin-top:14px}
.bank-file-row>div{min-width:0}
.bank-file-row label{display:block;margin:0 0 8px;font-weight:750}
.bank-file-row #ps-bank-file{box-sizing:border-box;width:100%;max-width:100%;min-width:0}
.bank-import-panel #ps-bank-validate{margin-top:14px;min-height:50px}
.bank-import-panel #ps-bank-status{overflow-wrap:anywhere;white-space:pre-wrap}
.map-level-fixed{display:inline-flex;align-items:center;justify-content:center;max-width:44%;padding:9px 12px;border:1px solid #d9e8dd;border-radius:12px;background:#f3faf5;color:#356a55;font-size:.85rem;font-weight:800;text-align:center}
@media(max-width:520px){.bank-section-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.bank-template-btn{width:100%}.bank-file-row{grid-template-columns:minmax(0,1fr)}.bank-file-row #ps-bank-example{width:100%}.map-level-fixed{max-width:42%;font-size:.78rem;padding:8px}}

/* v0.14.15: global group question preview */
.ps-global-group-preview{margin:12px 0;padding:10px;border:1px solid var(--line,#dce3ea);border-radius:12px}.ps-global-group-preview summary{font-weight:700;cursor:pointer;padding:4px}.ps-preview-question{padding:10px 0;border-bottom:1px solid var(--line,#dce3ea)}.ps-preview-question:last-child{border-bottom:0}.ps-preview-question ol{padding-left:22px}

/* v0.15.0 — katalog misi dinamis */
.dynamic-category{margin:16px 0}.dynamic-category .mission-toolbar{align-items:center;margin-bottom:12px}.dynamic-category .mission-toolbar h2{margin:5px 0}.dynamic-category .mission-toolbar p{margin:4px 0}.dynamic-mission-list{display:grid;gap:10px}.dynamic-mission-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;margin:0}.dynamic-mission-card h3{margin:5px 0;font-size:1rem}.dynamic-mission-card p{margin:4px 0;color:var(--muted,#65736d);font-size:.88rem}.dynamic-mission-card .game-btn{flex:0 0 auto;white-space:nowrap}.dynamic-category .pill{white-space:nowrap}@media(max-width:520px){.dynamic-mission-card{align-items:flex-start;flex-direction:column}.dynamic-mission-card .game-btn{width:100%}}


/* v0.15.1 — peta misi dinamis tanpa batas enam titik */
.map-board-unlimited{height:auto;min-height:500px;overflow:hidden;padding-bottom:58px}
.map-dynamic-nodes{position:relative;z-index:3;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:62px 12px;padding:115px 14px 66px;align-items:start}
.map-board-unlimited .map-dynamic-node{position:relative;inset:auto;width:62px;height:62px;justify-self:center;overflow:visible}
.map-board-unlimited .map-dynamic-node:nth-child(2n){transform:translateY(22px)}
.map-board-unlimited .map-dynamic-node:nth-child(3n){transform:translateY(8px)}
.map-node-label{position:absolute;top:calc(100% + 7px);left:50%;transform:translateX(-50%);width:104px;color:#285747;font-size:.68rem;font-weight:800;line-height:1.2;text-align:center;text-shadow:0 1px 0 #fff8}
.map-friendly-empty,.mission-empty-friendly{padding:18px;border-radius:16px;background:#ffffffc9;color:#45685a;line-height:1.55;text-align:center;font-weight:600}
.map-dynamic-nodes .map-friendly-empty{grid-column:1/-1;margin:0}
@media(max-width:380px){.map-dynamic-nodes{grid-template-columns:repeat(3,minmax(0,1fr));gap:62px 5px;padding-left:8px;padding-right:8px}.map-board-unlimited .map-dynamic-node{width:52px;height:52px}.map-node-label{font-size:.61rem;width:90px}}


/* v0.15.3 — Animasi petualangan yang lembut dan relevan */
@keyframes ps-sun-glow { 0%,100% { transform:scale(1); box-shadow:0 0 0 12px #fff5a044,0 0 0 0 #fff4a000; } 50% { transform:scale(1.055); box-shadow:0 0 0 17px #fff5a055,0 0 22px 3px #fff4a055; } }
@keyframes ps-cloud-drift { 0%,100% { transform:translateX(0); } 50% { transform:translateX(15px); } }
@keyframes ps-river-shimmer { 0%,100% { filter:saturate(1); transform:rotate(19deg) scale(1); } 50% { filter:saturate(1.18); transform:rotate(17deg) scale(1.025); } }
@keyframes ps-path-glow { 0%,100% { filter:drop-shadow(0 0 0 #fff0); opacity:.9; } 50% { filter:drop-shadow(0 0 5px #fff8b8); opacity:1; } }
@keyframes ps-landmark-float { 0%,100% { translate:0 0; } 50% { translate:0 -4px; } }
@keyframes ps-node-bob { 0%,100% { margin-top:0; } 50% { margin-top:-5px; } }
@keyframes ps-node-shine { 0% { background-position:0% 50%; } 100% { background-position:200% 50%; } }
@keyframes ps-card-enter { from { opacity:0; transform:translateY(12px) scale(.985); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes ps-emblem-pop { 0%,100% { transform:rotate(0) scale(1); } 45% { transform:rotate(-5deg) scale(1.06); } 70% { transform:rotate(4deg) scale(1.03); } }
@keyframes ps-progress-sheen { from { background-position:-120% 0; } to { background-position:220% 0; } }
.map-board-main .map-sun { animation:ps-sun-glow 4.8s ease-in-out infinite; }
.map-board-main .map-cloud { animation:ps-cloud-drift 8s ease-in-out infinite; }
.map-board-main .map-river { animation:ps-river-shimmer 7s ease-in-out infinite; }
.map-board-main .map-path { animation:ps-path-glow 4.5s ease-in-out infinite; }
.map-board-main .landmark { animation:ps-landmark-float 4s ease-in-out infinite; }
.map-board-main .landmark.mosque { animation-delay:.7s; }
.map-board-main .landmark.bridge { animation-delay:1.3s; }
.map-board-main .landmark.treasure { animation-delay:1.8s; }
.map-board-main .map-dynamic-node { animation:ps-card-enter .45s ease-out both,ps-node-bob 3.6s ease-in-out infinite; }
.map-board-main .map-dynamic-node:nth-child(3n+2) { animation-delay:.08s,.45s; }
.map-board-main .map-dynamic-node:nth-child(3n) { animation-delay:.16s,.9s; }
.map-board-main .map-dynamic-node:not(.done) { background:linear-gradient(115deg,#ffdf72 0%,#ffb83f 38%,#fff0a8 50%,#ffb83f 62%,#ffdf72 100%); background-size:200% 100%; animation:ps-card-enter .45s ease-out both,ps-node-bob 3.6s ease-in-out infinite,ps-node-shine 7s linear infinite; }
.map-board-main .map-dynamic-node.done { animation:ps-card-enter .45s ease-out both,ps-node-bob 4.2s ease-in-out infinite; }
.map-board-main .map-dynamic-node.partial { background:linear-gradient(145deg,#b9e7ff,#71b9e8); box-shadow:0 6px 0 #4c91c5,0 8px 14px #295c3c30; color:#17496b; }
.dynamic-category { animation:ps-card-enter .45s ease-out both; }
.dynamic-category:nth-of-type(2) { animation-delay:.06s; }
.dynamic-category:nth-of-type(3) { animation-delay:.12s; }
.dynamic-category:nth-of-type(4) { animation-delay:.18s; }
.dynamic-category:nth-of-type(5) { animation-delay:.24s; }
.dynamic-category:nth-of-type(6) { animation-delay:.30s; }
.dynamic-category:nth-of-type(7) { animation-delay:.36s; }
.dynamic-category .subject-emblem { animation:ps-emblem-pop 5s ease-in-out infinite; transform-origin:center; }
.dynamic-mission-card { transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.dynamic-mission-card:focus-within,.dynamic-mission-card:hover { transform:translateY(-3px); box-shadow:0 8px 0 #d5e6d4; border-color:#b8d9bf; }
.game-btn { transition:transform .14s ease,filter .14s ease,box-shadow .14s ease; }
.game-btn:hover { filter:brightness(1.035); }
.game-btn:active { transform:translateY(3px); box-shadow:0 1px 0 #d99a2c; }
.banner-progress .progress-track span { background-image:linear-gradient(100deg,#ffcf59 0%,#ffe9a2 45%,#ffcf59 70%); background-size:220% 100%; animation:ps-progress-sheen 5s linear infinite; }
@media (prefers-reduced-motion:reduce) {
 .map-board-main .map-sun,.map-board-main .map-cloud,.map-board-main .map-river,.map-board-main .map-path,.map-board-main .landmark,.map-board-main .map-dynamic-node,.dynamic-category,.dynamic-category .subject-emblem,.banner-progress .progress-track span { animation:none!important; }
 .dynamic-mission-card,.game-btn { transition:none!important; }
}

/* v0.15.7 — grouped bank shortcuts; navigation routes remain unchanged */
.ps-quick-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.ps-quick-menu .game-btn{min-height:44px;margin:0;white-space:normal}
#ps-manual-question,#ps-bank-import,#ps-bank-saved,#ps-bank-groups{scroll-margin-top:16px}
@media(min-width:700px){.ps-quick-menu{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* v0.15.8 — bank editor with persistent function sidebar */
.ps-bank-workspace{display:grid;grid-template-columns:238px minmax(0,1fr);gap:18px;align-items:start;width:100%;min-width:0}
.ps-bank-sidebar{position:sticky;top:12px;display:flex;flex-direction:column;gap:5px;min-width:0;padding:13px;border:1px solid #dce9e0;border-radius:18px;background:#fbfdf9;box-shadow:0 5px 18px #204d350a}
.ps-sidebar-brand{display:flex;align-items:center;gap:10px;padding:8px 7px 15px;border-bottom:1px solid #e2ece5;margin-bottom:7px;color:#254e42}
.ps-sidebar-brand>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e4f3dc;font-size:22px}
.ps-sidebar-brand strong,.ps-sidebar-brand small{display:block}.ps-sidebar-brand strong{font-size:1rem}.ps-sidebar-brand small{font-size:.72rem;color:#70877a;margin-top:3px}
.ps-sidebar-label{padding:12px 8px 5px;font-size:.66rem;font-weight:950;letter-spacing:.1em;color:#83958a}
.ps-side-link{display:flex;align-items:center;gap:10px;width:100%;min-height:43px;padding:9px 10px;border:1px solid transparent;border-radius:11px;background:transparent;color:#35594b;text-align:left;font:inherit;cursor:pointer}
.ps-side-link span{display:grid;place-items:center;flex:0 0 27px;height:27px;border-radius:8px;background:#edf4ed;color:#5b7968;font-size:.7rem;font-weight:900}
.ps-side-link b{font-size:.82rem;font-weight:800;line-height:1.25}
.ps-side-link:hover{background:#f0f7ee}.ps-side-link.active{background:#e5f4e2;border-color:#cce7ca;color:#216c50}.ps-side-link.active span{background:#2d936a;color:#fff}
.ps-sidebar-note{margin-top:12px;padding:11px 9px;border-radius:11px;background:#f1f7ed;color:#5b7867;font-size:.75rem;line-height:1.45}
.ps-bank-content{display:grid;gap:16px;min-width:0}.ps-bank-content>.panel{margin:0;min-width:0}.ps-bank-content .bank-intro h2{margin:5px 0 8px;color:#244e42}.ps-bank-content .bank-intro p{line-height:1.55}
.ps-bank-content #ps-manual-question{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.ps-bank-content #ps-manual-question h3{padding-bottom:12px;border-bottom:1px solid #e4ece6}.ps-bank-content #ps-manual-question #ps-q-question,.ps-bank-content #ps-manual-question #ps-q-data,.ps-bank-content #ps-manual-question #ps-q-explanation,.ps-bank-content #ps-manual-question #ps-q-reference,.ps-bank-content #ps-manual-question #ps-q-save,.ps-bank-content #ps-manual-question #ps-q-status{grid-column:1}
.ps-bank-content #ps-manual-question #ps-q-data{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.88rem;min-height:180px}
.ps-bank-content #ps-manual-question #ps-q-data-help{padding:11px 12px;margin:0;border-radius:10px;background:#f3f8f1;color:#587463;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:760px){.ps-bank-workspace{grid-template-columns:minmax(0,1fr);gap:12px}.ps-bank-sidebar{position:relative;top:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:10px}.ps-sidebar-brand{grid-column:1/-1}.ps-sidebar-label{grid-column:1/-1;padding-top:9px}.ps-sidebar-note{grid-column:1/-1;margin-top:5px}.ps-side-link{min-height:43px;padding:8px 7px;gap:7px}.ps-side-link b{font-size:.77rem}.ps-side-link span{flex-basis:24px;height:24px}}
@media(max-width:380px){.ps-bank-sidebar{grid-template-columns:minmax(0,1fr)}.ps-sidebar-brand,.ps-sidebar-label,.ps-sidebar-note{grid-column:1}.ps-side-link{min-height:40px}}
/* Model selector is controlled by the dedicated sidebar items. */
.ps-bank-content #ps-manual-question label[for="ps-q-type"],.ps-bank-content #ps-manual-question #ps-q-type{display:none!important}

/* v0.15.9 — make the main Bank Soal entry points unmistakable */
#ps-bank-open,#ps-admin-open-bank{background:linear-gradient(135deg,#176b55,#24866a)!important;color:#fff!important;border:2px solid #a9d7bd!important;box-shadow:0 5px 0 #125440,0 8px 18px #174d3526!important;font-weight:900!important;min-height:54px!important;letter-spacing:.01em}#ps-bank-open{margin-top:10px!important}#ps-bank-open::before{content:"📚  ";}#ps-admin-open-bank::before{content:"📝  ";}#ps-bank-open:focus-visible,#ps-admin-open-bank:focus-visible{outline:3px solid #e7b932!important;outline-offset:3px}
#ps-import-model{margin-bottom:10px;font-weight:800}#ps-download-text-template{width:100%;margin:0 0 14px;min-height:48px;font-weight:850}#ps-bank-import .bank-section-heading{margin-bottom:10px}

/* v0.16.2: preview cards keep numbering and actions together on narrow screens */
.ps-preview-list{display:grid;grid-template-columns:1fr;gap:12px;max-width:100%;}
.ps-preview-item{min-width:0;overflow-wrap:anywhere;background:var(--card,#fff);border:1px solid var(--line,#dce5e9);border-radius:14px;padding:14px;box-shadow:0 2px 8px rgba(20,50,40,.05);}
.ps-preview-item-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px;}
.ps-preview-number{display:inline-flex;align-items:center;background:#eaf5ef;color:#214c3c;border-radius:8px;padding:6px 9px;font-weight:800;white-space:nowrap;}
.ps-preview-level{font-size:.82rem;color:var(--muted,#64748b);flex:1;min-width:120px;}
.ps-preview-delete{margin-left:auto;flex:0 0 auto;min-height:40px;padding:8px 14px;touch-action:manipulation;}
.ps-preview-question-text{font-weight:700;line-height:1.5;font-size:1rem;white-space:pre-wrap;margin:8px 0 12px;}
.ps-preview-meta{display:flex;gap:8px 16px;flex-wrap:wrap;font-size:.88rem;color:var(--muted,#52616b);}
.ps-preview-validation{margin-top:10px;padding:8px 10px;border-radius:8px;font-size:.84rem;line-height:1.4;}
.ps-preview-validation.is-valid{background:#edf8f1;color:#226342;}
.ps-preview-validation.is-invalid{background:#fff0ee;color:#a33327;}
@media(min-width:900px){.ps-preview-list{grid-template-columns:repeat(2,minmax(0,1fr));}}
/* v0.16.3: multi-select saved-question deletion controls */
.ps-bulk-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;margin:0 0 12px;background:#eef7f1;border:1px solid #cfe5d7;border-radius:12px;position:sticky;top:8px;z-index:3}
.ps-select-all,.ps-preview-select{display:inline-flex;align-items:center;gap:8px;font-weight:800;min-height:42px;cursor:pointer}
.ps-select-all input,.ps-preview-select input{width:22px;height:22px;accent-color:#176b55;flex:0 0 auto}
.ps-bulk-toolbar .small-note{margin:0;flex:1;min-width:70px}
#ps-bank-delete-selected{min-height:44px;padding:9px 14px;font-weight:850;touch-action:manipulation}
#ps-bank-delete-selected:disabled{opacity:.45;cursor:not-allowed}
.ps-preview-select{padding:3px 5px;border-radius:8px;background:#f2f6f4}


/* v0.16.9 — navigasi utama bernuansa TPA: kitab, hijau, dan aksen emas */
.bottom.bottom-nav-tpa{padding:8px 10px calc(8px + env(safe-area-inset-bottom));gap:7px;background:linear-gradient(180deg,#fffef9 0%,#f6fbf3 100%);border-top:1px solid #d8e9d9;box-shadow:0 -7px 22px #173f2b12;align-items:stretch}
.bottom-nav-tpa button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:58px;padding:5px 3px 4px;border:1px solid transparent;border-radius:16px;background:transparent;color:#7a8d83;font-size:inherit;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.bottom-nav-tpa button .bottom-icon{display:grid;place-items:center;width:32px;height:30px;border-radius:11px;background:#eaf3e8;color:#497b60;font-size:22px;line-height:1;font-weight:850}
.bottom-nav-tpa button small{font-size:11px;line-height:1.2;font-weight:750;white-space:nowrap}
.bottom-nav-tpa button.active{background:#e6f4e8;border-color:#c7e3cc;color:#176b55;box-shadow:inset 0 -2px 0 #c2dfc7}
.bottom-nav-tpa button.active .bottom-icon{background:linear-gradient(145deg,#187b5e,#27976d);color:#fff4c7;box-shadow:0 2px 0 #c5a84d}
.bottom-nav-tpa button:active{transform:translateY(1px)}
.bottom-nav-tpa button:focus-visible{outline:3px solid #edc85a;outline-offset:1px}
@media(max-width:380px){.bottom.bottom-nav-tpa{gap:3px;padding-left:5px;padding-right:5px}.bottom-nav-tpa button{border-radius:12px}.bottom-nav-tpa button small{font-size:10px}.bottom-nav-tpa button .bottom-icon{width:29px;height:28px;font-size:20px}}

/* v0.16.10 — header ikut alur scroll; node peta tidak boleh menimpa header sticky */
header{position:relative;top:auto;z-index:auto}

/* v0.16.22: application-styled confirmations and strict mission progression */
.ps-confirm-overlay{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:20px;background:rgba(16,37,49,.58);backdrop-filter:blur(4px)}
.ps-confirm-dialog{width:min(100%,440px);background:#fffdf7;color:var(--ink,#172b3a);border:1px solid #dce9df;border-radius:24px;padding:24px;box-shadow:0 24px 70px rgba(12,38,45,.28);animation:psConfirmIn .16s ease-out}
.ps-confirm-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:#e4f3e9;color:#176b55;font-size:24px;font-weight:900;margin-bottom:14px}
.ps-confirm-dialog h2{margin:0 0 10px;color:#173b34;font-size:1.35rem;line-height:1.25}
.ps-confirm-dialog p{margin:0 0 22px;color:#62756e;line-height:1.65;overflow-wrap:anywhere}
.ps-confirm-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.ps-confirm-actions .game-btn{min-height:46px;padding:11px 18px;border-radius:14px;flex:1}
.ps-confirm-actions .game-btn.danger{background:#a83232;color:#fff;border-color:#a83232}
.ps-confirm-actions .game-btn.secondary{background:#f0f5f1;color:#24453d;border:1px solid #d9e7df}
.mission-node.locked{opacity:.56;filter:grayscale(.25);cursor:not-allowed;box-shadow:none}
.mission-node:disabled{pointer-events:none}
[data-dynamic-mission]:disabled{opacity:.62;cursor:not-allowed;box-shadow:none}
@keyframes psConfirmIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.ps-confirm-dialog{animation:none}}

/* v0.16.25 — admin material replacement controls */
.ps-replace-toolbar{margin:16px 0;padding:14px;border:1px solid rgba(46,125,90,.28);background:rgba(46,125,90,.045)}
.ps-replace-toolbar h3{margin:0 0 6px}
.ps-replace-choice{display:flex;align-items:flex-start;gap:9px;margin:9px 0;padding:9px 10px;border:1px solid var(--line,#d9e1e8);border-radius:10px;font-size:.9rem;line-height:1.4}
.ps-replace-choice input{width:18px;height:18px;flex:0 0 18px;margin:1px 0 0;accent-color:var(--green,#27845c)}

/* v0.16.35 — matching: large touch-friendly two-column board */
.match-board{margin:12px 0 16px;padding:12px;border:2px solid #dcebdd;border-radius:20px;background:#f5fbf3}
.match-board-head,.match-board-body{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.match-board-head{margin-bottom:9px;text-align:center;color:#4a7965;font-size:.72rem;font-weight:1000;letter-spacing:.07em}
.match-column{display:grid;align-content:start;gap:9px;min-width:0}
.match-tile{display:flex;min-width:0;min-height:76px;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:10px 6px;border:2px solid #d8e9dc;border-radius:15px;background:#fffef7;color:#244d42;box-shadow:0 3px 0 #d5e5d6;cursor:pointer;touch-action:manipulation}
.match-tile-main{font-size:clamp(1.35rem,5vw,2rem);font-weight:950;line-height:1.25;overflow-wrap:anywhere;text-align:center}
.match-tile small{font-size:.68rem;font-weight:850;color:#71877b;text-align:center;line-height:1.2}
.match-left-tile.selected{border-color:#e9b83f;background:#fff3c9;box-shadow:0 3px 0 #d9a332}
.match-left-tile.paired{border-color:#6cbd8a;background:#e5f7e8}
.match-right-tile.used{border-color:#6cbd8a;background:#e5f7e8;color:#28724e}
.match-instruction{margin:12px 2px 0!important;padding:10px 12px;border-radius:12px;background:#e7f2e7;color:#47715e!important;font-size:.85rem;font-weight:750;text-align:center}
.match-board+.game-btn{width:100%;min-height:52px}
@media(max-width:380px){.match-board{padding:8px}.match-board-head,.match-board-body{gap:7px}.match-tile{min-height:68px;padding:8px 4px}.match-tile small{font-size:.62rem}}


/* v0.16.37 — visual/audio learning cards for TKA */
.ps-audio-btn{display:inline-grid;place-items:center;min-width:38px;min-height:38px;margin:4px;border:1px solid #cfe4dc;border-radius:12px;background:#eaf7f1;color:#0f766e;font-size:18px;cursor:pointer;vertical-align:middle}
.ps-audio-btn:active{transform:scale(.94);background:#d5efe4}
.ps-visual-answer-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ps-visual-choice{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:150px;padding:12px;text-align:center;border:2px solid var(--line);border-radius:18px;background:#fff;font-size:15px;font-weight:800}
.ps-visual-choice .ps-audio-btn{position:absolute;right:5px;top:5px;min-width:32px;min-height:32px}
.ps-choice-image{display:block;width:100%;height:112px;object-fit:contain;border-radius:12px}
.ps-match-image{display:block;width:min(100%,116px);height:88px;object-fit:contain;margin:0 auto 7px}
.match-tile .ps-audio-btn{min-width:32px;min-height:32px;font-size:15px}
.match-tile{min-height:112px}
@media(max-width:360px){.ps-visual-answer-list{gap:8px}.ps-visual-choice{min-height:128px;padding:8px}.ps-choice-image{height:88px}}

/* TKA audio controls */
.tka-speak{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:34px;border:0;border-radius:12px;background:#e7f2ff;color:#155da8;font-size:18px;cursor:pointer;margin:4px}
.tka-speak-prompt{margin:8px 0 14px;min-height:42px}
.tka-speak:focus-visible,.tka-speak-prompt:focus-visible{outline:3px solid #f5b942;outline-offset:2px}

/* Adab & Sirah TKA visual matching */
.match-tile-image{display:block;width:100%;height:112px;object-fit:cover;border-radius:14px;margin:0 0 8px;background:#e8f3fb}
.match-tile-main{font-weight:700;line-height:1.35}
.match-tile .tka-speak{align-self:center}
@media(max-width:520px){.match-tile-image{height:82px}}

/* v0.16.40 — image-only matching mode for visual TKA Sirah */
.match-board-visual .match-board-head{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:.78rem;margin:0 0 10px}
.match-board-visual .match-board-body{grid-template-columns:1fr 1fr;align-items:stretch;gap:12px}
.match-board-visual .match-column{grid-auto-rows:1fr;gap:12px}
.match-board-visual .match-tile{width:100%;min-height:128px;height:100%;padding:9px;gap:7px;justify-content:center}
.match-board-visual .match-left-tile{min-height:128px}
.match-board-visual .match-left-tile .match-tile-image{width:100%;height:auto;aspect-ratio:1.35/1;object-fit:contain;margin:0;border-radius:12px}
.match-board-visual .match-left-tile small{margin-top:2px}
.match-board-visual .match-right-tile{min-height:128px}
.match-board-visual .match-right-tile .match-tile-main{font-size:clamp(1.05rem,4.3vw,1.55rem);line-height:1.3;overflow-wrap:normal;word-break:normal}
.match-board-visual .match-right-tile small{font-size:.68rem}
.match-board-visual .match-instruction{margin-top:12px!important}
@media(max-width:380px){.match-board-visual .match-board-body{gap:8px}.match-board-visual .match-column{gap:8px}.match-board-visual .match-tile{min-height:112px;padding:7px}.match-board-visual .match-left-tile .match-tile-image{aspect-ratio:1.25/1}}


/* v0.16.49 — sistem warna tombol berdasarkan tingkat kepentingan */
:root{
  --ps-action-primary:#f6bd45;
  --ps-action-primary-deep:#d99725;
  --ps-action-primary-ink:#563d12;
  --ps-action-success:#25845f;
  --ps-action-success-deep:#176b4b;
  --ps-action-info:#3479a8;
  --ps-action-info-deep:#245d86;
  --ps-action-neutral:#eef3ef;
  --ps-action-neutral-border:#d7e2da;
  --ps-action-danger:#b83b3b;
  --ps-action-danger-deep:#922d2d;
}
/* Tombol aksi utama: simpan, buat, lanjutkan, kirim, dan proses penting. */
button.wide:not(.secondary):not(.danger),
button.btn:not(.secondary):not(.danger),
button.landing-primary,
button.login-primary,
button.game-btn:not(.secondary):not(.danger):not(.text-link){
  background:linear-gradient(135deg,#ffd36b 0%,var(--ps-action-primary) 100%);
  color:var(--ps-action-primary-ink);
  border:1px solid #e6a936;
  box-shadow:0 4px 0 var(--ps-action-primary-deep);
}
button.wide,button.btn{min-height:48px}
/* Sekunder: muat, pilih, sinkronkan, dan tindakan pendukung. */
button.secondary,
button.landing-secondary,
button.game-btn.secondary,
button.wide.secondary{
  background:linear-gradient(135deg,#e5f5e9 0%,#d2ecdc 100%);
  color:#216548;
  border:1px solid #b8dcc5;
  box-shadow:0 3px 0 #a9cfb7;
}
/* Aksi informasi/pratinjau: biru yang tetap lembut. */
button.info,button.blue,button.game-btn.info,button.wide.info{
  background:linear-gradient(135deg,#e6f2fb 0%,#d4e8f7 100%);
  color:#245d86;
  border:1px solid #bdd7eb;
  box-shadow:0 3px 0 #b2cde2;
}
/* Netral: batal, tutup, kembali, dan aksi yang tidak mengubah data. */
button.neutral,button.tertiary,button.back,button.game-btn.neutral,
button.wide.neutral,button.wide.tertiary{
  background:#f1f4f2;
  color:#52645b;
  border:1px solid #dce5df;
  box-shadow:0 3px 0 #d4ddd7;
}
/* Destruktif: hapus, reset, keluarkan. */
button.danger,button.game-btn.danger,button.wide.danger{
  background:linear-gradient(135deg,#d95757 0%,var(--ps-action-danger) 100%);
  color:#fff;
  border:1px solid var(--ps-action-danger-deep);
  box-shadow:0 4px 0 var(--ps-action-danger-deep);
}
/* Aksi hijau tegas untuk konfirmasi berhasil/selesai. */
button.green,button.game-btn.green,button.wide.green{
  background:linear-gradient(135deg,#35a879 0%,var(--ps-action-success) 100%);
  color:#fff;
  border:1px solid var(--ps-action-success-deep);
  box-shadow:0 4px 0 var(--ps-action-success-deep);
}
/* Link tindakan ringan tidak perlu tampil seperti tombol besar. */
button.text-link{background:transparent!important;color:#187b70!important;border:0!important;box-shadow:none!important}
button:disabled{opacity:.48;cursor:not-allowed;filter:saturate(.55);transform:none!important;box-shadow:none!important}
button:not(:disabled):focus-visible{outline:3px solid #e9bd4e;outline-offset:3px}
button:not(:disabled){transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease,filter .16s ease}
button:not(:disabled):active:not(.bottom-nav-tpa button){transform:translateY(2px);filter:brightness(.97)}
/* Pilihan jawaban dan papan matching mempertahankan warna statusnya sendiri. */
button.answer-option,button.match-tile,button.choice{box-shadow:0 2px 0 #dce8df}
button.answer-option.correct,button.choice.good{background:#e2f6e7;border-color:#6cbd87;color:#205e3c;box-shadow:0 2px 0 #a9d7b7}
button.answer-option.incorrect,button.choice.bad{background:#fff0ec;border-color:#e49a86;color:#963d32;box-shadow:0 2px 0 #e7c1b7}
button.match-tile.selected,button.match-tile:focus-visible{border-color:#3b91c6;background:#e8f4fc;color:#245d86}
@media(prefers-reduced-motion:reduce){button:not(:disabled){transition:none}}

/* v0.16.52 — rincian hadiah per petualangan */
.map-board-unlimited .map-dynamic-node{overflow:visible;padding-bottom:2px}
.map-board-unlimited .map-dynamic-node .map-node-label{top:calc(100% + 6px)}
.node-rewards{position:absolute;top:calc(100% + 49px);left:50%;transform:translateX(-50%);width:112px;text-align:center;white-space:nowrap;font-size:.59rem;font-weight:950;color:#315b45;text-shadow:0 1px 2px #fff,0 0 4px #fff}
.reward-mission-card{padding:12px;border:1px solid #dcebdc;border-radius:16px;background:#f8fbf3;color:#315c4b}
.reward-mission-card.is-mastered{background:#f0f8e9;border-color:#cde5c7}
.reward-mission-heading{display:flex;align-items:center;gap:9px}
.reward-mission-heading>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.reward-mission-heading strong{font-size:.94rem;line-height:1.3}
.reward-mission-heading small{font-size:.72rem;color:#71877a;font-weight:650}
.reward-mission-total{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:11px 0 7px;padding:9px 10px;border-radius:11px;background:#fff7df;color:#76591e;font-size:.76rem}
.reward-mission-total strong{white-space:nowrap;font-size:.82rem}
.reward-mission-total i,.reward-category-row i{font-style:normal;color:#a4b3a5}
.reward-category-list{display:grid;gap:5px}
.reward-category-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 2px;border-top:1px solid #e2ecdf;font-size:.72rem;color:#587266}
.reward-category-row strong{white-space:nowrap;color:#426a54;font-size:.7rem}
@media(max-width:380px){.node-rewards{font-size:.54rem;width:96px}.reward-mission-total{align-items:flex-start;flex-direction:column}.reward-category-row{align-items:flex-start;flex-direction:column;gap:2px}}

/* v0.17.0 — paket misi berversi */
#ps-mp-list .history{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line,#dce4eb)}
#ps-mp-list .history small{opacity:.75}

/* v0.17.18 — layout model Pasangkan & Kelompokkan proporsional */
.match-board{width:100%;max-width:760px;margin:14px auto 18px;padding:clamp(10px,2.8vw,16px)}
.match-board-head,.match-board-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(8px,2.4vw,14px)}
.match-column{min-width:0;gap:clamp(8px,2vw,12px)}
.match-tile{width:100%;min-height:clamp(88px,21vw,124px);padding:clamp(9px,2.5vw,14px);gap:7px;overflow-wrap:anywhere}
.match-tile-main{width:100%;font-size:clamp(1rem,3.8vw,1.4rem);line-height:1.28;overflow-wrap:break-word;word-break:normal;hyphens:auto}
.match-tile small{font-size:clamp(.66rem,2.5vw,.78rem);line-height:1.25}
.match-board-head{font-size:clamp(.62rem,2.3vw,.76rem);line-height:1.25;letter-spacing:.045em}
.match-instruction{font-size:clamp(.76rem,2.8vw,.9rem)!important}
.category-board .match-tile{min-height:clamp(92px,22vw,130px)}
.category-item-tile{background:#e8f7ec;border-color:#8bc7a1;color:#285344}
.category-choice-tile{background:#e9f4fc;border-color:#6ca9cf;color:#285d7c}
.category-item-tile.selected,.category-choice-tile.selected{border-color:#e7b33b;background:#fff1c5;box-shadow:0 3px 0 #d8a12c}
.category-item-tile.paired{border-color:#79bb91;background:#e2f5e7}
.category-progress{margin:10px 2px 0;text-align:center;color:#628171;font-size:.78rem;font-weight:850}
@media(max-width:380px){.match-board{padding:8px}.match-board-head,.match-board-body{gap:7px}.match-tile,.category-board .match-tile{min-height:82px;padding:8px 6px}.match-tile-main{font-size:clamp(.94rem,4vw,1.12rem)}}

/* v0.17.19 — preview uses mission question presentation */
.ps-question-render-preview{margin:12px 0 4px;padding:clamp(10px,2.5vw,16px);border:1px solid #e5eadc;border-radius:18px;background:#fffdf5}
.ps-question-render-preview .ps-preview-question-text{font-size:clamp(1.05rem,3.6vw,1.4rem);line-height:1.42;font-weight:750;color:#285344;margin:0 0 14px}
.ps-question-render-preview .answer-option{pointer-events:none}
.ps-question-render-preview input:disabled{width:100%;min-width:0;background:#fff;border:1px solid #b8c8bd;border-radius:9px;padding:11px 12px;color:#52645b;opacity:1}
.ps-question-render-preview .match-board{max-width:none}
.preview-order-placeholder{border:1px solid #d5dfd7;border-radius:8px;padding:6px 10px;color:#72847a;background:#fff}
.ps-question-render-preview .match-row{align-items:center}


/* v0.17.20 — kolom isian lebar dan ejaan jawaban */
.fill-blank-list{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;width:100%}
.fill-blank-field{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;min-width:0}
.fill-blank-field>span{display:block;font-size:clamp(.92rem,3.2vw,1.05rem);font-weight:800;color:#527467}
.fill-blank-field input[data-blank]{display:block;width:100%;min-width:0;min-height:56px;box-sizing:border-box;padding:14px 16px;border:2px solid #b9d5c3;border-radius:13px;background:#fff;color:#244d40;font:inherit;font-size:1.05rem;outline:none;box-shadow:inset 0 1px 2px rgba(20,60,40,.05)}
.fill-blank-field input[data-blank]:focus{border-color:#26956d;box-shadow:0 0 0 3px rgba(38,149,109,.13)}
.fill-blank-field input[data-blank]::placeholder{color:#91a69b;opacity:1}
@media(max-width:380px){.fill-blank-list{gap:12px}.fill-blank-field input[data-blank]{min-height:54px;font-size:1rem;padding:12px 14px}}


/* v0.17.21 — ruang dan ukuran kontrol Susun Urutan */
.challenge-card .answer-list:not(.fill-blank-list) .match-row{
 display:flex;
 flex-direction:column;
 align-items:stretch;
 gap:12px;
 padding:12px 0 15px;
 border-bottom:1px solid #e2eee5;
 color:#294e43;
 font-size:clamp(1.05rem,3.8vw,1.2rem);
 line-height:1.45;
}
.challenge-card .answer-list:not(.fill-blank-list) .match-row:last-child{border-bottom:0}
.challenge-card .answer-list:not(.fill-blank-list) .match-row select[data-order]{
 display:block;
 width:min(100%,190px);
 min-width:150px;
 min-height:52px;
 padding:10px 42px 10px 14px;
 border:2px solid #b9d5c3;
 border-radius:12px;
 background-color:#fff;
 color:#244d40;
 font:inherit;
 font-size:1.08rem;
 font-weight:750;
 line-height:1.2;
}
.challenge-card .answer-list:not(.fill-blank-list) .match-row select[data-order]:focus{
 outline:3px solid #26956d26;
 border-color:#26956d;
}
@media(max-width:380px){
 .challenge-card .answer-list:not(.fill-blank-list) .match-row{gap:10px;padding:11px 0 13px;font-size:1.02rem}
 .challenge-card .answer-list:not(.fill-blank-list) .match-row select[data-order]{min-width:145px;min-height:50px;font-size:1.05rem}
}


/* v0.17.22 — peta misi: kartu responsif dan tanpa teks detail bertumpuk */
.map-board-unlimited .map-dynamic-node{
 position:relative;
 z-index:12;
 width:68px;
 height:68px;
 min-width:68px;
 min-height:68px;
 padding:4px;
 overflow:visible;
 touch-action:manipulation;
 -webkit-tap-highlight-color:transparent;
 pointer-events:auto;
 cursor:pointer;
}
.map-board-unlimited .map-dynamic-node:focus-visible{
 outline:4px solid #176f56;
 outline-offset:4px;
}
.map-board-unlimited .map-dynamic-node .map-node-label{
 top:calc(100% + 8px);
 width:116px;
 font-size:.72rem;
 line-height:1.2;
 pointer-events:none;
}
.map-board-unlimited .map-dynamic-node .node-num,
.map-board-unlimited .map-dynamic-node .node-stars{pointer-events:none}
.map-board-unlimited .map-dynamic-node:disabled{pointer-events:none}
@media(max-width:380px){
 .map-board-unlimited .map-dynamic-node{width:62px;height:62px;min-width:62px;min-height:62px}
 .map-board-unlimited .map-dynamic-node .map-node-label{width:100px;font-size:.66rem}
}


/* v0.17.22 — node peta mudah disentuh, tanpa teks detail bertumpuk */
.map-dynamic-nodes{position:absolute;inset:0;z-index:20;pointer-events:none}
.map-board-main .map-path,
.map-board-main .landmark{pointer-events:none}
.map-board-main .map-dynamic-node{
 z-index:30;
 pointer-events:auto;
 touch-action:manipulation;
 cursor:pointer;
 width:72px;
 height:72px;
 min-width:72px;
 min-height:72px;
 border-width:4px;
 border-radius:23px;
 padding:5px;
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;
 gap:2px;
 overflow:hidden;
}
.map-board-main .map-dynamic-node .node-num{font-size:1.65rem;line-height:1}
.map-board-main .map-dynamic-node .node-stars{font-size:.9rem;line-height:1}
.map-board-main .map-dynamic-node .map-node-label,
.map-board-main .map-dynamic-node .node-rewards{display:none!important}
.map-board-main .map-dynamic-node:focus-visible{outline:4px solid #fff;outline-offset:4px}
.map-board-main .map-dynamic-node:active{transform:scale(.94)}
.map-board-main .map-dynamic-node:disabled{pointer-events:none}
@media(max-width:650px){
 .map-board-main .map-dynamic-node{width:72px;height:72px;min-width:72px;min-height:72px}
}


/* v0.17.24 — identitas misi dan umpan balik per item Kelompokkan */
.map-board-main .map-dynamic-node .map-node-label{
 display:block!important;
 max-width:118px;
 margin-top:5px;
 color:#285344;
 font-size:clamp(.68rem,2.6vw,.82rem);
 font-weight:900;
 line-height:1.15;
 text-align:center;
 white-space:normal;
 overflow-wrap:anywhere;
 text-shadow:0 1px 0 rgba(255,255,255,.9);
}
.map-board-main .map-dynamic-node{height:auto;min-height:72px;overflow:visible;padding:7px 5px}
.category-item-tile.is-right{border-color:#299765!important;background:#e0f5e7!important;color:#245a40!important}
.category-item-tile.is-wrong{border-color:#d85b55!important;background:#ffebe8!important;color:#873b36!important}
.category-item-tile.is-right [data-category-status]{color:#21804f!important}
.category-item-tile.is-wrong [data-category-status]{color:#b13f38!important}
.category-item-tile.is-wrong .match-tile-main::after{content:'  ✕'}
.category-item-tile.is-right .match-tile-main::after{content:'  ✓'}

/* v0.17.26 — competency-first curriculum catalog */
.ps-curriculum-catalog{border:1px solid #d9e6df;background:linear-gradient(180deg,#fbfefc,#f4f9f6)}
.ps-curriculum-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.ps-curriculum-mission{min-width:0;border:1px solid #dce7e1;border-radius:14px;background:#fff;overflow:hidden}
.ps-curriculum-mission[open]{border-color:#86b79e;box-shadow:0 4px 14px rgba(23,61,50,.06)}
.ps-curriculum-mission summary{display:flex;align-items:center;gap:10px;padding:12px;cursor:pointer;list-style:none;min-height:76px}
.ps-curriculum-mission summary::-webkit-details-marker{display:none}
.ps-curriculum-icon{width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:#e8f3ed;color:#245c49;display:grid;place-items:center;font-size:21px}
.ps-curriculum-heading{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.ps-curriculum-heading small{font-size:10px;font-weight:800;letter-spacing:.05em;color:#438064;text-transform:uppercase}
.ps-curriculum-heading strong{font-size:13px;line-height:1.35;color:#203b30}
.ps-curriculum-heading em{font-size:11px;font-style:normal;color:#718178}
.ps-curriculum-chevron{color:#638273;font-size:18px;transition:transform .2s}
.ps-curriculum-mission[open] .ps-curriculum-chevron{transform:rotate(180deg)}
.ps-curriculum-mission ol{margin:0;padding:0 12px 12px 42px;display:grid;gap:8px}
.ps-curriculum-mission li{padding-left:2px;color:#33483d;font-size:12px;line-height:1.45}
.ps-curriculum-mission li span{display:block;color:#6a927d;font-size:10px;font-weight:800;margin-bottom:1px}
.ps-curriculum-footnote{margin:14px 2px 0!important;padding-top:12px;border-top:1px solid #e1ebe5}
@media(max-width:560px){.ps-curriculum-grid{grid-template-columns:1fr;gap:8px}.ps-curriculum-mission summary{min-height:68px;padding:10px}.ps-curriculum-mission ol{padding-left:40px}}

/* v0.17.27 — satu peta dunia untuk seluruh jenjang, 12 wilayah kurikulum */
.ps-world-map{min-height:470px;height:470px;overflow:hidden}
.ps-world-map .map-dynamic-nodes{position:absolute;inset:0;pointer-events:none}
.ps-world-map .ps-world-node{
 position:absolute!important;left:var(--world-x)!important;top:var(--world-y)!important;right:auto!important;bottom:auto!important;
 width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important;
 transform:translate(-50%,-50%)!important;overflow:visible!important;padding:4px!important;
 pointer-events:auto;animation:none!important;z-index:35;border-radius:19px;
}
.ps-world-map .ps-world-node .node-num{font-size:1.35rem!important;line-height:1}
.ps-world-map .ps-world-node .node-stars{font-size:.58rem!important;line-height:1.1;letter-spacing:.03em}
.ps-world-map .ps-world-node .map-node-label{
 display:block!important;position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);
 width:112px;max-width:112px;margin:0;padding:4px 5px;border:1px solid #d6e7d3;border-radius:9px;
 background:#fffef0;color:#285344;font-size:.65rem;font-weight:900;line-height:1.15;text-align:center;
 white-space:normal;box-shadow:0 2px 0 #c4d9bf;text-shadow:none;
}
.ps-world-map .ps-world-node .world-node-count{position:absolute;top:calc(100% + 31px);left:50%;transform:translateX(-50%);width:105px;color:#294d3e;font-size:.58rem;font-weight:850;text-align:center;text-shadow:0 1px 2px #fff}
.ps-world-map .ps-world-node.is-pending{filter:saturate(.45);background:linear-gradient(145deg,#e5f0e7,#b9d3c1);box-shadow:0 5px 0 #91b19b;color:#456453;cursor:pointer}
.ps-world-map .ps-world-node.locked{filter:grayscale(.65);opacity:.82;cursor:not-allowed}
.ps-world-map .ps-world-node.done{background:linear-gradient(145deg,#c8f078,#7cce69);box-shadow:0 5px 0 #48a35c;color:#285d35}
.ps-world-map .map-legend{z-index:40;max-width:100%;background:#ffffffb8;border-radius:12px;padding:4px}
.ps-world-map .map-legend span{font-size:.6rem}
@media(max-width:520px){
 .ps-world-map{height:430px;min-height:430px}
 .ps-world-map .ps-world-node{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;border-width:3px!important;border-radius:15px!important}
 .ps-world-map .ps-world-node .node-num{font-size:1.05rem!important}
 .ps-world-map .ps-world-node .node-stars{font-size:.48rem!important}
 .ps-world-map .ps-world-node .map-node-label{width:88px;font-size:.57rem;padding:3px}
 .ps-world-map .ps-world-node .world-node-count{top:calc(100% + 27px);font-size:.52rem;width:90px}
 .ps-world-map .map-legend{left:5px;right:5px;bottom:5px;gap:3px}
 .ps-world-map .map-legend span{font-size:.52rem;padding:4px 5px}
}


/* v0.17.35 — fixed application identity + isolated content viewport */
html,body{height:100%;min-height:100%;overflow:hidden}
body{overscroll-behavior:none}
.shell{
 width:100%;height:100vh;height:100dvh;min-height:0;
 display:flex;flex-direction:column;overflow:hidden;
 padding:0;margin:0 auto;overscroll-behavior:none;
}
.shell>header{
 position:relative;top:auto;z-index:100;flex:0 0 auto;
 min-height:72px;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;
 background:rgba(255,255,255,.98);border-bottom:1px solid #dce9df;
 box-shadow:0 3px 14px rgba(23,63,43,.07);
}
.shell>header .logo{width:46px;height:46px;flex:0 0 46px}
.shell>header>div:nth-child(2){min-width:0}
.shell>header b{font-size:clamp(.88rem,3.8vw,1.08rem);white-space:nowrap}
.shell>header #network{flex:0 0 auto}
.shell>#app{
 flex:1 1 auto;min-height:0;height:auto;width:100%;
 overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
 -webkit-overflow-scrolling:touch;touch-action:pan-y;
 scrollbar-width:thin;scrollbar-color:#b9d5c2 transparent;
 padding:0;margin:0;
}
.shell>#app>main{min-height:100%;padding:16px 14px 28px}
.shell>#app .game-shell{min-height:100%;padding:12px 12px 28px}
.shell>nav.bottom.bottom-nav-tpa{
 position:relative;left:auto;bottom:auto;transform:none;z-index:100;
 flex:0 0 auto;width:100%;max-width:820px;margin:0 auto;
 padding:7px 10px calc(7px + env(safe-area-inset-bottom));
 box-shadow:0 -4px 16px rgba(23,63,43,.08);
}
/* Keep map canvas inside the scrolling content layer; it must not cover app chrome. */
.shell>#app .map-board-main{position:relative;isolation:isolate;max-width:100%;}
.shell>#app .map-board-unlimited{min-height:620px;}
/* A question is the focus of the play area, with comfortable touch spacing. */
.shell>#app .challenge-card{max-width:760px;margin:0 auto 12px;padding:clamp(16px,4vw,26px);}
.shell>#app .challenge-card h2{font-size:clamp(1.2rem,4.5vw,1.65rem);line-height:1.45;overflow-wrap:anywhere}
.shell>#app .challenge-card .answer-list{gap:12px}
.shell>#app .challenge-card .answer-option{min-height:58px;touch-action:manipulation}
@media(min-width:821px){
 .shell{border-left:1px solid #e0ebe3;border-right:1px solid #e0ebe3}
 .shell>#app>main{padding-left:22px;padding-right:22px}
}
@media(max-width:380px){
 .shell>header{gap:8px;padding-left:12px;padding-right:12px}
 .shell>header .logo{width:42px;height:42px;flex-basis:42px}
 .shell>header #network{font-size:9px;padding:6px}
 .shell>#app>main{padding-left:11px;padding-right:11px}
}
@media(prefers-reduced-motion:reduce){.shell>#app{scroll-behavior:auto}}


/* Mode Klasikal — tahap 1 */
.map-footer-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.ps-classroom-mode{background:#eef4ef}
.ps-classroom-shell{max-width:1100px!important;min-height:100vh;padding:clamp(16px,3vw,34px)!important}
.ps-classroom-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:24px}
.ps-classroom-head h1{font-size:clamp(2rem,5vw,3.5rem);margin:5px 0 8px;color:#173d2c}
.ps-classroom-head p,.ps-classroom-hero p{margin:0;color:#587064;line-height:1.55}
.ps-classroom-hero{display:flex;align-items:center;gap:20px;padding:clamp(20px,4vw,36px);border-radius:24px;background:linear-gradient(120deg,#dcefe2,#f5f8e9);border:1px solid #c8dfce;margin-bottom:22px}
.ps-classroom-symbol{width:76px;height:76px;flex:0 0 76px;border-radius:22px;background:#fff;display:grid;place-items:center;font-size:38px;color:#246443;box-shadow:0 8px 22px #173d2c18}
.ps-classroom-hero h2{margin:0 0 7px;font-size:clamp(1.3rem,3vw,2rem);color:#173d2c}
.ps-classroom-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}
.ps-classroom-tile{min-height:150px;text-align:left;padding:22px;border:1px solid #d6e3d9;border-radius:20px;background:#fff;color:#173d2c;display:flex;flex-direction:column;gap:9px;cursor:pointer;box-shadow:0 5px 16px #173d2c0a}
.ps-classroom-tile>span{font-size:30px;color:#24734a}.ps-classroom-tile strong{font-size:1.2rem}.ps-classroom-tile small{font-size:.95rem;color:#63766a}
.ps-classroom-tile.primary{border:2px solid #4c9868;background:#fafffb}
.ps-classroom-note,.ps-classroom-help{color:#66786d;line-height:1.55;font-size:.92rem}
.ps-classroom-panel{background:#fff;border:1px solid #dce7df;border-radius:20px;padding:clamp(18px,3vw,28px);margin:16px 0;box-shadow:0 5px 18px #173d2c08}
.ps-classroom-panel h2{margin:0 0 18px;color:#173d2c}
.ps-classroom-panel>label{display:block;font-weight:700;color:#315443;margin:16px 0 7px}
.ps-classroom-panel select{width:100%;min-height:52px;border:1px solid #cbd9cf;border-radius:12px;padding:10px 13px;background:#fbfdfb;color:#203c2c;font:inherit}
.ps-classroom-options{display:grid;gap:13px;margin:22px 0}
.ps-classroom-options label{display:flex;align-items:center;gap:12px;font-weight:600;color:#315443;min-height:34px}
.ps-classroom-options input{width:22px;height:22px;accent-color:#28764b}
.ps-class-save{min-height:54px;width:100%;font-size:1.05rem}
.ps-classroom-mode button:focus-visible,.ps-classroom-mode select:focus-visible{outline:4px solid #e0a52c!important;outline-offset:4px!important}
@media(min-width:900px) and (orientation:landscape){.ps-classroom-mode .ps-classroom-shell{max-width:1280px!important}}
@media(max-width:600px){.ps-classroom-head{flex-direction:column}.ps-classroom-head>.game-btn{align-self:flex-start}.ps-classroom-hero{align-items:flex-start}.ps-classroom-symbol{width:56px;height:56px;flex-basis:56px;font-size:28px}}


/* Mode Klasikal — mesin sesi */
.ps-class-answers{display:grid;grid-template-columns:1fr;gap:12px;margin:22px 0}
.ps-class-answers.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.ps-class-answers button,.ps-class-match button,.ps-class-cats button{min-height:58px;border:2px solid #d5e3d9;border-radius:14px;background:#fff;color:#244b36;padding:14px;text-align:left;font:inherit;font-weight:650;cursor:pointer}
.ps-class-answers button{display:flex;align-items:center;gap:14px}
.ps-class-answers button b{display:grid;place-items:center;min-width:34px;height:34px;border-radius:10px;background:#e9f3eb}
.ps-class-answers button.chosen,.ps-class-match button.chosen,.ps-class-cats button.chosen{border-color:#2f8555;background:#eaf6ed}
.ps-class-match,.ps-class-cats{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}
.ps-class-match>div,.ps-class-cats>div{display:grid;align-content:start;gap:9px}
.ps-class-match h3,.ps-class-cats h3{margin:0 0 4px;color:#315443}
.ps-class-match button,.ps-class-cats button{width:100%;text-align:center;min-height:62px}
.ps-class-match button.paired{border-color:#78a98a;background:#f1f8f2}
.ps-class-cats button small{display:block;margin-top:5px;color:#607568;font-size:.8rem}
.ps-class-order,.ps-class-blanks{display:grid;gap:12px;margin:20px 0}
.ps-class-order label{display:grid;grid-template-columns:1fr 100px;gap:12px;align-items:center;padding:12px;border:1px solid #d8e4db;border-radius:12px;background:#fff}
.ps-class-order select,.ps-class-blanks input{min-height:46px;border:1px solid #cbd9cf;border-radius:10px;padding:8px 10px;background:#fbfdfb;font:inherit;color:#203c2c}
.ps-class-blanks label{display:grid;gap:7px;font-weight:650;color:#315443}
.ps-class-hud{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;padding:13px 16px;border-radius:14px;background:#e7f2e9;color:#315443;font-weight:700;margin-bottom:16px}
.ps-class-question{background:#fff;border:1px solid #dce7df;border-radius:22px;padding:clamp(18px,4vw,32px);box-shadow:0 8px 25px #173d2c0b}
.ps-class-question h2{font-size:clamp(1.35rem,3.4vw,2.1rem);line-height:1.4;color:#173d2c;margin:12px 0 22px}
.ps-class-question #c-feedback{min-height:54px;padding:12px 0;color:#315443;line-height:1.55}
.ps-class-question #c-feedback .good{color:#187346}.ps-class-question #c-feedback .bad{color:#a04432}
.ps-class-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.ps-class-actions button{min-height:48px}
.ps-class-actions button:disabled{opacity:.45;cursor:not-allowed}
.ps-class-result{background:#fff;border:1px solid #dce7df;border-radius:22px;padding:clamp(22px,5vw,40px);text-align:center}
.ps-class-score{font-size:clamp(3rem,10vw,5.5rem);font-weight:850;color:#23734a}
.ps-class-team-scores{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}
.ps-class-team-scores article{display:grid;gap:8px;padding:18px;border-radius:15px;background:#edf6ef;color:#315443}
.ps-class-team-scores strong{font-size:1.5rem}
.ps-class-result>button{margin:8px}
@media(max-width:560px){.ps-class-match,.ps-class-cats{grid-template-columns:1fr}.ps-class-answers.two{grid-template-columns:1fr}.ps-class-actions{display:grid;grid-template-columns:1fr}.ps-class-team-scores{grid-template-columns:1fr}}

.ps-class-head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ps-class-control-label{display:inline-flex;padding:10px 14px;border-radius:12px;background:#e7f2e9;color:#315443;font-weight:700}

.ps-class-team-editor{margin:24px 0;padding:18px;border:1px solid #d7e4da;border-radius:16px;background:#f8fcf8}
.ps-class-team-editor-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.ps-class-team-editor-head h3{margin:0;color:#315443}.ps-class-team-editor-head p{margin:5px 0 0;color:#6a8174;font-size:.92rem}
.ps-class-team-row{margin:12px 0}.ps-class-team-row>label{display:block;margin-bottom:7px;font-weight:700;color:#315443}
.ps-class-team-row>div{display:flex;gap:8px;align-items:center}.ps-class-team-row input{flex:1;min-width:0;min-height:48px;border:1px solid #cbd9cf;border-radius:10px;padding:10px 12px;font:inherit;background:#fff;color:#203c2c}
.ps-class-team-row .danger{background:#fff1ee;color:#9c4435;border:1px solid #e8c7bf;min-height:44px}
.ps-class-team-row .danger:disabled{opacity:.35}
.ps-class-team-scores{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:22px 0}

/* Mode Klasikal — petunjuk alur, umpan balik, dan dialog seragam */
.ps-class-howto{display:grid;gap:6px;margin:0 0 16px;padding:15px 18px;border:1px solid #cfe0d3;border-radius:14px;background:#f4faf5;color:#426451;line-height:1.5}
.ps-class-howto>b{color:#245b3d}
.ps-class-feedback-success,.ps-class-feedback-wrong{padding:13px 0;line-height:1.6}
.ps-class-feedback-success>strong{display:block;color:#187346;font-size:1.12rem}
.ps-class-feedback-wrong>strong{display:block;color:#a04432;font-size:1.12rem}
.ps-class-feedback-success p,.ps-class-feedback-wrong p{margin:8px 0}
.ps-class-next-hint{margin-top:12px;padding:12px 14px;border-radius:12px;background:#edf6ef;color:#315443;font-size:.94rem}
.ps-class-actions [data-c-next]:not(:disabled){background:#26754b;color:#fff;border-color:#26754b;box-shadow:0 3px 0 #185a37}
.ps-class-actions [data-c-check]:disabled{opacity:.5}

.ps-class-next-hint{border-left:4px solid #2d8051;background:#edf7ef}
.ps-class-actions [data-c-next]:disabled{opacity:.85;background:#e8f1e9;color:#315443;border-color:#cbded0;box-shadow:none}


/* v0.17.55 — mobile-first Soal & Misi Klasikal editor */
.ps-classroom-admin{max-width:820px}
.ps-classroom-admin .ps-cl-section{padding:clamp(16px,4vw,24px);margin:14px 0;display:flex;flex-direction:column;gap:14px}
.ps-classroom-admin .ps-cl-section h2{margin:0;color:#27594c;font-size:1.25rem}
.ps-classroom-admin .ps-cl-section p{line-height:1.5}
.ps-cl-step{display:flex;align-items:center;gap:12px;margin-bottom:2px}
.ps-cl-step>span{width:34px;height:34px;flex:0 0 34px;border-radius:50%;display:grid;place-items:center;background:#e3f3e8;color:#23694f;font-weight:950}
.ps-cl-step>div{min-width:0}
.ps-cl-step p{margin:3px 0 0;color:#668076;font-size:.9rem}
.ps-cl-field{display:flex;flex-direction:column;gap:7px;min-width:0;width:100%}
.ps-classroom-admin .ps-cl-field label{display:block;margin:0;font-weight:850;color:#294e45;font-size:.98rem}
.ps-classroom-admin .ps-cl-field input:not([type=file]),.ps-classroom-admin .ps-cl-field select,.ps-classroom-admin .ps-cl-field textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin:0;border:1.5px solid #d5e4dc;border-radius:13px;background:#fbfefb;padding:13px 14px;font:inherit;font-size:16px;line-height:1.45;color:#203b42}
.ps-classroom-admin .ps-cl-field input:not([type=file]),.ps-classroom-admin .ps-cl-field select{min-height:50px}
.ps-classroom-admin .ps-cl-field textarea{min-height:100px;resize:vertical}
.ps-classroom-admin .ps-cl-field input:focus,.ps-classroom-admin .ps-cl-field select:focus,.ps-classroom-admin .ps-cl-field textarea:focus{outline:3px solid #2e9b8826;border-color:#2e9b88;background:#fff}
.ps-classroom-admin .ps-cl-field input[type=file]{width:100%;max-width:100%;font-size:14px}
.ps-cl-count{padding:13px 15px;border-radius:14px;background:#fff4d9;border:1px solid #f0d99b;color:#72531b;font-weight:750;line-height:1.5}
.ps-cl-count.is-valid{background:#e7f5eb;border-color:#c8e5d0;color:#28634c}
.ps-cl-count.is-warning{background:#fff4d9;border-color:#f0d99b;color:#72531b}
.ps-cl-actions{display:grid;grid-template-columns:1fr;gap:10px}
.ps-cl-guide{padding:13px;border:1px solid #dce9df;border-radius:14px;background:#f8fcf8}
.ps-cl-guide summary{font-weight:850;color:#315e50;cursor:pointer}
.ps-cl-guide p{margin:10px 0 0!important;overflow-wrap:anywhere}
.ps-cl-guide code{white-space:normal;overflow-wrap:anywhere}
.ps-cl-question{padding:13px;border:1px solid #dce9df;border-radius:14px;background:#f8fcf8;margin:9px 0}
.ps-cl-qtop{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ps-cl-question p{margin:8px 0 0!important;overflow-wrap:anywhere;color:#36564d}
.ps-classroom-admin .ps-cl-section .wide{width:100%;min-height:50px}
@media(min-width:620px){.ps-cl-actions{grid-template-columns:1fr 1fr}}


/* v0.17.62 — orientasi landscape khusus Mode Klasikal */
.ps-classroom-landscape-fallback::after{
 content:"Putar perangkat ke posisi mendatar untuk bermain Mode Klasikal";
 position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;
 padding:28px;text-align:center;background:#173d2c;color:#fff;font-size:clamp(1.2rem,4vw,2rem);
 font-weight:850;line-height:1.45
}
@media (orientation:landscape){
 .ps-classroom-landscape-fallback::after{display:none}
}


/* v0.17.63 — Mode Klasikal full-screen, landscape, tanpa gulir halaman saat bermain */
html:has(body.ps-classroom-playing),body.ps-classroom-playing{
 width:100%;height:100%;min-height:100%;overflow:hidden!important;overscroll-behavior:none;
}
body.ps-classroom-playing .shell{
 width:100%;height:100dvh;min-height:100dvh;max-width:none;margin:0;padding:0;
 display:flex;flex-direction:column;overflow:hidden;
}
body.ps-classroom-playing .shell>header,
body.ps-classroom-playing .shell>nav.bottom.bottom-nav-tpa{display:none!important}
body.ps-classroom-playing .shell>#app{
 flex:1 1 auto;width:100%;height:100dvh;min-height:0;overflow:hidden!important;
 padding:0!important;margin:0!important;overscroll-behavior:none;
}
body.ps-classroom-playing .ps-classroom-shell{
 width:100%;height:100%;min-height:0;max-width:none!important;margin:0;
 padding:clamp(7px,1.2vw,16px)!important;display:flex;flex-direction:column;gap:clamp(5px,1vh,12px);
 overflow:hidden;
}
body.ps-classroom-playing .ps-classroom-head{flex:0 0 auto;align-items:center;gap:8px;margin:0;min-height:42px}
body.ps-classroom-playing .ps-classroom-head h1{font-size:clamp(1rem,2.3vw,1.55rem);line-height:1.12;margin:2px 0}
body.ps-classroom-playing .ps-classroom-head p{font-size:clamp(.68rem,1.3vw,.88rem);line-height:1.2}
body.ps-classroom-playing .ps-classroom-head .mission-eyebrow{font-size:.62rem}
body.ps-classroom-playing .ps-class-head-actions{display:flex;gap:6px;flex:0 0 auto}
body.ps-classroom-playing .ps-classroom-head .game-btn{min-height:36px;padding:6px 10px;font-size:.78rem}
body.ps-classroom-playing .ps-class-hud{flex:0 0 auto;margin:0;padding:7px 10px;gap:6px;font-size:clamp(.68rem,1.2vw,.84rem)}
body.ps-classroom-playing .ps-class-howto{flex:0 0 auto;margin:0;padding:6px 10px;font-size:clamp(.62rem,1.1vw,.78rem);line-height:1.25}
body.ps-classroom-playing .ps-class-question{
 flex:1 1 auto;min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:clamp(4px,.8vh,9px);
 padding:clamp(8px,1.4vw,18px);border-radius:16px;
}
body.ps-classroom-playing .ps-class-question h2{flex:0 0 auto;font-size:clamp(1rem,2.3vw,1.7rem);line-height:1.2;margin:2px 0 5px}
body.ps-classroom-playing .ps-class-question>.mission-eyebrow{font-size:.62rem}
body.ps-classroom-playing .ps-class-question #c-feedback{flex:0 1 auto;min-height:0;max-height:18%;overflow:auto;padding:3px 0;font-size:clamp(.72rem,1.3vw,.95rem);line-height:1.25}
body.ps-classroom-playing .ps-class-actions{flex:0 0 auto;display:flex;gap:7px;flex-wrap:nowrap;margin:0}
body.ps-classroom-playing .ps-class-actions button{flex:1 1 0;min-width:0;min-height:38px;padding:6px 8px;font-size:clamp(.68rem,1.25vw,.88rem);line-height:1.1}
body.ps-classroom-playing .ps-class-match,body.ps-classroom-playing .ps-class-cats{
 flex:1 1 auto;min-height:0;overflow:hidden;display:grid;grid-template-columns:1fr 1fr;gap:8px;
}
body.ps-classroom-playing .ps-class-match>div,body.ps-classroom-playing .ps-class-cats>div{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:6px}
body.ps-classroom-playing .ps-class-match button,body.ps-classroom-playing .ps-class-cats button{
 flex:1 1 0;min-height:34px;padding:5px 8px;font-size:clamp(.72rem,1.45vw,1rem);line-height:1.15
}
body.ps-classroom-playing .ps-class-match h3,body.ps-classroom-playing .ps-class-cats h3{font-size:.76rem;margin:0}
body.ps-classroom-playing .ps-class-order,body.ps-classroom-playing .ps-class-blanks{
 flex:1 1 auto;min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;gap:6px
}
body.ps-classroom-playing .ps-class-order label,body.ps-classroom-playing .ps-class-blanks label{min-width:0;padding:6px;font-size:.78rem}
body.ps-classroom-playing .ps-class-order select,body.ps-classroom-playing .ps-class-blanks input{min-height:36px;padding:5px;font-size:.85rem}
@media (orientation:portrait){
 body.ps-classroom-playing .ps-class-howto{display:none}
 body.ps-classroom-playing .ps-class-question{gap:5px}
 body.ps-classroom-playing .ps-class-match,body.ps-classroom-playing .ps-class-cats{grid-template-columns:1fr 1fr}
 body.ps-classroom-playing .ps-class-match button,body.ps-classroom-playing .ps-class-cats button{min-height:clamp(38px,8vh,58px)}
}
@media (max-height:480px){
 body.ps-classroom-playing .ps-class-howto{display:none}
 body.ps-classroom-playing .ps-class-question h2{font-size:1rem;margin:0}
 body.ps-classroom-playing .ps-class-match button,body.ps-classroom-playing .ps-class-cats button{min-height:30px}
}


/* v0.17.64 — Mode Mandiri portrait: seluruh soal terlihat tanpa gulir halaman */
@media (orientation:portrait) and (max-width:700px){
 body.ps-solo-playing{height:100dvh;min-height:100dvh;overflow:hidden!important;overscroll-behavior:none}
 body.ps-solo-playing .shell{height:100dvh;min-height:100dvh;display:flex;flex-direction:column;overflow:hidden}
 body.ps-solo-playing .shell>#app{
  flex:1 1 auto;min-height:0;height:0;overflow:hidden!important;padding:0!important;
  overscroll-behavior:none;-webkit-overflow-scrolling:auto
 }
 body.ps-solo-playing .shell>#app>main.game-shell{
  height:100%;min-height:0;display:flex;flex-direction:column;gap:5px;
  overflow:hidden;padding:6px 9px 7px!important
 }
 body.ps-solo-playing .shell>#app .game-hud{
  flex:0 0 auto;min-height:36px;margin:0 0 3px;gap:6px;flex-wrap:nowrap
 }
 body.ps-solo-playing .shell>#app .game-hud .game-btn{min-height:34px;padding:5px 9px;font-size:.78rem}
 body.ps-solo-playing .shell>#app .game-hud .hud-pill{padding:5px 8px;font-size:.7rem;white-space:nowrap}
 body.ps-solo-playing .shell>#app .adventure-banner{
  flex:0 0 auto;margin:0 0 3px;padding:8px 11px;border-radius:13px;min-height:0
 }
 body.ps-solo-playing .shell>#app .adventure-banner h1{font-size:clamp(1rem,4.2vw,1.35rem);line-height:1.1;margin:0 0 3px}
 body.ps-solo-playing .shell>#app .adventure-banner>p{font-size:.7rem;line-height:1.15;margin:0 0 5px}
 body.ps-solo-playing .shell>#app .banner-progress{gap:6px;font-size:.65rem}
 body.ps-solo-playing .shell>#app .banner-progress .progress-track{height:5px}
 body.ps-solo-playing .shell>#app .challenge-card{
  flex:1 1 auto;min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:6px;
  margin:0;padding:clamp(9px,2.4vw,15px);border-radius:16px
 }
 body.ps-solo-playing .shell>#app .challenge-card .challenge-kicker{flex:0 0 auto;font-size:.65rem;line-height:1.1}
 body.ps-solo-playing .shell>#app .challenge-card h2{
  flex:0 0 auto;font-size:clamp(.98rem,4.2vw,1.28rem);line-height:1.2;
  margin:0 0 2px;overflow-wrap:anywhere
 }
 body.ps-solo-playing .shell>#app .challenge-card .tka-speak-prompt{
  flex:0 0 auto;min-height:32px;width:max-content;max-width:100%;padding:5px 9px;font-size:.72rem
 }
 body.ps-solo-playing .shell>#app .challenge-card .answer-list{
  flex:1 1 auto;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-rows:minmax(0,1fr);align-content:center;gap:7px;overflow:hidden
 }
 body.ps-solo-playing .shell>#app .challenge-card .answer-option{
  min-width:0;min-height:0;height:100%;padding:7px 8px;gap:6px;border-radius:12px;
  font-size:clamp(.76rem,3.1vw,.94rem);line-height:1.15;overflow-wrap:anywhere
 }
 body.ps-solo-playing .shell>#app .challenge-card .answer-letter{
  flex:0 0 25px;width:25px;height:25px;border-radius:8px;font-size:.78rem
 }
 body.ps-solo-playing .shell>#app .challenge-card .answer-feedback{
  flex:0 0 auto;min-height:0;max-height:15%;overflow:auto;margin:0;padding:3px 0;
  font-size:clamp(.7rem,2.8vw,.86rem);line-height:1.2
 }
 body.ps-solo-playing .shell>#app .challenge-card #dynamic-next,
 body.ps-solo-playing .shell>#app .challenge-card #continue{
  flex:0 0 auto;min-height:40px;margin:0;padding:7px 12px;font-size:.86rem
 }
}
@media (orientation:portrait) and (max-width:380px){
 body.ps-solo-playing .shell>#app .adventure-banner>p{display:none}
 body.ps-solo-playing .shell>#app .challenge-card{gap:4px;padding:8px}
 body.ps-solo-playing .shell>#app .challenge-card h2{font-size:1rem}
 body.ps-solo-playing .shell>#app .challenge-card .answer-option{font-size:.76rem;padding:6px}
}


/* v0.17.65 — Mode Mandiri portrait: fit seluruh layar, termasuk soal Kelompokkan */
@media (orientation:portrait) and (max-width:700px){
 body.ps-solo-playing{height:100dvh!important;min-height:100dvh!important;overflow:hidden!important;overscroll-behavior:none}
 body.ps-solo-playing .shell{
  height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important
 }
 body.ps-solo-playing .shell>header,
 body.ps-solo-playing .shell>nav.bottom-nav-tpa{display:none!important}
 body.ps-solo-playing .shell>#app{
  flex:1 1 auto!important;height:0!important;min-height:0!important;max-height:100dvh!important;
  overflow:hidden!important;padding:0!important;margin:0!important;overscroll-behavior:none!important
 }
 body.ps-solo-playing .shell>#app>main.game-shell{
  box-sizing:border-box;height:100%!important;min-height:0!important;max-height:100%!important;
  display:flex!important;flex-direction:column!important;gap:5px!important;
  overflow:hidden!important;padding:7px 9px!important
 }
 body.ps-solo-playing .game-hud{
  flex:0 0 34px!important;min-height:34px!important;margin:0!important;padding:0!important;
  gap:5px!important;flex-wrap:nowrap!important
 }
 body.ps-solo-playing .game-hud .game-btn{min-height:32px!important;padding:4px 8px!important;font-size:.75rem!important}
 body.ps-solo-playing .game-hud .hud-pill{padding:4px 7px!important;font-size:.68rem!important;white-space:nowrap}
 body.ps-solo-playing .adventure-banner{
  flex:0 0 auto!important;min-height:0!important;margin:0!important;padding:8px 11px!important;border-radius:14px!important
 }
 body.ps-solo-playing .adventure-banner h1{font-size:1.15rem!important;line-height:1.12!important;margin:0 0 3px!important}
 body.ps-solo-playing .adventure-banner>p{font-size:.68rem!important;line-height:1.15!important;margin:0 0 4px!important}
 body.ps-solo-playing .banner-progress{gap:5px!important;font-size:.65rem!important}
 body.ps-solo-playing .banner-progress .progress-track{height:5px!important}
 body.ps-solo-playing .challenge-card{
  box-sizing:border-box;flex:1 1 0!important;min-height:0!important;max-height:none!important;
  overflow:hidden!important;display:flex!important;flex-direction:column!important;gap:5px!important;
  margin:0!important;padding:9px!important;border-radius:15px!important
 }
 body.ps-solo-playing .challenge-card .challenge-kicker{flex:0 0 auto;font-size:.62rem!important;line-height:1.1}
 body.ps-solo-playing .challenge-card h2{
  flex:0 0 auto;font-size:1.02rem!important;line-height:1.18!important;margin:0 0 2px!important;
  overflow-wrap:anywhere
 }
 body.ps-solo-playing .challenge-card .tka-speak-prompt{
  flex:0 0 auto;min-height:30px!important;width:max-content;max-width:100%;
  padding:4px 8px!important;font-size:.7rem!important
 }
 body.ps-solo-playing .challenge-card .answer-list{
  flex:1 1 0!important;min-height:0!important;max-height:100%!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:minmax(0,1fr)!important;align-content:stretch!important;gap:6px!important;
  overflow:hidden!important
 }
 body.ps-solo-playing .challenge-card .answer-option{
  box-sizing:border-box;min-width:0!important;min-height:0!important;height:100%!important;
  padding:6px!important;gap:5px!important;border-radius:11px!important;
  font-size:.76rem!important;line-height:1.12!important;overflow-wrap:anywhere
 }
 body.ps-solo-playing .challenge-card .answer-letter{
  flex:0 0 23px!important;width:23px!important;height:23px!important;border-radius:7px!important;font-size:.72rem!important
 }
 body.ps-solo-playing .challenge-card .answer-feedback{
  flex:0 0 auto;min-height:0!important;max-height:12%!important;overflow:hidden!important;
  margin:0!important;padding:2px 0!important;font-size:.7rem!important;line-height:1.15!important
 }
 body.ps-solo-playing .challenge-card #dynamic-next,
 body.ps-solo-playing .challenge-card #continue{
  flex:0 0 38px!important;min-height:38px!important;height:38px!important;
  margin:0!important;padding:5px 10px!important;font-size:.82rem!important
 }
 /* Kartu soal model Kelompokkan: item dan kategori tetap di dalam kartu. */
 body.ps-solo-playing .challenge-card .match-board,
 body.ps-solo-playing .challenge-card .category-board{
  flex:1 1 0!important;min-height:0!important;max-height:100%!important;
  overflow:hidden!important;display:flex!important;flex-direction:column!important;
  gap:5px!important;padding:6px!important;margin:0!important
 }
 body.ps-solo-playing .challenge-card .match-board-head,
 body.ps-solo-playing .challenge-card .match-board-body{
  flex:1 1 0!important;min-height:0!important;display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important
 }
 body.ps-solo-playing .challenge-card .match-column{
  min-height:0!important;overflow:hidden!important;display:grid!important;
  grid-auto-rows:minmax(0,1fr)!important;gap:5px!important
 }
 body.ps-solo-playing .challenge-card .match-tile,
 body.ps-solo-playing .challenge-card .category-board .match-tile{
  min-height:0!important;height:100%!important;padding:5px!important;
  font-size:.72rem!important;line-height:1.1!important;overflow-wrap:anywhere
 }
 body.ps-solo-playing .challenge-card .match-tile-main{font-size:.78rem!important;line-height:1.1!important}
 body.ps-solo-playing .challenge-card .match-tile small{font-size:.62rem!important;line-height:1.05!important}
 body.ps-solo-playing .challenge-card .match-board-head,
 body.ps-solo-playing .challenge-card .match-board-labels{font-size:.62rem!important;line-height:1.05!important}
 body.ps-solo-playing .challenge-card .match-instruction,
 body.ps-solo-playing .challenge-card .category-progress{
  flex:0 0 auto!important;margin:0!important;padding:2px!important;font-size:.65rem!important;line-height:1.1!important
 }
}
@media (orientation:portrait) and (max-width:380px){
 body.ps-solo-playing .adventure-banner>p{display:none!important}
 body.ps-solo-playing .challenge-card{padding:7px!important;gap:4px!important}
 body.ps-solo-playing .challenge-card h2{font-size:.96rem!important}
 body.ps-solo-playing .challenge-card .match-tile{font-size:.68rem!important}
}


/* v0.17.66 — layout fit Mode Mandiri portrait + fallback landscape Mode Klasikal */
@media (orientation:portrait) and (max-width:760px){
 body.ps-solo-playing{height:100dvh!important;min-height:100dvh!important;overflow:hidden!important;overscroll-behavior:none!important}
 body.ps-solo-playing .shell{
  height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important
 }
 body.ps-solo-playing .shell>header,
 body.ps-solo-playing .shell>nav.bottom-nav-tpa{display:none!important}
 body.ps-solo-playing .shell>#app{
  flex:1 1 auto!important;height:0!important;min-height:0!important;max-height:100dvh!important;
  overflow:hidden!important;padding:0!important;margin:0!important
 }
 body.ps-solo-playing .shell>#app>main.game-shell{
  box-sizing:border-box;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
  display:flex!important;flex-direction:column!important;gap:5px!important;overflow:hidden!important;padding:7px 9px!important
 }
 body.ps-solo-playing .game-hud{flex:0 0 34px!important;min-height:34px!important;margin:0!important;padding:0!important;gap:5px!important}
 body.ps-solo-playing .game-hud .game-btn{min-height:32px!important;padding:4px 8px!important;font-size:.75rem!important}
 body.ps-solo-playing .game-hud .hud-pill{padding:4px 7px!important;font-size:.68rem!important;white-space:nowrap}
 body.ps-solo-playing .adventure-banner{flex:0 0 auto!important;min-height:0!important;margin:0!important;padding:8px 11px!important;border-radius:14px!important}
 body.ps-solo-playing .adventure-banner h1{font-size:1.12rem!important;line-height:1.1!important;margin:0 0 3px!important}
 body.ps-solo-playing .adventure-banner>p{font-size:.66rem!important;line-height:1.12!important;margin:0 0 4px!important}
 body.ps-solo-playing .banner-progress{gap:5px!important;font-size:.64rem!important}
 body.ps-solo-playing .banner-progress .progress-track{height:5px!important}
 body.ps-solo-playing .challenge-card{
  box-sizing:border-box;flex:1 1 0!important;min-height:0!important;max-height:none!important;
  overflow:hidden!important;display:flex!important;flex-direction:column!important;gap:5px!important;
  margin:0!important;padding:8px!important;border-radius:14px!important
 }
 body.ps-solo-playing .challenge-card .challenge-kicker{flex:0 0 auto;font-size:.61rem!important;line-height:1.05!important}
 body.ps-solo-playing .challenge-card h2{flex:0 0 auto;font-size:1rem!important;line-height:1.15!important;margin:0 0 2px!important}
 body.ps-solo-playing .challenge-card .tka-speak-prompt,
 body.ps-solo-playing .challenge-card button[aria-label*="Dengarkan"]{
  flex:0 0 auto;min-height:32px!important;padding:4px 8px!important;font-size:.72rem!important;margin:0!important
 }
 body.ps-solo-playing .challenge-card .match-board{
  box-sizing:border-box;flex:1 1 0!important;min-height:0!important;max-height:100%!important;
  overflow:hidden!important;display:flex!important;flex-direction:column!important;gap:4px!important;
  margin:0!important;padding:6px!important;border-radius:12px!important
 }
 body.ps-solo-playing .challenge-card .match-board-head{
  flex:0 0 22px!important;min-height:22px!important;display:grid!important;
  grid-template-columns:1fr 1fr!important;gap:5px!important;font-size:.59rem!important;line-height:1!important
 }
 body.ps-solo-playing .challenge-card .match-board-body{
  flex:1 1 0!important;min-height:0!important;display:grid!important;
  grid-template-columns:1fr 1fr!important;gap:6px!important;overflow:hidden!important
 }
 body.ps-solo-playing .challenge-card .match-column{
  min-height:0!important;overflow:hidden!important;display:grid!important;
  grid-auto-rows:minmax(0,1fr)!important;gap:5px!important
 }
 body.ps-solo-playing .challenge-card .match-tile{
  box-sizing:border-box;min-height:0!important;height:100%!important;padding:5px!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  gap:3px!important;font-size:.7rem!important;line-height:1.08!important;overflow-wrap:anywhere
 }
 body.ps-solo-playing .challenge-card .match-tile-main{font-size:.76rem!important;line-height:1.08!important}
 body.ps-solo-playing .challenge-card .match-tile small{font-size:.58rem!important;line-height:1.05!important}
 body.ps-solo-playing .challenge-card .match-instruction,
 body.ps-solo-playing .challenge-card .category-progress{flex:0 0 auto!important;margin:0!important;padding:2px!important;font-size:.62rem!important;line-height:1.05!important}
 body.ps-solo-playing .challenge-card .answer-list{
  flex:1 1 0!important;min-height:0!important;display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:minmax(0,1fr)!important;
  gap:6px!important;overflow:hidden!important
 }
 body.ps-solo-playing .challenge-card .answer-option{
  min-width:0!important;min-height:0!important;height:100%!important;padding:6px!important;
  font-size:.74rem!important;line-height:1.1!important;overflow-wrap:anywhere
 }
 body.ps-solo-playing .challenge-card .answer-feedback{
  flex:0 0 auto;max-height:11%!important;overflow:hidden!important;margin:0!important;padding:2px 0!important;
  font-size:.68rem!important;line-height:1.1!important
 }
 body.ps-solo-playing .challenge-card #dynamic-next,
 body.ps-solo-playing .challenge-card #continue{
  flex:0 0 36px!important;min-height:36px!important;height:36px!important;
  margin:0!important;padding:4px 9px!important;font-size:.8rem!important
 }
}
@media (orientation:portrait) and (max-width:380px){
 body.ps-solo-playing .adventure-banner>p{display:none!important}
 body.ps-solo-playing .challenge-card{gap:4px!important;padding:6px!important}
 body.ps-solo-playing .challenge-card h2{font-size:.94rem!important}
 body.ps-solo-playing .challenge-card .match-tile-main{font-size:.7rem!important}
}

/* Fallback visual rotation when Android browser refuses Screen Orientation lock. */
@media (orientation:portrait) and (max-width:900px){
 body.ps-classroom-force-landscape{overflow:hidden!important}
 body.ps-classroom-force-landscape .shell{
  position:fixed!important;top:0!important;left:100vw!important;
  width:100dvh!important;height:100vw!important;min-height:0!important;max-width:none!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
  transform:rotate(90deg)!important;transform-origin:top left!important;
  z-index:99990!important
 }
 body.ps-classroom-force-landscape .shell>#app{
  width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
  overflow:hidden!important;padding:0!important;margin:0!important
 }
 body.ps-classroom-force-landscape .ps-classroom-shell{
  width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;
  margin:0!important;padding:8px!important;overflow:hidden!important
 }
 body.ps-classroom-force-landscape.ps-classroom-playing .ps-classroom-shell{
  display:flex!important;flex-direction:column!important;gap:5px!important
 }
}


/* v0.17.67 — FIX: DOM aplikasi memakai header, #app, nav langsung di body (tanpa .shell) */
@media (orientation:portrait) and (max-width:760px){
 html:has(body.ps-solo-playing), body.ps-solo-playing{
  width:100%!important;height:100%!important;min-height:100%!important;max-height:100%!important;
  overflow:hidden!important;overscroll-behavior:none!important
 }
 body.ps-solo-playing>header,
 body.ps-solo-playing>nav.bottom.bottom-nav-tpa{display:none!important}
 body.ps-solo-playing>#app{
  position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;
  min-height:0!important;max-height:100dvh!important;margin:0!important;padding:0!important;
  overflow:hidden!important;overscroll-behavior:none!important
 }
 body.ps-solo-playing>#app>main.game-shell{
  position:absolute!important;inset:0!important;box-sizing:border-box!important;
  width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
  margin:0!important;padding:7px 9px!important;overflow:hidden!important;
  display:flex!important;flex-direction:column!important;gap:5px!important
 }
 body.ps-solo-playing .game-hud{
  flex:0 0 34px!important;height:34px!important;min-height:34px!important;
  margin:0!important;padding:0!important;gap:5px!important;flex-wrap:nowrap!important
 }
 body.ps-solo-playing .game-hud .game-btn{min-height:32px!important;padding:4px 8px!important;font-size:.75rem!important}
 body.ps-solo-playing .game-hud .hud-pill{padding:4px 7px!important;font-size:.68rem!important;white-space:nowrap}
 body.ps-solo-playing .adventure-banner{
  flex:0 0 auto!important;min-height:0!important;margin:0!important;padding:7px 10px!important;
  border-radius:13px!important;box-shadow:0 4px 0 #a6cdb0!important
 }
 body.ps-solo-playing .adventure-banner h1{font-size:1.05rem!important;line-height:1.08!important;margin:0 0 2px!important}
 body.ps-solo-playing .adventure-banner>p{font-size:.62rem!important;line-height:1.1!important;margin:0 0 3px!important}
 body.ps-solo-playing .banner-progress{gap:4px!important;font-size:.6rem!important}
 body.ps-solo-playing .banner-progress .progress-track{height:4px!important}
 body.ps-solo-playing .challenge-card{
  box-sizing:border-box!important;flex:1 1 0!important;min-height:0!important;max-height:none!important;
  width:100%!important;margin:0!important;padding:7px!important;border-radius:14px!important;
  overflow:hidden!important;display:flex!important;flex-direction:column!important;gap:4px!important
 }
 body.ps-solo-playing .challenge-kicker{flex:0 0 auto!important;font-size:.58rem!important;line-height:1!important}
 body.ps-solo-playing .challenge-card h2{
  flex:0 0 auto!important;font-size:.94rem!important;line-height:1.12!important;
  margin:0 0 1px!important
 }
 body.ps-solo-playing .challenge-card .tka-speak-prompt{
  flex:0 0 32px!important;min-height:32px!important;height:32px!important;
  margin:0!important;padding:3px 8px!important;font-size:.68rem!important
 }
 body.ps-solo-playing .challenge-card .match-board{
  flex:1 1 0!important;min-height:0!important;max-height:none!important;
  box-sizing:border-box!important;margin:0!important;padding:5px!important;
  display:flex!important;flex-direction:column!important;gap:3px!important;
  overflow:hidden!important;border-radius:11px!important
 }
 body.ps-solo-playing .challenge-card .match-board-head{
  flex:0 0 18px!important;height:18px!important;min-height:18px!important;
  margin:0!important;display:grid!important;grid-template-columns:1fr 1fr!important;
  gap:4px!important;font-size:.53rem!important;line-height:1!important
 }
 body.ps-solo-playing .challenge-card .match-board-body{
  flex:1 1 0!important;min-height:0!important;overflow:hidden!important;
  display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important
 }
 body.ps-solo-playing .challenge-card .match-column{
  min-height:0!important;overflow:hidden!important;display:grid!important;
  grid-auto-rows:minmax(0,1fr)!important;align-content:stretch!important;gap:4px!important
 }
 body.ps-solo-playing .challenge-card .match-tile{
  box-sizing:border-box!important;min-height:0!important;height:100%!important;
  padding:3px!important;gap:2px!important;border-radius:9px!important;
  justify-content:center!important;font-size:.65rem!important;line-height:1.04!important;
  overflow-wrap:anywhere!important
 }
 body.ps-solo-playing .challenge-card .match-tile-main{
  font-size:.72rem!important;line-height:1.05!important
 }
 body.ps-solo-playing .challenge-card .match-tile small{
  font-size:.54rem!important;line-height:1.02!important
 }
 body.ps-solo-playing .challenge-card .match-instruction,
 body.ps-solo-playing .challenge-card .category-progress{
  flex:0 0 auto!important;margin:0!important;padding:3px 5px!important;
  font-size:.58rem!important;line-height:1.05!important
 }
 body.ps-solo-playing .challenge-card .answer-list{
  flex:1 1 0!important;min-height:0!important;overflow:hidden!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:minmax(0,1fr)!important;gap:5px!important
 }
 body.ps-solo-playing .challenge-card .answer-option{
  min-width:0!important;min-height:0!important;height:100%!important;
  padding:5px!important;font-size:.7rem!important;line-height:1.06!important
 }
 body.ps-solo-playing .challenge-card .answer-feedback{
  flex:0 0 auto!important;max-height:9%!important;overflow:hidden!important;
  margin:0!important;padding:2px!important;font-size:.62rem!important;line-height:1.05!important
 }
 body.ps-solo-playing .challenge-card #dynamic-next,
 body.ps-solo-playing .challenge-card #continue{
  flex:0 0 34px!important;height:34px!important;min-height:34px!important;
  margin:0!important;padding:4px 8px!important;font-size:.76rem!important
 }
}
@media (orientation:portrait) and (max-width:380px){
 body.ps-solo-playing .adventure-banner>p{display:none!important}
 body.ps-solo-playing .challenge-card{padding:5px!important;gap:3px!important}
 body.ps-solo-playing .challenge-card h2{font-size:.88rem!important}
 body.ps-solo-playing .challenge-card .match-tile-main{font-size:.66rem!important}
 body.ps-solo-playing .challenge-card .match-tile small{font-size:.5rem!important}
}


/* v0.17.68 — Mode Mandiri portrait: satu viewport, tombol lanjut selalu di bawah */
@media screen and (orientation: portrait) and (max-width: 760px) {
  html,
  body {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.ps-solo-playing > header,
  body.ps-solo-playing > nav.bottom-nav-tpa {
    display: none !important;
  }

  body.ps-solo-playing > #app {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  body.ps-solo-playing #app > .game-shell {
    position: absolute !important;
    inset: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 7px 9px !important;
    overflow: hidden !important;
  }

  body.ps-solo-playing .game-hud {
    flex: 0 0 34px !important;
    min-height: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 5px !important;
  }

  body.ps-solo-playing .game-hud .game-btn {
    min-height: 32px !important;
    padding: 4px 9px !important;
    font-size: .75rem !important;
  }

  body.ps-solo-playing .game-hud .hud-pill {
    padding: 4px 7px !important;
    font-size: .68rem !important;
    white-space: nowrap;
  }

  body.ps-solo-playing .adventure-banner {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px 11px !important;
    border-radius: 14px !important;
  }

  body.ps-solo-playing .adventure-banner h1 {
    margin: 0 0 3px !important;
    font-size: 1.05rem !important;
    line-height: 1.1 !important;
  }

  body.ps-solo-playing .adventure-banner > p {
    margin: 0 0 4px !important;
    font-size: .64rem !important;
    line-height: 1.15 !important;
  }

  body.ps-solo-playing .banner-progress {
    gap: 5px !important;
    font-size: .65rem !important;
  }

  body.ps-solo-playing .banner-progress .progress-track {
    height: 5px !important;
  }

  body.ps-solo-playing .challenge-card {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px !important;
    gap: 5px !important;
    overflow: hidden !important;
  }

  body.ps-solo-playing .challenge-card .challenge-kicker {
    flex: 0 0 auto !important;
    font-size: .6rem !important;
    line-height: 1.1 !important;
  }

  body.ps-solo-playing .challenge-card h2 {
    flex: 0 0 auto !important;
    margin: 0 0 2px !important;
    font-size: .95rem !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
  }

  body.ps-solo-playing .challenge-card .tka-speak-prompt {
    flex: 0 0 auto !important;
    min-height: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    font-size: .7rem !important;
  }

  body.ps-solo-playing .challenge-card .match-board {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 5px !important;
    gap: 4px !important;
    overflow: hidden !important;
  }

  body.ps-solo-playing .challenge-card .match-board-head {
    flex: 0 0 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;
    font-size: .55rem !important;
    line-height: 1.05 !important;
  }

  body.ps-solo-playing .challenge-card .match-board-body {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    gap: 5px !important;
    overflow: hidden !important;
  }

  body.ps-solo-playing .challenge-card .match-column {
    display: grid !important;
    grid-auto-rows: minmax(0, 1fr) !important;
    align-content: stretch !important;
    min-height: 0 !important;
    gap: 5px !important;
    overflow: hidden !important;
  }

  body.ps-solo-playing .challenge-card .match-tile {
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 4px !important;
    gap: 3px !important;
    font-size: .68rem !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere !important;
  }

  body.ps-solo-playing .challenge-card .match-tile-main {
    font-size: .74rem !important;
    line-height: 1.1 !important;
  }

  body.ps-solo-playing .challenge-card .match-tile small {
    font-size: .55rem !important;
    line-height: 1.05 !important;
  }

  body.ps-solo-playing .challenge-card .match-instruction,
  body.ps-solo-playing .challenge-card .category-progress {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 3px 5px !important;
    font-size: .61rem !important;
    line-height: 1.1 !important;
  }

  body.ps-solo-playing .challenge-card .answer-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(0, 1fr) !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    gap: 5px !important;
    overflow: hidden !important;
  }

  body.ps-solo-playing .challenge-card .answer-option {
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 5px !important;
    font-size: .72rem !important;
    line-height: 1.1 !important;
  }

  body.ps-solo-playing .challenge-card #continue,
  body.ps-solo-playing .challenge-card #dynamic-next {
    position: relative !important;
    flex: 0 0 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    width: 100% !important;
    margin: auto 0 0 !important;
    padding: 5px 10px !important;
    font-size: .85rem !important;
  }

  body.ps-solo-playing .challenge-card .answer-feedback {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    max-height: 10% !important;
    margin: 0 !important;
    padding: 2px !important;
    overflow: hidden !important;
    font-size: .65rem !important;
    line-height: 1.1 !important;
  }
}

@media screen and (orientation: portrait) and (max-width: 380px) {
  body.ps-solo-playing .adventure-banner > p {
    display: none !important;
  }

  body.ps-solo-playing .challenge-card {
    padding: 6px !important;
    gap: 4px !important;
  }

  body.ps-solo-playing .challenge-card h2 {
    font-size: .88rem !important;
  }
}


/* v0.17.69 — FINAL AUDIT FIX: actual six-model Mode Mandiri renderer */
@media screen and (orientation: portrait) and (max-width: 760px) {
  html:has(body.ps-solo-playing),
  body.ps-solo-playing {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  /* The app DOM is body > header, body > #app, body > nav */
  body.ps-solo-playing > header,
  body.ps-solo-playing > nav.bottom.bottom-nav-tpa {
    display: none !important;
  }

  body.ps-solo-playing > #app {
    position: fixed !important;
    inset: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  body.ps-solo-playing > #app > main.game-shell {
    position: absolute !important;
    inset: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 7px 9px !important;
    overflow: hidden !important;
  }

  body.ps-solo-playing > #app > main.game-shell > .game-hud {
    flex: 0 0 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 5px !important;
    flex-wrap: nowrap !important;
  }

  body.ps-solo-playing .game-hud .game-btn {
    min-height: 32px !important;
    padding: 4px 9px !important;
    font-size: .75rem !important;
  }

  body.ps-solo-playing .game-hud .hud-pill {
    padding: 4px 7px !important;
    font-size: .68rem !important;
    white-space: nowrap !important;
  }

  body.ps-solo-playing > #app > main.game-shell > .adventure-banner {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    border-radius: 13px !important;
    box-shadow: 0 4px 0 #a6cdb0 !important;
  }

  body.ps-solo-playing .adventure-banner h1 {
    margin: 0 0 2px !important;
    font-size: clamp(.95rem, 4vw, 1.12rem) !important;
    line-height: 1.08 !important;
  }

  body.ps-solo-playing .adventure-banner > p {
    margin: 0 0 3px !important;
    font-size: .62rem !important;
    line-height: 1.12 !important;
  }

  body.ps-solo-playing .banner-progress {
    display: flex !important;
    gap: 5px !important;
    margin-top: 5px !important;
    font-size: .62rem !important;
  }

  body.ps-solo-playing .banner-progress .progress-track {
    height: 5px !important;
  }

  body.ps-solo-playing > #app > main.game-shell > .challenge-card {
    box-sizing: border-box !important;
    display: flex !important;
    flex: 1 1 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 7px !important;
    gap: 4px !important;
    overflow: hidden !important;
  }

  body.ps-solo-playing .challenge-card > .challenge-kicker {
    flex: 0 0 auto !important;
    margin: 0 !important;
    font-size: .58rem !important;
    line-height: 1.05 !important;
  }

  body.ps-solo-playing .challenge-card > h2 {
    flex: 0 0 auto !important;
    margin: 0 0 1px !important;
    font-size: .94rem !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere !important;
  }

  body.ps-solo-playing .challenge-card > .tka-speak-prompt {
    flex: 0 0 32px !important;
    width: max-content !important;
    max-width: 100% !important;
    min-height: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 3px 8px !important;
    font-size: .68rem !important;
  }

  /* All question models share the remaining flexible space. */
  body.ps-solo-playing .challenge-card > .match-board,
  body.ps-solo-playing .challenge-card > .answer-list {
    box-sizing: border-box !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  /* Matching and categorization board */
  body.ps-solo-playing .challenge-card > .match-board {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    padding: 5px !important;
    border-radius: 12px !important;
  }

  body.ps-solo-playing .challenge-card .match-board-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    flex: 0 0 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    gap: 4px !important;
    font-size: .53rem !important;
    line-height: 1 !important;
  }

  body.ps-solo-playing .challenge-card .match-board-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    gap: 5px !important;
    overflow: hidden !important;
  }

  body.ps-solo-playing .challenge-card .match-column {
    display: grid !important;
    grid-auto-rows: minmax(0, 1fr) !important;
    align-content: stretch !important;
    min-width: 0 !important;
    min-height: 0 !important;
    gap: 4px !important;
    overflow: hidden !important;
  }

  body.ps-solo-playing .challenge-card .match-tile {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 3px !important;
    gap: 2px !important;
    border-radius: 9px !important;
    font-size: .66rem !important;
    line-height: 1.04 !important;
    overflow-wrap: anywhere !important;
  }

  body.ps-solo-playing .challenge-card .match-tile-main {
    font-size: .72rem !important;
    line-height: 1.06 !important;
  }

  body.ps-solo-playing .challenge-card .match-tile small {
    font-size: .53rem !important;
    line-height: 1.02 !important;
  }

  body.ps-solo-playing .challenge-card .match-instruction,
  body.ps-solo-playing .challenge-card .category-progress {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 3px 5px !important;
    font-size: .58rem !important;
    line-height: 1.05 !important;
  }

  /* Multiple choice and true/false */
  body.ps-solo-playing .challenge-card > .answer-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(0, 1fr) !important;
    gap: 5px !important;
  }

  body.ps-solo-playing .challenge-card .answer-option {
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 5px !important;
    font-size: .7rem !important;
    line-height: 1.06 !important;
    overflow-wrap: anywhere !important;
  }

  /* Ordering / fill-blank controls */
  body.ps-solo-playing .challenge-card .match-row,
  body.ps-solo-playing .challenge-card .fill-blank-field {
    min-width: 0 !important;
    padding: 5px !important;
    gap: 4px !important;
    font-size: .68rem !important;
  }

  body.ps-solo-playing .challenge-card select,
  body.ps-solo-playing .challenge-card input {
    min-width: 0 !important;
    min-height: 32px !important;
    padding: 4px !important;
    font-size: .72rem !important;
  }

  body.ps-solo-playing .challenge-card #check-complex {
    flex: 0 0 36px !important;
    min-height: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 4px 8px !important;
  }

  /* Feedback and next button stay at the bottom of the card. */
  body.ps-solo-playing .challenge-card > .answer-feedback {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    max-height: 8% !important;
    margin: 0 !important;
    padding: 2px !important;
    overflow: hidden !important;
    font-size: .62rem !important;
    line-height: 1.05 !important;
  }

  body.ps-solo-playing .challenge-card > #dynamic-next {
    position: static !important;
    flex: 0 0 38px !important;
    width: 100% !important;
    min-height: 38px !important;
    height: 38px !important;
    margin: auto 0 0 !important;
    padding: 4px 8px !important;
    font-size: .8rem !important;
  }
}

@media screen and (orientation: portrait) and (max-width: 380px) {
  body.ps-solo-playing .adventure-banner > p {
    display: none !important;
  }

  body.ps-solo-playing .challenge-card {
    padding: 5px !important;
    gap: 3px !important;
  }

  body.ps-solo-playing .challenge-card > h2 {
    font-size: .88rem !important;
  }

  body.ps-solo-playing .challenge-card .match-tile-main {
    font-size: .66rem !important;
  }
}


/* ==========================================================
   v0.17.72 — MODE KLASIKAL RESPONSIVE MOBILE / TABLET / DESKTOP
   Tidak mengunci orientasi. Tidak memaksa fullscreen.
   ========================================================== */

/* Shared game viewport */
body.ps-classroom-playing {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
body.ps-classroom-playing > header,
body.ps-classroom-playing > nav.bottom-nav-tpa {
  display: none !important;
}
body.ps-classroom-playing > #app {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
body.ps-classroom-playing > #app > main.ps-classroom-shell {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  align-content: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: clamp(8px, 1.5vw, 18px) !important;
  overflow: hidden !important;
}
body.ps-classroom-playing .ps-classroom-head {
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
}
body.ps-classroom-playing .ps-classroom-head h1 {
  margin: 2px 0 !important;
  font-size: clamp(1rem, 2vw, 1.7rem) !important;
  line-height: 1.15 !important;
}
body.ps-classroom-playing .ps-classroom-head p {
  font-size: .78rem;
  line-height: 1.2;
}
body.ps-classroom-playing .ps-class-head-actions {
  flex: 0 0 auto;
}
body.ps-classroom-playing .ps-class-head-actions button {
  min-height: 36px;
  padding: 6px 11px;
}
body.ps-classroom-playing .ps-class-hud {
  display: flex;
  align-items: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  margin: 0 !important;
  padding: 7px 10px !important;
  font-size: clamp(.68rem, 1vw, .88rem);
}
body.ps-classroom-playing .ps-classroom-head .mission-eyebrow,
body.ps-classroom-playing .ps-class-question > .mission-eyebrow {
  font-size: .62rem;
  letter-spacing: .06em;
}
body.ps-classroom-playing .ps-class-howto {
  display: none !important;
}
body.ps-classroom-playing .ps-class-question {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  align-content: stretch;
  min-width: 0;
  min-height: 0;
  margin: 0 !important;
  padding: clamp(9px, 1.5vw, 18px) !important;
  gap: 6px;
  overflow: hidden !important;
}
body.ps-classroom-playing .ps-class-question h2 {
  min-width: 0;
  margin: 0 !important;
  font-size: clamp(1rem, 2.2vw, 1.65rem) !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere;
}
body.ps-classroom-playing .ps-class-question #c-feedback {
  min-height: 0 !important;
  max-height: 22%;
  padding: 2px 0 !important;
  overflow: auto;
  font-size: .82rem;
  line-height: 1.25;
}
body.ps-classroom-playing .ps-class-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 !important;
}
body.ps-classroom-playing .ps-class-actions button {
  min-height: 38px;
  padding: 6px 12px;
  font-size: .82rem;
}
body.ps-classroom-playing .ps-class-answers,
body.ps-classroom-playing .ps-class-match,
body.ps-classroom-playing .ps-class-cats,
body.ps-classroom-playing .ps-class-order,
body.ps-classroom-playing .ps-class-blanks {
  min-width: 0;
  min-height: 0;
  margin: 0 !important;
  gap: 6px !important;
  overflow: auto;
  overscroll-behavior: contain;
}
body.ps-classroom-playing .ps-class-answers button,
body.ps-classroom-playing .ps-class-match button,
body.ps-classroom-playing .ps-class-cats button {
  min-height: 42px;
  padding: 8px 10px;
  font-size: clamp(.76rem, 1vw, .95rem);
}
body.ps-classroom-playing .ps-class-match,
body.ps-classroom-playing .ps-class-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: stretch;
}
body.ps-classroom-playing .ps-class-match > div,
body.ps-classroom-playing .ps-class-cats > div {
  min-width: 0;
  min-height: 0;
  align-content: start;
  gap: 5px;
}
body.ps-classroom-playing .ps-class-match h3,
body.ps-classroom-playing .ps-class-cats h3 {
  font-size: .85rem;
  margin: 0;
}
body.ps-classroom-playing .ps-class-order label {
  min-width: 0;
  padding: 7px;
  gap: 7px;
  font-size: .84rem;
}
body.ps-classroom-playing .ps-class-order select,
body.ps-classroom-playing .ps-class-blanks input {
  min-height: 38px;
  font-size: .85rem;
}
body.ps-classroom-playing .ps-class-blanks label {
  gap: 4px;
  font-size: .85rem;
}

/* Tablet and desktop: question prompt on left, interaction on right. */
@media (min-width: 768px) {
  body.ps-classroom-playing > #app > main.ps-classroom-shell {
    padding: 14px 20px !important;
    gap: 10px !important;
  }
  body.ps-classroom-playing .ps-classroom-head {
    align-items: center;
  }
  body.ps-classroom-playing .ps-class-hud {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  body.ps-classroom-playing .ps-class-question {
    grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "type prompt"
      "type control"
      "feedback actions";
    gap: 10px 18px;
    padding: 16px 20px !important;
  }
  body.ps-classroom-playing .ps-class-question > .mission-eyebrow {
    grid-area: type;
    align-self: end;
  }
  body.ps-classroom-playing .ps-class-question > h2 {
    grid-area: prompt;
    align-self: end;
    font-size: clamp(1.2rem, 2vw, 2rem) !important;
  }
  body.ps-classroom-playing .ps-class-question > .ps-class-answers,
  body.ps-classroom-playing .ps-class-question > .ps-class-match,
  body.ps-classroom-playing .ps-class-question > .ps-class-cats,
  body.ps-classroom-playing .ps-class-question > .ps-class-order,
  body.ps-classroom-playing .ps-class-question > .ps-class-blanks,
  body.ps-classroom-playing .ps-class-question > #c-match-status,
  body.ps-classroom-playing .ps-class-question > #c-cat-status {
    grid-area: control;
    align-self: stretch;
  }
  body.ps-classroom-playing .ps-class-question > #c-feedback {
    grid-area: feedback;
    align-self: center;
  }
  body.ps-classroom-playing .ps-class-question > .ps-class-actions {
    grid-area: actions;
    align-self: center;
    justify-content: flex-end;
  }
  body.ps-classroom-playing .ps-class-answers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
  }
  body.ps-classroom-playing .ps-class-answers.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.ps-classroom-playing .ps-class-match,
  body.ps-classroom-playing .ps-class-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
  }
}

/* Wide desktop site */
@media (min-width: 1100px) {
  body.ps-classroom-playing > #app > main.ps-classroom-shell {
    padding: 18px 28px !important;
    gap: 12px !important;
  }
  body.ps-classroom-playing .ps-classroom-head h1 {
    font-size: 1.8rem !important;
  }
  body.ps-classroom-playing .ps-class-hud {
    padding: 10px 16px !important;
    font-size: .92rem;
  }
  body.ps-classroom-playing .ps-class-question {
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
    gap: 12px 24px;
    padding: 22px 28px !important;
  }
  body.ps-classroom-playing .ps-class-question > h2 {
    font-size: clamp(1.5rem, 2vw, 2.2rem) !important;
  }
  body.ps-classroom-playing .ps-class-answers button,
  body.ps-classroom-playing .ps-class-match button,
  body.ps-classroom-playing .ps-class-cats button {
    min-height: 54px;
    padding: 12px 16px;
  }
}

/* Narrow / short mobile screens: compact without rotating the device. */
@media (max-width: 767px) {
  body.ps-classroom-playing > #app > main.ps-classroom-shell {
    gap: 6px !important;
    padding: 7px !important;
  }
  body.ps-classroom-playing .ps-classroom-head h1 {
    font-size: 1.05rem !important;
  }
  body.ps-classroom-playing .ps-class-hud {
    font-size: .68rem;
  }
  body.ps-classroom-playing .ps-class-question {
    padding: 9px !important;
    gap: 5px;
  }
  body.ps-classroom-playing .ps-class-question h2 {
    font-size: 1rem !important;
  }
  body.ps-classroom-playing .ps-class-answers button,
  body.ps-classroom-playing .ps-class-match button,
  body.ps-classroom-playing .ps-class-cats button {
    min-height: 38px;
    padding: 6px 8px;
    font-size: .76rem;
  }
  body.ps-classroom-playing .ps-class-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.ps-classroom-playing .ps-class-actions button {
    min-width: 0;
    min-height: 36px;
    padding: 5px 7px;
    font-size: .72rem;
  }
}

/* Avoid transformed landscape fallback on every viewport. */
body.ps-classroom-playing.ps-classroom-force-landscape,
body.ps-classroom-playing.ps-classroom-landscape-fallback {
  transform: none !important;
}


/* ==========================================================
   v0.17.73 — MODE MANDIRI: KARTU PILIHAN PROPORSIONAL
   Jawaban tidak lagi meregang memenuhi seluruh tinggi panel.
   ========================================================== */
@media screen and (orientation: portrait) and (max-width: 760px) {
  body.ps-solo-playing .challenge-card > .answer-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(68px, max-content) !important;
    align-content: start !important;
    align-items: stretch !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: 44% !important;
    min-height: 0 !important;
    gap: 8px !important;
    margin: 2px 0 !important;
    padding: 0 1px 3px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }

  body.ps-solo-playing .challenge-card .answer-option {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 68px !important;
    height: auto !important;
    padding: 10px 12px !important;
    gap: 9px !important;
    font-size: .88rem !important;
    line-height: 1.2 !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
  }

  body.ps-solo-playing .challenge-card .answer-letter {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: .82rem !important;
  }

  body.ps-solo-playing .challenge-card > #dynamic-next {
    margin-top: auto !important;
  }
}

@media screen and (orientation: portrait) and (max-width: 380px) {
  body.ps-solo-playing .challenge-card > .answer-list {
    grid-auto-rows: minmax(62px, max-content) !important;
    max-height: 42% !important;
    gap: 6px !important;
  }

  body.ps-solo-playing .challenge-card .answer-option {
    min-height: 62px !important;
    padding: 8px !important;
    gap: 6px !important;
    font-size: .8rem !important;
  }
}


/* ==========================================================
   v0.17.74 — MODE KLASIKAL DESKTOP: LAYOUT MODEL SOAL
   Memperbaiki ruang kosong dan kontrol yang menumpuk di kanan.
   ========================================================== */
@media (min-width: 768px) and (orientation: landscape) {
  body.ps-classroom-playing .ps-class-question {
    display: grid !important;
    grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
    grid-template-areas:
      "prompt control"
      "feedback feedback"
      "actions actions";
    align-content: stretch;
    align-items: center;
    gap: 14px 26px !important;
    padding: clamp(20px, 2.4vw, 36px) !important;
  }

  body.ps-classroom-playing .ps-class-question > h2 {
    grid-area: prompt;
    align-self: center;
    margin: 0 !important;
    max-width: 28ch;
    font-size: clamp(1.35rem, 2vw, 2rem) !important;
    line-height: 1.3 !important;
  }

  body.ps-classroom-playing .ps-class-question > .ps-class-answers,
  body.ps-classroom-playing .ps-class-question > .ps-class-match,
  body.ps-classroom-playing .ps-class-question > .ps-class-cats,
  body.ps-classroom-playing .ps-class-question > .ps-class-order,
  body.ps-classroom-playing .ps-class-question > .ps-class-blanks {
    grid-area: control;
    align-self: center;
    min-width: 0;
    width: 100%;
    margin: 4px 0 !important;
  }

  body.ps-classroom-playing .ps-class-question > #c-feedback {
    grid-area: feedback;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px 0 !important;
  }

  body.ps-classroom-playing .ps-class-question > .ps-class-actions {
    grid-area: actions;
    justify-content: flex-end;
    margin: 0 !important;
  }

  /* Matching and categorization need the full width for both sides. */
  body.ps-classroom-playing .ps-class-question:has(> .ps-class-match),
  body.ps-classroom-playing .ps-class-question:has(> .ps-class-cats) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "prompt"
      "control"
      "feedback"
      "actions";
    align-content: start;
    gap: 10px !important;
  }

  body.ps-classroom-playing .ps-class-question:has(> .ps-class-match) > h2,
  body.ps-classroom-playing .ps-class-question:has(> .ps-class-cats) > h2 {
    max-width: none;
  }

  body.ps-classroom-playing .ps-class-question > .ps-class-match,
  body.ps-classroom-playing .ps-class-question > .ps-class-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 24px) !important;
    margin: 4px 0 !important;
  }

  body.ps-classroom-playing .ps-class-match > div,
  body.ps-classroom-playing .ps-class-cats > div {
    min-width: 0;
    gap: 10px;
  }

  body.ps-classroom-playing .ps-class-match button,
  body.ps-classroom-playing .ps-class-cats button {
    min-height: clamp(48px, 6vh, 66px);
    padding: 10px 16px;
    font-size: clamp(.9rem, 1.15vw, 1.1rem);
  }

  body.ps-classroom-playing .ps-class-question > #c-match-status,
  body.ps-classroom-playing .ps-class-question > #c-cat-status {
    grid-area: feedback;
    margin: 0 !important;
  }
}

/* Short landscape viewport: keep the question area usable without
   leaving a huge empty column or shrinking the game to a thin strip. */
@media (min-width: 768px) and (orientation: landscape) and (max-height: 650px) {
  body.ps-classroom-playing .ps-classroom-shell {
    min-height: 100dvh !important;
    height: 100dvh !important;
    padding: 10px 16px !important;
  }
  body.ps-classroom-playing .ps-classroom-head {
    margin-bottom: 6px !important;
  }
  body.ps-classroom-playing .ps-class-hud {
    margin-bottom: 8px !important;
    padding: 7px 12px !important;
  }
  body.ps-classroom-playing .ps-class-question {
    min-height: 0 !important;
    padding: 12px 18px !important;
    gap: 8px 18px !important;
  }
  body.ps-classroom-playing .ps-class-question > h2 {
    font-size: clamp(1.15rem, 1.8vw, 1.65rem) !important;
  }
}

/* Matching/categorization status must never sit on top of the controls. */
@media (min-width: 768px) {
  body.ps-classroom-playing .ps-class-question > #c-match-status,
  body.ps-classroom-playing .ps-class-question > #c-cat-status {
    position: static !important;
    width: 100%;
  }
}


/* ==========================================================
   v0.17.75 — MATCHING DESKTOP: MANFAATKAN TINGGI VIEWPORT
   Semua pasangan terlihat tanpa gulir selama masih muat.
   ========================================================== */
@media (min-width: 768px) and (orientation: landscape) {
  /* Give the interaction panel the available vertical space. */
  body.ps-classroom-playing .ps-class-question:has(> .ps-class-match) {
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
    align-content: stretch !important;
    align-items: stretch !important;
    overflow: hidden !important;
  }

  body.ps-classroom-playing .ps-class-question:has(> .ps-class-match) > .ps-class-match {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    align-content: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    gap: clamp(14px, 2vw, 28px) !important;
    overflow: hidden !important;
  }

  body.ps-classroom-playing .ps-class-question:has(> .ps-class-match) > .ps-class-match > div {
    display: grid !important;
    grid-template-rows: auto repeat(auto-fit, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(0, 1fr) !important;
    align-content: stretch !important;
    align-items: stretch !important;
    min-height: 0 !important;
    height: 100% !important;
    gap: clamp(7px, 1.1vh, 13px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding: 2px 3px 4px !important;
  }

  body.ps-classroom-playing .ps-class-question:has(> .ps-class-match) > .ps-class-match h3 {
    align-self: end;
    margin: 0 0 3px !important;
    font-size: clamp(.82rem, 1vw, 1rem) !important;
  }

  body.ps-classroom-playing .ps-class-question:has(> .ps-class-match) > .ps-class-match button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 8px clamp(10px, 1.4vw, 20px) !important;
    font-size: clamp(.9rem, 1.15vw, 1.12rem) !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
  }

  body.ps-classroom-playing .ps-class-question:has(> .ps-class-match) > #c-match-status {
    grid-area: feedback !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    font-size: .82rem !important;
  }
}

/* On a shorter laptop screen, compress vertical chrome before scrolling pairs. */
@media (min-width: 768px) and (orientation: landscape) and (max-height: 700px) {
  body.ps-classroom-playing .ps-class-question:has(> .ps-class-match) {
    padding: 12px 18px !important;
    gap: 6px !important;
  }
  body.ps-classroom-playing .ps-class-question:has(> .ps-class-match) > .ps-class-match {
    gap: 12px !important;
  }
  body.ps-classroom-playing .ps-class-question:has(> .ps-class-match) > .ps-class-match > div {
    gap: 5px !important;
  }
  body.ps-classroom-playing .ps-class-question:has(> .ps-class-match) > .ps-class-match button {
    min-height: 42px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
}


/* v0.17.76 — Fill Blank: konsisten dengan format template label/accepted */
.ps-class-blanks label {
  min-width: 0;
}
.ps-class-blanks input {
  box-sizing: border-box;
  width: min(100%, 680px);
  min-height: 48px;
}
@media (min-width: 768px) {
  body.ps-classroom-playing .ps-class-question:has(> .ps-class-blanks) {
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
    align-content: stretch !important;
  }
  body.ps-classroom-playing .ps-class-question:has(> .ps-class-blanks) > .ps-class-blanks {
    align-content: start !important;
    justify-content: start !important;
    gap: 14px !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 6px 4px 10px !important;
  }
  body.ps-classroom-playing .ps-class-question:has(> .ps-class-blanks) > .ps-class-blanks label {
    display: grid;
    grid-template-columns: minmax(140px, 220px) minmax(240px, 680px);
    align-items: center;
    gap: 14px;
    font-size: clamp(.9rem, 1vw, 1.05rem);
  }
  body.ps-classroom-playing .ps-class-question:has(> .ps-class-blanks) > .ps-class-blanks input {
    width: 100%;
  }
}


/* v0.17.77 — Fill Blank: kolom isian berupa titik kosong, tanpa label buatan */
body.ps-classroom-playing .ps-class-blanks .ps-class-blank-line {
  display: block !important;
  width: min(100%, 720px) !important;
  margin: 0 !important;
}
body.ps-classroom-playing .ps-class-blanks .ps-class-blank-line input {
  width: 100% !important;
  max-width: none !important;
  min-height: 50px !important;
  border: 0 !important;
  border-bottom: 2px dotted #789584 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 8px 4px !important;
  font-size: 1rem !important;
}
body.ps-classroom-playing .ps-class-blanks .ps-class-blank-line input:focus {
  outline: none !important;
  border-bottom: 3px solid #26734a !important;
}
body.ps-classroom-playing .ps-class-blanks .ps-class-blank-line input::placeholder {
  color: #9aafa0;
  letter-spacing: .14em;
  opacity: .9;
}
@media (min-width: 768px) {
  body.ps-classroom-playing .ps-class-question:has(> .ps-class-blanks) > .ps-class-blanks {
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start !important;
  }
}


/* v0.17.78 — Isian teks diperiksa dengan aksi eksplisit, bukan per karakter */
body.ps-classroom-playing .ps-class-actions [data-c-check]:not([style*="display:none"]) {
  min-width: 180px;
}
body.ps-classroom-playing .ps-class-actions [data-c-check]:disabled {
  opacity: .48;
  cursor: not-allowed;
}


/* ==========================================================
   v0.17.79 — DESKTOP WIDE LAYOUT UNTUK SELURUH HALAMAN GAME
   Bukan hanya halaman bermain: semua halaman/menu memanfaatkan
   viewport desktop, sedangkan HP tetap mengikuti layout lama.
   ========================================================== */
@media screen and (min-width: 1024px) {
  html, body {
    min-width: 0;
  }

  .shell,
  .shell > #app {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .shell > #app .game-shell {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 22px clamp(22px, 3vw, 52px) 34px !important;
  }

  /* Header, level strip and footer actions span the available desktop width. */
  .shell > #app .map-first-top,
  .shell > #app .map-level-strip,
  .shell > #app .map-next-mission,
  .shell > #app .adventure-banner,
  .shell > #app .game-card,
  .shell > #app .ps-classroom-hero,
  .shell > #app .ps-classroom-actions,
  .shell > #app .ps-cl-section,
  .shell > #app .level-summary {
    width: 100%;
    box-sizing: border-box;
  }

  .shell > #app .map-first-top {
    gap: 20px;
    margin-bottom: 18px;
  }

  .shell > #app .map-player-mark {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
    font-size: 36px;
  }

  .shell > #app .map-player-copy h1 {
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  }

  .shell > #app .map-player-copy p {
    font-size: 1rem;
  }

  .shell > #app .map-player-stats {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .shell > #app .map-player-stats span {
    padding: 10px 16px;
    font-size: .95rem;
  }

  /* The adventure map expands into a broad desktop canvas. */
  .shell > #app .ps-world-map,
  .shell > #app .map-board-unlimited {
    width: 100% !important;
    max-width: none !important;
    min-height: clamp(560px, 66vh, 820px) !important;
    height: auto !important;
    box-sizing: border-box;
    border-radius: 28px;
  }

  .shell > #app .map-board-unlimited .map-dynamic-nodes {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: clamp(52px, 6vh, 82px) clamp(20px, 3vw, 46px) !important;
    padding: clamp(115px, 14vh, 170px) clamp(30px, 4vw, 64px) 90px !important;
  }

  .shell > #app .map-board-unlimited .map-dynamic-node {
    justify-self: center;
  }

  .shell > #app .map-board-unlimited .ps-world-node {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
    border-radius: 23px !important;
  }

  .shell > #app .map-board-unlimited .ps-world-node .node-num {
    font-size: 1.6rem !important;
  }

  .shell > #app .map-board-unlimited .ps-world-node .map-node-label {
    width: 160px;
    max-width: 160px;
    font-size: .78rem;
    padding: 6px 8px;
  }

  .shell > #app .map-legend {
    font-size: .86rem;
    padding: 10px 18px;
  }

  .shell > #app .map-next-mission {
    padding: 22px 26px;
    gap: 24px;
  }

  .shell > #app .map-next-mission h2 {
    font-size: 1.35rem;
  }

  .shell > #app .map-next-mission p {
    font-size: .98rem;
  }

  .shell > #app .map-footer-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
  }

  /* Every content catalogue expands into a responsive multi-column grid. */
  .shell > #app .dynamic-mission-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .shell > #app .mission-group-card {
    padding: 22px;
  }

  .shell > #app .subject-mission-grid,
  .shell > #app .level-select-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .shell > #app .subject-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shell > #app .game-below,
  .shell > #app .home-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shell > nav.bottom.bottom-nav-tpa {
    width: calc(100% - 48px) !important;
    max-width: none !important;
    margin: 0 24px !important;
    box-sizing: border-box;
  }

  .shell > nav.bottom.bottom-nav-tpa button,
  .shell > nav.bottom.bottom-nav-tpa a {
    flex: 1 1 0;
    justify-content: center;
  }
}

@media screen and (min-width: 1440px) {
  .shell > #app .map-board-unlimited .map-dynamic-nodes {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .shell > #app .dynamic-mission-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shell > #app .subject-mission-grid,
  .shell > #app .level-select-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* ==========================================================
   v0.17.80 — PETA MISI SEBAGAI LAYER GULIR TERSENDIRI
   Tinggi dunia mengikuti jumlah misi; node disusun otomatis.
   ========================================================== */
.map-scroll-layer {
  position: relative;
  width: 100%;
  height: clamp(440px, 66vh, 760px);
  min-height: 440px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  border-radius: 22px;
  isolation: isolate;
  background: #dff2e5;
  box-shadow: inset 0 0 0 1px rgba(55,112,78,.14);
}

.map-scroll-layer .ps-world-map {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 1100px;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 22px !important;
}

.map-scroll-layer .map-dynamic-nodes {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  min-height: 100%;
  pointer-events: none;
}

.map-scroll-layer .ps-world-node {
  left: var(--world-x) !important;
  top: var(--world-y) !important;
  z-index: 35;
}

.map-scroll-layer .map-path {
  opacity: .48;
  pointer-events: none;
}

.map-scroll-layer .map-legend {
  position: sticky;
  bottom: 8px;
  z-index: 50;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0 auto 10px;
}

@media (min-width: 768px) {
  .map-scroll-layer {
    height: clamp(520px, 68vh, 820px);
    min-height: 520px;
    border-radius: 26px;
  }
  .map-scroll-layer .ps-world-map {
    border-radius: 26px !important;
  }
  .map-scroll-layer .ps-world-node {
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
    min-height: 82px !important;
  }
  .map-scroll-layer .ps-world-node .map-node-label {
    width: 190px !important;
    max-width: 190px !important;
    font-size: .84rem !important;
  }
}

@media (min-width: 1024px) {
  .shell > #app .map-first-shell {
    min-height: 0 !important;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 14px;
  }
  .shell > #app .map-scroll-layer {
    height: min(70vh, 820px);
    min-height: 560px;
  }
  .shell > #app .map-first-top,
  .shell > #app .map-level-strip,
  .shell > #app .map-next-mission {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 767px) {
  .map-scroll-layer {
    height: min(64vh, 660px);
    min-height: 390px;
    border-radius: 18px;
  }
  .map-scroll-layer .ps-world-map {
    border-radius: 18px !important;
  }
  .map-scroll-layer .ps-world-node {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    min-height: 62px !important;
  }
}


/* v0.17.81 — koreksi pemuatan peta + viewport lebih ringkas */
.map-scroll-layer {
  height: clamp(340px, 42vh, 470px);
  min-height: 340px;
}
@media (min-width: 768px) {
  .map-scroll-layer {
    height: clamp(400px, 52vh, 590px);
    min-height: 400px;
  }
}
@media (min-width: 1024px) {
  .shell > #app .map-scroll-layer {
    height: clamp(430px, 55vh, 650px);
    min-height: 430px;
  }
}
@media (max-width: 767px) {
  .map-scroll-layer {
    height: clamp(340px, 42vh, 470px);
    min-height: 340px;
  }
}


/* v0.17.82 — Peta ringkas: dua misi per baris, jalur zig-zag */
.map-scroll-layer {
  height: clamp(280px, 32vh, 360px) !important;
  min-height: 280px !important;
}
.map-scroll-layer .ps-world-map {
  min-height: 680px;
}
.map-scroll-layer .map-dynamic-nodes {
  height: 100% !important;
}
.map-scroll-layer .ps-world-node {
  transform: translate(-50%, -50%) !important;
  width: 66px !important;
  height: 66px !important;
  min-width: 66px !important;
  min-height: 66px !important;
}
.map-scroll-layer .ps-world-node .map-node-label {
  width: clamp(118px, 36vw, 154px) !important;
  max-width: clamp(118px, 36vw, 154px) !important;
  white-space: normal !important;
  line-height: 1.12 !important;
}
@media (min-width: 768px) {
  .map-scroll-layer {
    height: clamp(330px, 40vh, 460px) !important;
    min-height: 330px !important;
  }
  .map-scroll-layer .ps-world-node {
    width: 78px !important;
    height: 78px !important;
    min-width: 78px !important;
    min-height: 78px !important;
  }
  .map-scroll-layer .ps-world-node .map-node-label {
    width: 180px !important;
    max-width: 180px !important;
  }
}
@media (min-width: 1024px) {
  .shell > #app .map-scroll-layer {
    height: clamp(380px, 48vh, 560px) !important;
    min-height: 380px !important;
  }
}


/* v0.17.83 — desktop node placement + remove map overflow artifacts */
@media (min-width: 1024px) {
  .map-scroll-layer .ps-world-map {
    position: relative !important;
    min-height: 900px !important;
  }
  .map-scroll-layer #map-dynamic-nodes {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    pointer-events: none;
  }
  .map-scroll-layer .ps-world-node {
    position: absolute !important;
    display: flex !important;
    left: var(--world-x) !important;
    top: var(--world-y) !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    pointer-events: auto !important;
  }
  .map-scroll-layer .ps-world-node .map-node-label {
    width: 190px !important;
    max-width: 190px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }
  .map-scroll-layer .map-legend {
    position: sticky !important;
    top: 8px !important;
    bottom: auto !important;
  }
}

/* Keep the end of the map clean: decorative landmarks stay inside the map layer. */
.map-scroll-layer .ps-world-map {
  overflow: hidden !important;
  isolation: isolate;
}
.map-scroll-layer .map-legend {
  z-index: 60;
}
.map-next-mission {
  position: relative;
  z-index: 2;
  clear: both;
  margin-top: 12px !important;
}


/* v0.17.84 — desktop: synchronize map canvas and node coordinate height */
@media (min-width: 1024px) {
  .map-scroll-layer .ps-world-map {
    height: auto !important;
    min-height: 760px !important;
    position: relative !important;
  }
  .map-scroll-layer #map-dynamic-nodes {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    height: 100% !important;
    min-height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .map-scroll-layer .ps-world-node {
    position: absolute !important;
    transform: translate(-50%, -50%) !important;
  }
  .map-scroll-layer .ps-world-node .map-node-label {
    width: 190px !important;
    max-width: 190px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }
}


/* v0.17.85 — desktop mission captions beside nodes + illustrated map art */
.map-scroll-layer .ps-world-map {
  background-image: url("./assets/adventure-world-bg.svg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
.map-node-item { display: contents; }
.map-node-caption { display: none; }

@media (min-width: 1024px) {
  .map-scroll-layer .ps-world-map {
    background-image: url("./assets/adventure-world-bg.svg") !important;
    background-size: cover !important;
    background-position: center !important;
  }
  .map-scroll-layer #map-dynamic-nodes {
    overflow: visible !important;
  }
  .map-scroll-layer .map-node-item {
    display: block !important;
    position: absolute !important;
    left: var(--world-x) !important;
    top: var(--world-y) !important;
    width: 0 !important;
    height: 0 !important;
    z-index: 40;
    pointer-events: none;
  }
  .map-scroll-layer .map-node-item .ps-world-node {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    pointer-events: auto !important;
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
    border-radius: 22px !important;
  }
  .map-scroll-layer .map-node-item .ps-world-node .map-node-label,
  .map-scroll-layer .map-node-item .ps-world-node .world-node-count {
    display: none !important;
  }
  .map-scroll-layer .map-node-caption {
    display: flex !important;
    position: absolute !important;
    top: 0 !important;
    width: clamp(190px, 17vw, 260px) !important;
    min-height: 66px;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 15px;
    border: 2px solid rgba(255,255,255,.92);
    border-radius: 15px;
    background: rgba(255,253,239,.96);
    color: #244f43;
    box-shadow: 0 4px 12px rgba(31,76,57,.16);
    transform: translateY(-50%);
    line-height: 1.2;
    pointer-events: none;
  }
  .map-scroll-layer .map-node-caption strong {
    font-size: clamp(13px, 1vw, 17px);
    font-weight: 900;
    overflow-wrap: anywhere;
  }
  .map-scroll-layer .map-node-caption span {
    font-size: clamp(11px, .8vw, 14px);
    color: #62776c;
    font-weight: 700;
  }
  .map-scroll-layer .map-node-caption-left .map-node-caption {
    right: 0;
    transform: translate(-52px, -50%);
    text-align: right;
  }
  .map-scroll-layer .map-node-caption-right .map-node-caption {
    left: 0;
    transform: translate(52px, -50%);
    text-align: left;
  }
  .map-scroll-layer .map-node-caption-left .ps-world-node {
    left: 0 !important;
  }
  .map-scroll-layer .map-node-caption-right .ps-world-node {
    left: 0 !important;
  }
}


/* v0.17.86 — fix right-column captions and keep map art text-free */
@media (min-width: 1024px) {
  .map-scroll-layer .landmark-label {
    display: none !important;
  }
  .map-scroll-layer .landmark {
    pointer-events: none !important;
  }
  .map-scroll-layer .map-node-caption-left .map-node-caption {
    right: 0 !important;
    transform: translate(-52px, -50%) !important;
  }
  .map-scroll-layer .map-node-caption-right .map-node-caption {
    left: 0 !important;
    transform: translate(52px, -50%) !important;
  }
  .map-scroll-layer .map-node-item {
    overflow: visible !important;
  }
}

.map-level-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.map-footer-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
#map-cache-status{min-height:1.2em;margin:8px 0 0}
@media(max-width:600px){
 .map-level-actions{width:100%;justify-content:flex-start}
 .map-level-strip{align-items:flex-start;flex-direction:column}
 .map-footer-actions{display:grid;grid-template-columns:1fr}
}

/* Materi Belajar v0.18.05 */
.ps-material-card h3{margin:10px 0 6px}.ps-material-cover{display:block;width:100%;max-height:230px;object-fit:cover;border-radius:14px;margin:0 0 12px}.ps-material-cover-detail{max-height:300px}.ps-material-section{margin:18px 0}.ps-material-section p{line-height:1.75}.ps-material-figure{margin:14px 0}.ps-material-figure img{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:12px;background:var(--surface-secondary,#f2f4f7)}.ps-material-figure figcaption{font-size:.82rem;color:var(--muted);margin-top:5px}.ps-material-figure.image-error:after{content:"Ilustrasi tidak dapat dimuat";display:block;color:var(--muted);font-size:.82rem}.ps-material-evidence{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-secondary);margin:12px 0}.ps-material-evidence p[dir=rtl]{font-size:1.35rem;line-height:2;text-align:right}.ps-material-video{position:relative;aspect-ratio:16/9;background:#111;border-radius:12px;overflow:hidden}.ps-material-video iframe{width:100%;height:100%;border:0}.ps-material-native-video{display:block;width:100%;max-height:420px;background:#111;border-radius:12px}.ps-material-import-row,.ps-material-admin-row{padding:12px 0;border-bottom:1px solid var(--line)}.ps-material-import-row:last-child,.ps-material-admin-row:last-child{border-bottom:0}.danger-text{color:#b42318}.success-text{color:#16834a}
.bottom-nav-tpa{grid-template-columns:repeat(5,minmax(0,1fr))}
