/* SKYLINE RUN 1.0 · Premium menu only. The game canvas, camera, physics and controls are unchanged. */
.overlay.hgOverlay{background:linear-gradient(120deg,#011123d5,#041426ad 62%,#06152bd4);backdrop-filter:blur(7px);overflow:hidden;align-items:center;justify-items:center;padding:calc(env(safe-area-inset-top,0px) + 51px) calc(env(safe-area-inset-right,0px) + 13px) calc(env(safe-area-inset-bottom,0px) + 10px) calc(env(safe-area-inset-left,0px) + 13px)}
.modal.hgPolished{box-sizing:border-box;position:relative;display:block;overflow:hidden;isolation:isolate;filter:none;padding:0;margin:auto;width:min(1190px,100%);height:min(570px,100%);min-width:0;max-width:none;max-height:100%;border-radius:clamp(18px,2.6vw,30px);border:1px solid #72dff5dd;background:linear-gradient(110deg,#03162af0 4%,#072d48e9 43%,#03132be8 100%),url('assets/seattle_scene.webp') center 52%/cover no-repeat;box-shadow:inset 0 0 0 2px #b6faff23,inset 0 0 70px #0fbdd51a,0 0 0 5px #08c7f80d,0 0 25px #04d5ff5e,0 18px 55px #010b18db;color:#f4fdff;}
.hgPolished:before{content:'';position:absolute;inset:0 0 auto;height:3px;z-index:4;pointer-events:none;background:linear-gradient(90deg,transparent,#63e6ff 18%,#c4ffbb 56%,#00a9ea 85%,transparent);box-shadow:0 0 20px #00e7ff8c}
.hgPolished:after{content:'';position:absolute;inset:7px;border:1px solid #9de8ff1f;border-radius:inherit;pointer-events:none;z-index:4}
.hgShell{position:relative;width:100%;height:100%;min-height:0;overflow:hidden}
.hgAmbient{position:absolute;inset:0;overflow:hidden;pointer-events:none;background:radial-gradient(ellipse at 18% 74%,#16809f50,transparent 39%),linear-gradient(120deg,#02152880,#05243b26 70%,#0413234c);z-index:0}
.hgAmbient:before{content:'';position:absolute;inset:-5%;background:url('assets/seattle_scene.webp') 50% 54%/cover no-repeat;opacity:.14;filter:saturate(1.5) blur(1px);animation:hgParallax 23s ease-in-out infinite alternate}
.hgAmbient:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#061b31a0,transparent 55%,#00102788);pointer-events:none}
.hgGlow{position:absolute;border-radius:50%;filter:blur(20px);opacity:.42;animation:hgGlow 5s ease-in-out infinite alternate}
.hgGlow.one{width:38%;height:36%;left:5%;top:52%;background:#06afed44}
.hgGlow.two{width:28%;height:15%;right:-7%;top:5%;background:#a2fbb322;animation-delay:-2.4s}
.hgLeaf{position:absolute;top:-18px;width:11px;height:8px;border-radius:70% 2px 70% 2px;opacity:0;background:#ff9d63;z-index:1;animation:hgLeafDrift 10s linear infinite}
.hgLeaf.a{left:7%;animation-delay:-3s}.hgLeaf.b{left:48%;background:#ffd370;animation-delay:-5.5s}.hgLeaf.c{left:89%;background:#e77a8a;animation-delay:-8s}
.hgMenuRoot{position:relative;z-index:2;height:100%;width:100%;display:grid;grid-template-columns:minmax(0,34%) minmax(0,66%);gap:0;align-items:stretch;padding:clamp(11px,2.7vh,24px) clamp(13px,2.9vw,38px) clamp(10px,2vh,20px)}
.hgMascot{position:relative;min-height:0;isolation:isolate;overflow:visible;display:flex;flex-direction:column;align-items:center;justify-content:end}
.hgMascot:before{content:'';position:absolute;left:5%;right:1%;bottom:5%;height:24%;border-radius:50%;background:radial-gradient(ellipse,#12d8fa42,transparent 70%);filter:blur(17px)}
.hgOrbit{position:absolute;bottom:2%;width:72%;height:11%;border:2px solid #48efffd0;border-radius:50%;box-shadow:0 0 13px #19effa86,inset 0 0 13px #19effa6a;transform:rotate(-5deg);animation:hgOrbit 3.5s ease-in-out infinite alternate}
.hgPlatform{position:absolute;bottom:1%;width:86%;height:6px;border-radius:100%;background:linear-gradient(90deg,transparent,#3efffd,#9affd5,#00bcfd,transparent);box-shadow:0 0 16px #26fbff,0 0 34px #00efff88}
.hgActor{position:absolute;z-index:2;bottom:4%;left:50%;height:min(94%,390px);width:min(100%,340px);transform:translateX(-50%);transform-origin:50% 97%;animation:hgBreathe 3s ease-in-out infinite}
.hgPose{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom;opacity:0;transition:opacity .18s ease;pointer-events:none;filter:drop-shadow(0 7px 10px #001422d0) drop-shadow(0 0 8px #20eaff35)}
.hgActor[data-pose="idle"] .hgPose-idle,.hgActor[data-pose="happy"] .hgPose-happy,.hgActor[data-pose="wave"] .hgPose-wave,.hgActor[data-pose="run"] .hgPose-run{opacity:1}
.hgActor[data-pose="run"]{animation:hgEnterRun .98s ease-out both,hgBreathe .32s ease-in-out infinite .98s}
.hgActor[data-pose="wave"]{animation:hgWave .65s ease-in-out infinite alternate}
.hgActor[data-pose="happy"]{animation:hgHappy .25s ease-in-out infinite alternate}
.hgGreeting{position:absolute;left:6%;top:18%;border:1px solid #87f6ff9c;background:#063c53d9;padding:6px 12px;border-radius:18px 18px 18px 4px;color:#d1ffec;font-size:clamp(10px,1.3vw,15px);font-weight:900;box-shadow:0 0 19px #05cafa47;animation:hgGreeting 7s ease-in-out infinite;pointer-events:none}
.hgGreeting span{color:#dcff7a}
.hgContent{position:relative;min-width:0;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:clamp(5px,1.4vh,14px);padding:clamp(4px,1.8vh,12px) 2% clamp(2px,.7vh,6px) 0;text-align:left}
.hgEyebrow{display:flex;align-items:center;gap:9px;font-weight:950;letter-spacing:.24em;color:#d8ff93;font-size:clamp(9px,1vw,13px)}
.hgDot{width:7px;height:7px;border-radius:50%;background:#84fff8;box-shadow:0 0 13px #70efff;animation:hgDotPulse 2s ease-in-out infinite}
.hgLine{height:1px;flex:1;background:linear-gradient(90deg,#c8f69a80,transparent)}
.hgTitle{margin:0!important;line-height:.86!important;letter-spacing:-.062em!important;white-space:nowrap;font-size:clamp(41px,5.8vw,84px)!important;font-weight:1000;text-shadow:0 5px 13px #0009}
.hgTitle em{font-style:normal;background:linear-gradient(180deg,#99fffc 8%,#32d9ff 54%,#00a7ed 100%);background-clip:text;-webkit-background-clip:text;color:transparent}
.hgTagline{font-size:clamp(11px,1.45vw,20px);font-weight:750;color:#e9f6ff;margin:0;line-height:1.24}
.hgQuick,.hgWarnings{display:flex;gap:clamp(4px,.7vw,9px);flex-wrap:wrap;align-items:center;margin:0}
.hgQuick span{border:1px solid #70d4f5a2;border-radius:12px;background:linear-gradient(180deg,#114065c9,#082440d9);box-shadow:inset 0 0 14px #03dfff13;padding:clamp(4px,.7vw,9px) clamp(5px,.9vw,12px);font-size:clamp(9px,.92vw,13px);font-weight:900;white-space:nowrap;color:#f3ffff;display:flex;align-items:center;gap:7px}
.hgSymbol{color:#a1f7ff;letter-spacing:-.05em;font-size:1.2em}
.hgWarnings span{font-size:clamp(9px,.89vw,12px);font-weight:850;padding:clamp(3px,.47vw,7px) clamp(6px,.7vw,10px);border:1px solid #7fe6ff80;background:#082d40db;border-radius:999px;white-space:nowrap;display:flex;gap:5px}
.hgWarnings strong{font-weight:700;color:#dcf5fc}
.hgWarnings .hgSafe{color:#7ffbe9}.hgWarnings .hgDanger{border-color:#f37dba;color:#ff9ec5;background:#371a39da}.hgWarnings .hgPit{border-color:#e8c276;color:#ffe08e;background:#352d1dcb}
.hgStartSlot{display:flex;width:100%;margin-top:clamp(0px,.9vh,10px)}
.hgPolished .hgStartButton{width:100%;min-width:0;min-height:clamp(48px,9vh,78px);padding:7px 18px;border:2px solid #8bffec;border-radius:17px;background:linear-gradient(107deg,#48dffa,#73ffd6 62%,#baff88);color:#04233b;font-weight:1000;font-size:clamp(16px,2.1vw,26px);letter-spacing:.02em;box-shadow:inset 0 2px 1px #ffffff77,0 0 0 4px #23f8e517,0 0 27px #4affd957,0 7px 24px #001523;animation:hgButtonBreathe 2.4s ease-in-out infinite;cursor:pointer;touch-action:manipulation}
.hgPolished .hgStartButton:hover,.hgPolished .hgStartButton:focus-visible{outline:2px solid #effffb;outline-offset:2px;filter:brightness(1.08)}
.hgStartButton span{font-size:.98em;margin-right:9px}
.hgLinks{display:flex;gap:9px;min-height:37px}
.hgLinks>div,.hgLinks>button{flex:1;min-width:0}
.hgLinks>div{display:flex}
.hgLinks button{display:flex;gap:8px;align-items:center;justify-content:center;width:100%;min-width:0;min-height:35px;padding:5px 10px;border-radius:12px;border:1px solid #6bdaf2b3;background:linear-gradient(180deg,#145271dd,#09263edc);box-shadow:inset 0 0 13px #0deaff19;color:#eeffff;font-size:clamp(10px,1.3vw,15px);font-weight:900;letter-spacing:.03em;cursor:pointer;touch-action:manipulation}
.hgLinks button:hover,.hgLinks button:focus-visible{outline:2px solid #c9ffbc;outline-offset:1px;background:#166589}
.hgLinks .installCTA[hidden]{display:none!important}
.hgFootnote{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#adcfde;font-size:clamp(8px,.79vw,11px);font-weight:800;letter-spacing:.09em;margin-top:clamp(1px,.4vh,5px)}
.hgVersion{color:#b3ffd0}
.hgHelp[hidden]{display:none!important}
.hgHelp{position:absolute;inset:4%;display:flex;align-items:center;justify-content:center;z-index:20;border:1px solid #8aeaff;border-radius:18px;background:#031321f5;backdrop-filter:blur(9px);padding:14px}
.hgHelpCard{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;max-width:520px}
.hgHelpCard strong{font-size:clamp(18px,2.4vw,25px);color:#c2fff3}
.hgHelpCard p{font-size:clamp(11px,1.5vw,16px);color:#eefaff;line-height:1.4;margin:0}
.hgHelpCard button{min-height:38px;background:#a9ffe3;color:#052537;border:0;border-radius:11px;font-weight:1000;padding:8px 22px;touch-action:manipulation}
.overlay.hidden .hgActor,.overlay.hidden .hgLeaf,.overlay.hidden .hgGlow,.overlay.hidden .hgOrbit{animation-play-state:paused}
@keyframes hgEnterRun{from{opacity:.65;transform:translateX(calc(-50% - 70px)) translateY(0)}to{opacity:1;transform:translateX(-50%) translateY(0)}}
@keyframes hgBreathe{0%,100%{transform:translateX(-50%) translateY(0) scale(1)}50%{transform:translateX(-50%) translateY(-3px) scale(1.007)}}
@keyframes hgWave{from{transform:translateX(-50%) rotate(-2deg) translateY(-3px)}to{transform:translateX(-50%) rotate(2deg) translateY(0)}}
@keyframes hgHappy{from{transform:translateX(-50%) translateY(0)}to{transform:translateX(-50%) translateY(-4px)}}
@keyframes hgOrbit{from{opacity:.4;transform:scaleX(.9) rotate(-5deg)}to{opacity:.9;transform:scaleX(1.08) rotate(3deg)}}
@keyframes hgGreeting{0%,12%,80%,100%{opacity:0;transform:translateY(8px)}20%,67%{opacity:1;transform:translateY(0)}}
@keyframes hgButtonBreathe{0%,100%{box-shadow:0 0 0 4px #23f8e517,0 0 17px #4affd947}50%{box-shadow:0 0 0 5px #23f8e51d,0 0 27px #4affd979}}
@keyframes hgParallax{from{transform:translateX(-8px) scale(1.035)}to{transform:translateX(8px) scale(1.07)}}
@keyframes hgGlow{from{opacity:.3}to{opacity:.65}}
@keyframes hgDotPulse{from{opacity:.35}to{opacity:1}}
@keyframes hgLeafDrift{0%{opacity:0;transform:translate(0,-14px) rotate(0)}12%{opacity:.65}88%{opacity:.6}100%{opacity:0;transform:translate(100px,590px) rotate(630deg)}}
@media(max-width:980px){.modal.hgPolished{width:100%;height:100%}.hgMenuRoot{grid-template-columns:30% 70%;padding:12px 16px 10px}.hgTitle{font-size:clamp(35px,6.8vw,70px)!important}.hgActor{height:min(90%,320px)}.hgContent{gap:6px}.hgGreeting{left:0}}
@media(max-height:480px) and (orientation:landscape){
 .overlay.hgOverlay{padding:calc(env(safe-area-inset-top,0px) + 47px) calc(env(safe-area-inset-right,0px) + 8px) calc(env(safe-area-inset-bottom,0px) + 4px) calc(env(safe-area-inset-left,0px) + 8px)}
 .modal.hgPolished{border-radius:15px;height:100%;width:100%}
 .hgMenuRoot{grid-template-columns:30% 70%;padding:6px 10px 5px}
 .hgContent{gap:clamp(3px,1vh,6px);padding:2px 2% 0 0}
 .hgEyebrow{font-size:8px;letter-spacing:.14em}.hgTitle{font-size:clamp(30px,5vw,53px)!important;line-height:.9!important}
 .hgTagline{font-size:clamp(10px,1.45vw,14px)}
 .hgQuick span{font-size:9px;padding:3px 6px;border-radius:7px;gap:4px}
 .hgWarnings span{font-size:8px;padding:3px 6px}
 .hgWarnings strong{display:none}
 .hgPolished .hgStartButton{min-height:39px;font-size:clamp(13px,2.1vw,20px);border-radius:11px;padding:4px 9px}
 .hgLinks{min-height:28px;gap:5px}.hgLinks button{min-height:28px;font-size:10px;border-radius:8px}
 .hgFootnote{font-size:8px}.hgActor{height:95%;width:100%}.hgGreeting{font-size:9px;padding:4px 7px;top:15%}
}
@media(max-width:700px) and (orientation:landscape){.hgMenuRoot{grid-template-columns:29% 71%}.hgTitle{font-size:clamp(26px,5vw,36px)!important}.hgQuick,.hgWarnings{gap:3px}.hgQuick span{font-size:8px;padding:2px 4px}.hgWarnings span{font-size:7px;padding:2px 4px}.hgEyebrow{font-size:7px}.hgFootnote{display:none}}
@media(orientation:portrait){.overlay.hgOverlay{padding:calc(env(safe-area-inset-top,0px) + 58px) 9px 9px}.modal.hgPolished{height:min(68%,470px);width:100%;border-radius:17px}.hgMenuRoot{grid-template-columns:29% 71%;padding:12px 9px}.hgActor{height:64%;bottom:10%}.hgTitle{font-size:clamp(25px,6vw,46px)!important}.hgEyebrow{font-size:8px;letter-spacing:.1em}.hgContent{gap:5px}.hgQuick span,.hgWarnings span{font-size:8px;padding:4px 5px}.hgWarnings strong{display:none}.hgPolished .hgStartButton{min-height:43px;font-size:clamp(12px,3.2vw,18px)}.hgLinks button{font-size:9px;min-height:29px}.hgTagline{font-size:10px}.hgGreeting{display:none}}
@media(prefers-reduced-motion:reduce){.hgActor,.hgOrbit,.hgGreeting,.hgLeaf,.hgGlow,.hgAmbient:before,.hgPolished .hgStartButton,.hgDot{animation:none!important}.hgGreeting,.hgLeaf{display:none!important}.hgPose{transition:none!important}}

/* 1.9.20: visible story replay controls in the first menu. */
.hgStoryActions{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 8px;}
.hgStoryReplay,.hgStoryBrand{flex:1 1 195px;min-height:42px;max-width:100%;border-radius:12px;border:1px solid rgba(120,224,255,.42);background:rgba(3,23,45,.72);color:#e8fbff;font:700 13px/1.25 system-ui,sans-serif;letter-spacing:.03em;cursor:pointer;padding:9px 10px;}
.hgStoryReplay:hover,.hgStoryBrand:hover{border-color:#b8f4ff;background:rgba(28,82,105,.78);}
.hgStoryReplay:focus-visible,.hgStoryBrand:focus-visible{outline:3px solid #d9faff;outline-offset:2px;}
.hgStoryCinemas{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;}
.hgStoryCinemas button{flex:1 1 165px;min-height:36px;max-width:100%;font-size:12px;line-height:1.2;}

/* Skyline Run 1.9.24: focused four-option main menu, account/settings subpanel. */
.hgMainActions{display:flex;flex-direction:column;gap:clamp(5px,1.25vh,10px)}
.hgMainActions .hgStartSlot,.hgContinueSlot{margin:0;width:100%;min-height:0}
.hgContinueSlot>button,.hgAuxActions button{width:100%;min-height:clamp(34px,6.6vh,48px);border-radius:10px;border:1px solid #77dffc80;background:#0a3049d8;color:#e9feff;font:900 clamp(11px,1.35vw,15px) system-ui;cursor:pointer}
.hgContinueSlot>button:disabled{opacity:.43;cursor:not-allowed}
.hgAuxActions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.hgAuxActions>div{min-width:0}
.hgFootActions{display:flex;gap:8px;align-items:center}
.hgFootActions button{border:1px solid #58b2d388;border-radius:9px;background:#04293a;color:#e3faff;min-height:28px;flex:1;font-size:11px;font-weight:800;cursor:pointer}
.hgFootActions>div{flex:1}
.hgSubpanel[hidden]{display:none!important}
.hgSubpanel{position:absolute;inset:4%;border:1px solid #78ddff;border-radius:18px;background:#061729f5;z-index:30;backdrop-filter:blur(12px);display:flex;align-items:center;flex-direction:column;justify-content:center;padding:clamp(12px,3vw,25px);overflow:auto;gap:10px;text-align:center}
.hgSubpanel h2{margin:0 0 8px;color:#82ecff;font-size:clamp(20px,3vw,34px)}
.hgSubpanel p{color:#d7eaf4;margin:8px auto;max-width:640px;font-size:clamp(12px,1.35vw,16px)}
.hgSubpanel #hgSubpanelContent{max-width:650px;width:100%}
.hgSubpanel button{display:block;width:100%;max-width:470px;margin:7px auto;border-radius:10px;border:1px solid #60d5e3;background:#0b3b53;color:#fff;padding:10px 14px;font-weight:850;cursor:pointer}
.hgSubpanel button:disabled{opacity:.5;cursor:not-allowed}
.hgSubpanel #hgBackOptions{max-width:200px;background:#b3ffe6;color:#042737}
.hgPanelEyebrow{color:#d9fa92;font-size:11px;font-weight:900;letter-spacing:.2em}
.hgProviderList{display:grid;grid-template-columns:1fr 1fr;gap:4px}
@media(max-height:480px) and (orientation:landscape){.hgMainActions{gap:4px}.hgContinueSlot>button,.hgAuxActions button{min-height:29px;font-size:10px}.hgAuxActions{gap:5px}.hgSubpanel{inset:2%;gap:4px;padding:8px}.hgSubpanel p{font-size:11px;margin:3px auto}.hgSubpanel button{margin:3px auto;padding:6px 9px}.hgSubpanel h2{font-size:21px;margin:0 0 4px}}

/* v1.9.51: brand prefix fits the existing single-line title on mobile. */
.hgTitlePrefix{font-size:.62em;letter-spacing:-.045em;color:#f4fbff}
.hgTitle{font-size:clamp(35px,4.85vw,70px)!important}
@media(max-width:980px){.hgTitle{font-size:clamp(29px,5.5vw,58px)!important}}
@media(max-height:480px){.hgTitle{font-size:clamp(25px,4.2vw,45px)!important}}
@media(max-width:700px) and (orientation:landscape){.hgTitle{font-size:clamp(22px,4.2vw,30px)!important}}
@media(orientation:portrait){.hgTitle{font-size:clamp(18px,4.7vw,37px)!important}}
