@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#49392c;background:#eddcba;font-synthesis:none}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #456f6a;outline-offset:5px}button{touch-action:manipulation}#app{position:relative;width:100%;height:100%;height:100dvh;overflow:hidden;touch-action:none;user-select:none}#world{position:absolute;width:100%;height:100%;inset:0}.topbar{position:absolute;z-index:4;top:0;left:0;width:100%;display:flex;align-items:center;justify-content:space-between;padding:30px 4.3%;gap:20px}.brand{display:flex;align-items:center;gap:10px;color:#49392c;text-decoration:none;font-family:Outfit,sans-serif;font-weight:700;font-size:15px;letter-spacing:2.2px}.brand svg{width:39px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}.edition{font-size:9px;font-weight:600;letter-spacing:2.8px;opacity:.6;margin-left:20px}nav{display:flex;gap:10px}.icon-button{border:1px solid #59443230;background:#fff5dc26;color:#49392c;border-radius:50%;width:37px;height:37px;display:grid;place-items:center;font-size:18px}.icon-button:hover{background:#fff5dc90}.icon-button svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#pause-btn{display:none}.home{position:absolute;top:22%;left:9%;z-index:2}.eyebrow{font-size:9px;letter-spacing:2.4px;font-weight:700;display:flex;gap:9px;align-items:center}.eyebrow>span{height:6px;width:6px;border-radius:50%;background:#b95838}h1{font-family:Outfit,'Arial Black',sans-serif;font-size:clamp(72px,8.5vw,142px);font-weight:900;letter-spacing:-5px;line-height:.83;margin:25px 0 30px;position:relative}h1>span{color:#b85032}.title-swoosh{position:absolute;bottom:-23px;left:3px;width:90%;fill:none;stroke:#b85032;stroke-width:2;opacity:.6}.tagline{font-family:Outfit,sans-serif;font-size:clamp(19px,2.1vw,29px);line-height:1.25;font-weight:500;margin:33px 0 12px;letter-spacing:-.4px}.intro{font-size:12px;opacity:.65;margin:0 0 26px}.primary{display:flex;justify-content:center;align-items:center;gap:15px;min-width:200px;padding:17px 25px;border:0;border-radius:40px;background:#ae4d31;color:#fff5e4;font-weight:600;font-size:15px;box-shadow:0 5px 0 #8f43291a;transition:transform .2s,background .2s}.primary:hover{transform:translateY(-2px);background:#963f29}.primary svg{height:14px;width:14px;fill:currentColor}.primary>span{font-size:22px;margin-left:20px;font-weight:400}.tap-start{font-size:10px;letter-spacing:.5px;opacity:.55;margin-left:38px;margin-top:12px}.scene-label{position:absolute;right:6%;bottom:24%;font-size:8px;letter-spacing:1.8px;display:flex;align-items:center;gap:12px;color:#fff3d4;opacity:.8}.scene-label i{width:25px;height:1px;background:currentColor}.home-footer{position:absolute;bottom:0;left:0;width:100%;height:112px;padding:23px 5%;display:flex;align-items:center;gap:50px;background:#fff3dbaa;border-top:1px solid #faf0d27a;backdrop-filter:blur(12px);z-index:3}.control-tip{display:flex;gap:13px;align-items:center}.tip-icon{width:36px;height:42px;display:grid;place-items:center;font-size:24px;border:1px solid #7e654e44;border-radius:20px}.control-tip strong{display:block;font-size:12px;font-weight:600}.control-tip div>span{display:block;font-size:10px;opacity:.6;margin-top:5px}.home-best{display:flex;align-items:center;gap:12px;border-left:1px solid #7e654e33;padding-left:40px;margin-left:auto}.home-best svg{fill:none;stroke:#8a6941;stroke-width:1.4;width:25px}.home-best div>span{font-size:8px;letter-spacing:1.8px}.home-best strong{font-family:Outfit,sans-serif;display:block;font-size:26px;font-weight:500;margin-top:3px}.home-best small{font:8px 'DM Sans',sans-serif;letter-spacing:1px}.footer-note{font-size:8px;letter-spacing:1.4px;opacity:.5;margin-left:auto}.hud{display:none;position:absolute;left:5%;top:105px;gap:42px;pointer-events:none}.hud>div>span{display:block;font-size:9px;letter-spacing:2px;opacity:.65}.hud strong{font:500 33px Outfit,sans-serif;display:block;margin-top:3px;font-variant-numeric:tabular-nums}.hud small{font-size:16px}.hud-best{opacity:.6}.flight-note{position:absolute;top:26%;width:100%;text-align:center;font:600 28px Outfit,sans-serif;color:#a54c32;pointer-events:none;transition:opacity .2s;opacity:0}.hint{position:absolute;bottom:12%;width:100%;text-align:center;font-size:11px;font-weight:700;letter-spacing:3px;pointer-events:none;display:none}.hint span{display:inline-block;font-size:20px;margin-left:8px}.speed{position:absolute;bottom:35px;left:5%;display:none}.speed>span{font-size:8px;letter-spacing:2px}.speed>div{margin-top:9px;width:110px;height:3px;background:#51382322}.speed i{display:block;height:100%;width:0;background:#a85231}.stall{position:absolute;bottom:20%;width:100%;text-align:center;color:#9a3b29;font-size:14px;pointer-events:none}.modal-backdrop{position:absolute;inset:0;background:#42392744;backdrop-filter:blur(9px);display:grid;place-items:center;z-index:10;padding:20px}.modal-backdrop[hidden],*[hidden]{display:none!important}.modal{background:#f9eed8;border:1px solid #fff8e8;border-radius:22px;padding:30px 42px;max-width:490px;width:100%;text-align:center;box-shadow:0 25px 90px #59372333;max-height:95dvh;overflow:auto}.modal-dunes{font-size:60px;line-height:.8;color:#b65a36}.modal .eyebrow{justify-content:center;margin-top:25px}.modal h2{font:600 35px Outfit,sans-serif;letter-spacing:-1px;margin:15px 0 10px}.modal>p:not(.eyebrow){font-size:13px;opacity:.7;line-height:1.6}.modal .primary{margin:25px auto 0;min-width:220px}.text-button{border:0;background:none;font-size:11px;color:#705a44;padding:17px 10px 0}.results{display:flex;justify-content:space-around;margin-top:25px;gap:12px}.results span{display:block;font-size:8px;letter-spacing:1.5px}.results strong{display:block;font:500 29px Outfit,sans-serif;margin-top:9px}.instructions{text-align:left;font-size:12px;line-height:1.8;margin:20px 0}.instructions p{margin:14px 0}.instructions b{color:#a04e32}.rotate-note{display:none;position:absolute;bottom:8px;width:100%;text-align:center;font-size:9px;opacity:.6;pointer-events:none}#app[data-state="playing"] .home,#app[data-state="playing"] .home-footer,#app[data-state="playing"] .scene-label,#app[data-state="paused"] .home,#app[data-state="paused"] .home-footer,#app[data-state="paused"] .scene-label,#app[data-state="over"] .home,#app[data-state="over"] .home-footer,#app[data-state="over"] .scene-label{display:none}#app:not([data-state="menu"]) .hud,#app:not([data-state="menu"]) .speed{display:flex}#app:not([data-state="menu"]) .speed{display:block}#app:not([data-state="menu"]) #pause-btn{display:grid}#app:not([data-state="menu"]) .edition{display:none}
@media(min-width:1600px){.home{top:23%}.home-footer{height:135px}}
@media(max-height:740px) and (min-width:700px){.home{top:20%}h1{font-size:84px;margin-top:19px}.tagline{font-size:23px;margin-top:30px}.intro{margin-bottom:20px}.home-footer{height:87px}.primary{padding:13px 22px}.scene-label{bottom:20%}.topbar{padding-top:22px}}
@media(max-width:850px){.edition,.footer-note{display:none}.home-footer{gap:22px}.home-best{padding-left:22px}.home{left:7%}.control-tip div>span{max-width:125px}.scene-label{font-size:7px;right:4%}.topbar{padding:23px 5%}}
@media(max-width:600px){.topbar{padding:22px 6%}.brand{font-size:12px;letter-spacing:1.5px}.brand svg{width:32px}.home{top:17%;left:8%}h1{font-size:82px}.eyebrow{font-size:7px;letter-spacing:1.7px}.tagline{font-size:23px}.intro{font-size:10px;max-width:200px;line-height:1.6;margin-bottom:20px}.primary{min-width:176px;font-size:13px;padding:13px 19px}.tap-start{font-size:9px;margin-left:22px}.home-footer{height:117px;align-items:flex-start;padding:20px 6%;gap:20px}.control-tip{gap:9px}.control-tip strong{font-size:10px}.control-tip div>span{font-size:8px;max-width:100px;line-height:1.5}.tip-icon{width:29px;height:35px;font-size:21px}.home-best{position:absolute;bottom:14px;right:7%;border:0;padding:0;gap:6px}.home-best svg{width:13px}.home-best div{display:flex;gap:10px;align-items:center}.home-best div>span{font-size:6px;letter-spacing:1px}.home-best strong{font-size:15px;margin:0}.home-best small{font-size:6px}.scene-label{display:none!important}.rotate-note{display:block;text-align:left;left:6%;font-size:7px;width:auto;bottom:16px;z-index:4}.hud{top:88px;gap:27px;left:7%}.hud strong{font-size:27px}.hud>div>span{font-size:8px}.modal{padding:25px}.modal h2{font-size:30px}.flight-note{font-size:23px}.hint{font-size:9px;letter-spacing:2px;bottom:15%}}
@media(max-height:500px) and (min-width:600px){.topbar{padding:14px 4%}.brand{font-size:11px}.brand svg{width:30px}.icon-button{height:30px;width:30px}.home{top:19%;left:8%}.eyebrow{font-size:7px}h1{font-size:54px;margin:13px 0 20px;letter-spacing:-3px}.title-swoosh{bottom:-18px}.tagline{font-size:17px;margin:20px 0 8px}.intro{display:none}.primary{padding:7px 19px;font-size:12px;min-width:155px}.tap-start{font-size:8px;margin:7px 0 0 22px}.home-footer{height:65px;padding:12px 5%}.tip-icon{height:31px;width:27px;font-size:18px}.control-tip strong{font-size:10px}.control-tip div>span{font-size:8px}.home-best strong{font-size:20px}.scene-label{bottom:21%}.hud{top:64px}.hud strong{font-size:25px}.modal{padding:18px 28px;max-width:580px}.modal-dunes{display:none}.modal .eyebrow{margin:0}.modal h2{font-size:27px;margin:10px 0}.modal .primary{margin-top:15px}.instructions{display:flex;gap:15px;font-size:10px}.instructions p{flex:1}.speed{bottom:20px}.hint{bottom:10%}}
@media(max-height:360px) and (min-width:600px){.tagline br{display:none}.tagline br:after{content:' '}.tagline{font-size:15px}.tap-start{display:none}.home-footer{height:53px;padding:9px 5%}.control-tip div>span{display:none}}

