:root{--cream:#fff3d2;--wood:#9b572b;--wood2:#5b3118;--green:#46c636;--green2:#168f29;--gold:#ffc936;--ink:#352318}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#153a2d;font-family:"Arial Rounded MT Bold","Trebuchet MS",Arial,sans-serif;color:var(--ink);touch-action:manipulation}button{font:inherit;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}.hidden{display:none!important}
#game{position:relative;width:100%;height:100dvh;max-width:1200px;margin:auto;overflow:hidden;background:#244c39;box-shadow:0 0 90px #000b}.screen{position:absolute;inset:0;display:none;overflow:hidden;background-position:center;background-size:cover;background-repeat:no-repeat}.screen.active{display:block;animation:screenIn .28s ease-out}@keyframes screenIn{from{opacity:0;transform:scale(1.015)}to{opacity:1;transform:none}}
.home{background-image:linear-gradient(#00000006,#0000001b),url('../assets/backgrounds/home.webp')}.worlds,.map{background-image:linear-gradient(#092d2730,#092d2715),url('../assets/backgrounds/world-map.webp')}.question{background-image:url('../assets/backgrounds/question.jpg')}.reward{background-image:url('../assets/backgrounds/win.jpg')}.mini{background-image:url('../assets/backgrounds/minigame.jpg')}.collection{background-image:url('../assets/backgrounds/collection.jpg')}
.hud{position:absolute;z-index:100;left:0;right:0;top:0;display:flex;align-items:center;padding:max(10px,env(safe-area-inset-top)) 14px 8px;pointer-events:none}.hud>*{pointer-events:auto}.hud-spacer{flex:1}.back-btn{width:58px;height:58px;border-radius:18px;background:linear-gradient(#bd7540,#75401f);border:4px solid #4d2a17;color:#fff4dc;font-size:38px;line-height:1;box-shadow:inset 0 3px #fff4,0 6px 0 #3d2113,0 10px 20px #0004;text-shadow:0 3px #4f2d1b}.back-btn:active{transform:translateY(5px);box-shadow:inset 0 3px #0002,0 2px 0 #3d2113}.coin-pill{display:flex;align-items:center;gap:8px;padding:7px 14px;border:3px solid #805020;border-radius:20px;background:linear-gradient(#fff7d6,#eec76f);box-shadow:0 5px 0 #513117,0 9px 16px #0003;font-size:21px}.coin-pill img{width:30px}
.game-logo{position:absolute;z-index:10;left:5%;top:4%;width:min(54%,540px);filter:drop-shadow(0 14px 13px #0005)}.hero-beaver{position:absolute;z-index:9;left:4%;bottom:0;width:min(46%,450px);max-height:66%;object-fit:contain;filter:drop-shadow(0 18px 13px #0005);animation:idle 2.8s ease-in-out infinite;transform-origin:50% 100%}@keyframes idle{50%{transform:translateY(-7px) rotate(.6deg)}}
.home-actions{position:absolute;z-index:12;right:6%;top:32%;width:min(39%,410px);display:flex;flex-direction:column;align-items:center;gap:10px}.png-play-btn{padding:0;background:none;width:108%;filter:drop-shadow(0 8px 8px #0004);transition:.12s}.png-play-btn img{display:block;width:100%}.png-play-btn:active{transform:translateY(6px) scale(.98);filter:drop-shadow(0 2px 2px #0003) brightness(.93)}
.wood-btn,.green-btn,.world-card{position:relative;color:#fff7e3;font-weight:1000;letter-spacing:.4px;text-shadow:0 3px 0 #4d2817;transition:.12s}.wood-btn{width:100%;min-height:68px;border:4px solid #542d18;border-radius:19px;background:linear-gradient(#b66b38,#82461f 55%,#6e381c);box-shadow:inset 0 3px #ef9a61,0 6px 0 #3d2214,0 9px 16px #0004;font-size:24px}.wood-btn:before{content:"";position:absolute;inset:8px 14px;border-top:2px solid #d88952;border-bottom:2px solid #6b3419;opacity:.8}.wood-btn span{position:relative;z-index:1}.wood-btn:active,.world-card:active,.green-btn:active{transform:translateY(5px);filter:brightness(.94)}.reset-link{position:absolute;right:8%;bottom:4%;z-index:12;border-radius:12px;padding:8px 14px;background:#4e2d1dbb;color:#f6e6c6;border:2px solid #b67a4a;font-weight:800}
.screen-title{position:absolute;z-index:20;top:2.6%;left:50%;transform:translateX(-50%);min-width:330px;padding:12px 38px;text-align:center;border-radius:20px;border:4px solid #532c17;background:linear-gradient(#bc713d,#7d431f);box-shadow:inset 0 3px #ef9c65,0 7px 0 #3a2113,0 12px 22px #0004;color:#fff6e4;font-size:clamp(26px,4vw,40px);font-weight:1000;text-shadow:0 3px #56301c}
.world-grid{position:absolute;z-index:12;left:50%;top:54%;transform:translate(-50%,-50%);width:min(86%,860px);display:grid;grid-template-columns:1fr 1fr;gap:18px}.world-card{min-height:128px;padding:18px 24px;border:5px solid #512b18;border-radius:25px;background:linear-gradient(160deg,#bd7440,#84481f 65%,#6d371b);box-shadow:inset 0 4px #f0a16b,0 8px 0 #3a2113,0 15px 24px #0004;text-align:left}.world-card:before{content:"";position:absolute;inset:12px;border:2px solid #d78a55;border-radius:17px;opacity:.55}.world-card span,.world-card small{position:relative;z-index:1;display:block}.world-card span{font-size:clamp(24px,3vw,34px)}.world-card small{font-size:15px;margin-top:8px;color:#ffe8bf;text-shadow:0 2px #4f2917}.world-card:hover{filter:brightness(1.08);transform:translateY(-3px)}.mini-world{grid-column:1/-1;background:linear-gradient(160deg,#55cc38,#219a30 65%,#147728);border-color:#194f22;box-shadow:inset 0 4px #b8f071,0 8px 0 #12441c,0 15px 24px #0004;text-align:center}.mini-world small{color:#eaffd8}
.level-map{position:absolute;z-index:12;inset:10% 4% 4%}.map-node{position:absolute;width:150px;height:150px;transform:translate(-50%,-50%);padding:0;background:none;filter:drop-shadow(0 12px 10px #0005);transition:.15s}.map-node img{width:100%;height:100%;object-fit:contain}.map-node:not(:disabled):hover{transform:translate(-50%,-55%) scale(1.06)}.map-node:not(:disabled):active{transform:translate(-50%,-47%) scale(.98)}.map-node:disabled{filter:grayscale(.2) brightness(.8) drop-shadow(0 10px 8px #0004)}.node-num{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);font-size:34px;font-weight:1000;color:#fff7dd;text-shadow:0 3px 0 #58331e,0 0 7px #0006}.map-progress{position:absolute;z-index:20;right:5%;top:3.5%;padding:9px 16px;border-radius:18px;background:#4e2c1ddd;color:#fff3d5;border:3px solid #9e6337;font-size:22px;font-weight:1000}.map-hint{position:absolute;z-index:20;left:50%;bottom:2%;transform:translateX(-50%);padding:9px 18px;border-radius:14px;background:#2f2118c9;color:#fff0d2;font-weight:900}
.question-head{position:absolute;z-index:20;left:50%;top:2.5%;transform:translateX(-50%);display:flex;gap:12px;align-items:center}.question-world,.question-step{padding:10px 18px;border-radius:15px;background:#74401f;color:#fff4db;border:3px solid #4d2917;box-shadow:0 5px 0 #351d11;font-weight:1000}.question-step{background:#fff0c7;color:#4b2d1c;border-color:#9f6c39;box-shadow:0 5px 0 #6b461f;text-shadow:none}.quiz-wrap{position:absolute;z-index:12;inset:11% 4% 3%;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:center}.paper-card{background:linear-gradient(#fff8df,#f3d69b);border:6px solid #76441f;border-radius:28px;box-shadow:inset 0 0 0 3px #f5bd6c,0 14px 28px #0004;padding:24px;min-height:72%;display:flex;flex-direction:column;justify-content:center}.paper-card h2{text-align:center;font-size:clamp(25px,3.5vw,42px);margin:14px 0 18px}.progress{height:13px;background:#d4aa6a;border-radius:20px;overflow:hidden;border:2px solid #9e713c}.progress i{display:block;height:100%;background:linear-gradient(90deg,#54d83e,#ffce39);width:20%;transition:.25s}.visual-task{min-height:150px;display:grid;place-items:center;margin:5px 0 20px}.answers{display:grid;grid-template-columns:1fr 1fr;gap:14px}.answer{min-height:70px;border-radius:18px;border:4px solid #7b4b27;background:linear-gradient(#fffdf1,#efd8aa);box-shadow:0 5px 0 #5f351c;font-size:clamp(22px,3vw,31px);font-weight:1000;color:#38251a}.answer:hover{filter:brightness(1.05);transform:translateY(-2px)}.answer:active{transform:translateY(4px);box-shadow:0 1px 0 #5f351c}.answer.correct{background:#70db58;border-color:#278c2d;color:#124e17}.answer.wrong{background:#ff8f7a;border-color:#b52e2e}.coach{position:relative;align-self:end;text-align:center}.quiz-beaver{width:100%;max-height:360px;object-fit:contain;filter:drop-shadow(0 12px 10px #0004);animation:idle 2.8s ease-in-out infinite}.speech{margin-top:-25px;position:relative;padding:14px 18px;border-radius:18px;background:#fff6d7;border:4px solid #6c4024;font-weight:900;box-shadow:0 7px 0 #4c2b17}.task-icons{display:flex;justify-content:center;gap:18px;flex-wrap:wrap}.task-icon img{width:94px;height:94px;object-fit:contain}.number-row,.shape-row,.color-row{display:flex;align-items:center;justify-content:center;gap:18px;font-size:52px}.big-word,.letters,.word-pair{font-size:clamp(42px,7vw,78px);font-weight:1000;color:#49301e;text-align:center}.letters{letter-spacing:18px}.color-row i{width:48px;height:48px;border-radius:50%;display:block}.blue{background:#338bea}.red{background:#ec4a4a}
.reward-title{position:absolute;z-index:20;left:50%;top:6%;transform:translateX(-50%);font-size:clamp(44px,7vw,78px);font-weight:1000;color:#ffe04c;text-shadow:0 5px 0 #7b451a,0 9px 20px #0005}.reward-beaver{position:absolute;z-index:10;left:7%;bottom:4%;width:37%;max-height:62%;object-fit:contain;filter:drop-shadow(0 15px 12px #0004);animation:rewardHop 1.4s ease-in-out infinite}@keyframes rewardHop{50%{transform:translateY(-12px) rotate(-2deg)}}.reward-card{position:absolute;z-index:12;right:8%;top:27%;width:min(48%,470px);padding:24px;border-radius:28px;background:linear-gradient(#fff7dc,#f1d092);border:6px solid #75451f;box-shadow:inset 0 0 0 3px #f5ba64,0 14px 28px #0005;text-align:center}.reward-card h2{font-size:34px;margin:8px}.reward-card p{font-size:19px;font-weight:800}.stars-row{display:flex;justify-content:center;gap:4px}.stars-row img{width:78px}.reward-coins{display:flex;justify-content:center;align-items:center;gap:12px;font-size:34px}.reward-coins img{width:64px}.green-btn{position:absolute;z-index:20;right:12%;bottom:8%;min-width:300px;padding:18px 28px;border-radius:22px;background:linear-gradient(#70e641,#22a72c 60%,#168124);border:5px solid #195d24;box-shadow:inset 0 4px #c4fb83,0 8px 0 #124c1d,0 13px 22px #0004;color:#fffbe9;font-size:25px;font-weight:1000;text-shadow:0 3px #15571c}
.mini .screen-title{top:2%}.mini-hud{position:absolute;z-index:20;top:11%;left:50%;transform:translateX(-50%);display:flex;gap:16px}.mini-hud b{padding:9px 14px;border-radius:14px;background:#4e2c1ddd;color:#fff2d5;border:3px solid #9c6136}.mini canvas{position:absolute;z-index:10;left:50%;bottom:7%;transform:translateX(-50%);height:min(78%,620px);max-width:94%;border-radius:24px}.mini-tip{position:absolute;z-index:20;bottom:2%;left:50%;transform:translateX(-50%);background:#4f2c1ccc;color:#fff0d5;padding:8px 16px;border-radius:12px}.mini-continue{right:50%;transform:translateX(50%);bottom:4%}
.collection-card{position:absolute;z-index:10;left:7%;right:36%;top:15%;bottom:9%;padding:24px;background:#5a321edb;border:6px solid #3d2114;border-radius:28px;box-shadow:inset 0 0 0 3px #9b6037,0 14px 28px #0005}.toy-shelf{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;height:100%}.toy-card{background:linear-gradient(#fff4d3,#e8c080);border:4px solid #7c4a26;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px;text-align:center}.toy-card img{width:85px;height:85px;object-fit:contain}.toy-card b{font-size:18px}.toy-card small{font-weight:800;color:#765136}.collection-beaver{position:absolute;z-index:12;right:3%;bottom:0;width:34%;max-height:62%;object-fit:contain;filter:drop-shadow(0 16px 12px #0004)}.toast{position:absolute;z-index:300;left:50%;top:18%;transform:translate(-50%,-20px);padding:12px 20px;border-radius:15px;background:#2b211adf;color:#fff;font-weight:900;opacity:0;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:760px){.game-logo{width:68%;left:3%}.hero-beaver{width:53%;left:-2%}.home-actions{width:48%;right:3%;top:35%}.wood-btn{min-height:56px;font-size:18px}.world-grid{top:55%;grid-template-columns:1fr;gap:10px;width:88%;max-height:78%;overflow:auto;padding:12px}.world-card{min-height:82px;padding:12px 18px}.world-card span{font-size:22px}.mini-world{grid-column:auto}.level-map{inset:12% 0 4%}.map-node{width:105px;height:105px}.node-num{font-size:25px}.quiz-wrap{grid-template-columns:1fr;inset:12% 3% 2%}.coach{display:none}.paper-card{min-height:82%;padding:15px}.paper-card h2{font-size:25px}.answer{min-height:58px;font-size:20px}.reward-beaver{width:44%;left:1%}.reward-card{right:4%;width:58%;padding:15px}.green-btn{right:5%;min-width:230px;font-size:20px}.collection-card{left:3%;right:3%;top:14%;bottom:33%}.collection-beaver{width:46%;right:0}.toy-shelf{grid-template-columns:repeat(2,1fr)}}

/* v6 — dialogue, 10-level worlds, milestone rewards */
.music-toggle{width:48px;height:48px;margin-right:10px;border-radius:50%;border:3px solid #805020;background:linear-gradient(#fff5c8,#efc75e);box-shadow:0 4px 0 #513117;color:#513117;font-size:25px;font-weight:1000}
.beaver-talk{position:absolute;z-index:25;max-width:270px;padding:12px 16px;border:4px solid #684024;border-radius:20px;background:#fff7dc;color:#4a2b19;font-size:17px;font-weight:1000;box-shadow:0 7px 0 #452818,0 12px 18px #0003;transition:.25s}.beaver-talk:after{content:"";position:absolute;width:18px;height:18px;background:#fff7dc;border-left:4px solid #684024;border-bottom:4px solid #684024;transform:rotate(-45deg)}.home-talk{left:32%;bottom:26%}.home-talk:after{left:-12px;bottom:18px}.world-talk{left:3.5%;bottom:5%;max-width:230px}.world-talk:after{left:24px;bottom:-12px;transform:rotate(-45deg)}.map-talk{left:3%;bottom:2.5%;max-width:240px}.talk-pop{transform:translateY(-4px) scale(1.025)}
.grand-prize{position:absolute;z-index:18;right:4%;top:2.5%;display:flex;align-items:center;gap:10px;padding:9px 13px;border-radius:18px;border:3px solid #815024;background:linear-gradient(#fff0a8,#e7ae3a);box-shadow:0 5px 0 #543417,0 10px 20px #0003}.grand-prize img{width:58px;height:58px;object-fit:contain}.grand-prize b,.grand-prize span,.grand-prize small{display:block}.grand-prize b{font-size:17px}.grand-prize span{font-size:12px}.grand-prize small{font-size:13px;font-weight:1000;margin-top:2px}.grand-prize.won{box-shadow:0 0 20px #ffe56d,0 5px 0 #543417}.grand-prize.won:after{content:"ПОЛУЧЕНО";font-size:11px;font-weight:1000;color:#26722a}
.world-grid{top:57%;grid-template-columns:1fr 1fr;gap:14px}.world-card{min-height:105px;padding:15px 22px;font-family:"Arial Rounded MT Bold","Trebuchet MS",Arial,sans-serif}.world-card span{font-size:clamp(23px,2.6vw,31px);letter-spacing:.2px}.world-card small{font-size:14px}.world-progress{position:absolute;right:16px;bottom:12px;z-index:3;font-style:normal;font-size:14px;padding:3px 8px;border-radius:12px;background:#3d2317aa;color:#ffe9b8}.mini-world{grid-column:1/-1;min-height:92px;order:-1}
.world-prize-bar{position:absolute;z-index:22;left:3%;top:2.5%;display:flex;gap:8px}.world-prize{display:flex;align-items:center;gap:7px;min-width:150px;padding:7px 10px;border-radius:16px;background:#fff0c8e8;border:3px solid #8c5a2d;box-shadow:0 5px 0 #5b381d,0 8px 15px #0002}.world-prize img{width:45px;height:45px;object-fit:contain}.world-prize b,.world-prize small{display:block;line-height:1.08}.world-prize b{font-size:13px}.world-prize small{font-size:10px;margin-top:4px}.world-prize.won{filter:saturate(1.15);box-shadow:0 0 15px #ffe36b,0 5px 0 #5b381d}.world-prize.won:after{content:"✓";font-size:20px;color:#2a9a35;font-weight:1000}
.level-map{inset:12% 1% 3%}.map-node{width:118px;height:118px}.node-num{top:38%;font-size:29px;color:#fff9dd;text-shadow:0 3px 0 #4c2b18,0 0 6px #0008}.map-progress{right:3%;top:3.6%;font-size:19px}.map-hint{bottom:1.5%}
.special-prize{margin-top:14px}.special-prize-card{display:flex;align-items:center;justify-content:center;gap:12px;padding:10px;border-radius:17px;background:#fff2b5;border:3px solid #b87927;box-shadow:inset 0 0 0 2px #ffe38b}.special-prize-card img{width:70px;height:70px;object-fit:contain}.special-prize-card b,.special-prize-card span{display:block;text-align:left}.special-prize-card b{color:#8c4f15;font-size:17px}.special-prize-card span{font-size:15px;font-weight:900}
.collection-card{overflow:auto}.toy-shelf{grid-template-columns:repeat(4,1fr);height:auto}.toy-card{min-height:150px}.locked-toy img{filter:grayscale(1) brightness(.6);opacity:.55}.locked-toy{background:linear-gradient(#e5ddc6,#bda77f)}
@media(max-width:760px){.beaver-talk{font-size:13px;max-width:180px;padding:8px 10px}.home-talk{left:28%;bottom:25%}.world-talk,.map-talk{display:none}.grand-prize{right:2%;top:9%;padding:5px 7px}.grand-prize img{width:38px;height:38px}.grand-prize span{display:none}.world-grid{top:61%;max-height:72%}.world-card{min-height:76px}.world-card small{display:none}.world-prize-bar{top:10%;left:2%;right:2%;justify-content:center}.world-prize{min-width:0;flex:1;padding:5px}.world-prize img{width:34px;height:34px}.world-prize small{display:none}.level-map{inset:18% 0 4%}.map-node{width:84px;height:84px}.node-num{font-size:21px;top:37%}.toy-shelf{grid-template-columns:repeat(3,1fr)}.toy-card{min-height:125px}}

/* v6.1 — mobile-first polish */
html,body,#game{min-height:100%;min-height:100svh}
body{overscroll-behavior:none;-webkit-user-select:none;user-select:none}
button{touch-action:manipulation}
.screen{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}

@media (max-width:760px){
  #game{width:100vw;height:100svh;max-width:none;box-shadow:none}
  .hud{padding-top:max(8px,env(safe-area-inset-top));padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
  .back-btn{width:48px;height:48px;border-radius:15px;border-width:3px;font-size:30px;box-shadow:inset 0 2px #fff4,0 4px 0 #3d2113,0 7px 14px #0004}
  .music-toggle{width:42px;height:42px;margin-right:7px;border-width:2px;font-size:21px}
  .coin-pill{padding:5px 9px;border-width:2px;border-radius:15px;font-size:16px;gap:5px;box-shadow:0 3px 0 #513117,0 6px 12px #0003}.coin-pill img{width:24px}

  .screen-title{top:max(8px,env(safe-area-inset-top));min-width:0;width:auto;max-width:62vw;padding:8px 18px;border-width:3px;border-radius:16px;font-size:clamp(21px,6vw,29px);box-shadow:inset 0 2px #ef9c65,0 4px 0 #3a2113,0 8px 14px #0004;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  /* Home: keep mascot visible but controls thumb-friendly */
  .home{background-position:center center}
  .game-logo{left:50%;top:8%;transform:translateX(-50%);width:min(88vw,510px);max-height:24svh;object-fit:contain}
  .hero-beaver{left:-6%;bottom:-1%;width:58vw;max-width:340px;max-height:53svh}
  .home-actions{right:3%;top:36%;width:52vw;max-width:300px;gap:8px}
  .png-play-btn{width:108%}
  .wood-btn{min-height:50px;border-width:3px;border-radius:15px;font-size:16px;box-shadow:inset 0 2px #ef9a61,0 4px 0 #3d2214,0 7px 12px #0004}
  .wood-btn:before{inset:6px 10px}
  .home-talk{left:7%;bottom:46%;max-width:44vw;font-size:12px;padding:7px 9px;border-width:3px;box-shadow:0 4px 0 #452818,0 7px 12px #0003}
  .reset-link{right:3%;bottom:max(9px,env(safe-area-inset-bottom));font-size:10px;padding:6px 9px;opacity:.8}

  /* Worlds: no clipped cards, native vertical scrolling */
  .worlds{overflow:hidden;background-position:center}
  .grand-prize{top:68px;right:8px;max-width:48vw;padding:5px 7px;border-width:2px;border-radius:14px;box-shadow:0 3px 0 #543417,0 6px 12px #0003}.grand-prize img{width:34px;height:34px}.grand-prize b{font-size:12px}.grand-prize small{font-size:10px}.grand-prize span{display:none}
  .world-grid{left:4%;right:4%;top:126px;bottom:max(12px,env(safe-area-inset-bottom));width:auto;max-height:none;transform:none;display:flex;flex-direction:column;gap:9px;padding:6px 4px 20px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}.world-grid::-webkit-scrollbar{display:none}
  .world-card,.mini-world{flex:0 0 auto;width:100%;min-height:74px;padding:11px 16px;border-width:3px;border-radius:18px;box-shadow:inset 0 3px #f0a16b,0 5px 0 #3a2113,0 9px 14px #0003;text-align:left}
  .mini-world{text-align:center;min-height:72px}
  .world-card:before{inset:8px;border-radius:12px}
  .world-card span{font-size:clamp(19px,5.6vw,25px)}.world-card small{display:block;font-size:11px;margin-top:4px;max-width:78%}.world-progress{right:12px;bottom:9px;font-size:11px}
  .world-talk{display:none}

  /* Map: vertical zig-zag route with room for ten nodes */
  .map{overflow:hidden;background-position:center center}
  .world-prize-bar{top:66px;left:6px;right:6px;display:flex;gap:5px;justify-content:center;overflow:hidden}
  .world-prize{min-width:0;flex:1;max-width:170px;padding:4px 6px;border-width:2px;border-radius:12px;box-shadow:0 3px 0 #5b381d,0 6px 10px #0002}.world-prize img{width:30px;height:30px}.world-prize b{font-size:10px}.world-prize small{display:none}
  .map-progress{right:8px;top:68px;padding:5px 9px;border-width:2px;border-radius:12px;font-size:13px}
  .level-map{left:0;right:0;top:116px;bottom:38px;inset:auto 0 38px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:none}.level-map::-webkit-scrollbar{display:none}
  .map-node{width:92px;height:92px;filter:drop-shadow(0 7px 6px #0005)}
  .node-num{top:36%;font-size:22px;text-shadow:0 2px 0 #4c2b18,0 0 5px #0008}
  .map-hint{bottom:max(5px,env(safe-area-inset-bottom));width:90%;text-align:center;font-size:11px;padding:6px 10px}

  /* Questions: everything fits without browser zoom or hidden answers */
  .question{overflow:hidden;background-position:center}
  .question-head{top:64px;width:calc(100% - 84px);justify-content:center;gap:6px}.question-world,.question-step{padding:6px 9px;border-width:2px;border-radius:11px;box-shadow:0 3px 0 #351d11;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.question-world{max-width:70%}
  .quiz-wrap{display:block;inset:106px 8px max(8px,env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}.quiz-wrap::-webkit-scrollbar{display:none}
  .paper-card{min-height:0;padding:12px;border-width:4px;border-radius:20px;box-shadow:inset 0 0 0 2px #f5bd6c,0 8px 17px #0004}
  .paper-card h2{font-size:clamp(20px,5.8vw,27px);margin:10px 0 12px;line-height:1.12}
  .progress{height:9px;border-width:1px}.visual-task{min-height:102px;margin:3px 0 12px}.task-icon img{width:68px;height:68px}.task-icons{gap:10px}.number-row,.shape-row,.color-row{gap:10px;font-size:38px}.big-word,.letters,.word-pair{font-size:clamp(34px,10vw,52px)}.letters{letter-spacing:9px}
  .answers{gap:9px}.answer{min-height:54px;border-width:3px;border-radius:14px;font-size:clamp(18px,5vw,23px);box-shadow:0 3px 0 #5f351c;padding:7px 5px}
  .coach{display:none}

  /* Reward */
  .reward-title{top:72px;font-size:clamp(34px,11vw,52px)}
  .reward-beaver{left:-4%;bottom:2%;width:40vw;max-height:43svh}
  .reward-card{right:3%;top:24%;width:66vw;max-width:390px;padding:12px;border-width:4px;border-radius:20px;box-shadow:inset 0 0 0 2px #f5ba64,0 9px 18px #0004}.reward-card h2{font-size:23px;margin:5px}.reward-card p{font-size:13px;margin:7px}.stars-row img{width:48px}.reward-coins{font-size:26px}.reward-coins img{width:46px}.special-prize-card{padding:6px;gap:7px}.special-prize-card img{width:46px;height:46px}.special-prize-card b{font-size:13px}.special-prize-card span{font-size:11px}
  .reward .green-btn{right:4%;bottom:max(14px,env(safe-area-inset-bottom));min-width:52vw;padding:12px 14px;border-width:4px;border-radius:17px;font-size:17px;box-shadow:inset 0 3px #c4fb83,0 5px 0 #124c1d,0 8px 15px #0004}

  /* Mini game */
  .mini .screen-title{top:max(7px,env(safe-area-inset-top))}
  .mini-hud{top:68px;width:100%;justify-content:center;gap:6px}.mini-hud b{padding:6px 8px;border-width:2px;font-size:12px}
  .mini canvas{left:50%;bottom:50px;width:min(92vw,420px);height:auto;max-height:calc(100svh - 150px);border-radius:17px}
  .mini-tip{bottom:max(7px,env(safe-area-inset-bottom));font-size:10px;padding:5px 8px;white-space:nowrap}
  .mini-continue{right:50%;bottom:max(13px,env(safe-area-inset-bottom));min-width:72vw;padding:12px 14px;font-size:16px}

  /* Collection */
  .collection-card{left:7px;right:7px;top:68px;bottom:max(8px,env(safe-area-inset-bottom));padding:10px;border-width:4px;border-radius:20px;overflow-y:auto;overscroll-behavior:contain}
  .toy-shelf{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.toy-card{min-height:112px;padding:5px;border-width:2px;border-radius:12px}.toy-card img{width:58px;height:58px}.toy-card b{font-size:11px}.toy-card small{font-size:9px}
  .collection-beaver{display:none}
}

@media (max-width:420px){
  .game-logo{top:9%;width:92vw}.hero-beaver{width:62vw;left:-10%;max-height:50svh}.home-actions{width:54vw;right:2%;top:37%}.wood-btn{font-size:14px;min-height:46px}.home-talk{bottom:44%;font-size:11px}
  .screen-title{max-width:58vw;font-size:20px;padding:7px 12px}
  .grand-prize{top:62px}.world-grid{top:116px}.world-card{min-height:68px}.world-card span{font-size:19px}.world-card small{font-size:10px}
  .world-prize-bar{top:60px}.map-progress{top:61px}.level-map{top:105px}.map-node{width:82px;height:82px}.node-num{font-size:19px}
  .question-head{top:58px}.quiz-wrap{inset:96px 6px 6px}.paper-card{padding:10px}.visual-task{min-height:85px}.answer{min-height:48px}
  .reward-card{top:25%;width:69vw}.reward-beaver{width:37vw}.stars-row img{width:42px}
  .toy-shelf{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-height:560px) and (orientation:landscape){
  .game-logo{top:3%;left:4%;transform:none;width:39vw;max-height:31vh}.hero-beaver{left:2%;width:33vw;max-height:66vh}.home-actions{right:4%;top:20%;width:34vw}.home-talk{display:none}
  .world-grid{top:65px;bottom:7px;left:22%;right:4%;display:grid;grid-template-columns:1fr 1fr;overflow:auto}.grand-prize{top:8px;right:8px}.mini-world{grid-column:1/-1}
  .level-map{top:75px;bottom:24px}.world-prize-bar{top:8px;left:70px;right:auto;width:330px}.map-progress{top:10px}.map-hint{display:none}
  .question-head{top:8px}.quiz-wrap{inset:55px 10px 8px}.paper-card{padding:9px}.visual-task{min-height:65px;margin:0 0 7px}.answer{min-height:42px}.paper-card h2{font-size:20px;margin:5px 0 7px}
  .reward-title{top:5px}.reward-card{top:20%;right:5%;width:52%}.reward-beaver{width:32%;max-height:68%}.reward .green-btn{bottom:8px;min-width:35vw}
}

@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}
/* v6.2 polish */
.music-toggle{padding:0;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible}.music-toggle img{width:100%;height:100%;display:block;object-fit:contain;filter:drop-shadow(0 5px 5px #0004);transition:.12s}.music-toggle:active img{transform:translateY(3px) scale(.94)}
.beaver-talk,.speech{background-color:transparent!important;background-image:url('../assets/ui-v7/dialog-bubble.png')!important;background-size:100% 100%!important;background-repeat:no-repeat!important;border:0!important;box-shadow:none!important;padding:20px 28px 28px!important;color:#56351f!important;text-shadow:0 1px #fff9!important;line-height:1.22}.beaver-talk:after{display:none!important}.speech{min-height:96px;display:grid;place-items:center;padding:20px 25px 28px!important}
.world-prize.won:after{display:none!important}.world-prize img{border-radius:12px;filter:drop-shadow(0 4px 5px #0003)}
.mini-select{background-image:linear-gradient(#0e402427,#0e402427),url('../assets/backgrounds/home.webp');background-size:cover;background-position:center}.mini-select-card{position:absolute;left:50%;top:52%;transform:translate(-50%,-50%);width:min(760px,84vw);display:grid;grid-template-columns:1fr 1fr;gap:22px}.mini-choice{min-height:190px;border-radius:28px;border:5px solid #512b18;background:linear-gradient(160deg,#bd7440,#84481f 65%,#6d371b);box-shadow:inset 0 4px #f0a16b,0 9px 0 #3a2113,0 16px 24px #0004;color:#fff7e3;text-shadow:0 3px #4d2817;padding:28px;transition:.14s}.mini-choice b,.mini-choice span{display:block}.mini-choice b{font-size:34px;margin-bottom:12px}.mini-choice span{font-size:17px;color:#ffe8bf}.mini-choice:active{transform:translateY(7px);box-shadow:inset 0 4px #9b572b,0 2px 0 #3a2113}.stars-choice{background:linear-gradient(160deg,#7255c9,#4c3298 65%,#36226f);border-color:#2a1c5c;box-shadow:inset 0 4px #9f86e8,0 9px 0 #24184d,0 16px 24px #0004}.stars-mini{background-image:linear-gradient(#14265536,#14265536),url('../assets/backgrounds/minigame.jpg')}
@media(max-width:760px){.beaver-talk{padding:13px 18px 20px!important}.home-talk{max-width:52vw}.music-toggle{width:46px;height:46px}.mini-select-card{top:50%;width:90vw;grid-template-columns:1fr;gap:14px}.mini-choice{min-height:120px;border-width:4px;border-radius:21px;padding:18px}.mini-choice b{font-size:25px;margin-bottom:7px}.mini-choice span{font-size:13px}.world-prize img{width:38px!important;height:38px!important}.level-map{padding-top:22px}.node-num{top:31%!important}}

/* v6.3 mobile header/dialog/music fixes */
.music-toggle{position:relative!important;width:52px!important;height:52px!important;border-radius:50%!important;background:linear-gradient(#9be94f,#38b83a 58%,#1d7f2a)!important;border:4px solid #75431f!important;box-shadow:inset 0 3px 0 #dfffa0,0 5px 0 #4b2a18,0 9px 14px #0004!important;display:grid!important;place-items:center!important;overflow:visible!important}
.music-toggle .music-note{font-family:Arial,sans-serif;font-size:31px;line-height:1;color:#fff7dc;text-shadow:0 3px 0 #31571c,0 0 4px #0005;transform:translateY(-1px)}
.music-toggle .music-slash{display:none;position:absolute;width:5px;height:39px;border-radius:5px;background:#fff6dc;transform:rotate(-42deg);box-shadow:0 0 0 3px #7e1c18,0 2px 3px #0005}
.music-toggle.is-off{background:linear-gradient(#ff7664,#e13d35 58%,#9f2422)!important;border-color:#6d2d1e!important;box-shadow:inset 0 3px 0 #ffc1b8,0 5px 0 #4b211a,0 9px 14px #0004!important}
.music-toggle.is-off .music-slash{display:block}.music-toggle:active{transform:translateY(4px) scale(.96)}

.beaver-talk,.speech{background:none!important;border:0!important;box-shadow:none!important;color:#4a2c1b!important;text-shadow:none!important;font-family:"Trebuchet MS","Arial Rounded MT Bold",Arial,sans-serif!important;font-weight:900!important;line-height:1.28!important}
.home-talk{width:min(430px,43vw)!important;max-width:none!important;min-height:150px!important;padding:34px 34px 42px!important;border-radius:34px 34px 34px 10px!important;background:linear-gradient(180deg,#fffdf3 0%,#fff3ce 100%)!important;border:5px solid #885527!important;box-shadow:inset 0 0 0 3px #ffd889,0 10px 0 #5b351c,0 18px 30px #0004!important;font-size:clamp(18px,2vw,25px)!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:left!important;letter-spacing:.15px!important}
.home-talk:before{content:"";position:absolute;left:26px;bottom:-28px;width:48px;height:48px;background:#fff3ce;border-left:5px solid #885527;border-bottom:5px solid #885527;transform:skew(-20deg) rotate(-22deg);border-bottom-left-radius:8px}
.world-talk,.map-talk{background:linear-gradient(180deg,#fffdf3,#fff2c9)!important;border:4px solid #885527!important;box-shadow:0 7px 0 #5b351c,0 12px 20px #0003!important;border-radius:24px!important;padding:18px 22px!important;font-size:18px!important}
.speech{min-height:118px!important;padding:24px 28px!important;border-radius:28px!important;background:linear-gradient(180deg,#fffdf3,#fff2c9)!important;border:4px solid #885527!important;box-shadow:0 7px 0 #5b351c,0 12px 20px #0003!important;font-size:19px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}

@media(max-width:760px) and (orientation:portrait){
  .hud{height:62px;align-items:center;padding-top:max(7px,env(safe-area-inset-top));padding-bottom:5px;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right));background:linear-gradient(180deg,#153526dd 0%,#153526a8 70%,transparent 100%);gap:6px}
  .back-btn{width:44px;height:44px;border-width:3px;border-radius:14px;font-size:28px;box-shadow:inset 0 2px #fff4,0 4px 0 #3d2113,0 7px 12px #0003}
  .music-toggle{width:44px!important;height:44px!important;border-width:3px!important;margin-right:3px!important;box-shadow:inset 0 2px 0 #dfffa0,0 4px 0 #4b2a18,0 7px 11px #0003!important}.music-toggle .music-note{font-size:26px}.music-toggle .music-slash{height:32px;width:4px}
  .coin-pill{height:43px;padding:4px 9px;gap:5px;border-width:2px;border-radius:14px;font-size:15px;box-shadow:0 3px 0 #513117,0 6px 11px #0003}.coin-pill img{width:25px}
  .screen-title{top:72px!important;min-width:0!important;width:auto;max-width:66vw;padding:7px 16px;font-size:21px;border-width:3px;border-radius:15px;box-shadow:inset 0 2px #ef9c65,0 4px 0 #3a2113,0 7px 13px #0003;white-space:nowrap}

  .home-talk{left:7%!important;bottom:37%!important;width:72vw!important;max-width:360px!important;min-height:126px!important;padding:24px 25px 31px!important;border-width:4px!important;border-radius:25px 25px 25px 9px!important;font-size:16px!important;line-height:1.35!important;z-index:13!important}
  .home-talk:before{left:24px;bottom:-20px;width:34px;height:34px;border-left-width:4px;border-bottom-width:4px}

  .worlds .grand-prize{top:118px!important;left:10px!important;right:10px!important;max-width:none!important;width:auto!important;justify-content:center!important;min-height:48px!important}
  .world-grid{top:178px!important;bottom:max(12px,env(safe-area-inset-bottom))!important}

  .map .screen-title{top:72px!important;max-width:58vw!important}
  .map-progress{top:114px!important;right:9px!important;font-size:12px!important;padding:4px 8px!important;z-index:24!important}
  .world-prize-bar{top:145px!important;left:8px!important;right:8px!important;gap:6px!important;overflow:visible!important;z-index:23!important}
  .world-prize{min-height:52px!important;padding:5px 7px!important}.world-prize img{width:38px!important;height:38px!important}.world-prize b{font-size:10px!important}
  .level-map{top:218px!important;bottom:34px!important;padding-top:30px!important}
  .map-node{width:86px!important;height:86px!important}.node-num{top:31%!important;font-size:20px!important}
  .map-hint{font-size:10px!important;bottom:max(4px,env(safe-area-inset-bottom))!important}

  .question-head{top:72px!important;width:calc(100% - 72px)!important}.quiz-wrap{inset:110px 7px 7px!important}
}

@media(max-width:420px) and (orientation:portrait){
  .screen-title{top:68px!important;font-size:19px!important;max-width:62vw!important}.worlds .grand-prize{top:111px!important}.world-grid{top:166px!important}.map-progress{top:108px!important}.world-prize-bar{top:136px!important}.level-map{top:207px!important}.home-talk{bottom:39%!important;width:76vw!important;font-size:15px!important;min-height:116px!important}
}
.map-route{position:relative;width:100%;min-height:100%}


/* v6.4 layout, dialogs, rewards and music */
.music-toggle{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important;width:58px!important;height:58px!important;border-radius:50%!important;filter:drop-shadow(0 6px 5px #0005)}
.music-toggle img{display:block;width:100%;height:100%;object-fit:contain}.music-toggle:active{transform:translateY(3px) scale(.96)!important;filter:drop-shadow(0 2px 2px #0004) brightness(.94)}
.music-toggle .music-note,.music-toggle .music-slash{display:none!important}

.beaver-talk{opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease!important}.beaver-talk.talk-visible{opacity:1}.beaver-talk.talk-pop{transform:translateY(-5px) scale(1.02)}
.home-talk{left:6%!important;bottom:47%!important;width:min(31vw,360px)!important;max-width:360px!important;min-height:112px!important;padding:23px 27px 28px!important;font-size:clamp(16px,1.65vw,21px)!important;line-height:1.32!important;z-index:11!important}
.home-talk:before{left:42px!important;bottom:-21px!important;width:35px!important;height:35px!important}
.hero-beaver{z-index:10!important}

.world-prize-bar{left:4%!important;right:auto!important;top:12.5%!important;transform:none!important;max-width:46%;display:flex;gap:10px!important}
.world-prize{min-width:172px!important;max-width:210px!important;padding:7px 10px!important}.world-prize img{width:56px!important;height:56px!important}.world-prize.won:after{display:none!important}
.map-progress{top:12.5%!important;right:4%!important}.level-map{inset:21% 4% 4%!important}

.prize-toy{background:linear-gradient(#fff8dc,#edcc8f)!important;border-color:#9c6129!important}.prize-toy img{width:104px!important;height:104px!important;filter:drop-shadow(0 6px 5px #0002)}.locked-toy.prize-toy img{filter:grayscale(.85) brightness(.62)!important;opacity:.5}

@media(max-width:760px) and (orientation:portrait){
  .hero-beaver{left:1.5%!important;width:56vw!important;max-width:330px!important;max-height:53svh!important}
  .home-talk{left:3%!important;bottom:48%!important;width:40vw!important;max-width:190px!important;min-height:92px!important;padding:16px 17px 21px!important;border-width:3px!important;border-radius:20px 20px 20px 8px!important;font-size:13.5px!important;line-height:1.28!important;z-index:12!important}
  .home-talk:before{left:20px!important;bottom:-14px!important;width:24px!important;height:24px!important;border-left-width:3px!important;border-bottom-width:3px!important}
  .music-toggle{width:48px!important;height:48px!important;margin-right:2px!important}
  .world-prize-bar{top:145px!important;left:7px!important;right:7px!important;max-width:none!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important}
  .world-prize{min-width:0!important;max-width:none!important;min-height:48px!important;padding:4px 6px!important}.world-prize img{width:38px!important;height:38px!important}.world-prize b{font-size:10px!important}.world-prize small{display:none!important}
  .level-map{top:215px!important;right:0!important;left:0!important;bottom:34px!important}
  .map-progress{top:112px!important;right:8px!important}
  .prize-toy img{width:68px!important;height:68px!important}
}
@media(max-width:420px) and (orientation:portrait){
  .hero-beaver{left:2.5%!important;width:57vw!important}
  .home-talk{left:2.5%!important;bottom:49%!important;width:40vw!important;max-width:170px!important;font-size:12.5px!important;min-height:86px!important;padding:14px 15px 19px!important}
  .world-prize-bar{top:137px!important}.level-map{top:204px!important}.map-progress{top:106px!important}
}

/* v6.5 prize refresh + responsive layout */
#game{max-width:none!important;width:100vw!important}
.beta-badge{position:absolute;z-index:150;left:50%;bottom:max(7px,env(safe-area-inset-bottom));transform:translateX(-50%);padding:5px 12px;border-radius:12px;background:#2f2118b8;border:1px solid #f4d28a99;color:#fff1d1;font-size:12px;font-weight:900;letter-spacing:.2px;pointer-events:none;white-space:nowrap;text-shadow:0 1px #0006}
.world-prize img,.grand-prize img,.special-prize-card img,.prize-toy img{object-fit:contain!important;background:transparent!important}
@media(min-width:761px){
  .screen{background-size:cover!important}
  .level-map{left:2%!important;right:2%!important}
  .world-prize-bar{top:13.5%!important;left:3%!important;max-width:44%!important}
  .map-progress{top:13.5%!important}
}
@media(max-width:760px) and (orientation:portrait){
  .home-talk{bottom:43.5%!important}
  .hero-beaver{left:5%!important}
  .map-node{width:112px!important;height:112px!important}
  .node-num{font-size:27px!important;top:36%!important}
  .level-map{top:220px!important;bottom:44px!important}
  .beta-badge{font-size:10px;padding:4px 9px;bottom:max(4px,env(safe-area-inset-bottom))}
}
@media(max-width:420px) and (orientation:portrait){
  .home-talk{bottom:42%!important}
  .hero-beaver{left:6%!important}
  .map-node{width:106px!important;height:106px!important}
  .level-map{top:212px!important}
}
/* v6.6 final responsive polish */
@media(min-width:761px){
  html,body,#game{width:100%;max-width:none!important;height:100%;min-height:100%;margin:0!important}
  #game{border-radius:0!important;box-shadow:none!important}
  .level-map{left:1.5%!important;right:1.5%!important}
  .world-prize-bar{top:15%!important;left:3%!important;max-width:42%!important}
  .map-progress{top:15%!important}
}
@media(max-width:760px) and (orientation:portrait){
  .home-talk{bottom:39%!important;left:4%!important}
  .hero-beaver{left:7%!important}
  .map-node{width:124px!important;height:124px!important}
  .node-num{font-size:29px!important;top:36%!important}
  .level-map{top:224px!important;bottom:48px!important}
}
@media(max-width:420px) and (orientation:portrait){
  .home-talk{bottom:37.5%!important}
  .hero-beaver{left:8%!important}
  .map-node{width:116px!important;height:116px!important}
  .node-num{font-size:27px!important}
}

/* v6.7 collection, mini statistics and costumes */
.costumes{background-image:linear-gradient(#142f2440,#142f241c),url('../assets/backgrounds/collection.jpg')}
.costume-panel{position:absolute;z-index:12;left:7%;right:7%;top:16%;bottom:8%;padding:26px;border-radius:30px;border:5px solid #5a351f;background:linear-gradient(180deg,#fff6dce8,#e8c987e8);box-shadow:inset 0 0 0 3px #ffd889,0 16px 32px #0005;overflow:auto}
.costume-intro{text-align:center;margin-bottom:22px}.costume-intro b{display:block;font-size:30px}.costume-intro span{display:block;margin-top:6px;font-size:17px;font-weight:800;color:#76502f}
.costume-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:24px;max-width:850px;margin:0 auto}
.costume-card{position:relative;min-height:390px;padding:16px;border-radius:25px;border:5px solid #8a5529;background:linear-gradient(#fff8e5,#edcf92);box-shadow:0 8px 0 #5b351d,0 14px 22px #0003;color:#492c1c;transition:.15s}
.costume-card img{display:block;width:100%;height:285px;object-fit:contain;filter:drop-shadow(0 10px 8px #0002)}
.costume-card b{display:block;font-size:24px;margin-top:5px}.costume-card span{display:inline-block;margin-top:8px;padding:7px 16px;border-radius:15px;background:#7a4a29;color:#fff3d6;font-weight:900}
.costume-card.selected{border-color:#2e8f2f;background:linear-gradient(#f4ffe8,#caefa4);box-shadow:0 8px 0 #246b28,0 14px 22px #0003}.costume-card.selected span{background:#2e9f35}
.costume-card:active{transform:translateY(5px)}

.mini-stats{position:absolute;z-index:14;left:50%;bottom:8%;transform:translateX(-50%);width:min(760px,84vw);display:grid;grid-template-columns:1fr 1fr;gap:16px}
.stat-card{display:grid;grid-template-columns:1fr repeat(3,auto);align-items:center;gap:14px;padding:14px 18px;border-radius:20px;border:4px solid #6e431f;background:linear-gradient(#fff7dd,#eecf91);box-shadow:0 6px 0 #4a2c18,0 10px 18px #0003}
.stat-card>b{font-size:20px}.stat-card span{display:flex;flex-direction:column;font-size:11px;font-weight:900;color:#76522e;text-align:center}.stat-card strong{font-size:22px;color:#38251a}
.mini-hud{gap:10px!important;flex-wrap:wrap;justify-content:center!important}

/* twenty clean collection prizes */
.toy-card img{object-fit:contain!important;background:transparent!important;filter:drop-shadow(0 6px 5px #0002)}
.toy-card{overflow:hidden}.toy-card b{line-height:1.05}

@media(max-width:760px) and (orientation:portrait){
  .home-actions{top:33%!important;gap:6px!important}.wood-btn{min-height:48px!important;font-size:15px!important}.png-play-btn{width:104%!important}
  .costume-panel{left:3%;right:3%;top:128px;bottom:34px;padding:12px;border-width:4px;border-radius:22px}.costume-intro{margin-bottom:12px}.costume-intro b{font-size:22px}.costume-intro span{font-size:12px}.costume-grid{grid-template-columns:1fr 1fr;gap:10px}.costume-card{min-height:250px;padding:8px;border-width:3px;border-radius:17px;box-shadow:0 5px 0 #5b351d}.costume-card img{height:180px}.costume-card b{font-size:14px}.costume-card span{font-size:11px;padding:5px 9px;margin-top:5px}
  .mini-select-card{top:41%!important}.mini-stats{bottom:max(28px,env(safe-area-inset-bottom));width:92vw;gap:7px}.stat-card{grid-template-columns:1fr repeat(3,auto);gap:5px;padding:8px 7px;border-width:3px;border-radius:14px}.stat-card>b{font-size:13px}.stat-card span{font-size:8px}.stat-card strong{font-size:16px}
  .mini-hud b{font-size:13px!important}
  .collection-card{bottom:20%!important}.collection-beaver{display:none!important}.toy-card img{width:76px!important;height:76px!important}.toy-card{min-height:126px!important}
}
@media(max-width:420px) and (orientation:portrait){
  .home-actions{top:32%!important}.wood-btn{min-height:44px!important;font-size:13px!important}.costume-card{min-height:224px}.costume-card img{height:155px}.mini-select-card{top:39%!important}.mini-stats{bottom:22px}
}
/* v6.8 stories */
.story-library{width:min(1050px,94%);margin:86px auto 60px;display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.story-book{border:0;border-radius:28px;padding:14px;background:rgba(255,255,255,.9);box-shadow:0 12px 30px #183d2e38;text-align:left;cursor:pointer}.story-cover{min-height:300px;border-radius:22px;padding:30px 20px;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;background:linear-gradient(145deg,#6bd4ff,#7053d6 60%,#321d68);color:#fff;text-shadow:0 2px 3px #0007}.story-cover span{font-size:64px;margin:auto}.story-cover b{font-size:28px;line-height:1.05}.story-cover small{margin-top:10px}.story-book p{font-weight:700;color:#29443a;padding:0 8px}.locked-story{filter:saturate(.45);opacity:.7;pointer-events:none}.story-reader{background:linear-gradient(#b9ecff,#e8f7d2)}.story-top{position:absolute;top:78px;left:50%;transform:translateX(-50%);width:min(1050px,92%);display:flex;justify-content:space-between;background:#fffde9;padding:12px 20px;border-radius:18px;font-size:20px;z-index:2}.story-scene{width:min(1050px,94%);margin:138px auto 50px;background:#fff;border-radius:30px;overflow:hidden;box-shadow:0 14px 38px #183d2e38}.story-art{height:430px;background:linear-gradient(#8dd9ff,#d9f2b1);position:relative;overflow:hidden}.story-art:after{content:'🌲  🍄  ✨  🌳  🐇';position:absolute;left:0;right:0;bottom:25px;text-align:center;font-size:70px;letter-spacing:25px}.story-art img{height:90%;position:absolute;left:8%;bottom:0;z-index:1}.story-text{padding:24px 30px 30px}.story-text h2{font-size:30px;margin:0 0 8px;color:#173e34}.story-text p{font-size:20px;line-height:1.5;color:#334c45;min-height:90px}.story-choices{display:flex;gap:12px;margin:12px 0}.story-choices button{flex:1;border:0;border-radius:18px;padding:15px;background:#e6f6da;font-weight:800;font-size:17px}.story-reader .green-btn{min-width:210px}.costume-card img{object-fit:contain}
@media(max-width:760px){.story-library{grid-template-columns:1fr;margin-top:72px}.story-cover{min-height:230px}.story-top{top:68px;font-size:15px}.story-scene{margin-top:118px;border-radius:22px}.story-art{height:310px}.story-art:after{font-size:42px;letter-spacing:8px}.story-art img{height:82%;left:0}.story-text{padding:18px}.story-text h2{font-size:24px}.story-text p{font-size:17px;min-height:120px}.story-choices{flex-direction:column}}

/* v6.9 stories + yawn */
.story-art{overflow:hidden;border-radius:24px;background:#183d2e;min-height:260px}
.story-art img{width:100%;height:100%;min-height:260px;max-height:58vh;object-fit:cover;display:block}
.yawn-btn{width:48px;height:48px;border:0;border-radius:16px;background:rgba(255,255,255,.92);font-size:25px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.18);display:grid;place-items:center;flex:0 0 auto}
.yawn-btn:active{transform:scale(.92)}
@media(max-width:600px){.yawn-btn{width:42px;height:42px;border-radius:13px;font-size:22px}.story-art,.story-art img{min-height:210px}.story-art img{max-height:42vh}}

/* v6.9.2 story fullscreen + clean costume transparency */
.story-reader{overflow-y:auto!important;overflow-x:hidden!important}
.story-top{width:calc(100vw - 28px)!important;max-width:none!important;box-sizing:border-box}
.story-top-actions{display:flex;align-items:center;gap:12px}
.story-fullscreen-btn{width:42px;height:42px;border:0;border-radius:13px;background:#285b4c;color:#fff;font-size:25px;font-weight:900;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 0 #173d33,0 7px 12px #0002}
.story-fullscreen-btn:active{transform:translateY(3px);box-shadow:0 1px 0 #173d33}
.story-scene{width:100vw!important;max-width:none!important;margin:138px 0 50px!important;border-radius:0!important;box-shadow:none!important;background:#fff}
.story-art{width:100vw!important;height:auto!important;aspect-ratio:16/9!important;min-height:0!important;border-radius:0!important;background:#111!important;position:relative!important}
.story-art:after{display:none!important}
.story-art img{position:static!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:cover!important;display:block!important}
.story-text{max-width:1050px;margin:0 auto;box-sizing:border-box}
.story-art:fullscreen,.story-art:-webkit-full-screen{width:100vw!important;height:100vh!important;aspect-ratio:auto!important;background:#000!important;display:flex!important;align-items:center!important;justify-content:center!important}
.story-art:fullscreen img,.story-art:-webkit-full-screen img{width:100%!important;height:100%!important;object-fit:contain!important}
.costume-card img{background:transparent!important}
@media(max-width:760px){
  .story-top{top:66px!important;padding:9px 12px!important;border-radius:14px!important;font-size:14px!important}
  .story-top-actions{gap:7px}
  .story-fullscreen-btn{width:38px;height:38px;border-radius:11px;font-size:23px}
  .story-scene{margin-top:116px!important;margin-bottom:34px!important}
  .story-art{aspect-ratio:16/9!important}
  .story-text{padding:18px 18px calc(26px + env(safe-area-inset-bottom))!important}
}

/* v6.9.3 — cinematic story reader: all UI overlays the illustration, no scrolling */
.story-reader{
  overflow:hidden!important;
  background:#0d201a!important;
  padding:0!important;
}
.story-reader .story-top{
  position:absolute!important;
  z-index:40!important;
  top:max(70px,calc(env(safe-area-inset-top) + 58px))!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:min(960px,calc(100vw - 32px))!important;
  margin:0!important;
  padding:10px 14px!important;
  border:1px solid rgba(255,255,255,.36)!important;
  border-radius:18px!important;
  color:#fff!important;
  background:linear-gradient(180deg,rgba(20,35,29,.76),rgba(11,24,20,.62))!important;
  -webkit-backdrop-filter:blur(12px) saturate(1.1);
  backdrop-filter:blur(12px) saturate(1.1);
  box-shadow:0 8px 28px rgba(0,0,0,.24)!important;
  text-shadow:0 2px 4px #0008;
}
.story-reader .story-top b{font-size:clamp(15px,2vw,22px)}
.story-reader .story-top-actions{gap:10px}
.story-reader #storyCounter{font-weight:900;white-space:nowrap}
.story-reader .story-fullscreen-btn{
  width:38px!important;height:38px!important;border-radius:12px!important;
  background:rgba(255,255,255,.16)!important;color:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.25),0 5px 14px #0003!important;
}
.story-reader .story-scene{
  position:absolute!important;
  inset:0!important;
  width:100vw!important;height:100dvh!important;
  margin:0!important;border-radius:0!important;
  background:#0b1512!important;box-shadow:none!important;
  overflow:hidden!important;
}
.story-reader .story-art{
  position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;
  min-height:0!important;aspect-ratio:auto!important;
  border-radius:0!important;background:#0b1512!important;
}
.story-reader .story-art img{
  position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;
  min-height:0!important;max-height:none!important;
  object-fit:cover!important;object-position:center!important;
  display:block!important;
}
.story-reader .story-art:after{display:none!important}
.story-reader .story-scene:after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:4;
  background:linear-gradient(to bottom,rgba(6,17,14,.42) 0%,rgba(6,17,14,0) 24%,rgba(6,17,14,0) 48%,rgba(6,17,14,.18) 63%,rgba(5,15,12,.78) 100%);
}
.story-reader .story-text{
  position:absolute!important;z-index:20!important;
  left:50%!important;bottom:max(18px,env(safe-area-inset-bottom))!important;
  transform:translateX(-50%)!important;
  width:min(960px,calc(100vw - 32px))!important;
  max-width:none!important;margin:0!important;
  padding:16px 18px 16px!important;
  border:1px solid rgba(255,255,255,.42)!important;
  border-radius:22px!important;
  color:#fff!important;
  background:linear-gradient(180deg,rgba(25,45,37,.78),rgba(10,24,20,.88))!important;
  -webkit-backdrop-filter:blur(15px) saturate(1.1);
  backdrop-filter:blur(15px) saturate(1.1);
  box-shadow:0 12px 36px rgba(0,0,0,.38)!important;
}
.story-reader .story-text h2{
  margin:0 0 6px!important;color:#fff8df!important;
  font-size:clamp(20px,2.8vw,31px)!important;line-height:1.08!important;
  text-shadow:0 2px 4px #0008;
}
.story-reader .story-text p{
  margin:0 0 12px!important;min-height:0!important;color:#fff!important;
  font-size:clamp(15px,1.75vw,20px)!important;line-height:1.36!important;
  text-shadow:0 2px 4px #0008;
}
.story-reader .story-choices{
  display:flex!important;flex-direction:row!important;gap:10px!important;
  margin:10px 0 0!important;
}
.story-reader .story-choices:empty{display:none!important}
.story-reader .story-choices button{
  flex:1!important;min-width:0!important;padding:11px 12px!important;
  border-radius:15px!important;border:1px solid rgba(255,255,255,.3)!important;
  background:linear-gradient(#ffe88c,#eebf40)!important;color:#492d12!important;
  box-shadow:0 4px 0 #7c4b18,0 7px 14px #0003!important;
  font-size:clamp(13px,1.6vw,17px)!important;font-weight:1000!important;
}
.story-reader .story-choices button:active{transform:translateY(3px);box-shadow:0 1px 0 #7c4b18!important}
.story-reader #storyNextBtn{
  display:block!important;margin:12px 0 0 auto!important;
  min-width:180px!important;padding:11px 22px!important;
  border-width:3px!important;border-radius:16px!important;
  font-size:16px!important;
}
.story-reader #storyNextBtn:disabled{opacity:.42;filter:grayscale(.35);pointer-events:none}

/* fullscreen keeps both image and overlay UI */
.story-scene:fullscreen,.story-scene:-webkit-full-screen{
  width:100vw!important;height:100vh!important;background:#000!important;
}
.story-scene:fullscreen .story-art img,.story-scene:-webkit-full-screen .story-art img{object-fit:cover!important}

@media(max-width:760px){
  .story-reader .story-top{
    top:max(60px,calc(env(safe-area-inset-top) + 52px))!important;
    width:calc(100vw - 20px)!important;padding:8px 10px!important;
    border-radius:14px!important;font-size:12px!important;
  }
  .story-reader .story-top b{font-size:14px!important;max-width:58vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .story-reader .story-fullscreen-btn{width:34px!important;height:34px!important;font-size:20px!important}
  .story-reader .story-text{
    width:calc(100vw - 20px)!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    padding:12px 13px 12px!important;border-radius:18px!important;
  }
  .story-reader .story-text h2{font-size:clamp(18px,5.4vw,23px)!important;margin-bottom:4px!important}
  .story-reader .story-text p{
    font-size:clamp(12.5px,3.55vw,15.5px)!important;line-height:1.28!important;margin-bottom:8px!important;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;
  }
  .story-reader .story-choices{gap:7px!important;margin-top:7px!important}
  .story-reader .story-choices button{padding:9px 7px!important;font-size:12px!important;border-radius:12px!important}
  .story-reader #storyNextBtn{margin-top:8px!important;min-width:138px!important;padding:9px 15px!important;font-size:13px!important;border-radius:13px!important}
}

@media(max-width:430px) and (max-height:760px){
  .story-reader .story-text{padding:10px 11px!important}
  .story-reader .story-text h2{font-size:17px!important}
  .story-reader .story-text p{font-size:12px!important;-webkit-line-clamp:4!important;line-height:1.22!important}
  .story-reader .story-choices button{padding:7px 5px!important;font-size:11px!important}
  .story-reader #storyNextBtn{padding:7px 12px!important;font-size:12px!important;margin-top:6px!important}
}

/* Yawn belongs only to the home screen; JS toggles .hidden on navigation. */
.yawn-btn.hidden{display:none!important}

/* v6.9.4 — compact story canvas + image navigation */
.story-reader .story-top{
  display:grid!important;
  grid-template-columns:48px 1fr auto!important;
  align-items:center!important;
  gap:10px!important;
  width:min(1120px,calc(100vw - 40px))!important;
  top:max(58px,calc(env(safe-area-inset-top) + 48px))!important;
}
.story-reader .story-top b{text-align:left!important;min-width:0!important}
.story-back-btn{
  width:42px;height:42px;border:0;border-radius:14px;
  display:grid;place-items:center;cursor:pointer;
  color:#fff;font-size:29px;font-weight:1000;line-height:1;
  background:linear-gradient(#c97531,#9c4b18);
  box-shadow:0 4px 0 #66310f,0 8px 18px #0004;
}
.story-back-btn:active{transform:translateY(3px);box-shadow:0 1px 0 #66310f}
.story-reader .story-scene{
  inset:auto!important;
  left:50%!important;top:50%!important;
  transform:translate(-50%,-50%)!important;
  width:min(1180px,94vw)!important;
  height:min(760px,82dvh)!important;
  border-radius:28px!important;
  box-shadow:0 24px 70px #0008!important;
  overflow:hidden!important;
  background:#0b1512!important;
}
.story-reader .story-art,.story-reader .story-art img{border-radius:28px!important}
.story-reader .story-art img{object-fit:cover!important}
.story-nav-arrow{
  position:absolute;z-index:28;top:50%;transform:translateY(-50%);
  width:64px;height:64px;border:2px solid rgba(255,255,255,.55);border-radius:50%;
  display:grid;place-items:center;cursor:pointer;
  color:#fff;font-size:52px;font-weight:900;line-height:.8;
  background:rgba(16,33,27,.58);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  box-shadow:0 10px 28px #0005,inset 0 0 0 1px rgba(255,255,255,.14);
  text-shadow:0 2px 4px #0008;
  transition:transform .15s ease,background .15s ease,opacity .15s ease;
}
.story-prev-arrow{left:18px}.story-next-arrow{right:18px}
.story-nav-arrow:hover{background:rgba(42,91,76,.85);transform:translateY(-50%) scale(1.06)}
.story-nav-arrow:active{transform:translateY(-50%) scale(.93)}
.story-nav-arrow:disabled{opacity:.28;pointer-events:none;filter:grayscale(.5)}
.story-reader #storyNextBtn{display:none!important}
.story-reader .story-text{
  bottom:16px!important;
  width:min(860px,calc(100% - 160px))!important;
  padding:14px 17px!important;
}
.story-reader .story-text p{margin-bottom:7px!important}
.story-reader .story-choices{margin-top:7px!important}

/* fullscreen expands the compact story canvas */
.story-scene:fullscreen,.story-scene:-webkit-full-screen{
  left:0!important;top:0!important;transform:none!important;
  width:100vw!important;height:100vh!important;border-radius:0!important;
}
.story-scene:fullscreen .story-art,.story-scene:fullscreen .story-art img,
.story-scene:-webkit-full-screen .story-art,.story-scene:-webkit-full-screen .story-art img{border-radius:0!important}

@media(max-width:760px){
  .story-reader .story-top{
    grid-template-columns:40px 1fr auto!important;
    width:calc(100vw - 16px)!important;
    top:max(52px,calc(env(safe-area-inset-top) + 44px))!important;
    padding:6px 8px!important;gap:6px!important;
  }
  .story-back-btn{width:36px;height:36px;border-radius:11px;font-size:25px}
  .story-reader .story-top b{font-size:13px!important;max-width:none!important}
  .story-reader .story-scene{
    width:calc(100vw - 18px)!important;
    height:min(70dvh,620px)!important;
    top:56%!important;
    border-radius:20px!important;
  }
  .story-reader .story-art,.story-reader .story-art img{border-radius:20px!important}
  .story-nav-arrow{width:48px;height:48px;font-size:42px;border-width:1.5px}
  .story-prev-arrow{left:9px}.story-next-arrow{right:9px}
  .story-reader .story-text{
    width:calc(100% - 84px)!important;
    bottom:10px!important;
    padding:10px 11px!important;
    border-radius:15px!important;
  }
  .story-reader .story-text h2{font-size:17px!important;margin-bottom:3px!important}
  .story-reader .story-text p{font-size:12px!important;line-height:1.22!important;-webkit-line-clamp:4!important;margin-bottom:5px!important}
  .story-reader .story-choices{gap:5px!important;margin-top:5px!important}
  .story-reader .story-choices button{padding:7px 5px!important;font-size:11px!important;border-radius:10px!important}
}

@media(max-width:430px) and (max-height:760px){
  .story-reader .story-scene{height:66dvh!important;top:58%!important}
  .story-reader .story-text{width:calc(100% - 74px)!important;padding:8px 9px!important}
  .story-reader .story-text h2{font-size:15px!important}
  .story-reader .story-text p{font-size:11px!important;-webkit-line-clamp:3!important}
  .story-nav-arrow{width:42px;height:42px;font-size:36px}
}

/* v6.9.5 — mobile hero, moon story and improved yawn */
.moon-cover{background:linear-gradient(145deg,#142d68,#503a92 58%,#171338)!important}
.yawn-btn{
  position:relative!important;width:52px!important;height:46px!important;border-radius:16px!important;
  border:2px solid rgba(255,255,255,.72)!important;background:linear-gradient(180deg,#fff8d9,#ffd67d)!important;
  box-shadow:0 4px 0 #b86c28,0 7px 16px #0003!important;color:#6b351c!important;overflow:visible!important;
  font-family:system-ui,sans-serif!important;
}
.yawn-btn .yawn-face{font-size:28px;font-weight:900;line-height:1;transform:translateY(-2px)}
.yawn-btn .yawn-z{position:absolute;right:3px;top:-8px;font-size:12px;font-weight:1000;transform:rotate(-12deg);color:#fff;text-shadow:0 2px 3px #523319,0 0 4px #523319}
.yawn-btn:hover{transform:translateY(-1px)}.yawn-btn:active{transform:translateY(3px)!important;box-shadow:0 1px 0 #b86c28!important}
@media(max-width:760px){
  .home .hero-beaver{left:0!important;transform:translateX(-5%)!important}
  .yawn-btn{width:46px!important;height:42px!important;border-radius:14px!important}
  .yawn-btn .yawn-face{font-size:25px}.yawn-btn .yawn-z{font-size:10px;right:2px;top:-7px}
}


/* v6.9.6 — mobile story library scrolling + reliable story cards */
.stories{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain;
  touch-action:pan-y!important;
  padding-bottom:calc(34px + env(safe-area-inset-bottom));
}
.stories .story-library{
  position:relative;
  z-index:12;
  padding-bottom:calc(50px + env(safe-area-inset-bottom));
}
.stories .story-book{
  position:relative;
  z-index:2;
  pointer-events:auto!important;
  touch-action:manipulation;
}
@media(max-width:760px){
  .stories .screen-title{position:sticky!important;top:max(8px,env(safe-area-inset-top))!important;left:auto!important;transform:none!important;margin:8px auto 0!important;width:max-content;max-width:calc(100vw - 100px);z-index:30!important}
  .stories .story-library{
    width:calc(100% - 20px)!important;
    margin:14px auto 0!important;
    padding-top:4px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:16px!important;
  }
  .stories .story-book{min-height:0!important}
  .stories .story-cover{min-height:190px!important}
  .stories .story-cover span{font-size:50px!important}
  .stories .story-cover b{font-size:24px!important}
  .stories .story-book p{margin:10px 6px 4px!important;font-size:14px!important;line-height:1.35}
}

/* v6.9.8 — illustrated backgrounds + story covers */
.stories{
  background-image:linear-gradient(rgba(5,20,31,.16),rgba(5,20,31,.22)),url('../assets/backgrounds/stories.webp')!important;
  background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;
}
.mini:not(.stars-mini){background-image:linear-gradient(rgba(5,25,35,.05),rgba(5,25,35,.10)),url('../assets/backgrounds/logs-game.webp')!important}
.stars-mini{background-image:linear-gradient(rgba(3,10,42,.08),rgba(3,10,42,.14)),url('../assets/backgrounds/stars-game.webp')!important;background-position:center!important;background-size:cover!important}
.stories .screen-title,.story-reader .story-top b,.story-cover b,.story-text h2{
  font-family:Georgia,"Times New Roman",serif!important;
  letter-spacing:.3px;
}
.stories .screen-title{font-style:italic;text-shadow:0 3px #56301c,0 0 10px #0005}
.story-cover{
  position:relative;overflow:hidden;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;
  justify-content:flex-end!important;
}
.story-cover:before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,.02) 35%,rgba(7,14,17,.18) 58%,rgba(7,14,17,.82) 100%);z-index:0}
.story-cover>*{position:relative;z-index:1}.story-cover>span{display:none!important}
.story-cover b{font-size:29px!important;text-shadow:0 2px 8px #000,0 1px 2px #000!important}
.story-cover small{font-family:"Trebuchet MS",Arial,sans-serif!important;text-shadow:0 2px 5px #000!important}
#wonderStoryBtn .story-cover{background-image:url('../assets/stories/wonderland/01.webp')!important}
#moonStoryBtn .story-cover{background-image:url('../assets/stories/moon-forest/01.webp')!important}
#marsStoryBtn .story-cover{background-image:url('../assets/stories/mars/01.webp')!important}
.stories .story-book{background:rgba(255,248,225,.92)!important;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.stories .story-book p{font-family:Georgia,"Times New Roman",serif!important;font-weight:600!important;line-height:1.4!important}
.story-reader .story-text h2{font-style:italic;font-weight:800!important}
@media(max-width:760px){
 .stories{background-attachment:scroll!important}
 .stories .story-cover{min-height:210px!important}
 .story-cover b{font-size:25px!important}
}


/* v6.9.9 — Living Beaver Home */
.living-home{position:absolute;inset:0;z-index:8;pointer-events:none;overflow:hidden}
.home-decor{position:absolute;padding:0;border:0;background:transparent;pointer-events:auto;cursor:pointer;filter:drop-shadow(0 8px 7px #0005);transition:transform .18s ease,filter .18s ease;animation:decor-arrive .45s cubic-bezier(.2,.9,.25,1.2) both}
.home-decor img{width:100%;height:100%;object-fit:contain;display:block}
.home-decor:hover{transform:translateY(-5px) rotate(-2deg);filter:drop-shadow(0 12px 8px #0006) brightness(1.06)}
.home-decor:active{transform:translateY(2px) scale(.95)}
.home-decor-rocket{left:34%;bottom:7%;width:10%;height:24%}.home-decor-globe{left:25%;bottom:5%;width:8%;height:14%}.home-decor-books{left:16%;bottom:4%;width:10%;height:11%}.home-decor-telescope{left:36%;bottom:3%;width:10%;height:13%}.home-decor-bear{left:9%;bottom:4%;width:8%;height:13%}.home-decor-chest{left:45%;bottom:3%;width:11%;height:12%}
@keyframes decor-arrive{from{opacity:0;transform:translateY(25px) scale(.7)}to{opacity:1;transform:none}}
@media(max-width:760px){.home-decor-rocket{left:35%;bottom:13%;width:16%;height:18%}.home-decor-globe{left:25%;bottom:12%;width:13%;height:11%}.home-decor-books{left:13%;bottom:11%;width:16%;height:9%}.home-decor-telescope{left:39%;bottom:10%;width:15%;height:10%}.home-decor-bear{left:5%;bottom:11%;width:13%;height:10%}.home-decor-chest{left:49%;bottom:10%;width:17%;height:9%}}
/* v6.10 — interactive business costume */
.costume-beaver.business-interactive{cursor:pointer;touch-action:manipulation;transition:filter .18s ease,transform .18s ease}
.costume-beaver.business-interactive:hover{filter:drop-shadow(0 8px 12px rgba(255,190,55,.22)) brightness(1.03)}
.costume-beaver.beaver-animating{user-select:none;-webkit-user-drag:none}
