:root{color-scheme:light;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px);font-family:"Trebuchet MS","Arial Rounded MT Bold",Arial,sans-serif;color:white;background:#152d44}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 40%,#416886,#142a40 70%);-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}button,input{font:inherit}button{cursor:pointer;color:inherit;border:0;touch-action:manipulation}button:focus-visible,input:focus-visible{outline:3px solid #fff;outline-offset:5px}button:active{transform:scale(.96)}button{transition:transform .16s,filter .16s}button:hover{filter:brightness(1.07)}[hidden]{display:none!important}
#game{position:relative;width:min(100vw,calc(100dvh * .56),520px);height:100%;height:100dvh;overflow:hidden;background:#62b7ec;isolation:isolate;touch-action:none;box-shadow:0 0 100px #0005}
#world{position:absolute;width:100%;height:100%;inset:0;display:block}.vignette{pointer-events:none;position:absolute;inset:0;background:linear-gradient(180deg,#0b3a6c13,transparent 25%,transparent 65%,#142a4855);z-index:1}.screen,.hud,.ready,.modal{position:absolute;inset:0}.screen{z-index:2}.glass{border:1.5px solid #ffffffbd;background:linear-gradient(135deg,#ffffffe0 0%,#ffffff27 24%,#84b2e34d 45%,#f4e2ee59 70%,#fff3c985 100%);box-shadow:inset 0 2px 5px #fffffff5,inset 0 -3px 9px #ffffff85,0 8px 28px #24487925;backdrop-filter:blur(17px) saturate(1.35);-webkit-backdrop-filter:blur(17px) saturate(1.35)}
.icon-button{display:grid;place-items:center;border-radius:50%;width:52px;height:52px;flex-shrink:0}.icon-button svg{width:26px;height:26px;filter:drop-shadow(0 2px 2px #234f8d40)}svg{display:block}.home-top{position:absolute;top:calc(max(19px,var(--safe-top)) + 2px);left:calc(22px + var(--safe-left));right:calc(22px + var(--safe-right));display:flex;align-items:center;justify-content:space-between;gap:12px}.edition{font-size:8px;letter-spacing:1.7px;font-weight:800;text-shadow:0 1px 7px #285c94;max-width:190px;line-height:1.8}
.hero{position:absolute;top:14%;width:100%;display:flex;align-items:center;flex-direction:column}.hero-bird{width:66%;max-width:280px;height:auto;filter:drop-shadow(0 15px 10px #315e8b30);animation:hover-bird 3.5s ease-in-out infinite;transform-origin:50% 60%;margin-bottom:-18px}.logo{position:relative;text-align:center;line-height:.87;transform:rotate(-5deg);font-weight:1000;font-family:"Arial Rounded MT Bold","Trebuchet MS",Arial,sans-serif;letter-spacing:-4px;filter:drop-shadow(0 7px 0 #236da9) drop-shadow(0 12px 9px #27588b65);isolation:isolate;display:flex;flex-direction:column;width:90%;margin:0 auto}.logo span{display:block;paint-order:stroke fill;position:relative}.logo-flappy{font-size:clamp(42px,15.6vw,82px);color:#c6f4ff;-webkit-text-stroke:5px #f4feff;text-shadow:0 3px 0 #5bb4ef,0 6px 0 #4489ca,0 -2px 2px #fff;z-index:2}.logo-sky{font-size:clamp(55px,20vw,102px);color:#ffca3c;-webkit-text-stroke:5px #fff0b1;text-shadow:0 4px 0 #f39b25,0 7px 0 #d07921;letter-spacing:-3px;z-index:3;margin-top:7px}.tagline{font-size:12px;font-weight:700;letter-spacing:.2px;margin:27px 0 0;text-shadow:0 2px 8px #2e589b}
.home-actions{position:absolute;top:65%;width:100%;display:flex;flex-direction:column;align-items:center}.play-button{width:74%;height:84px;border-radius:100px;display:flex;align-items:center;justify-content:center;gap:23px;font-size:27px;font-weight:900;text-shadow:0 2px 5px #40527e68;position:relative;overflow:hidden;background:radial-gradient(ellipse at 90% 80%,#ffcf8ab0,transparent 55%),radial-gradient(ellipse at 20% 90%,#416fa573,transparent 60%),linear-gradient(130deg,#ffffffe0,#f9e0ed61 25%,#8db6df69 60%,#fff9c1a0);box-shadow:inset 0 3px 8px white,inset 0 -3px 7px #fff,0 10px 30px #6963a630,0 0 30px #fff5}.play-button:after{content:"";position:absolute;left:10%;right:10%;height:40%;top:3px;border-radius:100%;background:linear-gradient(#fff5,transparent);pointer-events:none}.play-button svg{width:36px;height:40px;filter:drop-shadow(0 3px 5px #4473a044)}.control-hint{font-size:11px;margin-top:19px;display:flex;align-items:center;gap:8px;text-shadow:0 1px 6px #304e7f}.touch-mark{display:inline-block;border:1px solid #fffc;border-radius:100%;width:13px;height:13px;box-shadow:0 0 0 3px #fff2}.home-bottom{position:absolute;bottom:calc(max(22px,var(--safe-bottom)) + 4px);display:flex;flex-direction:column;align-items:center;gap:15px;width:100%}.record-pill{display:flex;align-items:center;gap:11px;border-radius:22px;padding:10px 21px;background:#2c568038;box-shadow:inset 0 1px 4px #ffffff70,0 6px 20px #26426830;backdrop-filter:blur(12px)}.record-pill svg{width:25px;height:25px;color:#ffe39a}.small-label{display:block;letter-spacing:1.5px;font-size:7px;margin-bottom:3px}.record-pill strong{font-size:21px}.record-pill small{font-size:12px;font-weight:400}.bottom-note{font-size:8px;letter-spacing:.6px;color:#fff9}
.loading{display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(160deg,#49a9eb,#b8d6f7 65%,#ffdcad)}.loading-mark{text-align:center;font-size:50px;font-weight:1000;line-height:.9;text-shadow:0 4px #4a8fb9}.loading-mark span{color:#ffdc74;font-size:65px}.loading p{font-size:13px;margin-top:28px}progress{width:160px;height:5px;border:0;border-radius:5px;overflow:hidden}progress::-webkit-progress-bar{background:#ffffff5c}progress::-webkit-progress-value{background:white}.hud{z-index:3;pointer-events:none;display:flex;justify-content:space-between;align-items:flex-start;padding:calc(max(20px,var(--safe-top)) + 3px) calc(21px + var(--safe-right)) 0 calc(21px + var(--safe-left))}.hud button{pointer-events:auto}.score-wrap{text-align:center;padding-top:1px}.score-wrap #score{display:block;font-weight:1000;font-size:58px;line-height:1;-webkit-text-stroke:4px #233d59;paint-order:stroke fill;text-shadow:0 4px #19345340}.score-wrap #score-caption{display:block;letter-spacing:2px;font-size:8px;font-weight:bold;margin-top:9px;text-shadow:0 2px 4px #315981}
.ready{z-index:2;display:flex;justify-content:center;align-items:center;pointer-events:none}.ready-card{text-align:center;padding:24px 30px 18px;border-radius:30px;transform:translateY(70px);color:#fff;background:#3f7cb52e;text-shadow:0 1px 5px #23517e50}.ready h1{font-size:27px;margin:0 0 11px}.ready p{font-size:13px;line-height:1.8;margin:0}.ready span{font-size:8px;letter-spacing:1.8px}.tap-demo{font-size:31px;line-height:1.2;margin:12px 0;animation:tap 1s infinite}.modal{z-index:6;background:#17375235;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:20px}.panel{border-radius:35px;width:100%;max-width:340px;text-align:center;padding:32px 25px 19px;background:linear-gradient(150deg,#dcefffec,#d9e3f2c9 45%,#f9e8dbed);color:#294f73;text-shadow:0 1px #fff4;box-shadow:inset 0 2px 6px white,0 20px 70px #193c6b40;max-height:calc(100% - var(--safe-top) - var(--safe-bottom));overflow:auto}.eyebrow{font-size:8px;letter-spacing:2.2px;color:#5e80a2;font-weight:800}.panel h1{font-size:27px;letter-spacing:-.6px;margin:16px 0 12px;line-height:1.15}.panel p{font-size:13px;line-height:1.7;color:#5c7891}.primary{height:58px;border-radius:30px;width:100%;font-weight:800;font-size:18px;color:#fff;text-shadow:0 2px 4px #35608080;background:linear-gradient(145deg,#82cefb,#6eadebd9 55%,#adbeef);margin-top:16px;box-shadow:inset 0 2px 5px #fff,0 5px 15px #6091bb40}.text-button{color:#577692;padding:18px 8px 7px;background:none;font-size:12px}.results{display:grid;grid-template-columns:1fr 1fr;margin:26px 0 12px}.results>div+div{border-left:1px solid #83a4c042}.results span{font-size:8px;letter-spacing:2px;display:block;color:#6d89a3}.results strong{font-size:54px;line-height:1.3;color:#3e80b4;font-weight:900}.results>div+div strong{color:#ca902b}.result #result-text{min-height:44px}.settings{text-align:left}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.panel-heading h1{margin:0}.close-button{background:#ffffff60;width:32px;height:32px;border-radius:50%;color:#62839f;font-size:27px;line-height:1}.setting{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 0;border-top:1px solid #7997b02c;font-size:14px;font-weight:bold}.setting-note{display:block;font-size:10px;font-weight:400;color:#6b86a0;margin-top:5px}.setting input{appearance:none;-webkit-appearance:none;width:43px;height:26px;flex-shrink:0;border-radius:30px;background:#9eb1c5;position:relative;cursor:pointer;transition:background .2s}.setting input:before{content:"";position:absolute;width:20px;height:20px;background:#fff;border-radius:50%;left:3px;top:3px;box-shadow:0 1px 4px #0002;transition:transform .2s}.setting input:checked{background:#65afe2}.setting input:checked:before{transform:translateX(17px)}.howto{border-top:1px solid #7997b02c;padding-top:8px}.howto h2{font-size:13px}.howto p{font-size:11px;margin:8px 0;line-height:1.65}.howto .storage-note{font-size:9px;color:#8496aa}.countdown{position:absolute;inset:0;z-index:7;display:grid;place-items:center;background:#153b631c;color:white;font-size:100px;font-weight:1000;text-shadow:0 5px 0 #3975a5;-webkit-text-stroke:2px #fff7;pointer-events:auto}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@keyframes hover-bird{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-12px) rotate(2deg)}}@keyframes tap{0%,100%{transform:translateY(2px);opacity:.6}50%{transform:translateY(-3px);opacity:1}}
@media(min-width:700px){#game{border-left:1px solid #ffffff28;border-right:1px solid #ffffff28}.logo-flappy{font-size:75px}.logo-sky{font-size:98px}}
@media(max-height:680px){.hero{top:10%}.hero-bird{width:54%;max-width:200px;margin-bottom:-14px}.logo-flappy{font-size:49px}.logo-sky{font-size:65px}.tagline{margin-top:18px;font-size:10px}.home-actions{top:64%}.play-button{height:65px;font-size:23px}.home-bottom{bottom:15px;gap:10px}.control-hint{font-size:9px;margin-top:13px}.record-pill{padding:7px 18px}.bottom-note{display:none}.edition{font-size:7px}.icon-button{width:44px;height:44px}.panel{padding:23px 24px 12px}.setting{padding:12px 0}.home-top{top:calc(max(14px,var(--safe-top)) + 2px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}#game[data-reduced-motion="true"] .hero-bird,#game[data-reduced-motion="true"] .tap-demo{animation:none}


/* v2 additions preserve the original artwork and glass controls. */
#game[data-state="paused"][data-modal="pause-panel"] .hud{z-index:8}
#game[data-state="paused"][data-modal="pause-panel"] .hud-left{pointer-events:auto}
.hud-left{position:relative;flex-shrink:0}
.hud-distance{display:block;font-size:10px;letter-spacing:1px;margin-top:7px;text-shadow:0 1px 5px #315981}
.ready-card p{white-space:pre-line}
.choice-setting{padding:15px 0;border-top:1px solid #7997b02c}
.choice-title{display:block;font-size:14px;font-weight:700;margin-bottom:10px}
.segmented{display:flex;padding:4px;border-radius:25px;gap:5px;background:#ffffff38;backdrop-filter:blur(8px)}
.segmented button{flex:1;min-width:0;border-radius:22px;background:transparent;color:#617e9a;font-size:13px;padding:10px 6px;font-weight:700;border:1px solid transparent}
.segmented button[aria-pressed="true"]{background:linear-gradient(140deg,#ffffffee,#e4f2ff91);color:#3576a6;border-color:#ffffffbd;box-shadow:inset 0 1px 4px #fff,0 2px 8px #416f9020}
.settings{scrollbar-width:thin;scrollbar-color:#8eb4d1 transparent;overscroll-behavior:contain}
.result-distance{display:flex;justify-content:center;align-items:center;gap:12px;background:#ffffff40;border-radius:16px;padding:10px;margin-top:10px}
.result-distance span{font-size:8px;letter-spacing:1.5px;color:#6d89a3}
.result-distance strong{font-size:19px;color:#3e80b4}
#error-help{font-size:12px;line-height:1.6;max-width:290px;text-align:center}
#error-detail{user-select:text;white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;color:#294f73;max-height:130px;overflow:auto;max-width:85%;background:#ffffff40;padding:12px;border-radius:12px}
#reload{max-width:240px}
@media(max-height:680px){.settings{padding-top:20px}.choice-setting{padding:11px 0}.choice-title{margin-bottom:8px}.segmented button{padding:8px 6px}.panel-heading{margin-bottom:15px}}
@media(max-height:450px){.edition{font-size:6px;letter-spacing:.8px;max-width:100px}.home-top{left:13px;right:13px}.icon-button{width:36px;height:36px}.icon-button svg{width:20px;height:20px}.hero{top:11%}.hero-bird{width:48%;margin-bottom:-8px}.logo-flappy{font-size:33px;-webkit-text-stroke-width:3px}.logo-sky{font-size:42px;-webkit-text-stroke-width:3px}.tagline{font-size:8px;margin-top:15px}.home-actions{top:65%}.play-button{height:48px;font-size:19px;gap:12px}.play-button svg{width:25px;height:28px}.control-hint{font-size:7px;margin-top:10px}.home-bottom{bottom:10px}.record-pill{padding:5px 14px;gap:7px}.record-pill strong{font-size:15px}.small-label{font-size:5px}.record-pill svg{width:18px;height:18px}.record-pill small{font-size:8px}.ready-card{padding:15px;max-width:90%;transform:translateY(30px)}.ready-card h1{font-size:21px}.ready-card p{font-size:11px}.ready-card span{font-size:7px}}


#game[data-modal='settings-panel'] .fps-diagnostics{visibility:hidden}

/* Character appearances: reuse the existing modal and glass material. */
.home-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px}
.home-top .edition{max-width:none;min-width:0;text-align:center;font-size:6px;letter-spacing:1px;line-height:1.9}
.skins-open{display:flex;align-items:center;justify-content:center;gap:7px;width:100px;height:52px;border-radius:26px;padding:0 11px;font-size:12px;font-weight:800}
.skins-open svg{width:23px;height:23px;flex-shrink:0;filter:drop-shadow(0 2px 2px #234f8d40)}
.hero-bird{aspect-ratio:6/5;object-fit:contain}
.skins-panel{text-align:left;animation:skin-panel-in .18s ease-out}
.skins-panel .panel-heading{gap:12px}
.skins-panel .panel-heading h1{margin-top:7px}
.skin-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:3px}
.skin-card{position:relative;min-width:0;border:1.5px solid #ffffff90;border-radius:24px;padding:13px 9px 10px;background:linear-gradient(145deg,#ffffff6b,#d7ebfb38);text-align:center;cursor:pointer;box-shadow:inset 0 1px 4px #fff9,0 4px 12px #517a9712;transition:border-color .15s,box-shadow .15s,background .15s}
.skin-card[data-selected="true"]{border-color:#8acdf8;background:linear-gradient(145deg,#fff9,#c9e9ff9e);box-shadow:inset 0 1px 5px #fff,0 0 0 2px #ffffffb0,0 5px 16px #5ca4d02b}
.skin-card[data-available="false"]{cursor:default;opacity:.66}
.skin-preview{display:block;width:100%;height:112px;object-fit:contain;filter:drop-shadow(0 5px 5px #3a688e22);pointer-events:none}
.skin-card h2{font-size:12px;letter-spacing:-.2px;margin:13px 0;min-height:16px;overflow-wrap:anywhere}
.skin-select{width:100%;min-height:38px;border-radius:22px;font-size:11px;font-weight:800;color:#457596;background:#ffffff57;box-shadow:inset 0 1px 3px #fff,0 3px 8px #426b8d15}
.skin-card[data-selected="true"] .skin-select{color:#fff;background:linear-gradient(145deg,#8bd5ff,#76afe8);text-shadow:0 1px 3px #3e73a866}
.skin-select:disabled{cursor:default;filter:none}
.skin-check{position:absolute;right:9px;top:9px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#ffffff70;color:#6da3c8;border:1px solid #ffffffb0}
.skin-check svg{width:12px;height:12px;opacity:0}
.skin-card[data-selected="true"] .skin-check{background:#6cb7e7;color:#fff}
.skin-card[data-selected="true"] .skin-check svg{opacity:1}
.skin-warning{font-size:11px!important;background:#fff7;border-radius:14px;padding:10px;line-height:1.6}
#skin-diagnostics{font-size:10px;color:#66819a;margin-top:12px;user-select:text}
#skin-errors{overflow-wrap:anywhere;font-size:10px}
@keyframes skin-panel-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
#game[data-reduced-motion="true"] .skins-panel{animation:none}
@media(max-height:680px){.skins-open{height:44px;width:96px}.skin-preview{height:96px}.skin-cards{gap:9px}}
@media(max-height:450px){.skins-open{height:36px;width:89px;font-size:10px}.skins-open svg{width:19px;height:19px}.home-top{grid-template-columns:auto 1fr auto}.home-top .edition{visibility:hidden}.skin-cards{grid-template-columns:1fr}.skin-preview{height:88px}}


/* Compact profile/settings and functional HUD. */
.home-top{display:flex;align-items:center;justify-content:space-between;gap:20px}
.profile-open{display:flex;align-items:center;justify-content:center;gap:7px;width:106px;height:52px;border-radius:26px;padding:0 10px;font-size:12px;font-weight:800}
.profile-open svg{width:22px;height:22px;flex-shrink:0}
.profile-panel{text-align:center}
.profile-avatar{width:84px;height:84px;margin:8px auto 14px;border-radius:50%;border:2px solid #fff;background:linear-gradient(145deg,#d4f0ff,#adcae4);box-shadow:0 5px 18px #456d8a20;overflow:hidden;display:grid;place-items:center}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
#avatar-fallback{color:#fff}#avatar-fallback svg{width:44px;height:44px}
#profile-name{font-size:21px;margin:9px 0 3px;overflow-wrap:anywhere;line-height:1.3}
#profile-username{font-size:12px;color:#7090a7;margin:0 0 18px}
.profile-stats{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:22px 0 8px}
.profile-stats>div{min-width:0;background:#ffffff49;border:1px solid #fff9;border-radius:22px;padding:15px 10px 12px;display:flex;flex-direction:column;align-items:center;gap:7px}
.profile-stats svg,.profile-stats img{width:31px;height:31px;color:#d5a342;object-fit:contain}
.profile-stats span{font-size:9px;line-height:1.5;color:#6a87a0;min-height:27px;display:grid;place-items:center}
.profile-stats strong{font-size:30px;color:#3e80b4;overflow-wrap:anywhere;max-width:100%;line-height:1.1}
.profile-stats small{font-size:10px;color:#6c8ba4}
.profile-settings{display:flex;align-items:center;justify-content:center;gap:10px}
.profile-settings svg{width:20px;height:20px}
.settings-nav{display:flex;align-items:center;gap:14px;text-align:left;width:100%;min-height:68px;padding:12px 18px;border-radius:23px;color:#416e94;font-size:17px;font-weight:800;margin-top:14px;background:linear-gradient(140deg,#ffffffb5,#e4eff860)}
.settings-nav>svg{width:26px;height:26px;flex-shrink:0;color:#5796c3}.settings-nav>span:last-child{margin-left:auto;font-size:26px;color:#7a9bb3}
.settings-back{display:block;padding:0 0 15px!important;font-weight:700;margin:0;color:#5581a5!important}
.settings-page .choice-setting:first-of-type{border-top:0}
.hud-left,.hud-right{display:flex;flex-direction:column;align-items:center;gap:8px;flex-shrink:0;width:52px}
.hud .fps-diagnostics{position:static;transform:none;left:auto;right:auto;bottom:auto;top:auto;z-index:auto;max-width:none;width:max-content;padding:2px 5px;border:0;border-radius:7px;background:#ffffff26;box-shadow:none;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);font:600 11px/1.4 "Trebuchet MS",Arial,sans-serif;white-space:nowrap;pointer-events:none;text-align:center;text-shadow:0 1px 3px #315576}
.run-rewards{display:flex;align-items:center;justify-content:center;gap:1px;max-width:62px;font-size:12px;font-weight:800;line-height:1.4;text-shadow:0 1px 4px #315576}
.run-rewards img{width:25px;height:25px;object-fit:contain}
.hud-distance{margin-top:7px}
.result-rewards{display:flex;align-items:center;justify-content:center;gap:12px;padding-top:15px;font-size:12px;color:#5f7f99}
.result-rewards strong{font-size:22px;color:#b48b3d}
@media(max-height:680px){.profile-open{height:44px;width:101px;font-size:11px}.hud-left,.hud-right{width:44px}.profile-avatar{width:68px;height:68px}.profile-stats{margin-top:17px}.profile-stats>div{padding:11px 8px}.settings-nav{min-height:60px}}
@media(max-height:450px){.profile-open{height:36px;width:88px;font-size:10px}.profile-open svg{width:18px;height:18px}.hud-left,.hud-right{width:36px}.hud .fps-diagnostics{font-size:10px;padding:2px}.run-rewards{font-size:10px}.run-rewards img{width:20px;height:20px}.profile-avatar{width:54px;height:54px;margin-bottom:7px}.profile-stats{margin:12px 0}.profile-stats>div{padding:9px 6px}.profile-stats strong{font-size:25px}.profile-stats svg,.profile-stats img{width:24px;height:24px}.profile-panel .primary{margin-top:6px}}


/* Release 1.0: transforms only, with one shared reaction for all skins. */
.hero-bird{cursor:pointer;touch-action:manipulation;animation:none;transform:translateY(var(--hero-y,0px)) rotate(var(--hero-angle,-3deg)) scale(var(--hero-scale,1));will-change:auto}
.hero-bird[data-reacting="true"]{will-change:transform}
.hero-bird:focus-visible{outline:2px solid #fff9;outline-offset:-10px;border-radius:45%}
.home[data-launching="true"]{pointer-events:none;opacity:calc(1 - var(--launch-progress,0));transform:scale(calc(1 + var(--launch-progress,0)*.025));background-size:cover;background-position:center bottom;will-change:opacity,transform}
#game[data-transition="true"] .hud,#game[data-transition="true"] .ready{display:none!important}
#world{opacity:1}
.modal{padding-top:calc(20px + var(--safe-top));padding-bottom:calc(20px + var(--safe-bottom));padding-left:calc(20px + var(--safe-left));padding-right:calc(20px + var(--safe-right))}
.close-button{min-width:44px;min-height:44px;flex-shrink:0}
@media(max-width:360px){.home-top{left:calc(12px + var(--safe-left));right:calc(12px + var(--safe-right));gap:8px}.hud{padding-left:calc(12px + var(--safe-left));padding-right:calc(12px + var(--safe-right))}.score-wrap #score{font-size:48px}}
@media(max-height:450px){.icon-button,.skins-open,.profile-open{min-height:44px}.home-top{top:calc(8px + var(--safe-top))}}
@supports not (backdrop-filter:blur(1px)){.glass{background-color:#c8e4f0d9}.modal{background:#17375289}}

#world{opacity:var(--world-opacity,1)}
#game{height:min(100dvh,var(--tg-viewport-height,100dvh));width:min(100vw,calc(min(100dvh,var(--tg-viewport-height,100dvh)) * .56),520px)}