/* Long presses are the dive control, including over the HUD and text overlays. */
html,body,#app,#app *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#world{touch-action:none}

/* SVG arrows keep the same hand-drawn stroke on iOS, instead of emoji glyphs. */
.arrow-icon{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.primary .arrow-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2}
.button-arrow{display:grid;place-items:center}
.tip-icon .arrow-icon{width:25px;height:25px}
.hint .arrow-icon{display:inline-block;width:20px;height:20px;margin-left:8px;vertical-align:middle}
@media(max-width:600px){.tip-icon .arrow-icon{width:21px;height:21px}}
@media(max-height:500px) and (min-width:600px){.tip-icon .arrow-icon{width:19px;height:19px}}

/* This button is positioned from the same dune coordinates as the menu rider. */
.surfer-switch{position:absolute;z-index:3;left:74%;top:70%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:8px;min-width:136px;min-height:37px;padding:7px 12px;border:1px solid #ad754d77;border-radius:22px;background:#fff0d9e8;color:#6c422f;box-shadow:0 6px 15px #70402222;backdrop-filter:blur(6px);font-size:11px;white-space:nowrap;touch-action:manipulation}
.surfer-switch:hover{background:#fff6e7}
.surfer-switch:active{transform:translateX(-50%) scale(.97)}
.surfer-switch span{font-size:8px;letter-spacing:1.1px;opacity:.75}
.surfer-switch strong{font-family:Outfit,sans-serif;font-size:12px;letter-spacing:.7px}
.surfer-switch svg{width:18px;height:18px;margin-left:3px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#app:not([data-state="menu"]) .surfer-switch{display:none}
@media(max-width:600px){.surfer-switch{min-width:120px;min-height:34px;padding:6px 10px;gap:6px}.surfer-switch span{font-size:7px}.surfer-switch strong{font-size:11px}}
@media(max-height:500px) and (min-width:600px){.surfer-switch{min-height:30px;padding:5px 10px;margin-left:-35px}}

/* Shared desert records sit alongside the existing personal-best footer. */
.home-footer{gap:28px}
.community-stats{display:flex;align-items:center;gap:22px;margin-left:auto;white-space:nowrap}
.community-stats div{display:flex;flex-direction:column;gap:3px}
.community-stats strong{font:600 23px Outfit,sans-serif;font-variant-numeric:tabular-nums;line-height:1}
.community-stats span{font-size:7px;font-weight:700;letter-spacing:1.3px;opacity:.65}
.home-best{margin-left:0}
.footer-note{display:none}
.score-entry{margin:22px auto 0;max-width:360px;text-align:left}
.score-entry label{display:block;font-size:9px;font-weight:700;letter-spacing:1.6px;margin-bottom:9px}
.score-entry-row{display:flex;gap:8px}
.score-entry input{min-width:0;flex:1;padding:11px 13px;border:1px solid #9a744f77;border-radius:12px;background:#fffaf0;color:#49392c;font:500 14px 'DM Sans',sans-serif;-webkit-user-select:text;user-select:text;-webkit-touch-callout:default;touch-action:manipulation}
.score-entry input:focus{outline:2px solid #9b6d4a;outline-offset:2px}
.score-entry-row button{border:0;border-radius:12px;background:#ae4d31;color:#fff5e4;padding:10px 15px;font-size:12px;font-weight:700;white-space:nowrap}
.score-entry-row button:disabled{opacity:.55;cursor:default}
.score-entry p,.leaderboard-panel>p{min-height:16px;margin:8px 0 0;font-size:10px;color:#785d47}
.leaderboard-panel{margin:18px 0 0;text-align:left}
.leaderboard-panel ol{list-style:none;margin:0;padding:0;max-height:min(45dvh,350px);overflow:auto}
.leaderboard-panel li{display:grid;grid-template-columns:31px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid #ab79502b;font-size:13px}
.leaderboard-panel li:first-child{background:#f6ddb0;border-radius:10px}
.leaderboard-panel .leader-rank{font:700 17px Outfit,sans-serif;color:#ad5232}
.leaderboard-panel .leader-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.leaderboard-panel .leader-score{font:600 16px Outfit,sans-serif;font-variant-numeric:tabular-nums}
.leaderboard-panel .leader-empty{display:block;text-align:center;padding:28px 10px;color:#785d47}
@media(max-width:850px){.home-footer{gap:18px}.community-stats{gap:12px}.community-stats strong{font-size:18px}.community-stats span{font-size:6px;letter-spacing:.7px}.home-best{padding-left:16px}}
@media(max-width:600px){.community-stats{position:absolute;bottom:13px;left:6%;margin:0;gap:13px}.community-stats strong{font-size:15px}.community-stats span{font-size:5px;letter-spacing:.5px}.home-best{padding:0}.rotate-note{display:none}.score-entry-row{flex-wrap:wrap}.score-entry-row button{flex:1}}
@media(max-width:600px){.community-stats strong{font-size:18px}.community-stats span{font-size:7px;letter-spacing:.2px}}
@media(max-height:500px) and (min-width:600px){.community-stats strong{font-size:17px}.community-stats span{font-size:6px}.home-footer{gap:15px}}
