:root{--bg:#0b0d10;--panel:rgba(14,17,22,.88);--panel2:rgba(255,255,255,.04);--line:rgba(255,255,255,.1);--txt:#e8edf2;--dim:#93a0ad;--acc:#ff5a1f;--acc2:#ffb347;--blue:#3aa0ff;--red:#ff4d3a;--ok:#36d399;--fs:1;--hud:1}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:var(--bg);color:var(--txt);font-family:Rajdhani,system-ui,sans-serif;font-size:calc(16px*var(--fs));overscroll-behavior:none;-webkit-tap-highlight-color:transparent}
body.hc{--panel:#000;--panel2:#111;--line:#fff;--dim:#ddd;--txt:#fff}
body.cb{--blue:#2f8cff;--red:#ffc400}
canvas#view{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}
button,select,input{font:inherit;color:inherit}
button{cursor:pointer}
h1,h2,h3{font-family:Teko,Rajdhani,sans-serif;font-weight:600;letter-spacing:.06em;margin:0}
.boot{position:fixed;inset:0;display:grid;place-items:center;overflow:hidden;background:#090b13;z-index:60;text-align:center;transition:opacity .5s}
.boot.out{opacity:0;pointer-events:none}
.boot-art-canvas{position:relative;width:min(100vw,177.683vh);height:min(100vh,56.281vw);aspect-ratio:1672/941;overflow:hidden;flex:none}
.boot-art{position:absolute;inset:0;width:100%;height:100%;user-select:none;-webkit-user-drag:none}
.boot-art-ui{position:absolute;inset:0;color:#fff;pointer-events:none;font-family:Rajdhani,system-ui,sans-serif;font-weight:700;text-shadow:0 2px 5px #171014,0 0 10px #ff702b}
.boot-art-percent{position:absolute;left:50%;top:46.25%;transform:translate(-50%,-50%);font:italic 700 clamp(22px,2.7vw,48px)/1 Rajdhani,sans-serif;color:#ff781f;letter-spacing:.08em;white-space:nowrap}
.boot-art-fill{position:absolute;left:35.2%;top:52%;width:27.4%;height:2.4%;overflow:hidden;clip-path:polygon(2.5% 0,97.5% 0,100% 50%,97.5% 100%,2.5% 100%,0 50%)}
.boot-art-fill i{display:block;width:var(--loading-progress,0%);height:100%;background:repeating-linear-gradient(120deg,#ff570f 0 12px,#ff9b22 12px 17px);box-shadow:0 0 14px #ff661d;transition:width .2s ease-out}
.boot-art-current{position:absolute;left:50%;top:59%;transform:translate(-50%,-50%);width:31%;overflow:hidden;color:#f4e4d8;font:italic 700 clamp(12px,1.65vw,27px)/1.15 Rajdhani,sans-serif;text-align:center;white-space:nowrap;text-overflow:ellipsis}
.boot-art-categories{position:absolute;left:50%;top:64.1%;transform:translate(-50%,-50%);width:48%;color:#e8d5ca;font:italic 700 clamp(10px,1.35vw,22px)/1.15 Rajdhani,sans-serif;text-align:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.boot-art-tip{position:absolute;left:32.5%;top:69.8%;width:33%;height:7.5%;display:flex;align-items:center;justify-content:center;gap:1.4%;padding:0 2%;border:1px solid rgba(255,106,24,.8);background:linear-gradient(105deg,rgba(13,15,24,.93),rgba(24,18,28,.91));clip-path:polygon(0 0,96% 0,100% 50%,96% 100%,0 100%,2.5% 50%);box-shadow:0 0 18px #ff641c55}
.boot-art-tip svg{width:6%;height:70%;flex:none;fill:none;stroke:#ff7a1b;stroke-width:2.5;filter:drop-shadow(0 0 4px #ff702b)}
.boot-art-tip p{margin:0;color:#f1e2d8;font:italic 600 clamp(10px,1.2vw,20px)/1.25 Rajdhani,sans-serif;text-align:center;text-shadow:0 1px 4px #080912}
.boot-a11y{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.boot-progress{display:flex;align-items:baseline;justify-content:space-between;gap:16px;width:min(320px,70vw);margin:0 auto;color:var(--dim);font-size:13px}.boot-progress strong{color:#fff;font:700 24px Rajdhani}.boot-categories{max-width:80vw;color:var(--dim);font-size:12px;line-height:1.4}
.logo{font-family:Teko,sans-serif;font-weight:700;font-size:clamp(38px,8vw,88px);letter-spacing:.055em;line-height:.9;display:flex;align-items:center;justify-content:center;gap:.12em}
.logo span{color:var(--acc)}
.logo svg{height:.8em;flex:none}
.bar{width:min(320px,70vw);height:4px;background:#22262c;margin:auto;border-radius:2px;overflow:hidden}.bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--acc),var(--acc2));transition:width .25s}
.tip{color:var(--dim);font-size:15px;max-width:80vw}
#ui{position:fixed;inset:0;z-index:10;pointer-events:none}
#ui>*{pointer-events:auto}
.screen{position:absolute;inset:0;display:flex;flex-direction:column;gap:14px;padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));overflow-y:auto;-webkit-overflow-scrolling:touch}
.screen.home{background:linear-gradient(90deg,rgba(6,7,9,.9),rgba(6,7,9,.45) 50%,rgba(6,7,9,0))}
.screen.panel{background:rgba(7,8,10,.93)}
.screen.stage{background:linear-gradient(90deg,rgba(6,7,9,.92) 0,rgba(6,7,9,.6) 42%,rgba(6,7,9,0) 70%)}
.topbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.brand{font-family:Teko;font-size:38px;letter-spacing:.1em;display:flex;align-items:center;gap:8px;line-height:1}
.brand span{color:var(--acc)}
.grow{flex:1}
.pcard{display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--line);padding:8px 12px;border-radius:10px}
.pcard b{font-family:Teko;font-size:22px;letter-spacing:.05em}
.lvl{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:2px solid var(--acc);font-family:Teko;font-size:22px}
.xpbar{height:5px;background:#2a2f36;border-radius:3px;overflow:hidden;width:140px}.xpbar i{display:block;height:100%;background:linear-gradient(90deg,var(--acc),var(--acc2))}
.coins{color:var(--acc2);font-weight:700}
.chip{font-size:12px;letter-spacing:.08em;padding:3px 8px;border-radius:20px;border:1px solid var(--line);color:var(--dim);white-space:nowrap}
.chip.ok{color:var(--ok);border-color:rgba(54,211,153,.4)}.chip.err{color:var(--red);border-color:rgba(255,77,58,.5)}.chip.warn{color:var(--acc2)}
.nav{display:flex;flex-direction:column;gap:4px;max-width:360px;margin-top:auto}
.nav button{background:none;border:0;text-align:left;font-family:Teko;font-size:28px;letter-spacing:.06em;color:#cfd6dd;padding:4px 10px;min-height:44px;border-left:3px solid transparent;transition:.15s}
.nav button:hover,.nav button:focus-visible{color:#fff;border-left-color:var(--acc);background:linear-gradient(90deg,rgba(255,90,31,.18),transparent);outline:none}
.nav .play{font-size:52px;color:#fff;border-left-color:var(--acc)}
.charname{position:absolute;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));text-align:right;pointer-events:none}
.charname h2{font-size:46px;line-height:.9}.charname div{color:var(--dim)}
.head{display:flex;align-items:center;gap:12px}
.back{background:var(--panel2);border:1px solid var(--line);border-radius:8px;min-height:44px;min-width:44px;padding:0 14px;font-weight:700}
.btn{background:var(--acc);border:0;border-radius:8px;min-height:44px;padding:0 20px;font-weight:700;letter-spacing:.06em;color:#fff}
.btn.ghost{background:var(--panel2);border:1px solid var(--line)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.card{position:relative;background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:10px;text-align:left;min-height:44px;overflow:hidden}
.card.sel{border-color:var(--acc);box-shadow:0 0 0 1px var(--acc) inset}
.card.locked{opacity:.75}
.card h3{font-size:22px;line-height:1}.card small{color:var(--dim);display:block}
.card .tag{position:absolute;top:8px;right:8px}
.por{width:100%;aspect-ratio:1;border-radius:8px;background:#151a20;display:block;margin-bottom:6px;object-fit:cover}
.tabs{display:flex;gap:6px;flex-wrap:wrap}
.tabs button{background:var(--panel2);border:1px solid var(--line);border-radius:20px;min-height:40px;padding:0 14px}
.tabs button.on{background:var(--acc);border-color:var(--acc)}
.two{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.box{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px}
.dim{color:var(--dim)}
table{width:100%;border-collapse:collapse;font-size:15px}td,th{padding:6px 8px;border-bottom:1px solid var(--line);text-align:left}th{color:var(--dim);font-weight:600}
.stat{display:grid;grid-template-columns:110px 1fr 40px;align-items:center;gap:8px;font-size:14px}.stat i{height:6px;background:#2a2f36;border-radius:3px;overflow:hidden;display:block}.stat i b{display:block;height:100%;background:var(--acc)}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.field{display:grid;grid-template-columns:minmax(120px,1fr) minmax(140px,1.4fr);gap:10px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line)}
.field input[type=range]{width:100%;height:32px}
select,input[type=text]{background:#14181e;border:1px solid var(--line);border-radius:8px;min-height:44px;padding:0 10px;font-size:16px;width:100%}
input[type=checkbox]{width:24px;height:24px;accent-color:var(--acc)}
.slot{display:grid;grid-template-columns:1.3fr 1fr 1fr 44px;gap:6px;align-items:center;margin-bottom:6px}
.teamA{border-top:3px solid var(--blue)}.teamB{border-top:3px solid var(--red)}
#toast{position:fixed;left:50%;top:max(14px,env(safe-area-inset-top));transform:translateX(-50%);z-index:70;display:flex;flex-direction:column;gap:6px;pointer-events:none}
#toast div{background:var(--panel);border:1px solid var(--line);padding:8px 14px;border-radius:8px;font-weight:600}
/* HUD */
#hud{position:fixed;inset:0;z-index:5;pointer-events:none;font-size:calc(16px*var(--hud))}
#hud .tl,#hud .tr,#hud .bl,#hud .br,#hud .tc{position:absolute}
#hud .tc{top:max(8px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;gap:8px;align-items:center;font-family:Teko;font-size:calc(30px*var(--hud))}
.sc{min-width:56px;text-align:center;padding:0 10px;border-radius:6px;background:rgba(0,0,0,.45)}.sc.a{border-bottom:3px solid var(--blue)}.sc.b{border-bottom:3px solid var(--red)}
#hud .tl{top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left))}
#hud .tr{top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:calc(14px*var(--hud));max-width:46vw}
.kf{background:rgba(0,0,0,.5);padding:2px 8px;border-radius:4px;white-space:nowrap}.kf .a{color:var(--blue)}.kf .b{color:var(--red)}.kf .me{color:var(--acc2)}
#hud .bl{bottom:max(12px,env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));display:flex;gap:10px;align-items:flex-end}
.hp{font-family:Teko;font-size:calc(40px*var(--hud));line-height:.8}.hpb{width:calc(160px*var(--hud));height:6px;background:rgba(255,255,255,.15);border-radius:3px;overflow:hidden;margin-top:4px}.hpb i{display:block;height:100%;background:#fff}.hpb.ar i{background:var(--blue)}
#hud .br{bottom:max(12px,env(safe-area-inset-bottom));right:max(12px,env(safe-area-inset-right));text-align:right;font-family:Teko}
.ammo{font-size:calc(46px*var(--hud));line-height:.8}.ammo small{font-size:.5em;color:var(--dim)}
#xh{position:absolute;left:50%;top:50%;width:0;height:0}
#xh i{position:absolute;background:#fff;box-shadow:0 0 2px #000}
#hm{position:absolute;left:50%;top:50%;width:24px;height:24px;margin:-12px;opacity:0;transition:opacity .15s}
#hm i{position:absolute;width:10px;height:2px;background:#fff;left:7px;top:11px}
#hm.hs i{background:var(--red)}
.scope{position:absolute;inset:0;background:radial-gradient(circle at 50% 50%,transparent 0 33vmin,#000 33.4vmin);display:none}
.scope::before,.scope::after{content:"";position:absolute;background:#000}.scope::before{left:0;right:0;top:50%;height:1px}.scope::after{top:0;bottom:0;left:50%;width:1px}
.dmg{position:absolute;inset:0;box-shadow:inset 0 0 120px rgba(200,0,0,.0);transition:box-shadow .25s}
.sub{position:absolute;left:50%;bottom:calc(110px + env(safe-area-inset-bottom));transform:translateX(-50%);text-align:center;font-size:calc(17px*var(--hud));max-width:80vw;text-shadow:0 1px 3px #000}
.center{position:absolute;left:50%;top:32%;transform:translate(-50%,-50%);text-align:center;font-family:Teko;font-size:calc(34px*var(--hud));text-shadow:0 2px 6px #000}
.board{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1120px,96vw);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:8px;display:none;pointer-events:auto}.board-teams{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start}.board-team{min-width:0}.board-team h3{font-size:clamp(16px,2.2vw,22px);line-height:1.05;padding:4px 6px;margin-bottom:4px}.board .score-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:clamp(11px,1.25vw,14px);line-height:1.05}.board .score-table th,.board .score-table td{padding:3px 4px;height:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.board .score-table th:first-child,.board .score-table td:first-child{text-align:left;width:48%}.board .score-table th:not(:first-child){width:13%}.board .score-table .board-you{color:var(--acc2);font-weight:700}
.mm{border-radius:8px;background:rgba(0,0,0,.45);border:1px solid var(--line)}
.ind{position:absolute;left:50%;top:50%;width:0;height:0}
.ind i{position:absolute;left:-14px;top:-110px;width:28px;height:28px;border-left:14px solid transparent;border-right:14px solid transparent;border-bottom:18px solid rgba(255,40,40,.85);transform-origin:14px 110px;opacity:0;transition:opacity .6s}
.rotate{position:fixed;inset:0;z-index:40;display:none;place-content:center;text-align:center;background:#07080a;gap:12px;padding:20px}
/* Touch */
#touch{position:fixed;inset:0;width:100%;height:100%;z-index:6;pointer-events:none}
#touch .zone{position:absolute;pointer-events:auto;touch-action:none}
.tb{position:absolute;pointer-events:auto;touch-action:none;border-radius:50%;border:2px solid rgba(255,255,255,.55);background:rgba(10,12,15,.35);display:grid;place-items:center;font-weight:700;font-size:13px;letter-spacing:.04em;color:#fff;user-select:none;-webkit-user-select:none;transform:translate(-50%,-50%)}
.tb.on{background:rgba(255,90,31,.55);border-color:var(--acc)}
.tb.fire{border-color:rgba(255,90,31,.9)}
.stick{position:absolute;border-radius:50%;border:2px solid rgba(255,255,255,.4);background:rgba(10,12,15,.25);transform:translate(-50%,-50%);pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none}
.stick i{position:absolute;left:50%;top:50%;width:44%;height:44%;margin:-22%;border-radius:50%;background:rgba(255,255,255,.55)}
.pause{position:fixed;inset:0;z-index:30;background:rgba(5,6,8,.82);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:20px}
.pause .btn{min-width:240px}
@media (min-width:860px){.two{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.nav button{font-size:30px}}
@media (max-width:640px){.nav{max-width:none;display:grid;grid-template-columns:1fr 1fr;gap:2px}.nav button{font-size:22px;padding:4px 8px}.nav .play{grid-column:1/-1;font-size:40px}.charname{display:none}.slot{grid-template-columns:1fr 1fr;}.slot .del{grid-column:2}.xpbar{width:90px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
body.rm *{transition:none!important}

@media(max-width:560px){.board{width:98vw;padding:5px}.board-teams{gap:5px}.board .score-table{font-size:10px}.board .score-table th,.board .score-table td{padding:2px 2px;height:19px}.board .score-table th:first-child,.board .score-table td:first-child{width:48%}.board-team h3{font-size:15px}}

/* In-match settings panel */
.pause .pause-settings{width:min(560px,94vw);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;align-items:stretch;gap:12px}
.pause-settings-body{overflow-y:auto;overscroll-behavior:contain;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px}
.pause-settings-body h3{font-size:22px;color:var(--acc);margin:8px 0 2px}
.pause-settings-body .field{grid-template-columns:minmax(130px,1fr) minmax(130px,1fr)}
.pause-settings .btn{align-self:stretch}
.pause-settings select{background:#14181e;border:1px solid var(--line);border-radius:8px;min-height:42px;padding:0 10px}
@media(max-width:560px){.pause-settings-body{padding:9px}.pause-settings-body .field{grid-template-columns:minmax(115px,1fr) minmax(120px,1fr);font-size:14px}}

/* Match results: give the full-width scoreboard its own layout instead of
   inheriting the centered in-game TAB overlay positioning. */
.screen.results-screen{align-items:center;gap:10px;overflow-y:auto;text-align:center}
.results-screen>.logo{flex:0 0 auto;line-height:1}
.results-rewards{justify-content:center;flex:0 0 auto}
.results-board{display:block;position:relative;left:auto;top:auto;transform:none;width:min(1120px,100%);max-height:min(54dvh,560px);flex:1 1 auto;min-height:0;overflow:auto;align-self:center}
.results-board .board-teams{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.results-board .board-team{min-width:0}
.results-actions{justify-content:center;flex:0 0 auto}
@media(max-width:640px){
  .screen.results-screen{padding:12px;gap:8px}
  .results-screen>.logo{font-size:clamp(48px,12vw,72px)!important}
  .results-board{width:100%;max-height:58dvh;padding:5px}
  .results-board .board-teams{grid-template-columns:minmax(0,1fr)}
  .results-board .board-team h3{font-size:17px}
  .results-actions{width:100%}
}


/* BURNING SECTOR main-menu home redesign */
.home-redesign{padding:0;gap:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;background:linear-gradient(90deg,rgba(3,6,12,.7),rgba(3,6,12,.04) 62%),linear-gradient(0deg,rgba(3,6,12,.38),transparent 38%)}
.wv-header{height:88px;min-height:88px;display:flex;align-items:stretch;gap:22px;padding:0 22px;background:linear-gradient(180deg,rgba(5,9,16,.98),rgba(8,13,22,.91));border-bottom:2px solid #304052;box-shadow:0 5px 24px #0009;z-index:2}
.wv-brand{display:flex;align-items:center;gap:12px;min-width:410px;border-right:3px solid #24bfff;transform:skew(-12deg);padding:0 28px 0 4px;box-shadow:8px 3px 14px -12px #20baff}
.wv-brand>svg{width:82px;height:64px;flex:none}.wv-brand>div{display:flex;flex-direction:column;transform:skew(12deg);line-height:.9}
.wv-brand strong{font:italic 700 clamp(27px,3vw,44px)/.9 Rajdhani,sans-serif;letter-spacing:.06em;color:#f2f5fa}.wv-brand sup{font-size:10px}.wv-brand small{font:700 14px Rajdhani;letter-spacing:.2em;color:#d0d8e4;margin-top:6px}
.wv-topnav{display:flex;flex:1;align-items:stretch;justify-content:space-around;min-width:0}
.wv-topnav button{min-width:0;flex:1;border:0;border-left:1px solid #354252;background:transparent;color:#d1d9e4;font:700 17px Rajdhani;letter-spacing:.06em;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:5px 4px}
.wv-topnav button span{font:700 29px/1 Arial,sans-serif}.wv-topnav button.active{color:white;background:linear-gradient(180deg,#142c43,#101923);border-bottom:3px solid #21baff}.wv-topnav button.hot{color:#fff;background:linear-gradient(135deg,#a32b08,#ff6a18 52%,#9b280b);border:2px solid #ff8b25;box-shadow:inset 0 0 18px #ffb02c66,0 0 15px #ff5a1f66;transform:skew(-8deg);border-radius:8px}
.wv-sidebar{position:absolute;z-index:2;left:22px;top:112px;bottom:50px;width:355px;padding:10px 8px;display:flex;flex-direction:column;gap:5px;background:linear-gradient(135deg,rgba(6,12,21,.95),rgba(9,15,25,.88));border:1px solid #ef592d;border-radius:10px;box-shadow:0 10px 30px #0008,inset 0 0 25px #1b2d43}
.wv-sidebar button{min-height:46px;display:flex;align-items:center;gap:15px;text-align:left;padding:4px 14px;border:1px solid #526477;border-radius:6px;background:linear-gradient(100deg,#111b29dd,#080e18e8);color:#f0f3f7;font:700 23px/1 Teko,Rajdhani,sans-serif;letter-spacing:.045em;white-space:nowrap}
.wv-sidebar button i{font-style:normal;width:30px;text-align:center;font:700 27px/1 Arial,sans-serif;color:#cbd8e8}
.wv-sidebar button:hover{border-color:#ff9a35;background:linear-gradient(90deg,#6d260f,#172131);box-shadow:0 0 12px #ff5a1f55}
.wv-sidebar .wv-play{min-height:56px;margin-bottom:3px;border:2px solid #ff9a24;background:linear-gradient(100deg,#ff6c1b,#a62b0c);box-shadow:inset 0 0 14px #ffd05a55,0 0 14px #ff5a1f66;font:italic 700 36px/1 Teko;color:#fff}
.wv-play span{font:700 29px Arial}
.wv-playerbar{position:absolute;z-index:2;top:108px;left:47.2%;width:min(470px,34vw);height:56px;display:flex;align-items:center;gap:10px;padding:6px 14px;background:#0a111dcc;border:1px solid #7790a8;border-radius:9px;box-shadow:0 4px 16px #0007}
.wv-playerbar strong{font:700 19px Teko;white-space:nowrap}.wv-level{border:2px solid #ff9b20;border-radius:50%;padding:5px;font:700 18px Teko}.wv-xp{height:6px;flex:1;min-width:35px;background:#354252;border-radius:5px;overflow:hidden}.wv-xp i{display:block;height:100%;background:linear-gradient(90deg,#ff7624,#ffc34c)}.wv-playerbar small{font-size:12px;white-space:nowrap;color:#d0d8e4}
.wv-wallet{position:absolute;z-index:2;right:18px;top:108px;display:flex;align-items:center;gap:14px;padding:10px 14px;background:#0a111dcc;border:1px solid #405269;border-radius:9px}.wv-wallet b{font:700 17px Teko;color:#ffb52e;white-space:nowrap}.wv-wallet .chip{font-size:10px}
.wv-operator{position:absolute;right:18px;bottom:22px;min-width:210px;text-align:right;padding:10px 16px;background:linear-gradient(110deg,#0a111dcc,#111d2ddd);border:1px solid #91a1b5;border-right:3px solid #ff7624;clip-path:polygon(12% 0,100% 0,100% 100%,0 100%);text-shadow:0 2px 4px #000}
.wv-operator small{color:#b8c5d5;text-transform:uppercase;letter-spacing:.12em}.wv-operator h2{font:700 42px/.9 Teko;color:#fff}.wv-operator span{color:#b8c5d5;font:600 16px Rajdhani}
@media(max-width:1050px){.wv-brand{min-width:230px;padding-right:12px}.wv-brand>svg{width:55px}.wv-brand strong{font-size:28px}.wv-brand small{font-size:10px}.wv-topnav button{font-size:12px}.wv-topnav button span{font-size:22px}.wv-sidebar{width:285px;left:12px}.wv-sidebar button{font-size:19px;min-height:40px}.wv-playerbar{left:auto;right:12px;top:98px;width:min(420px,52vw)}.wv-wallet{top:160px;right:12px}}
@media(max-width:650px){.home-redesign{overflow-y:auto}.wv-header{height:auto;min-height:0;display:block;padding:8px 10px}.wv-brand{height:52px;min-width:0;border:0;transform:none}.wv-brand>svg{width:48px;height:42px}.wv-brand>div{transform:none}.wv-brand strong{font-size:27px}.wv-brand small{font-size:10px}.wv-topnav{overflow-x:auto;height:58px;justify-content:flex-start}.wv-topnav button{min-width:72px;font-size:10px}.wv-topnav button span{font-size:20px}.wv-sidebar{position:relative;left:auto;top:auto;bottom:auto;width:min(250px,66vw);margin:12px 0 12px 10px;gap:4px;padding:7px}.wv-sidebar button{min-height:37px;font-size:17px;padding:3px 9px;gap:8px}.wv-sidebar button i{font-size:20px;width:23px}.wv-sidebar .wv-play{min-height:45px;font-size:27px}.wv-playerbar{top:132px;left:auto;right:8px;width:calc(100% - 275px);min-width:0;height:auto;flex-wrap:wrap;padding:7px;gap:5px}.wv-playerbar strong{font-size:15px}.wv-playerbar small{font-size:10px;white-space:normal}.wv-wallet{top:205px;right:8px;display:grid;gap:4px;padding:6px}.wv-wallet b{font-size:13px}.wv-operator{right:8px;bottom:12px;min-width:140px;padding:6px 10px}.wv-operator h2{font-size:30px}.wv-operator span{font-size:12px}}


/* PLAY screen: tactical setup panel and selectable match cards */
.play-redesign{background:linear-gradient(90deg,rgba(4,8,14,.96) 0%,rgba(4,8,14,.88) 67%,rgba(4,8,14,.12) 100%),linear-gradient(0deg,#070b12aa,transparent 40%);overflow:hidden}
.play-main{position:absolute;left:30px;top:105px;bottom:22px;width:min(74%,1120px);display:flex;flex-direction:column;gap:16px;min-height:0}
.play-heading{height:56px;display:flex;align-items:center;gap:24px;flex:none}.play-heading h1{font:italic 700 clamp(38px,4vw,58px)/.9 Rajdhani;color:#fff;letter-spacing:.02em}.play-heading h1 i{color:var(--acc);font-style:normal;letter-spacing:-.1em}
.play-heading .back{min-width:138px;height:48px;font:700 21px Teko;border-radius:8px;background:linear-gradient(110deg,#172334,#090f19);border-color:#60758d}
.play-options{background:linear-gradient(115deg,rgba(5,12,22,.97),rgba(7,14,24,.9));border:1px solid #61758c;border-radius:12px;padding:4px 20px;box-shadow:0 8px 25px #0008;flex:none}
.play-option{min-height:82px;display:flex;align-items:center;gap:18px;position:relative}.play-option+.play-option{border-top:1px solid #344355}
.play-option-icon{width:52px;flex:none;text-align:center;color:#c5d8ee;font:700 38px Arial}
.play-option-copy{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.play-option-copy b{font:700 23px/1.1 Teko;color:#f4f6fa;letter-spacing:.035em}.play-option-copy small{font:600 16px/1.15 Rajdhani;color:#b8c6d6}
.play-option select{width: min(350px,34%);height:48px;flex:none;background:linear-gradient(110deg,#111b29,#080e17);border:1px solid #71849b;border-radius:8px;font:600 20px Rajdhani;color:#f5f7fa;padding:0 14px}
.play-option input[type=checkbox]{position:absolute;right:calc(18% - 18px);width:42px;height:42px;opacity:0;z-index:2;cursor:pointer}
.observer-check{width:40px;height:40px;margin-right:calc(18% - 18px);border:2px solid #66788d;border-radius:8px;display:grid;place-items:center;color:transparent;font:700 28px Arial;background:#0c1522;box-shadow:inset 0 0 8px #0008}
.play-option input:checked+.observer-check{color:#fff;background:linear-gradient(135deg,#ff7623,#c8320c);border-color:#ff9b36;box-shadow:0 0 14px #ff5a1f77,inset 0 0 9px #ffd07866}
.play-option input:focus-visible+.observer-check{outline:2px solid #4dcfff;outline-offset:3px}
.play-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;flex:1;min-height:0}
.play-mode-card{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(180deg,#101a28,#070d16);border:2px solid #4c5f75;border-radius:12px;box-shadow:0 8px 24px #0009}
.play-mode-card.mode-0{border-color:#26caff;box-shadow:0 0 0 1px #26caff55,0 0 18px #14bfff44,0 8px 24px #0009}
.play-mode-image{height:34%;min-height:110px;position:relative;display:grid;place-items:center;background:linear-gradient(135deg,#52687c,#172536 65%,#111923);border-bottom:1px solid #52647a;overflow:hidden}
.play-mode-image::before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#080e18 0%,transparent 75%),radial-gradient(circle at 70% 25%,#f9b56c55,transparent 42%)}
.play-mode-image span{position:relative;font:700 58px Arial;color:#d5e3f3;text-shadow:0 3px 8px #000}
.mode-image-0{background:linear-gradient(135deg,#536c83,#273c50 40%,#111a25)}.mode-image-1{background:linear-gradient(135deg,#6c6d69,#38495a 48%,#15202b)}.training-image{background:linear-gradient(135deg,#69717b,#3a4b5d 50%,#141d28)}
.play-mode-content{padding:12px 16px 16px;display:flex;flex-direction:column;flex:1;min-height:0}
.play-mode-title{display:flex;align-items:center;gap:12px;min-height:50px}.play-mode-icon{font:700 38px Arial;color:#c5d8ed;flex:none}.play-mode-title h2{font:700 clamp(19px,2vw,27px)/.95 Teko;color:#f6f8fb}.play-mode-title small{font:600 13px Rajdhani;color:#aebfd1;letter-spacing:.06em}
.play-mode-content p{font:600 clamp(14px,1.35vw,18px)/1.18 Rajdhani;color:#c1cbd8;margin:10px 0;white-space:pre-line}
.play-start{margin-top:auto;min-height:54px;border:2px solid #ff8d2c;border-radius:8px;background:linear-gradient(110deg,#ff7620,#e53b0b 70%,#b82b0b);box-shadow:inset 0 0 12px #ffd05b66,0 0 12px #ff5a1f55;color:#fff;font:700 29px Teko;letter-spacing:.04em;transform:skew(-9deg)}
.play-start span{display:inline-block;font:700 20px Arial;transform:skew(9deg);margin-left:8px}
.mode-0 .play-start{border-color:#ffad45}
.play-footnote{height:54px;min-height:54px;display:flex;align-items:center;gap:10px;padding:6px 14px;background:#07101cdd;border:1px solid #53677e;border-radius:7px;font:600 15px Rajdhani;color:#d3dbe5;flex:none}
.play-footnote>span{font:700 25px Arial;color:#ff7624}.play-footnote i{font:italic 700 27px Rajdhani;color:var(--acc);margin-left:auto}
.play-operator-label{position:absolute;right:18px;bottom:20px;z-index:1;text-align:right;pointer-events:none;text-shadow:0 2px 5px #000;padding:10px 12px;background:linear-gradient(90deg,transparent,#07101caa);min-width:180px}
.play-operator-label small{color:#c0ccda;letter-spacing:.12em;text-transform:uppercase}.play-operator-label h2{font:700 40px/.9 Teko;color:#fff}.play-operator-label span{color:#c0ccda;font:600 15px Rajdhani}
@media(max-width:1000px){.play-main{width:calc(100% - 310px);left:14px;top:104px;bottom:14px;gap:10px}.play-options{padding:3px 12px}.play-option{min-height:72px;gap:10px}.play-option-copy b{font-size:19px}.play-option-copy small{font-size:13px}.play-mode-grid{gap:9px}.play-mode-content{padding:9px}.play-mode-image{min-height:80px}.play-mode-title{gap:6px}.play-mode-title h2{font-size:20px}.play-mode-title small{font-size:10px}.play-mode-content p{font-size:13px}.play-start{min-height:44px;font-size:23px}.play-footnote{font-size:12px}.play-operator-label{right:5px;bottom:8px}}
@media(max-width:650px){.play-redesign{overflow-y:auto}.play-main{position:relative;left:auto;top:auto;bottom:auto;width:auto;margin:10px;gap:10px}.play-heading{height:45px;gap:12px}.play-heading .back{min-width:92px;height:40px}.play-heading h1{font-size:38px}.play-options{padding:2px 9px}.play-option{min-height:68px;gap:8px}.play-option-icon{width:30px;font-size:27px}.play-option-copy b{font-size:16px}.play-option-copy small{font-size:11px}.play-option select{width:36%;font-size:14px;padding:0 5px;height:40px}.play-option input[type=checkbox]{right:7px;width:34px;height:34px}.observer-check{width:32px;height:32px;margin-right:7px;font-size:22px}.play-mode-grid{grid-template-columns:1fr;flex:none}.play-mode-card{min-height:300px}.play-mode-image{height:130px;min-height:130px}.play-mode-content p{font-size:15px}.play-start{min-height:48px}.play-footnote{height:auto;min-height:54px;font-size:12px}.play-operator-label{display:none}}


/* Shared premium tactical menu system for the remaining screens */
.redesign-screen{position:absolute!important;inset:0!important;min-height:0;padding:104px 22px 22px!important;gap:13px!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom;background:linear-gradient(180deg,rgba(5,12,21,.96),rgba(4,9,16,.91))!important;border:0!important}
.redesign-screen>:not(.wv-header){flex:0 0 auto}
.redesign-screen>.wv-header{position:absolute;left:0;right:0;top:0}
.redesign-screen>.head{display:flex;align-items:center;gap:20px;margin:0 0 4px;min-height:48px}
.redesign-screen>.head h2{font:italic 700 clamp(30px,3vw,44px)/1 Rajdhani;color:#fff;letter-spacing:.02em}
.redesign-screen>.head h2:after{content:" //";color:#ff7624;letter-spacing:-.1em}
.redesign-screen>.head .back{min-width:130px;height:44px;border:1px solid #61758b;border-radius:8px;background:linear-gradient(110deg,#172334,#080f18);font:700 20px Teko}
.redesign-screen .box{background:linear-gradient(145deg,#0c1827f2,#07101bf2)!important;border:1px solid #42617b!important;border-radius:12px!important;box-shadow:0 6px 20px #0007,inset 0 0 18px #18314955;padding:14px!important}
.redesign-screen .box h3{font:italic 700 24px Rajdhani;color:#f5f7fb;border-bottom:1px solid #35536c;padding-bottom:8px;margin-bottom:10px}
.redesign-screen .tabs{display:flex;gap:8px;flex-wrap:wrap}
.redesign-screen .tabs button{border:1px solid #61758b;border-radius:8px;background:linear-gradient(110deg,#172334,#080f18);color:#e8eef6;padding:10px 14px;font:700 15px Rajdhani;text-transform:uppercase}
.redesign-screen .tabs button.on{border:2px solid #ff8d2b;background:linear-gradient(110deg,#f56a19,#a52a0d);box-shadow:0 0 13px #ff5a1f66}
.redesign-screen .grid{gap:10px}
.redesign-screen .card{background:linear-gradient(155deg,#142235,#080f19)!important;border:1px solid #4b657d!important;border-radius:11px!important;color:#f4f7fb;padding:13px!important;box-shadow:0 5px 14px #0007}
.redesign-screen .card.sel{border:2px solid #24c9ff!important;box-shadow:0 0 14px #14bfff66}
.redesign-screen .card.locked{opacity:.72}
.redesign-screen .card h3{font:700 21px Teko;color:#fff}
.redesign-screen .card p,.redesign-screen .dim{color:#bdcbd9}
.redesign-screen .btn{border:2px solid #ff922f;background:linear-gradient(110deg,#ff7620,#d8320b);box-shadow:0 0 12px #ff5a1f55;color:white;font:700 19px Teko}
.redesign-screen .btn.ghost{border:1px solid #61758b;background:linear-gradient(110deg,#172638,#0a121e);box-shadow:none;color:#e7eef6}
.redesign-screen .field select,.redesign-screen .field input:not([type=checkbox]):not([type=range]){background:#101d2b;border:1px solid #5d7891;border-radius:8px;color:#f4f7fb;padding:10px}
.redesign-screen table{border-collapse:separate!important;border-spacing:0!important;overflow:hidden;border:1px solid #34536e;border-radius:9px;background:#07111e}
.redesign-screen th{background:linear-gradient(90deg,#12304a,#0b1b2b);color:#eaf4ff;text-transform:uppercase;font:700 14px Rajdhani;padding:10px;border-bottom:1px solid #27bfff}
.redesign-screen td{padding:8px 10px;border-bottom:1px solid #263d53;color:#dce5ee}
.redesign-screen tr:nth-child(even) td{background:#102033aa}
.redesign-roster>.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.redesign-roster .two>.box:first-child{border-color:#22caff!important;box-shadow:0 0 12px #11bfff44}
.redesign-roster .two>.box:last-child{border-color:#ff493d!important;box-shadow:0 0 12px #ff392d44}
.redesign-roster .slot{display:grid!important;grid-template-columns:44px minmax(100px,1fr) minmax(100px,1fr) 90px 38px;gap:7px!important}
.redesign-roster .slot select{min-width:0;width:100%;background:#111e2d;color:#edf4fb;border:1px solid #536b82;border-radius:7px;padding:8px}
.redesign-weapons .grid{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
.redesign-weapons .card{min-height:175px;display:flex;flex-direction:column;justify-content:space-between}
.redesign-weapons .card.sel{border-color:#ff8b2b!important;box-shadow:0 0 14px #ff5a1f66}
.redesign-weapons table{font-size:13px}
.redesign-modes .grid{grid-template-columns:repeat(6,minmax(135px,1fr));align-items:stretch}
.redesign-modes .card{display:flex;flex-direction:column;min-height:260px}
.redesign-modes .card .btn,.redesign-modes .card .tag{margin-top:auto}
.redesign-maps .grid{grid-template-columns:repeat(6,minmax(140px,1fr))}
.redesign-maps .card{display:flex;flex-direction:column;min-height:250px}
.redesign-maps .card>div:first-child{height:125px!important;border:1px solid #526b84;border-radius:8px;box-shadow:inset 0 0 25px #0008}
.redesign-maps .card .tag{margin-top:auto}
.redesign-custom>.two{display:grid;grid-template-columns:1.05fr .95fr;gap:12px}
.redesign-custom>.two .field{display:grid;grid-template-columns:minmax(120px,1fr) minmax(150px,1.1fr);align-items:center;gap:10px}
.redesign-custom>.two .field span{font:600 17px Rajdhani;color:#e7eef6}
.redesign-prog>.box:first-of-type{border-color:#22caff!important}
.redesign-prog .xpbar{height:12px;border:1px solid #526b82;border-radius:8px;background:#172638;overflow:hidden}
.redesign-prog .xpbar i{display:block;height:100%;background:linear-gradient(90deg,#ff7624,#ffc44d);box-shadow:0 0 10px #ff8a2b}
.redesign-prog>.box:nth-of-type(2){border-color:#ff8d2b!important}
.redesign-prog>.box:nth-of-type(3),.redesign-prog>.box:nth-of-type(4){min-width:0}
.redesign-prog>.box:nth-of-type(3) .row,.redesign-prog>.box:nth-of-type(4) .row{padding:6px 0;border-bottom:1px solid #263c50}
.redesign-profile .stat{min-width:100px;text-align:center;border-color:#22bfff!important}
.redesign-profile .stat h3{font:700 26px Teko;border:0;margin:3px 0}
.redesign-profile>.box.row{align-items:center}
.redesign-board>.box,.redesign-board table{border:1px solid #22bfff!important;box-shadow:0 0 14px #16bfff44}
.redesign-board h3{font:italic 700 26px Rajdhani;color:#fff;border-bottom:2px solid #ff8d2b;padding:8px}
.redesign-settings>.tabs{margin-bottom:3px}
.redesign-settings>.box.two{display:grid;grid-template-columns:1fr 1fr;gap:6px 24px;border:2px solid #1ebfff!important;box-shadow:0 0 16px #12bfff44;padding:20px!important}
.redesign-settings .field{padding:8px 4px;border-bottom:1px solid #263e53}
.redesign-settings .field span{font:600 16px Rajdhani;color:#e6eef7}
.redesign-settings .field select{min-width:150px}
@media(max-width:1100px){.redesign-modes .grid,.redesign-maps .grid{grid-template-columns:repeat(3,minmax(140px,1fr))}.redesign-roster .slot{grid-template-columns:36px minmax(90px,1fr) minmax(90px,1fr) 72px 32px}.redesign-screen{padding-left:12px!important;padding-right:12px!important}}
@media(max-width:700px){.redesign-screen{padding:128px 10px 14px!important}.redesign-screen>.wv-header{height:auto;min-height:0;display:block;padding:6px 10px}.redesign-screen>.wv-header .wv-brand{height:48px;min-width:0;border:0;transform:none}.redesign-screen>.wv-header .wv-brand>svg{width:45px;height:40px}.redesign-screen>.wv-header .wv-brand>div{transform:none}.redesign-screen>.wv-header .wv-brand strong{font-size:25px}.redesign-screen>.wv-header .wv-brand small{font-size:9px}.redesign-screen>.wv-header .wv-topnav{height:55px;overflow-x:auto;justify-content:flex-start}.redesign-screen>.wv-header .wv-topnav button{min-width:70px;font-size:10px}.redesign-screen>.head{gap:8px}.redesign-screen>.head .back{min-width:85px;height:38px}.redesign-screen>.head h2{font-size:27px}.redesign-roster>.two,.redesign-custom>.two,.redesign-settings>.box.two{grid-template-columns:1fr}.redesign-roster .slot{grid-template-columns:36px minmax(0,1fr) minmax(0,1fr);}.redesign-roster .slot select:nth-of-type(2){grid-column:2}.redesign-roster .slot select:nth-of-type(3){grid-column:3}.redesign-roster .slot button{grid-column:1}.redesign-modes .grid,.redesign-maps .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.redesign-custom>.two .field{grid-template-columns:1fr}.redesign-profile .grid{grid-template-columns:repeat(3,minmax(0,1fr))}.redesign-screen table{min-width:620px}}


/* Character selection receives the same framing and operator showcase */
.redesign-chars{background:linear-gradient(90deg,rgba(4,8,14,.96),rgba(4,8,14,.82) 58%,rgba(4,8,14,.08) 100%)!important}
.redesign-chars>.tabs{max-width:820px}
.redesign-chars>.two{display:grid!important;grid-template-columns:minmax(280px,.9fr) minmax(300px,1.1fr);gap:12px;max-width:min(900px,72%)!important}
.redesign-chars>.two>.grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-content:stretch;max-height:65vh;overflow:auto}
.redesign-chars>.two>.grid .card{min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px}
.redesign-chars>.two>.grid .card.sel{border:2px solid #ff8d28!important;box-shadow:0 0 14px #ff5a1f88}
.redesign-chars>.two>.box{max-height:65vh;overflow:auto}
.redesign-chars>.two>.box h2{font:700 34px Teko;color:#fff}
.redesign-chars>.two>.box p{font:500 15px/1.25 Rajdhani;color:#d0dbe7}
.redesign-chars>.two>.box .row{display:flex;flex-wrap:wrap;gap:7px}
.redesign-chars>.two>.box .row .btn{min-height:40px}
@media(max-width:900px){.redesign-chars>.two{max-width:100%!important;grid-template-columns:minmax(200px,.8fr) minmax(240px,1.2fr)}.redesign-chars>.two>.grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.redesign-chars>.two>.grid .card{min-height:140px}}
@media(max-width:700px){.redesign-chars>.two{display:flex!important;flex-direction:column;max-width:100%!important}.redesign-chars>.two>.grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;max-height:none}.redesign-chars>.two>.grid .card{min-height:115px}.redesign-chars>.two>.box{max-height:none}}


/* Login / guest-profile screen, matching the supplied final reference */
.login-redesign{background:linear-gradient(90deg,rgba(3,8,16,.94) 0%,rgba(3,8,16,.86) 53%,rgba(3,8,16,.16) 100%)!important}
.login-redesign>.head{margin-bottom:24px}
.login-redesign>.head h2{font-size:clamp(30px,3.1vw,43px);letter-spacing:.025em}
.login-redesign>.head h2:after{content:"  //";color:#ff7b20;font-size:1.2em;letter-spacing:-.15em}
.login-card{width:min(100%,1000px);padding:22px 28px 26px;border:2px solid #20caff;border-radius:13px;background:linear-gradient(115deg,rgba(5,19,35,.97),rgba(6,22,40,.91));box-shadow:0 0 9px #13bfff,0 0 27px #08aaff55,inset 0 0 28px #0c5a8544;position:relative}
.login-card:before,.login-card:after{content:"";position:absolute;width:22px;height:22px;border-color:#ff9a27;border-style:solid;pointer-events:none}
.login-card:before{left:-2px;top:-2px;border-width:3px 0 0 3px;border-radius:10px 0 0}
.login-card:after{right:-2px;bottom:-2px;border-width:0 3px 3px 0;border-radius:0 0 10px}
.login-identity{display:grid;grid-template-columns:132px minmax(0,1fr);gap:24px;align-items:center;padding:0 0 18px;border-bottom:1px solid #28516d}
.login-identity>.por{width:124px!important;height:124px!important;border:2px solid #ff922b;box-shadow:0 0 12px #ff762c99,0 0 0 5px #ff8a2422}
.login-identity h3{font:700 29px/1.1 Rajdhani;color:#f5f8fc;margin:0 0 12px;border:0;padding:0}
.login-identity h3 span{color:#fff}
.login-identity p,.login-info p{font:500 18px/1.4 Rajdhani;color:#dbe5ef;margin:0}
.login-info{display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;align-items:center;padding:20px 0;border-bottom:1px solid #28516d}
.login-info-icon{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#ffb12d,#f36a08);box-shadow:0 0 14px #ff871c88;color:#101722;font:700 30px Georgia}
.login-actions{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.25fr);gap:22px;padding-top:20px}
.login-actions .btn{height:64px;display:flex;align-items:center;justify-content:center;gap:13px;white-space:normal;text-align:center;font:700 clamp(16px,1.55vw,23px) Teko;letter-spacing:.025em}
.login-actions .btn span{font:700 31px/1 Arial}
.login-actions .login-primary{border:2px solid #ff9b27;background:linear-gradient(110deg,#ff7a0b,#d92c05);box-shadow:0 0 9px #ff6b16,0 0 19px #ff4e1766,inset 0 0 12px #ffd15a55}
.login-actions .login-secondary{border:1px solid #527a9c;background:linear-gradient(110deg,#122b43,#081625);box-shadow:inset 0 0 12px #28618b55}
@media(max-width:700px){.login-redesign{padding-top:128px!important}.login-card{padding:16px}.login-identity{grid-template-columns:82px minmax(0,1fr);gap:14px}.login-identity>.por{width:78px!important;height:78px!important}.login-identity h3{font-size:22px}.login-identity p,.login-info p{font-size:15px}.login-info{grid-template-columns:38px minmax(0,1fr);gap:10px;padding:15px 0}.login-info-icon{width:35px;height:35px;font-size:25px}.login-actions{grid-template-columns:1fr;gap:10px;padding-top:15px}.login-actions .btn{height:54px;font-size:19px}}


/* MOBILE MENU SCROLLING — keep every menu screen reachable on touch devices.
   Menu roots own vertical scrolling; desktop gameplay canvas remains untouched. */
@media (max-width:1100px), (max-height:760px), (pointer:coarse) {
  #ui > .screen {
    min-height:0;
    max-height:100dvh;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-y:contain;
    touch-action:pan-y pinch-zoom;
  }

  .home-redesign {
    overflow-x:hidden!important;
    overflow-y:auto!important;
    align-items:stretch;
  }
  .home-redesign > .wv-header {
    height:auto;
    min-height:0;
    display:block;
    padding:8px 10px;
    flex:none;
  }
  .home-redesign .wv-brand {
    height:52px;
    min-width:0;
    border:0;
    transform:none;
    padding:0 4px;
  }
  .home-redesign .wv-brand>svg {width:48px;height:42px}
  .home-redesign .wv-brand>div {transform:none}
  .home-redesign .wv-brand strong {font-size:27px}
  .home-redesign .wv-brand small {font-size:10px}
  .home-redesign .wv-topnav {
    height:58px;
    overflow-x:auto;
    overflow-y:hidden;
    justify-content:flex-start;
    flex:none;
  }
  .home-redesign .wv-topnav button {min-width:72px;flex:0 0 auto;font-size:10px}
  .home-redesign .wv-topnav button span {font-size:20px}
  .home-redesign .wv-sidebar {
    position:relative;
    inset:auto;
    width:min(355px,calc(100% - 24px));
    margin:12px;
    flex:none;
  }
  .home-redesign .wv-playerbar {
    position:relative;
    inset:auto;
    width:calc(100% - 24px);
    max-width:470px;
    min-width:0;
    height:auto;
    margin:0 12px 10px;
    flex:none;
    flex-wrap:wrap;
  }
  .home-redesign .wv-wallet {
    position:relative;
    inset:auto;
    width:max-content;
    max-width:calc(100% - 24px);
    margin:0 12px 10px;
    flex:none;
  }
  .home-redesign .wv-operator {
    position:relative;
    inset:auto;
    align-self:flex-end;
    margin:0 12px 16px;
    flex:none;
  }

  .play-redesign {
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  .play-main {
    position:relative;
    inset:auto;
    width:auto;
    max-width:none;
    margin:10px 12px;
    flex:none;
  }
  .play-mode-grid {
    flex:none;
    min-height:0;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .play-mode-card {min-height:280px}
}

@media (max-width:650px) {
  .home-redesign .wv-sidebar {width:calc(100% - 24px)}
  .home-redesign .wv-playerbar {max-width:none}
  .play-mode-grid {grid-template-columns:1fr}
  .play-mode-card {min-height:300px}
}


/* Touch gameplay layer: stay above the HUD and occupy the live mobile viewport. */
#touch { height:100dvh; touch-action:none; -webkit-user-select:none; user-select:none; }


/* HOME MENU — match the full-size horizontal navigation used by inner screens.
   This specifically restores the desktop landscape layout on touch-capable PCs;
   narrow phone layouts keep their existing stacked, scrollable navigation. */
@media (min-width:1101px) and (min-height:761px) {
  .home-redesign > .wv-header {
    height:114px;
    min-height:114px;
    display:flex;
    align-items:stretch;
    gap:22px;
    padding:0 22px;
  }
  .home-redesign .wv-brand {
    height:auto;
    min-width:540px;
    border-right:3px solid #24bfff;
    transform:skew(-12deg);
    padding:0 28px 0 4px;
  }
  .home-redesign .wv-brand>svg {width:82px;height:64px}
  .home-redesign .wv-brand>div {transform:skew(12deg)}
  .home-redesign .wv-brand strong {font-size:44px}
  .home-redesign .wv-brand small {font-size:14px}
  .home-redesign .wv-topnav {
    height:auto;
    overflow:visible;
    justify-content:space-around;
    flex:1;
  }
  .home-redesign .wv-topnav button {
    min-width:0;
    flex:1 1 0;
    font-size:17px;
    padding:5px 4px;
  }
  .home-redesign .wv-topnav button span {font-size:29px}
  .home-redesign .wv-sidebar {
    position:absolute;
    inset:132px auto 16px 16px;
    width:455px;
    margin:0;
    padding:10px 12px;
    gap:6px;
  }
  .home-redesign .wv-sidebar button {
    min-height:58px;
    font-size:25px;
  }
  .home-redesign .wv-sidebar .wv-play {
    min-height:66px;
    font-size:40px;
  }
}


/* CONSISTENT FULL-SIZE MENU CHROME — applies to every menu screen and
   every device, including touch-first desktop browsers. On phones the
   navigation remains full-size and horizontally scrollable, never shrunk. */
.home-redesign > .wv-header,
.redesign-screen > .wv-header {
  box-sizing:border-box;
  z-index:10;
  display:flex!important;
  align-items:stretch;
  gap:22px;
  height:114px!important;
  min-height:114px!important;
  padding:0 22px!important;
  background:linear-gradient(180deg,rgba(5,9,16,.98),rgba(8,13,22,.94));
  border-bottom:2px solid #304052;
}
.home-redesign .wv-brand,
.redesign-screen .wv-brand {
  display:flex;
  align-items:center;
  gap:12px;
  height:auto!important;
  min-width:410px!important;
  padding:0 28px 0 4px!important;
  border-right:3px solid #24bfff!important;
  transform:skew(-12deg)!important;
}
.home-redesign .wv-brand>svg,
.redesign-screen .wv-brand>svg {width:82px!important;height:64px!important;flex:none}
.home-redesign .wv-brand>div,
.redesign-screen .wv-brand>div {display:flex;flex-direction:column;transform:skew(12deg)!important;line-height:.9}
.home-redesign .wv-brand strong,
.redesign-screen .wv-brand strong {font-size:44px!important}
.home-redesign .wv-brand small,
.redesign-screen .wv-brand small {font-size:14px!important}
.home-redesign .wv-topnav,
.redesign-screen .wv-topnav {
  display:flex;
  flex:1 1 auto;
  align-items:stretch;
  justify-content:space-around;
  gap:0;
  min-width:0;
  height:auto!important;
  overflow:visible;
}
.home-redesign .wv-topnav button,
.redesign-screen .wv-topnav button {
  display:flex;
  flex:1 1 0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:1px;
  min-width:0!important;
  min-height:0;
  padding:5px 4px!important;
  border:0;
  border-left:1px solid #354252;
  border-radius:0;
  background:transparent;
  color:#d1d9e4;
  font:700 17px Rajdhani,sans-serif!important;
  letter-spacing:.06em;
  white-space:nowrap;
}
.home-redesign .wv-topnav button span,
.redesign-screen .wv-topnav button span {font:700 29px/1 Arial,sans-serif!important}
.home-redesign .wv-topnav button.active,
.redesign-screen .wv-topnav button.active {color:#fff;background:linear-gradient(180deg,#142c43,#101923);border-bottom:3px solid #21baff}
.home-redesign .wv-topnav button.hot,
.redesign-screen .wv-topnav button.hot {color:#fff;background:linear-gradient(135deg,#a32b08,#ff6a18 52%,#9b280b);border:2px solid #ff8b25;border-radius:8px;box-shadow:inset 0 0 18px #ffb02c66,0 0 15px #ff5a1f66;transform:skew(-8deg)}
.home-redesign .wv-sidebar {
  width:455px;
  padding:10px 12px;
  gap:6px;
}
.home-redesign .wv-sidebar button {
  min-height:58px;
  padding:4px 14px;
  font-size:25px;
}
.home-redesign .wv-sidebar button i {font-size:27px}
.home-redesign .wv-sidebar .wv-play {min-height:66px;font-size:40px}

/* Keep the same physical control sizes on narrow mobile screens. The nav
   scrolls sideways instead of compressing labels/icons into tiny tabs. */
@media (max-width:1100px), (max-height:760px), (pointer:coarse) {
  .home-redesign > .wv-header,
  .redesign-screen > .wv-header {
    display:flex!important;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    height:178px!important;
    min-height:178px!important;
    padding:0 10px!important;
  }
  .home-redesign .wv-brand,
  .redesign-screen .wv-brand {
    flex:0 0 82px;
    width:100%;
    min-width:0!important;
    height:82px!important;
    padding:0 4px!important;
    border:0!important;
    transform:none!important;
  }
  .home-redesign .wv-brand>svg,
  .redesign-screen .wv-brand>svg {width:82px!important;height:64px!important}
  .home-redesign .wv-brand>div,
  .redesign-screen .wv-brand>div {transform:none!important}
  .home-redesign .wv-brand strong,
  .redesign-screen .wv-brand strong {font-size:40px!important}
  .home-redesign .wv-brand small,
  .redesign-screen .wv-brand small {font-size:13px!important}
  .home-redesign .wv-topnav,
  .redesign-screen .wv-topnav {
    flex:0 0 94px;
    width:100%;
    height:94px!important;
    overflow-x:auto!important;
    overflow-y:hidden;
    justify-content:flex-start;
    overscroll-behavior-x:contain;
    scrollbar-width:thin;
  }
  .home-redesign .wv-topnav button,
  .redesign-screen .wv-topnav button {
    flex:0 0 108px;
    width:108px;
    min-width:108px!important;
    height:90px;
    font-size:16px!important;
    padding:6px 5px!important;
  }
  .home-redesign .wv-topnav button span,
  .redesign-screen .wv-topnav button span {font-size:29px!important}
  .home-redesign .wv-sidebar {
    position:relative!important;
    inset:auto!important;
    width:calc(100% - 24px)!important;
    max-width:455px;
    margin:12px;
    padding:10px 12px;
  }
  .home-redesign .wv-sidebar button {
    min-height:58px!important;
    font-size:25px!important;
  }
  .home-redesign .wv-sidebar .wv-play {
    min-height:66px!important;
    font-size:36px!important;
  }
  .redesign-screen {padding-top:190px!important}
}


/* STICKY MENU CHROME — keep branding, navigation and page title/back controls
   visible while the menu content scrolls on every main-menu screen. */
.home-redesign,
.redesign-screen {
  scroll-padding-top: 0;
}
.home-redesign > .wv-header,
.redesign-screen > .wv-header {
  position:sticky!important;
  top:0!important;
  left:auto!important;
  right:auto!important;
  flex:0 0 auto!important;
  align-self:stretch;
  z-index:50!important;
  box-shadow:0 6px 18px #000b;
}
.redesign-screen {
  padding:0 22px 22px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
}
.redesign-screen > .head {
  position:sticky!important;
  top:0!important;
  z-index:40!important;
  flex:0 0 auto;
  min-height:62px!important;
  margin:0 -22px 4px!important;
  padding:8px 22px!important;
  background:linear-gradient(180deg,rgba(5,12,21,.99),rgba(5,12,21,.96));
  border-bottom:1px solid #30485e;
  box-shadow:0 5px 14px #0008;
}
.redesign-screen > .wv-header + .head {
  top:114px!important;
}
.redesign-screen > .head h2,
.redesign-screen > .head .back {
  flex:none;
}

/* Play uses a dedicated content pane; pin its title/back row within that pane. */
.play-main {
  overflow-y:auto;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
}
.play-heading {
  position:sticky!important;
  top:0!important;
  z-index:35!important;
  min-height:56px;
  padding:4px 0;
  background:linear-gradient(180deg,rgba(5,10,18,.99),rgba(5,10,18,.94));
  border-bottom:1px solid #30485e;
  box-shadow:0 5px 14px #0008;
}
.play-main {scroll-padding-top:0}

/* On touch/narrow screens the two-row full-size header is 178px tall.
   Keep the page title directly below it and preserve a stable scroll surface. */
@media (max-width:1100px), (max-height:760px), (pointer:coarse) {
  .home-redesign > .wv-header,
  .redesign-screen > .wv-header {
    position:sticky!important;
    top:0!important;
    flex:0 0 178px!important;
  }
  .redesign-screen {
    padding:0 10px 14px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  .redesign-screen > .head {
    top:0!important;
    margin:0 -10px 4px!important;
    padding:8px 10px!important;
    min-height:54px!important;
  }
  .redesign-screen > .wv-header + .head {
    top:178px!important;
  }
  .play-main {
    overflow-y:auto;
    max-height:calc(100dvh - 188px);
    margin:10px 12px;
  }
  .play-heading {
    top:0!important;
    min-height:56px;
  }
}


/* Observer HUD: keep the live score strip and minimap, remove player-only
   vitals, weapon, reticle and respawn widgets. The Tab scoreboard remains usable. */
#hud.observer-hud .bl,
#hud.observer-hud .br,
#hud.observer-hud #xh,
#hud.observer-hud #hm,
#hud.observer-hud .center,
#hud.observer-hud .sub,
#hud.observer-hud .dmg,
#hud.observer-hud .scope,
#hud.observer-hud .ind {display:none!important}
#hud.observer-hud .tc {z-index:8;top:max(10px,env(safe-area-inset-top));font-size:clamp(26px,3vw,38px)}
#hud.observer-hud .sc {min-width:64px;padding:2px 14px;background:rgba(3,8,15,.82);border:1px solid #52677e}
#hud.observer-hud .sc.a {border-bottom:3px solid var(--blue)}
#hud.observer-hud .sc.b {border-bottom:3px solid var(--red)}
#hud.observer-hud .board {z-index:12}

/* Home scene character preview supports direct mouse/touch rotation. */
body:not(.playing) canvas#view{cursor:grab}
body:not(.playing) canvas#view:active{cursor:grabbing}

/* Keep the selected operator caption pinned to the viewport, independent
   of scrolling menu panels and responsive layout changes. */
.play-operator-label {
  position:fixed!important;
  right:18px!important;
  bottom:18px!important;
  z-index:25!important;
  display:block!important;
  min-width:190px;
  max-width:min(280px,42vw);
  padding:10px 14px!important;
  background:linear-gradient(90deg,rgba(7,16,28,.45),rgba(7,16,28,.94))!important;
  border-right:2px solid #ff6424;
  border-radius:4px 0 0 4px;
}
@media(max-width:650px) {
  .play-operator-label {right:8px!important;bottom:8px!important;max-width:48vw;padding:7px 9px!important}
  .play-operator-label h2 {font-size:30px!important}
  .play-operator-label span {font-size:12px!important}
}

/* Keep the home operator card fixed in the viewport; the responsive menu
   stack otherwise pushes it below the fold on shorter browser windows. */
.home-redesign .wv-operator {
  position:fixed!important;
  right:18px!important;
  bottom:18px!important;
  left:auto!important;
  top:auto!important;
  z-index:28!important;
  align-self:auto!important;
  margin:0!important;
  min-width:210px;
  display:block!important;
  pointer-events:none;
}
@media(max-width:650px) {
  .home-redesign .wv-operator {
    right:8px!important;
    bottom:8px!important;
    min-width:140px;
    max-width:46vw;
    padding:6px 10px!important;
  }
  .home-redesign .wv-operator h2 {font-size:30px!important}
  .home-redesign .wv-operator span {font-size:12px!important}
}


/* Keep home-menu progression and currency panels anchored below the navbar. */
.home-redesign:not(.play-redesign)>.wv-playerbar,
.home-redesign:not(.play-redesign)>.wv-wallet{
  position:fixed;
  z-index:8;
  left:auto;
  right:max(12px,env(safe-area-inset-right));
}
.home-redesign:not(.play-redesign)>.wv-playerbar{
  top:calc(98px + env(safe-area-inset-top));
  width:min(470px,34vw);
}
.home-redesign:not(.play-redesign)>.wv-wallet{
  top:calc(164px + env(safe-area-inset-top));
}
@media(max-width:1050px){
  .home-redesign:not(.play-redesign)>.wv-playerbar{
    top:calc(98px + env(safe-area-inset-top));
    right:12px;
    width:min(420px,52vw);
  }
  .home-redesign:not(.play-redesign)>.wv-wallet{
    top:calc(164px + env(safe-area-inset-top));
    right:12px;
  }
}
@media(max-width:650px){
  .home-redesign:not(.play-redesign)>.wv-playerbar{
    top:calc(122px + env(safe-area-inset-top));
    right:8px;
    width:min(360px,calc(100vw - 16px));
  }
  .home-redesign:not(.play-redesign)>.wv-wallet{
    top:calc(184px + env(safe-area-inset-top));
    right:8px;
    display:flex;
    gap:8px;
    padding:6px 9px;
  }
}


/* Navbar-clearance correction: the home header includes both the brand row
   and the full navigation row, so anchor the fixed account panels below it. */
.home-redesign:not(.play-redesign)>.wv-playerbar{
  top:190px!important;
}
.home-redesign:not(.play-redesign)>.wv-wallet{
  top:254px!important;
}
@media(max-width:1050px){
  .home-redesign:not(.play-redesign)>.wv-playerbar{top:190px!important}
  .home-redesign:not(.play-redesign)>.wv-wallet{top:254px!important}
}
@media(max-width:650px){
  .home-redesign:not(.play-redesign)>.wv-playerbar{top:126px!important}
  .home-redesign:not(.play-redesign)>.wv-wallet{top:190px!important}
}


/* Compact the home sidebar so every destination fits without page scrolling. */
.home-redesign:not(.play-redesign)>.wv-sidebar{
  top:104px;
  bottom:10px;
  gap:4px;
  padding:8px 7px;
  overflow:hidden;
}
.home-redesign:not(.play-redesign)>.wv-sidebar button{
  min-height:0;
  flex:1 1 0;
  padding:2px 11px;
  font-size:clamp(17px,1.45vw,21px);
  line-height:.95;
}
.home-redesign:not(.play-redesign)>.wv-sidebar button i{
  font-size:23px;
}
.home-redesign:not(.play-redesign)>.wv-sidebar .wv-play{
  min-height:0;
  flex:1.12 1 0;
  font-size:clamp(25px,2vw,31px);
}
.home-redesign:not(.play-redesign)>.wv-sidebar .wv-play span{
  font-size:25px;
}
@media(max-height:760px) and (min-width:651px){
  .home-redesign:not(.play-redesign)>.wv-sidebar{top:96px;bottom:6px;gap:3px;padding:6px}
  .home-redesign:not(.play-redesign)>.wv-sidebar button{padding:1px 9px;font-size:17px}
  .home-redesign:not(.play-redesign)>.wv-sidebar button i{font-size:20px}
  .home-redesign:not(.play-redesign)>.wv-sidebar .wv-play{font-size:25px}
}


/* Bottom-center weapon selector: mouse wheel or direct tap/click. */
#weapon-wheel{
  position:fixed;
  z-index:8;
  left:50%;
  bottom:max(16px,env(safe-area-inset-bottom));
  transform:translateX(-50%);
  display:flex;
  align-items:stretch;
  justify-content:center;
  gap:8px;
  padding:7px;
  border:1px solid rgba(140,165,190,.5);
  border-radius:13px;
  background:rgba(7,12,19,.84);
  box-shadow:0 8px 28px rgba(0,0,0,.38);
  backdrop-filter:blur(8px);
  pointer-events:auto;
}
#weapon-wheel[hidden]{display:none}
.weapon-wheel-slot{
  min-width:112px;
  min-height:58px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  padding:5px 12px;
  border:1px solid rgba(130,155,180,.38);
  border-radius:8px;
  background:rgba(23,32,44,.92);
  color:#dbe5ef;
  font-family:inherit;
  cursor:pointer;
  touch-action:manipulation;
}
.weapon-wheel-slot.active{
  border-color:var(--acc);
  background:linear-gradient(145deg,rgba(255,100,35,.32),rgba(35,43,55,.96));
  box-shadow:inset 0 0 0 1px rgba(255,100,35,.45),0 0 14px rgba(255,90,31,.2);
  color:#fff;
}
.weapon-wheel-key{font-size:10px;color:#aebdca;line-height:1}
.weapon-wheel-slot strong{font-size:13px;line-height:1.1;white-space:nowrap}
.weapon-wheel-slot small{font-size:9px;letter-spacing:.12em;color:#aebdca}
@media(max-width:650px){
  #weapon-wheel{bottom:max(10px,env(safe-area-inset-bottom));gap:5px;padding:5px;max-width:calc(100vw - 12px)}
  .weapon-wheel-slot{min-width:0;min-height:54px;flex:1 1 0;padding:5px 8px}
  .weapon-wheel-slot strong{font-size:11px}
  .weapon-wheel-slot small{font-size:8px}
}


/* RESPONSIVE MAIN-MENU LAYOUT — fit the complete navigation on touch screens
   and keep the operator preview visible beside, not underneath, menu panels. */
@media (max-width:1100px), (max-height:760px), (pointer:coarse) {
  .home-redesign > .wv-header,
  .redesign-screen > .wv-header {
    height:auto!important;
    min-height:0!important;
    flex:0 0 auto!important;
    gap:0!important;
    padding:0 8px!important;
  }
  .home-redesign .wv-brand,
  .redesign-screen .wv-brand {
    flex:0 0 62px!important;
    height:62px!important;
    min-height:62px!important;
    padding:0 3px!important;
    gap:8px!important;
  }
  .home-redesign .wv-brand>svg,
  .redesign-screen .wv-brand>svg {width:54px!important;height:48px!important}
  .home-redesign .wv-brand strong,
  .redesign-screen .wv-brand strong {font-size:clamp(25px,5vw,34px)!important}
  .home-redesign .wv-brand small,
  .redesign-screen .wv-brand small {font-size:10px!important;letter-spacing:.16em}
  .home-redesign .wv-topnav,
  .redesign-screen .wv-topnav {
    display:grid!important;
    grid-template-columns:repeat(7,minmax(0,1fr));
    grid-auto-rows:minmax(52px,auto);
    flex:0 0 auto!important;
    height:auto!important;
    min-height:0!important;
    width:100%!important;
    overflow:visible!important;
    gap:2px!important;
  }
  .home-redesign .wv-topnav button,
  .redesign-screen .wv-topnav button {
    width:auto!important;
    min-width:0!important;
    min-height:52px!important;
    height:52px!important;
    padding:3px 1px!important;
    gap:2px!important;
    font-size:clamp(9px,1.65vw,13px)!important;
    line-height:1!important;
    letter-spacing:.015em!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
  }
  .home-redesign .wv-topnav button span,
  .redesign-screen .wv-topnav button span {font-size:clamp(16px,3vw,23px)!important}
  .home-redesign .wv-topnav button.hot,
  .redesign-screen .wv-topnav button.hot {transform:none!important;border-radius:5px!important}
  .redesign-screen {padding-top:0!important}
  .redesign-screen > .wv-header + .head {top:auto!important}
  .redesign-screen > .head {position:relative!important;top:auto!important}
  .home-redesign:not(.play-redesign)>.wv-sidebar {
    position:absolute!important;
    top:calc(62px + 52px + 12px)!important;
    bottom:12px!important;
    left:8px!important;
    width:min(34vw,330px)!important;
    max-width:330px!important;
    margin:0!important;
    overflow-y:auto!important;
    background:rgba(5,11,19,.78)!important;
    backdrop-filter:blur(5px);
  }
  .home-redesign:not(.play-redesign)>.wv-sidebar button {
    min-height:42px!important;
    flex:0 0 auto!important;
    font-size:clamp(12px,1.7vw,17px)!important;
    padding:4px 7px!important;
  }
  .home-redesign:not(.play-redesign)>.wv-sidebar .wv-play {
    min-height:48px!important;
    font-size:clamp(20px,2.8vw,28px)!important;
  }
  .home-redesign:not(.play-redesign)>.wv-playerbar {
    top:calc(62px + 52px + 10px)!important;
    right:8px!important;
    width:min(32vw,300px)!important;
    padding:7px 9px!important;
    font-size:13px!important;
  }
  .home-redesign:not(.play-redesign)>.wv-wallet {
    top:calc(62px + 52px + 68px)!important;
    right:8px!important;
    max-width:min(32vw,300px)!important;
    padding:6px 8px!important;
    font-size:12px!important;
  }
  .home-redesign .wv-operator {
    right:8px!important;
    bottom:10px!important;
    max-width:min(32vw,300px)!important;
    min-width:0!important;
    padding:7px 10px!important;
  }
  .home-redesign .wv-operator h2 {font-size:clamp(20px,3vw,30px)!important}
  .home-redesign .wv-operator span {font-size:11px!important}
  /* Character selection content stays in a left-side lane; the 3D operator
     remains visible in the unobstructed right-hand portion of the scene. */
  .redesign-chars > .two {
    position:relative;
    width:min(56vw,640px)!important;
    max-width:56vw!important;
    margin:8px 0 12px!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px!important;
  }
  .redesign-chars > .tabs,
  .redesign-chars > .note {max-width:56vw}
  .redesign-chars > .two .grid {grid-template-columns:repeat(auto-fill,minmax(54px,1fr))!important}
  .redesign-chars > .two .box {padding:10px!important}
  .redesign-chars > .two .row {flex-wrap:wrap!important}
}
@media (max-width:650px) {
  .home-redesign > .wv-header,
  .redesign-screen > .wv-header {padding:0 5px!important}
  .home-redesign .wv-topnav,
  .redesign-screen .wv-topnav {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-rows:46px!important;
    gap:2px!important;
  }
  .home-redesign .wv-topnav button,
  .redesign-screen .wv-topnav button {
    height:46px!important;
    min-height:46px!important;
    font-size:10px!important;
  }
  .home-redesign .wv-topnav button span,
  .redesign-screen .wv-topnav button span {font-size:19px!important}
  .home-redesign:not(.play-redesign)>.wv-sidebar {
    top:auto!important;
    bottom:max(8px,env(safe-area-inset-bottom))!important;
    left:6px!important;
    width:46vw!important;
    max-height:43dvh!important;
    padding:5px!important;
    gap:3px!important;
  }
  .home-redesign:not(.play-redesign)>.wv-sidebar button {
    min-height:34px!important;
    font-size:11px!important;
    line-height:1.05!important;
  }
  .home-redesign:not(.play-redesign)>.wv-sidebar button i {font-size:16px!important}
  .home-redesign:not(.play-redesign)>.wv-sidebar .wv-play {
    min-height:39px!important;
    font-size:21px!important;
  }
  .home-redesign:not(.play-redesign)>.wv-playerbar {
    top:calc(62px + 2 * 46px + 8px)!important;
    right:6px!important;
    width:46vw!important;
    max-width:46vw!important;
    font-size:11px!important;
  }
  .home-redesign:not(.play-redesign)>.wv-wallet {
    top:calc(62px + 2 * 46px + 66px)!important;
    right:6px!important;
    max-width:46vw!important;
    font-size:10px!important;
  }
  .home-redesign .wv-operator {
    right:6px!important;
    bottom:max(8px,env(safe-area-inset-bottom))!important;
    max-width:46vw!important;
    padding:5px 7px!important;
  }
  .home-redesign .wv-operator h2 {font-size:22px!important}
  .home-redesign .wv-operator small,
  .home-redesign .wv-operator span {font-size:9px!important}
  .redesign-chars > .two,
  .redesign-chars > .tabs,
  .redesign-chars > .note {
    width:52vw!important;
    max-width:52vw!important;
  }
  .redesign-chars > .two .grid {grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .redesign-chars > .two .card small {font-size:9px!important;overflow-wrap:anywhere}
  .redesign-chars > .two .box {font-size:12px!important}
}
@media (max-width:650px) and (orientation:landscape) {
  .home-redesign .wv-topnav,
  .redesign-screen .wv-topnav {
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    grid-auto-rows:43px!important;
  }
  .home-redesign .wv-topnav button,
  .redesign-screen .wv-topnav button {height:43px!important;min-height:43px!important;font-size:9px!important}
  .home-redesign:not(.play-redesign)>.wv-sidebar {
    top:calc(62px + 43px + 5px)!important;
    bottom:6px!important;
    max-height:none!important;
    width:34vw!important;
  }
  .home-redesign:not(.play-redesign)>.wv-playerbar {top:calc(62px + 43px + 5px)!important}
  .home-redesign:not(.play-redesign)>.wv-wallet {top:calc(62px + 43px + 58px)!important}
  .redesign-chars > .two,
  .redesign-chars > .tabs,
  .redesign-chars > .note {width:48vw!important;max-width:48vw!important}
}


/* Match deployment loading overlay. The menu 3D scene remains rendered
   underneath, leaving the selected operator visible and rotatable. */
.match-loading {
  position:fixed; inset:0; z-index:100;
  display:flex; align-items:center; justify-content:flex-start;
  padding:clamp(12px,3vw,42px);
  pointer-events:none;
  background:linear-gradient(90deg,rgba(3,8,15,.78) 0%,rgba(3,8,15,.42) 48%,rgba(3,8,15,.06) 100%);
}
.match-loading-card {
  width:min(470px, min(48vw, calc(100vw - 24px)));
  padding:clamp(16px,2.5vw,28px);
  border:1px solid rgba(112,155,190,.58);
  border-left:4px solid #ff6424;
  border-radius:12px;
  background:linear-gradient(145deg,rgba(7,15,26,.94),rgba(10,20,32,.84));
  box-shadow:0 18px 55px #0009,inset 0 1px #ffffff12;
  backdrop-filter:blur(9px);
  color:#edf4fc;
  font-family:Rajdhani,system-ui,sans-serif;
}
.match-loading-brand {display:flex;align-items:center;gap:10px;margin-bottom:clamp(14px,3vh,28px)}
.match-loading-brand>svg {width:38px;height:38px;line-height:1;flex:none}
.match-loading-brand div {display:flex;flex-direction:column;line-height:1}
.match-loading-brand b {font-size:26px;font-style:italic;letter-spacing:.1em}
.match-loading-brand small {font-size:10px;letter-spacing:.22em;color:#aab8c8}
.match-loading-kicker {font-size:11px;font-weight:800;letter-spacing:.22em;color:#ff9a45}
.match-loading-card h1 {font-size:clamp(25px,3.5vw,39px);line-height:1;margin:6px 0 18px;font-style:italic;letter-spacing:.03em}
.match-loading-stats {display:grid;grid-template-columns:1fr;gap:8px}
.match-loading-stats>div {display:flex;flex-direction:column;gap:1px;padding:8px 10px;border:1px solid #ffffff17;border-radius:6px;background:#ffffff08}
.match-loading-stats small {font-size:10px;letter-spacing:.17em;color:#9aabba;font-weight:700}
.match-loading-stats strong {font-size:clamp(16px,2vw,21px);line-height:1.1;overflow-wrap:anywhere}
.match-loading-progress {height:5px;margin-top:18px;border-radius:9px;background:#ffffff20;overflow:hidden}
.match-loading-progress i {display:block;width:42%;height:100%;border-radius:9px;background:linear-gradient(90deg,#ff5a1f,#ffc05a);box-shadow:0 0 14px #ff6424;animation:matchLoadSweep 1.1s ease-in-out infinite alternate}
.match-loading-card>p {margin:10px 0 0;font-size:10px;letter-spacing:.1em;color:#b8c4d1;line-height:1.35}
.match-loading-tip {display:block;margin-top:12px;color:#ffb16d;font-size:11px;letter-spacing:.04em}
@keyframes matchLoadSweep {from{transform:translateX(-5%);width:28%}to{transform:translateX(235%);width:42%}}
@media(max-width:650px) {
  .match-loading {align-items:flex-start;padding:12px;background:linear-gradient(90deg,rgba(3,8,15,.76),rgba(3,8,15,.22) 72%,transparent)}
  .match-loading-card {width:min(58vw,340px);padding:13px;border-radius:9px}
  .match-loading-brand {margin-bottom:12px}
  .match-loading-brand>span {font-size:30px}
  .match-loading-brand b {font-size:21px}
  .match-loading-card h1 {font-size:23px;margin-bottom:10px}
  .match-loading-stats {gap:5px}
  .match-loading-stats>div {padding:6px 8px}
  .match-loading-stats strong {font-size:15px}
  .match-loading-card>p {font-size:8px}
  .match-loading-tip {font-size:9px}
}
@media(max-width:650px) and (orientation:landscape) {
  .match-loading {padding:8px}
  .match-loading-card {width:min(42vw,330px);padding:9px 12px}
  .match-loading-brand {margin-bottom:7px}
  .match-loading-brand>span {font-size:25px}
  .match-loading-brand b {font-size:18px}
  .match-loading-brand small {font-size:8px}
  .match-loading-card h1 {font-size:19px;margin:4px 0 7px}
  .match-loading-stats {grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  .match-loading-stats>div {padding:5px}
  .match-loading-stats small {font-size:8px}
  .match-loading-stats strong {font-size:12px}
  .match-loading-progress {margin-top:8px}
  .match-loading-card>p,.match-loading-tip {font-size:8px;margin-top:5px}
}


/* Unified main navigation: brand and all destinations share one horizontal bar
   on every main-menu page and every viewport size. */
.home-redesign > .wv-header,
.redesign-screen > .wv-header {
  position:sticky!important;
  top:0!important;
  left:0!important;
  right:0!important;
  z-index:40!important;
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:stretch!important;
  gap:8px!important;
  width:100%!important;
  height:76px!important;
  min-height:76px!important;
  flex:0 0 76px!important;
  padding:0 10px!important;
  overflow:hidden!important;
}
.home-redesign .wv-brand,
.redesign-screen .wv-brand {
  flex:0 0 clamp(260px,19vw,360px)!important;
  width:auto!important;
  min-width:0!important;
  height:100%!important;
  min-height:0!important;
  padding:0 10px 0 2px!important;
  gap:8px!important;
  border:0!important;
  border-right:1px solid #3b5269!important;
  box-shadow:none!important;
  transform:none!important;
}
.home-redesign .wv-brand>svg,
.redesign-screen .wv-brand>svg {
  width:clamp(36px,4vw,54px)!important;
  height:48px!important;
  flex:none!important;
}
.home-redesign .wv-brand>div,
.redesign-screen .wv-brand>div {transform:none!important;min-width:0}
.home-redesign .wv-brand strong,
.redesign-screen .wv-brand strong {
  font-size:clamp(18px,1.6vw,30px)!important;
  white-space:nowrap!important;
}
.home-redesign .wv-brand small,
.redesign-screen .wv-brand small {
  font-size:clamp(8px,1vw,11px)!important;
  letter-spacing:.12em!important;
  white-space:nowrap!important;
}
.home-redesign .wv-topnav,
.redesign-screen .wv-topnav {
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  grid-auto-flow:column!important;
  grid-auto-columns:minmax(0,1fr)!important;
  flex:1 1 0!important;
  width:0!important;
  min-width:0!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  gap:2px!important;
  align-items:stretch!important;
}
.home-redesign .wv-topnav button,
.redesign-screen .wv-topnav button {
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  padding:2px 1px!important;
  gap:2px!important;
  border:0!important;
  border-left:1px solid #354252!important;
  border-radius:0!important;
  transform:none!important;
  font-size:clamp(8px,1vw,12px)!important;
  line-height:1!important;
  letter-spacing:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
}
.home-redesign .wv-topnav button span,
.redesign-screen .wv-topnav button span {
  font-size:clamp(14px,1.8vw,22px)!important;
  line-height:1!important;
}
.home-redesign .wv-topnav button.hot,
.redesign-screen .wv-topnav button.hot {
  border:1px solid #ff8b25!important;
  border-radius:5px!important;
}
.redesign-screen {padding-top:90px!important}
.redesign-screen > .wv-header + .head {top:0!important}
.home-redesign:not(.play-redesign)>.wv-sidebar {top:90px!important}
.home-redesign:not(.play-redesign)>.wv-playerbar {top:90px!important}
.home-redesign:not(.play-redesign)>.wv-wallet {top:154px!important}

@media(max-width:650px) {
  .home-redesign > .wv-header,
  .redesign-screen > .wv-header {
    display:flex!important;
    flex-flow:row nowrap!important;
    height:66px!important;
    min-height:66px!important;
    flex:0 0 66px!important;
    padding:0 4px!important;
    gap:3px!important;
  }
  .home-redesign .wv-brand,
  .redesign-screen .wv-brand {
    flex:0 0 104px!important;
    width:104px!important;
    min-width:104px!important;
    height:100%!important;
    padding:0 4px 0 0!important;
    gap:4px!important;
  }
  .home-redesign .wv-brand>svg,
  .redesign-screen .wv-brand>svg {width:30px!important;height:38px!important}
  .home-redesign .wv-brand strong,
  .redesign-screen .wv-brand strong {font-size:10px!important;line-height:.9!important;letter-spacing:0!important;white-space:normal!important}
  .home-redesign .wv-brand small,
  .redesign-screen .wv-brand small {display:none!important}
  .home-redesign .wv-topnav,
  .redesign-screen .wv-topnav {
    display:grid!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    grid-auto-flow:column!important;
    flex:1 1 0!important;
    width:0!important;
    height:100%!important;
    overflow:hidden!important;
    gap:1px!important;
  }
  .home-redesign .wv-topnav button,
  .redesign-screen .wv-topnav button {
    min-width:0!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    padding:2px 0!important;
    gap:2px!important;
    font-size:clamp(6px,2vw,9px)!important;
    line-height:1!important;
    letter-spacing:-.025em!important;
    overflow-wrap:anywhere!important;
  }
  .home-redesign .wv-topnav button span,
  .redesign-screen .wv-topnav button span {font-size:15px!important}
  .redesign-screen {padding:0 8px 12px!important}
  .redesign-screen > .head {margin:0 -8px 4px!important;padding:8px!important}
  .home-redesign:not(.play-redesign)>.wv-sidebar {top:78px!important}
  .home-redesign:not(.play-redesign)>.wv-playerbar {top:78px!important}
  .home-redesign:not(.play-redesign)>.wv-wallet {top:140px!important}
}


/* The featured operator caption belongs on the home screen only.
   Keep the operator preview itself visible on every menu page. */
.play-redesign .play-operator-label,
.redesign-screen .play-operator-label {
  display:none!important;
}


/* The Play screen has its own operator caption; hide it directly.
   The home screen uses .wv-operator and is intentionally unaffected. */
.play-operator-label {
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}


/* The shared navbar now participates in normal layout flow.
   Remove the legacy top reservation that was used when it was absolute. */
.redesign-screen {
  padding-top:0!important;
}


/* The unified primary navbar replaces the redundant per-page title/back bar. */
.redesign-screen > .head {
  display:none!important;
}


/* Let the Play setup and mode cards use the full space below the navbar. */
.play-redesign {
  overflow-y:auto!important;
}
.play-main {
  top:90px!important;
  bottom:0!important;
  min-height:0!important;
}
.play-mode-grid {
  min-height:0!important;
  flex:1 1 auto!important;
}
@media(max-width:650px) {
  .play-main {
    top:auto!important;
    bottom:auto!important;
    min-height:calc(100dvh - 76px)!important;
  }
  .play-mode-grid {
    flex:1 0 auto!important;
  }
}


/* Play is laid out directly after the shared navbar; no secondary title bar. */
.play-redesign > .play-main {
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  top:auto!important;
  bottom:auto!important;
  width:auto!important;
  min-height:0!important;
  margin:0 14px 14px!important;
  gap:12px!important;
}
.play-redesign > .play-main > .play-heading {
  display:none!important;
}
.play-redesign > .play-main > .play-options {
  margin-top:0!important;
}
@media(max-width:650px) {
  .play-redesign > .play-main {
    position:relative!important;
    inset:auto!important;
    width:auto!important;
    min-height:0!important;
    margin:0 10px 10px!important;
  }
}


/* Make the Play content column consume the remaining viewport height.
   Its mode grid can then expand instead of collapsing above unused space. */
.play-redesign {
  display:flex!important;
  flex-direction:column!important;
  min-height:100%!important;
}
.play-redesign > .play-main {
  flex:1 1 0!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
}
.play-redesign > .play-main > .play-mode-grid {
  flex:1 1 0!important;
  min-height:220px!important;
  align-content:stretch!important;
}
@media(max-width:650px) {
  .play-redesign {
    min-height:100%!important;
  }
  .play-redesign > .play-main {
    flex:0 0 auto!important;
  }
  .play-redesign > .play-main > .play-mode-grid {
    flex:0 0 auto!important;
    min-height:0!important;
  }
}


/* Give the Play page a definite viewport-sized content region. The prior
   flex rules had no reliable height basis on Android landscape, so the mode
   grid could collapse while the lower viewport remained unused. */
.play-redesign {
  height:100dvh!important;
  min-height:100dvh!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-bottom:0!important;
}
.play-redesign > .wv-header {
  flex:0 0 76px!important;
}
.play-redesign > .play-main {
  flex:1 0 auto!important;
  height:calc(100dvh - 90px)!important;
  min-height:0!important;
  margin:0 14px!important;
  padding-bottom:12px!important;
}
.play-redesign > .play-main > .play-mode-grid {
  display:grid!important;
  grid-template-rows:minmax(260px,1fr)!important;
  flex:1 1 0!important;
  min-height:260px!important;
}
.play-redesign > .play-main > .play-mode-grid > .play-mode-card {
  min-height:260px!important;
}
@media(max-width:650px) {
  .play-redesign > .wv-header {
    flex:0 0 66px!important;
  }
  .play-redesign > .play-main {
    height:auto!important;
    min-height:0!important;
    flex:0 0 auto!important;
    margin:0 10px 10px!important;
  }
  .play-redesign > .play-main > .play-mode-grid {
    grid-template-rows:none!important;
    grid-template-columns:1fr!important;
    flex:0 0 auto!important;
    min-height:0!important;
  }
  .play-redesign > .play-main > .play-mode-grid > .play-mode-card {
    min-height:300px!important;
  }
}


/* Anchor Play content to the actual viewport below the shared navbar.
   Previous relative/flex sizing was still constrained by legacy layout rules,
   exposing the 3D scene through the lower part of the Play screen. */
.play-redesign {
  position:absolute!important;
  inset:0!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
.play-redesign > .wv-header {
  position:absolute!important;
  top:0!important;
  left:0!important;
  right:0!important;
  height:76px!important;
  min-height:76px!important;
  z-index:5!important;
}
.play-redesign > .play-main {
  position:absolute!important;
  top:76px!important;
  left:14px!important;
  right:14px!important;
  bottom:0!important;
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:12px 0 14px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.play-redesign > .play-main > .play-options {
  flex:0 0 auto!important;
}
.play-redesign > .play-main > .play-mode-grid {
  flex:1 0 260px!important;
  min-height:260px!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:minmax(260px,1fr)!important;
}
.play-redesign > .play-main > .play-mode-grid > .play-mode-card {
  min-height:260px!important;
}
.play-redesign > .play-main > .play-footnote {
  flex:0 0 auto!important;
}
@media(max-width:650px) {
  .play-redesign > .wv-header {
    height:66px!important;
    min-height:66px!important;
  }
  .play-redesign > .play-main {
    top:66px!important;
    left:10px!important;
    right:10px!important;
    bottom:0!important;
    padding:10px 0!important;
  }
  .play-redesign > .play-main > .play-mode-grid {
    flex:0 0 auto!important;
    grid-template-columns:1fr!important;
    grid-auto-rows:auto!important;
  }
  .play-redesign > .play-main > .play-mode-grid > .play-mode-card {
    min-height:300px!important;
  }
}


/* Final Play viewport correction: size the screen root itself, not just
   its children. This overrides the legacy .screen absolute/padded box. */
#ui > .screen.play-redesign {
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:none!important;
  box-sizing:border-box!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  display:block!important;
  background:linear-gradient(180deg,rgba(4,8,14,.97),rgba(4,8,14,.95))!important;
}
#ui > .screen.play-redesign > .wv-header {
  position:absolute!important;
  inset:0 0 auto 0!important;
  width:100%!important;
  height:76px!important;
  min-height:76px!important;
  max-height:76px!important;
  margin:0!important;
}
#ui > .screen.play-redesign > .play-main {
  position:absolute!important;
  top:76px!important;
  left:14px!important;
  right:14px!important;
  bottom:0!important;
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:12px 0 14px!important;
  box-sizing:border-box!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
#ui > .screen.play-redesign > .play-main > .play-mode-grid {
  flex:1 0 260px!important;
  min-height:260px!important;
}
@media(max-width:650px) {
  #ui > .screen.play-redesign > .wv-header {
    height:66px!important;
    min-height:66px!important;
    max-height:66px!important;
  }
  #ui > .screen.play-redesign > .play-main {
    top:66px!important;
    left:10px!important;
    right:10px!important;
    padding:10px 0!important;
  }
  #ui > .screen.play-redesign > .play-main > .play-mode-grid {
    flex:0 0 auto!important;
    grid-template-columns:1fr!important;
  }
}


/* Compact Play mode cards on touch devices, including landscape phones whose
   CSS viewport is wider than the narrow-phone breakpoint. */
@media (pointer:coarse), (max-height:760px) {
  .play-redesign .play-mode-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:minmax(0,1fr)!important;
    gap:8px!important;
  }
  .play-redesign .play-mode-card {
    min-height:0!important;
    height:clamp(170px,32dvh,230px)!important;
    border-radius:10px!important;
  }
  .play-redesign .play-mode-image {
    height:clamp(54px,10dvh,76px)!important;
    min-height:54px!important;
  }
  .play-redesign .play-mode-image span {font-size:clamp(30px,5vw,42px)!important}
  .play-redesign .play-mode-content {padding:7px 10px 9px!important}
  .play-redesign .play-mode-title {min-height:30px!important;gap:7px!important}
  .play-redesign .play-mode-title h2 {font-size:clamp(15px,2.2vw,19px)!important;line-height:1.05!important}
  .play-redesign .play-mode-title small {font-size:9px!important}
  .play-redesign .play-mode-icon {font-size:25px!important}
  .play-redesign .play-mode-content p {font-size:clamp(11px,1.55vw,13px)!important;line-height:1.2!important;margin:4px 0!important}
  .play-redesign .play-start {min-height:36px!important;height:36px!important;font-size:19px!important;margin-top:auto!important}
}
@media (pointer:coarse) and (max-width:650px) {
  .play-redesign .play-mode-grid {grid-template-columns:1fr!important}
  .play-redesign .play-mode-card {height:190px!important}
}

/* Keep every desktop mode card and its Start button within the available
   Play viewport instead of sending the third card below the fold. */
@media (min-width:1101px) and (min-height:850px) and (pointer:fine) {
  #ui > .screen.play-redesign > .play-main > .play-mode-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:minmax(0,1fr)!important;
    grid-auto-rows:minmax(0,1fr)!important;
    min-height:0!important;
    flex:1 1 0!important;
  }
  #ui > .screen.play-redesign .play-mode-card {
    height:100%!important;
    min-height:0!important;
  }
  #ui > .screen.play-redesign .play-mode-content {
    padding-bottom:18px!important;
  }
  #ui > .screen.play-redesign .play-start {
    flex:0 0 48px!important;
    min-height:48px!important;
    height:48px!important;
  }
}


/* Compact player-count and observer controls into two side-by-side cards
   on phones, including portrait orientation. */
@media (pointer:coarse), (max-width:760px) {
  #ui > .screen.play-redesign > .play-main > .play-options {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    align-items:stretch!important;
    gap:8px!important;
    padding:8px!important;
    border-radius:10px!important;
  }
  #ui > .screen.play-redesign .play-option {
    min-width:0!important;
    min-height:112px!important;
    height:112px!important;
    padding:8px!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:5px!important;
    border:1px solid #344355!important;
    border-radius:8px!important;
    position:relative!important;
  }
  #ui > .screen.play-redesign .play-option+.play-option {
    border-top:1px solid #344355!important;
  }
  #ui > .screen.play-redesign .play-option-icon {
    display:none!important;
  }
  #ui > .screen.play-redesign .play-option-copy {
    flex:0 0 auto!important;
    width:100%!important;
    gap:2px!important;
  }
  #ui > .screen.play-redesign .play-option-copy b {
    font-size:clamp(12px,2.6vw,16px)!important;
    line-height:1.05!important;
    white-space:normal!important;
  }
  #ui > .screen.play-redesign .play-option-copy small {
    display:none!important;
  }
  #ui > .screen.play-redesign .play-option select {
    width:100%!important;
    max-width:none!important;
    height:36px!important;
    margin-top:auto!important;
    padding:0 7px!important;
    font-size:14px!important;
  }
  #ui > .screen.play-redesign .play-option input[type="checkbox"] {
    position:absolute!important;
    right:8px!important;
    bottom:8px!important;
    width:34px!important;
    height:34px!important;
    opacity:0!important;
  }
  #ui > .screen.play-redesign .observer-check {
    width:34px!important;
    height:34px!important;
    margin:auto 0 0 auto!important;
    font-size:21px!important;
  }
}


/* Keep the bottom-right selected-operator card fully inside the viewport. */
.home-redesign .wv-operator {
  right:max(18px,env(safe-area-inset-right))!important;
  bottom:max(18px,env(safe-area-inset-bottom))!important;
  width:max-content!important;
  max-width:calc(100vw - 36px)!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow-wrap:anywhere;
}
.home-redesign .wv-operator h2,
.home-redesign .wv-operator small,
.home-redesign .wv-operator span {
  max-width:100%;
}
@media(max-width:650px) {
  .home-redesign .wv-operator {
    right:max(8px,env(safe-area-inset-right))!important;
    bottom:max(8px,env(safe-area-inset-bottom))!important;
    max-width:calc(100vw - 16px)!important;
  }
}


/* One-line compact controls: each option label and its control share a row. */
@media (pointer:coarse), (max-width:760px) {
  #ui > .screen.play-redesign > .play-main > .play-options {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:8px!important;
    padding:7px!important;
  }
  #ui > .screen.play-redesign .play-option {
    height:64px!important;
    min-height:64px!important;
    padding:7px 9px!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:6px!important;
  }
  #ui > .screen.play-redesign .play-option-copy {
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    align-self:center!important;
  }
  #ui > .screen.play-redesign .play-option-copy b {
    display:block!important;
    font-size:clamp(11px,2.2vw,15px)!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  #ui > .screen.play-redesign .play-option select {
    flex:0 1 46%!important;
    width:46%!important;
    min-width:0!important;
    height:38px!important;
    margin:0!important;
    font-size:clamp(11px,2vw,14px)!important;
    padding:0 5px!important;
  }
  #ui > .screen.play-redesign .play-option input[type="checkbox"] {
    position:absolute!important;
    right:6px!important;
    bottom:auto!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:34px!important;
    height:34px!important;
  }
  #ui > .screen.play-redesign .observer-check {
    flex:0 0 34px!important;
    width:34px!important;
    height:34px!important;
    margin:0 0 0 auto!important;
  }
}
@media(max-width:380px) {
  #ui > .screen.play-redesign .play-option {padding:6px!important;gap:4px!important}
  #ui > .screen.play-redesign .play-option-copy b {font-size:10px!important}
  #ui > .screen.play-redesign .play-option select {font-size:10px!important}
}


/* Compact Play mode cards to roughly half their previous mobile height. */
@media (pointer:coarse), (max-width:1000px) {
  #ui > .screen.play-redesign > .play-main > .play-mode-grid {
    grid-auto-rows:minmax(0,150px)!important;
    grid-template-rows:none!important;
    min-height:0!important;
    flex:0 0 auto!important;
    gap:10px!important;
  }
  #ui > .screen.play-redesign .play-mode-card {
    height:150px!important;
    min-height:150px!important;
    max-height:150px!important;
  }
  #ui > .screen.play-redesign .play-mode-image {
    height:52px!important;
    min-height:52px!important;
    flex:0 0 52px!important;
  }
  #ui > .screen.play-redesign .play-mode-image span {
    font-size:34px!important;
  }
  #ui > .screen.play-redesign .play-mode-content {
    min-height:0!important;
    padding:6px 10px 8px!important;
    gap:2px!important;
  }
  #ui > .screen.play-redesign .play-mode-title {
    min-height:26px!important;
    gap:6px!important;
  }
  #ui > .screen.play-redesign .play-mode-icon {
    font-size:22px!important;
  }
  #ui > .screen.play-redesign .play-mode-title h2 {
    font-size:clamp(15px,2vw,20px)!important;
  }
  #ui > .screen.play-redesign .play-mode-title small {
    font-size:10px!important;
  }
  #ui > .screen.play-redesign .play-mode-content p {
    font-size:clamp(11px,1.5vw,14px)!important;
    line-height:1.05!important;
    margin:2px 0!important;
  }
  #ui > .screen.play-redesign .play-start {
    min-height:32px!important;
    height:32px!important;
    font-size:19px!important;
    margin-top:auto!important;
  }
}
@media(max-width:650px) {
  #ui > .screen.play-redesign > .play-main > .play-mode-grid {
    grid-template-columns:1fr!important;
  }
}


/* Home overlay correction: give the progression and currency panels
   independent, non-overlapping slots below the two-row mobile navbar. */
@media (max-width:1100px), (max-height:760px), (pointer:coarse) {
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-playerbar {
    position:fixed!important;
    top:calc(62px + 52px + 10px + env(safe-area-inset-top))!important;
    right:8px!important;
    left:auto!important;
    width:min(32vw,360px)!important;
    max-width:min(32vw,360px)!important;
    min-width:0!important;
    height:66px!important;
    min-height:66px!important;
    max-height:66px!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:auto auto minmax(48px,1fr)!important;
    grid-template-rows:1fr auto!important;
    align-items:center!important;
    gap:2px 8px!important;
    padding:5px 9px!important;
    overflow:hidden!important;
  }
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-playerbar strong {
    grid-column:1!important;grid-row:1!important;min-width:0!important;
    overflow:hidden!important;text-overflow:ellipsis!important;font-size:15px!important;
  }
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-playerbar .wv-level {
    grid-column:2!important;grid-row:1!important;padding:3px!important;font-size:15px!important;
  }
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-playerbar .wv-xp {
    grid-column:3!important;grid-row:1!important;width:100%!important;min-width:0!important;
  }
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-playerbar small {
    grid-column:1 / -1!important;grid-row:2!important;
    min-width:0!important;font-size:10px!important;line-height:1!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-wallet {
    position:fixed!important;
    top:calc(62px + 52px + 10px + 66px + 14px + env(safe-area-inset-top))!important;
    right:8px!important;left:auto!important;
    width:min(32vw,360px)!important;
    max-width:min(32vw,360px)!important;
    min-width:0!important;
    min-height:46px!important;
    height:auto!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:5px 8px!important;
    padding:7px 9px!important;
    overflow:visible!important;
  }
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-wallet b {
    font-size:clamp(12px,1.5vw,16px)!important;
  }
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-wallet .chip {
    max-width:100%!important;font-size:9px!important;white-space:normal!important;
  }
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-operator {
    position:fixed!important;
    right:max(12px,env(safe-area-inset-right))!important;
    bottom:max(18px,env(safe-area-inset-bottom))!important;
    left:auto!important;top:auto!important;
    width:min(250px,34vw)!important;
    min-width:0!important;max-width:calc(100vw - 24px)!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    box-sizing:border-box!important;
    padding:8px 12px!important;
    overflow:visible!important;
    clip-path:none!important;
    z-index:30!important;
  }
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-operator small,
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-operator h2,
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-operator span {
    display:block!important;max-width:100%!important;overflow-wrap:anywhere!important;
  }
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-operator h2 {
    font-size:clamp(22px,2.5vw,32px)!important;line-height:1!important;margin:2px 0!important;
  }
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-operator span {
    font-size:clamp(11px,1.1vw,14px)!important;line-height:1.1!important;
  }
}
@media (max-width:650px) {
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-playerbar,
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-wallet {
    width:46vw!important;max-width:46vw!important;right:6px!important;
  }
  #ui > .screen.home-redesign:not(.play-redesign) > .wv-operator {
    right:8px!important;bottom:max(12px,env(safe-area-inset-bottom))!important;
    width:min(46vw,240px)!important;padding:7px 9px!important;
  }
}


/* Home account panels: compact fixed-height layout using the established
   home-screen selectors (not #ui ancestry assumptions). */
.home-redesign:not(.play-redesign)>.wv-playerbar {
  height:72px!important;
  min-height:72px!important;
  max-height:72px!important;
  box-sizing:border-box!important;
  padding:6px 10px!important;
  gap:4px 8px!important;
  overflow:hidden!important;
}
.home-redesign:not(.play-redesign)>.wv-playerbar strong {font-size:16px!important}
.home-redesign:not(.play-redesign)>.wv-playerbar small {
  font-size:10px!important;line-height:1!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
}
.home-redesign:not(.play-redesign)>.wv-wallet {
  top:274px!important;
  min-height:48px!important;
  height:48px!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:nowrap!important;
  gap:6px!important;
  padding:5px 9px!important;
  overflow:hidden!important;
}
.home-redesign:not(.play-redesign)>.wv-wallet b {
  font-size:15px!important;line-height:1!important;
}
.home-redesign:not(.play-redesign)>.wv-wallet .chip {
  font-size:9px!important;white-space:nowrap!important;
}
@media(max-width:650px) {
  .home-redesign:not(.play-redesign)>.wv-playerbar {
    top:126px!important;
    height:64px!important;min-height:64px!important;max-height:64px!important;
    width:min(46vw,300px)!important;
  }
  .home-redesign:not(.play-redesign)>.wv-wallet {
    top:202px!important;
    width:min(46vw,300px)!important;
    height:46px!important;min-height:46px!important;
  }
}


/* Shorten the home progression and currency panels so they occupy a
   compact right-side column instead of stretching across the scene. */
@media (max-width:1100px), (max-height:760px), (pointer:coarse) {
  .home-redesign:not(.play-redesign) > .wv-playerbar,
  .home-redesign:not(.play-redesign) > .wv-wallet {
    width:min(24vw,300px)!important;
    max-width:min(24vw,300px)!important;
  }
}
@media (max-width:650px) {
  .home-redesign:not(.play-redesign) > .wv-playerbar,
  .home-redesign:not(.play-redesign) > .wv-wallet {
    width:min(40vw,250px)!important;
    max-width:min(40vw,250px)!important;
    right:8px!important;
  }
  .home-redesign:not(.play-redesign) > .wv-playerbar {
    grid-template-columns:auto auto minmax(28px,1fr)!important;
    gap:2px 5px!important;
    padding:5px 7px!important;
  }
  .home-redesign:not(.play-redesign) > .wv-playerbar strong {
    font-size:13px!important;
  }
  .home-redesign:not(.play-redesign) > .wv-playerbar .wv-level {
    font-size:13px!important;
  }
  .home-redesign:not(.play-redesign) > .wv-wallet {
    gap:4px!important;
    padding:5px 7px!important;
  }
  .home-redesign:not(.play-redesign) > .wv-wallet b {
    font-size:12px!important;
  }
  .home-redesign:not(.play-redesign) > .wv-wallet .chip {
    font-size:8px!important;
  }
}


/* Compact Home account panels: override the earlier broad sizing rules. */
#ui .screen.home-redesign:not(.play-redesign) > .wv-playerbar,
#ui .screen.home-redesign:not(.play-redesign) > .wv-wallet {
  width:210px!important;
  max-width:210px!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
#ui .screen.home-redesign:not(.play-redesign) > .wv-playerbar {
  grid-template-columns:auto auto minmax(24px,1fr)!important;
  gap:2px 5px!important;
  padding:5px 7px!important;
}
#ui .screen.home-redesign:not(.play-redesign) > .wv-playerbar strong {font-size:13px!important}
#ui .screen.home-redesign:not(.play-redesign) > .wv-playerbar small {font-size:9px!important}
#ui .screen.home-redesign:not(.play-redesign) > .wv-wallet {
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:flex-start!important;
  gap:3px 6px!important;
  padding:5px 7px!important;
}
#ui .screen.home-redesign:not(.play-redesign) > .wv-wallet b {font-size:12px!important}
#ui .screen.home-redesign:not(.play-redesign) > .wv-wallet .chip {font-size:8px!important}
@media(max-width:650px) {
  #ui .screen.home-redesign:not(.play-redesign) > .wv-playerbar,
  #ui .screen.home-redesign:not(.play-redesign) > .wv-wallet {
    width:175px!important;
    max-width:175px!important;
    right:6px!important;
  }
}


/* ── Night-vision optical character: phosphor glow, scanlines and lens flare. ── */
#night-vision-overlay {
  overflow:hidden;
  isolation:isolate;
  background:
    radial-gradient(ellipse at 50% 46%,rgba(110,255,145,.12) 0%,rgba(35,160,75,.20) 54%,rgba(0,22,8,.62) 100%),
    linear-gradient(180deg,rgba(4,24,12,.12),rgba(12,55,25,.08));
  opacity:0;
  transition:opacity .18s ease;
}
#night-vision-overlay.active {opacity:1}
#night-vision-overlay > div {position:absolute;inset:0;pointer-events:none}
#night-vision-overlay .nv-optics {
  opacity:.34;
  background:
    radial-gradient(ellipse at 50% 50%,transparent 42%,rgba(0,12,4,.38) 100%),
    repeating-radial-gradient(ellipse at 48% 52%,rgba(180,255,195,.035) 0 1px,transparent 1px 4px);
  mix-blend-mode:screen;
}
#night-vision-overlay .nv-scanlines {
  opacity:.3;
  background:
    repeating-linear-gradient(180deg,rgba(190,255,200,.18) 0 1px,rgba(0,12,4,.16) 1px 2px,transparent 2px 5px),
    linear-gradient(180deg,rgba(0,12,4,.08),rgba(170,255,185,.035) 50%,rgba(0,12,4,.08));
  animation:nv-scan-drift 12s linear infinite;
}
#night-vision-overlay .nv-scan-sweep {
  opacity:.2;
  background:linear-gradient(180deg,transparent 0%,rgba(170,255,185,.02) 42%,rgba(190,255,200,.2) 50%,rgba(170,255,185,.035) 58%,transparent 100%);
  background-size:100% 42%;
  background-repeat:no-repeat;
  animation:nv-scan-sweep 7s linear infinite;
  mix-blend-mode:screen;
}
#night-vision-overlay .nv-glare {
  opacity:.28;
  background:
    radial-gradient(ellipse 20% 9% at 74% 26%,rgba(210,255,215,.42),rgba(110,255,150,.13) 35%,transparent 72%),
    radial-gradient(ellipse 8% 18% at 74% 26%,rgba(170,255,185,.18),transparent 75%);
  filter:blur(5px);
  animation:nv-glare-pulse 5.8s ease-in-out infinite;
}
#night-vision-overlay .nv-flare {
  opacity:.22;
  background:
    linear-gradient(112deg,transparent 0 67%,rgba(170,255,185,.20) 68%,rgba(205,255,215,.08) 68.25%,transparent 69%),
    radial-gradient(ellipse 42% 2.2% at 76% 28%,rgba(175,255,190,.30),transparent 72%),
    radial-gradient(circle at 76% 28%,rgba(205,255,215,.22),transparent 4%);
  filter:blur(2px);
  transform:translateX(-2%);
  animation:nv-flare-shift 8s ease-in-out infinite;
}
#night-vision-overlay .nv-vignette {
  box-shadow:inset 0 0 12vmin 3vmin rgba(0,15,5,.42),inset 0 0 2vmin rgba(150,255,170,.12);
}
@keyframes nv-scan-drift {from{transform:translateY(-3px)}to{transform:translateY(3px)}}
@keyframes nv-scan-sweep {from{background-position:0 -42%}to{background-position:0 142%}}
@keyframes nv-glare-pulse {0%,100%{opacity:.14;transform:scale(.92)}48%{opacity:.42;transform:scale(1.08)}}
@keyframes nv-flare-shift {0%,100%{opacity:.12;transform:translateX(-2%) scaleX(.96)}50%{opacity:.34;transform:translateX(1%) scaleX(1.03)}}
@media(prefers-reduced-motion:reduce) {
  #night-vision-overlay .nv-scanlines,\n  #night-vision-overlay .nv-scan-sweep,
  #night-vision-overlay .nv-glare,
  #night-vision-overlay .nv-flare {animation:none}
}

/* Single-page operator roster with illustrated, individual profile portraits. */
.screen.redesign-chars{overflow:hidden;gap:clamp(9px,1.3vh,16px);background:transparent!important}
.character-roster-heading{display:flex;align-items:center;gap:clamp(16px,3vw,48px);width:min(58vw,1120px);margin:0 0 0 14px}
.character-roster-heading>.head{flex:0 0 auto}
.character-roster-heading>.head h2{font-size:clamp(30px,3vw,43px);letter-spacing:.025em}
.character-roster-copy{display:grid;gap:2px;color:#c0cfdf;font:600 clamp(14px,1.2vw,18px) Rajdhani}
.roster-kicker{color:#ff9840;font:700 11px/1.2 Rajdhani;letter-spacing:.18em;text-transform:uppercase}
.character-roster-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,.86fr);gap:clamp(14px,1.6vw,26px);width:min(58vw,1120px);flex:1;min-height:0;margin-left:14px;align-items:center}
.character-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,.8vw,13px);align-content:center;min-width:0}
.character-select-card{position:relative;aspect-ratio:1/1;min-width:0;overflow:hidden;padding:0;border:1px solid rgba(139,176,212,.35);border-radius:clamp(15px,1.15vw,22px);background:#0a1522;box-shadow:0 10px 28px #0005;text-align:left;isolation:isolate;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.character-select-card:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(3,9,16,.04) 28%,rgba(3,9,16,.32) 52%,rgba(3,9,16,.96) 100%);pointer-events:none}
.character-select-card:hover,.character-select-card:focus-visible{transform:translateY(-3px);border-color:#ff9e49;box-shadow:0 12px 32px #0008,0 0 0 1px #ff873b66;outline:none}
.character-select-card.selected{border:2px solid #ff9a3d;box-shadow:0 0 0 2px #ff8a2738,0 0 26px #f4692780,0 10px 28px #0007}
.character-portrait-frame{position:absolute;inset:0;display:block;overflow:hidden;background:#101d2b}
.operator-portrait-art{display:block;width:100%;height:100%;object-fit:cover}
.operator-glb-portrait{background:#0b1420}
.character-portrait-frame>.operator-portrait-art{transition:transform .35s ease}
.character-select-card:hover .operator-portrait-art{transform:scale(1.045)}
.character-card-status{position:absolute;top:9px;left:9px;z-index:2;padding:4px 7px;border:1px solid #c5d7e537;border-radius:30px;background:#06111ed9;color:#dce9f5;font:700 9px/1 Rajdhani;letter-spacing:.12em}
.character-select-card.selected .character-card-status{border-color:#ffa84e88;color:#ffd39e}
.character-card-copy{position:absolute;right:11px;bottom:11px;left:11px;z-index:2;display:grid;gap:2px;min-width:0}
.character-card-copy>b{overflow:hidden;color:#f7f9fc;font:700 clamp(18px,1.7vw,24px)/1 Rajdhani;text-overflow:ellipsis;white-space:nowrap}
.character-card-copy>small{overflow:hidden;color:#c3d0dd;font:600 clamp(10px,.9vw,13px)/1.2 Rajdhani;text-overflow:ellipsis;white-space:nowrap}
.character-card-arrow{position:absolute;right:10px;top:43px;z-index:2;color:#d8e6f5aa;font:600 17px Arial;opacity:0;transform:translate(-3px,3px);transition:.18s ease}
.character-select-card:hover .character-card-arrow,.character-select-card.selected .character-card-arrow{opacity:1;transform:none}
.character-profile-card{width:100%;max-height:100%;align-self:center;overflow:auto;padding:clamp(17px,2vw,28px);border:1px solid #82a9cc55;border-radius:22px;background:linear-gradient(145deg,rgba(8,20,34,.97),rgba(5,13,24,.94));box-shadow:0 20px 54px #0007,inset 0 1px #d8efff12;backdrop-filter:blur(12px)}
.character-profile-top{display:grid;grid-template-columns:clamp(84px,8vw,124px) minmax(0,1fr) auto;align-items:center;gap:clamp(12px,1.35vw,21px)}
.character-profile-portrait{width:100%;aspect-ratio:1;overflow:hidden;border:1px solid #ecaa6380;border-radius:20px;background:#111e2b;box-shadow:0 0 0 5px #ff9c3213,0 7px 25px #0006}
.character-profile-title{min-width:0}
.character-profile-title h2{margin:4px 0 0;color:#fff;font:700 clamp(30px,3.2vw,48px)/.95 Rajdhani;letter-spacing:.01em}
.character-profile-title p{margin:5px 0 0;color:#b9c8d8;font:600 clamp(13px,1.15vw,17px) Rajdhani}
.character-ready-pill{align-self:start;padding:7px 10px;border:1px solid #52d3ad55;border-radius:20px;background:#1b77511a;color:#8cf0ca;font:700 10px Rajdhani;letter-spacing:.1em;white-space:nowrap}
.character-ready-pill.locked{border-color:#eaaa4e55;background:#84551b22;color:#ffd08b}
.character-bio{margin:clamp(16px,2vw,27px) 0 18px;color:#e1eaf3;font:500 clamp(15px,1.25vw,19px)/1.4 Rajdhani}
.character-profile-divider{height:1px;background:linear-gradient(90deg,#ffa34c88,#55718d44,transparent)}
.character-trait-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:17px 0 13px}
.character-trait-list>div{display:grid;align-content:start;gap:5px;min-width:0}
.character-trait-list small{color:#83a2bf;font:700 9px Rajdhani;letter-spacing:.13em}
.character-trait-list b{color:#f0f5fa;font:600 clamp(13px,1vw,16px)/1.15 Rajdhani}
.character-trait-chips{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 17px}
.character-trait-chips span{padding:5px 9px;border:1px solid #7f9dbb33;border-radius:20px;background:#b8d8fa0b;color:#c7d7e7;font:600 12px Rajdhani}
.character-profile-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.character-profile-actions>.btn{min-height:40px;font-size:12px}
.character-model-controls{display:flex;gap:6px}
.character-model-controls .btn{width:38px;min-width:38px;min-height:38px;padding:0;font-size:18px}
.character-select-action{margin-top:12px}
.character-select-action>.btn{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #ffb154;background:linear-gradient(105deg,#ff811f,#dc4a12);box-shadow:0 7px 22px #ef6b2d33;font:700 18px Rajdhani;letter-spacing:.035em}
.character-select-action>.btn span{font-size:21px}
.character-select-action>.character-selected-button{border-color:#42d4a188;background:linear-gradient(105deg,#155746,#10352f);box-shadow:none;color:#a8f0d5}
.character-unlock-note{display:block;padding:12px;border:1px solid #d79a4b33;border-radius:10px;background:#bd76200c;color:#ecc88f;text-align:center;font:600 14px Rajdhani}
.character-voice-line{min-height:18px;margin:8px 0 0;color:#b5c8da;font:italic 14px Rajdhani}
.por>.operator-portrait-art{width:100%;height:100%;object-fit:cover}
@media(max-width:1200px){.character-roster-heading,.character-roster-layout{width:90vw}.character-roster-layout{grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr)}.character-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.character-card-copy>b{font-size:18px}.character-profile-top{grid-template-columns:82px minmax(0,1fr)}.character-ready-pill{grid-column:2;grid-row:2;justify-self:start}.character-profile-title h2{font-size:32px}}
@media(max-width:1200px) and (min-width:761px){#drag{left:92vw!important}}
@media(max-width:760px){.screen.redesign-chars{overflow-y:auto}.character-roster-heading,.character-roster-layout{width:100%;margin-left:0}.character-roster-heading{align-items:flex-start;flex-direction:column;gap:7px}.character-roster-layout{grid-template-columns:1fr;align-items:start;flex:0 0 auto}.character-card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.character-select-card{border-radius:13px}.character-card-status{top:5px;left:5px;padding:4px;font-size:8px}.character-card-copy{right:7px;bottom:8px;left:7px}.character-card-copy>b{font-size:clamp(12px,3.4vw,17px)}.character-card-copy>small{font-size:9px}.character-card-arrow{display:none}.character-profile-card{max-height:none;padding:16px;border-radius:17px}.character-profile-top{grid-template-columns:76px minmax(0,1fr) auto;gap:12px}.character-profile-title h2{font-size:29px}.character-ready-pill{grid-column:auto;grid-row:auto;font-size:9px}.character-bio{font-size:15px;margin:14px 0}.character-trait-list{gap:6px;padding:12px 0}.character-trait-list small{font-size:8px}.character-trait-list b{font-size:12px}.character-trait-chips{margin-bottom:12px}}
@media(max-width:760px){#drag{display:none}}
@media(max-width:420px){.character-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.character-profile-top{grid-template-columns:64px minmax(0,1fr)}.character-ready-pill{grid-column:2;grid-row:2}.character-profile-title h2{font-size:26px}.character-profile-actions{align-items:flex-start;flex-direction:column}.character-model-controls{position:absolute;right:20px}.character-profile-card{position:relative}}
@media(min-width:761px){
  .character-roster-layout{display:block;width:min(44vw,820px);margin-left:14px}
  .character-card-grid{width:100%}
  .character-profile-card{position:fixed;top:clamp(132px,19vh,190px);right:clamp(8px,1vw,18px);z-index:5;width:clamp(320px,26vw,500px);max-width:calc(100vw - 26px);max-height:calc(100vh - clamp(170px,24vh,230px));}
/* Profile statistics: fixed columns, stacked labels and values prevent overlap. */
.redesign-profile .profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.redesign-profile .profile-stat-card {
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  padding: 15px 17px !important;
  border: 1px solid #22bfff !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #102033f2, #07111df5) !important;
  box-shadow: 0 5px 16px #0007, inset 0 0 16px #17334a66;
}
.redesign-profile .profile-stat-card small {
  display: block;
  min-width: 0;
  color: #aebfd0 !important;
  font: 700 13px/1.2 Rajdhani, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.redesign-profile .profile-stat-value {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: #f7f9fc;
  font: 700 clamp(27px, 2.2vw, 38px)/1 Teko, sans-serif;
  overflow-wrap: anywhere;
  text-align: left;
  text-wrap: balance;
}
@media (max-width: 1100px) {
  .redesign-profile .profile-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .redesign-profile .profile-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .redesign-profile .profile-stat-card { min-height: 98px; padding: 12px !important; }
  .redesign-profile .profile-stat-card small { font-size: 12px; }
  .redesign-profile .profile-stat-value { font-size: clamp(24px, 6vw, 32px); }
}
@media (max-width: 420px) {
  .redesign-profile .profile-stats-grid { grid-template-columns: minmax(0, 1fr); }
}
