@font-face{font-family:Game;src:local('Arial')}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#0b171d;color:#f3f7f1;font:14px Game,system-ui,sans-serif;overscroll-behavior:none}body{touch-action:none}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0;touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #c0ff70;outline-offset:3px}button:active{transform:scale(.97)}button:disabled{opacity:.4;cursor:default;transform:none}svg{width:24px;height:24px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#world{position:fixed;inset:0;width:100%;height:100%;touch-action:none}.hidden{display:none!important}.screen{position:absolute;inset:0}.home{max-width:520px;margin:auto;display:flex;flex-direction:column;padding:18px 24px 14px;overflow-y:auto;touch-action:pan-y;scrollbar-width:thin;background:linear-gradient(180deg,#0b171d24,#0b171d00 45%,#0b171de6 85%)}.topbar{display:flex;align-items:center;gap:10px;min-height:42px;z-index:1}.studio{font-size:11px;font-weight:800;letter-spacing:2px;flex:1}.studio span{display:block;color:#698288;font-size:7px;letter-spacing:1.7px;margin-top:5px;margin-left:14px}.status-dot{display:inline-block;width:6px;height:6px;background:#b9ff67;box-shadow:0 0 10px #a5ff6755;border-radius:50%;margin-right:8px}.wallet{display:flex;align-items:center;gap:7px;border:1px solid #314445;background:#16282c;border-radius:30px;padding:11px 14px;min-height:42px}.coin{color:#d0ff75}.wallet b{font-size:13px}.icon-btn{display:grid;place-items:center;background:#15262ccc;border:1px solid #2a3e42;border-radius:50%;min-width:44px;height:44px}.icon-btn svg{width:20px}.hero{position:relative;text-align:center;flex:1;min-height:265px;max-height:380px;padding-top:28px;display:flex;flex-direction:column;align-items:center;pointer-events:none}.eyebrow{font-size:9px;letter-spacing:2.4px;color:#b7d2cd;font-weight:700}.hero h1{font-size:clamp(46px,12vw,68px);line-height:1;letter-spacing:-4px;margin:12px 0 7px;font-weight:900;color:#f2f5e8;text-shadow:0 3px 20px #0003}.hero h1 span{color:#b9ff67;font-size:.68em;letter-spacing:-3px}.hero p{font-size:12px;color:#8ea6a8;margin:3px 0 0}.hero-orb{min-height:115px;flex:1;width:100%}.hero-caption{display:flex;align-items:center;gap:12px;font-size:8px;letter-spacing:2.8px;font-weight:700;color:#b0c3bd;margin-bottom:16px}.hairline{width:25px;height:1px;background:#506359}.launch-panel{border:1px solid #2c4143;background:#122329e8;border-radius:24px;padding:18px;box-shadow:0 16px 45px #0002}.section-label{display:flex;align-items:center;justify-content:space-between;letter-spacing:1.6px;font-size:9px;font-weight:800;color:#b7c8c7;margin-bottom:12px}.small-pill{font-size:8px;border:1px solid #3a5051;padding:3px 7px;border-radius:5px;color:#869b9e;letter-spacing:0}.modes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mode{border:1px solid #304547;background:#192d32;border-radius:14px;text-align:left;padding:12px 9px;color:#96acb1;min-height:92px;transition:background .2s}.mode svg{width:23px;height:23px;margin-bottom:10px}.mode b{display:block;font-size:12px}.mode small{display:block;font-size:8px;margin-top:4px;color:#779498}.mode.selected{border-color:#b9ff67;background:#b9ff6712;color:#c7ff87;box-shadow:inset 0 0 0 1px #b9ff6720}.mode.selected small{color:#bbd7a0}.arena-row{display:flex;align-items:center;justify-content:space-between;margin:10px 0 12px;color:#8ca4a7;font-size:9px;letter-spacing:1px}.arena-row button{background:transparent;font-size:11px;padding:10px 0 10px 14px;display:flex;align-items:center;gap:7px;color:#d3dfda;min-height:36px}.arena-row i{height:6px;width:6px;border-radius:50%;background:#b9ff67;display:block}.arena-row svg{height:13px;width:13px}.play-btn{background:#b9ff67;color:#183022;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:20px;min-height:57px;width:100%;font-size:13px;font-weight:900;letter-spacing:.8px;box-shadow:0 7px 25px #a8ff6018}.play-detail{color:#799197;font-size:9px;text-align:center;margin-top:12px}.home-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:16px 0 10px}.home-nav button{background:#112228bd;position:relative;border:1px solid #263c3f;border-radius:14px;padding:12px 4px;color:#c0cfcb;font-size:10px;display:flex;align-items:center;justify-content:center;gap:7px;flex-direction:column;min-height:67px}.home-nav svg{color:#92a9a7;width:20px;height:20px}.home-nav i{position:absolute;right:20px;top:10px;background:#c1ff71;width:5px;height:5px;border-radius:50%;display:none}.profile{display:flex;align-items:center;gap:10px;padding:6px 3px 0;min-height:45px}.level{width:30px;height:30px;border-radius:9px;border:1px solid #5e7753;background:#293b2b;color:#d1f8b0;display:grid;place-items:center;font-size:12px;font-weight:900}.profile>div:nth-child(2){flex:1}.profile strong{font-size:10px;letter-spacing:1px}.xp-track{height:3px;width:100%;background:#253a3c;margin-top:7px;border-radius:3px;overflow:hidden}.xp-track i{display:block;background:#b9ff67;width:0;height:100%}.profile>span{font-size:8px;color:#7c9599;white-space:nowrap;align-self:flex-end;padding-bottom:3px}
#hud{position:absolute;inset:0;pointer-events:none;padding:14px}.hud-top{display:flex;align-items:flex-start;gap:12px}.score-panel{padding:12px 15px;background:#0c191fdd;border:1px solid #355051;border-radius:18px;min-width:112px;backdrop-filter:blur(8px)}.score-panel>span{font-size:8px;letter-spacing:2px;color:#adc8bb}.score-panel strong{display:block;font-size:33px;font-weight:900;letter-spacing:-1px;margin:2px 0}.score-panel small{font-size:8px;color:#7d9b9c;text-transform:uppercase;letter-spacing:1px}.session-state{flex:1;padding-top:10px;text-align:center}.session-state>b{font-size:15px;letter-spacing:2px;text-shadow:0 2px 3px #000}.session-state>span{display:block;font-size:9px;color:#c6ff83;padding-top:8px;min-height:22px}.hud-top button{pointer-events:auto}.leaderboard{position:absolute;right:14px;top:77px;background:#0b191fd9;padding:11px;border:1px solid #2d4547;border-radius:14px;width:145px;font-size:9px}.board-heading{display:flex;justify-content:space-between;font-size:7px;letter-spacing:1px;color:#7c9a9f;margin-bottom:8px}.board-heading b{color:#b9ff67}.rank-line{display:flex;gap:6px;padding:4px 0;color:#9fb7b6}.rank-line b{flex:1;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-line.player{color:#caff8c}.rank-line>span:first-child{width:10px;color:#657e86}.rank-line>span:last-child{font-variant-numeric:tabular-nums}#myRank{border-top:1px solid #2c4345;margin-top:5px;padding-top:5px;font-size:8px;color:#caff8c}.controls{position:absolute;inset:auto 0 23px;height:140px;display:flex;align-items:center;justify-content:space-between;padding:0 20px}.actions{display:flex;gap:10px;align-items:flex-end;pointer-events:auto}.actions button{height:72px;width:72px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#183435da;border:1px solid #72b6a2;color:#d1ebda;box-shadow:0 6px 20px #0003;touch-action:none}.actions button#split{height:86px;width:86px;background:#b9ff67e8;color:#183022;border-color:#d8ffac}.actions svg{width:24px;height:24px}.actions b{font-size:8px;margin-top:3px;letter-spacing:.5px}.actions small{font-size:8px;margin-top:3px;opacity:.7}#stick{width:108px;height:108px;border-radius:50%;border:1px solid #8ebca530;background:#1a3d452d;display:grid;place-items:center;position:relative}#stick i{width:43px;height:43px;border-radius:50%;border:1px solid #a3cbbb5a;background:#71988e35}#stick span{position:absolute;bottom:-20px;font-size:7px;color:#8ba99a;letter-spacing:2px}#minimap{width:77px;height:77px;border:1px solid #52777966;border-radius:15px;background:#0a161bdd;position:absolute;bottom:6px;left:calc(50% - 38px)}.keyboard-hint{position:absolute;bottom:8px;width:100%;left:0;text-align:center;font-size:8px;color:#7d9f9c}.zone-warning{position:absolute;top:32%;left:50%;transform:translateX(-50%);padding:10px 16px;background:#7b2034df;border:1px solid #ff6683;border-radius:20px;font-size:10px;font-weight:bold;text-align:center;white-space:nowrap}
.overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#030d13ba;backdrop-filter:blur(12px);z-index:10;padding:16px;touch-action:pan-y}.dialog{width:100%;max-width:470px;max-height:94%;overflow:auto;background:#12252c;border:1px solid #345055;border-radius:25px;padding:23px;box-shadow:0 25px 100px #0006;scrollbar-width:thin}.dialog.wide{max-width:590px}.dialog-header{display:flex;align-items:center;gap:10px;margin-bottom:18px}.dialog-header>div{flex:1}.dialog h2{font-size:25px;letter-spacing:-.8px;margin:0 0 5px}.dialog .subtitle{font-size:11px;color:#94adb0;line-height:1.5;margin:0}.dialog-header .icon-btn{min-width:37px;height:37px}.dialog .eyebrow{margin:5px 0 12px;font-size:9px;color:#c0ff7a}.dialog button.secondary{min-height:45px;border-radius:12px;background:#243c42;border:1px solid #40565b;color:#d5e1da;font-weight:700;padding:10px 16px;width:100%;margin-top:10px;font-size:12px}.dialog .danger{color:#ffa3b2!important}.skin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.skin-card{position:relative;border:1px solid #3a4e54;border-radius:17px;background:#1a3038;padding:10px 5px;display:flex;align-items:center;flex-direction:column;min-height:136px}.skin-card.selected{border-color:#b9ff67;background:#b9ff6712}.skin-card canvas{width:70px;height:70px}.skin-card b{font-size:11px;margin:4px 0 7px}.skin-card span{font-size:9px;color:#b8d4c2}.skin-card .cost{color:#d5f79f}.skin-card.owned:after{content:'✓';position:absolute;top:8px;right:9px;font-size:10px;color:#b9ff67}.dialog-wallet{border:1px solid #3b5549;background:#253b30;border-radius:12px;color:#d2fba6;font-size:12px;padding:11px;margin-bottom:14px}.arena-list{display:grid;gap:9px}.arena-choice{display:flex;align-items:center;gap:13px;border-radius:15px;background:#1c333d;border:1px solid #38515b;padding:16px;text-align:left}.arena-choice>i{width:44px;height:44px;border-radius:50%;box-shadow:inset 0 0 20px #fff3}.arena-choice b{flex:1}.settings-list{display:grid;gap:14px}.setting{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.setting input,.setting select{background:#0c1c24;color:#e7f0e5;border:1px solid #3b555e;border-radius:9px;padding:11px;max-width:175px;min-height:44px}.toggle{background:#294249;border:1px solid #4c6565;border-radius:20px;min-height:37px;min-width:68px;font-size:10px;font-weight:800}.toggle.on{background:#b9ff67;color:#19351f;border-color:#b9ff67}.settings-note{font-size:10px;line-height:1.6;color:#8ba5aa;padding-top:16px;border-top:1px solid #32494e;margin-top:17px}.tutorial-step{display:flex;gap:14px;margin:18px 0}.tutorial-step>span{width:42px;height:42px;background:#2b4438;color:#c1ff80;display:grid;place-items:center;border-radius:12px;flex-shrink:0}.tutorial-step b{font-size:13px;display:block;margin:2px 0 5px}.tutorial-step p{font-size:11px;line-height:1.5;color:#9eb5b8;margin:0}.daily-card{padding:14px;border:1px solid #3c5357;background:#1a3138;border-radius:15px;margin-bottom:10px;display:grid;grid-template-columns:1fr auto;gap:8px}.daily-card b{font-size:12px}.daily-card small{font-size:10px;color:#96b5b5}.daily-card button{grid-column:2;grid-row:1/3;border-radius:10px;background:#b9ff67;color:#244025;font-size:10px;font-weight:800;padding:10px;min-width:77px}.progress-track{height:4px;background:#294650;border-radius:4px;overflow:hidden}.progress-track i{display:block;height:100%;background:#b9ff67}.subheading{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#a9c1bf;margin:25px 0 13px}.badge-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.badge{padding:12px;border:1px solid #314950;border-radius:12px;background:#172c35;opacity:.7}.badge.done{opacity:1;border-color:#61894e;background:#253d30}.badge b{font-size:10px;display:block;margin-bottom:7px}.badge small{font-size:9px;color:#91abaa}.badge.done small{color:#c6f99f}.record-tabs{display:flex;gap:7px;margin-bottom:15px}.record-tabs button{flex:1;padding:10px 4px;font-size:10px;background:#243b44;border:1px solid #3a545c;border-radius:9px}.record-tabs button.active{color:#d1ff9e;border-color:#b9ff67}.record{display:grid;grid-template-columns:24px 1fr auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #2b434c}.record>b{color:#b9ff67;font-size:12px}.record strong{font-size:21px}.record small{display:block;font-size:8px;color:#91adb4;margin-top:4px}.record>span:last-child{font-size:10px;color:#b8d1c2}.empty{text-align:center;padding:35px 20px;color:#9bb4bb;line-height:1.7;font-size:12px}.result-orb{display:block;width:100px;height:100px;margin:0 auto}.result-score{text-align:center;font-size:60px;font-weight:900;letter-spacing:-3px;margin:3px 0}.result-label{text-align:center;font-size:9px;letter-spacing:2px;color:#acc2be}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.result-stats>div{background:#1b333c;border:1px solid #35535a;border-radius:12px;padding:12px 5px;text-align:center}.result-stats strong{font-size:20px;display:block;color:#d1efb6}.result-stats span{display:block;font-size:8px;color:#99b5b7;margin-top:5px}.reward{text-align:center;padding:12px;background:#304429;border:1px solid #567a43;border-radius:12px;font-size:12px;color:#d6ff9c;margin-bottom:18px}.badge-earned{text-align:center;font-size:11px;color:#d1e8b3;margin:8px 0}.pause-icon{display:grid;place-items:center;width:65px;height:65px;border-radius:20px;background:#b9ff671c;color:#c6ff8b;margin:15px auto}.pause-icon svg{height:30px;width:30px}.pause-copy{text-align:center;font-size:12px;line-height:1.6;color:#94b0b7;margin-bottom:25px}#toast{position:fixed;left:50%;bottom:30%;transform:translate(-50%,15px);padding:13px 18px;max-width:85%;border-radius:15px;background:#ddffd3;color:#203d2b;font-size:12px;line-height:1.4;text-align:center;font-weight:700;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;z-index:30;box-shadow:0 8px 30px #0005}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(pointer:coarse){.keyboard-hint{display:none}.controls{bottom:22px}}@media(orientation:portrait){#minimap{bottom:137px;left:20px}}@media(max-width:370px){.home{padding:12px 15px}.hero{min-height:240px;padding-top:20px}.hero h1{font-size:48px}.launch-panel{padding:13px}.modes{gap:5px}.mode{padding:10px 7px}.hero p{font-size:10px}.controls{padding:0 12px}.actions{gap:7px}.actions button{width:62px;height:62px}.actions button#split{width:75px;height:75px}#stick{width:88px;height:88px}#minimap{width:63px;height:63px;left:14px;bottom:125px}.dialog{padding:18px}.skin-grid{gap:6px}.skin-card{min-height:125px}.skin-card canvas{width:60px;height:60px}}@media(max-height:740px) and (orientation:portrait){.home{padding-top:10px;padding-bottom:8px}.hero{min-height:224px;padding-top:15px}.hero-orb{min-height:95px}.hero h1{font-size:49px}.hero-caption{margin-bottom:12px}.mode{min-height:79px;padding-top:9px;padding-bottom:9px}.mode svg{margin-bottom:7px;width:20px;height:20px}.launch-panel{padding:13px}.home-nav{margin:11px 0 6px}.home-nav button{min-height:58px;padding:8px 3px}.arena-row{margin:4px 0 5px}.play-btn{min-height:50px}.play-detail{margin-top:9px}.profile{min-height:40px}}@media(orientation:landscape) and (max-height:650px){.home{max-width:900px;display:grid;grid-template-columns:1fr 1fr;gap:10px 25px;padding:12px 24px}.topbar{grid-column:1/3}.hero{grid-column:1;grid-row:2/4;min-height:240px;padding-top:5px;max-height:none}.hero h1{font-size:48px}.hero p{font-size:10px}.hero-orb{min-height:90px}.launch-panel{grid-column:2;grid-row:2;padding:12px}.mode{min-height:70px;padding:7px}.mode svg{margin-bottom:5px;width:17px;height:17px}.arena-row{margin:2px 0}.play-btn{min-height:44px}.play-detail{margin-top:7px;font-size:8px}.home-nav{grid-column:2;grid-row:3;margin:0}.home-nav button{min-height:45px;padding:6px;font-size:8px;flex-direction:row}.home-nav svg{width:15px}.profile{grid-column:1/3;padding-top:0;min-height:30px}.hero-caption{margin-bottom:0}.leaderboard{top:70px}.controls{height:100px;bottom:15px}.score-panel{min-width:100px;padding:8px 12px}.score-panel strong{font-size:26px}.actions button{height:64px;width:64px}.actions button#split{height:75px;width:75px}#stick{height:87px;width:87px}}

