:root{font-family:Arial,Helvetica,sans-serif;color-scheme:dark;background:#f3dfac;color:#44351f;--muted:#a74627;--amber:#f3cb8c;--mint:#a74627}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{background:radial-gradient(ellipse at 60% 15%,#fff1cf,#f3dfac 70%)}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{cursor:default;opacity:.5}button:focus-visible,canvas:focus-visible{outline:3px solid var(--amber);outline-offset:-3px}svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px;flex-shrink:0}img{object-fit:contain;background:transparent;border:0;padding:0;filter:none;border-radius:0}[hidden]{display:none!important}
.shell{width:min(1240px,100%);height:100svh;height:100dvh;margin:auto;padding:0 max(20px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));display:flex;flex-direction:column;position:relative}
.header{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-shrink:0;min-height:76px;padding-top:env(safe-area-inset-top)}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand img{width:40px;height:48px}.overline{display:block;font-size:8px;letter-spacing:2px;color:var(--mint);font-weight:700}h1{font-size:23px;letter-spacing:-.8px;margin:5px 0 0}h1>span{color:var(--amber)}.header-actions{display:flex;gap:12px;align-items:center}.quiet{border:0;background:none;min-height:44px;color:var(--muted);font-size:11px;padding:0 7px}.pause{display:flex;gap:7px;align-items:center;justify-content:center;background:#44351f09;border:1px solid #a746273d;border-radius:8px;min-height:42px;padding:0 14px;font-size:11px}.pause svg{width:15px;height:15px}
.dashboard{display:grid;grid-template-columns:1.25fr 2fr 1fr .6fr;gap:24px;align-items:center;padding:11px 4px 13px;border-top:1px solid #a7462726;border-bottom:1px solid #a7462726;flex-shrink:0}.dashboard>div>span{display:block;color:#a74627;font-size:8px;letter-spacing:1.3px;white-space:nowrap}.dashboard span b{font-weight:400;float:right;letter-spacing:.5px;font-size:8px}.dashboard strong{display:block;margin-top:6px;font-size:15px;font-weight:600;white-space:nowrap}.world strong{color:var(--amber)}.progress{padding:0 10px}.track{height:4px;background:#cba15e;position:relative;margin-top:13px;border-radius:5px}.track i{display:block;height:100%;width:0;background:var(--mint);border-radius:5px}.track em{position:absolute;left:50%;top:-3px;width:2px;height:10px;background:#f0c78c}.collectibles strong{font-size:13px}.collectibles small{font-size:6px;letter-spacing:.7px;color:var(--muted);font-weight:400}.health>div{display:flex;gap:5px;margin-top:7px}.health i{width:13px;height:15px;background:var(--amber);clip-path:polygon(50% 0,100% 35%,85% 80%,50% 100%,15% 80%,0 35%)}.health i.empty{background:#cba15e}
.play-area{position:relative;min-height:0;flex:1;display:grid;place-items:center;margin:12px 0;isolation:isolate}.stage{position:relative;width:min(100%,calc((100dvh - 240px)*1.7777778));aspect-ratio:16/9;border:1px solid #a746273d;border-radius:12px;overflow:hidden;background:#fff1cf;box-shadow:0 16px 60px #f3dfac50}canvas{display:block;width:100%;height:100%;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:pointer}.toast{position:absolute;top:19%;left:10%;right:10%;text-align:center;color:#44351f;font-size:clamp(10px,1.8vw,19px);font-weight:700;pointer-events:none;opacity:0;transform:translateY(5px);transition:opacity .2s,transform .2s;text-shadow:0 2px 6px #fff1cf}.toast.visible{opacity:1;transform:translateY(0)}
.overlay,.loading{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#f3dfacef;overflow:auto;overscroll-behavior:contain}.menu{display:grid;grid-template-columns:1fr 1.05fr;align-items:center;width:100%;height:100%;min-height:0;max-width:1020px;margin:auto;padding:25px 40px;gap:15px}.menu-copy{max-width:390px}.menu-logo{width:38px;height:44px;float:right}h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(38px,4.6vw,64px);font-weight:400;line-height:.96;letter-spacing:-2px;margin:16px 0}h2 em{font-weight:400;color:var(--amber)}.menu-copy>p{font-size:12px;color:#a74627;line-height:1.8;margin:0 0 16px}.chapters{border:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:15px 0 18px}.chapters legend{font-size:7px;letter-spacing:1.6px;color:#a74627;padding:0 0 9px}.chapters button{min-height:67px;border:1px solid #8064385c;border-radius:7px;background:#44351f05;display:grid;grid-template-columns:20px 1fr;text-align:left;gap:6px;padding:10px 8px}.chapters b{font-size:17px;align-self:center;color:var(--amber)}.chapters span{font-size:9px;line-height:1.4}.chapters small{font-size:7px;color:#a74627;grid-column:1 / 3;text-align:center}.chapters button[aria-pressed=true]{border-color:var(--amber);background:#f3cb8c12}.chapters button:disabled{opacity:.38}.primary{border:0;border-radius:7px;background:var(--amber);color:#a74627;padding:13px 16px;min-height:46px;width:100%;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700}.primary:hover{background:#ffe0a8}.primary svg{width:18px;height:18px}.menu-actions{display:flex;gap:10px}.secondary{border:1px solid #80643866;background:none;border-radius:7px;min-height:40px;font-size:10px;width:100%;margin-top:9px}.how-to{display:grid;gap:7px;margin:16px 0}.how-to span{font-size:9px;color:#a74627}.how-to b{display:inline-block;color:var(--amber);font-size:8px;margin-right:9px}.author{display:block;font-size:8px;color:#806438;margin-top:12px}.menu-art{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;min-width:0}.menu-art img{width:100%;max-width:490px;aspect-ratio:1.2;object-fit:cover;object-position:61% 60%;border-radius:50% 50% 45% 45%;opacity:.95}.menu-art span{font-size:7px;letter-spacing:2.6px;color:#a74627}.results{display:grid;grid-template-columns:1fr 1fr 1.1fr;gap:8px;padding:4px 0 16px}.results>div{border-top:1px solid #80643850;padding-top:12px}.results span{font-size:7px;letter-spacing:1px;color:#a74627;display:block}.results strong{font-size:23px;margin-top:5px;display:block;font-weight:500;color:var(--amber)}
.loading{flex-direction:column;gap:22px;z-index:5;background:#f3dfac}.loading img{width:128px;height:148px}.loading>span{font-size:11px;letter-spacing:.8px;color:#a74627}.loading>i{height:2px;width:110px;background:linear-gradient(90deg,#a74627 72%,#cba15e 72%)}.loading>small{position:absolute;bottom:24px;font-size:8px;color:#806438}
.controls{flex-shrink:0;display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 8px}.control{touch-action:none;min-height:59px;min-width:164px;border:1px solid #80643866;background:#fff1cf;border-radius:9px;padding:9px 18px;display:flex;align-items:center;justify-content:center;gap:15px;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.control span{display:flex;flex-direction:column;gap:6px;text-align:left}.control b{font-size:12px;letter-spacing:1.4px}.control small{font-size:8px;color:#a74627}.control.held{transform:translateY(1px);background:#806438}.jump{background:#ecd09b;color:#a74627;border-color:#ecd09b}.jump small{color:#806438}.jump.held{background:#44351f}.control-note{text-align:center;display:flex;flex-direction:column;gap:7px}.control-note strong{font-size:8px;letter-spacing:2px;color:#a74627;font-weight:500}.control-note span{font-size:9px;color:#806438}footer{flex-shrink:0;display:flex;justify-content:space-between;font-size:7px;color:#806438;padding:5px 2px 6px}.no-script{position:fixed;inset:20%;background:#fff1cf;color:#44351f;padding:25px;z-index:10}
@media(max-width:700px){.shell{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}.header{min-height:65px}.brand{gap:8px}.brand img{width:32px;height:39px}h1{font-size:19px;letter-spacing:-.7px}.brand .overline{font-size:6px;letter-spacing:1.5px}.header-actions{gap:1px}.quiet{font-size:9px;padding:0 7px}.pause{width:40px;min-height:40px;padding:0}.pause span{display:none}.dashboard{grid-template-columns:1.4fr 1.1fr .55fr;gap:10px;padding:10px 1px}.dashboard .progress{display:none}.dashboard>div>span{font-size:6px;letter-spacing:1px}.dashboard span b{font-size:6px}.dashboard strong{font-size:12px}.collectibles strong{font-size:11px}.collectibles small{font-size:5px}.health i{width:10px;height:13px}.health>div{gap:4px}.stage{width:100%;border-radius:8px}.play-area{margin:8px 0}.menu{grid-template-columns:1fr;max-width:410px;padding:20px 24px}.menu-copy{max-width:none}.menu-art{display:none}h2{font-size:52px;margin:13px 0}.menu-copy>p{font-size:11px;margin-bottom:12px}.menu-logo{width:37px;height:43px}.menu .overline{font-size:6px;letter-spacing:1.6px}.chapters{margin:12px 0}.chapters button{min-height:62px;padding:8px 7px}.chapters legend{font-size:6px}.chapters span{font-size:8px}.primary{min-height:46px}.how-to{margin:13px 0}.how-to span{font-size:9px}.control{min-width:0;width:44%;min-height:62px;padding:10px 12px;gap:10px}.control b{font-size:12px}.control small{font-size:7px}.control-note{display:none}.controls{margin-bottom:6px}.author{font-size:7px}.overlay,.loading{border-radius:8px}footer{font-size:6px;line-height:1.4}footer>span:last-child{max-width:140px;text-align:right}}
@media(max-height:700px) and (orientation:portrait){.menu{padding-top:12px;padding-bottom:12px}h2{font-size:39px;line-height:1;margin:10px 0}.menu-copy>p{font-size:10px;margin-bottom:9px;line-height:1.5}.chapters{margin:8px 0}.chapters button{min-height:55px}.how-to{gap:5px;margin:10px 0}.how-to span{font-size:8px}.author{margin-top:8px}.header{min-height:58px}.control{min-height:52px}.menu-logo{width:30px;height:35px}.results{padding:2px 0 10px}.results strong{font-size:21px}.menu-copy>p br{display:none}}
@media(orientation:landscape) and (max-height:570px){.shell{padding-top:3px}.header{min-height:39px}.brand img{width:25px;height:30px}h1{font-size:15px;margin-top:2px}.brand .overline{font-size:5px}.quiet,.pause{min-height:34px}.dashboard{padding:5px 2px 7px;gap:20px}.dashboard strong{font-size:11px;margin-top:4px}.dashboard>div>span{font-size:6px}.health i{height:10px;width:10px}.health>div{margin-top:4px}.track{margin-top:9px}.play-area{margin:5px 0}.stage{width:min(100%,calc((100dvh - 144px)*1.7777778));border-radius:7px}.controls{margin:0 0 2px}.control{min-height:43px;min-width:132px;width:auto;padding:5px 13px;gap:9px}.control b{font-size:9px}.control small{font-size:6px}.control-note{display:flex;gap:4px}.control-note strong{font-size:6px}.control-note span{font-size:7px}footer{display:none}.menu{padding:10px 23px;grid-template-columns:1.1fr 1fr;max-width:740px;gap:22px}.menu-art{display:flex}.menu-art img{width:86%;max-width:235px;aspect-ratio:1.2}.menu-art>span{display:none}h2{font-size:30px;line-height:1;margin:7px 0;letter-spacing:-1px}h2 br{display:none}.menu-logo{width:24px;height:28px}.menu .overline{font-size:5px;letter-spacing:1px}.menu-copy>p{font-size:8px;line-height:1.5;margin-bottom:7px}.menu-copy>p br{display:none}.chapters{margin:7px 0}.chapters legend{font-size:5px;padding-bottom:5px}.chapters button{min-height:43px;padding:5px;gap:2px}.chapters b{font-size:13px}.chapters span{font-size:6px}.chapters small{font-size:5px}.primary{min-height:36px;font-size:10px;padding:7px 12px}.how-to{display:none}.author{font-size:6px;margin-top:7px}.secondary{min-height:32px;font-size:8px;margin-top:6px}.results{padding:0 0 8px}.results span{font-size:5px}.results strong{font-size:17px;margin-top:3px}}
@media(prefers-reduced-motion:reduce){.toast{transition:none}.control.held{transform:none}}
.power-status{position:absolute;bottom:8px;left:10px;max-width:calc(100% - 20px);pointer-events:none;background:#fff1cfe8;border:1px solid #a746272b;color:#a74627;border-radius:5px;padding:7px 10px;font-size:8px;letter-spacing:.8px;line-height:1.4}
.power-status.active{color:#a74627;border-color:#f2ce8d6b;background:#fff1cfef}
.overlay{align-items:flex-start}.menu{height:auto;min-height:100%}
.characters{border:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:13px 0 10px}
.characters legend{font-size:7px;letter-spacing:1.6px;color:#a74627;padding:0 0 8px}
.character-choice{min-width:0;min-height:96px;padding:3px 3px 7px;border:1px solid #8064385c;border-radius:7px;background:#44351f05;text-align:center}
.character-choice canvas{width:100%;max-width:72px;height:auto;aspect-ratio:12/11;margin:auto;pointer-events:none}
.character-choice b,.character-choice small{display:block}.character-choice b{font-size:11px;color:#44351f}
.character-choice small{font-size:6px;line-height:1.4;color:#a74627;margin-top:4px}
.character-choice[aria-pressed=true]{border-color:var(--amber);background:#f3cb8c16;box-shadow:inset 0 -2px var(--amber)}
.character-choice:active{background:#80643866}.character-current{grid-column:1/-1;margin:1px 0 0;font-size:7px;line-height:1.5;color:#a74627}
.character-spotlight{width:100%;max-width:320px;text-align:center}.character-spotlight canvas{width:100%;height:auto;aspect-ratio:320/300;pointer-events:none;cursor:default}
.character-spotlight strong{font-family:Georgia,'Times New Roman',serif;font-size:32px;font-weight:400;color:var(--amber)}
.character-spotlight p{font-size:10px;line-height:1.8;color:#a74627;max-width:240px;margin:9px auto}
@media(max-width:700px){.menu{padding-top:16px;padding-bottom:16px}h2{font-size:39px;margin:10px 0}.menu-copy>p{font-size:10px;line-height:1.5;margin-bottom:8px}.characters{gap:5px;margin:10px 0 8px}.characters legend{font-size:6px;padding-bottom:6px}.character-choice{min-height:79px;padding:2px 2px 6px}.character-choice canvas{max-width:56px}.character-choice b{font-size:10px}.character-choice small{font-size:5px;margin-top:3px}.character-current{font-size:6px}.chapters{margin:9px 0 11px}.chapters button{min-height:55px}.how-to{gap:5px;margin:11px 0}.how-to span{font-size:8px}}
@media(orientation:landscape) and (max-height:570px){.characters{gap:5px;margin:7px 0}.characters legend{font-size:5px;padding-bottom:4px}.character-choice{min-height:59px;padding:1px 2px 4px}.character-choice canvas{max-width:42px}.character-choice b{font-size:8px}.character-choice small{font-size:4px;margin-top:2px}.character-current{font-size:5px}.character-spotlight{max-width:220px}.character-spotlight strong{font-size:22px}.character-spotlight p{font-size:7px;line-height:1.5;margin:6px auto}h2{font-size:28px}}
@media(max-width:700px){.power-status{bottom:5px;left:6px;max-width:calc(100% - 12px);font-size:7px;letter-spacing:.3px;padding:4px 6px}.how-to span{line-height:1.5}}

/* Phone playfields fill the available viewport; canvas cameras preserve artwork proportions. */
@media(pointer:coarse) and (max-width:1000px){
.shell{width:100%;max-width:none;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}
.header{min-height:42px;padding-left:10px;padding-right:10px}.brand img{width:25px;height:30px}.brand .overline{display:none}.brand h1{font-size:16px;margin-top:0}.header-actions{gap:4px}.header .quiet,.header .pause{min-height:36px}
.play-area{margin:0;padding:0}.stage{max-width:none;border:0;border-radius:0;box-shadow:none;aspect-ratio:auto}.stage canvas{border-radius:0}
.controls{padding:8px 10px;margin:0;min-height:64px;flex-shrink:0}.keyboard-note{display:none}footer{display:none}
}
@media(pointer:coarse) and (max-width:1000px){.dashboard{padding:7px 10px;gap:12px}.dashboard .progress{display:none}.dashboard{grid-template-columns:1.2fr 1fr .5fr}.control-note{display:none}.control{min-height:48px;width:46%;max-width:220px}.overlay .menu{min-height:100%;height:auto}}

/* toads-adventure: independent visual identity, shared studio only. */
:root{color-scheme:light;--bg:#f3dfac;--panel:#fff1cf;--line:#cba15e;--muted:#806438;--text:#44351f;--mint:#a74627;--gold:#a74627;--peach:#a74627;--cyan:#a74627;--accent:#a74627;--light:#fff1cf;--dark:#cba15e}
body{background:#f3dfac;color:#44351f;font-family:"Trebuchet MS", sans-serif}
h1,h2,h3{font-family:"Trebuchet MS", sans-serif}
button{border-radius:18px}
.overlay,.veil{background:#f3dfaced;color:#44351f;backdrop-filter:none}
.menu,.menu-card,.card,.panel{color:#44351f}
.primary,.primary-button,.launch{background:#a74627;color:#a74627;border-color:#a74627}
.primary:hover,.primary-button:hover,.launch:hover{background:#a74627;filter:brightness(1.1)}
button[aria-pressed=true]{border-color:#a74627}

:root{--honey:#a74627;--amber:#a74627}
h2 em,h2>span,.chapter-select button strong,.control-button strong{color:#a74627}

:root{--honey:#a74627;--amber:#a74627}
h2 em,h2>span,.chapter-select button strong,.control-button strong{color:#a74627}
.primary,.primary-button,.launch{color:#ffffff!important}

.characters{grid-template-columns:repeat(3,minmax(0,1fr))}.character-choice.locked{border-style:dashed}.character-choice.locked small{color:#835529}.points-result{font:700 12px/1.5 system-ui;color:#48724d}.points-result:empty{display:none}.character-choice{min-height:44px}#toast{z-index:6}
@media(max-width:420px){.characters{gap:5px}.character-choice b{font-size:12px}.character-choice small{font-size:8px}}
