@font-face{font-family:system;src:local("Trebuchet MS")}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}body{font-family:Trebuchet MS,system-ui,sans-serif;background:#102d4b;color:#143a55}button,select,input{font:inherit}button{cursor:pointer;border:0}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #fbba55;outline-offset:3px}.hidden{display:none!important}#app{position:relative}#scene{position:absolute;inset:0;width:100%;height:100%;touch-action:none}#ui{position:absolute;inset:0;pointer-events:none;overflow:hidden}.topbar{position:absolute;left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));height:54px;display:flex;justify-content:space-between;align-items:center;color:white;text-shadow:0 2px 8px #153954;z-index:4}.brand{font-size:27px;letter-spacing:-2px;font-weight:1000;font-style:italic;transform:rotate(-4deg)}.brand span{color:#ffbb59}#hud{display:flex;gap:10px;align-items:center;font-weight:900;font-size:15px}#hud>span{background:#123951c9;border:2px solid #ffffff72;border-radius:17px;padding:8px 13px;min-width:63px;text-align:center}.iconButton{width:45px;height:45px;border-radius:50%;background:#fff;color:#154968;font-weight:900;font-size:22px;box-shadow:0 5px 0 #bad6de;pointer-events:auto}.panel{pointer-events:auto}.home{position:absolute;top:50%;left:max(5%,env(safe-area-inset-left));transform:translateY(-45%);max-width:520px;padding:25px 30px 30px;background:linear-gradient(125deg,#fffcf2ef,#e6faffed);border:4px solid white;border-radius:31px;box-shadow:0 20px 0 #24587555,0 28px 60px #0d365777}.eyebrow{letter-spacing:.18em;font-size:12px;font-weight:1000;color:#df6b47;margin:0 0 12px}.home h1{font-size:clamp(36px,5.4vw,67px);letter-spacing:-.065em;line-height:1.02;margin:0}.home h1 em{font-style:normal;color:#e2784b}.home>p:not(.eyebrow){font-size:16px;line-height:1.5;max-width:360px}.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.primary,.secondary,.textButton{min-height:48px;padding:11px 21px;border-radius:16px;font-weight:1000}.primary{background:#f1864d;color:#fff;box-shadow:0 5px 0 #a84c32;font-size:17px}.primary:hover{background:#fa985e}.primary span{font-size:22px}.secondary{background:#e8f3f3;color:#21506b;box-shadow:0 4px 0 #bdd4d8}.textButton{background:none;color:#326681;text-decoration:underline}.progress{font-size:12px!important;color:#5b7c8b;margin:24px 0 0}.modal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(94vw,500px);max-height:calc(100% - 26px);overflow:auto;padding:27px;background:#fffaf0;border:5px solid #fff;border-radius:29px;box-shadow:0 14px 0 #15496a75,0 30px 70px #06263e9e;text-align:center;z-index:6}.modal h2{font-size:30px;margin:4px 0 22px}.stack{display:grid;gap:12px;max-width:280px;margin:auto}#settings{display:grid;gap:13px;text-align:left}#settings h2{text-align:center;margin:0 0 4px}#settings label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:bold;font-size:14px}#settings select,#settings input[type=range]{width:145px}#settings input[type=checkbox]{width:20px;height:20px;accent-color:#e8784d}#settings .primary,#settings .secondary{width:100%}.courseHint,.tutorial{position:absolute;left:50%;transform:translateX(-50%);background:#103e5bd9;color:white;border:2px solid #ffffff99;border-radius:15px;padding:8px 14px;text-align:center;font-weight:900;text-shadow:0 1px 3px #163c50;z-index:3}.courseHint{top:max(68px,calc(env(safe-area-inset-top) + 66px));font-size:15px}.tutorial{bottom:max(14px,env(safe-area-inset-bottom));font-size:13px}.powerButton{position:absolute;right:max(15px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));width:70px;height:70px;border-radius:50%;background:#f5bc4e;border:4px solid white;color:#724011;font-size:26px;font-weight:1000;pointer-events:auto;box-shadow:0 5px 0 #a46d35}.powerButton small{display:block;font-size:9px}#touchZones{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(100px,calc(env(safe-area-inset-bottom) + 85px));display:grid;gap:5px;pointer-events:auto}#touchZones button{width:54px;height:44px;border-radius:12px;background:#fff9;color:#174562;font-weight:900}#jumpButton{position:absolute;left:max(12px,env(safe-area-inset-left));bottom:max(20px,env(safe-area-inset-bottom));width:75px;height:75px;border-radius:50%;background:#fffc;border:3px solid white;color:#174562;font-weight:900;pointer-events:auto;box-shadow:0 5px 0 #7ea8b6}.rotateNotice{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#fffaf0eb;color:#254c67;border-radius:12px;padding:6px 12px;font-size:12px;font-weight:bold}.updateNotice{position:absolute;right:15px;top:70px;background:#fffaf0;border-radius:14px;padding:10px;pointer-events:auto;z-index:8}.updateNotice button{padding:7px;border-radius:8px;background:#f1864d;color:white}#podium{height:125px;display:flex;justify-content:center;align-items:end;gap:6px;margin:8px 0 18px}#podium .step{width:75px;display:flex;align-items:center;justify-content:center;border-radius:8px 8px 0 0;color:white;font-size:25px;font-weight:1000;box-shadow:inset 0 5px #ffffff75}#podium .first{height:95px;background:#f4b849}#podium .second{height:72px;background:#8bb4c7}#podium .third{height:54px;background:#c98761}.result p{line-height:1.45}.result .actions{justify-content:center}@media(max-width:650px) and (orientation:portrait){.home{left:4%;right:4%;top:50%;max-width:none;transform:translateY(-50%);padding:20px}.home h1{font-size:43px}.home>p:not(.eyebrow){font-size:14px}.rotateNotice:not(.hidden){display:block}#hud{gap:4px;font-size:12px}#hud>span{padding:6px;min-width:42px}.brand{font-size:23px}}@media(max-height:430px){.home{padding:13px 22px}.home h1{font-size:37px}.home>p:not(.eyebrow){margin:8px 0}.progress{margin:8px 0 0!important}.modal{padding:13px}.modal h2{font-size:23px;margin-bottom:10px}#settings{gap:6px}}

#powerStatus:empty{display:none}
@media(max-width:650px) and (orientation:portrait){.tutorial{display:none!important}}
.startOptions,.playerSelect{display:flex;align-items:center;gap:10px;margin:12px 0;font-weight:900;font-size:14px}.startOptions select{flex:1;min-width:0;min-height:42px;border:2px solid #a9ced0;border-radius:12px;background:#f5fcf8;color:#17435d;padding:5px 9px;font-weight:900}.playerSelect{justify-content:space-between;margin-bottom:17px}.smallButton{min-height:40px;padding:6px 13px;background:#c7e4df;color:#20536a;border-radius:11px;font-weight:900;pointer-events:auto}.profileList{display:grid;gap:8px;max-height:35vh;overflow:auto;margin-bottom:15px}.profileRow{display:flex;align-items:center;gap:8px;padding:7px;background:#e6f4f1;border-radius:12px;text-align:left}.profileRow strong{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profileRow .smallButton{flex:none}.profileRow .selected{background:#f1864d;color:white}.profileRow .danger{background:#fce0d8;color:#a84533}.newPlayer{display:grid!important;gap:7px;margin-bottom:15px}.newPlayer input{width:100%;min-height:43px;border:2px solid #a9ced0;border-radius:12px;background:white;padding:8px;color:#17435d}.profileList+label~.actions{justify-content:center}.home{max-height:calc(100% - 24px);overflow:auto}@media(max-height:430px){.startOptions,.playerSelect{margin:6px 0}.startOptions select{min-height:36px}.playerSelect{margin-bottom:10px}.home{top:52%}}
.difficultyPanel{margin:15px 0 10px}.difficultyLabel{display:block;margin-bottom:7px;font-size:13px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase;color:#376b7b}.difficultyChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.difficultyButton{min-width:0;min-height:60px;padding:7px 4px;border:2px solid #b7d9db;border-radius:14px;background:#f9fffb;color:#1b4b62;box-shadow:0 4px 0 #b9d2d5;text-align:center;pointer-events:auto;transition:transform .15s,background .15s}.difficultyButton span{display:block;font-size:13px;font-weight:1000;white-space:nowrap}.difficultyButton small{display:block;margin-top:3px;font-size:10px;font-weight:800;opacity:.8}.difficultyButton[aria-pressed=true]{background:#f08053;border-color:#ffbd91;color:#fff;box-shadow:0 4px 0 #ad624d;transform:translateY(-2px)}.difficultyButton:hover{filter:brightness(1.04)}@media(max-height:430px){.difficultyPanel{margin:7px 0}.difficultyLabel{margin-bottom:3px}.difficultyButton{min-height:43px;padding:5px 2px}.difficultyButton small{display:none}}
@media(max-height:450px){.home{padding:10px 20px 12px}.home h1{font-size:32px}.home>p:not(.eyebrow){font-size:13px;line-height:1.3;margin:5px 0}.home .eyebrow{margin-bottom:5px}.difficultyPanel{margin:5px 0}.difficultyLabel{font-size:11px;margin-bottom:3px}.difficultyButton{min-height:39px;padding:4px 2px}.difficultyButton small{display:none}.playerSelect{margin:5px 0 8px}.home .primary,.home .secondary{min-height:42px;padding:7px 16px}.home .progress{margin:7px 0 0!important}}
.speedControls{position:absolute;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;gap:9px;z-index:4;pointer-events:auto;touch-action:none}.speedControl{width:88px;height:58px;padding:3px 5px;border:2px solid #fff;border-radius:17px;color:#fff;font-weight:1000;box-shadow:0 4px 0 #16435a96;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.speedControl span{display:block;height:27px;font-size:25px;line-height:25px}.speedControl small{display:block;font-size:9px;letter-spacing:.03em}.speedControl.brake{background:#367d96e8}.speedControl.boost{background:#e47450ed}.speedControl[aria-pressed=true]{filter:brightness(1.22);transform:translateY(3px);box-shadow:0 1px 0 #16435a96}@media(max-width:650px) and (orientation:portrait){.speedControls{bottom:max(58px,calc(env(safe-area-inset-bottom) + 50px))}}@media(max-width:420px){.speedControl{width:80px;height:56px}}
@media(pointer:coarse){.tutorial{bottom:max(82px,calc(env(safe-area-inset-bottom) + 78px))}}

.dpad{position:absolute;left:max(14px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,47px);grid-template-rows:repeat(3,43px);gap:2px;pointer-events:auto;touch-action:none;z-index:4}.dpad button{width:47px;height:43px;border:2px solid #fff;border-radius:12px;background:#174963e8;color:#fff;font-size:27px;font-weight:900;line-height:1;box-shadow:0 3px 0 #0c2e41b0;touch-action:none;user-select:none;-webkit-user-select:none}.dpad button[aria-pressed=true]{background:#e77b50;transform:translateY(2px);box-shadow:0 1px 0 #0c2e41b0}.dpad .up{grid-column:2;grid-row:1}.dpad .left{grid-column:1;grid-row:2}.dpad .right{grid-column:3;grid-row:2}.dpad .down{grid-column:2;grid-row:3}#jumpButton{left:auto;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:4}.shootButton{position:absolute;right:max(21px,env(safe-area-inset-right));bottom:max(108px,calc(env(safe-area-inset-bottom) + 90px));width:66px;height:66px;border:3px solid white;border-radius:50%;background:#e6814d;color:#fff;font-size:28px;font-weight:900;box-shadow:0 4px 0 #914c39;pointer-events:auto;touch-action:none;z-index:4}.shootButton small{display:block;font-size:10px;line-height:1}.powerButton{bottom:max(108px,calc(env(safe-area-inset-bottom) + 90px));z-index:4}@media(max-height:430px){.dpad{grid-template-columns:repeat(3,42px);grid-template-rows:repeat(3,39px)}.dpad button{width:42px;height:39px;font-size:24px}#jumpButton{width:67px;height:67px}.shootButton,.powerButton{width:59px;height:59px;bottom:max(91px,calc(env(safe-area-inset-bottom) + 82px))}}

#bonusTimer{--bonus-color:#f6cc68;position:relative;flex:none;width:48px;height:48px;border-radius:50%;background:#123951dc;box-shadow:0 2px 7px #14395188;pointer-events:none}#bonusTimer[data-power=throw]{--bonus-color:#ffad76}#bonusTimer[data-power=spring]{--bonus-color:#f4b7e2}#bonusTimer[data-power=magnet]{--bonus-color:#80e7dd}#bonusTimer svg{display:block;width:100%;height:100%;fill:none}#bonusTimer .bonusTrack{stroke:#ffffff4d;stroke-width:3}#bonusTimer .bonusArc{stroke:var(--bonus-color);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}#bonusIcon{position:absolute;width:34px;height:34px;top:7px;left:7px;object-fit:contain}@media(max-width:650px){#bonusTimer{width:42px;height:42px}#bonusIcon{width:30px;height:30px;top:6px;left:6px}#hud{gap:3px}}
.worldPanel{margin:16px 0 10px}.worldChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.worldChoice{display:flex;align-items:center;gap:8px;min-width:0;min-height:63px;padding:7px;border:2px solid #b4d4d8;border-radius:14px;background:#f4fbf8;color:#16425a;text-align:left;pointer-events:auto}.worldChoice.selected{background:#dff4ec;border-color:#e78051;box-shadow:inset 0 0 0 1px #e78051}.worldIcon{flex:none;width:31px;height:31px}.worldText{min-width:0;flex:1}.worldText strong,.worldText small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.worldText strong{font-size:12px}.worldText small{font-size:9px;color:#507282}.worldMark{flex:none;color:#c56d46;font-size:12px;font-weight:1000}.resultWorld{margin:-10px 0 8px;color:#567b88;font-weight:900}.result .actions{gap:8px}.result .actions #nextWorldButton{width:100%}@media(max-width:650px){.worldChoice{min-height:58px;padding:5px;gap:5px}.worldIcon{width:27px;height:27px}.worldText strong{font-size:11px;white-space:normal;line-height:1.1}.worldText small{display:none}}@media(max-height:450px){.worldPanel{margin:7px 0}.worldChoice{min-height:42px}.worldText small{display:none}.home .actions{position:sticky;bottom:0;padding:7px 0;background:#effaf8f5;z-index:2}}
#settings #cameraMode{width:min(210px,65%)}
#flags{display:inline-flex;align-items:center;justify-content:center;gap:5px}#flags img{display:block;width:26px;height:22px;flex:none}#flagCount{font-weight:900}@media(max-width:650px){#flags img{width:22px;height:19px}}
.figureButton{position:absolute;right:max(96px,calc(env(safe-area-inset-right) + 94px));bottom:max(20px,env(safe-area-inset-bottom));width:78px;height:70px;border:3px solid #fff;border-radius:20px;background:#f3b849;color:#493a46;font-size:12px;font-weight:1000;box-shadow:0 5px 0 #986b43;pointer-events:auto;touch-action:none;z-index:4}.figureButton:active{transform:translateY(3px);box-shadow:0 2px 0 #986b43}.trickPhoto{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-4deg);z-index:5;pointer-events:none;animation:photoPop 1.65s both}.photoPrint{width:min(42vw,430px);padding:11px 11px 8px;background:#fffaf0;box-shadow:0 14px 0 #2a5365a8,0 22px 45px #183a61aa;border-radius:7px;color:#1d455b;text-align:center}.photoPrint img{display:block;width:100%;aspect-ratio:8/5;object-fit:cover;background:#8bc5d2}.photoCaption{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 4px 2px;font-size:clamp(12px,2vw,20px);font-weight:1000}.photoCaption span{color:#db6b46;white-space:nowrap}@keyframes photoPop{0%{opacity:0;transform:translate(-50%,-50%) scale(.4) rotate(12deg)}12%,77%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(-4deg)}100%{opacity:0;transform:translate(-50%,-50%) scale(.87) rotate(-7deg)}}@media(max-height:450px){.photoPrint{width:min(34vw,300px);padding:7px}.figureButton{width:64px;height:59px;right:max(91px,calc(env(safe-area-inset-right) + 88px));bottom:max(19px,env(safe-area-inset-bottom))}}@media(max-width:650px) and (orientation:portrait){.photoPrint{width:min(70vw,350px)}}@media(prefers-reduced-motion:reduce){.trickPhoto{animation:none}}
.worldLoader{position:absolute;inset:0;z-index:12;display:grid;place-items:center;background:#102c47ae;pointer-events:auto}.loaderCard{width:min(310px,85vw);padding:21px 22px 18px;border:3px solid #fff;border-radius:25px;background:#f7fcf1;box-shadow:0 16px 0 #143e5999,0 25px 60px #102c4788;color:#17445d;text-align:center}.loaderCard img{display:block;width:64px;height:64px;margin:0 auto 7px;animation:loaderGlide 1.2s ease-in-out infinite alternate}.loaderCard strong,.loaderCard span{display:block}.loaderCard strong{font-size:19px;line-height:1.2}.loaderCard span{margin-top:5px;font-size:12px;color:#567786}.loaderTrack{height:9px;overflow:hidden;margin-top:16px;border-radius:20px;background:#c9e5df}.loaderTrack i{display:block;width:38%;height:100%;border-radius:20px;background:#ef9b58;animation:loaderProgress 1.1s ease-in-out infinite alternate}@keyframes loaderGlide{to{transform:translateY(-8px) rotate(8deg)}}@keyframes loaderProgress{from{transform:translateX(-45%)}to{transform:translateX(220%)}}@media(max-height:450px){.loaderCard{padding:10px 17px;width:260px}.loaderCard img{width:40px;height:40px;margin-bottom:3px}.loaderCard strong{font-size:15px}.loaderTrack{margin-top:8px}}@media(prefers-reduced-motion:reduce){.loaderCard img,.loaderTrack i{animation:none}}
.portalButton{position:absolute;right:max(17px,env(safe-area-inset-right));top:max(76px,calc(env(safe-area-inset-top) + 65px));z-index:5;min-width:126px;height:44px;padding:7px 12px;border:2px solid #fff;border-radius:14px;background:#298b83;color:#fff;font-size:13px;font-weight:1000;box-shadow:0 4px 0 #17505a;pointer-events:auto;touch-action:manipulation}.portalButton[aria-pressed=true]{background:#e5aa4c;color:#173d56;box-shadow:0 4px 0 #9c7138}@media(max-height:450px){.portalButton{top:max(64px,calc(env(safe-area-inset-top) + 59px));height:38px;min-width:113px;font-size:11px}}
