.feature-card .mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.feature-card button,.feature-window button{background:#35475f;color:#f8ebd6;border:1px solid #8191a9;border-radius:7px;padding:8px;font-weight:700}.feature-card button:hover,.feature-window button:hover{background:#506682}.feature-label{display:block;color:#d8deeb;font-size:12px;font-weight:700;margin-top:10px}.feature-label select{display:block;width:100%;margin-top:4px;padding:7px;background:#121c2c;color:#f5e8d5;border:1px solid #66758c;border-radius:6px}.feature-readout{color:#edcd91;font-size:12px;line-height:1.5;margin-top:10px}.feature-settings{width:100%;margin-top:11px}.feature-overlay{position:fixed;inset:0;background:#080c17da;display:grid;place-items:center;z-index:65;padding:16px}.feature-overlay.hidden{display:none}.feature-window{width:min(620px,100%);max-height:90vh;overflow:auto;background:#202a3c;border:1px solid #b0a078;border-radius:16px;padding:22px;color:#f2e9d9;box-shadow:0 25px 80px #0009}.feature-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.feature-head h2{font:30px Georgia,serif;margin:0}.feature-window h3{font:22px Georgia,serif}.feature-window p{line-height:1.5;color:#cbd4e1}.feature-grid{display:grid;gap:15px;padding:15px;background:#152033;border-radius:9px}.feature-grid label{display:flex;align-items:center;gap:12px}.feature-grid input[type=range]{flex:1}.mutation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.mutation-grid button{min-height:115px;text-align:left;background:#344b64;border-color:#e2bb79}.mutation-grid strong,.mutation-grid small{display:block}.mutation-grid small{font-weight:400;line-height:1.4;margin-top:9px}.death-actions{display:flex;gap:7px;justify-content:center;margin-top:14px}.death-actions button{background:#394d67;border:1px solid #7b91a9;color:#f1e3cc;border-radius:6px;padding:6px;font-size:11px}#replayCanvas{width:100%;aspect-ratio:16/10;background:#121b2a;border-radius:8px}@media(max-width:600px){.mutation-grid{grid-template-columns:1fr}.mutation-grid button{min-height:65px}}
.binding-grid{display:flex;flex-wrap:wrap;gap:7px}
.touch-controls{display:none;position:absolute;inset:0;z-index:5;align-items:flex-end;justify-content:space-between;padding:12px 14px;pointer-events:none;touch-action:none;user-select:none;-webkit-user-select:none}
.touch-stick{width:118px;display:grid;justify-items:center;gap:4px;pointer-events:auto;color:#fff3d7;text-shadow:0 2px 5px #000;font-size:9px;letter-spacing:.11em}
.stick-ring{width:108px;height:108px;position:relative;border-radius:50%;border:2px solid #f4d49399;background:radial-gradient(circle,#6b7f9a35 0 28%,#172237a8 30% 62%,#e6c47a30 64%);box-shadow:inset 0 0 20px #0009,0 4px 18px #0009}
.stick-ring:before,.stick-ring:after{content:"";position:absolute;background:#f4d4932b;left:50%;top:12%;bottom:12%;width:1px}.stick-ring:after{top:50%;left:12%;right:12%;height:1px;width:auto}
.stick-ring i{position:absolute;left:50%;top:50%;width:45px;height:45px;margin:-22.5px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff2bd,#c58b45 34%,#59402f 70%);border:2px solid #fff0b8;box-shadow:0 5px 13px #000b;will-change:transform}
.aim-stick .stick-ring{border-color:#9de5e0aa;background:radial-gradient(circle,#75dddc30 0 28%,#172237a8 30% 62%,#78ded72b 64%)}.aim-stick .stick-ring i{background:radial-gradient(circle at 35% 30%,#eaffff,#4abdbb 34%,#244d59 70%);border-color:#caffff}
.touch-center{align-self:stretch;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:6px;pointer-events:none}.touch-center button{pointer-events:auto;border:1px solid #dfc88c88;background:#18253bd9;color:#fff0cd;border-radius:10px;min-width:42px;min-height:38px;font-weight:900;box-shadow:0 4px 12px #0009}.touch-center>button:first-child,.touch-center>button:nth-child(2){position:absolute;top:9px;min-width:40px;min-height:34px}.touch-center>button:first-child{right:10px}.touch-center>button:nth-child(2){right:57px}.touch-spells{display:flex;gap:4px;pointer-events:auto}.touch-spells button{min-width:36px;min-height:34px}.touch-spells button.active{background:#d7ad68;color:#172033;border-color:#fff0b5}.touch-center .touch-dash{min-width:88px;background:linear-gradient(#9b6c3f,#5a3d33);border-color:#ffd38e}
.touch-controls>.touch-dash{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);pointer-events:auto;min-width:92px;min-height:46px;border:2px solid #ffe0a3;background:linear-gradient(#a97545,#54382f);color:#fff1d0;border-radius:14px;font-weight:950;letter-spacing:.08em;box-shadow:0 5px 16px #000b}.touch-controls>.touch-dash:active{filter:brightness(1.3);transform:translateX(-50%) scale(.94)}
.touch-aim-hint{position:absolute;right:15px;bottom:20px;width:122px;text-align:center;color:#d8ffffaa;font-size:9px;font-weight:900;letter-spacing:.12em;text-shadow:0 2px 5px #000;pointer-events:none}
.stage:has(.modal:not(.hidden)) .touch-controls{opacity:.16;pointer-events:none}.stage:has(.modal:not(.hidden)) .touch-controls *{pointer-events:none}
.stage:fullscreen,.stage.mobile-focus{background:#0a101c;display:grid;place-items:center}.stage:fullscreen canvas,.stage.mobile-focus canvas{width:100%;max-height:100dvh;aspect-ratio:16/10}.stage:fullscreen .touch-controls,.stage.mobile-focus .touch-controls{inset:50% 0 auto;transform:translateY(-50%);height:min(100dvh,62.5vw)}
.stage.mobile-focus{position:fixed;inset:0;z-index:250;width:100vw;height:100dvh}.mobile-playing{overflow:hidden}
@media(pointer:coarse),(hover:none){.touch-controls{display:flex}.stage{overflow:hidden}.btn:hover,.feature-card button:hover,.feature-window button:hover{transform:none}.help:after{content:"\A Mobile: left stick moves, tap or drag on the arena to aim and shoot, and use DASH.";white-space:pre-wrap;color:#e7c786}}
@media(pointer:coarse) and (max-width:700px),(hover:none) and (max-width:700px){.touch-controls{padding:7px 8px}.touch-stick{width:94px}.stick-ring{width:86px;height:86px}.stick-ring i{width:38px;height:38px;margin:-19px}.touch-controls>.touch-dash{min-width:76px;min-height:39px;font-size:11px}.touch-aim-hint{right:7px;bottom:13px;width:92px;font-size:8px}.touch-stick b{display:none}}
@media(pointer:coarse) and (orientation:portrait),(hover:none) and (orientation:portrait){.touch-controls{padding-bottom:5px}.touch-stick{transform:scale(.84);transform-origin:bottom}.touch-controls>.touch-dash{font-size:10px}.stage:after{content:"Turn sideways for the best view";display:block;inset:8px auto auto 8px;width:auto;height:auto;box-shadow:none;color:#ffe7b5aa;font-size:9px;letter-spacing:.05em}}
