:root{font-family:ui-rounded,"Arial Rounded MT Bold",Arial,sans-serif;color:#f7f8e9;background:#113b38;-webkit-font-smoothing:antialiased;font-size:16px}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#296953,#113b38 65%);min-height:100svh}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:wait;opacity:.65}button:focus-visible,a:focus-visible{outline:4px solid #ffd66c;outline-offset:4px}main{max-width:1360px;margin:auto;padding:0 24px}header{height:80px;display:flex;align-items:center;justify-content:space-between;gap:15px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;font-size:1.2rem;font-weight:700}.brand>span{display:grid;place-items:center;background:#ffdd7c;color:#173f34;width:42px;height:46px;border-radius:13px 13px 22px 22px;font-size:1.7rem;transform:rotate(-7deg)}.brand small{display:block;font-size:.57rem;letter-spacing:.17em;margin-top:5px;color:#c0d8c5}.header-right{display:flex;align-items:center;gap:10px}.prototype{font-size:.7rem;color:#bdcec3;margin-right:12px}.icon{width:44px;height:44px;border:1px solid #ffffff30;background:#ffffff0c;border-radius:14px;color:white;font-size:1.15rem}#stage{height:calc(100svh - 124px);min-height:490px;max-height:920px;position:relative;border-radius:24px;overflow:hidden;background:#d3e8d7;box-shadow:0 20px 60px #001c2433;isolation:isolate}canvas{width:100%;height:100%;display:block;touch-action:none}.overlay{position:absolute;inset:0;display:flex;align-items:center;padding:5%;background:linear-gradient(90deg,#0e363be6 0,#123c39c9 33%,#123b3920 65%,transparent);z-index:3}.overlay[hidden],[hidden]{display:none!important}.menu-card{width:390px;max-width:100%}.eyebrow{color:#ffe29a;font-size:.65rem;font-weight:700;letter-spacing:.15em;margin:0 0 15px}h1{font-size:clamp(3.4rem,6.2vw,5.5rem);letter-spacing:-.04em;line-height:1.02;margin:0 0 18px;text-wrap:balance}h2{font-size:2.4rem;line-height:1.15;margin:0 0 25px;letter-spacing:-.03em}.lead{font-size:1rem;line-height:1.6;color:#d7e5d8;margin:0 0 24px}.mode-picker{display:flex;gap:8px;margin-bottom:16px}.mode-picker button{width:50%;background:#ffffff0d;border:1px solid #ffffff40;border-radius:12px;color:#fff;padding:12px 8px;font-weight:700;font-size:.83rem}.mode-picker button.selected{background:#f5e7b5;color:#164737;border-color:#f5e7b5}.mode-picker small{display:block;font-size:.6rem;font-weight:400;margin-top:5px;line-height:1.4}.primary{width:100%;padding:17px 22px;border:0;border-radius:15px;background:#ffce5b;color:#173f34;box-shadow:0 5px 0 #be8d2f;font-size:1.13rem;font-weight:700;min-height:54px}.primary:hover{background:#ffdc83}.secondary{display:block;margin:14px auto 0;padding:12px 18px;border:1px solid #ffffff40;border-radius:12px;color:white;background:transparent;min-height:46px}.how{display:flex;justify-content:space-around;margin-top:28px;text-align:center;font-size:1.4rem;color:#ffdc83}.how small{display:block;font-size:.55rem;letter-spacing:.13em;color:#c7dbcd;margin-top:6px}.record{font-size:.7rem;color:#bbd2c3;text-align:center;margin-top:24px}.record b{font-variant-numeric:tabular-nums}.menu-badge{position:absolute;right:7%;bottom:8%;transform:rotate(-7deg);padding:18px 23px;border-radius:18px;background:#ffdc76;color:#265944;font-size:.8rem;line-height:1.5;font-weight:700}#hud{position:absolute;inset:20px 24px auto;display:flex;align-items:center;gap:12px;pointer-events:none;z-index:2}.stat{position:relative;display:flex;align-items:center;gap:9px;background:#153c36ed;border:1px solid #ffffff42;border-radius:16px;padding:10px 15px;min-width:92px;box-shadow:0 5px 15px #133c3320}.stat strong{font-size:1.45rem;font-variant-numeric:tabular-nums}.stat small{font-size:.5rem;letter-spacing:.1em}.gold{color:#ffcf56}.distance{margin:auto}.distance small{display:inline-block}#lives{display:flex;gap:6px;color:#f97164;font-size:1.5rem;background:#153c36ed;border:1px solid #ffffff42;border-radius:16px;padding:10px 15px;min-width:100px;justify-content:center}#lives .lost{opacity:.25}#touch-controls{position:absolute;bottom:18px;left:0;right:0;display:flex;align-items:flex-end;justify-content:center;gap:22px;z-index:2;pointer-events:none}#touch-controls button{pointer-events:auto;border:1px solid #ffffffb0;background:#154237df;border-radius:22px;color:#fffbdc;width:72px;height:60px;font-size:2rem;box-shadow:0 4px 0 #092f2c70;touch-action:none;user-select:none}#touch-controls #jump{width:100px;height:70px;background:#ffdc76;color:#214d39}#jump span{display:block;font-size:.55rem;letter-spacing:.13em}#pause-menu,#end{justify-content:center;background:#0c3035b8;backdrop-filter:blur(8px)}.small-card{text-align:center;padding:32px;width:380px;max-width:100%;background:#174b41;border:1px solid #90bda766;border-radius:24px;box-shadow:0 12px 50px #0d2f3340}.result strong{font-size:4rem;display:block;color:#ffdc76;line-height:1.1;font-variant-numeric:tabular-nums}.result span{font-size:.85rem;color:#c1d5c6}#result-detail{font-size:.85rem;line-height:1.5;margin:20px 0}footer{display:flex;justify-content:space-between;font-size:.65rem;color:#b2c6ba;padding:14px 4px;gap:15px}@media(max-width:700px){main{padding:0 10px}header{height:66px}.prototype{display:none}.brand{font-size:1rem}.brand>span{height:38px;width:35px}.brand small{font-size:.5rem}#stage{height:calc(100svh - 105px);min-height:510px;border-radius:18px}.overlay{padding:24px;background:linear-gradient(90deg,#123b39ed,#123b39b5 80%,#123b3950)}.menu-card{width:330px}h1{font-size:3.6rem}.lead{font-size:.9rem;margin-bottom:18px}.eyebrow{font-size:.55rem}.menu-badge{display:none}.record{margin:18px 0 0}.how{margin-top:22px}#hud{inset:12px 10px auto;gap:6px}.stat{padding:8px 9px;min-width:65px;gap:5px}.stat strong{font-size:1.2rem}.stat small{font-size:.45rem}#lives{padding:8px;min-width:74px;font-size:1.2rem;gap:2px}footer{font-size:.55rem;padding:10px 2px}footer span:first-child{display:none}#touch-controls{bottom:16px;gap:22px}#touch-controls button{width:64px;height:56px}#touch-controls #jump{width:90px;height:65px}.small-card{padding:25px}h2{font-size:2rem}}@media(max-height:640px) and (min-width:701px){header{height:58px}#stage{height:calc(100svh - 90px);min-height:370px}.overlay{padding:20px 4%}.menu-card{width:340px}h1{font-size:3rem}.lead{margin-bottom:12px;font-size:.85rem}.eyebrow{margin-bottom:8px}.how,.record{display:none}.mode-picker button{padding:8px}#touch-controls{justify-content:space-between;left:20px;right:20px}#touch-controls button{height:50px}#touch-controls #jump{margin-left:auto;margin-right:0;height:60px}footer{padding:10px 4px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.icon[aria-pressed="true"]{background:#ffdc7625;border-color:#ffdc7660}.icon[aria-pressed="false"]{opacity:.55}#sound{font-size:.7rem;font-weight:700}h1{font-size:clamp(2.8rem,5.5vw,4.8rem)}@media(max-width:700px){h1{font-size:2.8rem}.header-right{gap:5px}.icon{width:38px;height:40px}.brand{gap:8px}}

.location-picker{display:flex;align-items:center;justify-content:center;gap:12px;margin:14px 0;font-size:13px;color:#d9e7dc}.location-picker select{font:inherit;background:#e8e7cc;color:#244b43;border:0;border-radius:8px;padding:8px 10px;max-width:180px}
#down span{display:block;font-size:.55rem;letter-spacing:.13em}
@media(max-width:480px){#touch-controls{gap:10px}#touch-controls button{width:58px}#touch-controls #jump{width:76px}}

.mode-picker button{flex:1;min-width:0;width:auto;line-height:1.25}.mode-picker small{line-height:1.35}
/* Profile-specific layout; gameplay controls remain shared. */
html[data-device="tablet"] #touch-controls{gap:24px}
html[data-device="tablet"] #touch-controls button{min-width:68px;min-height:60px}
@media(orientation:landscape) and (max-height:600px){
 html[data-device="mobile"] main{padding:0 8px}
 html[data-device="mobile"] header{height:44px}
 html[data-device="mobile"] .brand>span{height:32px;width:30px;font-size:1.3rem}
 html[data-device="mobile"] .icon{height:34px;width:36px}
 html[data-device="mobile"] #stage{height:calc(100svh - 52px);min-height:240px;border-radius:14px}
 html[data-device="mobile"] footer{display:none}
 html[data-device="mobile"] .overlay{overflow:auto;align-items:flex-start;padding:16px 24px}
 html[data-device="mobile"] .menu-card{width:100%;max-width:420px;margin:auto}
 html[data-device="mobile"] h1{font-size:2rem;margin-bottom:10px}
 html[data-device="mobile"] .how,html[data-device="mobile"] .record{display:none}
 html[data-device="mobile"] #hud{inset:8px 10px auto}
 html[data-device="mobile"] #touch-controls{bottom:10px;gap:12px}
 html[data-device="mobile"] #touch-controls button{height:44px;width:56px;border-radius:14px;font-size:1.5rem}
 html[data-device="mobile"] #touch-controls #jump{height:50px;width:72px}
 
 
}



/* Shared typography for title, navigation and controls. */
h1,h2,.brand,.brand small{font-family:inherit}
