/* Brętuś: one warm, spacious interface across the game and learning activities. */
:root{--cream:#fff1c8;--gold:#f7cf70;--forest:#173f36;--mint:#b4d4af;--line:#78997b66}
*{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}html,body,button,canvas,img{-webkit-user-select:none;user-select:none}input,textarea{-webkit-user-select:text;user-select:text}img{-webkit-user-drag:none}button{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #ffeab3;outline-offset:3px}body{background:#143d35}.app{gap:0}.topbar,.site-footnote{display:none}.game-frame{border:0;border-radius:14px 14px 0 0}.bottom-nav{display:flex;flex:0 0 48px;align-items:stretch;justify-content:center;gap:3px;background:#11372f;border-top:1px solid var(--line);padding:4px max(6px,env(safe-area-inset-right)) 4px max(6px,env(safe-area-inset-left));z-index:12}.bottom-nav button{min-width:60px;max-width:160px;flex:1;background:transparent;border:0;border-radius:8px;color:#e1e9cb;font-size:19px;display:flex;align-items:center;justify-content:center;gap:8px}.bottom-nav span{font-size:10px;letter-spacing:.7px}.bottom-nav button:hover{background:#355b43}body:not(.playing) .hud{display:none}body:not(.playing) .progress-track{display:none}.start-screen{display:flex;justify-content:flex-end;align-items:center;background:#214633 url('./assets/bretus-menu.webp') center/cover no-repeat;padding:clamp(15px,4vw,70px);overflow:auto}.start-screen .title-content{background:none;border:0;box-shadow:none;width:49%;max-width:580px;padding:0!important;display:block;text-align:left;border-radius:0}.start-screen h1{font-size:clamp(24px,3.3vw,52px);line-height:1.07;letter-spacing:1px;text-shadow:0 3px 10px #0c302b}.start-screen h1 span{font-size:1em;color:var(--gold);display:block;letter-spacing:1px;margin-top:4px}.start-screen .eyebrow{font-size:clamp(8px,.9vw,11px);color:var(--mint);letter-spacing:1.5px;display:block}.start-screen .intro{font-size:17px;margin:12px 0 23px;color:#e8edce;display:block}.hero-actions{display:grid;gap:9px;max-width:450px}.hero-actions>button{border:1px solid #a6b8905c;background:#244f43eb;border-radius:14px;min-height:62px;text-align:left;padding:10px 18px;color:var(--cream);font-size:24px;display:flex;align-items:center;gap:14px;box-shadow:0 3px #133b30;letter-spacing:.6px;transition:background .15s,transform .15s}.hero-actions>button:hover{background:#3c6e51;transform:translateX(3px)}.hero-actions>button span{font-size:14px}.hero-actions>button small{display:block;font-size:11px;font-weight:normal;letter-spacing:.2px;color:#c4d4b7;margin-top:3px}.title-content .hero-actions .primary{margin:0;max-width:none;width:100%;background:var(--gold);color:#254a36;font-size:23px;justify-content:space-between;font-weight:900;box-shadow:0 4px #bc934d;min-height:67px}.minor-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:20px}.minor-actions button{background:transparent;padding:7px 0;color:#e3dcaf;border:0;font-size:11px;letter-spacing:.6px}.start-hint{font-size:11px;text-align:left;color:#c8d7ae;display:block;margin-top:12px}
/* Credits and a separate optional reminder, never a delay on the play button. */
.intro-splash{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:flex-end;padding:5vw;background:#254c38 url('./assets/bretus-menu.webp') center/cover no-repeat}.opening-copy{width:47%;max-width:650px;color:#fff1cc;line-height:1.55;text-align:left}.opening-copy h1{font-size:clamp(25px,4vw,60px);line-height:1.05;color:var(--gold);margin:12px 0 20px}.opening-copy p{margin:12px 0}.opening-copy small{display:block;color:#c4d1b1;margin:9px 0}.opening-copy button{min-width:190px;margin-top:15px}.balance-splash{position:fixed;inset:0;z-index:1000;display:grid;grid-template-columns:1.1fr 1fr;background:#f7edce;color:#274933;align-items:center;gap:5vw;padding:4vw}.balance-splash img{width:100%;max-height:80dvh;object-fit:cover;border-radius:28px;box-shadow:0 14px 45px #61482e25}.balance-splash>div{max-width:520px}.balance-splash h2{font-size:clamp(25px,3.5vw,45px);line-height:1.1;margin:15px 0 24px}.balance-splash p{font-size:clamp(15px,1.5vw,20px);line-height:1.6}.balance-splash .eyebrow{font-size:10px;color:#517853}.balance-splash button{min-width:210px;margin-top:20px}.hidden{display:none!important}
.panel-screen{background:linear-gradient(135deg,#224c40,#123930);padding:clamp(14px,3vw,35px);scrollbar-color:#91b089 #163d34}.screen-heading{border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:15px}.screen-heading h2{color:var(--cream)}.shop-categories{justify-content:center;gap:8px}.shop-categories button{min-height:44px;border-radius:12px;padding:10px 18px;font-size:12px}.product-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px}.product{background:#315548;border:1px solid var(--line);border-radius:18px;padding:18px;text-align:center}.product-icon{font-size:52px;display:block;margin-bottom:10px}.product h3{font-size:17px}.product p{font-size:13px;line-height:1.45}.product .buy{min-height:42px}.outfit-thumb{width:145px;height:121px;image-rendering:auto}.bear-preview{background:#2c5345;border-radius:20px;position:sticky;top:0;align-self:start}.world-card{border-radius:18px;overflow:hidden}.world-grid{gap:15px}.tabs button{min-height:42px}.purchase-pop{animation:pop .65s ease-out}@keyframes pop{0%{transform:scale(.86)}45%{transform:scale(1.12)}100%{transform:scale(1)}}.home-scene{border-radius:20px;overflow:hidden}.place-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:20px;max-width:1250px;margin:20px auto}.place-card{background:#305649;border:1px solid var(--line);border-radius:20px;overflow:hidden}.place-card canvas{width:100%;aspect-ratio:36/17;display:block}.place-card h3,.place-card p{margin:17px 20px}.place-card h3{color:var(--gold);font-size:19px}.place-card p{font-size:14px;line-height:1.6}.outside-task{background:#163f3555;border-radius:12px;padding:14px}.place-lock{height:150px;display:grid;place-items:center;font-size:36px;opacity:.6}.learning-note{line-height:1.6;color:#e1e7c6;font-size:16px;margin:18px 0}#educationContent{max-width:900px;margin:auto;text-align:center}#educationContent>.secondary{margin:7px}.learning-choice{display:block;width:100%;max-width:650px;margin:20px auto;border-radius:22px;min-height:110px;font-size:clamp(18px,2.4vw,25px);background:#39624d;color:var(--cream);border:1px solid #acc590;padding:20px}.learning-card{margin:20px auto;background:#f5edce;color:#264a38;border-radius:26px;padding:24px;max-width:700px}.learning-card h3{font-size:23px}.learning-icon{font-size:65px;margin:12px}.learning-detail{font-size:clamp(25px,4vw,44px);letter-spacing:4px;margin:15px;overflow-wrap:anywhere}.learning-card .learning-note{color:#3c6747}.learning-answers{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:18px}.learning-answers button{min-width:75px;min-height:63px;margin:0!important;font-size:23px;background:#39684c}.learning-answers p{flex-basis:100%;font-size:28px}.field select{min-height:44px;border:1px solid #89a87d;border-radius:10px;width:100%;padding:8px;background:#315749;color:#fff1c8;font:inherit}
@media(max-width:650px) and (orientation:portrait){body{padding:0}.game-frame{border-radius:0}.bottom-nav{flex-basis:54px}.bottom-nav button{flex-direction:column;gap:2px;font-size:18px}.bottom-nav span{font-size:9px}.start-screen{align-items:flex-end;padding:18px;background-size:auto 68%;background-position:20% 0;background-repeat:no-repeat;background-color:#214633}.start-screen:before{content:'';position:absolute;inset:30% 0 0;background:linear-gradient(transparent,#163d33 38%);pointer-events:none}.start-screen .title-content{width:100%;max-width:none;position:relative;padding:12px 5px!important}.start-screen h1{font-size:27px}.start-screen .eyebrow{font-size:8px}.start-screen .intro{font-size:13px;margin:8px 0 14px}.hero-actions{max-width:none;gap:8px}.hero-actions>button{min-height:54px;padding:9px 14px;border-radius:13px;font-size:20px}.hero-actions>button span{font-size:12px}.hero-actions>button small{font-size:10px}.title-content .hero-actions .primary{min-height:55px;font-size:21px}.minor-actions{margin-top:11px;justify-content:space-between}.start-hint{margin-top:7px;font-size:10px}.intro-splash{padding:22px;align-items:flex-end;background-position:25% top;background-size:auto 65%;background-repeat:no-repeat;background-color:#183e32}.opening-copy{width:100%;max-width:none;background:linear-gradient(transparent,#183e32 12%);padding-top:50px;font-size:13px}.opening-copy h1{font-size:29px;margin:10px 0}.opening-copy p{margin:9px 0}.opening-copy small{font-size:11px}.opening-copy button{min-height:48px;padding:12px}.balance-splash{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:22px;overflow:auto}.balance-splash img{max-height:39dvh;object-position:center;border-radius:20px}.balance-splash h2{font-size:27px;margin:10px 0}.balance-splash p{font-size:15px;margin:10px 0}.balance-splash button{margin-top:9px;min-height:52px;width:100%}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product{padding:12px 8px}.product h3{font-size:15px}.product p{font-size:11px}.product-icon{font-size:42px}.shop-categories button{font-size:9px;padding:8px}.learning-card{padding:16px}.learning-card h3{font-size:20px}}
@media(orientation:landscape) and (max-height:600px){.bottom-nav{flex-basis:36px;padding:2px 6px}.bottom-nav button{font-size:16px}.bottom-nav span{font-size:9px}.start-screen{padding:16px 5vw}.start-screen .title-content{display:block;width:48%;max-width:510px}.start-screen h1{font-size:25px;line-height:1.05}.start-screen .eyebrow{font-size:7px;margin:0 0 5px}.start-screen .intro,.start-hint{display:none}.hero-actions{gap:5px;margin-top:10px}.hero-actions>button,.title-content .hero-actions .primary{min-height:39px;padding:6px 12px;border-radius:10px;font-size:17px}.hero-actions>button span{font-size:11px}.hero-actions>button small{display:none}.minor-actions{margin-top:7px;gap:18px}.minor-actions button{font-size:9px;padding:3px}.intro-splash{padding:20px 5vw}.opening-copy{font-size:11px;line-height:1.3;width:47%}.opening-copy h1{font-size:27px;margin:8px 0}.opening-copy p{margin:8px 0}.opening-copy small{font-size:9px;margin:6px 0}.opening-copy button{margin-top:5px;min-height:36px;font-size:13px;padding:8px}.balance-splash{padding:20px 5vw;gap:4vw}.balance-splash img{max-height:86dvh}.balance-splash h2{font-size:25px;margin:10px 0}.balance-splash p{font-size:13px;margin:8px 0}.balance-splash button{min-height:40px;font-size:14px;margin-top:8px;padding:10px}.panel-screen{padding:15px}.screen-heading{padding-bottom:8px;margin-bottom:8px}.screen-heading h2{font-size:23px}.learning-icon{font-size:40px}.learning-detail{font-size:27px}.learning-card{padding:15px}.learning-card h3{font-size:18px}.learning-answers button{min-height:45px;font-size:20px}.learning-choice{min-height:65px;font-size:19px;margin:12px auto}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Keep the main choices readable even in the compact phone layout. */
.minor-actions button{font-size:13px}.bottom-nav span{font-size:11px}
@media(max-width:650px) and (orientation:portrait){.hero-actions>button span{font-size:14px}.minor-actions button{font-size:12px}.bottom-nav span{font-size:10px}}
@media(orientation:landscape) and (max-height:600px){.hero-actions>button span{font-size:13px}.hero-actions>button,.title-content .hero-actions .primary{min-height:43px}.minor-actions button{font-size:12px}}

/* v11: two untimed, accessible welcome steps and a warm woodland wordmark. */
.intro-splash,.balance-splash{overflow-y:auto}.opening-copy{max-height:100%;overflow-y:auto;padding-bottom:8px}.opening-copy h1,.start-screen h1{color:#ffd56d;text-shadow:0 2px 0 #9d591f,0 4px 0 #55331d,0 6px 10px #142c25;letter-spacing:.5px}.opening-copy h1 span,.start-screen h1 span{color:#a6b950;text-shadow:0 1px 0 #e2e8a5,0 3px 0 #475122,0 5px 0 #25351e,0 6px 10px #142c25}.hygiene-card{background:#f6edcc;color:#284a36;border-radius:20px;padding:24px;margin-bottom:28px}.hygiene-card h2{color:#244c35;font-size:clamp(24px,3vw,38px)}.hygiene-card a{color:#245b59;text-decoration:underline}.hygiene-card small{line-height:1.5;display:block}.menu-bear{position:absolute;left:3%;top:14%;width:39%;height:79%;border:0;background:transparent!important;box-shadow:none;z-index:1;cursor:pointer}.title-content{position:relative;z-index:2}.menu-bear:focus-visible{outline:3px dashed #ffd56d;outline-offset:-12px;border-radius:50%}#developerError{color:#ffd08f}
@media(max-width:650px) and (orientation:portrait){.menu-bear{top:0;left:0;width:65%;height:30%}.intro-splash{align-items:flex-end}.opening-copy{max-height:90dvh}.hygiene-card{padding:18px}}

.play-statistics{text-align:left;border-top:1px solid #779477;padding:14px 0;margin-top:14px}.play-statistics summary{cursor:pointer;min-height:44px;padding:10px;color:#ffe09a}.play-statistics table{width:100%}.play-statistics td:last-child{text-align:right}.balance-splash{overscroll-behavior:contain}

/* v12: illustrations remain whole; text has its own opaque, quiet surface. */
.intro-splash{padding:0;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#173f36;overflow:auto;gap:0}
.welcome-poster{min-height:0;flex:1;display:flex;align-items:center;justify-content:center;width:100%;overflow:auto}
.welcome-poster img{display:block;width:100%;height:100%;object-fit:contain;max-width:1254px}
.welcome-footer{flex:none;width:100%;box-sizing:border-box;background:#fff1ce;color:#173f36;display:flex;align-items:center;justify-content:center;gap:24px;padding:12px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom));box-shadow:0 -3px 20px #173f3640}
.welcome-footer p{font-size:14px;line-height:1.5;margin:0}.welcome-footer button{min-height:52px;min-width:160px;margin:0}
.start-screen{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:0;padding:0;background:#173f36;align-items:center;justify-content:normal;overflow:auto}
.start-screen:before{display:none}.menu-illustration{position:relative;width:100%;min-width:0;align-self:center}.menu-illustration img{width:100%;height:auto;display:block;object-fit:contain}
.start-screen .menu-bear{left:6%;top:20%;width:33%;height:77%;padding:0}
.start-screen .title-content{width:auto;max-width:none;box-sizing:border-box;padding:clamp(16px,2.5vw,36px)!important;background:#173f36;text-align:left;border-left:1px solid #799b7155}
.start-screen h1{font-size:clamp(24px,2.4vw,38px)}.start-screen .eyebrow{color:#d0dfba}.start-screen .intro{color:#fff1ce;margin:12px 0 18px}.hero-actions{max-width:none}.minor-actions button{min-height:44px}.hero-actions>button{background:#2b5747}.start-hint{color:#d4e2c3}
@media(orientation:portrait){.start-screen{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}.menu-illustration{flex:none}.start-screen .title-content{width:100%;border-left:0;border-top:1px solid #799b7155;padding:18px clamp(18px,5vw,60px)!important}.start-screen .eyebrow,.start-screen h1{display:none}.start-screen .intro{display:block;font-size:17px;margin:0 0 14px}.start-screen .hero-actions>button{min-height:54px}.start-screen .minor-actions{justify-content:space-between;margin-top:10px}.welcome-footer{flex-direction:column;gap:8px;padding:10px 12px max(12px,env(safe-area-inset-bottom))}.welcome-footer p{text-align:center;font-size:12px}.welcome-footer button{width:min(100%,420px)}}
@media(orientation:landscape) and (max-height:600px){.start-screen{grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr)}.start-screen .title-content{padding:10px 16px!important}.start-screen h1,.start-screen .eyebrow,.start-screen .intro{display:none}.hero-actions{margin:0}.minor-actions{gap:12px;margin-top:5px}.welcome-footer{padding:6px 14px}.welcome-footer p{font-size:11px}.welcome-footer button{min-height:44px}}
/* v13: full-bleed scenes, with legible controls layered into the world. */
body:not(.playing){padding:0}.game-frame{border-radius:0}
.intro-splash{isolation:isolate;background:#294f3d url('./assets/bretus-welcome.jpeg') center/cover no-repeat;touch-action:pan-y}
.intro-splash:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#173f3640,transparent 35%,transparent 65%,#173f3640);z-index:-1;pointer-events:none}
.welcome-poster{width:100%;padding:0;flex:1;min-height:0;background:transparent}
.welcome-poster img{width:100%;height:100%;object-fit:contain;max-width:none;filter:drop-shadow(0 4px 18px #173f3640)}
.welcome-footer{background:#173f36ed;color:#fff5d8;border-top:1px solid #e8d89a66}.welcome-footer p{font-size:14px}.welcome-footer button{font-size:18px}
.start-screen{display:flex;position:absolute;inset:0;isolation:isolate;align-items:center;justify-content:flex-end;padding:clamp(12px,3vw,48px);background:#284e3b;overflow-y:auto;touch-action:pan-y}
.menu-illustration{position:absolute;inset:0;z-index:-2;width:100%;height:100%;overflow:hidden;align-self:auto}
.menu-illustration img{width:100%;height:100%;object-fit:cover;object-position:42% 50%}
.start-screen:before{content:'';display:block;position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,transparent 25%,#163d3320 45%,#163d33a0 100%);pointer-events:none}
.start-screen .menu-bear{position:absolute;left:1%;top:18%;width:39%;height:77%;z-index:1}
.start-screen .title-content{flex:none;width:clamp(300px,40%,540px);max-width:100%;padding:clamp(16px,2.2vw,30px)!important;background:#153b32ed;border:1px solid #f2df995e;border-radius:22px;box-shadow:0 8px 30px #10281c55}
.start-screen h1{display:block;font-size:clamp(26px,2.7vw,42px);line-height:1.08;margin:0 0 10px}.start-screen .eyebrow{display:none}.start-screen .intro{display:block;margin:8px 0 18px;font-size:16px}.start-screen .hero-actions>button{min-height:52px}.start-screen .minor-actions{gap:8px;justify-content:space-between}.start-screen .minor-actions button{font-size:13px;min-height:44px}.start-screen .start-hint{font-size:13px;line-height:1.4}
@media(orientation:portrait){.start-screen{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:14px;gap:0}.menu-illustration img{object-position:24% 25%}.start-screen:before{background:linear-gradient(0deg,#12362ee6,transparent 80%)}.start-screen .title-content{width:min(100%,600px);margin-top:clamp(140px,30dvh,330px);padding:18px!important;border:1px solid #f2df995e;flex:none}.start-screen h1{display:block;font-size:clamp(26px,5vw,37px)}.start-screen .intro{display:none}.start-screen .hero-actions>button{min-height:48px}.start-screen .hero-actions{gap:7px}.start-screen .minor-actions{margin-top:6px}.start-screen .start-hint{display:none}.start-screen .menu-bear{left:0;top:8%;width:75%;height:36%}.welcome-footer p{font-size:12px}}
@media(orientation:landscape) and (max-height:600px){.start-screen{padding:10px 18px}.start-screen .title-content{width:44%;padding:12px 16px!important}.start-screen h1{font-size:23px;margin:0 0 8px}.start-screen .intro{display:none}.start-screen .hero-actions>button,.start-screen .title-content .primary{min-height:42px;padding:6px 12px}.start-screen .hero-actions{gap:5px}.start-screen .minor-actions{margin-top:3px}.start-screen .minor-actions button{min-height:38px}.start-screen .start-hint{display:none}.welcome-footer p{font-size:12px}}
@media(min-aspect-ratio:21/9){.menu-illustration img{object-position:40% 62%}}

@media(orientation:portrait){.start-screen{justify-content:flex-start;padding-top:clamp(150px,30dvh,330px)}.start-screen .title-content{margin-top:auto}.menu-illustration{position:fixed;height:100dvh}.start-screen .menu-bear{top:6%;height:30%}}
/* Background fill has no duplicated poster text; the full original stays readable. */
.intro-splash{background-image:url('./assets/goralska-pixel.webp')}
.start-screen{align-items:safe center}
@media(orientation:portrait){.start-screen{align-items:center}}
