/* Free Climb launch only: live controls over the approved scenic composition. */
#overlay:has(#home:not([hidden]) #menu-setup[data-mode="free"]:not([hidden])){padding:0;overflow:hidden}
#home:has(#menu-setup[data-mode="free"]:not([hidden])){width:100%;max-width:none;height:100dvh;padding:0;margin:0;border:0;border-radius:0;overflow:hidden}
#home #menu-setup[data-mode="free"]{container-type:inline-size;position:relative;width:100%;height:100dvh;min-height:0;max-height:none;padding:0;margin:0;overflow:hidden;background:url('menu-stage-night.png') center/cover;border:0;border-radius:0;isolation:isolate}
#menu-setup[data-mode="free"] .story-approved-surface{display:contents}
#menu-setup[data-mode="free"]::before{content:'';position:absolute;inset:0 0 auto;height:24%;background:url('menu-free-approved.png') center top/100% auto no-repeat;pointer-events:none;z-index:-1}
#menu-setup[data-mode="free"] .premium-top{inset:0;position:absolute;width:100%;height:100%;pointer-events:none}
#menu-setup[data-mode="free"] .premium-logo,#menu-setup[data-mode="free"] #setup-title,#menu-setup[data-mode="free"] #setup-subtitle{opacity:0;pointer-events:none}
#menu-setup[data-mode="free"] #setup-settings{position:absolute;top:1.2%;right:3.3%;width:10.8%;height:5%;min-height:40px;padding:0;opacity:0;pointer-events:auto}
#menu-setup[data-mode="free"] #menu-setup-back{position:absolute;top:91%;left:35%;width:30%;height:4%;min-height:36px;margin:0;font-size:24px;pointer-events:auto;background:#002650cc;border-color:#79ddff}
#menu-setup[data-mode="free"] #free-climb-feature{left:4%;top:25%;width:92%;height:27%;display:grid;grid-template-columns:51% 48%;gap:1%;padding:0;margin:0}
#menu-setup[data-mode="free"] #free-climb-art{height:100%;width:auto;aspect-ratio:3/4;justify-self:center;background-size:400% 200%;background-repeat:no-repeat;filter:drop-shadow(0 3px 2px #00192a)}
#menu-setup[data-mode="free"] .free-stats{height:83%;width:100%;box-sizing:border-box;align-self:start;margin-top:3%;padding:3.1cqw 3cqw;border:1.5px solid #82eaff;border-radius:3.5cqw;background:linear-gradient(125deg,#003259eb,#00122efa);box-shadow:inset 0 0 5px #049af7,0 0 7px #14aeff;display:flex;flex-direction:column;text-align:left}
#menu-setup[data-mode="free"] .free-stats h2{font:950 5.7cqw/1.1 SkyArcade,system-ui;margin:0 0 3cqw;color:#fff1cb;text-transform:uppercase}
#menu-setup[data-mode="free"] .free-stats small{font:800 2.5cqw/1.2 system-ui;letter-spacing:.07em;color:#9ee6ff}
#menu-setup[data-mode="free"] .free-stats small::before{content:'♛';font-size:5cqw;margin-right:1cqw;color:#ffe04f;vertical-align:middle}
#menu-setup[data-mode="free"] .free-stats small:nth-of-type(2)::before{content:'◎';color:#28edff}
#menu-setup[data-mode="free"] .free-stats strong{font:950 6.1cqw/1.2 SkyArcade,system-ui;margin:.4cqw 0 1.8cqw;color:#fff0bd;text-align:center}
#menu-setup[data-mode="free"] #free-climb-best{padding-bottom:2cqw;border-bottom:1px solid #54c1e9}
#menu-setup[data-mode="free"] #free-climb-rank{font-size:4.5cqw;color:#d6f6ff;overflow-wrap:anywhere}
#menu-setup[data-mode="free"] .free-stats span{font:600 1.9cqw/1.2 system-ui;text-align:center;color:#bde6ff}
#home #menu-setup[data-mode="free"] .difficulty-control{position:absolute;top:54.2%;left:3.5%;right:auto;width:93%;height:13.4%;padding:2.5cqw;box-sizing:border-box;display:grid;grid-template-columns:1fr;grid-template-rows:20% 49% 25%;gap:3%;border:1.5px solid #4ccdff;border-radius:3.6cqw;background:linear-gradient(120deg,#003259f5,#001b35f5);box-shadow:0 0 7px #20caff}
#home #menu-setup[data-mode="free"] .difficulty-control>span{font:800 3cqw/1.2 system-ui;letter-spacing:.12em;text-align:left;color:#a2e8ff;align-self:center}
#home #menu-setup[data-mode="free"] #difficulty-pills{position:static;display:grid;grid-template-columns:repeat(3,1fr);grid-row:2;grid-column:1;gap:1.5cqw;width:100%;height:100%;padding:0;border:0;background:none}
#home #menu-setup[data-mode="free"] #difficulty-pills button{position:static;min-height:0;width:100%;height:100%;padding:0;border:1.5px solid #65c9ff;border-radius:2.7cqw;background:linear-gradient(#093a66,#052650);color:#dff6ff;font:850 3cqw/1 system-ui}
#home #menu-setup[data-mode="free"] #difficulty-pills #difficulty-expert{background:linear-gradient(#402669,#191839);border-color:#b678ef}
#home #menu-setup[data-mode="free"] #difficulty-pills button[aria-pressed="true"]{border-color:#ffeda3;background:linear-gradient(#4b421f,#171b23);color:#fff;box-shadow:0 0 8px #ffe274,inset 0 0 5px #ecbe45}
#home #menu-setup[data-mode="free"] #difficulty-note{grid-row:3;grid-column:1;font:500 2.75cqw/1.15 system-ui;text-align:center;margin:0;align-self:center;color:#d7edff}
#home #menu-setup[data-mode="free"] #play{position:absolute;top:68.8%;left:4%;width:92%;height:6.8%;min-height:44px;margin:0;padding:0;border:1.5px solid #fff6b4;border-radius:6cqw;background:linear-gradient(#fff478,#ffc21e);color:#031427;font:950 5cqw/1 SkyArcade,system-ui;box-shadow:0 0 8px #ffe27a}
#menu-setup[data-mode="free"] #play::after{content:' ➜'}
#menu-setup[data-mode="free"] #free-climb-actions{top:76.7%;left:4.5%;width:91%;height:4.9%;gap:2cqw;grid-template-columns:1fr 1fr}
#menu-setup[data-mode="free"] #free-climb-actions button{height:100%;min-height:40px;padding:0;border:1.5px solid #80eaff;border-radius:3cqw;background:linear-gradient(#062d53,#00172e);color:#fff;font:750 2.75cqw/1 system-ui;box-shadow:0 0 5px #09a8ff}
#menu-setup[data-mode="free"] .free-stats h2{margin-bottom:1.5cqw}
#menu-setup[data-mode="free"] .free-stats small::before{font-size:4cqw}
#menu-setup[data-mode="free"] .free-stats strong{margin:.3cqw 0 1cqw}
#menu-setup[data-mode="free"] #free-climb-rank{font-size:3.6cqw}
#menu-setup[data-mode="free"] #free-climb-rank[data-ranked="true"]{font-size:6.1cqw}
#menu-setup[data-mode="free"] .free-stats span{margin-top:auto}
#menu-setup[data-mode="free"] .difficulty-control>span{font-size:0!important}
#menu-setup[data-mode="free"] .difficulty-control>span::after{content:'CHOOSE DIFFICULTY';font:800 3cqw/1.2 system-ui}

/* The approved heading is taller than 24% on compact phones; keep the card below it. */
@media(max-height:700px){
 #menu-setup[data-mode="free"]::before{height:28%}
 #menu-setup[data-mode="free"] #free-climb-feature{top:28%;height:24%}
 #menu-setup[data-mode="free"] .free-stats{height:100%}
}