.hero h1{font-size:clamp(37px,10vw,53px)}.hero h1 span{font-size:.48em;letter-spacing:-1px;display:block;margin-top:6px}

/* Clear Play: choose a mode before decorative artwork, including on small phones. */
.home{padding-top:12px!important;scroll-padding-top:12px;padding-bottom:32px!important}.home .launch-panel{flex-shrink:0;margin-top:8px}.home .hero{height:210px!important;min-height:210px!important;flex-shrink:0}.home .hero h1{font-size:32px!important}.home .hero-orb{height:90px!important;min-height:90px!important}.home .hero .hero-caption{display:none}.home .modes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.home .mode{grid-column:span 2;min-height:88px;height:auto;padding:12px 8px;touch-action:manipulation}.home .mode:nth-child(n+4){grid-column:span 3;min-height:76px}.home .mode small{line-height:1.4;white-space:normal}.selected-mode-summary{font-size:13px;line-height:1.5;margin:12px 0;min-height:40px;color:inherit}.home .secondary[hidden]{display:none!important}.home .arena-row{margin:12px 0}.home #worldOptionsButton10{min-height:48px}.home .hero .wg-game-identity{display:none}.home .mode:focus-visible{outline:3px solid #34a4ef;outline-offset:2px}.home .hero p{font-size:12px}.home .hero .eyebrow{display:none}
#dialog .wg-stage-grid button{min-height:100px;white-space:normal}#dialog .wg-stage-grid button small{display:block;line-height:1.5}#dialog .wg-stage-grid button[aria-pressed=true]{outline:2px solid #1681ce;outline-offset:-2px}
@media(max-height:650px) and (orientation:landscape){.home:not(.hidden){display:flex!important;max-width:720px}.home .hero{display:none}.home .modes{grid-template-columns:repeat(5,minmax(0,1fr))}.home .mode,.home .mode:nth-child(n+4){grid-column:span 1}}
html[data-world-game=surviv] #home #expeditions{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;margin:0;padding:12px 8px;font:inherit;min-height:88px}
html[data-world-game=surviv] #home #expeditions svg{display:block;width:23px;height:23px}
.home .mode:nth-child(n+4){min-height:88px}
html[data-world-game=surviv] #home .hero{height:250px!important;min-height:250px!important;max-height:none;padding-top:12px;flex:0 0 auto;display:flex!important;background:transparent!important}
html[data-world-game=surviv] #home .hero-orb{display:block;width:100%;height:158px!important;min-height:158px!important;flex:0 0 158px}
#colonyPreview{display:block;width:100%;height:158px;position:static;pointer-events:none}
html[data-world-game=surviv] #home{justify-content:flex-start;gap:0;padding-bottom:max(24px,env(safe-area-inset-bottom))!important}
html[data-world-game=surviv] #home .hero h1{margin:4px 0 8px;font-size:32px!important}
#colonyStatus126{display:block;font-size:11px;line-height:1.5;margin-bottom:4px;font-variant-numeric:tabular-nums}
#expeditionProgress126{width:min(140px,100%);height:10px;accent-color:#36b685;display:block;margin:6px auto}#expeditionProgress126[hidden]{display:none}
@media(max-height:650px) and (orientation:landscape){html[data-world-game=surviv] #home .hero{height:170px!important;min-height:170px!important}html[data-world-game=surviv] #home .hero-orb,#colonyPreview{height:90px!important;min-height:90px!important;flex-basis:90px}}

/* Native overlays must sit above the shared collection navigation. */
html[data-world-game=surviv] #overlay{z-index:10010}

/* 1.0.47: #hud is a full-screen positioning layer, not a white panel.
   Keep the arena visible when the shared light theme loads after this file. */
html[data-ui-theme=light][data-world-game=surviv] body #hud,
html[data-ui-theme=light][data-world-game=surviv] body #hud .controls{
 background:transparent!important;background-image:none!important;
}
html[data-ui-theme=light][data-world-game=surviv] body #hud :is(.score-panel,.leaderboard){
 background:#fffffff2!important;border-color:#8fa9b7!important;color:#182637!important;
}
html[data-ui-theme=light][data-world-game=surviv] body #hud .session-state{
 background:#ffffffe8;border:1px solid #b3c6cc;border-radius:14px;
 padding:10px 8px;max-width:280px;margin-inline:auto;
}
html[data-ui-theme=light][data-world-game=surviv] body #hud :is(.rank-line.player,#myRank,.board-heading b){color:#17633f!important}
html[data-ui-theme=light][data-world-game=surviv] body #hud #stick{
 background:#ffffffa8;border-color:#5b7b8b80;
}
html[data-ui-theme=light][data-world-game=surviv] body #hud #stick i{
 background:#397e5e99;border-color:#1e6045;
}
html[data-ui-theme=light][data-world-game=surviv] body #hud .keyboard-hint{
 color:#182637;background:#ffffffe8;width:auto;left:50%;transform:translateX(-50%);
 border-radius:10px;padding:3px 8px;max-width:calc(100% - 24px);
}

