@font-face{font-family:Bricolage;src:url("aset/judul.woff2") format("woff2");font-weight:600 800;font-display:swap}
@font-face{font-family:Nunito;src:url("aset/isi.woff2") format("woff2");font-weight:400 800;font-display:swap}

:root{
  color-scheme:light;
  --forest:#183d34;
  --ink:#283f35;
  --cream:#fff9e4;
  --gold:#ffcb55;
  --lime:#c2ec7b;
  --sky:#b8eff5;
  --plate-gold:url("aset/ui/tombol-emas.webp");
  --plate-green:url("aset/ui/tombol-hijau.webp");
  --plate-cream:url("aset/ui/tombol-krem.webp");
  --plate-jade:url("aset/ui/tombol-rimba.webp");
  --display:Bricolage,"Trebuchet MS",sans-serif;
}
*{box-sizing:border-box}
[v-cloak]{display:none}
html,body{margin:0;height:100%;overflow:hidden}
body{background:#112c28;color:var(--ink);font:700 16px/1.3 Nunito,"Segoe UI",sans-serif}
#app{display:grid;place-items:center;height:100%;height:100dvh}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:disabled{cursor:default}
:focus-visible{outline:3px solid #3a7551;outline-offset:3px}
h1,p{margin:0}
h1{font:800 4.5cqw/.99 var(--display);letter-spacing:-.025em;text-wrap:balance}
img{display:block;max-width:100%;object-fit:contain}

.game{
  --garden:url("aset/kebun.webp");
  container-type:inline-size;
  position:relative;
  width:min(100vw,177.77778vh);
  width:min(100vw,177.77778dvh);
  aspect-ratio:16 / 9;
  overflow:hidden;
  isolation:isolate;
  background:var(--forest) var(--garden) center / cover no-repeat;
  font-size:clamp(12px,1.5cqw,36px);
}
.title-screen{
  position:relative;
  display:grid;
  align-items:center;
  height:100%;
  padding:4.5cqw;
}
.title-scenery,.title-scenery::after,.title-animal,.title-animal::before,.title-sun,.title-sun::before,.title-sun::after{
  position:absolute;inset:0;pointer-events:none;
}
.title-scenery{overflow:hidden;z-index:0}
.title-scenery::after{
  content:"";
  background:linear-gradient(90deg,#142138 0%,#182941f5 27%,#1a2a428a 48%,#19294214 67%,transparent 78%);
}
.title-animal::before{content:"";background:var(--garden) center / cover no-repeat}
.butterfly{mask-image:radial-gradient(ellipse 31% 37% at 76% 21%,#000 72%,transparent 100%)}
.butterfly::before{transform-origin:76% 24%;animation:butterfly-drift 5.6s ease-in-out infinite}
.frog{mask-image:radial-gradient(ellipse 21% 26% at 87% 74%,#000 67%,transparent 100%)}
.frog::before{transform-origin:87% 83%;animation:frog-breath 3.8s ease-in-out infinite}
.title-sun{
  background:radial-gradient(ellipse 44% 52% at 99% 3%,#fff4bba8 0%,#ffdd7c45 31%,transparent 77%);
  animation:sun-bloom 8.5s ease-in-out infinite;
}
.title-sun::before{
  content:"";
  background:conic-gradient(at 98% 2%,transparent 184deg,#fff3be72 190deg,transparent 201deg,
    transparent 216deg,#ffe9a66e 224deg,transparent 235deg,transparent 245deg,#fff5bd60 251deg,transparent 261deg);
  mask-image:radial-gradient(ellipse 58% 87% at 98% 3%,#000 3%,transparent 87%);
  filter:blur(.62cqw);
  transform-origin:98% 2%;
  animation:sun-rays 10s ease-in-out infinite;
}
.title-sun::after{
  content:"";
  background:
    radial-gradient(circle at 94% 19%,#fff6c9d9 0 .12cqw,transparent .31cqw),
    radial-gradient(circle at 83% 32%,#ffefabc4 0 .10cqw,transparent .27cqw),
    radial-gradient(circle at 85% 54%,#fff3c7c9 0 .12cqw,transparent .3cqw),
    radial-gradient(circle at 68% 49%,#ffeab8ad 0 .10cqw,transparent .26cqw);
  animation:sun-motes 7s ease-in-out infinite;
}
.title-copy,.title-sound{z-index:1}
.title-copy{color:var(--cream);width:49%;display:grid;justify-items:start;gap:1.45cqw}
.title-copy h1{
  color:#fff8d7;
  font-size:10.8cqw;
  line-height:.87;
  letter-spacing:-.075em;
  text-align:left;
  text-shadow:0 .36cqw #10192b,0 .65cqw #10192b;
}
.title-copy em{font-style:normal;color:var(--gold)}
.title-copy p{font-size:2.15cqw;line-height:1.22;max-width:24ch;text-wrap:balance;margin:1.05cqw 0 .2cqw}
.title-sound{position:absolute;inset-block-start:2.1cqw;inset-inline-end:4.2cqw}
.under:focus-visible,.hud button:focus-visible,.title-sound:focus-visible{outline-color:#fff1ab}
.action,.chip,.under,.trail button,.dots button,.answers button{
  background:var(--plate,var(--plate-cream)) center / 100% 100% no-repeat;
  border:0;
  transition:transform .17s cubic-bezier(.2,.75,.3,1.3),filter .16s ease;
}
:is(.action,.chip,.under,.trail button,.dots button,.answers button):hover:not(:disabled){filter:brightness(1.07);transform:translateY(-.08em)}
:is(.action,.chip,.under,.trail button,.dots button,.answers button):active:not(:disabled){transform:translateY(.12em) scale(.97);filter:brightness(.96)}
.action,.chip,.under{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:.48em;
  white-space:nowrap;
  border-radius:.84em .84em .78em .78em;
  color:var(--ink);
  font-weight:900;
  line-height:1.15;
}
.action{
  min-height:max(40px,4.45cqw);
  padding:.61em 1.14em .76em;
  font-size:clamp(13px,1.65cqw,39px);
}
.gold{--plate:var(--plate-gold);color:#402f18}
.green{--plate:var(--plate-green);color:#213c26}
.under{--plate:var(--plate-jade);color:#fff9df;padding:.57em 1em .7em;font-size:clamp(12px,1.28cqw,31px)}
.chip{
  min-height:max(37px,3.4cqw);
  padding:.49em .88em .62em;
  font-size:clamp(12px,1.32cqw,31px);
}
.ui-icon{width:1.27em;height:1.27em;flex:none;pointer-events:none}
.action .ui-icon,.icon-button .ui-icon{width:1.5em;height:1.5em}
.icon-button{width:max(38px,3.4cqw);aspect-ratio:1;padding:0 0 .1em;font-size:clamp(17px,1.8cqw,42px)}

.play{
  height:100%;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  gap:1.4cqw;
  padding:2.1cqw 4.2cqw 3cqw;
  background:linear-gradient(180deg,#173c34ad,#173c344d 35%,#173c3480);
}
.hud{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1cqw}
.hud button{justify-self:start}
.hud-tools{display:flex;gap:max(5px,.56cqw);justify-self:end}
.trail{display:flex;align-items:center;gap:.4cqw;padding:.48cqw .55cqw .64cqw;border:1px solid #ffffff65;border-radius:1.35cqw;background:#163c34;color:#fcf9df;box-shadow:inset 0 1px #fff3,0 .2cqw #14352c}
.trail button{
  --plate:var(--plate-jade);
  display:inline-flex;align-items:center;gap:.32em;
  min-height:max(32px,3.05cqw);padding:.27em .75em .43em;border-radius:.62em;color:inherit;
  font-size:clamp(12px,1.42cqw,32px);font-weight:900;white-space:nowrap;
}
.trail button[aria-current]{--plate:var(--plate-gold);color:#3b321d}

.panel{
  position:relative;
  display:grid;
  min-height:0;
  border:1px solid #fffce1;
  border-radius:2.45cqw;
  padding:2.2cqw 3.25cqw;
  background:var(--cream);
  box-shadow:0 .58cqw 0 #9faa74,0 1.1cqw 2.3cqw #071e1a66;
  animation:arrive .22s ease-out both;
}
.centered{align-content:center;justify-items:center;gap:2cqw;text-align:center}
.heading p,.board-title p{font-size:clamp(12px,1.55cqw,36px);margin-top:.65cqw}
.tile-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(72cqw,100%);gap:1.6cqw;align-items:stretch}
.animal-tile,.idea-tile{
  display:grid;align-content:start;justify-items:center;gap:.7cqw;min-width:0;
  border:1px solid var(--tile-border,var(--species));
  background:var(--tile,var(--species-bg));
  border-radius:1.75cqw;padding:1.05cqw 1cqw 1.25cqw;
  box-shadow:0 .43cqw 0 var(--tile-border,var(--species));
  transition:transform .16s ease,filter .16s ease;
}
.animal-tile{overflow:hidden;padding:1.05cqw;gap:.72cqw}
.animal-tile img{width:min(100%,17.2cqw);height:auto;aspect-ratio:1;object-fit:contain;border-radius:1.15cqw;border:max(1px,.16cqw) solid #fffc}
.animal-tile strong,.idea-tile strong{font:800 2.4cqw/1.04 var(--display)}
.animal-tile strong,.card-name{
  display:grid;place-items:center;width:100%;min-width:0;
  background:var(--plate,var(--plate-cream)) center / 100% 100% no-repeat;
  overflow-wrap:anywhere;text-wrap:balance;
}
.animal-tile strong{padding:.46em .6em .59em;text-align:center;font-size:clamp(13px,2.2cqw,50px)}
.animal-tile:hover{transform:translateY(-.36cqw);filter:saturate(1.1)}
.animal-tile:active{transform:translateY(.24cqw)}
.tile-0{--tile:#e8f6c6;--tile-border:#a1c469}
.tile-1{--tile:#def3fa;--tile-border:#80c6d6}
.tile-2{--tile:#f1e6ff;--tile-border:#c5a4e5}
.idea-tile{padding:1.8cqw 1cqw 1.75cqw}
.tile-icon{width:8.3cqw;aspect-ratio:1;margin-bottom:.25cqw}
.idea-tile small{font-size:clamp(12px,1.4cqw,33px);line-height:1.2;text-wrap:balance}

.puzzle{grid-template-rows:auto minmax(0,1fr) minmax(0,1fr) auto;gap:.88cqw;padding:1.65cqw 3.05cqw 2cqw}
.board-title{display:flex;align-items:center;justify-content:space-between;gap:1cqw}
.puzzle h1,.quiz h1{font-size:3.65cqw}
.counter{background:var(--species-bg);border:1px solid var(--species);border-radius:1em;padding:.35em .75em;white-space:nowrap;font-weight:900}
.slots,.tray{display:grid;min-height:0;gap:.84cqw;justify-content:center}
.slots{
  grid-template-columns:repeat(var(--jumlah),minmax(0,1fr));
  border-radius:1.05cqw;
  background:var(--species-bg);
  padding:.55cqw;
}
.slot,.card{
  min-width:0;min-height:0;position:relative;display:grid;
  justify-items:center;align-content:center;overflow:hidden;
  line-height:1.03;font-weight:900;font-size:clamp(11px,1.22cqw,28px);
}
.slot{border:2px dashed #71866b;border-radius:1cqw;background:#fffdf2;padding:.4cqw;box-shadow:inset 0 .28cqw .55cqw #57654f29}
.slot.occupied,.slot.ready:hover{border-style:solid;border-color:#6f9764}
.slot.occupied{grid-template-rows:minmax(0,1fr) auto}
.stage-picture{
  display:grid;place-items:center;
  width:100%;min-width:0;min-height:0;align-self:stretch;
  container-type:size;pointer-events:none;
}
.stage-picture img{
  width:min(100cqw,100cqh);height:auto;aspect-ratio:1;object-fit:cover;
  border:1px solid var(--species);border-radius:12%;
}
.slot .stage-picture{width:calc(100% - 3.5em)}
.slot .stage-picture img{animation:pop .27s ease-out both}
.slot-index,.slot-mark{
  display:grid;place-items:center;position:absolute;top:.36cqw;left:.36cqw;
  width:1.65em;aspect-ratio:1;z-index:1;border-radius:50%;background:#ebefda;
}
.slot .slot-mark{left:auto;right:.36cqw;background:transparent;width:1.65em;height:1.65em;animation:none}
.slot .plus{width:2.04em;height:2.04em;animation:none}
.slot.correct{border-color:#388455}
.slot.incorrect{border-color:#bd5b51;background:#fff1e6}
.tray{grid-auto-flow:column;grid-auto-columns:minmax(0,13.7cqw);align-items:stretch;padding:.2cqw 0 .36cqw}
.card{
  grid-template-rows:minmax(0,1fr) auto;
  gap:.35cqw;
  border:1px solid var(--species);border-radius:1cqw;
  background:var(--species-bg);padding:.45cqw;
  transition:transform .16s ease;
}
.slot-name{padding:.23em .06em .12em;text-wrap:balance}
.card-name{min-height:1.6em;padding:.26em .37em .37em}
.card.used{opacity:.38}
.card:active:not(:disabled){transform:translateY(.27cqw)}
.card.picked{--plate:var(--plate-green);transform:translateY(-.24cqw);outline:2px solid #36634a;outline-offset:1px}
.controls{display:flex;align-items:center;justify-content:center;gap:1cqw}
.puzzle-controls,.quiz-controls{justify-content:space-between}
.feedback{font-size:clamp(12px,1.37cqw,32px);line-height:1.2;color:#304630}
.puzzle-controls .feedback,.quiz-controls .feedback{flex:1}
.puzzle-controls .feedback{text-align:center}

.discovery{grid-template-columns:minmax(0,1fr) minmax(0,1.18fr);align-items:center;gap:4cqw}
.discovery-art{justify-self:center;width:min(100%,30cqw);height:auto;aspect-ratio:1;border-radius:2.5cqw;border:.65cqw solid white;box-shadow:0 .48cqw 0 var(--species);animation:pop .3s ease-out both}
.discovery-copy{display:grid;align-content:center;justify-items:start;gap:1.15cqw}
.discovery-copy h1{text-wrap:initial}
.discovery-copy p{font-size:clamp(12px,1.66cqw,37px);max-width:38ch}
.discovery-copy .controls{flex-wrap:wrap;justify-content:flex-start}
.earned{display:inline-flex;gap:.4em;align-items:center;border-radius:2em;background:#ffedb0;padding:.32em .75em;color:#563e21;font-weight:900}
.dots{display:flex;align-items:center;gap:.48cqw}
.dots button{display:grid;place-items:center;border-radius:25%;width:max(34px,3.2cqw);aspect-ratio:1;padding-bottom:.19em;font-weight:900}
.dots button[aria-current]{--plate:var(--plate-gold)}

.quiz{
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:1.2cqw;
  padding:1.65cqw 2.6cqw 2cqw;
  background:var(--cream);
  box-shadow:0 .54cqw 0 #9faa74,0 1.1cqw 2.3cqw #071e1a66;
}
.quiz-top{display:flex;align-items:center;justify-content:space-between;gap:1cqw;color:var(--forest)}
.quiz-progress{display:grid;gap:.3cqw;text-align:right;font-size:clamp(12px,1.35cqw,32px);font-weight:900}
.pips{display:flex;gap:.34cqw}
.pips span{width:max(11px,2.1cqw);height:max(4px,.49cqw);border-radius:1em;background:#d8dec0}
.pips .current{background:#bd7517}
.pips .done{background:#4f8053}
.quiz-round{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.23fr);gap:1.5cqw;min-height:0}
.question-plate{
  min-width:0;min-height:0;
  display:grid;grid-template-rows:auto minmax(0,1fr);gap:.65cqw;
  padding:1.75cqw;border-radius:1.5cqw;
  color:#fff9ee;background:#285742;
  box-shadow:inset 0 -0.27cqw #173d31;
}
.question-plate h2{margin:0;font:800 clamp(13px,2.5cqw,56px)/1.16 var(--display);text-wrap:pretty}
.question-plate h2:focus-visible{outline-color:var(--gold)}
.quiz-sticker{min-height:0;display:grid;place-items:center;container-type:size}
.quiz-sticker img{
  width:min(36cqw,80cqh);height:auto;
  border:solid white max(1px,.68cqw);border-radius:24%;object-fit:contain;aspect-ratio:1;
  transform:rotate(-7deg);
}
.answers{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:.85cqw;min-width:0;padding-bottom:.35cqw}
.answers button{
  display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;text-align:left;gap:.72em;
  min-height:0;padding:.32em max(12px,2cqw) .55em;border-radius:.7em;
  color:var(--forest);
  font-size:clamp(12px,1.75cqw,39px);line-height:1.15;
}
.choice-mark{
  display:grid;place-items:center;
  width:2em;height:2em;line-height:1;
  border-radius:50%;background:#f1cf88;color:#3b331e;font-weight:900;
}
.answers button.right .choice-mark{background:#d9efb1}
.answers button.wrong .choice-mark{background:#ffda84}
.choice-mark .ui-icon{width:1.42em;height:1.42em}
.answers button strong{font-weight:900;min-width:0;overflow-wrap:anywhere}
.answers button.right{--plate:var(--plate-green)}
.answers button.wrong{--plate:var(--plate-gold)}
.quiz-controls{min-height:max(49px,5cqw);padding:.5cqw .8cqw .67cqw 1.2cqw;border-radius:.89cqw;background:#e7edd1}
.finale .star{width:11cqw;aspect-ratio:1;animation:pop .35s ease-out both}

.rotate{display:none}
.screen-message{
  position:fixed;z-index:2;bottom:2dvh;left:50%;transform:translateX(-50%);pointer-events:none;
  max-width:90vw;width:max-content;padding:.65rem 1rem;border-radius:.65rem;
  background:#1f4438;color:white;text-align:center;font-size:14px;
}
@keyframes arrive{from{transform:translateY(.4cqw);opacity:.6}to{transform:none;opacity:1}}
@keyframes pop{from{transform:scale(.86);opacity:.68}72%{transform:scale(1.037)}to{transform:none;opacity:1}}
@keyframes butterfly-drift{
  0%,100%{transform:none}
  45%{transform:translate(.18cqw,-.58cqw) rotate(-.65deg) scale(1.008,1.026)}
  68%{transform:translate(-.13cqw,-.32cqw) rotate(.35deg) scale(1.01,1.013)}
}
@keyframes frog-breath{
  0%,100%{transform:none}
  50%{transform:scale(1.011,1.029)}
}
@keyframes sun-bloom{0%,100%{opacity:.62}55%{opacity:.96}}
@keyframes sun-rays{0%,100%{transform:rotate(-2deg)}55%{transform:rotate(3deg)}}
@keyframes sun-motes{0%,100%{transform:translateY(.32cqw);opacity:.35}55%{transform:translateY(-.85cqw);opacity:.93}}

@media (max-height:460px) and (orientation:landscape){
  .play{gap:1cqw;padding:1.6cqw 3.5cqw 2cqw}
  .panel{padding:1.6cqw 2.45cqw}
  .centered{gap:1.55cqw}
  .puzzle{gap:.74cqw}
  .tray{grid-auto-columns:minmax(0,16.4cqw)}
  .trail button{padding:.22em .72em .36em}
  .quiz{gap:.95cqw}
}
@media (max-width:550px){
  .trail button .ui-icon{display:none}
}
@media (orientation:portrait) and (pointer:coarse){
  .game{display:none}
  .rotate{display:grid;justify-items:center;text-align:center;gap:18px;padding:24px;color:var(--cream)}
  .rotate h1{font-size:clamp(30px,9vw,52px)}
  .rotate p{max-width:25ch}
  .rotate .action{min-height:46px;font-size:16px}
  .phone{width:76px;height:76px}
}
@media(forced-colors:active){button{outline:1px solid ButtonText}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
