:root{color-scheme:dark;--bg:#070b1b;--panel:rgba(14,21,44,.88);--line:rgba(151,186,255,.18);--accent:#66f8ed;--violet:#ad82ff;--yellow:#ffdc6c;--muted:#8c9aba;--white:#f5f7ff;--font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--white);font-family:var(--font);font-size:14px}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}[hidden]{display:none!important}
#arena{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none;background:#070b1c}.ambient{position:fixed;pointer-events:none;filter:blur(80px);opacity:.6;border-radius:50%}.ambient-one{width:65vw;height:50vw;top:-30vw;left:-12vw;background:#241151}.ambient-two{width:44vw;height:44vw;right:-17vw;bottom:-20vw;background:#0b3d50}.glass{background:linear-gradient(136deg,rgba(22,30,62,.94),rgba(9,15,34,.96));border:1px solid rgba(178,197,255,.14);box-shadow:0 20px 80px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.055);backdrop-filter:blur(20px);border-radius:20px}
.overlay{position:fixed;inset:0 0 66px;overflow-y:auto;z-index:20;background:radial-gradient(ellipse 65% 55% at 48% 35%,rgba(41,30,93,.30),transparent),rgba(3,8,21,.67);backdrop-filter:blur(8px)}.menu-shell{min-height:calc(100vh - 126px);max-width:1320px;margin:auto;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(370px,.9fr);gap:clamp(24px,5vw,80px);align-items:center;padding:48px 42px 16px}.intro-col{position:relative;align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:10px 0 20px}.eyebrow{font-weight:800;letter-spacing:3.1px;color:#7afbe9;font-size:11px}.line-dot{display:inline-block;width:5px;height:5px;margin:0 10px 2px 0;background:var(--accent);border-radius:50%;box-shadow:0 0 10px var(--accent)}.main-logo{position:relative;z-index:1;line-height:.85;letter-spacing:-9px;font-weight:1000;margin:26px 0 20px;font-size:clamp(74px,8.7vw,142px);text-shadow:0 12px 28px #0006}.main-logo span{display:block}.logo-snake{background:linear-gradient(130deg,#fff,#a7eafa 60%,#5c9ac5);background-clip:text;-webkit-text-fill-color:transparent}.logo-boss{width:max-content;position:relative;background:linear-gradient(145deg,#fffbb6 6%,#ffdf62 41%,#f68f43 76%,#f1c854);background-clip:text;-webkit-text-fill-color:transparent}.crown-letter{font-size:.34em;letter-spacing:0;position:absolute;top:-.56em;right:-.42em;transform:rotate(13deg);color:#ffdf65!important;-webkit-text-fill-color:#ffdf65!important;filter:drop-shadow(0 0 14px #ffe06b90)}.intro-col h1{font-size:clamp(16px,2.1vw,27px);letter-spacing:1px;margin:10px 0 14px;font-weight:950}.intro-col h1 span{color:var(--accent)}.pitch{max-width:545px;color:#aab6d2;line-height:1.8;font-size:15px;margin:0}.pitch strong{color:#ffdb69}.feature-row{display:flex;flex-wrap:wrap;gap:15px;margin:26px 0 0}.feature-row span{font-size:10px;letter-spacing:1.4px;font-weight:900;color:#b7c6e6}.feature-row i{font-style:normal;color:var(--accent);margin-right:6px}
.hero-art{position:absolute;width:390px;height:390px;right:-28px;bottom:-20px;z-index:0;opacity:.58;pointer-events:none;filter:drop-shadow(0 18px 50px #24177d)}.coil{position:absolute;border-radius:50%;border:31px solid transparent;box-shadow:0 0 0 1px #4ef5ff10,0 0 50px #20ddff2b,inset 0 0 30px #000}.coil-outer{inset:35px;background:radial-gradient(circle at 50% 50%,#131c42 20%,transparent 55%);border-top-color:#77f6fb;border-right-color:#867afe;border-left-color:#ae6cff;transform:rotate(-45deg)}.coil-inner{inset:105px;border-width:25px;border-top-color:#c487ff;border-bottom-color:#43cddf;transform:rotate(25deg)}.hero-snake-face{position:absolute;width:94px;height:94px;left:128px;top:128px;border-radius:45%;transform:rotate(-25deg);background:radial-gradient(circle at 25% 23%,#d9ffff,#5feee8 38%,#5962e3 88%);box-shadow:inset -9px -10px 16px #443f9666,0 0 35px #66ecffb0}.eye{background:#f7fdff;position:absolute;top:25px;width:19px;height:26px;border-radius:50%;box-shadow:inset 1px -3px #ccd8f7}.eye:after{content:"";position:absolute;width:9px;height:14px;border-radius:50%;background:#12203d;right:1px;top:6px}.eye-one{left:26px}.eye-two{left:53px}.hero-smile{position:absolute;left:35px;top:64px;width:28px;height:14px;border-bottom:4px solid #163055;border-radius:50%}.floating-gem{position:absolute;color:#81fff0;filter:drop-shadow(0 0 14px currentColor);font-size:30px;animation:float 3.5s ease-in-out infinite}.gem1{top:20px;right:15px;color:#fcd75d}.gem2{left:20px;bottom:52px}.gem3{top:70px;left:34px;color:#d797ff}@keyframes float{50%{transform:translateY(-18px) rotate(12deg)}}
.login-col{position:relative;z-index:2;padding:clamp(25px,3vw,42px);max-width:500px;width:100%;justify-self:end}.card-topline,.rooms-header,.panel-header,.map-title,.map-caption{display:flex;justify-content:space-between;align-items:center}.card-topline{letter-spacing:2px;font-size:11px;font-weight:900;color:#a7b6d9;border-bottom:1px solid var(--line);padding-bottom:20px}.online{color:#86ffd1;letter-spacing:1.2px}.online-light{display:inline-block;height:8px;width:8px;background:#79ffb9;border-radius:50%;box-shadow:0 0 12px #67ffd0;margin-right:6px}.login-col h2{font-size:30px;letter-spacing:-1px;margin:24px 0 6px}.muted{font-size:12px;color:#a2b0d0;line-height:1.7;margin:0 0 22px}.login-col label{display:block;font-size:10px;color:#9eb3db;font-weight:900;letter-spacing:1.8px;margin-bottom:9px}.login-col input{width:100%;border:1px solid #53688e;background:#071026bf;color:#fff;border-radius:12px;padding:16px 18px;outline:none;font-weight:700;transition:border .2s}.login-col input:focus{border:1px solid var(--accent);box-shadow:0 0 0 3px #64fff019}.login-col input::placeholder{color:#637392}.field-error{min-height:16px;color:#ff879c;font-size:11px;margin:4px 0}.chosen-skin{border:1px solid var(--line);border-radius:12px;padding:11px;background:#090f27;display:flex;align-items:center;gap:11px;margin:13px 0 15px}.skin-spot{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:linear-gradient(135deg,#6dfcff,#8c75ff);box-shadow:0 0 15px #8666ff44;font-size:25px;color:#fff}.chosen-skin small,.stat-card small,.player-stats small,.result-grid small{font-size:10px;color:#8193b9;letter-spacing:1.3px;font-weight:850}.chosen-skin strong{display:block;margin-top:3px;font-size:15px}.ghost-btn{margin-left:auto;background:#223055;border:1px solid #4c678d;border-radius:9px;color:#dce5ff;padding:10px 12px;font-weight:900;font-size:10px;letter-spacing:.6px}.ghost-btn span{color:var(--accent);margin-left:6px}.primary-btn{width:100%;border:0;border-radius:12px;background:linear-gradient(105deg,#5bffe6,#83e6ff 65%,#9ee5fb);color:#06152a;padding:17px 18px;font-weight:1000;letter-spacing:1.3px;font-size:14px;box-shadow:0 8px 28px #33dfdf3a, inset 0 1px #fff7;transition:transform .17s,filter .17s}.primary-btn:hover{filter:brightness(1.08);transform:translateY(-2px)}.primary-btn:disabled{opacity:.6}.primary-btn>span:first-child{margin-right:10px}.btn-arrow{float:right;font-size:20px;line-height:16px}.player-stats{display:flex;justify-content:space-around;gap:8px;padding:22px 0 19px;border-bottom:1px solid var(--line)}.player-stats>div{text-align:center;min-width:74px}.player-stats strong{display:block;font-size:21px;margin-top:4px;font-variant-numeric:tabular-nums}.rooms-header{color:#8395b8;font-size:10px;letter-spacing:1.3px;font-weight:900;margin:22px 0 10px}.rooms-list{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.room-pill{border:1px solid #314067;border-radius:9px;padding:8px 4px;text-align:center;color:#bbc8e5;background:#0c1633}.room-pill b{font-size:11px;display:block}.room-pill small{font-size:9px;color:#79e9c4}.room-placeholder{color:var(--muted);grid-column:1/-1}.rules-mini{font-size:10px;color:#7083a8;margin:15px 0 0;line-height:1.55}.menu-footer{display:flex;justify-content:space-between;color:#526581;max-width:1320px;margin:0 auto;padding:0 42px 18px;letter-spacing:1.4px;font-size:9px;font-weight:800}
.ad-placeholder{height:66px;position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:12px;background:rgba(6,9,22,.98);border-top:1px solid #202d4f;color:#6d7c9b;z-index:30;letter-spacing:2px;font-size:10px;font-weight:900}.ad-placeholder small{font-size:10px;letter-spacing:0;font-weight:500;color:#536484}
.hud.upper{position:fixed;top:18px;left:18px;z-index:7;display:flex;align-items:center;gap:10px}.mini-brand{border-radius:13px;padding:13px 17px;font-size:15px;letter-spacing:-.4px;font-weight:1000;background:rgba(9,15,34,.9);border:1px solid var(--line);white-space:nowrap}.mini-brand span{color:#ffe07c}.brand-orb{display:inline-block;background:linear-gradient(140deg,#69ffe8,#a56dff);border-radius:50%;padding:3px 6px;margin-right:6px;color:#101832}.stat-card{border:1px solid var(--line);border-radius:13px;display:flex;align-items:center;gap:10px;background:rgba(9,15,34,.9);padding:9px 13px;min-width:102px}.stat-card strong{font-size:19px;line-height:1.15;display:block;font-variant-numeric:tabular-nums}.stat-icon{color:var(--accent);font-size:25px}.coin-card .stat-icon{color:var(--yellow)}.room-card .online-light{margin:0 4px}.icon-btn{width:39px;height:39px;border-radius:10px;border:1px solid #60739e;background:#172244;color:#eff6ff;font-size:25px;line-height:1}.leaderboard{position:fixed;right:20px;top:20px;z-index:7;width:232px;border-radius:14px;overflow:hidden}.panel-header{background:#131f42;padding:14px 15px;color:#f8d877;font-weight:1000;letter-spacing:1.5px;font-size:11px}.panel-header small{color:#93a5c6;font-size:9px}.leaderboard ol{margin:0;padding:8px 10px;list-style:none}.leaderboard li{display:flex;gap:7px;padding:5.5px 5px;align-items:center;font-size:11px;border-bottom:1px solid #ffffff0b}.leaderboard li:last-child{border-bottom:0}.leaderboard li.first{background:#f9d66411;border-radius:7px}.leaderboard .rank{color:#7188b2;font-weight:1000;width:19px}.leaderboard li.first .rank{color:#ffe083}.leaderboard .name{flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-weight:750}.leaderboard .points{font-weight:850;font-variant-numeric:tabular-nums;color:#dee8ff}.leaderboard .boss-mark{color:#ffda70;font-size:9px}.leaderboard .bot-tag{font-size:8px;color:#6c819d;margin-left:4px}.board-footer{padding:8px 15px;display:flex;justify-content:space-between;color:#7d8aaa;font-size:9px;font-weight:900;letter-spacing:1.4px;border-top:1px solid var(--line)}.sparkle{color:var(--yellow)}
.map-card{position:fixed;bottom:84px;right:20px;width:216px;padding:12px;z-index:6;border-radius:15px}.map-title{font-weight:900;font-size:10px;color:#b2c2e4;letter-spacing:1.1px;margin-bottom:9px}.map-dots{color:#65f7ef;font-size:8px}.map-card canvas{width:190px;height:190px;display:block;border-radius:8px;border:1px solid #2a3e62;background:#091229}.map-caption{font-size:8px;font-weight:850;letter-spacing:.7px;color:#869bc2;margin-top:9px}.map-caption i{display:inline-block;width:6px;height:6px;margin-right:3px;border-radius:50%;background:#65fff1}.map-caption .map-other{background:#927dff}.map-caption .map-boss{background:#ffd964}.hud-tip{position:fixed;z-index:6;left:20px;bottom:84px;color:#a7b8d7;background:#0a1024b0;border:1px solid var(--line);border-radius:11px;padding:13px 17px;font-size:10px;letter-spacing:.5px;font-weight:750}.kbd{color:var(--accent)}.powerup-list{position:fixed;top:85px;left:20px;z-index:8;display:grid;gap:8px}.boost{display:flex;align-items:center;gap:12px;border:1px solid #88fcf43d;border-radius:10px;background:#092c36dd;padding:7px 11px;font-size:10px}.boost span{font-size:19px;color:var(--accent);font-weight:1000}.boost strong{letter-spacing:1px}.boost em{font-style:normal;color:#c5fff7}.boost-speed{background:#3c2c0cdd;border-color:#ffcc604c}.boost-speed span{color:#ffdf78}.boss-indicator{position:fixed;z-index:6;top:190px;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:15px;color:#ffe69e;background:#291c0de0;border:1px solid #ffe28358;padding:9px 14px;border-radius:14px;font-weight:950;letter-spacing:1.5px;box-shadow:0 0 28px #d79b2818}.boss-indicator strong{font-size:20px}
.modal-layer{display:grid;place-items:center;padding:30px 16px}.modal{width:min(490px,100%);padding:32px;text-align:center}.death-modal .dead-emoji{color:#ff7285;font-size:66px;line-height:1.5;text-shadow:0 0 30px #ff4f6f60}.modal h2{font-weight:1000;font-size:39px;letter-spacing:-1.5px;margin:0 0 10px}.modal h2 span{color:var(--accent)}.death-modal p{color:#9caacc;margin:0 0 24px}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);background:#090f26;border-radius:11px;padding:17px 8px;margin-bottom:20px}.result-grid strong{display:block;font-size:25px;margin-top:6px}.rescue-btn{width:100%;background:#172543;border:1px solid #465477;border-radius:11px;color:#b4c2dd;padding:14px 10px;margin-top:12px;font-weight:900;letter-spacing:.2px}.rescue-btn span{display:block;margin-top:4px;color:#677fa8;font-size:9px}.text-btn{border:0;background:none;color:#96a7ca;padding:16px;font-weight:800;letter-spacing:1px}.shop-modal{width:min(900px,100%);max-height:90%;overflow-y:auto;text-align:left}.shop-header{display:flex;justify-content:space-between;gap:20px;align-items:start}.shop-header h2{margin:11px 0 9px}.shop-header p{color:#a7b3d2;margin:0 0 18px}.shop-money{text-align:right;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:15px 0;color:#95a4c5;font-weight:900;font-size:11px;letter-spacing:1.5px}.shop-money strong{font-size:25px;color:white;margin:0 6px 0 12px}.shop-money span{color:var(--yellow)}.skins-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:20px}.skin-card{background:linear-gradient(130deg,#14203e,#0e1631);border:1px solid #304065;border-radius:15px;overflow:hidden;padding:15px}.skin-card.active{border-color:#67fae7;box-shadow:inset 0 0 22px #34feda11}.skin-preview{height:74px;display:grid;place-items:center;overflow:hidden;border-radius:10px;margin-bottom:12px;position:relative;background:radial-gradient(circle at 40% 45%,#2a3757,#0a1021)}.skin-preview .color-snake{width:165px;height:32px;border-radius:60px;transform:rotate(-25deg);position:relative;box-shadow:inset 0 5px 5px #ffffff7a,0 5px 15px #0008,0 0 23px #8cf7ff44}.skin-preview .color-snake:after{content:"◕ ◕";color:#102442;font-size:17px;position:absolute;right:1px;top:2px;transform:rotate(90deg)}.skin-card h3{margin:0 0 5px;font-size:15px}.skin-card p{margin:0 0 12px;color:#8a9cc3;font-size:11px}.skin-card button{background:linear-gradient(180deg,#294677,#1e345b);border:1px solid #5e7fba;border-radius:8px;padding:9px 8px;color:#dceaff;font-size:10px;font-weight:950;width:100%}.skin-card button:disabled{opacity:.65}.skin-card button.active-button{color:#5bffe0;border-color:#447a72}.shop-info{height:18px;text-align:center;color:#8cfbe5}.touch-joystick{position:fixed;z-index:9;left:25px;bottom:108px;width:108px;height:108px;background:#22305e70;border:2px solid #80a5fa55;border-radius:50%;touch-action:none}.touch-joystick div{position:absolute;width:40px;height:40px;border-radius:50%;top:32px;left:32px;background:linear-gradient(130deg,#68ffef,#907eff);box-shadow:0 0 20px #68ffef7a}
@media(max-width:1120px){.main-logo{font-size:clamp(66px,9vw,112px)}.hero-art{transform:scale(.75);right:-90px;bottom:-75px}.menu-shell{gap:26px}.mini-brand{display:none}.player-card{display:none}}
@media(max-width:800px){.menu-shell{grid-template-columns:1fr;min-height:0;padding:38px 16px 28px;max-width:520px;gap:30px}.intro-col{text-align:center;align-items:center;min-height:330px;padding:8px 0}.eyebrow{font-size:9px;letter-spacing:2px}.main-logo{font-size:clamp(67px,16vw,108px);letter-spacing:-5px;margin:21px 0}.intro-col h1{font-size:18px}.pitch{font-size:13px;max-width:490px}.feature-row{justify-content:center}.hero-art{display:none}.login-col{justify-self:center;padding:24px}.menu-footer{max-width:520px;padding:0 18px 18px}.menu-footer span:last-child{display:none}.leaderboard{right:8px;top:72px;width:170px}.leaderboard li{font-size:10px;padding:5px 1px}.panel-header{padding:10px 8px}.stat-card{padding:7px;min-width:auto}.stat-card strong{font-size:14px}.stat-card small{font-size:8px}.stat-icon{font-size:18px}.hud.upper{left:8px;top:8px;gap:5px}.room-card{display:none}.map-card{right:8px;bottom:78px;width:136px;padding:8px}.map-card canvas{width:118px;height:118px}.map-title{font-size:8px}.map-caption{font-size:7px}.map-caption span:nth-child(2){display:none}.hud-tip{display:none!important}.powerup-list{top:65px;left:8px}.boost{padding:4px 7px;font-size:8px;gap:4px}.boss-indicator{top:52px;left:50%;padding:5px 9px}.ad-placeholder{font-size:9px;letter-spacing:0}.ad-placeholder small{display:none}.skins-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:390px){.coin-card{display:none}.leaderboard{width:142px}.map-card{width:120px}.map-card canvas{width:102px;height:102px}.map-caption{font-size:6px}.login-col{padding:18px}.rooms-list{gap:3px}.skin-card{padding:9px}}

/* Snake Boss v0.3 — designed hero art + high-contrast arcade UI. */
:root{--accent:#53ffda;--violet:#c36dff;--yellow:#ffd65f;--muted:#a3b4d4;--bg:#070e24}
#menu{background:linear-gradient(90deg,rgba(5,8,26,.86) 0%,rgba(5,8,26,.55) 35%,rgba(6,9,30,.20) 68%,rgba(4,6,24,.40) 100%),url('./hero.webp') center center / cover no-repeat #0b0925;backdrop-filter:none}
#menu .intro-col{max-width:720px;justify-content:flex-start;padding-top:clamp(24px,7vh,86px)}
#menu .main-logo{margin:clamp(12px,3vh,30px) 0 24px;letter-spacing:-.065em;line-height:.82;font-size:clamp(81px,9vw,150px);filter:drop-shadow(0 12px 26px #020512)}
#menu .logo-snake{background:linear-gradient(155deg,#fbffff 6%,#93fff2 65%,#51c6fc);background-clip:text}
#menu .logo-boss{background:linear-gradient(145deg,#fff7c7,#ffdd54 48%,#fc934c);background-clip:text}
#menu .hero-art{display:none!important}
#menu .intro-col h1{max-width:540px;margin:12px 0 18px;text-shadow:0 3px 18px #030a2c;font-size:clamp(17px,2vw,26px);line-height:1.25;letter-spacing:.035em}
#menu .intro-col h1 span{display:block;color:#6ffbe5}
#menu .pitch{max-width:510px;font-size:15px;color:#e2e9ff;line-height:1.7;text-shadow:0 2px 14px #050522}
#menu .feature-row{gap:10px;max-width:550px}
#menu .feature-row span{background:#02061faa;border:1px solid #a1dfff35;border-radius:30px;padding:9px 11px;color:#d6e5ff;font-size:10px;letter-spacing:.8px;box-shadow:inset 0 1px #ffffff1b}
#menu .menu-shell{max-width:1500px;grid-template-columns:minmax(0,1.3fr) minmax(345px,.74fr);gap:30px;padding:clamp(24px,4.5vw,64px)}
#menu .login-col{background:linear-gradient(145deg,rgba(13,21,51,.91),rgba(8,15,38,.94));border:1px solid #acb4ff4d;box-shadow:0 30px 90px #030415bd,0 0 50px #743aff22,inset 0 1px #e8ffff19;border-radius:24px;backdrop-filter:blur(19px)}
#menu .card-topline{color:#77fff0}
#menu .login-col h2{font-size:33px;color:#fff}
#menu .login-col .muted{color:#aec0e0}
#menu .primary-btn{background:linear-gradient(110deg,#40fadf,#89f9dc 48%,#b9ffe4);box-shadow:0 10px 35px #1dffe84b,inset 0 1px #ffffffbb;color:#062933;font-size:15px}
#menu .room-pill{background:linear-gradient(135deg,#16254b,#0e1938);border-color:#5374ad80}
#menu .chosen-skin{background:#0d1a3bbb;border-color:#598ebc57}
#menu .rooms-header,#menu .player-stats small{color:#b9c9e5}
#menu .menu-footer{position:relative;color:#d4e5ff9c}
#arena{background:#08102b}
.perf-badge{color:#85ffde;background:#0b183bdf;border:1px solid #5ef8dc55;border-radius:20px;padding:8px 11px;font-size:10px;font-weight:850;letter-spacing:1px}
.leaderboard{box-shadow:0 15px 45px #0008;border:1px solid #886bfa66}
.leaderboard .panel-header{background:linear-gradient(90deg,#44328b,#1a2759);color:#ffec9e}
.map-card{box-shadow:0 16px 42px #0009;border:1px solid #5375c677}
.glass{backdrop-filter:blur(12px)}
.ad-placeholder{background:#04081be8;border-top:1px solid #3d5689;font-size:10px}
@media(max-width:1100px){#menu .menu-shell{grid-template-columns:minmax(0,1fr) minmax(315px,.78fr);gap:16px}#menu .main-logo{font-size:clamp(66px,9vw,125px)}}
@media(max-width:800px){#menu{background-position:65% top}#menu .menu-shell{grid-template-columns:1fr;max-width:520px;padding:25px 14px 40px;gap:20px}#menu .intro-col{min-height:0;padding:0}#menu .main-logo{font-size:clamp(68px,16vw,104px);margin:23px 0 18px}#menu .pitch{font-size:12px;max-width:450px}#menu .intro-col h1{font-size:18px}#menu .login-col{max-width:490px}#menu .feature-row{justify-content:center}.perf-badge{display:none}}
@media(max-width:420px){#menu .login-col{padding:22px 15px}#menu .main-logo{font-size:clamp(65px,15.5vw,82px)}}
@media(prefers-reduced-motion:reduce){#menu .primary-btn{transition:none}}
/* Keep the illustrated serpent unobstructed on desktop: panels occupy left 2/3. */
@media(min-width:1051px){
  #menu .menu-shell{max-width:min(1040px,72vw);margin-left:clamp(22px,3vw,64px);margin-right:0;grid-template-columns:minmax(0,1.15fr) minmax(340px,.83fr);gap:clamp(15px,2vw,28px);padding:35px 0 22px}
  #menu .login-col{padding:clamp(22px,2vw,34px)}
  #menu .intro-col{padding-top:10px;justify-content:center}
  #menu .main-logo{font-size:clamp(82px,8.6vw,125px)}
}

/* SNAKE BOSS v0.4 — visual skin catalog and expressive premium heads */
.skin-preview{height:160px;background:radial-gradient(circle at 45% 45%,#354b7c,#0d1533 68%);border:1px solid #627bd554;overflow:hidden}
.skin-preview img.skin-art{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0 8px 20px #000a);transition:transform .22s ease}
.skin-card:hover .skin-art{transform:scale(1.055)}
.skin-card{background:linear-gradient(135deg,#142648,#0a1128);border:1px solid #405d89;border-radius:17px;padding:12px}
.skin-card h3{font-size:14px}
.skin-card p{font-size:10px}
.skin-card.active{border-color:#67fff0;box-shadow:0 0 20px #26f8df1d}
.shop-modal{width:min(1100px,100%);max-height:min(90vh,900px)}
#skinSpot{background-size:contain!important;border:1px solid #a5fff855}
.skin-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;max-width:530px;margin-top:23px;z-index:1;position:relative}
.skin-gallery img{width:100%;aspect-ratio:1.5;object-fit:contain;border:1px solid #d7f9ff40;border-radius:16px;background:radial-gradient(circle at 45% 50%,#25427388,#040a1ad9);box-shadow:0 7px 25px #0009}
.skin-gallery-label{color:#dcf9ff;font-size:10px;font-weight:900;letter-spacing:1.7px;margin-top:19px;text-shadow:0 2px 5px #000}
@media(max-width:1000px){.skin-gallery{display:none}}
@media(max-width:650px){.skin-preview{height:122px}.skins-grid{gap:8px}.skin-card{padding:8px}}

/* v0.5 – real in-game snake previews, without continuous preview animation */
.tryon-panel{border:1px solid #6a83c46b;border-radius:17px;background:#101d3aec;padding:12px 12px 9px;margin:10px 0 18px;box-shadow:inset 0 1px #ffffff19}
.tryon-panel .tryon-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:7px;color:#9bfce8;font-weight:900;font-size:12px;letter-spacing:1px}
.tryon-panel .tryon-head span{color:#ffe6a4;font-size:13px;letter-spacing:0}
#tryonCanvas{display:block;width:100%;max-height:185px;object-fit:cover;border-radius:10px}
.tryon-panel small{display:block;color:#a9bbdd;margin:6px 2px 0;font-size:10px}
.real-preview{display:block;width:100%;height:135px;padding:0;border:1px solid #4b6f9d;cursor:pointer;overflow:hidden;border-radius:11px;background:#0c1730}
.real-preview canvas{display:block;width:100%;height:100%;object-fit:cover}
.skin-card.previewing{outline:2px solid #ffd86b;outline-offset:-1px}
.boost-cost{position:fixed;z-index:16;top:61px;left:14px;padding:7px 10px;color:#d2e9ff;background:#091a35c9;border:1px solid #6a8ccd77;border-radius:9px;font-size:10px;font-weight:850;pointer-events:none}
.boost-cost.is-boosting{color:#ffe790;border-color:#ffb630;background:#50331ddc}
@media(max-width:800px){.boost-cost{top:51px;left:7px;max-width:50vw;font-size:8px}.tryon-panel{padding:8px}.real-preview{height:100px}}

/* Composited backdrop blur over a moving canvas caused unnecessary GPU work. */
#gameHud .glass,.leaderboard.glass,.map-card.glass{backdrop-filter:none;-webkit-backdrop-filter:none}


/* Snake Boss 0.6: clean single-row HUD and crisp minimap. */
.hud.upper{top:12px;left:12px;right:280px;width:auto;max-width:calc(100vw - 300px);display:flex;align-items:center;flex-wrap:nowrap;gap:7px;overflow:visible;pointer-events:none}
.hud.upper>*{pointer-events:auto;flex:0 0 auto}
.hud.upper .mini-brand{padding:2px 5px;width:52px;height:52px;display:flex;align-items:center;justify-content:center;background:#07172ee8;border:1px solid #4fdbe18c;border-radius:14px}
.hud.upper .mini-brand img{width:44px;height:44px;object-fit:contain;display:block}
.hud.upper .stat-card{height:48px;min-width:0;padding:5px 10px;gap:7px;border-radius:11px;box-sizing:border-box}
.hud.upper .stat-card strong{font-size:16px}.hud.upper .stat-card small{font-size:9px;letter-spacing:.4px}
.hud.upper .stat-icon{font-size:17px}.hud.upper .icon-btn{width:37px;height:40px;flex-shrink:0}
.hud.upper .powerup-list{position:static;display:flex;align-items:center;gap:5px;z-index:auto}
.hud.upper .boost{padding:5px 7px;gap:4px;min-height:40px;border-radius:9px;font-size:9px;white-space:nowrap}
.hud.upper .boost span{font-size:15px}.hud.upper .boost strong{letter-spacing:0}.hud.upper .boost em{font-size:9px}
.hud.upper .boost-cost{position:static;max-width:155px;min-height:40px;box-sizing:border-box;display:flex;align-items:center;padding:5px 8px;border-radius:9px;font-size:9px;white-space:normal;line-height:1.2}
.hud.upper .boost-cost.is-boosting{color:#ffe18b}
.leaderboard{top:85px;right:14px}
.map-card{background:#0b1734f0;border:1px solid #417ca3;box-shadow:0 6px 25px #0007;backdrop-filter:none!important}
.map-card canvas{image-rendering:auto;outline:1px solid #6ab9cd22;box-shadow:none}
.map-card .map-title{color:#e4f7ff}
.room-pill{display:flex;flex-direction:column;gap:4px;justify-content:center;min-height:52px;border-color:#357b9c;background:#071a37}
.room-pill b{font-size:11px;color:#edfcff}.room-pill small{font-size:9px;line-height:1.3;color:#81f7d8}
.rooms-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.menu-logo{object-fit:contain;vertical-align:middle;width:100px;height:100px;filter:drop-shadow(0 5px 12px #00e4ef55)}
.shop-modal{max-width:100%}
.shop-header h2{font-size:clamp(24px,3vw,37px)}
.skin-card .skin-preview{border-color:#5db3b65c}
@media(min-width:1050px) and (max-width:1430px){
  .hud.upper{right:260px;max-width:calc(100vw - 280px);gap:4px}
  .hud.upper .mini-brand{width:45px;height:46px}
  .hud.upper .mini-brand img{width:38px;height:38px}
  .hud.upper .stat-card{padding:4px 6px;gap:4px}
  .hud.upper .stat-card strong{font-size:14px}
  .hud.upper .stat-icon{font-size:14px}
  .hud.upper .boost strong{display:none}
  .hud.upper .boost-cost{font-size:8px;max-width:110px}
}
@media(max-width:1049px){
  .hud.upper{left:7px;right:7px;max-width:none;top:7px;gap:4px}
  .hud.upper .mini-brand{width:38px;height:42px;padding:0}
  .hud.upper .mini-brand img{width:36px;height:36px}
  .hud.upper .stat-card{height:42px;padding:4px 6px;gap:3px}
  .hud.upper .stat-icon{display:none}
  .hud.upper .stat-card strong{font-size:13px}
  .hud.upper .stat-card small{font-size:8px}
  .hud.upper .boost-cost{font-size:8px;max-width:95px;min-height:38px}
  .hud.upper .boost{font-size:8px;min-height:38px;padding:3px 5px}
  .hud.upper .boost strong{display:none}
  .hud.upper .icon-btn{height:37px;width:30px;margin-left:auto}
  .leaderboard{top:66px;right:7px;width:175px}
}
@media(max-width:680px){
  .hud.upper{gap:3px}
  .hud.upper .mini-brand{width:34px;height:37px}
  .hud.upper .mini-brand img{width:31px;height:31px}
  .hud.upper .stat-card{height:37px;padding:3px 4px}
  .hud.upper .stat-card strong{font-size:11px}
  .hud.upper .stat-card small{font-size:7px}
  .hud.upper .room-card{display:none}
  .hud.upper .boost-cost{font-size:7px;max-width:56px;padding:2px 3px;min-height:36px}
  .hud.upper .boost{padding:2px 3px;font-size:7px;min-height:36px}
  .hud.upper .boost em{font-size:8px}
  .hud.upper .boost span{font-size:11px}
  .hud.upper .icon-btn{width:24px;height:32px}
  .map-card{right:6px;bottom:77px}
  .menu-logo{width:66px;height:66px}
}
@media(max-width:370px){.hud.upper .coin-card{display:none}.hud.upper .powerup-list .boost em{display:none}}

/* Snake Boss 0.7: game-ready emblem wordmark, no obstructive duplicate text. */
#menu .intro-col .logo-full{width:min(610px,100%);max-width:100%;height:auto;line-height:1;margin:0 auto 0 0;filter:drop-shadow(0 12px 30px #0009)}
#menu .logo-title-art{display:block;width:100%;height:auto;object-fit:contain;max-height:430px}
#menu .intro-col h1{margin-top:0}
#menu .intro-col{justify-content:center}
@media(max-width:800px){#menu .intro-col .logo-full{width:min(440px,100%);margin:0 auto}#menu .logo-title-art{max-height:280px}}

/* Snake Boss v0.8 — premium lightweight glass HUD, no GPU backdrop blur. */
#gameHud.hud.upper .mini-brand,
#gameHud.hud.upper .stat-card,
#gameHud.hud.upper .boost,
#gameHud.hud.upper .boost-cost,
#gameHud.hud.upper .icon-btn {
  background:linear-gradient(128deg,rgba(30,31,80,.77),rgba(7,21,48,.67));
  border:1px solid rgba(147,128,255,.47);
  box-shadow:inset 0 1px 0 #ffffff20, 0 5px 20px #0003;
  color:#f3f9ff;
}
#gameHud.hud.upper .stat-card strong{color:#f9f7ff;text-shadow:0 0 10px #61e8ff33}
#gameHud.hud.upper .stat-card small{color:#afd4f3}
#gameHud.hud.upper .coin-card .stat-icon{color:#ffe18b}
#gameHud.hud.upper .boost-cost.is-boosting{border-color:#ffe785;color:#ffecb1;background:#573622d9}
#leaderboard.leaderboard.glass{
  background:rgba(10,15,43,.45)!important;
  border:1px solid rgba(142,124,255,.54);
  box-shadow:0 9px 25px #0004, inset 0 1px #d1bdff20;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
#leaderboard .panel-header{background:linear-gradient(95deg,rgba(82,54,155,.68),rgba(26,32,85,.34));border-radius:10px 10px 0 0}
#leaderboard li{background:transparent!important}
#leaderboard li.first{background:rgba(255,196,66,.11)!important;border-radius:7px}
#mapWrap.map-card.glass{
  background:rgba(9,18,47,.44)!important;
  border:1px solid rgba(87,202,245,.64);
  box-shadow:0 8px 24px #0004,inset 0 1px #b7edff1f;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
#mapWrap.map-card canvas{opacity:.88;border-radius:6px}
#gameHud.hud.upper .boost{
  border-color:#8774d49c!important;
  background:linear-gradient(110deg,#3d2979ad,#102447a3)!important;
}
#gameHud.hud.upper .boost-x2{border-color:#59efd7!important;color:#a4fff0}
#gameHud.hud.upper .boost-speed{border-color:#ffd27a!important;color:#ffe9ac}
#gameHud.hud.upper .boost span{filter:drop-shadow(0 0 5px currentColor)}
#gameHud.hud.upper .boost:not([hidden]){animation:sb08Power 2.5s ease-in-out infinite}
@keyframes sb08Power{50%{border-color:#e9e1ff;box-shadow:0 0 10px #8173db36}}
@media(max-width:1050px){
 #gameHud.hud.upper .stat-card{padding-left:5px;padding-right:5px}
 #leaderboard.leaderboard{max-width:35vw}
}
@media(max-width:620px){
 #gameHud.hud.upper{right:5px;max-width:calc(100vw - 10px)}
 #gameHud.hud.upper .boost-cost{max-width:65px}
 #leaderboard.leaderboard{max-width:43vw}
 #mapWrap.map-card{opacity:.86}
}
@media(prefers-reduced-motion:reduce){#gameHud.hud.upper .boost:not([hidden]){animation:none}}

/* Snake Boss v0.8.1 — fit entire preview without image cropping. */
#tryonCanvas{width:100%;height:auto;max-height:none;object-fit:contain;aspect-ratio:1040/240;border-radius:10px}
.real-preview canvas{width:100%;height:100%;object-fit:contain}
.room-pill small{font-size:10px;color:#79f4da;font-weight:850;letter-spacing:.2px}

/* Snake Boss v0.9 — real five-piece creature assets in preview and arena. */

/* v0.9.1 — full-height responsive home screen; no fake ad stripe. */
html,body{min-height:100%;min-height:100dvh;background:#0b1031}
.overlay{inset:0;min-height:100dvh}
#adPlaceholder,.ad-placeholder{display:none!important}
#menu{
  background-image:linear-gradient(90deg,rgba(5,8,26,.83) 0%,rgba(5,8,26,.64) 37%,rgba(5,8,26,.13) 65%,rgba(5,8,26,.03) 100%),url('./hero.webp?v=091');
  background-color:#110b37;
  background-size:cover,cover;
  background-position:center center,right center;
  background-repeat:no-repeat;
  background-attachment:local;
  min-height:100dvh;
}
#menu .menu-shell{min-height:calc(100dvh - 54px)}
#menu .menu-footer{padding-bottom:22px}
#menu .intro-col .logo-full{max-width:min(510px,100%)}
#menu .logo-title-art{max-height:min(38vh,355px)}
#menu .login-col{box-shadow:0 22px 72px rgba(3,4,17,.7);backdrop-filter:blur(8px)}
@media (max-width:1050px){
  #menu{background-position:center center,70% center}
  #menu .menu-shell{max-width:100%;margin:auto;padding:clamp(20px,4vw,42px);grid-template-columns:minmax(0,1fr) minmax(300px,.8fr)}
}
@media (max-width:800px){
  #menu{background-image:linear-gradient(180deg,rgba(5,8,26,.28),rgba(5,8,26,.79) 48%,rgba(5,8,26,.98) 100%),url('./hero.webp?v=091');background-size:cover,auto 65vh;background-position:center,75% top}
  #menu .menu-shell{grid-template-columns:1fr;max-width:560px;padding:clamp(18px,4vw,30px) 16px 24px;gap:16px;min-height:100dvh}
  #menu .intro-col{min-height:0}
  #menu .logo-title-art{max-height:230px}
  #menu .login-col{justify-self:stretch;max-width:100%}
}
@media (max-width:420px){#menu .logo-title-art{max-height:185px}}

/* v0.9.2 — server-backed monthly hall of fame, not legacy stock miniatures. */
#menu .monthly-card{position:relative;z-index:1;margin-top:22px;max-width:530px;background:linear-gradient(130deg,rgba(11,24,55,.79),rgba(11,15,42,.62));border:1px solid rgba(104,221,250,.42);box-shadow:0 14px 38px #0005,inset 0 1px 0 #e0ffff16;border-radius:18px;padding:14px 16px 10px;color:#f5faff;backdrop-filter:none;-webkit-backdrop-filter:none}
.monthly-card .hall-heading{display:flex;align-items:end;justify-content:space-between;gap:9px}.hall-heading .hall-eyebrow{color:#72ffec;font-weight:950;letter-spacing:1.8px;font-size:10px}.hall-heading h2{font-size:17px;letter-spacing:.5px;margin:4px 0 7px;font-weight:1000}.hall-month{font-size:10px;font-weight:900;text-transform:uppercase;color:#ffe5a6;margin-bottom:9px;white-space:nowrap}.hall-tabs{display:flex;gap:7px;margin-bottom:8px}.hall-tab{flex:1;min-width:0;background:#1e2857bd;color:#aacef5;border:1px solid #6681b377;border-radius:9px;font-size:9px;letter-spacing:.25px;font-weight:900;line-height:1.35;padding:7px 5px;cursor:pointer}.hall-tab.selected{background:linear-gradient(110deg,#38e9c5,#76fff0);border-color:#a0ffec;color:#07263a;box-shadow:0 0 14px #40efd45c}.hall-rows{padding:0;margin:0;list-style:none;max-height:269px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#566c9b44 transparent}.hall-entry{display:grid;grid-template-columns:29px minmax(0,1fr) auto;align-items:center;gap:7px;padding:5px 7px;border-bottom:1px solid #accaff1b;min-height:22px;font-size:12px}.hall-entry:nth-child(even){background:#8b98ff0d}.hall-entry:first-child{background:#e2aa2a24;border:1px solid #f9d47955;border-radius:8px}.hall-rank{color:#91b1d3;font-weight:950;font-size:11px}.hall-entry:first-child .hall-rank{color:#ffe07e;font-size:17px}.hall-nick{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:750}.hall-score{color:#f7faff;font-size:12px;letter-spacing:.3px;font-variant-numeric:tabular-nums}.hall-entry:first-child .hall-score{color:#ffdd80}.hall-empty{text-align:center;padding:20px 8px;color:#9fb5d7;font-size:12px;line-height:1.5}.hall-note{font-size:10px;color:#9caed0;margin:8px 3px 1px;line-height:1.4}
@media(max-width:1100px){#menu .monthly-card{max-width:480px}}
@media(max-width:800px){#menu .monthly-card{max-width:100%;margin-top:16px}#menu .hall-entry{font-size:11px}.mad-warning{top:60px;max-width:calc(100vw - 22px);font-size:10px;gap:6px;padding:6px 11px}}
@media(prefers-reduced-motion:reduce){.monthly-card *{animation:none!important}}

/* Account registration / login — compact, isolated modal */
.account-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between;margin:8px 0 14px;}
.account-status{font-size:11px;color:#9ee8e1;font-weight:700;}
.account-actions{display:flex;gap:6px;}
.account-actions button,.auth-footer button,.auth-recovery-note button{background:#1c3155;color:#bcfaff;border:1px solid #44749b;border-radius:8px;padding:8px 10px;font-weight:800;font-size:11px;cursor:pointer;}
#nickInput[readonly]{background:#172641;opacity:.82;}
.auth-modal{width:min(480px,calc(100vw - 24px));max-height:min(90dvh,790px);overflow-y:auto;padding:26px;border-radius:20px;}
.auth-title-row{display:flex;justify-content:space-between;gap:8px;align-items:center;}
.auth-title-row h2{font-size:26px;margin:5px 0 10px;}
.auth-modal form{display:flex;flex-direction:column;gap:8px;margin-top:16px;}
.auth-modal label{font-size:11px;color:#8fece1;font-weight:800;letter-spacing:.05em;}
.auth-modal input{background:#0c1730;color:#fff;border:1px solid #3e6086;border-radius:9px;padding:12px 13px;width:100%;font-size:16px;}
.auth-modal .primary-btn{margin:10px 0 0;width:100%;}
.auth-recovery-note{border:1px solid #59b7bb;background:#112c42;padding:14px;border-radius:12px;margin:14px 0;}
.auth-recovery-note strong{color:#8effe3;font-size:12px;}
.auth-recovery-note p{font-size:12px;}
.auth-recovery-note code{display:block;font-size:13px;word-break:break-all;background:#071326;padding:9px;border-radius:7px;color:#ffeb9c;margin:10px 0;}
.auth-footer{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;}
.auth-privacy{color:#98aac9;font-size:11px;line-height:1.5;margin-top:12px;}
@media(max-width:600px){.account-bar{align-items:start;}.auth-modal{padding:18px;}.auth-title-row h2{font-size:22px;}}

/* Desperato banner layout is independent from HUD flex children. */
#madWarning.mad-warning{
  position:fixed;z-index:18;top:8px;left:50%;transform:translateX(-50%);
  box-sizing:border-box;width:min(520px,calc(100vw - 18px));height:36px;
  display:flex;align-items:center;gap:6px;padding:2px 8px 2px 2px;
  background:linear-gradient(110deg,rgba(12,16,45,.94),rgba(40,20,69,.93),rgba(9,16,41,.95));
  border:1px solid rgba(121,248,255,.9);border-radius:13px;
  box-shadow:0 0 0 1px #fc36dc73,0 0 13px #b93df745,inset 0 0 11px #2759a44d;
  color:#fff;white-space:nowrap;pointer-events:none;line-height:1.1;
  animation:sb095Slide .22s ease-out both;
}
#madWarning.mad-warning[hidden]{display:none!important}
#madWarning .mad-face{display:block;width:34px;height:34px;flex:0 0 34px;object-fit:contain;filter:drop-shadow(0 0 3px #ff6cca95)}
#madWarning .mad-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font:950 clamp(9px,.9vw,12px)/1.1 system-ui,sans-serif;letter-spacing:.20px;text-shadow:0 1px 3px #000;}
#madWarning[data-phase="before"] .mad-title{color:#ffe3a3}
#madWarning[data-phase="active"] .mad-title{color:#ffbd9f}
#madWarning .mad-count{flex:0 0 auto;display:flex;align-items:center;gap:8px;
  color:#ffead8;font-size:9px;font-weight:900;letter-spacing:.2px}
#madWarning #madTime{display:inline-block;min-width:49px;text-align:center;padding:5px 6px;
  background:#3b193de6;border:1px solid #ff68c9b7;border-radius:7px;color:#ffe468;
  font:1000 13px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;text-shadow:0 0 5px #ff9f32}
@keyframes sb095Slide{from{opacity:0;transform:translate(-50%,-5px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:740px){
 #madWarning.mad-warning{height:34px;top:51px;padding:2px 7px;gap:5px;max-width:calc(100vw - 12px)}
 #madWarning .mad-face{width:30px;height:30px;flex-basis:30px}
 #madWarning .mad-title{font-size:10px}
 #madWarning .mad-count{gap:4px}
 #madWarning .mad-verb{display:none}
 #madWarning #madTime{font-size:13px;min-width:36px;padding:4px}
}
@media(prefers-reduced-motion:reduce){#madWarning.mad-warning{animation:none}}
/* Independent viewport-centered Desperato announcement (outside gameHud). */
@media (max-width: 1400px){#madWarning.mad-warning{top:51px;height:34px;}}

/* UX stabilization: shared HUD line, no game logo, reduced overlay rendering. */
#gameHud.hud.upper{top:8px;left:9px;right:9px;max-width:none;width:auto;gap:5px;min-height:39px}
#gameHud .stat-card{height:36px;padding:3px 8px;gap:5px;border-radius:8px}
#gameHud .stat-card strong{font-size:14px}
#gameHud .stat-card small{font-size:8px}
#gameHud .stat-icon{font-size:15px}
#gameHud .boost-cost{min-height:35px;max-width:136px;font-size:8px}
#gameHud .boost{min-height:35px}
#gameHud .icon-btn{height:35px;width:32px;order:20}
#gameHud .boost-cost,.leaderboard,.map-card{backdrop-filter:none;-webkit-backdrop-filter:none}
#leaderboard.leaderboard.glass{background:rgba(10,15,43,.49);backdrop-filter:none;-webkit-backdrop-filter:none}
#mapWrap.map-card.glass{background:rgba(9,18,47,.49);backdrop-filter:none;-webkit-backdrop-filter:none}
@media(max-width:1000px){
 #gameHud.hud.upper{flex-wrap:wrap;max-width:calc(100vw - 18px);gap:3px}
 #gameHud .stat-card{height:32px;padding:3px 5px}
 .leaderboard{top:72px}
}
@media(max-width:600px){
 #gameHud .player-card{display:flex}
 #gameHud .boost-cost{max-width:74px;min-height:31px}
 #gameHud .icon-btn{height:31px;width:27px}
 #gameHud .room-card{display:none}
 .leaderboard{top:91px}
}
/* Language selection and lightweight footer. */
#menu{position:fixed;isolation:isolate}
#menu .locale-switch{position:absolute;right:clamp(18px,4vw,48px);top:14px;z-index:5;display:flex;gap:3px;
 padding:3px;border:1px solid rgba(108,231,242,.36);background:rgba(8,15,36,.76);border-radius:11px}
.locale-switch button{border:0;background:transparent;color:#b4c9e7;padding:7px 11px;font-size:11px;font-weight:900;border-radius:8px}
.locale-switch button[aria-pressed="true"]{color:#07243a;background:#73ffe7;box-shadow:0 0 9px #6bfff54d}
#menu .menu-shell{padding-top:62px}
#menu .menu-footer{padding:8px clamp(16px,4vw,42px) 22px;gap:12px;flex-wrap:wrap;align-items:center;max-width:1320px}
.menu-footer .footer-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.menu-footer button{border:0;padding:2px;background:none;color:#aac7e9;letter-spacing:.35px;font-size:11px;font-weight:700}
.menu-footer button:hover,.menu-footer a:hover{text-decoration:underline;color:#78ffe6}
.menu-footer a{color:#bbf0ff;text-decoration:none;font-size:11px;letter-spacing:.35px}
.menu-footer .copyright{color:#cad9ef;font-weight:900;letter-spacing:.5px}
.menu-footer .footer-credit{font-size:11px;color:#91abc9;letter-spacing:.4px;margin-left:auto}
.auth-privacy button{border:0;background:none;color:#85ffe9;text-decoration:underline;cursor:pointer;font-size:inherit;padding:0}
/* Information dialog with three accessible tabs. */
.info-modal{width:min(780px,calc(100vw - 24px));max-height:min(89dvh,850px);overflow-y:auto;padding:23px}
.info-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.info-head h2{font-size:27px;margin:6px 0 12px}
.info-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 16px}
.info-tabs button{font-size:12px;font-weight:850;color:#c6e0ff;background:#19254a;border:1px solid #475f91;border-radius:9px;padding:9px 12px}
.info-tabs button[aria-selected="true"]{background:#75ffe7;color:#052239;border-color:#b7fff1}
.info-body{font-size:13px;line-height:1.65;color:#d6e5f7;overflow-y:auto;max-height:min(54vh,530px);padding-right:8px}
.info-body h3{font-size:16px;margin:19px 0 6px;color:#83ffe6}
.info-body p{margin:8px 0}
.info-body ul{margin:6px 0 12px;padding-left:20px}
.info-body li{margin-bottom:6px}
.info-bottom{font-size:10px;line-height:1.5;color:#ffdca0;border-top:1px solid #7595bd44;padding-top:12px;margin-top:12px}
@media(max-width:800px){#menu .menu-shell{padding-top:64px}#menu .menu-footer{padding-bottom:22px}}
@media(max-width:480px){.menu-footer .footer-credit{margin-left:0;width:100%}.info-modal{padding:16px}.info-tabs button{flex:1;padding:8px 5px}}
@media print{#infoView{position:static;overflow:visible;background:white;color:black}#infoView .info-modal{max-height:none;box-shadow:none;background:white;color:black;overflow:visible;width:100%}#infoClose,.info-tabs,.info-bottom{display:none}.info-body{max-height:none;overflow:visible;color:black}#menu,#arena,#gameHud,#leaderboard,#mapWrap,#deathView,#shopView,#authView{display:none}}

/* Keep inline feature labels unboxed; only the outer chip receives the border. */
.feature-row span[data-i18n]{display:inline;border:0;background:none;box-shadow:none;padding:0;margin:0;border-radius:0;font:inherit;color:inherit;letter-spacing:inherit}


/* Snake Boss information dialog: readable legal text, no decorative list bullets. */
#infoView .info-modal{width:min(840px,calc(100vw - 24px));text-align:left;display:flex;flex-direction:column;overflow:hidden;min-height:0;}
#infoView .info-head,#infoView .info-tabs,#infoView .info-bottom{flex-shrink:0;}
#infoView .info-head h2{font-size:clamp(23px,3.6vw,30px);line-height:1.15;letter-spacing:-.025em;margin:7px 0 4px;}
#infoView .info-tabs{padding-bottom:14px;border-bottom:1px solid rgba(127,166,213,.23);margin-bottom:6px;}
#infoView .info-body{min-height:0;flex:1;max-height:min(57dvh,590px);overflow-y:auto;text-align:left;line-height:1.74;font-size:14px;padding:4px clamp(6px,1.1vw,14px) 8px 2px;scrollbar-width:thin;scrollbar-color:#496480 transparent;}
#infoView .info-section{margin:0;padding:16px 0 18px;border-bottom:1px solid rgba(129,164,211,.15);}
#infoView .info-section:first-child{padding-top:10px;}
#infoView .info-section:last-child{border-bottom:0;}
#infoView .info-section h3{color:#7ff6e8;font-size:15px;line-height:1.35;font-weight:850;letter-spacing:-.01em;text-align:left;margin:0 0 10px;}
#infoView .info-section p{margin:0 0 10px;color:#d6e4f5;font-size:14px;line-height:1.75;text-align:left;overflow-wrap:break-word;}
#infoView .info-section p:last-child{margin-bottom:0;}
#infoView .info-body.legal-doc{counter-reset:legal-section;}
#infoView .legal-doc .info-section{counter-increment:legal-section;}
#infoView .legal-doc .info-section h3::before{content:counter(legal-section,decimal-leading-zero);display:inline-block;min-width:29px;margin-right:10px;color:#91a7d4;font-size:11px;letter-spacing:.06em;vertical-align:2px;}
#infoView .info-body:not(.legal-doc) ul{margin:0 0 2px 0;padding-left:21px;text-align:left;}
#infoView .info-body:not(.legal-doc) li{text-align:left;line-height:1.7;margin-bottom:8px;padding-left:2px;}
#infoView .info-bottom{text-align:left;line-height:1.5;margin-top:8px;padding-top:12px;}
@media(max-width:560px){
  #infoView .info-modal{max-height:calc(100dvh - 20px);padding:17px 15px;}
  #infoView .info-tabs{gap:5px;}
  #infoView .info-tabs button{font-size:11px;}
  #infoView .info-body{max-height:calc(100dvh - 245px);font-size:13px;}
  #infoView .info-section p{font-size:13px;line-height:1.68;}
  #infoView .info-section h3{font-size:14px;}
}
@media print{
  #infoView .info-modal{overflow:visible;display:block;}
  #infoView .info-body{max-height:none;overflow:visible;color:#000;}
  #infoView .info-section p,#infoView .info-section h3{color:#000;}
}

/* SEC-02 UI: centered event, readable account and embedded killer rank. */
#gameHud.hud.upper{column-gap:5px}
#gameHud .kill-card .killer-icon{display:grid;place-items:center;border-radius:50%;width:19px;height:19px;flex:0 0 19px;background:linear-gradient(145deg,#ffeaa8,#da9635);color:#2b1745;font-weight:1000;font-size:11px;box-shadow:0 0 10px #f6c45b66}
#gameHud .kill-card{min-width:67px}
@media(min-width:1321px){
  
  #gameHud #exitBtn{margin-left:auto}
}
@media(max-width:1320px){
  #gameHud.hud.upper{flex-wrap:wrap;min-height:auto}
  
}
#menu .feature-row>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;padding:7px 10px;border-radius:999px}
#menu .feature-row>span>span{background:none;border:0;padding:0;box-shadow:none;border-radius:0;white-space:nowrap}
#menu .feature-row{gap:8px}
#menu .account-identity{display:flex;align-items:center;gap:14px;margin:18px 0 16px}
#menu .profile-avatar{width:74px;height:74px;flex:0 0 74px;border-radius:18px;border:1px solid #5ee7f7a8;background-color:#17264e;background-size:contain;background-position:center;background-repeat:no-repeat;box-shadow:0 0 22px #48c8f340}
#menu .identity-copy{min-width:0}
#menu .identity-copy h2{font-size:clamp(20px,2.5vw,27px);margin:0 0 9px;letter-spacing:-.5px}
#menu .identity-copy .account-status{font-size:12px;color:#85eee1;line-height:1.5}
#menu .account-bar{justify-content:center;margin:11px 0 20px}
#menu .account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;max-width:330px}
#menu .account-actions button{min-height:41px;border-color:#6ebcffaa;border-radius:11px;background:linear-gradient(125deg,#1e3664,#153353);color:#e4ffff;font-size:12px;letter-spacing:.4px;cursor:pointer}
#menu .account-actions button:hover{border-color:#58ffdc;box-shadow:0 0 12px #3fffff44}
#menu .account-actions button[hidden]{display:none}
#menu .player-stats>div{min-width:0}
#menu .player-stats{gap:4px}
#menu .player-stats strong{font-size:19px}
#menu .hall-tabs{gap:5px}
#menu .hall-tabs .hall-tab{font-size:9px;letter-spacing:0;padding:7px 4px}
.killer-badge{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;min-width:16px;margin-right:7px;border-radius:50%;background:linear-gradient(130deg,#ffd87a,#b86a18);color:#28163f;box-shadow:0 0 9px #ffc75c80;font-size:10px;font-weight:1000;vertical-align:middle}
.hall-entry .hall-nick .killer-badge{margin-right:6px}
.kill-toast{position:fixed;top:58px;left:50%;transform:translate(-50%,-8px);opacity:0;z-index:26;background:#111b43ee;color:#ffe0a0;border:1px solid #ffca7b;border-radius:12px;padding:10px 16px;font-size:12px;font-weight:900;box-shadow:0 9px 30px #0008;transition:transform .2s,opacity .2s;pointer-events:none;max-width:calc(100vw - 30px);text-align:center}
.kill-toast.shown{opacity:1;transform:translate(-50%,0)}
.kill-toast[hidden]{display:none}
@media(max-width:700px){#menu .profile-avatar{width:58px;height:58px;flex-basis:58px}#menu .account-identity{gap:10px}#menu .identity-copy h2{font-size:20px}#menu .player-stats strong{font-size:16px}}
@media(max-width:390px){#gameHud .kill-card{min-width:0}#gameHud .kill-card strong{font-size:10px}#menu .account-actions{gap:7px}}
@media(prefers-reduced-motion:reduce){.kill-toast{transition:none}}


/* QA-01A: skin shop — fixed close control, wallet and full-worm preview.
   The ONLY scrolling surface is the skin grid. Keep purchase semantics untouched. */
#shopView.overlay{overflow:hidden;padding:12px;display:flex;align-items:center;justify-content:center;}
#shopView .shop-modal{
  width:min(1100px,100%);height:min(92dvh,900px);max-height:calc(100dvh - 24px);
  min-height:0;display:flex;flex-direction:column;overflow:hidden;
  padding:clamp(12px,2vw,24px);gap:0;
}
#shopView .shop-header,#shopView .shop-money,#shopView .tryon-panel,#shopView .shop-info{flex:none;}
#shopView .shop-header{position:relative;min-height:0;}
#shopView .shop-header>div{min-width:0;flex:1;}
#shopView #closeShop{flex:none;position:relative;z-index:1;}
#shopView .shop-header p{margin-bottom:6px;}
#shopView .shop-money{padding:8px 0;}
#shopView .tryon-panel{margin:7px 0 8px;}
#shopView #tryonCanvas{max-height:min(20dvh,175px);width:100%;height:auto;object-fit:contain;}
#shopView .skins-grid{
 flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
 align-content:start;grid-auto-rows:max-content;margin:0;padding:8px 6px 8px 1px;scrollbar-width:thin;scrollbar-color:#4d80a4 #101a36;
}
#shopView .skin-card{min-width:0;}
#shopView .shop-info{min-height:18px;height:auto;margin:5px 0 0;}
@media(max-width:760px){
 #shopView.overlay{padding:6px;}
 #shopView .shop-modal{height:calc(100dvh - 12px);max-height:none;padding:10px;}
 #shopView .shop-header h2{margin:4px 0;font-size:24px;}
 #shopView .shop-header .eyebrow{font-size:8px;}
 #shopView .shop-header p{font-size:10px;line-height:1.35;margin:0 0 4px;}
 #shopView .shop-money{padding:5px 0;}
 #shopView .shop-money strong{font-size:18px;}
 #shopView .tryon-panel{padding:6px;margin:4px 0 6px;}
 #shopView .tryon-panel .tryon-head{margin-bottom:3px;font-size:10px;}
 #shopView #tryonCanvas{max-height:min(15dvh,115px);}
 #shopView .tryon-panel small{font-size:9px;line-height:1.2;}
 #shopView .skins-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
 #shopView .skin-card{padding:6px;}
 #shopView .skin-preview{height:82px;margin-bottom:6px;}
 #shopView .skin-card h3{font-size:11px;}
 #shopView .skin-card p{font-size:9px;margin-bottom:6px;}
 #shopView .skin-card button{font-size:9px;padding:7px 3px;}
}
@media(max-height:620px){
 #shopView .shop-modal{height:calc(100dvh - 12px);max-height:none;}
 #shopView .tryon-panel small{display:none;}
 #shopView #tryonCanvas{max-height:70px;}
 #shopView .shop-header p{display:none;}
}

/* QA-01C: consistent jeweled BOSS crown (direction = viewport edge position). */
#bossIndicator.boss-indicator{width:62px;height:57px;min-width:62px;display:grid;place-items:center;
  padding:4px;background:radial-gradient(circle,#483218d9,#100e27c8 70%);
  border:1px solid #ffd86aa8;border-radius:18px;box-shadow:0 0 19px #ffd86b47,0 6px 18px #0008;
  pointer-events:none;box-sizing:border-box;}
#bossIndicator[hidden]{display:none;}
#bossIndicator .boss-compass-crown{display:block;width:50px;height:43px;filter:drop-shadow(0 2px 3px #0008);}
#leaderboard .panel-crown-heading{display:inline-flex;align-items:center;gap:2px;}
#leaderboard .panel-crown-heading img{display:inline-block;width:18px;height:17px;object-fit:contain;}
.leader-crown{display:inline-flex;align-items:center;justify-content:center;line-height:1;}
.leader-crown img{width:23px;height:21px;display:block;object-fit:contain;filter:drop-shadow(0 1px 3px #fbc43c6b);}
.hall-rank.leader-crown img{width:27px;height:24px;}
#menu .seo-intro{max-width:640px;margin:6px 0 14px;color:#aac6dc;font-size:12px;line-height:1.55;}
@media(max-width:800px){#bossIndicator.boss-indicator{width:48px;height:46px;min-width:48px;padding:2px;border-radius:13px;}
 #bossIndicator .boss-compass-crown{width:41px;height:35px;}}


/* QA-01E — isolated final account and home card styling.
   Scope all overrides to these existing views; game canvas and shop are unaffected. */
#menu .login-col{
  width:100%;max-width:540px;min-width:0;
  padding:clamp(22px,2.4vw,34px);
  display:flex;flex-direction:column;gap:0;
}
#menu .login-col .card-topline{padding-bottom:12px;margin-bottom:12px;line-height:1.4}
#menu .player-stats{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;
  padding:0;margin:0 0 17px;border-bottom:0;
}
#menu .player-stats>div{
  min-width:0;min-height:74px;padding:11px 4px 9px;
  border:1px solid #4d80ae70;border-radius:12px;
  background:linear-gradient(150deg,#203459ca,#0d1938e8);
  text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:5px;
}
#menu .player-stats>div:nth-child(1){border-color:#93c6fb80}
#menu .player-stats>div:nth-child(2){border-color:#ffd47780}
#menu .player-stats>div:nth-child(3){border-color:#9c8bfa80}
#menu .player-stats>div:nth-child(4){border-color:#66f4d180}
#menu .player-stats small{font-size:9px;letter-spacing:.6px;line-height:1.25}
#menu .player-stats strong{font-weight:850;font-size:clamp(17px,1.5vw,22px);line-height:1.15;margin:0}
#menu .account-identity{gap:14px;margin:0 0 17px;align-items:center}
#menu .profile-avatar{width:72px;height:72px;flex:0 0 72px}
#menu .identity-copy{flex:1;min-width:0}
#menu .identity-copy h2{font-size:clamp(22px,2.2vw,28px);line-height:1.22;margin:0 0 4px;font-weight:850;letter-spacing:-.55px;overflow-wrap:anywhere}
#menu .identity-copy .account-status{display:block;font-size:11px;line-height:1.45}
#menu .current-character{display:flex;align-items:center;flex-wrap:wrap;gap:4px 9px;margin-top:7px;color:#97b4d1;font-size:10px}
#menu .current-character>span{letter-spacing:.7px;font-weight:750}
#menu .current-character strong{color:#ecfcff;font-size:11px;font-weight:800}
#menu #nickInput{min-height:45px;padding:11px 14px}
#menu #nickError:empty{min-height:0;margin:0}
#menu .account-bar{margin:12px 0 15px;width:100%;justify-content:stretch}
#menu .account-actions{display:flex;align-items:stretch;max-width:none;width:100%;gap:8px}
#menu .account-actions>button{flex:1 1 0;min-width:0;min-height:44px;padding:10px 5px;font-size:clamp(9px,.78vw,11px);letter-spacing:.1px;line-height:1.2;white-space:normal}
#menu .account-actions>button.shop-action{
 border-color:#48f3d7a6;color:#0d2937;
 background:linear-gradient(110deg,#62ffdc,#8af0fd);font-weight:900;
}
#menu .account-actions>button.shop-action span[aria-hidden]{font-size:15px;vertical-align:-1px;margin-right:3px}
#menu #playBtn{margin-top:0;min-height:52px}
#menu .rooms-header{margin-top:18px}
#menu .skin-spot[hidden]{display:none}
@media (min-width:1051px){
 #menu .menu-shell{
   max-width:min(1190px,81vw);margin-left:clamp(20px,2.5vw,52px);margin-right:0;
   grid-template-columns:minmax(0,1fr) minmax(430px,.95fr);
   gap:clamp(14px,1.8vw,30px);
 }
 #menu .login-col{justify-self:end}
}
@media (min-width:1051px) and (max-width:1220px){
 #menu .menu-shell{max-width:calc(100vw - 40px);grid-template-columns:minmax(0,1fr) minmax(390px,.94fr)}
}
@media (max-width:800px){
 #menu .login-col{width:100%;max-width:540px;justify-self:stretch}
 #menu .player-stats>div{min-height:69px;padding:8px 3px}
}
@media (max-width:450px){
 #menu .login-col{padding:19px 15px}
 #menu .player-stats{gap:5px}
 #menu .player-stats small{font-size:8px;letter-spacing:0}
 #menu .player-stats strong{font-size:16px}
 #menu .profile-avatar{width:58px;height:58px;flex-basis:58px}
 #menu .identity-copy h2{font-size:21px}
 #menu .account-actions{gap:6px}
 #menu .account-actions>button{min-height:42px;font-size:9px;letter-spacing:0;padding:9px 3px}
}
/* Auth modal: one consistent column; heading and close control never overlap. */
#authView.modal-layer{padding:16px 12px;align-items:center;justify-items:center}
#authView .auth-modal{
 width:min(510px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;
 padding:clamp(20px,3vw,31px);text-align:left;
 border-radius:22px;scrollbar-width:thin;scrollbar-color:#4c6a96 transparent;
}
#authView .auth-title-row{display:block;position:relative;padding:0 43px;min-height:66px;}
#authView .auth-title-row>div{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;min-width:0;width:100%;}
#authView .auth-title-row .eyebrow{
 font-family:system-ui,-apple-system,'Segoe UI',sans-serif;
 font-size:10px;font-weight:800;letter-spacing:2px;line-height:1.55;
 color:#77ffe6;white-space:normal;overflow-wrap:break-word;
}
#authView .auth-title-row h2,#authView #authTitle{
 margin:0;display:block;position:static;
 font-family:system-ui,-apple-system,'Segoe UI',sans-serif;
 font-size:clamp(25px,3.1vw,30px);font-weight:850;
 line-height:1.22;letter-spacing:-.035em;color:#fff;
 text-align:center;overflow-wrap:break-word;
}
#authView #authClose{position:absolute;right:0;top:3px;width:40px;height:40px;flex:none;}
#authView #authHint{
 margin:7px auto 17px;max-width:430px;text-align:center;
 font-size:12px;line-height:1.6;color:#aabbd9;
}
#authView #authForm{display:flex;flex-direction:column;gap:0;margin:0;}
#authView #authForm label{
 font-size:11px;line-height:1.4;letter-spacing:.5px;
 color:#90ffec;font-weight:850;margin:13px 0 7px;text-align:left;
}
#authView #authForm>label:first-child{margin-top:0}
#authView #authForm input{
 min-height:46px;width:100%;padding:12px 14px;
 font-size:15px;line-height:1.4;border-radius:11px;
 background:#0b1731;border:1px solid #4b6c94;
}
#authView #authRecoverGroup label{display:block}
#authView #authSubmit{margin:19px 0 0;min-height:51px;line-height:1.3;letter-spacing:1px;font-weight:850}
#authView #authError{margin:8px 0 0;min-height:0;line-height:1.5}
#authView .auth-footer{
 display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
 gap:9px;margin:18px 0 10px;
}
#authView .auth-footer button{font-size:11px;min-height:37px;padding:8px 12px;line-height:1.3}
#authView .auth-privacy{font-size:11px;line-height:1.6;text-align:center;margin:10px 0 0;color:#a1b4d2;}
#authView .auth-recovery-note{text-align:left}
@media(max-width:430px){
 #authView .auth-modal{padding:20px 16px}
 #authView .auth-title-row{padding:0 39px}
 #authView .auth-title-row .eyebrow{font-size:9px;letter-spacing:1px}
 #authView .auth-title-row h2,#authView #authTitle{font-size:25px;line-height:1.25}
 #authView .auth-footer button{flex:1 1 125px}
}

/* GAME14: accessible arena selection. Explicit on/off states, keyboard focus. */
#menu .room-pill{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:76px;padding:9px 7px;cursor:pointer;font:inherit;line-height:1.25;transition:border-color .15s,background-color .15s}
#menu .room-pill small{font-size:10px;line-height:1.35;text-wrap:balance}
#menu .room-pill[aria-pressed="true"]{border-color:#73fce1;background:#113954;box-shadow:inset 0 0 0 1px #73fce15c}
#menu .room-pill:focus-visible{outline:3px solid #7bf5e1;outline-offset:2px}
#menu .room-pill:disabled{cursor:not-allowed;opacity:.52}
#menu .room-pill.room-auto{border-style:dashed}

/* CORE24: player account v2 and public contact form; no gameplay/MOB-01 layout changes */
#authForm .auth-field{display:flex;flex-direction:column;gap:7px}#authForm .auth-field[hidden],#authForm>div[hidden]{display:none}
.auth-consents{display:grid;gap:10px;margin:10px 0}.checkbox-field{display:flex!important;align-items:flex-start;gap:12px;color:#d5e9fa!important;letter-spacing:normal!important;font-size:12px!important;text-align:left;line-height:1.5}.checkbox-field input{width:18px!important;min-width:18px;height:18px;margin:0;accent-color:#6dfce0}
.auth-service-note,.auth-password-rule{color:#a5c6dc;font-size:12px;line-height:1.5;text-align:left}.auth-service-note{border:1px solid #425d75;border-radius:9px;padding:10px;background:#14233d}.auth-consents .text-btn{font-size:12px;padding:4px;text-align:left}
.contact-modal{width:min(620px,calc(100vw - 24px));max-height:88dvh;overflow-y:auto;text-align:left;padding:24px}.contact-modal h2{font-size:29px}.contact-modal>p{font-size:13px;color:#b8c9de;line-height:1.5}.contact-modal form{display:grid;gap:10px}.contact-modal label{font-size:12px;color:#a3e9e2;font-weight:800}.contact-modal input:not([type=checkbox]),.contact-modal textarea,.contact-modal select{width:100%;border:1px solid #46638c;border-radius:10px;background:#0b1832;color:#fff;padding:12px;font:inherit}.contact-modal textarea{min-height:112px;resize:vertical}.contact-modal .text-btn{padding:4px;text-align:left}.contact-honeypot{position:absolute;left:-99999px;width:1px;height:1px;overflow:hidden}.contact-modal .field-error{min-height:24px;font-size:12px}.contact-modal .checkbox-field{color:#c8d8ee!important}

/* PANEL25: the contact link is not offered until email delivery is active. */
.footer-links [hidden]{display:none}

/* DATA27 + MOB27: reviewed mobile layout; gameplay logic and skin artwork unchanged. */
#menu .my-data-btn{display:block;margin:9px 0 0;width:100%;min-height:38px;border:1px solid #4b7893;border-radius:10px;background:#11223dba;color:#a6ebdf;font:800 11px system-ui,sans-serif;letter-spacing:.09em;cursor:pointer}
#menu .my-data-btn:focus-visible,.my-data-modal button:focus-visible{outline:2px solid #76ffe2;outline-offset:3px}
#myDataView.modal-layer{padding:12px;place-items:center}
#myDataView .my-data-modal{width:min(540px,100%);max-height:calc(100dvh - 24px);overflow-y:auto;text-align:left;padding:clamp(17px,3vw,28px);overscroll-behavior:contain}
.my-data-header{display:flex;align-items:center;justify-content:space-between;gap:10px}
#myDataView h2{font-size:clamp(22px,5vw,31px);margin:0}
#myDataView p{font-size:12px;line-height:1.65;color:#b6c8dc}
#myDataView label:not(.checkbox-field){display:block;margin:13px 0 7px;color:#a2f4e0;font-size:12px;font-weight:800}
#myDataPassword{display:block;width:100%;font-size:16px;padding:12px 13px;color:#fff;background:#0b1730;border:1px solid #456b8c;border-radius:9px}
#myDataExport,#myDataDelete{display:block;width:100%;min-height:45px;margin-top:14px;border-radius:10px;font-weight:850;cursor:pointer}
#myDataExport{background:#19425b;border:1px solid #75c9df;color:#dcffff}
#myDataDelete{background:#642638;border:1px solid #d67b8d;color:#fff}
#myDataDelete:disabled,#myDataExport:disabled{opacity:.55;cursor:wait}
.data-danger{border:1px solid #a94d6980;background:#471b3059;border-radius:11px;margin-top:22px;padding:12px}
.data-danger strong{font-size:12px;color:#ffd4de;letter-spacing:.05em}
.data-danger .checkbox-field{margin:14px 0 5px}
#myDataStatus{min-height:22px;margin:10px 0 0}
#gameHud .boost-cost{pointer-events:auto;cursor:pointer;user-select:none;-webkit-user-select:none;touch-action:none;min-width:70px;max-width:90px;justify-content:center;letter-spacing:.08em;font-weight:950}
#gameHud .boost-cost[hidden],#gameHud .powerup-list[hidden]{display:none}
#gameHud .boost-cost:focus-visible{outline:2px solid #f8e188;outline-offset:3px}
@media(max-width:800px){
  /* iOS Safari does not reliably honor background-attachment:fixed. */
  #menu{isolation:isolate;background:#0b0925}
  #menu::before{content:'';position:fixed;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,rgba(5,8,26,.76),rgba(6,9,30,.28)),url('./hero.webp') 66% center/cover no-repeat}
  #menu>.menu-shell,#menu>.menu-footer{position:relative;z-index:1}
  /* MOB28: keep PL/EN anchored to the visible upper-right corner; no relative offset on a full-width nav. */
  #menu>.locale-switch{position:absolute;top:calc(env(safe-area-inset-top,0px) + 12px);right:calc(env(safe-area-inset-right,0px) + 12px);left:auto;z-index:6;width:max-content;max-width:calc(100% - 24px);margin:0;transform:none}
  /* MOB28: no manual TURBO action on phone/tablet; desktop and game rules stay unchanged. */
  #gameHud.hud.upper .boost-cost{display:none}
  #gameHud.hud.upper{top:calc(env(safe-area-inset-top,0px) + 5px);left:5px;right:5px;width:calc(100vw - 10px);max-width:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) 28px;align-items:stretch;gap:3px}
  #gameHud.hud.upper .stat-card{display:flex;min-width:0;width:100%;height:39px;padding:3px 2px;justify-content:center;text-align:center}
  #gameHud.hud.upper .stat-card>div{min-width:0}
  #gameHud.hud.upper .stat-card small{display:block;white-space:nowrap;font-size:6px;letter-spacing:0}
  #gameHud.hud.upper .stat-card strong{display:block;white-space:nowrap;font-size:clamp(9px,2.6vw,12px);font-variant-numeric:tabular-nums}
  #gameHud.hud.upper .room-card,#gameHud.hud.upper .coin-card,#gameHud.hud.upper .player-card{display:flex}
  #gameHud.hud.upper .stat-icon,#gameHud.hud.upper .online-light{display:none}
  #gameHud.hud.upper #exitBtn{width:28px;height:39px;min-width:28px;margin:0;padding:0}
  #gameHud .powerup-list{position:fixed;top:calc(env(safe-area-inset-top,0px) + 48px);left:6px;z-index:17}
  #gameHud .boost-cost{position:fixed;top:auto;left:auto;right:calc(env(safe-area-inset-right,0px) + 151px);bottom:calc(env(safe-area-inset-bottom,0px) + 18px);min-width:87px;max-width:none;min-height:51px;border-radius:16px;font-size:13px;z-index:19}
  #touchPad.touch-joystick{left:calc(env(safe-area-inset-left,0px) + 12px);bottom:calc(env(safe-area-inset-bottom,0px) + 15px);width:106px;height:106px}
  #touchPad.touch-joystick>div{top:31px;left:31px}
  #mapWrap.map-card{right:calc(env(safe-area-inset-right,0px) + 8px);bottom:calc(env(safe-area-inset-bottom,0px) + 13px);width:130px;max-width:130px;padding:6px}
  #mapWrap.map-card canvas{display:block;width:100%;height:auto;aspect-ratio:1}
  #leaderboard.leaderboard{top:calc(env(safe-area-inset-top,0px) + 96px);right:7px;width:min(138px,35vw);max-width:none;opacity:.85}
  #leaderboard.leaderboard li{font-size:9px;padding:3px 1px}
  #leaderboard .panel-header{padding:6px 5px;font-size:10px}
  #leaderboard .board-footer{font-size:8px}
  #madWarning.mad-warning{top:calc(env(safe-area-inset-top,0px) + 48px);height:30px;width:min(390px,calc(100vw - 14px));max-width:none;opacity:.72;padding:2px 5px}
  #madWarning .mad-face{width:26px;height:26px;flex-basis:26px}
  #madWarning .mad-title{font-size:8px}
  #madWarning #madTime{font-size:10px;min-width:39px}
  #shopView.overlay{padding:calc(env(safe-area-inset-top,0px) + 4px) 6px calc(env(safe-area-inset-bottom,0px) + 4px)}
  #shopView .shop-modal{height:100%;max-height:100%;min-height:0;overflow:hidden;display:flex;flex-direction:column}
  #shopView .shop-header,#shopView .shop-money,#shopView .tryon-panel,#shopView .shop-info{flex:0 0 auto}
  #shopView .shop-header{position:relative;z-index:2}
  #shopView #closeShop{position:sticky;top:0;right:0;align-self:start;min-width:38px;min-height:38px}
  #shopView .skins-grid{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  #contactView .contact-modal,#authView .auth-modal,#myDataView .my-data-modal{max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 16px)}
}
@media(max-width:370px){
  #gameHud.hud.upper{grid-template-columns:repeat(5,minmax(0,1fr)) 24px;gap:2px}
  #gameHud.hud.upper .stat-card small{font-size:5.5px}
  #gameHud.hud.upper .stat-card strong{font-size:9px}
  #gameHud.hud.upper #exitBtn{width:24px;min-width:24px}
  #leaderboard.leaderboard{top:calc(env(safe-area-inset-top,0px) + 87px);width:115px}
  #mapWrap.map-card{width:110px}
  #gameHud .boost-cost{right:calc(env(safe-area-inset-right,0px) + 122px);min-width:77px}
}
@media(max-height:650px) and (max-width:800px){
  #shopView #tryonCanvas{max-height:69px}
  #shopView .tryon-panel small{display:none}
  #madWarning.mad-warning{height:27px}
}


/* MOB29 — Mobile leaderboard only: translucent panel and retractable side tab.
   The minimap (#mapWrap) is deliberately untouched. Desktop board is unchanged. */
#leaderboard .leaderboard-toggle{display:none}
@media(max-width:800px){
  #leaderboard.leaderboard.glass{
    overflow:visible; opacity:1; border-radius:12px;
    background:rgba(10,15,43,.26)!important;
    border-color:rgba(142,124,255,.32);
    box-shadow:0 5px 16px rgba(0,0,0,.17);
    transition:transform 220ms ease;
  }
  #leaderboard .leaderboard-panel{border-radius:11px;overflow:hidden}
  #leaderboard .panel-header{
    background:linear-gradient(90deg,rgba(82,54,155,.38),rgba(26,32,85,.19));
  }
  #leaderboard .board-footer{background:rgba(7,15,33,.12)}
  #leaderboard .leaderboard-toggle{
    position:absolute;display:flex;align-items:center;justify-content:center;
    left:-35px;top:14px;width:35px;height:46px;
    padding:0;border:1px solid rgba(142,124,255,.7);border-right:0;
    border-radius:11px 0 0 11px;background:rgba(24,31,67,.92);
    color:#f6edff;font-size:28px;font-weight:700;line-height:1;
    cursor:pointer;touch-action:manipulation;z-index:1;
  }
  #leaderboard .leaderboard-toggle .toggle-arrow::before{content:'›'}
  #leaderboard.is-collapsed .leaderboard-toggle .toggle-arrow::before{content:'‹'}
  #leaderboard .leaderboard-toggle:focus-visible{
    outline:2px solid #75ffe9;outline-offset:2px;
  }
  #leaderboard.leaderboard.is-collapsed{
    transform:translateX(calc(100% + 7px));
    pointer-events:none;
  }
  #leaderboard.leaderboard.is-collapsed .leaderboard-toggle{pointer-events:auto}
}
@media(max-width:800px) and (prefers-reduced-motion:reduce){
  #leaderboard.leaderboard.glass{transition:none}
}

/* GAME35: Three collections share the wallet and same scrolling card surface. */
#shopView .shop-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;flex:0 0 auto;margin-top:11px}
#shopView .shop-tab{min-width:0;min-height:39px;border:1px solid #3c5883;border-radius:10px;
  background:linear-gradient(155deg,#1b2d53,#0d1934);color:#b9cce8;font-weight:900;
  font-size:clamp(10px,1vw,12px);letter-spacing:.35px;padding:9px 5px;cursor:pointer}
#shopView .shop-tab.is-active{background:linear-gradient(130deg,#204b68,#1b3659);color:#a7fff3;
  border-color:#5ce9cd;box-shadow:inset 0 0 10px #56dfbb19}
#shopView .shop-tab[data-shop-tab="xmas"].is-active{border-color:#e7878f;color:#ffe2e5}
#shopView .shop-tab[data-shop-tab="newyear"].is-active{border-color:#f0c56c;color:#ffecaf}
#shopView .shop-tab:focus-visible{outline:2px solid #fff4b5;outline-offset:2px}
#shopView .seasonal-shop-hint{flex:0 0 auto;min-height:0;margin:5px 0 0;
  color:#adc4e5;font-size:11px;text-align:center;line-height:1.3}
#shopView .seasonal-shop-hint:empty{display:none}
#shopView .shop-tab[data-shop-tab="newyear"]{letter-spacing:0}
@media(max-width:650px){
  #shopView .shop-tabs{gap:4px;margin-top:5px}
  #shopView .shop-tab{font-size:9px;min-height:37px;padding:7px 3px;letter-spacing:0}
  #shopView .seasonal-shop-hint{font-size:9px;margin:3px 0 0}
}


/* GAME38: every podium entry keeps its ordinal beside the existing BOSS crown. */
#menu .hall-entry{grid-template-columns:45px minmax(0,1fr) auto}
#menu .hall-entry .hall-rank{width:45px;display:inline-flex;align-items:center;justify-content:flex-start;gap:3px;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1}
#menu .hall-entry:first-child .hall-rank.leader-crown{font-size:11px;color:#ffe28a}
#menu .hall-entry .hall-rank.leader-crown img{display:block;width:22px;height:20px;flex:0 0 22px}
#leaderboard.leaderboard li .rank{width:42px;min-width:42px;display:inline-flex;align-items:center;gap:3px;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1}
#leaderboard.leaderboard li .rank.leader-crown{font-size:11px;color:#ffe28a}
#leaderboard.leaderboard li .rank.leader-crown img{display:block;width:19px;height:18px;flex:0 0 19px}
/* One original Boss Killer insignia on rankings, the Kill HUD and the Hall tab. */
.killer-badge,#gameHud .kill-card .killer-icon{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0OCA0OCI+CjxkZWZzPjxyYWRpYWxHcmFkaWVudCBpZD0ibWVkIiBjeD0iMzIlIiBjeT0iMjIlIiByPSI3OCUiPjxzdG9wIHN0b3AtY29sb3I9IiNmZmYwYTMiLz48c3RvcCBvZmZzZXQ9Ii40NyIgc3RvcC1jb2xvcj0iI2Y2YmE0NiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2E5NTgxOSIvPjwvcmFkaWFsR3JhZGllbnQ+PC9kZWZzPgo8Y2lyY2xlIGN4PSIyNCIgY3k9IjI0IiByPSIyMiIgZmlsbD0idXJsKCNtZWQpIiBzdHJva2U9IiNmZmY3Y2IiIHN0cm9rZS13aWR0aD0iMS43Ii8+CjxjaXJjbGUgY3g9IjI0IiBjeT0iMjQiIHI9IjE4IiBmaWxsPSIjMzMyMDNkIiBzdHJva2U9IiNmOWRhODQiIHN0cm9rZS13aWR0aD0iMS4xIi8+CjxwYXRoIGQ9Ik0yNCAxMGMtOC4zIDAtMTMuNSA2LjItMTMuNSAxMy43IDAgNC44IDIuNyA4LjcgNi45IDEwLjFsMSA0LjNoMTEuMmwxLTQuM2M0LjEtMS40IDYuOS01LjMgNi45LTEwLjFDMzcuNSAxNi4yIDMyLjIgMTAgMjQgMTBaIiBmaWxsPSIjZjdkNDdhIi8+CjxwYXRoIGQ9Ik0xNS42IDIzLjRxMS4yLTQuMiA1LjUtMi45bDIuMSA0LjEtNS43IDMuMVptMTYuOCAwcS0xLjItNC4yLTUuNS0yLjlsLTIuMSA0LjEgNS43IDMuMVoiIGZpbGw9IiMzMDIwNDMiLz4KPHBhdGggZD0iTTIyIDMwLjggMjQgMjdsMiAzLjhaTTIwIDM1djRtNC00djRtNC00djQiIGZpbGw9IiMzMDIwNDMiIHN0cm9rZT0iIzMwMjA0MyIgc3Ryb2tlLXdpZHRoPSIxLjgiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTAgOSA1IDVtMzMgMzQgNSA1IiBzdHJva2U9IiNmZmYzYzAiIHN0cm9rZS13aWR0aD0iMS43IiBvcGFjaXR5PSIuNzUiLz4KPC9zdmc+");background-position:center;background-repeat:no-repeat;background-size:contain;color:transparent;font-size:0;border:0;border-radius:50%;box-shadow:none;vertical-align:middle}
.killer-badge{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;min-width:18px;flex:0 0 18px;margin-right:6px}
#gameHud .kill-card .killer-icon{display:inline-block;width:22px;height:22px;flex:0 0 22px}
#hallKillers::before{content:'';display:inline-block;width:15px;height:15px;margin-right:5px;vertical-align:-3px;background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0OCA0OCI+CjxkZWZzPjxyYWRpYWxHcmFkaWVudCBpZD0ibWVkIiBjeD0iMzIlIiBjeT0iMjIlIiByPSI3OCUiPjxzdG9wIHN0b3AtY29sb3I9IiNmZmYwYTMiLz48c3RvcCBvZmZzZXQ9Ii40NyIgc3RvcC1jb2xvcj0iI2Y2YmE0NiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2E5NTgxOSIvPjwvcmFkaWFsR3JhZGllbnQ+PC9kZWZzPgo8Y2lyY2xlIGN4PSIyNCIgY3k9IjI0IiByPSIyMiIgZmlsbD0idXJsKCNtZWQpIiBzdHJva2U9IiNmZmY3Y2IiIHN0cm9rZS13aWR0aD0iMS43Ii8+CjxjaXJjbGUgY3g9IjI0IiBjeT0iMjQiIHI9IjE4IiBmaWxsPSIjMzMyMDNkIiBzdHJva2U9IiNmOWRhODQiIHN0cm9rZS13aWR0aD0iMS4xIi8+CjxwYXRoIGQ9Ik0yNCAxMGMtOC4zIDAtMTMuNSA2LjItMTMuNSAxMy43IDAgNC44IDIuNyA4LjcgNi45IDEwLjFsMSA0LjNoMTEuMmwxLTQuM2M0LjEtMS40IDYuOS01LjMgNi45LTEwLjFDMzcuNSAxNi4yIDMyLjIgMTAgMjQgMTBaIiBmaWxsPSIjZjdkNDdhIi8+CjxwYXRoIGQ9Ik0xNS42IDIzLjRxMS4yLTQuMiA1LjUtMi45bDIuMSA0LjEtNS43IDMuMVptMTYuOCAwcS0xLjItNC4yLTUuNS0yLjlsLTIuMSA0LjEgNS43IDMuMVoiIGZpbGw9IiMzMDIwNDMiLz4KPHBhdGggZD0iTTIyIDMwLjggMjQgMjdsMiAzLjhaTTIwIDM1djRtNC00djRtNC00djQiIGZpbGw9IiMzMDIwNDMiIHN0cm9rZT0iIzMwMjA0MyIgc3Ryb2tlLXdpZHRoPSIxLjgiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTAgOSA1IDVtMzMgMzQgNSA1IiBzdHJva2U9IiNmZmYzYzAiIHN0cm9rZS13aWR0aD0iMS43IiBvcGFjaXR5PSIuNzUiLz4KPC9zdmc+") center/contain no-repeat}
@media(max-width:800px){
 #menu .hall-entry{grid-template-columns:40px minmax(0,1fr) auto;gap:5px}
 #menu .hall-entry .hall-rank{width:40px;gap:2px}
 #menu .hall-entry .hall-rank.leader-crown img{width:19px;height:18px;flex-basis:19px}
 #leaderboard.leaderboard li .rank{width:37px;min-width:37px;gap:2px}
 #leaderboard.leaderboard li .rank.leader-crown img{width:16px;height:16px;flex-basis:16px}
}
@media(max-width:390px){
 #leaderboard.leaderboard li .rank{width:33px;min-width:33px;font-size:9px;gap:2px}
 #leaderboard.leaderboard li .rank.leader-crown{font-size:9px}
 #leaderboard.leaderboard li .rank.leader-crown img{width:14px;height:14px;flex-basis:14px}
 #leaderboard.leaderboard li{gap:4px}
 .killer-badge{width:15px;height:15px;min-width:15px;flex-basis:15px;margin-right:4px}
}

/* GAME39 — same ordinal, emblem and nickname column for Crown/Killer/both.
   This affects only Hall of Fame rows and the in-arena TOP, never scores or ordering. */
#menu .hall-entry{grid-template-columns:78px minmax(0,1fr) auto;gap:7px}
#menu .hall-entry .hall-rank.rank-marker,
#leaderboard.leaderboard li .rank.rank-marker{
  display:grid;grid-template-columns:18px 1fr;column-gap:4px;
  align-items:center;justify-items:start;justify-content:start;
  min-width:0;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1;
}
#menu .hall-entry .hall-rank.rank-marker{width:78px;gap:4px;font-size:11px}
#leaderboard.leaderboard li .rank.rank-marker{width:72px;min-width:72px;gap:4px;font-size:11px}
#menu .hall-entry .hall-rank.rank-marker .rank-ordinal,
#leaderboard.leaderboard li .rank.rank-marker .rank-ordinal{
  display:block;width:18px;text-align:left;font-size:inherit;font-weight:950;
}
#menu .hall-entry .hall-rank.rank-marker .rank-insignias,
#leaderboard.leaderboard li .rank.rank-marker .rank-insignias{
  display:inline-flex;align-items:center;justify-content:flex-start;gap:3px;
  width:46px;height:22px;min-width:0;white-space:nowrap;
}
#menu .hall-entry .hall-rank.rank-marker .rank-crown,
#leaderboard.leaderboard li .rank.rank-marker .rank-crown{
  display:block;width:20px;height:20px;max-width:20px;flex:0 0 20px;object-fit:contain;
}
#menu .hall-entry .hall-rank.rank-marker .rank-insignias .killer-badge,
#leaderboard.leaderboard li .rank.rank-marker .rank-insignias .killer-badge{
  display:block;width:20px;height:20px;min-width:20px;flex:0 0 20px;
  margin:0;padding:0;line-height:1;vertical-align:middle;
}
#menu .hall-entry .hall-nick,
#leaderboard.leaderboard li .name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:800px){
  #menu .hall-entry{grid-template-columns:71px minmax(0,1fr) auto;gap:5px}
  #menu .hall-entry .hall-rank.rank-marker{width:71px;grid-template-columns:16px 1fr;column-gap:3px}
  #leaderboard.leaderboard{width:min(196px,54vw);min-width:164px;max-width:none}
  #leaderboard.leaderboard li .rank.rank-marker{width:62px;min-width:62px;grid-template-columns:15px 1fr;column-gap:3px}
  #menu .hall-entry .hall-rank.rank-marker .rank-ordinal,
  #leaderboard.leaderboard li .rank.rank-marker .rank-ordinal{width:16px}
  #menu .hall-entry .hall-rank.rank-marker .rank-insignias,
  #leaderboard.leaderboard li .rank.rank-marker .rank-insignias{width:39px;height:19px;gap:2px}
  #menu .hall-entry .hall-rank.rank-marker .rank-crown,
  #leaderboard.leaderboard li .rank.rank-marker .rank-crown,
  #menu .hall-entry .hall-rank.rank-marker .rank-insignias .killer-badge,
  #leaderboard.leaderboard li .rank.rank-marker .rank-insignias .killer-badge{
    width:18px;height:18px;min-width:18px;max-width:18px;flex-basis:18px;margin:0;
  }
}
@media(max-width:370px){
  #leaderboard.leaderboard li .rank.rank-marker{width:58px;min-width:58px;grid-template-columns:14px 1fr;column-gap:2px;font-size:9px}
  #leaderboard.leaderboard li .rank.rank-marker .rank-insignias{width:36px;height:17px;gap:2px}
  #leaderboard.leaderboard li .rank.rank-marker .rank-crown,
  #leaderboard.leaderboard li .rank.rank-marker .rank-insignias .killer-badge{
    width:16px;height:16px;min-width:16px;max-width:16px;flex-basis:16px;
  }
}

/* GAME40 — compact badge-to-nickname spacing.
   Keep the same ordinal and insignia slots for Crown, Killer and both.
   Only Hall of Fame rows and the in-arena TOP are affected. */
#menu .hall-entry{grid-template-columns:63px minmax(0,1fr) auto;column-gap:5px}
#menu .hall-entry .hall-rank.rank-marker,
#leaderboard.leaderboard li .rank.rank-marker{
  width:63px;min-width:63px;grid-template-columns:18px 42px;column-gap:3px;gap:3px;
}
#menu .hall-entry .hall-rank.rank-marker .rank-insignias,
#leaderboard.leaderboard li .rank.rank-marker .rank-insignias{width:42px;gap:2px}
@media(max-width:800px){
  #menu .hall-entry{grid-template-columns:57px minmax(0,1fr) auto;column-gap:4px}
  #menu .hall-entry .hall-rank.rank-marker,
  #leaderboard.leaderboard li .rank.rank-marker{
    width:57px;min-width:57px;grid-template-columns:16px 38px;column-gap:3px;gap:3px;
  }
  #menu .hall-entry .hall-rank.rank-marker .rank-insignias,
  #leaderboard.leaderboard li .rank.rank-marker .rank-insignias{width:38px;gap:2px}
}
@media(max-width:370px){
  #leaderboard.leaderboard li .rank.rank-marker{
    width:50px;min-width:50px;grid-template-columns:14px 34px;column-gap:2px;gap:2px;
  }
  #leaderboard.leaderboard li .rank.rank-marker .rank-insignias{width:34px;gap:2px}
}

/* GAME42 account security; no changes to gameplay layout. */
#myDataView .data-security{border:1px solid #3b7389;border-radius:12px;background:#102640ad;padding:13px;margin:18px 0}
#myDataView .data-security h3{color:#b2ffe8;font-size:13px;letter-spacing:.05em;margin:3px 0 9px}
#myDataView .data-security input{display:block;width:100%;min-height:44px;font:inherit;font-size:16px;padding:11px;border-radius:9px;background:#0b1730;color:#fff;border:1px solid #456b8c}
#myDataView .data-security button{width:100%;min-height:43px;margin-top:10px;background:#19425b;border:1px solid #75c9df;border-radius:10px;color:#dcffff;font-weight:800;cursor:pointer}
#myDataView .data-security button:disabled{opacity:.55;cursor:wait}
#myDataView .data-security p{font-size:12px;line-height:1.5}

#myDataView .security-recovery-code{display:block;overflow-wrap:anywhere;padding:12px;background:#081b2b;color:#e3fff1;border:1px solid #74bcae;border-radius:8px;user-select:all;font:700 13px ui-monospace,monospace}
#myDataView .data-security [hidden]{display:none}

/* GAME43: individual session management; no device fingerprinting. */
#myDataView .account-session-list{display:grid;gap:8px;margin:12px 0}
#myDataView .account-session-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding:9px 10px;border:1px solid #345875;border-radius:9px;background:#0b2038}
#myDataView .account-session-name{display:flex;flex-direction:column;gap:3px;min-width:0;color:#ddfff8;font-size:12px;font-weight:800}
#myDataView .account-session-name small{font-size:11px;font-weight:400;color:#afc6d7}
#myDataView .data-security .account-session-row button{width:auto;min-width:86px;min-height:37px;margin:0;padding:7px 10px;font-size:11px;flex:none}
#myDataView .account-session-note{opacity:.8}
@media(max-width:360px){#myDataView .account-session-row{flex-wrap:wrap}#myDataView .data-security .account-session-row button{width:100%}}

/* GAME44: compact guest-browser-save status, no impact on canvas or ranking. */
.guest-save-note{font-size:11px;line-height:1.4;color:#a5c9df;margin:3px 0 7px;padding:8px 10px;border:1px solid #45647f78;border-radius:9px;background:#0a203548;}
.guest-save-note[hidden]{display:none;}

/* GAME45: compact and precisely aligned consent controls in account / contact / data dialogs. */
#authView #authForm #authConsents label.checkbox-field,
#contactView #contactPublicForm label.checkbox-field,
#myDataView .data-danger label.checkbox-field{
 display:grid!important;grid-template-columns:19px minmax(0,1fr);
 align-items:start;column-gap:11px;width:100%;min-height:23px;
 margin:7px 0!important;padding:2px 0!important;
 font-size:12px!important;line-height:1.55!important;
 font-weight:700!important;letter-spacing:0!important;
 text-align:left;cursor:pointer;
}
#authView #authForm #authConsents label.checkbox-field>input[type="checkbox"],
#contactView #contactPublicForm label.checkbox-field>input[type="checkbox"],
#myDataView .data-danger label.checkbox-field>input[type="checkbox"]{
 display:block!important;box-sizing:border-box!important;
 width:18px!important;min-width:18px!important;max-width:18px!important;
 height:18px!important;min-height:18px!important;max-height:18px!important;
 padding:0!important;margin:1px 0 0!important;
 border:1px solid #7197b4!important;border-radius:4px!important;
 flex:none!important;align-self:start;accent-color:#61f6df;
}
#authView #authForm #authConsents label.checkbox-field>span,
#contactView #contactPublicForm label.checkbox-field>span,
#myDataView .data-danger label.checkbox-field>span{
 display:block;min-width:0;padding-top:0;line-height:1.55;
 overflow-wrap:anywhere;color:#d7e7f9;letter-spacing:0;
}
#authView #authConsents{gap:7px;margin:13px 0 8px}
#authView #authConsents #authTermsLink,
#contactView #contactPublicForm #contactPrivacyLink{
 margin:1px 0 5px 30px;padding:3px 0;width:max-content;max-width:calc(100% - 30px);
 color:#86f8e9;text-decoration:underline;text-underline-offset:3px;
 font-size:12px;font-weight:800;letter-spacing:0;line-height:1.4;text-align:left;
}
#authView #authConsents .auth-password-rule{margin:6px 0 8px}
#contactView #contactPublicForm{gap:11px}
#contactView #contactPublicForm label.checkbox-field{margin:5px 0 0!important}
#contactView #contactServiceNote{
 margin:0 0 14px;border:1px solid #496e8a;background:#112540;
 border-radius:10px;padding:12px 13px;color:#c8e6f8;font-size:12px;
 line-height:1.6;text-align:left;
}
#contactView #contactSend:disabled{opacity:.52;box-shadow:none;transform:none;cursor:not-allowed}
@media(max-width:420px){
 #authView #authForm #authConsents label.checkbox-field,
 #contactView #contactPublicForm label.checkbox-field,
 #myDataView .data-danger label.checkbox-field{column-gap:10px}
 #authView #authConsents #authTermsLink,
 #contactView #contactPublicForm #contactPrivacyLink{margin-left:29px}
}

/* GAME46: guest-profile collision must never be a silent overwrite. */
.guest-switch-panel{margin:10px 0 13px;padding:12px 13px;border:1px solid #77f4e299;border-radius:12px;background:linear-gradient(130deg,#102e46f5,#172142fa);color:#d5f8f6;line-height:1.45}
.guest-switch-panel[hidden],.guest-transfer-preview[hidden]{display:none}
.guest-switch-panel>strong{font-size:12px;color:#83ffeb;letter-spacing:.075em}
.guest-switch-panel p{margin:7px 0 10px;font-size:12px;color:#c4d8eb}
.guest-switch-actions{display:flex;gap:8px;flex-wrap:wrap}
.guest-switch-actions button{min-height:42px;border-radius:9px;border:1px solid #4486a9;padding:9px 12px;background:#233b5d;color:#e3faff;font-weight:800;font-size:11px;cursor:pointer;flex:1 1 180px}
.guest-switch-actions button:first-child{background:linear-gradient(100deg,#43ebd0,#87dffc);color:#061b32;border:0}
.guest-switch-actions button:disabled{opacity:.55;cursor:wait}
.guest-switch-panel #guest46ActionStatus:not(:empty){color:#ffcfbf}
.guest-transfer-preview{background:#132b42;border:1px solid #3d7e92;border-radius:10px;padding:10px 12px;color:#b9e8e8;font-size:12px;line-height:1.5;margin:12px 0}
@media(max-width:420px){.guest-switch-panel{padding:10px}.guest-switch-actions button{flex:1 1 100%;font-size:11px}}

/* GAME47: email-change controls live inside the existing account security panel. */
.email-change47{display:grid;gap:9px;margin:14px 0;padding:14px;border:1px solid #4b709466;border-radius:12px;background:#0b183056}
.email-change47[hidden]{display:none}
.email-change47 h4{margin:0;color:#80f6df;letter-spacing:.07em;font-size:13px}
.email-change47 p{margin:3px 0 8px;line-height:1.5}
.email-change47 label{font-size:11px;font-weight:800;color:#8af9e9}
.email-change47 input{min-width:0;width:100%;box-sizing:border-box;min-height:44px}
.email-change47 button{width:100%;min-height:40px}
#email47Status{overflow-wrap:anywhere}
