@font-face{font-family:Fredoka;src:url('./assets/font/Fredoka-variable.ttf') format('truetype');font-weight:300 700;font-display:swap}
:root{font-family:Fredoka,'Trebuchet MS',sans-serif;color:#153b5d;background:#b9e6ef;font-size:16px}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;min-height:100dvh;background:#bde4ec url('./assets/kebun-latar.png') center / cover no-repeat fixed}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:4px solid #db6b42;outline-offset:3px}[hidden]{display:none!important}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip:focus{position:fixed;z-index:20;background:white;padding:12px}
.app{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}.topbar{height:74px;padding:8px max(4vw,18px);background:#17877b;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 4px 0 #0e675f}.logo{border:0;background:transparent;color:#fff;font-size:clamp(1.5rem,2.5vw,2rem);font-weight:700;white-space:nowrap;text-shadow:2px 2px #123f59}.logo-leaf{display:inline-grid;place-items:center;width:41px;height:41px;border-radius:50%;background:#d8f3a8;color:#288d59;text-shadow:none}.navigation{display:flex;gap:9px}.nav{border:2px solid #116357;border-radius:30px;padding:8px 16px;background:#fffbeb;color:#123c58;min-height:44px;white-space:nowrap;box-shadow:0 3px 0 #0e675f;font-weight:650}.nav span{font-size:1.15rem;margin-right:5px}.nav.active{background:#ffe177}.nav:hover{transform:translateY(-2px)}main{width:min(1220px,calc(100% - 40px));margin:auto;flex:1;display:flex;align-items:center;justify-content:center;padding:20px 0}.view{width:100%}.home-view{display:grid;grid-template-columns:1.08fr .92fr;align-items:center;gap:40px}.home-copy{background:#fff9e9ed;border:3px solid #fff;border-radius:40px;padding:clamp(25px,3.4vw,50px);box-shadow:0 8px 0 #1b735558,0 18px 55px #32725b30}.welcome-badge,.eyebrow{font-weight:650;color:#287c59;font-size:.92rem}.welcome-badge{display:inline-block;border-radius:25px;padding:7px 14px;background:#dcf2bf;margin-bottom:14px}h1,h2,p{margin:0}h1{font-size:clamp(2.1rem,4vw,4rem);line-height:1.05;letter-spacing:-.035em;font-weight:700}.home-copy h1 span{color:#e77b55}.home-copy>p{max-width:480px;margin:18px 0 22px;font-size:1.2rem;line-height:1.45;color:#466a6d}.home-actions{display:flex;flex-wrap:wrap;gap:12px}.button{min-height:48px;border:2px solid #164d4b;border-radius:16px;padding:10px 18px;font-weight:700;color:#133f4b;box-shadow:0 4px 0 #165b50;transition:transform .15s,box-shadow .15s}.button:active{transform:translateY(3px);box-shadow:0 1px 0 #165b50}.coral{background:#f68d71}.green{background:#348c5b;color:white}.light{background:#fffdf3}.yellow{background:#ffdf73}.small{font-size:.95rem}.home-facts{display:flex;gap:18px;margin-top:24px;color:#406b5c}.home-facts b{color:#153b5d}.home-art{height:min(470px,55vh);position:relative}.sunburst{position:absolute;right:12%;top:3%;font-size:6rem;color:#ffdf67;text-shadow:4px 4px #de9d39}.sticker-card{position:absolute;top:22%;width:45%;padding:8px 8px 12px;background:#fff9e8;border:5px solid white;border-radius:30px;box-shadow:0 10px 0 #30725c55,0 16px 30px #2c695d33;text-align:center;font-size:1.3rem;color:#153b5d}.sticker-card img{display:block;width:100%;aspect-ratio:1.15;object-fit:contain;border-radius:20px}.sticker-one{left:3%;transform:rotate(-9deg)}.sticker-two{right:3%;top:32%;transform:rotate(8deg)}.mascot{position:absolute;bottom:0;left:37%;display:flex;align-items:center;gap:8px;padding:10px 15px;background:#dcf29f;border:3px solid white;border-radius:30px;transform:rotate(-5deg);box-shadow:0 5px 0 #34745766}.mascot span{font-size:2.8rem;color:#31956a}.mascot b{line-height:1.15}.bottom-note{text-align:center;color:#345a46;font-size:.83rem;font-weight:600;padding:0 12px 12px}.bottom-note span{color:#eb907a}
.explorer-view,.game-view,.settings-view{background:#fffbeeef;border:3px solid white;border-radius:34px;padding:22px 28px;box-shadow:0 8px 0 #1b735558,0 18px 50px #32725b28}.view-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.view-heading h1{font-size:clamp(1.9rem,3vw,2.8rem)}.eyebrow{margin-bottom:5px}.search{display:flex;align-items:center;gap:9px;width:min(330px,44%);min-height:48px;padding:0 15px;border:2px solid #8fc6b2;background:white;border-radius:16px}.search span{font-size:1.5rem}.search input{border:0;outline:0;width:100%;min-width:0;background:transparent}.explore-bar{height:38px;display:flex;align-items:center;gap:14px;font-size:.85rem;color:#53796b}.text-button{background:#e1f1d6;border:0;border-radius:20px;min-height:36px;padding:5px 14px;color:#256e4d;font-weight:700}.topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.topic-card{min-width:0;display:flex;align-items:center;gap:12px;padding:8px;background:#fff9db;border:2px solid #f2d78a;border-radius:21px;text-align:left;color:#153b5d;box-shadow:0 4px 0 #dfc485}.topic-card:nth-child(3n+2){background:#fbe4dc;border-color:#eebfac;box-shadow:0 4px 0 #dcae9b}.topic-card:nth-child(3n){background:#ddf3f6;border-color:#a5d5d8;box-shadow:0 4px 0 #91c4c8}.topic-card:hover{transform:translateY(-2px)}.topic-card img{width:clamp(66px,8vw,100px);height:clamp(66px,8vw,100px);object-fit:contain;background:#fffaf0;border-radius:14px}.topic-copy{min-width:0}.topic-copy strong{display:block;font-size:1.15rem}.topic-copy small{display:block;color:#517270;line-height:1.3;margin-top:4px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.empty{grid-column:1/-1;padding:30px;text-align:center}.pager{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:17px;font-size:.9rem;font-weight:650}.page-button{border:0;background:#e5f3d9;color:#235b48;border-radius:14px;padding:9px 15px;min-height:42px}.page-button:disabled{opacity:.42;cursor:default}
.game-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.game-heading h1{font-size:clamp(1.6rem,2.8vw,2.3rem)}.game-heading>div{text-align:center}.game-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.39fr);gap:25px;align-items:center}.picture-pair{display:grid;grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);align-items:center;gap:8px}.picture-pair figure{margin:0;min-width:0;text-align:center}.picture-pair figcaption{display:inline-block;position:relative;z-index:1;margin-bottom:-4px;padding:6px 15px;border-radius:15px;border:2px solid #23766a;background:#d6f1e1;font-weight:700}.picture-pair figure:last-child figcaption{background:#ffe487;border-color:#cfaa52}.picture{aspect-ratio:1.08;display:grid;place-items:center;width:100%;overflow:hidden;background:#fffaf0;border:3px solid #91c9ab;border-radius:25px}.hint-picture{padding:0}.hint-picture:hover{box-shadow:0 0 0 4px #ffda78}.answer-picture{border-color:#eccb76}.picture img{width:100%;height:100%;object-fit:contain}.arrow{text-align:center;font-size:2rem;color:#ef8a6d}.secret{text-align:center;color:#895e40}.secret span{display:grid;place-items:center;margin:auto auto 10px;width:68px;height:68px;border:3px solid #dfb653;border-radius:50%;background:#ffdf75;color:#153b5d;font-size:2.3rem;font-weight:700}.secret b{font-size:.9rem}.game-side{text-align:center}.counter{display:inline-block;background:#e4f3d9;border-radius:20px;padding:7px 16px;font-weight:700;margin-bottom:12px}.hint-copy{padding:18px;background:#e8f4dd;border:2px dashed #a0cfa7;border-radius:25px}.hint-copy span{font-size:2rem;color:#e4ad36}.hint-copy h2{margin:3px 0}.hint-copy p{color:#4f7664}.word-card{padding:18px;background:#e5f5d7;border:2px solid #b8dca7;border-radius:25px;display:flex;flex-direction:column;align-items:center;gap:5px}.word-card strong{font-size:2.5rem;line-height:1;color:#133f5c;overflow-wrap:anywhere}.word-card span{font-size:1.2rem;font-weight:650;color:#347255}.word-card small{color:#5a746d}.word-card .button{margin-top:5px;width:100%}.example{font-size:.9rem;color:#42685d;margin:10px 0}.game-nav{display:flex;justify-content:space-between;gap:8px;margin-top:14px}.game-nav .button{padding-inline:12px}.status{text-align:center;color:#3f7859;min-height:1.3em;margin-top:8px;font-size:.85rem;font-weight:600}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.settings-panel,.progress-panel{padding:22px;border:2px solid #bddcba;border-radius:25px;background:#f8fceb}.settings-panel h2,.progress-panel h2{font-size:1.35rem;margin-bottom:14px}.setting{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:11px 0;border-top:1px dashed #c8dfc2}.setting strong,.setting small{display:block}.setting small{font-size:.8rem;color:#587669;margin-top:3px}.setting input{width:25px;height:25px;accent-color:#348c5b}.progress-panel{background:#fff4d6;border-color:#f0d590}.progress-panel p{color:#647465}.big-number{margin:12px 0;font-size:1rem}.big-number strong{font-size:3rem;color:#27805d}.progress-track{height:16px;background:#eedda9;border-radius:12px;overflow:hidden}.progress-track span{display:block;height:100%;background:#53ab6a;border-radius:12px}.progress-note{font-size:.88rem;line-height:1.4;margin:14px 0}.quiz{width:min(520px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:20px;border:3px solid #5fa685;border-radius:25px;background:#fffbed;color:#153b5d}.quiz::backdrop{background:#173b4c99}.quiz-top{display:flex;justify-content:space-between;align-items:center}.round-button{width:44px;height:44px;border-radius:50%;border:2px solid #82b99f;background:white;font-size:1.5rem}.quiz>p{margin:6px 0}.quiz-question{font-weight:700}.quiz>img{display:block;width:min(150px,26vh);aspect-ratio:1;object-fit:contain;margin:4px auto;border-radius:18px}.quiz-options{display:grid;grid-template-columns:1fr 1fr;gap:7px}.quiz-options button{min-height:44px;border:2px solid #b2d9bc;border-radius:14px;background:#eff8e6;color:#174c3a;font-weight:650}.quiz-options button.correct{background:#a7e2a7}.quiz-options button.wrong{background:#f4b8ac}.quiz-options button:disabled{cursor:default}#quizFeedback{min-height:1.3em;font-weight:700}.quiz .button{width:100%}
@media(max-width:700px){.topbar{height:auto;padding:6px 12px;display:block}.logo{font-size:1.4rem}.logo-leaf{width:30px;height:30px}.navigation{position:fixed;z-index:5;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);gap:2px;padding:5px 6px max(5px,env(safe-area-inset-bottom));background:#157d70;box-shadow:0 -3px 0 #0e675f}.nav{min-height:46px;padding:4px 2px;border:0;box-shadow:none;font-size:.72rem}.nav span{display:block;font-size:1rem;line-height:1;margin:0}.app{padding-bottom:59px}main{width:calc(100% - 20px);padding:10px 0}.home-view{grid-template-columns:1fr;gap:0}.home-copy{padding:22px;border-radius:28px}.home-copy h1{font-size:clamp(2rem,9vw,3rem)}.home-copy>p{font-size:1rem;margin:10px 0 14px}.home-actions{gap:8px}.home-actions .button{font-size:.85rem;padding:9px 11px}.home-facts{margin-top:16px;font-size:.83rem;gap:14px}.home-art{height:min(175px,24vh);width:80%;margin:auto}.sunburst{font-size:3.5rem}.sticker-card{width:35%;top:8%;padding:4px;font-size:.8rem;border-width:3px;border-radius:18px}.sticker-card img{aspect-ratio:1.2;border-radius:12px}.sticker-two{top:12%}.mascot{font-size:.7rem;bottom:0;padding:4px 8px}.mascot span{font-size:1.8rem}.explorer-view,.game-view,.settings-view{padding:14px;border-radius:25px}.view-heading{align-items:start;flex-direction:column;gap:9px}.view-heading h1{font-size:1.8rem}.search{width:100%;min-height:42px}.explore-bar{height:32px}.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.topic-card{padding:6px;gap:7px;border-radius:16px}.topic-card img{width:58px;height:58px;border-radius:10px}.topic-copy strong{font-size:.88rem}.topic-copy small{font-size:.68rem}.pager{margin-top:11px;gap:9px;font-size:.8rem}.page-button{min-height:40px;padding:7px 10px}.game-heading h1{font-size:1.2rem}.game-heading .text-button,.game-heading .small{font-size:.72rem;padding:6px 8px;min-height:38px}.game-content{grid-template-columns:1fr;gap:8px}.picture-pair{grid-template-columns:minmax(0,1fr) 25px minmax(0,1fr);gap:4px}.picture-pair figcaption{font-size:.72rem;padding:4px 9px}.picture{border-radius:16px;aspect-ratio:1.15}.arrow{font-size:1.4rem}.secret span{width:45px;height:45px;margin-bottom:4px;font-size:1.5rem}.secret b{font-size:.72rem}.counter{margin:0 0 5px;padding:4px 10px;font-size:.78rem}.hint-copy{padding:7px}.hint-copy span{font-size:1rem}.hint-copy h2{display:inline;font-size:1rem}.hint-copy p{display:inline;font-size:.8rem}.word-card{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:7px 10px}.word-card strong{font-size:1.55rem}.word-card span,.word-card small{text-align:left;font-size:.9rem}.word-card .button{grid-column:2;grid-row:1/4;margin:0;min-height:44px}.example{margin:4px 0;font-size:.75rem}.game-nav{margin-top:7px}.game-nav .button{min-height:44px;font-size:.8rem}.status{margin-top:4px;font-size:.75rem}.settings-grid{grid-template-columns:1fr;gap:8px;margin-top:10px}.settings-panel,.progress-panel{padding:12px 14px}.settings-panel h2,.progress-panel h2{font-size:1.1rem;margin-bottom:5px}.setting{padding:7px 0}.big-number{margin:4px 0}.big-number strong{font-size:2rem}.progress-note{margin:6px 0}.bottom-note{display:none}}
@media(orientation:landscape) and (max-height:500px){.topbar{height:47px;padding:4px 14px;display:flex}.logo{font-size:1.2rem}.logo-leaf{width:28px;height:28px}.navigation{position:static;display:flex;background:none;padding:0;box-shadow:none}.nav{min-height:35px;padding:4px 10px;font-size:.76rem}.nav span{display:inline}.app{padding-bottom:0}main{padding:8px 0;width:calc(100% - 26px)}.home-view{grid-template-columns:1fr .7fr;gap:8px}.home-copy{padding:14px 20px}.welcome-badge{margin-bottom:5px;font-size:.75rem;padding:4px 8px}.home-copy h1{font-size:clamp(1.7rem,6vh,2.2rem)}.home-copy>p{font-size:.8rem;margin:6px 0}.home-actions .button{min-height:38px;padding:5px 9px;font-size:.75rem}.home-facts{margin-top:8px;font-size:.72rem}.home-art{height:210px;width:100%}.sticker-card{width:43%}.mascot{bottom:0}.explorer-view,.game-view,.settings-view{padding:9px 14px;border-radius:21px}.view-heading{flex-direction:row;align-items:center}.view-heading h1{font-size:1.4rem}.eyebrow{font-size:.7rem}.search{width:45%;min-height:36px}.explore-bar{height:27px}.topic-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.topic-card img{width:52px;height:52px}.topic-copy strong{font-size:.8rem}.topic-copy small{font-size:.64rem}.pager{margin-top:8px}.page-button{min-height:34px;padding:5px 10px}.game-heading{margin-bottom:4px}.game-content{grid-template-columns:minmax(0,1fr) minmax(170px,.45fr);gap:10px}.picture{aspect-ratio:1.25;max-height:190px}.picture-pair figcaption{padding:2px 8px}.game-side .word-card strong{font-size:1.4rem}.word-card{display:flex;padding:5px}.word-card .button{min-height:35px}.word-card span,.word-card small{font-size:.75rem}.game-nav{margin-top:5px}.game-nav .button{min-height:38px}.status{position:absolute;width:1px;height:1px;overflow:hidden}.settings-grid{grid-template-columns:1fr 1fr;margin-top:7px}.setting{padding:5px 0}.progress-note{font-size:.75rem}.quiz{padding:10px;max-height:calc(100dvh - 12px)}.quiz>img{width:85px}.quiz-options button{min-height:35px}.quiz .button{min-height:38px}}
@media(max-height:650px) and (orientation:portrait){.home-art{height:100px}.sticker-card{width:28%}.home-copy{padding:16px}.home-copy h1{font-size:1.8rem}.welcome-badge{margin-bottom:8px}.view-heading h1{font-size:1.45rem}.topic-card img{width:45px;height:45px}.topic-copy strong{font-size:.8rem}.topic-copy small{font-size:.62rem}.explorer-view,.settings-view,.game-view{padding:10px}.picture{aspect-ratio:1.35}.game-heading{margin-bottom:4px}.settings-panel,.progress-panel{padding:8px 12px}.setting{padding:5px 0}.progress-panel .button{min-height:40px}.home-facts{margin-top:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.no-motion *, .no-motion *::before, .no-motion *::after{animation:none!important;transition:none!important}.larger-text{font-size:18px}
@keyframes card-reveal{from{opacity:.3;transform:scale(.92) rotate(-2deg)}to{opacity:1;transform:scale(1) rotate(0)}}
.answer-picture img:not([hidden]),.word-card:not([hidden]){animation:card-reveal .38s ease-out both}
@media (orientation:portrait) and (max-height:650px){
 .settings-view .eyebrow,.settings-view .setting small,.settings-view .progress-note{display:none}
 .settings-view .setting{min-height:36px;padding:4px 0}
 .settings-view .settings-grid{gap:6px}
 .settings-view .progress-panel>p{font-size:.8rem}
 .settings-view .progress-panel .button{margin-top:7px}
}
@media (orientation:landscape) and (max-height:500px){
 .bottom-note{display:none}
 .game-view .picture{max-height:min(155px,calc(100dvh - 165px))}
 .game-view .example{font-size:.7rem;margin:3px 0}
 .settings-panel,.progress-panel{padding:9px 13px}
 .settings-panel h2,.progress-panel h2{font-size:1.05rem;margin-bottom:4px}
 .setting{padding:4px 0}
 .setting small{font-size:.7rem}
 .big-number{margin:4px 0}.big-number strong{font-size:2rem}
 .progress-note{margin:5px 0}
 .progress-panel .button{min-height:38px;padding:5px 10px}
}
@media (orientation:landscape) and (max-height:350px){
 .topic-card img{width:39px;height:39px}.topic-card{padding:4px}
 .topic-copy small{-webkit-line-clamp:1}.explore-bar{height:23px}.pager{margin-top:5px}
 .game-heading h1{font-size:1.1rem}.game-heading{margin-bottom:2px}
 .game-view .picture{max-height:calc(100dvh - 160px)}
 .settings-view .eyebrow,.settings-view .setting small,.settings-view .progress-note{display:none}
 .settings-view .setting{min-height:30px;padding:3px 0}
}
@media (orientation:landscape) and (max-height:350px){
 .quiz{padding:7px 10px}.quiz h2{font-size:1.15rem}.quiz>img{width:57px;margin:0 auto}.quiz>p{margin:3px 0;font-size:.82rem}.quiz-options{gap:4px}.quiz-options button{min-height:32px;font-size:.82rem}.quiz #quizFeedback{min-height:1em}.quiz .button{min-height:34px;padding:4px}
}
.connection-status{position:fixed;z-index:12;left:50%;top:max(6px,env(safe-area-inset-top));transform:translateX(-50%);width:max-content;max-width:calc(100% - 20px);padding:8px 13px;border:2px solid #2c7656;border-radius:16px;background:#eef8df;color:#194c38;font-size:.8rem;font-weight:650;text-align:center}.install{margin-top:8px}.button:disabled{opacity:.5;cursor:not-allowed}
@media (orientation:landscape) and (max-height:500px){.game-view{padding-block:7px}.game-view .counter{margin-bottom:5px;padding:4px 10px}.game-view .game-nav{margin-top:4px}}
@media (orientation:landscape) and (max-height:350px){
 .game-view .word-card{padding:4px;gap:0}.game-view .word-card strong{font-size:1.15rem}.game-view .word-card span,.game-view .word-card small{font-size:.7rem;line-height:1.2}
 .game-view .word-card .button{min-height:34px;margin-top:2px;padding:4px}.game-view .game-nav .button{min-height:36px;padding:4px 8px;font-size:.75rem}
 .game-view .example{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
