@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');
*{box-sizing:border-box}body{margin:0;background:#dfebee;color:#123c43;font-family:'DM Sans',sans-serif}main{height:100svh;min-height:580px;position:relative;overflow:hidden}canvas{width:100%;height:100%;position:absolute;inset:0;touch-action:none}header{position:absolute;z-index:3;top:0;left:0;width:100%;padding:26px 38px;display:flex;align-items:center;gap:24px}.logo{text-decoration:none;color:#113f45;font-family:'Barlow Condensed',Impact,sans-serif;font-size:33px;font-weight:900;letter-spacing:-1px}.logo span{font-weight:600}.logo i{font-style:normal;color:#ed5d31;margin-left:8px}.edition{font-size:12px;letter-spacing:2px;margin-left:auto}button{font:inherit;cursor:pointer;border:0}#pause{background:#fff9;color:#174047;border:1px solid #16414a30;width:43px;height:43px;border-radius:50%;font-size:21px}#pause:disabled{opacity:.35}.hud{position:absolute;z-index:2;top:117px;left:38px;right:38px;display:flex;justify-content:space-between;pointer-events:none}.hud>div>span{font-size:12px;letter-spacing:2px;font-weight:700}.hud strong{display:block;font-family:'Barlow Condensed',Impact,sans-serif;font-size:49px;line-height:1.05;font-weight:700}.hud strong span{font:14px 'DM Sans',sans-serif}.speed{text-align:right}#overlay{position:absolute;z-index:2;top:24%;left:9%;max-width:470px}.tag{font-size:12px;font-weight:700;letter-spacing:3px;color:#3c6467}h1{font-family:'Barlow Condensed',Impact,sans-serif;text-transform:uppercase;font-size:clamp(60px,7.8vw,110px);line-height:.88;letter-spacing:-1px;margin:25px 0}h1 em{font-style:normal;color:#e65b33}p{font-size:15px;line-height:1.6;color:#3e6166}#start{display:flex;justify-content:space-between;align-items:center;gap:50px;background:#e65b33;color:white;padding:19px 24px;font-size:16px;font-weight:700;border-radius:4px;margin-top:27px;box-shadow:0 8px 24px #ce5e3220}#start:hover{background:#c94925}#start span{font-size:24px}.instructions{display:flex;gap:20px;font-size:10px;letter-spacing:1px;margin-top:23px;color:#43636a}footer{position:absolute;z-index:2;bottom:24px;left:38px;right:38px;display:flex;justify-content:space-between;font-size:10px;font-weight:700;letter-spacing:2px;pointer-events:none}#touchHint{display:none;position:absolute;bottom:70px;left:0;right:0;text-align:center;font-size:13px;color:#31565b;pointer-events:none}body.playing #overlay{display:none}body.playing #touchHint{display:block}button:focus-visible,a:focus-visible{outline:3px solid #143e45;outline-offset:5px}@media(max-width:600px){header{padding:20px}.edition{display:none}#pause{margin-left:auto}.hud{left:20px;right:20px;top:94px}.hud strong{font-size:38px}#overlay{left:8%;top:25%;right:7%}h1{font-size:74px}p{font-size:14px}footer{left:20px;right:20px;bottom:18px;font-size:9px;letter-spacing:1px}footer>span:first-child{max-width:150px}.instructions{font-size:9px;gap:14px}#start{margin-top:20px}main{min-height:640px}}@media(max-height:720px) and (min-width:601px){h1{font-size:70px}#overlay{top:25%}.instructions{margin-top:16px}}
/* Yeti edition: photographic alpine scene and quiet, high-contrast HUD. */
body{background:#172e40;color:#fff}main{min-height:0;height:100svh}body.menu main{background-image:linear-gradient(90deg,rgba(7,26,41,.69),rgba(10,30,43,.18) 58%,transparent),url('assets/yeti-reference.png');background-size:cover;background-position:center}header{background:linear-gradient(#0b223b55,transparent);padding-bottom:45px}.logo,.logo span,.logo i{color:#fff}.edition{color:#e0e9ef}#pause{color:#fff;background:#102d4555;border-color:#ffffff45}.hud{color:#fff;text-shadow:0 2px 12px #17334488}.hud>div>span{font-size:12px}.hud strong{font-size:46px}#overlay{top:32%;left:7%;max-width:550px}h1{font-size:clamp(68px,8vw,115px);line-height:.93;margin:20px 0;letter-spacing:-1px}h1 em{color:#fff}p,.tag{color:#edf4f8}.tag{letter-spacing:2px}p{font-size:16px}#start{background:#fff;color:#143247;border-radius:3px;box-shadow:0 8px 35px #10243822}#start:hover{background:#deedf6}#start:disabled{opacity:.65;cursor:wait}.instructions{font-size:12px;color:#e4eef6;flex-wrap:wrap}footer{color:#e9f2f8;text-shadow:0 2px 7px #10283b;font-size:12px;letter-spacing:1px}#touchHint{color:#254251;background:#ffffffc9;left:50%;right:auto;transform:translateX(-50%);white-space:nowrap;padding:9px 15px;border-radius:30px;bottom:58px;font-size:12px}body:not(.menu):not(.playing) #overlay{background:#102a41e8;padding:30px;border-radius:5px;top:24%;left:6%;max-width:440px}body:not(.menu):not(.playing) h1{font-size:70px}body:not(.menu) .hud{color:#163549;text-shadow:0 1px 9px #fff}body:not(.menu) footer{color:#18394d;text-shadow:0 1px 9px #fff}body:not(.menu) header{background:linear-gradient(#10294388,transparent)}@media(max-width:600px){body.menu main{background-position:61% center;background-image:linear-gradient(90deg,rgba(6,25,40,.69),rgba(10,30,43,.22)),url('assets/yeti-reference.png')}#overlay{top:35%;left:7%;right:7%}h1{font-size:72px}.hud strong{font-size:38px}p{font-size:15px}.instructions{gap:12px;font-size:11px}footer{font-size:10px}body:not(.menu):not(.playing) #overlay{left:5%;right:5%;padding:24px}body:not(.menu):not(.playing) h1{font-size:60px}}@media(max-height:680px){#overlay{top:29%}h1{font-size:60px;margin:12px 0}p{margin:8px 0}#start{margin-top:14px;padding:12px 20px}.instructions{margin-top:12px}.hud{top:90px}body:not(.menu):not(.playing) #overlay{top:23%}body:not(.menu):not(.playing) h1{font-size:48px}}@media(max-height:470px){header{padding:12px 20px}.hud{top:65px;left:20px;right:20px}.hud strong{font-size:28px}#overlay{top:24%;left:18%}h1{font-size:42px}.tag,.instructions{font-size:10px}p{font-size:13px}#start{padding:7px 16px;margin-top:8px}footer{bottom:10px}.instructions{margin-top:7px}body:not(.menu):not(.playing) #overlay{top:18%;left:20%;padding:15px}body:not(.menu):not(.playing) h1{font-size:36px}}
.trickScore{text-align:center}#trickControls{display:none;position:absolute;z-index:4;right:28px;bottom:92px;gap:10px}body.playing #trickControls{display:flex}#trickControls button{color:white;background:#15394ee6;border:1px solid #ffffff90;border-radius:9px;padding:14px 18px;font-weight:700;font-size:16px;min-height:52px;touch-action:manipulation}#trickControls button:disabled{opacity:.42;cursor:default}#trickControls kbd{margin-left:8px;font:12px 'DM Sans',sans-serif;background:#ffffff25;padding:3px 5px;border-radius:3px}body.airborne #trickControls button:not(:disabled){background:#146a8b;box-shadow:0 0 22px #ffffff77}#trickNotice{position:absolute;top:28%;left:50%;transform:translateX(-50%);z-index:3;max-width:90%;padding:12px 20px;border-radius:4px;background:#102f47e8;color:white;text-align:center;font-size:17px;font-weight:700;opacity:0;pointer-events:none;transition:opacity .15s}body.playing #trickNotice.visible{opacity:1}@media(max-width:600px){#trickControls{right:18px;bottom:104px;gap:8px}#trickControls button{padding:13px 16px}#trickControls kbd{display:none}.trickScore strong{font-size:32px}#trickNotice{font-size:14px;top:24%;width:max-content;max-width:90%}#touchHint{font-size:10px;padding:9px 11px;bottom:60px}.hud>div>span{font-size:10px;letter-spacing:1px}}@media(max-height:470px){#trickControls{bottom:40px;right:15px}#trickNotice{top:36%;font-size:13px}#touchHint{display:none!important}.trickScore strong{font-size:28px}}
#trickControls{right:22px;bottom:96px;flex-direction:column;gap:9px;max-width:285px;padding:12px;background:#102b3f70;border-radius:10px}.moveGroup>span{display:block;color:#fff;font-size:10px;letter-spacing:1.5px;margin-bottom:5px}.moveGroup>div{display:flex;gap:6px}#trickControls button{padding:10px 12px;font-size:14px;min-height:44px;flex:1;white-space:nowrap}#trickControls kbd{margin-left:4px}#trickControls button:disabled{opacity:.45}@media(max-width:600px){#trickControls{right:12px;left:12px;bottom:48px;max-width:none;padding:7px;gap:6px}body.playing #trickControls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.moveGroup,.moveGroup>div{display:contents}.moveGroup>span{display:none}#trickControls button{padding:9px 3px;font-size:12px;min-height:43px}#trickControls button:last-child{flex:1}body.playing footer{display:none}#touchHint{bottom:12px;font-size:10px}}@media(max-height:470px) and (min-width:601px){#trickControls{bottom:18px;right:12px;gap:4px;padding:7px;max-width:240px}.moveGroup>span{display:none}#trickControls button{min-height:38px;padding:7px;font-size:12px}}
/* Alpine illustration: ink, snow and the reference's saturated accents. */
body{background:#163d60}body.menu main{background-image:linear-gradient(90deg,#0a294c88,transparent 66%),url('assets/yeti-editorial.png');background-position:60% center}.logo i{color:#50c6cc}.tag{color:#91e0e5}.edition{letter-spacing:2px}#start{background:#f4913d;color:#102e48;border:2px solid #102e48;box-shadow:5px 5px 0 #0b2949;border-radius:0}#start:hover{background:#ffb464}#start:active{transform:translate(2px,2px);box-shadow:3px 3px 0 #0b2949}#pause{background:#183e60;color:#f3f3fa;border-color:#9dc3d7}body:not(.menu):not(.playing) #overlay{background:#133954f5;border:2px solid #6199b9;border-radius:0;box-shadow:7px 7px 0 #10283d77}#trickControls{background:#173c5ccd;border-radius:0;border:1px solid #8db5d0}#trickControls button{background:#173958;border-color:#7199b3;border-radius:2px}body.airborne #trickControls button:not(:disabled){background:#a72170;border-color:#ed90cb;box-shadow:2px 2px 0 #102e48}#trickNotice{background:#a72170;border:1px solid #f1b1d4;border-radius:0}body:not(.menu) .hud{color:#f5f5fb;text-shadow:1px 2px 0 #143c59}.hud strong{letter-spacing:1px}.instructions{color:#f2f3fa}#touchHint{border-radius:2px;background:#e9f0fae8;border:1px solid #8ea7bd;color:#183952}button:focus-visible,a:focus-visible{outline:3px solid #5be0df;outline-offset:4px}@media(max-width:600px){body.menu main{background-position:62% center;background-image:linear-gradient(90deg,#08294cbb,#0b294533),url('assets/yeti-editorial.png')}#overlay{top:33%}.tag{font-size:12px}h1{font-size:70px}.instructions{font-size:12px}body:not(.menu) .hud{background:linear-gradient(#143c591c,transparent)}}@media(max-height:470px){#overlay{top:24%}h1{font-size:42px}}

body.accelerating .speed strong{color:#ffb464}

#musicPanel{position:relative;margin-left:auto;color:#f2f3fa;font-size:14px}#musicPanel summary{list-style:none;cursor:pointer;background:#173958;border:1px solid #7199b3;padding:11px 14px;min-height:44px}#musicPanel summary::-webkit-details-marker{display:none}.music-content{position:absolute;right:0;top:52px;width:min(330px,calc(100vw - 40px));padding:18px;background:#123450;box-shadow:0 8px 35px #081e3999;border:1px solid #7199b3}.music-content label{font-size:14px;color:#c7e7ed}.music-content select{display:block;width:100%;margin:10px 0 14px;padding:10px;background:#eff5fa;color:#143247;border:0;border-radius:2px;font:14px 'DM Sans',sans-serif}.music-buttons{display:flex;gap:6px}.music-buttons button{flex:1;min-height:44px;background:#235778;color:white;padding:8px;font-size:14px;border:1px solid #7199b3}.music-buttons button[aria-pressed=true]{background:#a72170}.volume-label{display:flex;align-items:center;gap:12px;margin-top:16px}.volume-label input{width:100%;accent-color:#50c6cc;min-height:28px}#musicStatus{font-size:14px;line-height:1.4;margin:12px 0 0;color:#c7e7ed}#musicPanel summary:focus-visible{outline:3px solid #5be0df;outline-offset:4px}header:has(#musicPanel[open]){z-index:6}.edition{margin-left:auto}#musicPanel{margin-left:0}@media(max-width:700px){.edition{display:none}#musicPanel{margin-left:auto}#pause{margin-left:0}header{gap:10px}.music-content{right:-53px}}

#terrainHint{display:none;position:absolute;top:196px;left:38px;z-index:2;color:#edfbff;background:#143c59db;border-left:3px solid #50c6cc;padding:9px 13px;font-size:14px;max-width:calc(100% - 76px);pointer-events:none}body.playing #terrainHint{display:block}@media(max-width:600px){#terrainHint{top:159px;left:20px;max-width:calc(100% - 40px);font-size:13px}}@media(max-height:500px){#terrainHint{top:116px;font-size:12px}}

#phaseProgress{display:none;position:absolute;top:235px;left:38px;z-index:2;max-width:calc(100% - 76px);padding:7px 11px;background:#102e48c9;color:#fff;font-size:13px;pointer-events:none}body.playing #phaseProgress{display:block}.unlock{font-size:10px;margin-left:4px;color:#cde9f0}#trickControls{max-width:340px}.locked{filter:grayscale(1)}@media(max-width:600px){#phaseProgress{top:208px;left:20px;max-width:calc(100% - 40px);font-size:12px}#terrainHint{font-size:12px;max-height:46px}#trickControls{max-width:none}body.playing #trickControls{grid-template-columns:repeat(4,minmax(0,1fr))}#trickControls button{font-size:11px}.unlock{font-size:9px}}@media(max-height:500px){#phaseProgress{top:157px;font-size:11px}#trickControls{max-width:300px}body:not(.menu):not(.playing) #overlay{max-height:80vh;overflow:auto}}

#trickControls .moveGroup:first-child>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:600px){body.playing #trickControls{grid-template-columns:repeat(3,minmax(0,1fr))}#trickControls .moveGroup:first-child>div{display:contents}#trickControls button{font-size:14px;white-space:normal}.unlock{font-size:10px}}

#exitVeil{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:0;background:radial-gradient(ellipse at 50% 46%,#ffffff 0%,#f0fcff 55%,#d6f4ff 100%);display:flex;align-items:center;justify-content:center}#exitVeil span{font-size:clamp(18px,3vw,28px);letter-spacing:2px;color:#35647b;text-align:center;padding:20px;text-transform:uppercase}
/* A warm alpine stop, with the equipment selection beside the 3D lodge. */
#boardShop[hidden]{display:none}body.at-chalet #overlay{top:18%;left:4%;width:350px;max-width:calc(100% - 32px);max-height:78svh;overflow:auto;padding:22px;background:#193347eb;border-color:#bd9568}body.at-chalet h1{font-size:52px;margin:12px 0}body.at-chalet .instructions,body.at-chalet .hud,body.at-chalet footer{display:none}body.at-chalet #message{font-size:14px}body.at-chalet #start{width:100%;margin-top:12px;gap:10px;padding:12px}#boardShop p{font-size:13px;line-height:1.4;margin:12px 0}#boardOptions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.board-option{display:flex;flex-direction:column;align-items:center;gap:9px;padding:12px 5px;color:#f2f6ff;background:#10283d;border:2px solid #617b89;font-size:13px}.board-option[aria-pressed=true]{border-color:#ffc575;background:#3d4b50}.board-preview{display:block;width:28px;height:90px;border-radius:48% 48% 45% 45% / 17% 17% 17% 17%;background:linear-gradient(155deg,var(--base) 23%,var(--accent) 24% 33%,var(--base) 34% 70%,var(--tail) 71% 82%,var(--base) 83%);transform:rotate(12deg);box-shadow:3px 3px 0 #0005}#boardSelected{color:#ffc575}@media(max-width:600px){body.at-chalet #overlay{top:auto;bottom:12px;left:16px;right:16px;width:auto;max-height:61svh;padding:14px}body.at-chalet h1{font-size:32px;line-height:1}body.at-chalet h1 br{display:none}body.at-chalet .tag{display:none}.board-preview{height:65px;width:23px}.board-option{padding:8px 4px}body.at-chalet #message{margin:8px 0}}
body.entering-chalet .hud,body.entering-chalet #phaseProgress,body.entering-chalet #terrainHint,body.entering-chalet #trickControls,body.entering-chalet #touchHint,body.entering-chalet footer{display:none!important}.board-option small{font-size:10px;line-height:1.5;font-weight:400}.board-option small:last-child{color:#d2e6ed}.board-option{min-width:0}body.at-chalet #overlay{width:390px}body.at-chalet .board-preview{height:70px}@media(max-width:600px){body.at-chalet #overlay{width:auto;max-height:67svh}.board-option small{font-size:10px}body.at-chalet .board-preview{height:45px}}
/* Mobile controls occupy their own space below the rendered piste. */
@media (max-width:700px), (pointer:coarse) and (max-width:1100px){
 body.playing:not(.entering-chalet) #game{height:calc(100% - var(--controls-height,190px));bottom:auto}
 body.playing:not(.entering-chalet) #exitVeil{bottom:var(--controls-height,190px)}
 body.playing #trickControls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:absolute;left:0;right:0;bottom:0;width:100%;max-width:none;gap:6px;padding:8px max(10px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));border:0;border-top:1px solid #7199b3;background:#102d45;border-radius:0}
 #trickControls::before{content:'Arraste na pista para virar · Toque para manobrar no ar';grid-column:1/-1;text-align:center;color:#c7e7ed;font-size:12px;line-height:18px}
 #trickControls .moveGroup,#trickControls .moveGroup>div,#trickControls .moveGroup:first-child>div{display:contents}
 #trickControls .moveGroup>span,#trickControls kbd{display:none}
 body.playing #trickControls button{min-width:0;min-height:44px;margin:0;padding:8px 3px;font-size:14px;line-height:18px;white-space:normal;touch-action:manipulation}
 body.playing #touchHint,body.playing footer{display:none}
 body.playing header{padding:10px 16px;gap:10px}
 body.playing .hud{top:72px;left:16px;right:16px}
 body.playing .hud strong{font-size:30px}
 body.playing #terrainHint{top:130px;left:16px;max-width:calc(100% - 32px);font-size:12px}
 body.playing #phaseProgress{top:178px;left:16px;font-size:12px}
}
@media (max-height:500px) and (max-width:1100px) and (pointer:coarse){
 body.playing #trickControls{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding-top:5px;padding-bottom:calc(5px + env(safe-area-inset-bottom))}
 #trickControls::before{display:none}
 body.playing .hud{top:62px}
 body.playing .hud strong{font-size:24px}
 body.playing #terrainHint{top:105px;font-size:12px;padding:4px 7px}
 body.playing #phaseProgress{top:140px;padding:4px 7px}
}
/* Keep all mobile game information outside the 3D viewport. */
#gameInfo{display:contents}
@media (max-width:700px), (pointer:coarse) and (max-width:1100px){
 body.playing:not(.entering-chalet) main{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
 body.playing:not(.entering-chalet) #gameInfo{display:grid;grid-template-columns:minmax(0,1fr);grid-row:1;position:relative;z-index:3;background:#102d45;padding:0 12px 5px;min-width:0}
 body.playing:not(.entering-chalet) header{position:relative;inset:auto;padding:6px 0;background:none;gap:10px;min-width:0}
 body.playing:not(.entering-chalet) header .logo{font-size:25px}
 body.playing:not(.entering-chalet) header .edition{display:none}
 body.playing:not(.entering-chalet) .hud{position:relative;inset:auto;padding:3px 0;gap:10px;background:none;text-shadow:none}
 body.playing:not(.entering-chalet) .hud>div>span{font-size:12px;letter-spacing:.5px}
 body.playing:not(.entering-chalet) .hud strong{font-size:25px;line-height:1.1}
 body.playing:not(.entering-chalet) #phaseProgress,body.playing:not(.entering-chalet) #terrainHint,body.playing:not(.entering-chalet) #trickNotice{position:relative;inset:auto;transform:none;margin:0;width:auto;max-width:none;max-height:none;padding:3px 0;border:0;background:none;font-size:12px;line-height:16px;overflow-wrap:anywhere;pointer-events:none}
 body.playing:not(.entering-chalet) #trickNotice{min-height:22px;color:#ffc575;text-align:left}
 body.playing:not(.entering-chalet) #game{position:relative;inset:auto;grid-row:2;width:100%;height:100%;min-height:0;min-width:0}
 body.playing:not(.entering-chalet) #trickControls{position:relative;inset:auto;grid-row:3}
 body.playing:not(.entering-chalet) #exitVeil{top:var(--info-height,180px);bottom:var(--controls-height,190px)}
 #trickControls::before{display:none}
}
@media (max-height:500px) and (max-width:1100px) and (pointer:coarse){
 body.playing:not(.entering-chalet) #gameInfo{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:18px}
 body.playing:not(.entering-chalet) header{grid-column:1;grid-row:1}
 body.playing:not(.entering-chalet) .hud{grid-column:2;grid-row:1;align-items:center}
 body.playing:not(.entering-chalet) #phaseProgress{grid-column:1;grid-row:2}
 body.playing:not(.entering-chalet) #terrainHint{grid-column:2;grid-row:2}
 body.playing:not(.entering-chalet) #trickNotice{grid-column:1/-1;grid-row:3}
}
.point-brand{display:none;width:94px;height:auto;object-fit:contain;background:#fff;padding:5px;border-radius:3px;flex-shrink:0}body.menu .point-brand{display:block}@media(max-width:700px){body.menu header{gap:10px;padding:14px}body.menu .point-brand{width:66px;padding:3px}body.menu header .logo{font-size:26px}}@media(max-height:500px){body.menu .point-brand{width:60px}}
@media(max-width:380px){body.menu header{gap:6px;padding:12px}body.menu header .logo{font-size:22px}body.menu .point-brand{width:56px}body.menu #pause{width:38px;min-width:38px;height:40px}body.menu #musicPanel summary{padding:10px}}
/* Crop only the opening-screen presentation to the original circular emblem. */
body.menu .point-brand{padding:0;background:transparent;border-radius:0;clip-path:ellipse(36.95% 42.35% at 50% 50%)}
body.night-run #exitVeil{background:radial-gradient(ellipse at 50% 46%,#15304a 0%,#071321 55%,#020611 100%)}
#panelContent{display:contents}
/* The next-stage action stays visible while board details scroll independently. */
@media(max-width:700px), (pointer:coarse) and (max-width:1100px){
 body.at-chalet:not(.menu):not(.playing) #overlay{position:absolute;display:grid;grid-template-rows:minmax(0,1fr) auto;top:max(72px,env(safe-area-inset-top));bottom:max(12px,env(safe-area-inset-bottom));left:12px;right:12px;width:auto;max-width:480px;max-height:none;margin:0 auto;padding:14px;overflow:hidden;z-index:4;box-sizing:border-box}
 body.at-chalet #panelContent{display:block;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;padding:0 3px 12px}
 body.at-chalet:not(.menu):not(.playing) h1{font-size:34px;line-height:1;margin:6px 0 12px}
 body.at-chalet #overlay>.instructions,body.at-chalet #panelContent>.tag{display:none}
 body.at-chalet #overlay>#start{position:relative;min-height:52px;width:100%;margin:8px 0 0;flex-shrink:0;touch-action:manipulation;z-index:1;font-size:16px}
 body.at-chalet .board-option{min-height:44px;touch-action:manipulation}
}
@media(max-height:500px) and (pointer:coarse) and (max-width:1100px){body.at-chalet:not(.menu):not(.playing) #overlay{top:12px;left:12px;right:12px;max-width:560px}body.at-chalet header{visibility:hidden}body.at-chalet:not(.menu):not(.playing) h1{font-size:28px}}

body.menu footer{display:none}
/* Keep the sponsor in the existing information bar, including mobile play. */
body:not(.menu) .point-brand{display:block;width:64px;height:auto;padding:0;background:transparent;border-radius:0;clip-path:ellipse(36.95% 42.35% at 50% 50%)}
@media(max-width:700px),(pointer:coarse) and (max-width:1100px){
 body:not(.menu) .point-brand{width:48px}
 body.playing:not(.entering-chalet) header{gap:6px}
 body.playing:not(.entering-chalet) header .logo{font-size:22px}
 body.playing:not(.entering-chalet) #pause{flex-shrink:0}
}
@media(max-height:500px) and (pointer:coarse) and (max-width:1100px){
 body.playing:not(.entering-chalet) .point-brand{width:40px}
 body.playing:not(.entering-chalet) header .logo{font-size:19px}
 body.playing:not(.entering-chalet) #musicPanel summary{padding:10px 8px}
}
#rankingDialog{width:min(560px,calc(100vw - 24px));max-height:85svh;overflow:auto;border:1px solid #739bb4;border-radius:12px;padding:22px;background:#102d45;color:#f4f8ff;box-shadow:0 16px 70px #0008;font:16px 'DM Sans',sans-serif}#rankingDialog::backdrop{background:#071521bd}.ranking-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.ranking-head h2{margin:0;font-size:28px}.ranking-head h2 span{font-size:16px;color:#9ac9df}#rankingDialog button,#showRanking{min-height:44px;padding:10px 14px;background:#267d89;color:white;border-radius:5px;font:inherit}#rankingDialog button:disabled{opacity:.5}#showRanking{margin-top:14px}#showRanking[hidden]{display:none}#rankingDialog p{font:16px/1.5 'DM Sans',sans-serif;color:#e2eef6}#rankingForm label{display:block;margin-bottom:8px}.ranking-input{display:flex;gap:8px}.ranking-input input{min-width:0;width:100%;padding:10px;font:16px 'DM Sans',sans-serif;border:1px solid #91bdcd;border-radius:4px;background:#f6faff;color:#102d45}#rankingForm small{display:block;font-size:14px;line-height:1.5;margin-top:8px;color:#bdd4df}.ranking-list{margin-top:14px}#rankingDialog table{width:100%;border-collapse:collapse}#rankingDialog th,#rankingDialog td{padding:10px 7px;text-align:left;border-bottom:1px solid #ffffff20;font-size:15px}#rankingDialog th:last-child,#rankingDialog td:last-child{text-align:right}.my-score{background:#23696e;color:#fff;font-weight:bold}#rankingStatus:empty{display:none}@media(max-width:480px){#rankingDialog{padding:16px}.ranking-input{flex-direction:column}}
