.village-map{position:absolute;inset:0;isolation:isolate;background:#7eaa45 url(../art/stage3/grass-v4.webp) repeat;background-size:390px}.world-viewport{position:absolute;inset:calc(65px + var(--safe-top,0px)) 0 16px;overflow:clip;touch-action:none;outline-offset:-3px;user-select:none;-webkit-user-select:none}.world-map-canvas{position:absolute;left:0;top:0;transform-origin:0 0;isolation:isolate;contain:layout style}.world-ground,.world-layer{position:absolute;inset:0;pointer-events:none}.world-ground{background:url(../art/stage3/grass-v4.webp) repeat;background-size:390px}.world-layer>img{position:absolute;display:block;height:auto;transform:translate(-50%,-94%);pointer-events:none}.world-water{z-index:1}.world-paths{z-index:2}.world-depth{z-index:3}.world-paths>img,.world-water>img{transform:translate(-50%,-50%)}.world-building{position:absolute;display:block;aspect-ratio:1;transform:translate(-50%,-94%);margin:0;padding:0;border:0;background:none;pointer-events:auto;border-radius:25%;isolation:isolate;touch-action:none;outline-offset:0}.world-building>img{position:relative;display:block;width:100%;height:auto;transform:none;pointer-events:none}.world-building-shadow{position:absolute;z-index:-1;left:19%;right:8%;bottom:2%;height:12%;border-radius:50%;background:#25443240;filter:blur(4px);pointer-events:none}.world-building-label{position:absolute;z-index:4;left:50%;bottom:-19px;transform:translate(-50%);display:flex;align-items:center;justify-content:center;gap:8px;min-width:138px;padding:7px 12px;border:2px solid #d9aa4c;border-radius:12px;color:#fff0ba;background:linear-gradient(#493442f5,#2d293bf5);box-shadow:inset 0 0 0 1px #ffe8a02c,0 3px #243a2c77;text-align:center;text-shadow:0 1px 1px #1b2328;white-space:nowrap}.world-building-label>span{display:flex;flex-direction:column;gap:2px}.world-building-label strong{font-size:15px;line-height:1.1}.world-building-label small{font-size:11px;font-weight:400;color:#d4c5a4}.world-home-label{min-width:176px;border-color:#ffce68}.world-home-label svg,.world-home-label b{color:#ffe19a}.world-home-light{position:absolute;left:29%;top:38%;width:24%;height:24%;background:radial-gradient(#ffe8b077,transparent 65%);pointer-events:none;animation:world-window-warmth 4s ease-in-out infinite}.world-chimney-smoke{position:absolute;left:68%;top:4%;width:9%;aspect-ratio:1;border-radius:50%;background:#fff3d088;filter:blur(3px);pointer-events:none;animation:world-smoke 5s linear infinite}.world-prop.prop-tree{transform-origin:50% 94%;animation:world-leaves 8s ease-in-out infinite}.world-prop.prop-tree:nth-child(2n){animation-delay:-4s}.world-characters{z-index:4}.world-characters img{width:44px;left:440px;top:776px}.world-map-pollen{z-index:5}.world-map-pollen>i{position:absolute;width:3px;height:3px;border-radius:50%;background:#fff1b8;animation:world-pollen 7s ease-in-out infinite}.world-map-pollen>i:nth-child(1){left:180px;top:315px}.world-map-pollen>i:nth-child(2){left:420px;top:522px;animation-delay:-2s}.world-map-pollen>i:nth-child(3){left:271px;top:713px;animation-delay:-4s}.world-map-pollen>i:nth-child(4){left:405px;top:197px;animation-delay:-6s}.world-center{position:absolute;z-index:12;right:15px;top:calc(15px + var(--safe-top));width:32px;height:32px;display:grid;place-items:center;padding:0;color:#ffe3a3;border:1px solid #d0a353;border-radius:10px;background:#352b40e8;box-shadow:inset 0 0 0 2px #bb8d4a22,0 2px 3px #19312d44}.world-pan-hint{position:absolute;bottom:9px;left:50%;transform:translate(-50%);z-index:12;display:flex;align-items:center;gap:6px;padding:5px 10px;border-radius:15px;background:#2e3c31bb;color:#f4e6c0;font-size:9px;pointer-events:none;white-space:nowrap}.world-map-vignette{position:absolute;inset:0;z-index:10;pointer-events:none;box-shadow:inset 0 0 70px #183b3540;background:linear-gradient(#183c3a44,transparent 20%,transparent 85%,#193d3a44)}@keyframes world-leaves{0%,to{rotate:-.45deg}50%{rotate:.5deg}}@keyframes world-window-warmth{0%,to{opacity:.3}50%{opacity:.7}}@keyframes world-smoke{0%{opacity:0;transform:translate(0) scale(.6)}20%{opacity:.4}to{opacity:0;transform:translate(12px,-37px) scale(2)}}@keyframes world-pollen{0%,to{opacity:0;translate:0 0}50%{opacity:.7;translate:6px -17px}}@media(max-height:720px){.world-viewport{top:calc(49px + var(--safe-top,0px));bottom:12px}.world-center{top:9px;width:27px;height:27px}.world-pan-hint{font-size:8px;padding:4px 8px;bottom:5px}}@media(prefers-reduced-motion:reduce){.village-map *{animation:none!important;transition:none!important}}html:root{--safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--lq-safe-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px))}.bottom-navigation.game-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:4px max(8px,calc((100% - 460px)/2)) calc(4px + var(--safe-bottom));background:linear-gradient(180deg,#4b354e,#2a223a 60%,#211d31);border-top:2px solid #c79b54;box-shadow:inset 0 1px #ffe2a533,0 -3px 12px #18283a66}.bottom-navigation .nav-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-width:0;padding:2px 0;border:2px solid #b18b4b40;border-radius:11px;color:#f5deb4;background:linear-gradient(#5d435333,#211b2d33);box-shadow:inset 0 1px #ffe6b211;text-shadow:0 1px 2px #191325}.bottom-navigation .nav-button .nav-game-icon{width:33px;height:33px;flex-shrink:0;fill:none;filter:none;overflow:visible}.bottom-navigation .nav-label{font-size:10px;font-weight:650;line-height:12px;white-space:nowrap}.bottom-navigation .nav-status{height:9px;font-size:7px;line-height:9px;color:#c9b8b5}.bottom-navigation .nav-button.is-unavailable{color:#d8c6b4;background:linear-gradient(#33283d88,#261e3188);border-color:#a68c6340}.bottom-navigation .is-unavailable .nav-game-icon{opacity:.68;filter:saturate(.65)}.bottom-navigation .nav-button.is-active{color:#fff9d3;border-color:#ffdb81;background:radial-gradient(ellipse at 50% 80%,#ffc44488,transparent 85%),linear-gradient(#a96b2d,#674126);box-shadow:inset 0 0 0 1px #f3bd6177,inset 0 1px 3px #fff2be99,0 0 10px #ffd05c77}.bottom-navigation .is-active .nav-game-icon{filter:drop-shadow(0 0 3px #ffc75066)}.bottom-navigation .nav-button:hover:not(.is-active){border-color:#e6bd7088}@media(max-width:360px),(max-height:720px){.bottom-navigation.game-nav{gap:3px;padding-top:3px;padding-bottom:calc(3px + var(--safe-bottom))}.bottom-navigation .nav-button{border-radius:9px;padding:1px 0}.bottom-navigation .nav-button .nav-game-icon{width:27px;height:27px}.bottom-navigation .nav-label{font-size:9px;line-height:11px}.bottom-navigation .nav-status{height:8px;font-size:6.5px;line-height:8px}}@media(min-width:761px)and (min-height:721px){.bottom-navigation .nav-button .nav-game-icon{width:35px;height:35px}.bottom-navigation .nav-label{font-size:11px;line-height:13px}}.connection-backdrop{position:fixed;inset:0;z-index:150;display:grid;place-items:center;padding:max(16px,var(--lq-safe-top,0px)) 16px max(16px,var(--lq-safe-bottom,0px));background:#181522bb;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.connection-panel.game-panel{width:min(100%,390px);max-height:100%;overflow:auto;padding:24px 20px;text-align:center;color:#fff0ce;background:linear-gradient(135deg,#4c3a4c,#292438);box-shadow:inset 0 0 0 3px #e7bd6c33,0 20px 80px #0009;outline:none}.connection-panel h2{font-size:24px;margin:10px 0 14px;color:#ffe3a0}.connection-panel p{font-size:15px;line-height:1.5;margin:12px 0 18px}.connection-panel .connection-detail{font-size:12px;opacity:.85}.connection-emblem{color:#ffce69}.save-comparison{display:grid;grid-template-columns:1fr 1fr;gap:8px}.save-comparison>div{display:flex;align-items:center;flex-direction:column;gap:8px;padding:14px 4px;border:1px solid #b18c54;border-radius:12px;background:#16152255;font-size:12px}.save-comparison svg{color:#ffcc6c}.connection-panel .primary-button{width:100%;font-size:16px;min-height:48px}.connection-secondary{display:block;width:100%;margin-top:12px;padding:12px 4px;color:#ffe4b5;background:#3a3045;border:1px solid #ad8657;border-radius:12px;font:inherit;font-size:14px;cursor:pointer}:root{font-family:Segoe UI,Arial,sans-serif;color:#f8e9c8;background:#243b35;font-synthesis:none;text-rendering:optimizeLegibility;--gold:#e9c67e;--nav-height:76px;--quest-height:244px;--safe-top:max(env(safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px));--safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px))}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;overflow:hidden}button,input,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default}button:focus-visible,input:focus-visible{outline:3px solid #ffda7c;outline-offset:3px}button svg{flex-shrink:0}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Georgia,Times New Roman,serif}.game-app,.game-content{position:relative;width:100%;height:100%;height:100dvh;overflow:hidden}.game-stage{position:absolute;inset:0 0 calc(var(--nav-height) + var(--safe-bottom));isolation:isolate;overflow:hidden;background:#7c9468}.village-scene{position:absolute;inset:0;overflow:hidden;isolation:isolate}.landscape{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:52% 50%;pointer-events:none}.evening-light{position:absolute;inset:0;background:linear-gradient(135deg,#ffd7a329,transparent 50%,#122d4730);pointer-events:none}.scene-vignette{position:absolute;inset:0;z-index:5;pointer-events:none;background:linear-gradient(180deg,#162e3d99,transparent 22%,transparent 65%,#172f35aa);box-shadow:inset 0 0 70px #122e3c36}.tree{position:absolute;object-fit:contain;pointer-events:none;transform-origin:50% 100%;animation:sway 9s ease-in-out infinite}.tree-back{width:390px;left:calc(50% - 390px);bottom:260px;filter:brightness(.76);z-index:1}.tree-front{width:360px;right:calc(50% - 465px);top:100px;filter:brightness(.72);z-index:5;animation-duration:12s;animation-direction:reverse}.scene-house{position:absolute;width:290px;left:calc(50% - 60px);bottom:calc(var(--quest-height) + 65px);padding:0;background:none;border:0;z-index:2;transform-origin:50% 95%}.scene-house:focus-visible{outline-offset:-20px;border-radius:60px}.house-sprite{width:100%;display:block;filter:drop-shadow(3px 5px 3px #233b3633)}.house-shadow,.hero-shadow{position:absolute;border-radius:50%;background:#203c3c61;filter:blur(8px);transform:rotate(-9deg);pointer-events:none}.house-shadow{width:245px;height:43px;left:calc(50% - 35px);bottom:calc(var(--quest-height) + 74px);z-index:1}.hero-shadow{width:145px;height:25px;left:calc(50% - 155px);bottom:calc(var(--quest-height) - 2px);z-index:3}.knight{position:absolute;height:clamp(250px,40dvh,360px);width:auto;left:calc(50% - 190px);bottom:calc(var(--quest-height) - 10px);z-index:4;object-fit:contain;transform-origin:50% 97%;animation:breathe 4.6s ease-in-out infinite;filter:drop-shadow(3px 4px 3px #173f3533)}.window-light{position:absolute;left:29%;bottom:29%;width:12%;height:14%;background:radial-gradient(#ffe39788,transparent 70%);animation:window-glow 4s ease-in-out infinite;pointer-events:none}.smoke{position:absolute;left:22%;top:9%;width:9%;aspect-ratio:1;border-radius:50%;background:#f8e4d57a;filter:blur(5px);animation:smoke-rise 6s linear infinite;pointer-events:none}.smoke-two{animation-delay:-3s}.fireflies{position:absolute;inset:0;z-index:6;pointer-events:none}.fireflies i{position:absolute;width:3px;height:3px;border-radius:50%;background:#ffe8a0;box-shadow:0 0 8px 2px #ffdb6680;left:calc(15% + var(--i) * 11%);bottom:calc(35% + mod(var(--i),3)*9%);animation:firefly 5s ease-in-out infinite;animation-delay:calc(var(--i) * -.8s)}.location-label{position:absolute;top:calc(145px + var(--safe-top));left:50%;transform:translate(-50%);z-index:6;display:flex;align-items:center;gap:7px;font:italic 12px Georgia,serif;color:#fff4d3;text-shadow:0 2px 5px #1c3a32;white-space:nowrap}.live-dot{width:4px;height:4px;background:#f8de8a;border-radius:50%;box-shadow:0 0 6px #ffde7c}.house-label{position:absolute;left:calc(50% + 80px);bottom:calc(var(--quest-height) + 41px);z-index:7;padding:6px 10px;background:#293d36d9;border:1px solid #d2b77a9c;border-radius:15px;color:#f7dfac;display:flex;align-items:center;gap:5px;font-size:10px;box-shadow:0 2px 5px #16382f44}.house-label>span{margin-left:3px;opacity:.7}.game-logo{position:absolute;top:calc(10px + var(--safe-top));left:50%;transform:translate(-50%);z-index:11;font-size:27px;color:#fff5dc;letter-spacing:-1px;line-height:1;text-shadow:0 2px 4px #142c3b,0 0 12px #223646c4;white-space:nowrap}.game-logo>span{color:#f2d28e}.game-logo i{position:absolute;top:-3px;right:-13px;font-size:11px;font-style:normal;color:#f7d591}.hero-hud{position:absolute;top:calc(49px + var(--safe-top));left:50%;transform:translate(-50%);width:calc(100% - 28px);max-width:430px;z-index:12;display:flex;align-items:center;gap:10px;padding:11px 12px;color:#fff0cf;border:1px solid #bba16e;border-radius:12px;background:linear-gradient(110deg,#263646ed,#303847ed);box-shadow:inset 0 0 0 3px #2c3542,inset 0 0 0 4px #c0a26d36,0 5px 18px #19302e4d;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.portrait{width:51px;height:51px;flex-shrink:0;position:relative;border:2px solid #ebc77b;border-radius:50%;background:linear-gradient(#c0bd8c,#69825d);box-shadow:0 0 0 2px #1d293b,0 0 0 3px #8e7655;overflow:hidden}.portrait img{position:absolute;width:100%;top:0;left:-6%;transform:scale(2.15);transform-origin:50% 0}.hero-meta{flex:1;min-width:0}.hero-name{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:13px;font-weight:700;line-height:1.1}.hero-name>span{font-size:10px;color:#efce83;white-space:nowrap}.hero-class{font-size:10px;color:#c8c9ba;margin:4px 0 6px}.xp-wrapper{position:relative}.progress-track{height:9px;overflow:hidden;border:1px solid #9d8b6538;border-radius:7px;background:#3c3e3c;box-shadow:inset 0 1px 3px #172a2a55}.progress-track>span{height:100%;display:block;background:linear-gradient(#ffe7a0,#cb983e);border-radius:7px;box-shadow:inset 0 1px #fff5bf;transition:width .7s ease}.xp-wrapper .progress-track{height:13px;border-color:#c7aa7180;background:#111f31}.xp-wrapper>span{position:absolute;inset:0;display:grid;place-items:center;font-size:8px;font-weight:600;color:#fff4ce;text-shadow:0 1px 2px #162038}.energy{display:grid;grid-template-columns:auto auto;gap:2px 5px;align-items:center;color:#ffd984;padding-left:10px;border-left:1px solid #aa9c7755}.energy strong{font-size:20px;font-weight:700}.energy small{grid-column:1/3;font-size:8px;color:#c1c5b6;text-align:center}.game-panel{background:linear-gradient(110deg,#f7e2b8f7,#e6c99bf7);border:2px solid #b89054;border-radius:17px;color:#46321f;box-shadow:inset 0 0 0 3px #fbe9bd,inset 0 0 0 4px #a47a3a55,0 5px 22px #132d2c55;position:relative}.game-panel:before,.game-panel:after{content:"✦";position:absolute;top:7px;font-size:11px;color:#ad813c;pointer-events:none}.game-panel:before{left:9px}.game-panel:after{right:9px}.quest-panel{position:absolute;z-index:15;width:calc(100% - 28px);max-width:430px;left:50%;transform:translate(-50%);bottom:12px;padding:16px 18px 12px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.quest-heading-row{display:flex;align-items:center;gap:13px}.moon-emblem{width:54px;height:54px;display:grid;place-items:center;border-radius:50%;position:relative;flex-shrink:0;color:#f4cc6a;background:radial-gradient(#5d5e95,#343759);border:2px solid #d3ac68;box-shadow:0 0 0 3px #c4a97622,inset 0 0 12px #1b254a66}.moon-emblem>svg:first-child{transform:rotate(-12deg)}.moon-emblem>svg:last-child{position:absolute;top:9px;right:9px}.quest-heading-text{flex:1;min-width:0}.quest-label{font-size:11px;font-weight:600;color:#816141;letter-spacing:.2px;margin-bottom:3px}.quest-panel h2{font-family:Segoe UI,Arial,sans-serif;font-size:21px;line-height:1.2;font-weight:750;letter-spacing:-.5px;white-space:nowrap}.goal-time{display:flex;gap:5px;align-items:center;font-size:11px;color:#7c5c38;background:none;border:0;padding:6px 0 0;min-height:27px}.goal-time strong{font-weight:700}.goal-time svg{margin-left:2px;opacity:.7}.house-progress{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:0;border:0;background:none;color:#84633e;margin:10px 0 7px;min-height:22px;font-size:10px}.house-progress>span,.house-progress>strong{display:flex;align-items:center;gap:5px}.house-progress>strong{font-size:12px;color:#655d36}.quest-steps{display:flex;gap:5px;margin-bottom:12px}.quest-steps>span{height:12px;border-radius:4px;flex:1;background:#dac299;border:1px solid #b99d6b70;box-shadow:inset 0 1px 3px #6c481b10;display:grid;place-items:center;color:#fff8d2}.quest-steps>span.done{background:linear-gradient(#91ae62,#617e3d);border-color:#678046;box-shadow:inset 0 1px #c2d395}.quest-steps svg{height:10px}.primary-button{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;border:2px solid #3d5c29;border-radius:11px;color:#fff9d8;background:linear-gradient(#88a949,#567e2f);box-shadow:inset 0 0 0 1px #d7df9677,inset 0 2px #dcebb470,0 3px #354b26,0 4px 6px #5c4b2733;text-shadow:0 1px 2px #294618;font-size:18px;font-weight:700;transition:filter .15s,transform .15s}.primary-button:hover:not(:disabled){filter:brightness(1.1)}.primary-button:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 0 0 1px #d7df9677,0 1px #354b26}.primary-button:disabled{background:linear-gradient(#c5bda6,#a49c88);border-color:#8a7b5d;color:#f7edd6;box-shadow:inset 0 1px #eee6cd99,0 2px #83745a;text-shadow:0 1px 1px #73664b}.primary-button.completed{background:linear-gradient(#748b5f,#526b45);border-color:#415936}.quest-rewards{display:flex;justify-content:space-around;gap:5px;font-size:9px;color:#7c5c32;margin-top:12px}.quest-rewards>span{display:flex;align-items:center;gap:3px;white-space:nowrap}.quest-rewards svg{color:#bb8b32}.quest-rewards>span:last-child svg{color:#6c7948}.manual-note{font-size:8px;text-align:center;color:#8e744f;line-height:1.5;margin-top:7px}.game-nav{position:absolute;bottom:0;left:0;right:0;height:calc(var(--nav-height) + var(--safe-bottom));z-index:30;padding:5px max(12px,calc((100% - 430px)/2)) calc(5px + var(--safe-bottom));display:flex;align-items:stretch;gap:7px;background:linear-gradient(#353d3e,#252c35);border-top:2px solid #a99162;box-shadow:0 -2px #162d35,0 -5px 20px #16332f40}.game-nav>button{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid transparent;border-radius:10px;background:none;color:#baab8c;text-shadow:0 1px 1px #13242e;font-size:12px}.game-nav>button svg{stroke-width:1.7}.game-nav>button.active{border-color:#e1b75d;background:radial-gradient(ellipse at 50% 90%,#956b2a88,#53463155);color:#ffe5a4;box-shadow:inset 0 0 0 2px #e9bc6533,0 0 12px #c9943e21}.game-nav>button.active svg{filter:drop-shadow(0 0 5px #efbd5e66);stroke:#ffda8a}.nav-dot{position:absolute;top:7px;left:calc(50% + 17px);width:8px;height:8px;border-radius:50%;background:#fac75c;box-shadow:0 0 6px #ffbf59;border:1px solid #ffe7aa}.screen-sheet{position:absolute;z-index:20;left:50%;transform:translate(-50%);bottom:12px;width:calc(100% - 28px);max-width:430px;max-height:calc(100% - 143px - var(--safe-top));padding:20px;overflow:auto;scrollbar-width:thin;scrollbar-color:#ad915d #dfc399}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:9px;color:#9d7139}.sheet-header h2{font-size:25px;font-weight:600;color:#543a23;flex:1}.icon-button{display:grid;place-items:center;min-width:34px;min-height:34px;border:1px solid #b99c69;border-radius:8px;background:#f8e4bd70;color:#856137}.level-chip{font-size:11px;border:1px solid #ba995b;border-radius:12px;padding:5px 9px;color:#81603c;background:#fff0c433}.house-preview{height:210px;position:relative;display:flex;align-items:center;justify-content:center;margin:5px 0 15px;background:radial-gradient(ellipse at 50% 65%,#fff3bf88,transparent 66%)}.house-preview img{height:210px;max-width:100%;object-fit:contain}.house-preview>span{position:absolute;bottom:-2px;left:0;right:0;text-align:center;font:italic 13px Georgia,serif;color:#89693c;text-shadow:0 0 6px #eed5a7}.sheet-description{font-size:12px;line-height:1.7;color:#8c6b44}.progress-label{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#886942;margin:18px 0 8px}.progress-label strong{font-size:13px;color:#6d703e}.screen-sheet>.progress-track{height:10px;background:#c8b086;border-color:#ac915c77}.screen-sheet>.progress-track>span{background:linear-gradient(#a5bd6d,#698b43)}.screen-sheet>.primary-button{margin-top:18px;font-size:16px}.screen-sheet .manual-note{font-size:9px;margin-top:12px}.sleep-sheet .sheet-description{margin-top:18px}.sleep-sheet form{margin-top:22px}.sleep-sheet label[for]{font-size:12px;color:#81633d;display:block;margin-bottom:9px}.time-input{display:flex;align-items:center;gap:12px;padding:17px;border:1px solid #b69863;border-radius:10px;background:#fff2cd77;color:#ad8749;margin-bottom:18px;box-shadow:inset 0 2px 5px #9f794518}.time-input input{width:100%;min-width:0;border:0;background:none;font:32px Georgia,serif;color:#604827;color-scheme:light}.sleep-sheet .primary-button{font-size:16px}.task-status{display:flex;align-items:center;gap:7px;color:#7a7949;font-size:11px;margin:20px 0}.status-dot{width:6px;height:6px;border-radius:50%;background:#b6955c;flex-shrink:0}.status-dot.done{background:#6e8749}.sleep-info{display:flex;align-items:flex-start;gap:9px;padding:12px;background:#bfa16d22;border:1px solid #a88d5e29;border-radius:8px;color:#94764e}.sleep-info svg{flex-shrink:0}.sleep-info p{font-size:10px;line-height:1.6}.motion-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#82613b;margin-top:19px;cursor:pointer}.motion-toggle>span{display:flex;align-items:center;gap:8px}.motion-toggle input{width:18px;height:18px;accent-color:#62813c;cursor:pointer}.storage-note{font-size:8px;color:#a18459;margin-top:19px;text-align:center}.toast{position:absolute;z-index:60;top:calc(139px + var(--safe-top));left:50%;transform:translate(-50%);max-width:min(430px,calc(100% - 30px));width:max-content;display:flex;align-items:center;gap:10px;padding:11px 13px;border:1px solid #c8a563;border-radius:9px;background:#2a3c35f5;color:#f9e6bc;box-shadow:0 3px 14px #102e3655;font-size:11px;line-height:1.5}.toast button{background:none;border:0;color:#e3c58a;display:grid;place-items:center;padding:4px}.modal-backdrop{position:absolute;inset:0;z-index:100;background:#152b3e7a;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:grid;place-items:center;padding:20px}.reward-modal{width:360px;max-width:100%;padding:28px 25px 25px;text-align:center;animation:modal-in .3s ease-out}.modal-close{position:absolute;top:12px;right:12px;border:0;background:none}.reward-sun{width:90px;height:90px;border-radius:50%;display:grid;place-items:center;color:#c39536;margin:0 auto 10px;background:radial-gradient(#fff3b1,#e9c77a11 70%)}.reward-modal h2{font-size:38px;font-weight:600;color:#755126;margin:8px 0 12px}.reward-modal>p:not(.quest-label){font-size:11px;color:#987448;line-height:1.6}.reward-list{display:flex;flex-direction:column;gap:13px;margin:22px 0;color:#9f792d;text-align:left;padding-left:28px}.reward-list>span{display:flex;align-items:center;gap:14px}.reward-list strong{font-size:15px;color:#705434}.reward-list>span:last-child svg{color:#6a8544}.reward-modal .primary-button{font-size:16px}.scene-reward{position:absolute;z-index:10;left:calc(50% - 120px);bottom:calc(var(--quest-height) + 210px);display:flex;align-items:center;gap:6px;font-size:24px;font-weight:700;color:#fff0a4;text-shadow:0 2px 3px #7a592b;animation:reward-rise 1.6s ease-out infinite;pointer-events:none}.celebrating .knight{animation:hero-joy .65s ease-in-out 3}.upgrade-magic{position:absolute;z-index:9;left:calc(50% + 20px);bottom:calc(var(--quest-height) + 150px);font-size:100px;color:#ffe59a;animation:magic-burst 1s ease-out forwards;pointer-events:none}.upgrading .house-sprite{animation:house-upgrade 1.1s ease both}.asset-warning{position:absolute;inset:30% 15% auto;z-index:20;border:1px solid #a98e60;background:#ffedc4;color:#714d28;padding:20px;font-size:12px;border-radius:10px}.dev-toolbar{position:absolute;z-index:40;right:12px;top:calc(10px + var(--safe-top));font-size:10px;color:#ecd9b0}.dev-toolbar>summary{padding:5px 8px;border:1px dashed #b29459;background:#26392ee8;border-radius:6px;cursor:pointer;list-style:none;font-size:9px}.dev-toolbar[open]{width:300px;max-width:calc(100vw - 24px);padding:12px;border:1px dashed #bea66e;border-radius:9px;background:#26392efa;box-shadow:0 5px 20px #132c2b66}.dev-toolbar[open]>summary{margin-bottom:10px;width:max-content}.dev-toolbar strong{display:block}.dev-toolbar span{display:block;margin-top:5px;font-size:9px;opacity:.7;line-height:1.5}.dev-actions{display:flex;gap:7px;margin-top:10px}.dev-actions button{background:#efe0ba;color:#5b492b;border:1px solid #ad945b;border-radius:6px;padding:9px;font-size:10px}.dev-toolbar p{font-size:10px;margin-top:9px;line-height:1.6}@keyframes breathe{0%,to{transform:scale(1) rotate(-.3deg)}50%{transform:scale(1.01) rotate(.3deg)}}@keyframes sway{0%,to{transform:rotate(-.5deg)}50%{transform:rotate(.7deg)}}@keyframes window-glow{0%,to{opacity:.45}50%{opacity:.95}}@keyframes smoke-rise{0%{transform:translate(0) scale(.6);opacity:0}25%{opacity:.4}to{transform:translate(16px,-60px) scale(2.5);opacity:0}}@keyframes firefly{0%,to{opacity:0;transform:translateY(0)}50%{opacity:.85;transform:translateY(-18px)}}@keyframes hero-joy{0%,to{transform:translateY(0) rotate(0)}40%{transform:translateY(-15px) rotate(-4deg)}70%{transform:translateY(-5px) rotate(3deg)}}@keyframes reward-rise{0%{opacity:0;transform:translateY(10px)}30%{opacity:1}to{opacity:0;transform:translateY(-55px)}}@keyframes modal-in{0%{opacity:0;transform:translateY(15px) scale(.96)}to{opacity:1;transform:none}}@keyframes magic-burst{0%{opacity:0;transform:scale(.2) rotate(0)}40%{opacity:1}to{opacity:0;transform:scale(3) rotate(80deg)}}@keyframes house-upgrade{0%{filter:brightness(1);transform:scale(1)}45%{filter:brightness(1.7);transform:scale(1.04)}to{filter:brightness(1);transform:scale(1)}}.reduced-motion *,.reduced-motion *:before,.reduced-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(min-width:761px){:root{--quest-height:263px;--nav-height:80px}.game-logo{top:17px;font-size:32px}.hero-hud{top:65px}.location-label{top:162px;font-size:14px}.scene-house{width:min(43vw,440px);left:calc(50% - 30px);bottom:calc(var(--quest-height) + 20px)}.house-shadow{width:360px;left:calc(50% + 15px);bottom:calc(var(--quest-height) + 35px)}.knight{height:min(51dvh,455px);left:calc(50% - 275px);bottom:calc(var(--quest-height) - 22px)}.hero-shadow{left:calc(50% - 230px);bottom:calc(var(--quest-height) - 12px)}.tree-back{width:560px;left:calc(50% - 780px);bottom:210px}.tree-front{width:540px;right:calc(50% - 850px);top:90px}.house-label{left:calc(50% + 225px);bottom:calc(var(--quest-height) + 19px);font-size:11px}.quest-panel{padding:18px 22px 14px;bottom:15px}.quest-panel h2{font-size:24px}.quest-label,.goal-time{font-size:12px}.house-progress{margin-top:12px;font-size:11px}.quest-steps{margin-bottom:13px;height:13px}.quest-rewards{font-size:10px}.manual-note{font-size:9px}.game-nav>button{font-size:13px}.screen-sheet{bottom:15px;max-height:calc(100% - 162px)}.house-preview,.house-preview img{height:230px}}@media(max-width:360px){:root{--nav-height:69px;--quest-height:232px}.hero-hud{padding:9px;gap:8px;width:calc(100% - 22px)}.portrait{width:43px;height:43px}.hero-name{font-size:12px}.energy{padding-left:7px}.energy strong{font-size:18px}.quest-panel{width:calc(100% - 20px);padding:14px 14px 10px}.quest-panel h2{font-size:19px}.quest-heading-row{gap:10px}.moon-emblem{width:47px;height:47px}.quest-label,.goal-time{font-size:10px}.quest-rewards{font-size:8px}.quest-rewards svg{width:12px}.primary-button{font-size:17px;min-height:45px}.manual-note{font-size:7px}.house-progress{margin-top:8px}.quest-steps{margin-bottom:10px}.knight{left:calc(50% - 170px);height:38dvh}.scene-house{width:260px;left:calc(50% - 60px);bottom:calc(var(--quest-height) + 50px)}.house-label{left:calc(50% + 63px);font-size:9px}.screen-sheet{width:calc(100% - 20px);padding:17px}.sheet-header h2{font-size:22px}}@media(max-height:720px){:root{--quest-height:228px;--nav-height:65px}.game-logo{font-size:23px;top:7px}.hero-hud{top:38px;padding:8px 10px}.portrait{width:41px;height:41px}.location-label{top:119px;font-size:10px}.quest-panel{padding-top:12px;padding-bottom:8px;bottom:8px}.quest-panel h2{font-size:20px}.quest-heading-row{gap:10px}.moon-emblem{width:46px;height:46px}.quest-label{font-size:10px}.goal-time{font-size:10px;min-height:22px}.house-progress{margin-top:6px}.quest-steps{margin-bottom:9px}.primary-button{min-height:43px;font-size:16px}.quest-rewards{margin-top:9px;font-size:8px}.manual-note{font-size:7px;margin-top:5px}.knight{height:34dvh;bottom:calc(var(--quest-height) - 10px)}.scene-house{width:240px;bottom:calc(var(--quest-height) + 25px)}.house-label{bottom:calc(var(--quest-height) + 8px);font-size:8px}.tree-back{width:310px;bottom:235px}.game-nav svg{width:23px;height:23px}.game-nav>button{font-size:10px}.screen-sheet{max-height:calc(100% - 125px);bottom:8px}.house-preview,.house-preview img{height:155px}.sheet-description{font-size:11px}.sleep-sheet .sheet-description{margin-top:12px}.sleep-sheet form{margin-top:14px}.time-input{padding:12px;margin-bottom:13px}.time-input input{font-size:27px}.task-status{margin:13px 0}.motion-toggle,.storage-note{margin-top:13px}.toast{top:120px}}@media(max-height:720px){.knight{height:31dvh}.scene-house{width:185px;left:calc(50% - 30px);bottom:calc(var(--quest-height) - 15px)}.house-shadow{width:165px;left:calc(50% - 20px);bottom:calc(var(--quest-height) - 3px)}}.game-stage{background:#5caa49}.game-logo{padding:5px 20px 7px;top:calc(4px + var(--safe-top));font-size:27px;text-align:center;color:#fff0b8;background:linear-gradient(160deg,#4c3447,#2b283a);border:2px solid #bb8339;border-radius:10px 10px 16px 16px;box-shadow:inset 0 0 0 2px #e8c77438,0 4px #1b292c88;text-shadow:0 2px 0 #5f321c,0 0 8px #d58d3155}.ecosystem-brand{display:block;margin-bottom:3px;font:600 8px/1 Segoe UI,Arial,sans-serif;letter-spacing:2.1px;color:#d9bd8c;text-shadow:0 1px 1px #211c2c}.game-title{display:block;line-height:1.05}.game-title>span{color:#f2d28e}.hero-hud{top:calc(64px + var(--safe-top));border:2px solid #cc9c50;background:linear-gradient(120deg,#483442f5,#252b3cf5);box-shadow:inset 0 0 0 2px #1e253b,inset 0 0 0 3px #e6b65c55,0 4px 12px #152e4155;padding:9px 11px}.portrait{border-color:#ffcd66;background:linear-gradient(#9cd4e6,#4c9b51)}.portrait img{width:100%;top:0;left:0;transform:scale(2.55);transform-origin:50% 0}.hero-name>span{color:#ffde86}.hero-class{color:#eed29f}.xp-wrapper .progress-track{height:14px;border-color:#d6ab58;background:#201f33}.xp-wrapper .progress-track>span{background:linear-gradient(#fff1a3,#ffc448 55%,#df8a20)}.energy{color:#ffd057;border-color:#bf925b66}.energy small{color:#ecdcb8}.quest-panel{background:linear-gradient(120deg,#51404ff8,#332b40f8);border:2px solid #d7a14e;color:#fff1cc;box-shadow:inset 0 0 0 2px #463745,inset 0 0 0 3px #edc67655,0 4px #24302c,0 6px 18px #0c293f66}.quest-panel:before,.quest-panel:after{color:#ffd97b}.quest-panel .quest-label{color:#ffe198;text-shadow:0 1px 1px #3b2a35}.quest-panel h2{color:#fff6e7;text-shadow:0 2px 1px #271f30;font-size:22px}.moon-emblem{background:radial-gradient(#7f60ba,#392950);border-color:#e7ac51;color:#ffe84f;box-shadow:0 0 0 3px #bb9d5033,0 0 14px #8064bb33}.goal-time{color:#f0dbc2}.goal-time strong{color:#ffe5a4}.house-progress{color:#dac4ac}.house-progress>strong{color:#ffe4a3}.quest-steps>span{border-color:#b49bba77;background:#78657e;box-shadow:inset 0 1px 3px #181d3940}.quest-steps>span.done{background:linear-gradient(#c4ec61,#78b529);border-color:#a6cb55;box-shadow:inset 0 1px #efff9d}.primary-button{border:2px solid #b86a13;background:linear-gradient(#ffe168,#ffc027 48%,#eda017 51%,#ffc236);color:#4f280b;text-shadow:0 1px 0 #fff7b5;box-shadow:inset 0 0 0 2px #ffe788,inset 0 3px #fff6bb,0 3px #895017,0 6px 9px #1e1a2d55;border-radius:13px}.primary-button:hover:not(:disabled){filter:brightness(1.08)}.primary-button:active:not(:disabled){box-shadow:inset 0 0 0 2px #ffe788,0 1px #895017}.primary-button:disabled{background:linear-gradient(#89828b,#625969);border-color:#b0a3a3;color:#f4e8db;box-shadow:inset 0 1px #c8c1bf77,0 2px #392f40;text-shadow:0 1px 0 #362e3d}.primary-button.completed{background:linear-gradient(#77954e,#496d36);border-color:#a5bf73;color:#fff6d5}.quest-rewards{color:#ffefce;font-size:10px}.quest-rewards svg{color:#ffcb39}.quest-rewards>span:last-child svg{color:#f6ba64}.quest-panel .manual-note{color:#c9b5c8}.house-label{border:2px solid #e8b34c;border-radius:12px;background:linear-gradient(#55412b,#322e32);color:#ffe9a8;box-shadow:0 2px #29332d,0 0 0 2px #4b412f99;padding:7px 10px}.game-nav{background:linear-gradient(#493744,#272535);border-top-color:#d5a359}.game-nav>button{color:#e2c999}.game-nav>button svg{stroke-width:2;fill:#d4943c26;filter:drop-shadow(0 2px 1px #171f31)}.game-nav>button.active{color:#fff4d0;border:2px solid #ffd46c;background:linear-gradient(#b75e18aa,#e49d2999);box-shadow:inset 0 0 0 2px #ffcf6577,0 0 12px #ffc04344}.game-nav>button.active svg{stroke:#fff0aa;fill:#ffc24477}.knight{height:clamp(250px,41dvh,370px);left:calc(50% - 260px);bottom:calc(var(--quest-height) - 17px)}.scene-house{width:270px;left:calc(50% - 30px);bottom:calc(var(--quest-height) + 68px)}.house-shadow{width:225px;left:calc(50% - 10px);bottom:calc(var(--quest-height) + 78px)}.hero-shadow{left:calc(50% - 145px);width:120px}.tree-back{filter:brightness(.9);width:360px;left:calc(50% - 390px)}.tree-front{filter:brightness(.92);right:calc(50% - 480px)}.evening-light{background:linear-gradient(135deg,#ffd75816,transparent 55%,#21416b16)}.scene-vignette{box-shadow:inset 0 0 65px #15384b2b;background:linear-gradient(180deg,#19324a30,transparent 22%,transparent 70%,#163e444d)}.distant-village{position:absolute;top:calc(160px + var(--safe-top));left:50%;transform:translate(-50%);width:320px;height:100px;z-index:1;pointer-events:none;filter:drop-shadow(0 2px 1px #31605055)}.distant-village img{position:absolute;object-fit:contain}.distant-townhall{width:75px;left:160px;top:-2px}.distant-tower{width:48px;left:0;top:8px}.distant-training{width:62px;left:135px;top:32px}.scene-house .smoke{left:66%;top:8%}.scene-house .window-light{left:36%;bottom:46%}.reward-modal .primary-button{font-size:17px}.screen-sheet .primary-button{font-size:16px}@media(min-width:761px){.game-logo{font-size:30px;top:calc(8px + var(--safe-top))}.hero-hud{top:76px}.knight{height:min(45dvh,410px);left:calc(50% - 345px);bottom:calc(var(--quest-height) - 22px)}.scene-house{width:min(40vw,420px);left:calc(50% - 20px);bottom:calc(var(--quest-height) + 24px)}.house-shadow{width:340px;left:calc(50% + 10px);bottom:calc(var(--quest-height) + 40px)}.distant-village{top:180px;width:500px;height:135px}.distant-townhall{width:115px;left:270px}.distant-tower{width:75px;left:20px}.quest-panel h2{font-size:24px}.tree-front{width:min(32vw,480px);left:max(88vw,calc(50% + 440px));right:auto;top:70px}.tree-back{width:min(33vw,500px);left:-18vw;bottom:170px}}@media(max-width:360px){.quest-panel h2{font-size:19px}.hero-hud{padding:8px}.quest-rewards{font-size:8px}.knight{left:calc(50% - 230px)}.scene-house{width:240px;left:calc(50% - 25px)}.distant-village{width:280px}.distant-townhall{width:65px;left:140px}.distant-tower{width:42px;left:0}}@media(max-height:720px){.game-logo{font-size:22px;padding:2px 18px 3px;top:calc(1px + var(--safe-top))}.hero-hud{top:44px}.ecosystem-brand{font-size:7px;margin-bottom:1px}.knight{height:33dvh;left:calc(50% - 205px);bottom:calc(var(--quest-height) - 14px)}.scene-house{width:185px;left:calc(50% - 22px);bottom:calc(var(--quest-height) - 4px)}.distant-village{top:115px;height:55px}.distant-townhall{width:48px;left:150px}.distant-tower{width:38px;left:20px}.quest-panel h2{font-size:20px}.quest-rewards{font-size:8px}}.energy-cap{font-size:10px;font-weight:500;opacity:.72;margin-left:2px}:root{--safe-top:max(env(safe-area-inset-top,0px),var(--lq-safe-top,0px),var(--tg-content-safe-area-inset-top,0px),var(--tg-safe-area-inset-top,0px));--safe-bottom:max(env(safe-area-inset-bottom,0px),var(--lq-safe-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px));--safe-left:max(env(safe-area-inset-left,0px),var(--lq-safe-left,0px));--safe-right:max(env(safe-area-inset-right,0px),var(--lq-safe-right,0px))}.game-app,.game-content{height:min(var(--lq-viewport-height,100dvh),100dvh)}.game-content{width:calc(100% - var(--safe-left) - var(--safe-right));margin-left:var(--safe-left)}.screen-sheet{max-height:calc(100% - 162px - var(--safe-top))}.screen-sheet.game-panel{background:linear-gradient(135deg,#f8e3b7,#e6c993)}@media(min-width:761px){.hero-hud{top:calc(76px + var(--safe-top))}}:root[data-lq-compact=true]{--quest-height:228px;--nav-height:65px}html[data-lq-compact=true] .game-logo{font-size:22px;padding:2px 18px 3px;top:calc(1px + var(--safe-top))}html[data-lq-compact=true] .hero-hud{top:calc(44px + var(--safe-top));padding:8px 10px}html[data-lq-compact=true] .tutorial-help{top:calc(9px + var(--safe-top));width:26px;height:26px}html[data-lq-compact=true] .knight{height:calc(var(--lq-viewport-height,100dvh)*.31);left:calc(50% - 205px);bottom:calc(var(--quest-height) - 14px)}html[data-lq-compact=true] .scene-house{width:185px;left:calc(50% - 22px);bottom:calc(var(--quest-height) - 4px)}html[data-lq-compact=true] .scene-ground-props{display:none}html[data-lq-compact=true] .quest-panel{padding-top:12px;padding-bottom:8px;bottom:8px}html[data-lq-compact=true] .quest-panel h2{font-size:20px}html[data-lq-compact=true] .primary-button{min-height:43px;font-size:16px}html[data-lq-compact=true] .screen-sheet{max-height:calc(100% - 125px - var(--safe-top))}html[data-lq-compact=true] .quest-rewards{font-size:8px;margin-top:9px}html[data-lq-compact=true] .house-progress{margin-top:6px}html[data-lq-compact=true] .quest-steps{margin-bottom:9px}.scene-ground-props{position:absolute;inset:0;z-index:1;pointer-events:none}.scene-ground-props img{position:absolute;object-fit:contain;pointer-events:none}.scene-paving{width:200px;left:calc(50% - 15px);bottom:calc(var(--quest-height) + 5px)}.scene-fence{width:150px;left:calc(50% + 130px);bottom:calc(var(--quest-height) + 40px)}.scene-lantern{width:66px;left:calc(50% + 128px);bottom:calc(var(--quest-height) + 52px)}.scene-flowers{width:88px;left:calc(50% + 75px);bottom:calc(var(--quest-height) + 10px)}.scene-barrels{width:57px;left:calc(50% + 177px);bottom:calc(var(--quest-height) + 52px)}@media(max-height:720px){.scene-ground-props{display:none}}@media(min-width:361px)and (max-width:760px)and (min-height:721px){.scene-house{width:250px;left:calc(50% - 47px)}.tree-front{width:280px;right:calc(50% - 430px)}}.tutorial-help{position:absolute;z-index:16;top:calc(14px + var(--safe-top));left:14px;width:30px;height:30px;display:grid;place-items:center;padding:0;border:1px solid #d9b56d;border-radius:50%;color:#ffe7aa;background:#392d43e8;box-shadow:inset 0 0 0 2px #b88d4c22,0 2px 5px #1b344533}.onboarding-overlay{position:absolute;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;padding:16px;background:#15273bd1;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.tutorial-card{width:370px;max-width:100%;max-height:calc(100dvh - 32px - var(--safe-top) - var(--safe-bottom));overflow:auto;scrollbar-width:thin;padding:19px 22px 20px;text-align:center;background:linear-gradient(130deg,#58414f,#322a40);border-color:#dab06a;color:#f8e9cf;box-shadow:inset 0 0 0 2px #65454a,inset 0 0 0 3px #e8bc6a55,0 10px 40px #071d3266}.tutorial-card:before,.tutorial-card:after{display:none}.tutorial-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.tutorial-top>span{font-size:8px;letter-spacing:.8px;color:#c9b3a2}.tutorial-top>button{background:none;border:0;color:#ecd3a6;font-size:10px;min-height:30px;padding:0 0 0 5px}.tutorial-portrait{display:block;width:125px;height:125px;object-fit:contain;margin:10px auto 12px;filter:drop-shadow(0 3px 6px #231d3333)}.tutorial-symbols{display:flex;justify-content:center;align-items:center;gap:22px;height:74px;color:#f6cd6d}.tutorial-symbols svg{width:34px;height:34px;fill:#e6b84a22;filter:drop-shadow(0 2px 2px #39223388)}.tutorial-card h2{font-size:25px;font-weight:600;line-height:1.2;color:#ffe6a7;letter-spacing:-.5px}.tutorial-copy{font-size:12px;line-height:1.75;color:#e4d0c0;max-width:290px;margin:13px auto 17px}.tutorial-dots{display:flex;justify-content:center;gap:6px;margin:17px 0 19px}.tutorial-dots i{width:6px;height:6px;border-radius:50%;background:#847080;border:1px solid #ad9391}.tutorial-dots i.current{background:#ffda70;border-color:#ffe5a3;box-shadow:0 0 6px #eab84955}.tutorial-dots i.done{background:#9db56b;border-color:#b7c98b}.tutorial-card .primary-button{font-size:15px;min-height:47px}.tutorial-back{border:0;background:none;color:#c7b29c;font-size:10px;min-height:24px;margin-top:10px;padding:3px 10px}.tutorial-time-label{display:block;text-align:left;font-size:11px;color:#e1c99e;margin-bottom:8px}.tutorial-card .time-input{margin:0;background:#ead9b9;color:#aa823d;border-color:#d3ae67;padding:13px 16px}.tutorial-card .time-input input{font-size:29px}.tutorial-error{font-size:11px;line-height:1.5;color:#ffcc96;padding:8px;margin-top:8px;background:#3a263b66;border-radius:6px}.tutorial-house-focus{align-items:flex-end;padding-bottom:calc(var(--nav-height) + var(--safe-bottom) + 12px);-webkit-backdrop-filter:none;backdrop-filter:none;background:radial-gradient(ellipse var(--spot-w,150px) var(--spot-h,160px) at var(--spot-x,70%) var(--spot-y,40%),#17283a05 45%,#17283abf 94%)}.tutorial-house-outline{position:absolute;border:2px solid #ffe089;border-radius:32%;box-shadow:0 0 20px #ffd86d66,inset 0 0 15px #ffda6466;pointer-events:none}.tutorial-house-focus .tutorial-card{max-height:calc(100dvh - var(--nav-height) - var(--safe-bottom) - var(--safe-top) - 28px)}.tutorial-step-3 .tutorial-symbols{height:39px;margin:8px 0}.tutorial-step-3 .tutorial-symbols svg{width:27px;height:27px}@media(max-height:720px){.tutorial-help{top:9px;left:12px;width:26px;height:26px}.tutorial-card{padding:14px 18px 15px}.tutorial-portrait{width:95px;height:95px;margin:4px auto 10px}.tutorial-card h2{font-size:22px}.tutorial-copy{font-size:11px;line-height:1.65;margin:10px auto 12px}.tutorial-symbols{height:56px}.tutorial-symbols svg{width:29px;height:29px}.tutorial-dots{margin:12px 0 14px}.tutorial-card .primary-button{min-height:43px;font-size:14px}.tutorial-back{margin-top:6px;min-height:20px}.tutorial-step-3 .tutorial-symbols{height:27px;margin:5px 0}.tutorial-step-3 .tutorial-symbols svg{width:23px;height:23px}}.game-app,.game-content,.game-stage,.village-scene,.village-map{overflow:clip}.house-art{position:relative;display:block;width:100%;aspect-ratio:1;isolation:isolate}.house-art>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.house-retiring{z-index:2;animation:house-retire 1.4s ease both}.house-changing .house-current{animation:house-arrive 1.4s ease both!important}.construction-halo{position:absolute;inset:5% -8% -4%;z-index:0;background:radial-gradient(#ffe77ba1,transparent 70%);animation:construction-light 1.4s ease both;pointer-events:none}.construction-dust{position:absolute;inset:60% -5% -3%;z-index:4;background:radial-gradient(ellipse,#f5dcadbb,transparent 68%);filter:blur(7px);animation:construction-dust 1.3s ease both;pointer-events:none}.construction-sparks{position:absolute;inset:0;z-index:5;pointer-events:none}.construction-sparks i{position:absolute;left:calc(8% + var(--s)*11%);top:calc(30% + mod(var(--s),3)*16%);color:#ffe9a2;font-size:21px;animation:build-spark 1.4s ease-out both;animation-delay:calc(var(--s)*25ms)}.construction-label{position:absolute;top:15%;left:50%;transform:translate(-50%);z-index:6;padding:6px 12px;border:1px solid #ffe39d;background:#614029e8;border-radius:14px;font-size:13px;font-weight:700;white-space:nowrap;color:#fff1c3;animation:build-label 1.4s ease both;pointer-events:none}.upgrade-ready{border-color:#ffdf76!important;box-shadow:0 0 15px #ffd14c66!important;color:#ffedb8!important}.house-comparison{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);align-items:center;gap:3px;margin:13px 0 17px;color:#a27635}.house-comparison figure{margin:0;min-width:0;text-align:center}.house-comparison img{width:100%;height:145px;object-fit:contain}.house-comparison figcaption{font-size:9px;font-weight:600;line-height:1.4;color:#947044}.world-chimney-smoke{left:66%;top:8%}@keyframes house-retire{0%,24%{opacity:1}65%,to{opacity:0}}@keyframes house-arrive{0%,20%{opacity:0;filter:brightness(1.6)}70%,to{opacity:1;filter:brightness(1)}}@keyframes construction-light{0%{opacity:0}35%{opacity:1}to{opacity:0}}@keyframes construction-dust{0%{opacity:0;transform:translateY(0)}30%{opacity:.8}to{opacity:0;transform:translateY(-20px)}}@keyframes build-spark{0%{opacity:0;translate:0 10px}30%{opacity:1}to{opacity:0;translate:0 -50px}}@keyframes build-label{0%,20%{opacity:0}45%,80%{opacity:1}to{opacity:0}}.reduced-motion .house-retiring{display:none}.reduced-motion .house-current{opacity:1!important}.reduced-motion .construction-halo,.reduced-motion .construction-dust,.reduced-motion .construction-sparks,.reduced-motion .construction-label{display:none}@media(prefers-reduced-motion:reduce){.house-retiring{display:none}.house-current{opacity:1!important}.construction-halo,.construction-dust,.construction-sparks,.construction-label{display:none}}@media(max-height:720px){.house-comparison{margin:9px 0 11px}.house-comparison img{height:95px}.house-comparison figcaption{font-size:8px}.house-sheet .sheet-description{font-size:10px}.house-sheet .progress-label{margin-top:12px}.house-sheet>.primary-button{margin-top:12px}}.knight.hero-sprite{aspect-ratio:1;width:auto;border:0;padding:0;background:none;animation:none;overflow:visible;pointer-events:none}.hero-sprite>*{pointer-events:none}.hero-sprite .hero-hit-area{position:absolute;inset:0;z-index:3;pointer-events:auto;clip-path:polygon(35% 0,70% 0,76% 30%,88% 45%,88% 80%,75% 99%,31% 99%,25% 76%,7% 77%,10% 51%,28% 36%)}.hero-sprite:focus-visible{outline-offset:-40px;border-radius:50%}.hero-frame{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.hero-idle-layers{position:absolute;inset:0;opacity:1;transition:opacity .12s linear;animation:hero-breath 4.5s ease-in-out infinite}.hero-body{clip-path:inset(34% 0 0)}.hero-head{position:absolute;inset:0;clip-path:inset(0 0 64%);transform-origin:51% 34%;animation:hero-head-turn 7s ease-in-out infinite}.hero-blink{opacity:0;animation:hero-blink 5.8s step-end infinite}.hero-cape{clip-path:polygon(3% 40%,25% 35%,35% 70%,30% 93%,1% 87%);transform-origin:27% 42%;animation:hero-cape 5s ease-in-out infinite}.hero-celebrate-frame,.hero-interact-frame{opacity:0;transition:opacity .12s linear}.hero-celebrate .hero-idle-layers,.hero-interact .hero-idle-layers{opacity:0}.hero-celebrate .hero-celebrate-frame,.hero-interact .hero-interact-frame{opacity:1}.celebrating .knight.hero-sprite{animation:none}.hero-celebrate .hero-celebrate-frame{animation:hero-rejoice .7s ease-in-out 2}.hero-greeting{position:absolute;z-index:9;bottom:calc(var(--quest-height) + 250px);left:50%;transform:translate(-50%);white-space:nowrap;padding:8px 12px;background:#423044f2;color:#ffebba;border:1px solid #dfb567;border-radius:18px;font-size:12px;pointer-events:none}.effects-paused .village-scene *,.effects-paused .village-map *{animation-play-state:paused!important}.garden-sprig{position:absolute;z-index:5;left:calc(50% + 130px);bottom:calc(var(--quest-height) + 14px);width:33px;height:30px;transform-origin:50% 100%;animation:sway 4s ease-in-out infinite;pointer-events:none}.garden-sprig i{position:absolute;bottom:0;left:10px;width:9px;height:25px;border-radius:90% 0;background:linear-gradient(#b0d654,#468732);border:1px solid #629b3b;transform:rotate(-28deg)}.garden-sprig i:nth-child(2){left:17px;height:28px;transform:rotate(18deg)}.garden-sprig i:nth-child(3){left:22px;height:18px;transform:rotate(46deg)}@keyframes hero-breath{0%,to{transform:translateY(0)}50%{transform:translateY(-2px)}}@keyframes hero-head-turn{0%,to{transform:rotate(-.3deg)}50%{transform:rotate(.4deg)}}@keyframes hero-blink{0%,94%,98%,to{opacity:0}95%,97%{opacity:1}}@keyframes hero-cape{0%,to{transform:rotate(-.6deg)}50%{transform:rotate(1deg)}}@keyframes hero-rejoice{0%,to{transform:translateY(0) rotate(0)}40%{transform:translateY(-8px) rotate(-1deg)}70%{transform:translateY(-2px) rotate(1deg)}}.reward-effects{position:absolute;inset:0;pointer-events:none;z-index:14}.reward-caption{position:absolute;top:calc(144px + var(--safe-top));left:50%;transform:translate(-50%);display:flex;align-items:center;justify-content:center;gap:7px;max-width:calc(100% - 30px);white-space:nowrap;padding:10px 15px;border:1px solid #ffd477;border-radius:20px;background:linear-gradient(#68452bf0,#3a2941f0);box-shadow:0 0 18px #ffd96944;color:#fff1af;font-size:14px;font-weight:700;text-shadow:0 1px 2px #493026;animation:caption-pop .4s ease-out both}.reward-caption svg{width:21px;height:21px;fill:#ffd75b44;stroke:#ffd65f}.phase-xp .reward-caption{color:#ffeaa0}.phase-energy .reward-caption{border-color:#d4ef89}.phase-house .reward-caption,.phase-ready .reward-caption{border-color:#e6be6b}.reward-particles{position:absolute;left:50%;top:43%;width:0;height:0}.reward-particles i{position:absolute;color:#ffe183;text-shadow:0 0 7px #ffc75d;font-size:calc(10px + mod(var(--p),3)*4px);animation:gold-flight 1.8s ease-out both;animation-delay:calc(var(--p)*55ms);--angle:calc(var(--p)*30deg)}@keyframes caption-pop{0%{opacity:1;translate:0 6px;scale:.94}to{opacity:1;translate:0 0;scale:1}}@keyframes gold-flight{0%{opacity:0;transform:rotate(var(--angle)) translate(10px) rotate(calc(-1*var(--angle)))}20%{opacity:1}to{opacity:0;transform:rotate(var(--angle)) translate(110px) rotate(calc(-1*var(--angle)))}}@media(max-height:720px){.reward-caption{top:115px;font-size:11px;padding:8px 11px}.reward-caption svg{width:17px;height:17px}}
