@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Sans:wght@400;500;600;650;700;800&display=swap');
:root{--paper:#f5f3e8;--ink:#253b2c;--muted:#7a8070;--line:#dcded0;--lime:#c2e983;--orange:#f69a54;--display:'Barlow Condensed',Impact,'Arial Narrow',sans-serif;--body:'DM Sans',system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:14px}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #e58b41;outline-offset:4px}button{transition:background .15s,transform .15s}button:active{transform:translateY(2px)}[hidden]{display:none!important}.site-header{height:96px;display:flex;justify-content:space-between;align-items:center;margin:0 6%;border-bottom:1px solid var(--line)}.brand{font-family:var(--display);font-weight:900;font-size:31px;letter-spacing:-.8px;text-decoration:none;color:var(--ink);display:flex;align-items:center;gap:9px}.brand img{width:35px;height:35px;transform:rotate(-9deg)}.brand-dot{align-self:flex-start;margin:11px 0 0 -6px;font:10px var(--body)}.header-right{display:flex;align-items:center;gap:16px}.connection{display:flex;gap:8px;align-items:center;font-size:11px;font-weight:700}.connection i,.live-dot{width:7px;height:7px;background:#76a84f;border-radius:50%;display:inline-block;box-shadow:0 0 0 3px #88a95716}.connection.offline i{background:#e58c5e}.icon-button{width:33px;height:33px;background:transparent;border:1px solid var(--line);border-radius:50%;font-size:18px;display:inline-flex;align-items:center;justify-content:center}.icon-button:hover{background:var(--lime)}.sound-button{font-size:22px}.sound-button.muted{opacity:.45}.lobby-main{max-width:1400px;margin:0 auto;padding:36px 6% 0}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.5px;display:flex;align-items:center;gap:8px}.tiny-cross{color:#9baf66;font-size:18px}.intro{display:flex;align-items:center;justify-content:space-between;gap:30px;margin:14px 0 30px}.intro h1{font-family:var(--display);font-size:clamp(50px,5.9vw,88px);line-height:.93;letter-spacing:-1.8px;margin:0;font-weight:800;position:relative}.intro h1 span{color:#789c4b}.intro h1 svg{width:115px;height:38px;position:absolute;right:-123px;bottom:8px;fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round;transform:rotate(7deg)}.intro p{font-size:12px;line-height:1.9;margin:0 9px 0 100px;color:var(--muted)}.intro strong{color:var(--ink);font-weight:600}.play-layout{display:grid;grid-template-columns:1.55fr 1fr;gap:24px;align-items:stretch}.art-card{background:#bcd6c5;border:1px solid #a9c0a7;border-radius:13px;min-height:444px;overflow:hidden;position:relative}.art-card canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.art-top{position:absolute;left:22px;right:22px;top:20px;display:flex;justify-content:space-between;align-items:center}.pill{font-size:8px;letter-spacing:.7px;font-weight:800;border:1px solid #4a6c5760;padding:7px 9px;border-radius:20px;background:#eff4db88}.pill:before{content:'';display:inline-block;background:#537d46;border-radius:50%;height:5px;width:5px;margin:0 5px 1px 0}.map-label{font-size:8px;font-weight:700;letter-spacing:1px}.art-caption{position:absolute;left:25px;bottom:24px;display:flex;align-items:center;gap:14px;color:#fff4cf}.stamp{width:71px;height:71px;border:1px solid #eceac58a;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:var(--display);font-size:26px;line-height:1;transform:rotate(-12deg)}.stamp small{font:7px var(--body);font-weight:700;letter-spacing:.4px;margin-top:4px}.art-caption>div{font-size:12px;line-height:1.7}.art-caption strong{font-size:13px}.hero-worm{position:absolute;right:9%;bottom:18%;height:60%;transform:rotate(7deg);filter:drop-shadow(0 9px 0 #1c362514)}.speech{position:absolute;right:9%;top:26%;font-size:9px;font-weight:800;letter-spacing:.5px;padding:10px 12px;border:1.5px solid var(--ink);border-radius:8px;background:#f6f0d4;transform:rotate(7deg);box-shadow:3px 3px 0 #203c2833}.speech:after{content:'';position:absolute;left:19px;bottom:-7px;width:11px;height:11px;border-bottom:1.5px solid var(--ink);border-right:1.5px solid var(--ink);background:#f6f0d4;transform:rotate(45deg)}.join-card{background:#fffef6;border:1px solid var(--line);border-radius:13px;padding:28px;display:flex;flex-direction:column;box-shadow:0 3px 0 #d7dbc820}.card-kicker{font-size:8px;font-weight:800;letter-spacing:1.3px;color:#819365;margin-bottom:10px}h2{font-family:var(--display);font-size:34px;line-height:1.05;letter-spacing:-.3px;margin:0 0 8px;font-weight:700}.muted{font-size:11px;line-height:1.7;color:var(--muted);margin:0 0 23px}.join-card label,.color-label{font-size:8px;letter-spacing:.8px;font-weight:800;display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.join-card label span{font-size:7px;font-weight:500;color:#929685;letter-spacing:.4px}input{color:var(--ink);background:#f7f7ee;border:1px solid #d9dece;border-radius:6px;outline:none;padding:12px 13px;width:100%;font-size:12px}input:focus{border-color:#789c4b;box-shadow:0 0 0 3px #c2e98333}input::placeholder{color:#a3a894}.color-label{margin:17px 0 9px}.color-label span{font-weight:500;font-size:9px;letter-spacing:0;color:var(--muted)}.color-picker{display:flex;gap:10px;margin:0 0 24px}.color-swatch{width:25px;height:25px;min-width:25px;border:3px solid #fffef6;outline:1px solid transparent;border-radius:50%;position:relative}.color-swatch.selected{outline:1.5px solid var(--ink)}.color-swatch.selected:after{content:'✓';position:absolute;inset:0;font-size:13px;font-weight:800;display:grid;place-items:center}.primary-button{border:1px solid var(--ink);background:var(--lime);border-radius:6px;padding:14px 16px;font-weight:800;font-size:12px;display:flex;justify-content:space-between;align-items:center;gap:12px;box-shadow:0 3px 0 var(--ink);min-height:45px;width:100%}.primary-button:hover{background:#aedc6e}.primary-button>span:last-child{font-size:17px}.button-note{text-align:center;color:#8e9581;font-size:8px;margin:11px 0 15px}.split-buttons{display:flex;gap:9px}.secondary-button{border:1px solid #d2d8c5;background:transparent;border-radius:6px;padding:12px 10px;font-weight:700;font-size:10px;flex:1}.secondary-button:hover{background:#eef3e0}.card-divider{border-top:1px dashed var(--line);margin:22px 0 15px}.text-button{border:0;background:transparent;padding:0;font-size:10px;font-weight:700;display:flex;gap:7px;align-items:center;justify-content:space-between}.text-button>span:first-child{color:#92977f;font-weight:400}.text-button:hover{color:#789c4b}#code-form{display:flex;gap:7px;margin-top:12px}#code-form input{min-width:0;text-transform:uppercase}#code-form .primary-button{width:auto;white-space:nowrap;box-shadow:none}.lobbies-section{margin:29px 0 23px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.section-heading h3{font-size:10px;letter-spacing:.8px;display:flex;align-items:center;gap:8px;margin:0}.section-heading h3>span{font-size:8px;background:#e4e8d7;border-radius:4px;padding:3px 6px;color:#7c8a65}.section-heading>span{font-size:9px;color:#939781}.empty-rooms{display:flex;align-items:center;background:#eeeee2;border:1px dashed #cdd4bc;border-radius:8px;padding:17px 20px;gap:15px}.empty-rooms>span{font-size:26px;color:#91a676}.empty-rooms p{font-size:11px;font-weight:600;margin:0;line-height:1.7}.empty-rooms small{font-size:9px;font-weight:400;display:block;color:#929780}.empty-rooms button{margin-left:auto;font-size:10px}.rooms{display:grid;gap:10px}.room-row{display:flex;align-items:center;gap:13px;background:#fffef6;border:1px solid var(--line);border-radius:8px;padding:14px 18px}.room-row .room-icon{font-size:22px;display:grid;place-items:center;width:36px;height:36px;border-radius:7px;background:#eaf0d9}.room-row p{margin:0;font-size:12px;font-weight:700}.room-row small{display:block;margin-top:4px;font-size:9px;color:#8c947d;font-weight:400}.room-row>span{margin-left:auto;font-size:10px;color:#829369}.room-row button{flex:0;padding:9px 16px;white-space:nowrap}.feature-strip{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);padding:22px 0 29px;gap:25px}.feature-strip>div{display:flex;gap:12px;align-items:flex-start}.feature-number{font-family:var(--display);font-size:24px;color:#abb798;line-height:1.1}.feature-strip p{margin:0;font-size:9px;letter-spacing:.3px;line-height:1.7}.feature-strip strong{font-weight:800}.feature-strip small{display:block;letter-spacing:0;color:#90967e;font-size:9px}footer{margin:0 6%;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:20px 0 24px;font-size:9px;font-weight:800;letter-spacing:.7px}footer small{font-size:7px;font-weight:500;color:#929780;letter-spacing:.8px;margin-left:14px}footer>span:last-child{font-size:7px;color:#8d967e;display:flex;align-items:center;gap:9px}.room-title{display:flex;align-items:center;justify-content:space-between}.code-display{border:1px dashed #c5d5ac;background:#eff4e5;border-radius:6px;padding:11px 13px;display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.code-display>span{font-family:var(--display);font-size:27px;letter-spacing:4px}.code-display small{font-size:7px;font-weight:800;letter-spacing:.6px}.player-list{flex:1;min-height:100px;max-height:215px;overflow:auto}.player-row{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #eef0e5;font-size:11px}.player-avatar{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;font-size:15px}.player-row>span:nth-child(2){font-weight:600}.player-row small{font-size:8px;color:#93a27e;margin-left:auto}.room-hint{font-size:10px;color:#84936c;margin:12px 0}dialog{border:1px solid var(--ink);border-radius:14px;max-width:520px;width:calc(100% - 32px);padding:34px;background:var(--paper);color:var(--ink);box-shadow:7px 8px 0 #15251e30}dialog::backdrop{background:#152b23b8;backdrop-filter:blur(5px)}dialog h2{font-size:43px;margin-bottom:24px}.dialog-close{position:absolute;right:17px;top:14px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:25px}.help-grid p{margin:0;font-size:9px;line-height:2}.help-grid strong{display:block;font-size:12px}kbd{display:inline-block;font:9px var(--body);background:#eeefe2;border:1px solid #c6cfb9;border-bottom-width:2px;padding:1px 6px;border-radius:4px}.help-grid b{font-size:8px;color:#7f9168}#menu-dialog{max-width:370px}#menu-dialog .secondary-button{width:100%;margin:14px 0 20px}#menu-dialog .muted{margin:18px 0 0}#toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);padding:13px 24px;background:var(--ink);color:var(--paper);border:1px solid #eff4d13d;border-radius:8px;box-shadow:0 4px 16px #18322230;z-index:100;font-size:12px;opacity:0;transition:.2s;pointer-events:none;max-width:90vw;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}
/* The arena */
#game-view{height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#223b30;user-select:none}.game-header{height:65px;min-height:65px;background:var(--paper);display:flex;align-items:center;justify-content:space-between;padding:0 24px;gap:12px}.game-header .brand{font-size:25px}.game-header .brand img{width:29px;height:29px}.game-center{display:flex;align-items:center;gap:9px;font-size:9px;font-weight:800;letter-spacing:1px}.game-center strong{font-family:var(--display);font-size:29px;margin-left:14px;letter-spacing:1px}.game-actions{display:flex;align-items:center;gap:11px}#latency{font-size:9px;color:#81936d}#arena{position:relative;min-height:0;flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#aacdc2}#game-canvas{display:block;width:100%;height:100%;object-fit:contain;touch-action:none;cursor:crosshair}#scoreboard{position:absolute;top:15px;left:17px;display:flex;gap:7px;flex-wrap:wrap;max-width:80%;pointer-events:none}.score-chip{border:1px solid #35513b40;border-radius:6px;background:#fcfbeadd;backdrop-filter:blur(5px);padding:7px 10px;min-width:100px}.score-chip.me{border:1.5px solid #263c2b;box-shadow:0 2px 0 #263c2b}.score-chip.dead{opacity:.5}.score-chip .chip-name{font-size:9px;font-weight:800;display:flex;align-items:center;gap:5px}.chip-name i{width:7px;height:7px;border-radius:50%}.chip-name small{margin-left:auto;color:#7a886b;font-weight:500}.chip-health{height:3px;border-radius:2px;background:#d7dec9;margin:5px 0}.chip-health i{display:block;height:100%;border-radius:2px;transition:width .1s}.chip-stats{font-size:8px;color:#7a886b;display:flex;justify-content:space-between}#kill-feed{position:absolute;right:17px;top:18px;font-size:10px;display:flex;flex-direction:column;gap:5px;pointer-events:none}.feed-item{background:#263c2bd9;color:#fffae6;border-radius:4px;padding:7px 10px;animation:feed-in .2s}@keyframes feed-in{from{opacity:0;transform:translateX(12px)}}.arena-label{position:absolute;left:20px;bottom:18px;font-size:9px;letter-spacing:1px;font-weight:800;color:#f1f5dcad;pointer-events:none}.arena-label span{font-size:7px;margin-left:16px;letter-spacing:.5px}#charge-meter{position:absolute;bottom:35%;left:50%;transform:translateX(-50%);background:#fff8dc;border:1.5px solid var(--ink);padding:8px 12px;border-radius:5px;box-shadow:0 3px 0 #203c2840;min-width:145px;pointer-events:none}#charge-meter>span{font:800 10px var(--body);letter-spacing:2px;display:block;text-align:center;margin-bottom:5px}#charge-meter>div{height:7px;background:#dbe1c6;border-radius:2px;overflow:hidden}#charge-meter i{display:block;height:100%;background:#eaa055;width:25%}#respawn-notice{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);text-align:center;background:#fff9eae8;border:1px solid var(--ink);border-radius:9px;padding:20px 30px;box-shadow:4px 4px 0 #263c2b40;pointer-events:none;white-space:nowrap}#respawn-notice strong{display:block;font-family:var(--display);font-size:37px}#respawn-notice small{display:block;font-size:11px;margin-top:4px}.game-toolbar{height:92px;min-height:92px;background:var(--paper);display:flex;align-items:center;justify-content:space-between;padding:10px 24px;gap:20px}.weapon-picker{display:flex;gap:8px}.weapon-button{position:relative;background:#ecefdf;border:1px solid #d0d9be;border-radius:7px;min-width:95px;padding:3px 10px 7px;display:flex;flex-direction:column;align-items:center;gap:0;font-size:9px;font-weight:700;overflow:hidden}.weapon-button img{width:57px;height:39px;position:relative;z-index:1}.weapon-button.active{border-color:var(--ink);background:var(--lime);box-shadow:0 3px 0 var(--ink)}.weapon-button kbd{position:absolute;left:4px;top:4px;font-size:7px;padding:0 3px;background:#fff8;z-index:2}.weapon-button .cooldown{position:absolute;bottom:0;left:0;right:0;background:#fff6;pointer-events:none}.weapon-button>span:not(.cooldown){position:relative;z-index:1}.controls-hint{font-size:8px;color:#929c83;display:flex;gap:15px;flex-wrap:wrap;align-items:center}.controls-hint span{white-space:nowrap}.controls-hint kbd{font-size:7px;padding:2px 4px;margin-right:2px}.controls-hint b{font-size:7px;color:#6b8056}.local-health{min-width:80px;text-align:right}.local-health>span{display:block;font-size:8px;font-weight:800;letter-spacing:.5px}.local-health strong{font-family:var(--display);font-size:31px;line-height:1.1}.local-health small{font:8px var(--body);color:#82936e}#mobile-controls{display:none;position:absolute;left:15px;right:15px;bottom:20px;justify-content:space-between;pointer-events:none}.touch-move{display:flex;gap:7px}.touch-move button,#touch-fire{width:50px;height:50px;pointer-events:auto;touch-action:none;border:1px solid #f1f7dc66;background:#263c2b99;border-radius:50%;color:#eff4db;font-size:18px}#touch-fire{font-size:11px;font-weight:800;background:#f2a057cc;color:#263c2b;width:66px;height:66px}.result-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:11px 0;font-size:12px}.result-row>span:last-child{margin-left:auto;font-size:10px;color:#7f8d6c}.result-row.winner{font-weight:800}#results{margin-bottom:26px}#result-dialog .secondary-button{width:100%;margin-top:14px}#result-hint{margin:14px 0 0}
@media(min-width:1550px){.site-header,footer{max-width:1232px;margin-left:auto;margin-right:auto}.lobby-main{padding-top:45px}.art-card{min-height:475px}.join-card{padding:32px}.intro{margin-bottom:38px}}
@media(max-width:1050px){.lobby-main{padding-left:4%;padding-right:4%}.site-header,footer{margin-left:4%;margin-right:4%}.intro h1{font-size:65px}.intro h1 svg{width:70px;right:-78px}.intro p{font-size:10px;margin-left:70px}.join-card{padding:22px}.play-layout{gap:17px;grid-template-columns:1.25fr 1fr}.art-card{min-height:440px}.art-top{left:16px;right:16px}.map-label{font-size:7px}.hero-worm{height:53%;bottom:24%;right:2%}.speech{right:5%;top:30%}.art-caption{left:17px}.controls-hint{max-width:260px;gap:8px}.feature-strip{gap:15px}.feature-strip small{font-size:8px}}
@media(max-width:760px){.site-header{height:76px}.brand{font-size:26px}.brand img{width:30px;height:30px}.connection{font-size:9px}.header-right{gap:10px}.lobby-main{padding-top:26px}.eyebrow{font-size:8px}.intro{align-items:flex-start;margin-top:13px;gap:15px}.intro h1{font-size:clamp(42px,9.6vw,68px);letter-spacing:-.8px}.intro h1 svg{display:none}.intro p{font-size:10px;line-height:1.65;margin:5px 0 0;max-width:40%}.play-layout{grid-template-columns:1fr 1fr;gap:13px}.join-card{padding:20px 17px}h2{font-size:29px}.muted{font-size:10px;margin-bottom:20px}.join-card label,.color-label{font-size:7px}.join-card label span{display:none}.color-picker{gap:6px;flex-wrap:wrap;margin-bottom:19px}.color-swatch{width:23px;height:23px;min-width:23px}.primary-button{font-size:11px;padding:12px}.split-buttons{gap:6px}.secondary-button{font-size:9px;padding:11px 7px}.card-divider{margin:18px 0 13px}.text-button{font-size:9px;flex-wrap:wrap}.art-top{left:13px;right:13px}.map-label{display:none}.pill{font-size:7px}.hero-worm{height:47%;right:0%;bottom:27%}.speech{font-size:7px;top:30%;right:8%;padding:8px}.art-caption{left:16px;bottom:22px;gap:9px}.stamp{width:57px;height:57px;font-size:23px}.stamp small{font-size:6px}.art-caption>div{font-size:9px}.art-caption strong{font-size:10px}.art-card{min-height:420px}.section-heading>span{display:none}.feature-strip{grid-template-columns:1fr;gap:16px;padding-top:20px}.feature-strip>div{align-items:center;gap:15px}.feature-strip p{font-size:10px}.feature-strip small{font-size:9px}.feature-number{font-size:27px}footer small{display:none}footer{font-size:9px}.game-header{height:54px;min-height:54px;padding:0 13px}.game-header .brand{font-size:21px}.game-header .brand img{width:25px;height:25px}.game-center>span:not(.live-dot){display:none}.game-center strong{font-size:26px;margin-left:0}.game-actions{gap:7px}#latency{display:none}.game-toolbar{height:80px;min-height:80px;padding:8px 12px;gap:10px}.weapon-button{min-width:75px;padding-left:4px;padding-right:4px}.weapon-button img{width:48px;height:35px}.controls-hint{display:none}.local-health{min-width:57px}.local-health>span{font-size:7px}.local-health strong{font-size:26px}#scoreboard{left:10px;top:10px;gap:4px;max-width:95%}.score-chip{min-width:80px;padding:5px 7px}.score-chip .chip-name{font-size:8px}.chip-stats{font-size:7px}.arena-label{font-size:7px;left:12px;bottom:8px}.arena-label span{display:none}#kill-feed{top:90px;right:10px;font-size:8px}.weapon-picker{gap:5px}}
@media(max-width:540px){.play-layout{display:flex;flex-direction:column}.art-card{min-height:270px}.hero-worm{height:83%;right:14%;bottom:3%}.speech{top:18%;right:12%;font-size:8px}.art-caption{bottom:19px;left:20px}.art-caption>div{display:none}.art-top{left:18px;right:18px;top:17px}.map-label{display:block}.intro{margin-bottom:23px}.intro p{display:none}.intro h1{font-size:16vw}.join-card{padding:24px}.join-card h2{font-size:35px}.join-card .muted{font-size:11px}.join-card label,.color-label{font-size:8px}.join-card label span{display:block}.color-picker{gap:13px}.color-swatch{height:27px;width:27px}.primary-button{font-size:12px}.split-buttons{gap:10px}.secondary-button{font-size:11px}.text-button{font-size:10px}.button-note{font-size:9px}.lobbies-section{margin-top:26px}.empty-rooms{padding:15px;gap:10px;flex-wrap:wrap}.empty-rooms .text-button{margin-left:35px}.empty-rooms small{font-size:8px}.feature-strip{grid-template-columns:1fr}.room-card .player-list{max-height:240px}.help-grid{gap:17px 9px}dialog{padding:28px 24px}.game-header .brand{font-size:19px;gap:5px}.game-header .brand img{width:23px;height:23px}.game-actions .icon-button{width:29px;height:29px}.game-header{padding:0 10px}.game-toolbar{height:78px;min-height:78px}.weapon-button{min-width:68px;font-size:8px}.weapon-button img{width:44px;height:31px}.weapon-picker{gap:5px}.local-health strong{font-size:25px}}
@media(pointer:coarse){#mobile-controls{display:flex}.arena-label{display:none}#game-canvas{cursor:default}}
@media(max-height:550px) and (orientation:landscape){.game-header{height:43px;min-height:43px}.game-toolbar{height:66px;min-height:66px}.weapon-button{flex-direction:row;gap:5px;min-width:95px;padding:4px 8px}.weapon-button img{height:37px;width:43px}.weapon-button kbd{display:none}.local-health strong{font-size:25px}#mobile-controls{bottom:12px}.touch-move button{height:43px;width:43px}#touch-fire{height:52px;width:52px}#scoreboard{top:8px}.score-chip{min-width:85px;padding:5px 7px}.game-header .brand{font-size:22px}}
/* Arsenal: quick access stays compact; the full collection opens as a grid. */
#arsenal-toggle{display:flex;align-items:center;gap:9px;background:#e8edd9;border:1px solid #b9c8a4;border-radius:7px;padding:6px 12px;text-align:left;min-width:180px;flex-shrink:0}
#arsenal-toggle:hover{background:#dbeabf}#arsenal-toggle>img{width:50px;height:42px}#arsenal-toggle>span{display:flex;flex-direction:column;gap:3px}#arsenal-toggle strong{font-size:12px}#arsenal-toggle small{font-size:7px;letter-spacing:.5px;color:#71865b}#arsenal-toggle small kbd{font-size:7px;padding:0 3px;margin-left:2px}#arsenal-toggle #weapon-status{letter-spacing:0;font-size:8px;color:#859272}#arsenal-toggle>b{font-size:22px;font-weight:400;color:#779159;margin-left:auto}
.game-toolbar{gap:12px}.game-toolbar .controls-hint{margin-left:auto}.game-toolbar .local-health{margin-left:auto}#weapon-hint{min-height:27px;max-height:27px;background:#344d36;color:#ebf0d5;font-size:9px;line-height:27px;padding:0 24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#arsenal-dialog{max-width:1000px;width:calc(100% - 36px);max-height:calc(100dvh - 40px);padding:28px;overflow:auto}#arsenal-dialog .card-kicker{font-size:8px;margin-bottom:10px}.arsenal-heading{display:flex;align-items:center;justify-content:space-between;margin-right:34px}.arsenal-heading h2{font-size:48px;margin:0 0 17px}.arsenal-heading>span{font-size:9px;line-height:1.6;letter-spacing:1px;font-weight:800;color:#85966b;text-align:right;margin-bottom:14px}.arsenal-filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:20px}.arsenal-filters button{background:#ebeede;border:1px solid #d3dcc4;padding:8px 14px;border-radius:20px;font-size:10px;font-weight:700}.arsenal-filters button.active{background:var(--ink);color:#f2f3df;border-color:var(--ink)}
#arsenal-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.arsenal-weapon{align-items:stretch;min-width:0;width:100%;text-align:left;background:#fffef6;padding:11px 12px;gap:0;min-height:170px;box-shadow:none}.arsenal-weapon.active{background:#e6f2cf;box-shadow:inset 0 0 0 1px var(--ink)}.arsenal-art{display:flex;align-items:flex-start;justify-content:space-between;height:57px}.arsenal-art img{width:68px;height:51px}.arsenal-art>span{font:700 17px var(--display);color:#c0c9b0}.arsenal-weapon>strong{font-size:12px;line-height:1.2;min-height:26px;font-weight:800;position:relative;z-index:1}.arsenal-weapon>p{font-size:9px;font-weight:400;line-height:1.6;color:#839071;margin:4px 0 12px;flex:1;position:relative;z-index:1;white-space:normal}.arsenal-weapon>small{border-top:1px solid #dbe3ce;padding-top:7px;font-size:7px;color:#7e9168;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1}.arsenal-weapon>small b{font-weight:600;font-size:8px}.arsenal-footer{display:flex;justify-content:space-between;gap:14px;margin-top:19px;font-size:8px;color:#8b987b;border-top:1px solid var(--line);padding-top:15px}
#arsenal-grid:is([data-group="tools"],[data-group="special"],[data-group="ranged"]){grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1000px){#arsenal-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.game-toolbar .controls-hint{display:none}#arsenal-toggle{min-width:170px}}
@media(max-width:760px){#arsenal-dialog{padding:23px}#arsenal-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.arsenal-heading h2{font-size:40px}.arsenal-heading>span{font-size:8px}.arsenal-filters{gap:6px;margin-bottom:16px}.arsenal-filters button{font-size:9px;padding:7px 11px}.game-toolbar .weapon-button{min-width:50px;width:50px;padding:3px 4px 6px}.game-toolbar .weapon-button img{height:33px;width:43px}.game-toolbar .weapon-button>span:not(.cooldown){display:none}.game-toolbar .weapon-button kbd{font-size:6px}.game-toolbar{gap:9px}#arsenal-toggle{min-width:165px;gap:6px;padding:5px 8px}#arsenal-toggle>img{width:40px;height:35px}#arsenal-toggle strong{font-size:10px}#arsenal-toggle small{font-size:6px}#arsenal-toggle #weapon-status{font-size:7px}#weapon-hint{font-size:8px;padding:0 12px}}
@media(max-width:540px){#arsenal-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);padding:21px 15px}#arsenal-grid{gap:7px}.arsenal-weapon{padding:8px;min-height:167px}.arsenal-weapon>strong{font-size:10px;min-height:24px}.arsenal-weapon>p{font-size:8px;margin-bottom:8px}.arsenal-weapon>small{font-size:6px}.arsenal-art{height:46px}.arsenal-art img{width:49px;height:41px}.arsenal-art>span{font-size:14px}.arsenal-heading h2{font-size:36px}.arsenal-heading{margin-right:18px}.arsenal-heading>span{font-size:6px}.arsenal-filters{gap:5px}.arsenal-filters button{font-size:8px;padding:6px 9px}.arsenal-footer{font-size:7px;flex-direction:column;gap:5px}#arsenal-dialog .card-kicker{font-size:6px;max-width:85%;line-height:1.7}.game-toolbar .weapon-button{min-width:35px;width:35px;padding:4px 2px}.game-toolbar .weapon-button img{width:30px;height:29px}.game-toolbar .weapon-picker{gap:4px}#arsenal-toggle{min-width:0;flex:1;padding:5px 8px;gap:5px}#arsenal-toggle>img{width:33px;height:32px}#arsenal-toggle>b{display:none}#arsenal-toggle strong{max-width:105px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:9px}.game-toolbar .local-health{min-width:46px}#weapon-hint{min-height:24px;max-height:24px;line-height:24px}}
@media(max-height:550px) and (orientation:landscape){#arsenal-dialog{max-height:calc(100dvh - 16px);padding:18px 22px}.arsenal-heading h2{font-size:33px;margin-bottom:10px}.arsenal-weapon{flex-direction:column;min-height:155px}.arsenal-filters{margin-bottom:12px}#weapon-hint{min-height:21px;max-height:21px;line-height:21px}#arsenal-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
/* A permanent fire control makes charge, cooldown and release feedback readable. */
#shot-panel{display:flex;align-items:center;gap:22px;min-height:90px;padding:13px 24px;background:#f1f3e3;border-top:1px solid #bac9a6;flex-shrink:0}#shot-panel .shot-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}#shot-title{font-size:17px;line-height:1.2;font-weight:800;letter-spacing:.4px}#shot-detail{font-size:12px;line-height:1.4;color:#637956}#shot-progress{height:8px;width:100%;max-width:650px;background:#d8e0ca;border-radius:5px;overflow:hidden;margin-top:2px}#shot-progress-fill{display:block;height:100%;width:100%;background:#8eb85b;border-radius:5px;transition:background .15s}
#shot-panel #touch-fire{position:static;min-width:165px;width:auto;height:62px;padding:8px 22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1.5px solid #253b2c;border-radius:8px;background:#c2e983;color:#253b2c;box-shadow:0 3px 0 #253b2c;touch-action:none;user-select:none}#touch-fire strong{font-size:14px;letter-spacing:.7px}#touch-fire small{font-size:10px;font-weight:500}#touch-fire kbd{font-size:9px;background:#f6f8dd80}#shot-panel[data-state="charging"] #touch-fire{background:#f2bd6c;box-shadow:0 1px 0 #253b2c;transform:translateY(2px)}#shot-panel[data-state="charging"] #shot-title{color:#946026}#shot-panel[data-state="charging"] #shot-progress-fill{background:#e5a24f}#shot-panel[data-state="cooldown"] #shot-title{color:#836a35}#shot-panel[data-state="cooldown"] #shot-progress-fill{background:#b3aa75}#shot-panel[data-state="warning"] #shot-title{color:#a75f3c}#shot-panel[data-state="success"] #shot-title{color:#567e37}#shot-panel[data-state="pending"] #shot-progress-fill{background:repeating-linear-gradient(110deg,#9cae7a 0,#9cae7a 10px,#c5d2ab 10px,#c5d2ab 20px)}#shot-panel[data-state="blocked"]{opacity:.7}
#weapon-hint{font-size:12px;line-height:1.5;white-space:normal;min-height:35px;max-height:52px;padding:8px 24px;overflow:hidden}.game-toolbar #arsenal-toggle strong{font-size:13px}.game-toolbar #arsenal-toggle #weapon-status{font-size:10px}
@media(max-width:760px){#shot-panel{min-height:88px;padding:12px;gap:12px}#shot-title{font-size:15px;letter-spacing:0}#shot-detail{font-size:11px}#shot-panel #touch-fire{min-width:140px;height:60px;padding:8px 12px}#touch-fire strong{font-size:12px}#weapon-hint{font-size:11px;padding:7px 12px;max-height:48px}.game-toolbar #arsenal-toggle strong{font-size:11px}.game-toolbar #arsenal-toggle #weapon-status{font-size:9px}}
@media(max-width:450px){#shot-panel{min-height:100px;gap:10px;padding:10px 12px}#shot-title{font-size:13px}#shot-detail{font-size:10px}#shot-panel #touch-fire{min-width:112px;max-width:112px;height:64px;padding:6px}#touch-fire strong{font-size:10px;letter-spacing:.3px}#touch-fire small{font-size:9px}#shot-progress{height:7px}#weapon-hint{font-size:10px;max-height:45px;min-height:31px}#respawn-notice strong{font-size:25px}#respawn-notice{padding:15px 17px}}
@media(pointer:coarse){#touch-fire small{display:none}}
@media(max-height:550px) and (orientation:landscape){#shot-panel{min-height:62px;padding:6px 15px;gap:16px}#shot-title{font-size:12px}#shot-detail{font-size:10px}#shot-panel .shot-copy{gap:2px}#shot-panel #touch-fire{min-width:145px;height:47px}#shot-progress{height:5px}#weapon-hint{font-size:10px;min-height:25px;max-height:25px;line-height:1.3;padding:6px 15px}}
#result-dialog{max-width:560px;padding:30px;max-height:calc(100dvh - 28px);overflow:auto;text-align:center}#result-dialog h2{font-size:43px;line-height:1.05;margin:13px 0 9px}.result-medal{display:grid;place-items:center;width:72px;height:72px;margin:20px auto 6px;border:1.5px solid #829c57;border-radius:50%;background:#e5edc7;color:#6e883f;font-size:44px;box-shadow:0 4px 0 #b9c89955}#result-dialog[data-outcome="won"] .result-medal{background:#e8d392;border-color:#b9a66a;color:#8d702b;box-shadow:0 4px 0 #b9a66a44}.result-summary{font-size:11px;color:#859371;margin:0 0 18px}#result-dialog .result-row{text-align:left;padding:12px 0;gap:13px}#result-dialog .result-row>span:first-child{font-family:var(--display);font-size:25px;color:#9eae86;min-width:28px}#result-dialog .result-row.winner>span:first-child{color:#7d9354}.result-identity{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}.result-identity strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-identity small{font-size:10px;color:#899578}.result-vote{font-size:10px!important;color:#8f997f!important;white-space:nowrap}.result-vote.ready{color:#61863f!important;font-weight:700}#next-ready-count{font-size:10px;letter-spacing:1px;font-weight:800;color:#82966b;margin:22px 0 13px}#next-round-button{font-size:13px;justify-content:center;min-height:49px}#next-round-button:disabled{opacity:1;background:#e1e9d1;border-color:#92a47d;box-shadow:0 2px 0 #92a47d;color:#70885a;cursor:default}#result-dialog #result-hint{font-size:11px;line-height:1.7;margin-top:18px}#result-dialog #result-leave{font-size:11px}#result-dialog #results{margin-bottom:10px}
@media(max-width:540px){#result-dialog{padding:25px 22px}#result-dialog h2{font-size:35px}.result-medal{height:58px;width:58px;font-size:35px;margin-top:15px}.result-vote{font-size:8px!important}.result-identity strong{font-size:12px}.result-identity small{font-size:9px}.result-summary{font-size:10px}#result-dialog .result-row{gap:9px}}
@media(max-height:550px) and (orientation:landscape){#result-dialog .result-medal{display:none}#result-dialog{padding:22px 28px}#result-dialog h2{font-size:33px;margin-top:10px}}
#respawn-notice{width:max-content;max-width:calc(100% - 32px);white-space:normal}#respawn-notice small{line-height:1.6}

.sound-settings{margin:0 0 24px}.sound-settings label{display:flex;justify-content:space-between;font-size:11px;font-weight:700;margin-bottom:8px}.sound-settings output{color:var(--muted);font-weight:500}.sound-settings input{padding:0;accent-color:#789c4b;height:24px;cursor:pointer}
/* Ten direct-selection slots; only stocked weapons appear. */
.game-toolbar{height:auto;min-height:94px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:15px;padding:10px 18px}
.game-toolbar .weapon-picker{min-width:0;overflow-x:auto;gap:6px;padding:3px 2px 6px;scrollbar-width:thin;scrollbar-color:#a1b783 transparent}
.game-toolbar .weapon-button{flex:1 0 56px;min-width:56px;max-width:95px;width:auto;min-height:66px;padding:12px 3px 5px;justify-content:center;font-size:8px}
.game-toolbar .weapon-button img{width:42px;height:29px}.game-toolbar .weapon-button .weapon-name{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:8px}
.game-toolbar .weapon-button kbd{display:block;left:4px;top:4px;font-size:9px;line-height:13px;padding:0 4px;color:#3c5137;background:#fff9}
.ammo-count{position:absolute;right:4px;top:3px;z-index:2;font-size:11px;line-height:16px;color:#344b2e}.inventory-empty{align-self:center;font-size:12px;color:#7b886b;padding:12px 6px}
.weapon-slot-empty{position:relative;flex:0 0 45px;min-height:57px;border:1.5px dashed #a9b896;border-radius:7px;opacity:.55}.weapon-slot-empty kbd{position:absolute;left:4px;top:4px;font-size:9px;line-height:13px;padding:0 4px;color:#3c5137;background:#fff9;border-radius:3px}
#equipped-weapon{display:flex;gap:8px;align-items:center;min-width:150px}#equipped-weapon>img{width:40px;height:35px}#equipped-weapon>span{display:flex;flex-direction:column;gap:4px}#equipped-weapon strong{font-size:12px}#equipped-weapon small{font-size:9px;color:#7d8e6c}#inventory-count{font-weight:700;letter-spacing:.3px}
@media(max-width:1000px){.game-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:6px 15px;padding:7px 12px}.game-toolbar .weapon-picker{grid-column:1/-1}.game-toolbar .weapon-button{max-width:none;min-width:45px;flex-basis:45px;min-height:57px;padding-top:12px}.game-toolbar .weapon-button img{width:36px;height:25px}.game-toolbar .weapon-button .weapon-name{font-size:7px}#equipped-weapon{min-width:0}#equipped-weapon>img{display:none}#equipped-weapon>span{flex-direction:row;align-items:center;gap:10px}#equipped-weapon strong{font-size:10px}#equipped-weapon small{font-size:8px}.game-toolbar .local-health{display:flex;align-items:center;gap:8px}.game-toolbar .local-health strong{font-size:23px}.game-toolbar .local-health>span{max-width:65px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:540px){#equipped-weapon>span{flex-wrap:wrap;gap:3px 7px}#equipped-weapon strong{font-size:9px}#equipped-weapon #weapon-status{font-size:8px}#inventory-count{font-size:7px!important}.game-toolbar .weapon-button{min-width:43px;flex-basis:43px}.game-toolbar .weapon-button .weapon-name{display:none}.game-toolbar .weapon-button img{height:28px;width:32px}.game-toolbar .weapon-button kbd{font-size:8px}.game-toolbar .ammo-count{font-size:10px}.game-toolbar .weapon-picker{gap:4px}.game-toolbar .local-health>span{display:none}}
@media(max-height:550px) and (orientation:landscape){.game-toolbar{grid-template-columns:minmax(0,1fr) auto;min-height:61px;padding:4px 10px}.game-toolbar .weapon-picker{grid-column:auto}.game-toolbar .weapon-button{min-height:45px;flex-direction:column;padding:7px 2px 2px;min-width:43px;flex-basis:43px}.game-toolbar .weapon-button img{height:25px;width:32px}.game-toolbar .weapon-button .weapon-name{display:none}#equipped-weapon{display:none}.game-toolbar .local-health{grid-column:2}}

/* ───── Readability pass: larger minimum type, stronger contrast ───── */
:root{--muted:#5b6352;--soft:#4f6142}
body{font-size:15px}
.eyebrow{font-size:12px}
.intro p{font-size:15px;line-height:1.7;color:var(--muted)}
.pill,.map-label{font-size:11px}
.speech{font-size:12px}
.stamp small{font-size:9px}
.art-caption>div{font-size:14px}.art-caption strong{font-size:16px}
.art-caption{text-shadow:0 1px 3px #0007}
.card-kicker{font-size:11px;color:var(--soft)}
h2{font-size:36px}
.muted{font-size:14px;line-height:1.6;color:var(--muted)}
.join-card label,.color-label{font-size:11px}
.join-card label span,.color-label span{font-size:11px;color:var(--muted)}
input{font-size:15px}
input::placeholder{color:#868c7a}
.color-swatch{width:30px;height:30px;min-width:30px}
.primary-button{font-size:15px;min-height:50px}
.button-note{font-size:12px;color:var(--muted)}
.secondary-button{font-size:13px;border-color:#b9c4a7}
.text-button{font-size:13px}.text-button>span:first-child{color:var(--muted)}
.section-heading h3{font-size:13px}.section-heading h3>span{font-size:11px;color:#4f6142}
.section-heading>span{font-size:12px;color:var(--muted)}
.empty-rooms p{font-size:14px}.empty-rooms small{font-size:12px;color:var(--muted)}.empty-rooms button{font-size:13px}
.room-row p{font-size:15px}.room-row small{font-size:12px;color:var(--muted)}.room-row>span{font-size:12px;color:var(--soft)}
.feature-strip p{font-size:12px}.feature-strip small{font-size:12px;color:var(--muted)}.feature-number{color:#8a9a74}
footer{font-size:11px}footer small,footer>span:last-child{font-size:10px;color:var(--muted)}
.code-display small{font-size:10px}
.player-row{font-size:14px}.player-row small{font-size:11px;color:var(--soft)}.player-avatar{width:30px;height:30px}
.room-hint{font-size:13px;color:var(--soft)}
.help-grid p{font-size:12px;line-height:1.8}.help-grid strong{font-size:14px}.help-grid b{font-size:11px;color:var(--soft)}
kbd{font-size:11px;padding:2px 7px}
#toast{font-size:14px;font-weight:600}
.connection{font-size:12px}

/* Arena HUD */
.game-center{font-size:12px}
.game-center strong{font-size:34px;display:inline-block}
#latency{font-size:12px;color:var(--soft)}
.score-chip{min-width:128px;padding:8px 11px;background:#fcfbeaf0;border-color:#35513b66}
.score-chip .chip-name{font-size:13px}
.chip-name i{width:10px;height:10px}
.chip-name small{font-size:12px;color:#3f5536;font-weight:700}
.chip-health{height:6px;border-radius:3px;margin:6px 0}
.chip-health i{border-radius:3px;transition:width .35s cubic-bezier(.2,1.4,.4,1)}
.chip-stats{font-size:12px;color:#3f5536}
.chip-stats span:first-child{color:#d0493a;letter-spacing:1px}
#kill-feed{font-size:14px;font-weight:700;top:20px}
.feed-item{padding:8px 13px;border-radius:6px;box-shadow:0 3px 0 #1d2f2350;animation:feed-in .35s cubic-bezier(.2,1.6,.4,1)}
.feed-item.mine{background:#f4d675;color:#1d2f23;border:2px solid #1d2f23}
@keyframes feed-in{0%{opacity:0;transform:translateX(30px) scale(.7)}100%{opacity:1;transform:none}}
.arena-label{font-size:12px;color:#fbfdebdd;text-shadow:0 1px 3px #0006}.arena-label span{font-size:11px}
#respawn-notice strong{font-size:42px}#respawn-notice small{font-size:14px}
#respawn-notice{animation:pop-in .4s cubic-bezier(.2,1.6,.4,1)}
@keyframes pop-in{0%{opacity:0;transform:translate(-50%,-50%) scale(.6)}100%{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.weapon-button{font-size:12px}
.weapon-button kbd{font-size:10px}
.weapon-button.active{animation:select-pop .3s cubic-bezier(.2,1.8,.4,1)}
@keyframes select-pop{0%{transform:scale(.85)}100%{transform:scale(1)}}
.weapon-button:hover:not(.active){transform:translateY(-2px);background:#e2ead0}
.local-health>span{font-size:11px}
.local-health strong{font-size:36px;display:inline-block;transition:color .2s}
.local-health small{font-size:12px}
.local-health strong.low{color:#d0493a}
.local-health strong.hurt{animation:hp-hurt .45s}
.local-health strong.heal{animation:hp-heal .5s}
@keyframes hp-hurt{0%{transform:scale(1.5) rotate(-6deg);color:#e8452c}40%{transform:scale(.92) rotate(3deg)}100%{transform:none}}
@keyframes hp-heal{0%{transform:scale(1.35);color:#5aa83a}100%{transform:none}}
#match-time.tick{animation:tick .5s}
@keyframes tick{0%{transform:scale(1.45);color:#e8452c}100%{transform:none}}
#weapon-hint{font-size:12px;min-height:30px;max-height:30px;line-height:30px}
#arsenal-toggle strong{font-size:14px}
#arsenal-toggle small{font-size:10px;color:var(--soft)}
#arsenal-toggle #weapon-status{font-size:11px;color:var(--soft)}
#arsenal-toggle small kbd{font-size:10px}
.arsenal-heading>span{font-size:11px;color:var(--soft)}
.arsenal-filters button{font-size:12px}
.arsenal-weapon>strong{font-size:14px}
.arsenal-weapon>p{font-size:12px;line-height:1.5;color:var(--muted)}
.arsenal-weapon>small{font-size:10px;color:var(--soft)}.arsenal-weapon>small b{font-size:11px}
.arsenal-weapon:hover{transform:translateY(-3px);box-shadow:0 4px 0 #1d2f2330}
.arsenal-footer{font-size:11px;color:var(--muted)}
#arsenal-dialog .card-kicker{font-size:11px}
#shot-title{font-size:19px}
#shot-detail{font-size:13px;color:#4c6142}
#shot-progress{height:11px}
#shot-panel[data-state="charging"] #shot-progress-fill{box-shadow:0 0 12px #f0a14e;background:linear-gradient(90deg,#f2c14e,#ec7b3a)}
#shot-panel[data-state="charging"] #touch-fire{animation:charge-shake .12s infinite}
@keyframes charge-shake{0%,100%{translate:0 0}50%{translate:1px -1px}}
#touch-fire strong{font-size:15px}#touch-fire small{font-size:12px}
.result-row{font-size:15px}.result-row>span:last-child{font-size:12px;color:var(--soft)}
.result-medal{animation:medal 1s cubic-bezier(.2,1.6,.4,1)}
@keyframes medal{0%{transform:scale(0) rotate(-40deg)}100%{transform:none}}
.primary-button:hover{transform:translateY(-2px);box-shadow:0 5px 0 var(--ink)}
.primary-button:active{transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}

/* Small screens keep the bigger type, only slightly trimmed */
@media(max-width:760px){
  .intro p{font-size:13px}
  .join-card label,.color-label{font-size:10px}
  .primary-button{font-size:14px}
  .secondary-button{font-size:12px}
  .muted{font-size:13px}
  .score-chip{min-width:96px;padding:6px 8px}
  .score-chip .chip-name{font-size:11px}
  .chip-stats,.chip-name small{font-size:10px}
  #kill-feed{top:96px;font-size:12px}
  .weapon-button{font-size:11px}
  #arsenal-toggle strong{font-size:12px}
  #arsenal-toggle small,#arsenal-toggle #weapon-status{font-size:10px}
  #weapon-hint{font-size:11px}
  .arsenal-weapon>p{font-size:11px}
  .local-health strong{font-size:30px}
  .game-center strong{font-size:28px}
  #shot-title{font-size:16px}#shot-detail{font-size:12px}
}
@media(max-width:540px){
  .arsenal-weapon>strong{font-size:12px}
  .arsenal-weapon>p{font-size:10px}
  .arsenal-weapon>small,.arsenal-heading>span,#arsenal-dialog .card-kicker{font-size:9px}
  .arsenal-filters button{font-size:11px}
  #arsenal-toggle strong{font-size:11px}
}

/* Immersive HUD: the arena fills the whole screen, controls float on top of it. */
#game-view{position:relative}
#game-view #arena{position:absolute;inset:0}
#game-view .arena-label,#game-view #weapon-hint{display:none}
#game-view .game-header{position:absolute;top:0;left:0;right:0;height:auto;min-height:0;padding:10px 12px;background:none;pointer-events:none;z-index:3;justify-content:center}
#game-view .game-header>*{pointer-events:auto}
#game-view .game-header .brand{display:none}
#game-view .game-center{background:#fcfbeacc;backdrop-filter:blur(4px);border:1px solid #35513b33;border-radius:999px;padding:2px 14px;gap:8px;font-size:10px;letter-spacing:.5px}
#game-view .game-center strong{font-size:22px;margin-left:2px}
#game-view .game-actions{position:absolute;right:12px;top:10px;gap:6px}
#game-view .game-actions .icon-button{width:32px;height:32px;font-size:15px;background:#fcfbeacc;backdrop-filter:blur(4px)}
#game-view #latency{font-size:10px;background:#fcfbeab0;padding:3px 8px;border-radius:999px}
#game-view #scoreboard{top:10px;left:12px;gap:5px;max-width:calc(50% - 110px)}
#game-view .score-chip{min-width:0;padding:4px 8px 5px;background:#fcfbeacc;border-radius:7px}
#game-view .score-chip .chip-name{font-size:11px;gap:5px}
#game-view .score-chip .chip-name span{max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#game-view .chip-lives{font-size:10px;color:#d0493a;letter-spacing:.5px;margin-left:auto;font-weight:700}
#game-view .chip-name small{margin-left:0;font-size:11px;min-width:20px;text-align:right}
#game-view .chip-health{height:3px;margin:4px 0 0}
#game-view #kill-feed{top:136px;right:12px;font-size:11px;gap:4px}
#game-view .feed-item{padding:5px 9px}
/* Bottom bar: one compact floating strip. */
#game-view .game-toolbar{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 20px);height:auto;min-height:0;display:flex;align-items:center;gap:10px;padding:5px 8px;background:#fcfbeadd;backdrop-filter:blur(6px);border:1px solid #35513b33;border-radius:12px;box-shadow:0 4px 14px #1d2f2326;z-index:3}
#game-view .game-toolbar .local-health{order:-1;min-width:0;display:flex;align-items:baseline;gap:3px;margin:0;padding:0 8px 0 4px;border-right:1px solid #35513b2e}
#game-view .game-toolbar .local-health>span{display:none}
#game-view .game-toolbar .local-health strong{font-size:26px;line-height:1;white-space:nowrap}
#game-view .game-toolbar .local-health small{font-size:10px}
#game-view .game-toolbar .weapon-picker{min-width:0;gap:4px;padding:0;overflow-x:auto;scrollbar-width:none;grid-column:auto}
#game-view .game-toolbar .weapon-button{flex:0 0 44px;width:44px;min-width:44px;max-width:none;height:44px;min-height:0;padding:9px 2px 2px;flex-direction:column;justify-content:center;border-radius:8px}
#game-view .game-toolbar .weapon-button img{width:34px;height:24px}
#game-view .game-toolbar .weapon-button .weapon-name{display:none}
#game-view .game-toolbar .weapon-button kbd{display:block;left:2px;top:2px;font-size:8px;line-height:11px;padding:0 3px}
#game-view .game-toolbar .ammo-count{right:3px;top:1px;font-size:9px;line-height:12px}
#game-view .game-toolbar .weapon-button.active{box-shadow:0 2px 0 var(--ink)}
#game-view .weapon-slot-empty{flex:0 0 18px;min-height:44px;border-width:1px;opacity:.4}
#game-view .weapon-slot-empty kbd{left:50%;top:50%;transform:translate(-50%,-50%);padding:0 2px;font-size:8px;background:none}
#game-view #equipped-weapon{display:flex;min-width:0;max-width:130px;padding-left:8px;border-left:1px solid #35513b2e}
#game-view #equipped-weapon>img{display:none}
#game-view #equipped-weapon>span{flex-direction:column;align-items:flex-start;gap:1px}
#game-view #equipped-weapon strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}
#game-view #equipped-weapon small{font-size:9px;white-space:nowrap}
#game-view #equipped-weapon #inventory-count{display:none}
/* Shot status: a small pill above the bar, only while something is happening. */
#game-view #shot-panel{position:absolute;left:50%;bottom:72px;transform:translateX(-50%);width:min(300px,calc(100% - 24px));min-height:0;padding:6px 14px 7px;gap:10px;background:#fcfbeadd;backdrop-filter:blur(6px);border:1px solid #35513b33;border-radius:999px;z-index:3;pointer-events:none;transition:opacity .2s}
#game-view #shot-panel .shot-copy{gap:4px}
#game-view #shot-title{font-size:12px;text-align:center;letter-spacing:.5px}
#game-view #shot-detail{display:none}
#game-view #shot-progress{height:5px}
#game-view #shot-panel[data-state="ready"]{opacity:0}
#game-view #shot-panel[data-state="blocked"]{opacity:.9}
#game-view #shot-panel #touch-fire{display:none}
#game-view #respawn-notice{top:34%}
#game-view:not([hidden])~#toast{bottom:auto;top:56px}
@media(max-width:760px){
  #game-view .game-center>span:not(.live-dot){display:none}
  #game-view #latency{display:none}
  #game-view #scoreboard{max-width:calc(50% - 60px)}
  #game-view .score-chip .chip-name span{max-width:60px}
  #game-view #kill-feed{top:112px}
  #game-view #equipped-weapon{display:none}
  #game-view .game-toolbar{gap:6px;padding:4px 6px}
  #game-view .game-toolbar .weapon-button{flex-basis:38px;width:38px;min-width:38px;height:40px}
  #game-view .game-toolbar .weapon-button img{width:28px;height:20px}
  #game-view .weapon-slot-empty{flex-basis:12px;min-height:40px}
  #game-view .weapon-slot-empty kbd{display:none}
  #game-view .game-toolbar .local-health strong{font-size:22px}
  #game-view #shot-panel{bottom:64px}
}
/* Touch: a round fire button floats bottom right, movement bottom left. */
@media(pointer:coarse){
  #game-view #shot-panel{left:auto;right:12px;transform:none;width:auto;bottom:66px;padding:0;background:none;border:0;backdrop-filter:none;flex-direction:column-reverse;align-items:flex-end;gap:6px}
  #game-view #shot-panel[data-state="ready"]{opacity:1}
  #game-view #shot-panel[data-state="ready"] .shot-copy{visibility:hidden}
  #game-view #shot-panel .shot-copy{background:#fcfbeadd;border:1px solid #35513b33;border-radius:999px;padding:4px 10px 5px;width:150px}
  #game-view #shot-title{font-size:10px}
  #game-view #shot-panel #touch-fire{display:flex;pointer-events:auto;min-width:0;max-width:none;width:76px;height:76px;padding:4px;border-radius:50%;opacity:.92}
  #game-view #touch-fire strong{font-size:11px;line-height:1.1;text-align:center}
  #game-view #mobile-controls{bottom:66px;left:12px;right:auto}
}
@media(max-height:550px) and (orientation:landscape){
  #game-view .game-header{padding:6px 10px}
  #game-view .game-actions{top:6px}
  #game-view #scoreboard{top:6px}
  #game-view .game-toolbar{bottom:6px}
  #game-view .game-toolbar .weapon-button{height:36px;padding-top:6px}
  #game-view .weapon-slot-empty{min-height:36px}
  #game-view #shot-panel{bottom:54px}
  #game-view #mobile-controls{bottom:54px}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Performance: blur behind overlays must be recomputed every frame over the live canvas.
   Near-opaque backgrounds look almost the same and cost nothing. */
dialog::backdrop{backdrop-filter:none;background:#152b23cf}
#game-view .score-chip,#game-view .game-center,#game-view .game-actions .icon-button,#game-view .game-toolbar,#game-view #shot-panel{backdrop-filter:none}
#game-view .score-chip{background:#fcfbeaf0}
#game-view .game-center,#game-view .game-actions .icon-button{background:#fcfbeaeb}
#game-view .game-toolbar{background:#fcfbeaf2}
#game-view #shot-panel{background:#fcfbeaf2}
@media(pointer:coarse){#game-view #shot-panel{background:none}}