/* Keep collection navigation out of the active arena; the settings gear stays accessible. */
html[data-world-game=surviv].survival-playing147 body .wtg-game-nav{display:none!important}
html[data-world-game=surviv] body #hud #pause{margin-right:54px;flex-shrink:0}
html[data-world-game=surviv] body #hud .session-state{min-width:0}
html[data-world-game=surviv] body #hud .session-state>b{font-size:12px;letter-spacing:.5px;overflow-wrap:anywhere}
html[data-world-game=surviv] body #hud .leaderboard{top:104px}
html[data-ui-theme=light][data-world-game=surviv] body #hud #minimap{background:#0a161bf2!important;border-color:#527779!important}

/* Hidden lifecycle panels must win over responsive display rules. */
html[data-world-game=surviv] body #home.hidden{display:none!important}

/* Clear mobile actions: two distinct small actions and a larger split target. */
html[data-world-game=surviv] body #hud .controls{padding-inline:max(12px,env(safe-area-inset-left));bottom:max(20px,env(safe-area-inset-bottom))}
html[data-world-game=surviv] body #hud .actions{display:grid;grid-template-columns:56px 72px;grid-template-rows:56px 56px;gap:8px;align-items:center;justify-items:center}
html[data-world-game=surviv] body #hud .actions button{width:56px;height:56px;min-width:44px;min-height:44px;font-size:10px}
html[data-world-game=surviv] body #hud .actions button#split{grid-column:2;grid-row:1 / 3;width:72px;height:72px}
html[data-world-game=surviv] body #hud .actions button#eject{grid-column:1;grid-row:1;background:#23415a;border-color:#8ccdf0;color:#effaff}
html[data-world-game=surviv] body #hud .actions button#dash{grid-column:1;grid-row:2}
html[data-world-game=surviv] body #hud .actions button b,html[data-world-game=surviv] body #hud .actions button small{font-size:9px;line-height:1.1}
html[data-world-game=surviv] body #hud #colonyStatus126{display:inline-block;padding:4px 7px;margin-bottom:3px;background:#0b191fdd;border-radius:8px;color:#e7f4e6;font-size:10px;line-height:1.25}
html[data-world-game=surviv] body .reading-guide{padding:10px 12px;border:1px solid #557879;border-radius:12px;background:#172e35;color:#e4f3ee;font-size:12px;line-height:1.5}
html[data-survival-touch=large][data-world-game=surviv] body #hud .actions{grid-template-columns:62px 80px;grid-template-rows:62px 62px}
html[data-survival-touch=large][data-world-game=surviv] body #hud .actions button{width:62px;height:62px}
html[data-survival-touch=large][data-world-game=surviv] body #hud .actions button#split{width:80px;height:80px}
@media(max-width:370px){html[data-survival-touch=large][data-world-game=surviv] body #hud .actions{grid-template-columns:58px 72px;grid-template-rows:58px 58px}html[data-survival-touch=large][data-world-game=surviv] body #hud .actions button{width:58px;height:58px}html[data-survival-touch=large][data-world-game=surviv] body #hud .actions button#split{width:72px;height:72px}}
@media(orientation:landscape) and (max-height:650px){html[data-world-game=surviv] body #hud .controls{height:112px;bottom:max(9px,env(safe-area-inset-bottom))}html[data-world-game=surviv] body #hud .actions{grid-template-rows:48px 48px;grid-template-columns:50px 62px;gap:5px}html[data-world-game=surviv] body #hud .actions button{width:48px;height:48px}html[data-world-game=surviv] body #hud .actions button#split{width:62px;height:62px}}
html[data-ui-theme=light][data-world-game=surviv] body #hud #colonyStatus126{background:#f5fbf7!important;color:#173b32!important;border:1px solid #608a7a}
@media(max-width:420px){
 html[data-world-game=surviv] body #hud .hud-top{display:grid;grid-template-columns:82px minmax(0,1fr) 44px;gap:6px;padding-right:50px;align-items:start}
 html[data-world-game=surviv] body #hud .score-panel{min-width:0;width:82px;padding:8px}
 html[data-world-game=surviv] body #hud .score-panel strong{font-size:26px}
 html[data-world-game=surviv] body #hud #pause{margin-right:0}
 html[data-world-game=surviv] body #hud .session-state{min-width:0;padding:3px;text-align:center}
 html[data-world-game=surviv] body #hud #colonyStatus126{max-width:100%;white-space:normal;overflow-wrap:anywhere}
 html[data-world-game=surviv] body #hud .session-state>b{display:block;font-size:12px;line-height:1.3}
 html[data-world-game=surviv] body #hud .leaderboard{width:108px;padding:8px}
 html[data-world-game=surviv] body #hud #leaders .rank-line:nth-child(n+4){display:none}
}
