:root{color-scheme:dark;--bg:#090909;--surface:#171717;--line:#363636;--white:#efeee8;--muted:#92918d;--red:#ec584e;--font:Impact,'Arial Narrow','Helvetica Neue',Arial,sans-serif;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--white)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg)}body{overflow-x:hidden}button,input{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.3;cursor:default}a{color:inherit}input{border:1px solid #62615d;background:#141414;color:#fff;padding:15px 17px;border-radius:3px;font-size:18px;min-width:0;outline:0}input:focus{border-color:var(--red)}label{font-size:11px;font-weight:800;letter-spacing:.14em;color:#bcb9b1}h1,h2,p{margin:0}.hidden{display:none!important}.eyebrow{font-size:11px;letter-spacing:.18em;font-weight:800;color:var(--red)}.primary,.secondary{font-size:12px;font-weight:900;letter-spacing:.11em;padding:16px 17px;min-height:48px;text-align:left;border-radius:3px}.primary{color:#100b0b;background:var(--red);display:flex;justify-content:space-between;align-items:center}.primary:hover:not(:disabled){background:#ff7165}.secondary{background:#252525;color:var(--white);border:1px solid #414141}.secondary:hover:not(:disabled){background:#383838}.danger{color:#f18a80}.error{color:#ff9486;min-height:18px;font-size:12px}.connection{font-size:10px;letter-spacing:.12em;color:#bab7ae}.connection:before{content:'●';color:#777;margin-right:7px}.connection.online:before{color:#8cc18c}.connection.offline:before{color:#ee5f53}.logo,.screen-title{font:32px/1 var(--font);letter-spacing:.015em}.logo span,.screen-title span{color:var(--red)}.quiet-link{font-size:11px;text-decoration:none;color:#aaa;letter-spacing:.11em}
/* Entry */
.join-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:32px 20px;background:radial-gradient(ellipse at 65% 40%,#391714 0,transparent 45%),#090909;position:relative}.join-screen:after{position:absolute;content:'╳';font:500px/1 var(--font);color:#ffffff05;right:-25px;bottom:-120px;pointer-events:none}.join-card{width:min(100%,450px);position:relative;z-index:1}.join-card h1{font:clamp(100px,21vw,145px)/.82 var(--font);letter-spacing:-.035em;margin:20px 0 26px}.join-card h1 span{color:var(--red)}.join-card p{color:#b6b4b0;line-height:1.5;margin-bottom:38px}.join-card form{display:flex;flex-direction:column;gap:12px}.join-card form input{width:100%;text-transform:uppercase}.join-card form button{margin-top:5px}.fineprint{font-size:11px;line-height:1.5;color:#777;margin-top:18px}.join-card .error{margin-top:12px}.corner-number{position:absolute;bottom:20px;right:20px;font-size:10px;letter-spacing:.18em;color:#7d7875}
/* Player */
.player-page{height:100dvh;overflow:hidden}.game-page{height:100dvh;display:flex;flex-direction:column}.game-topbar{height:51px;min-height:51px;padding:0 17px;border-bottom:1px solid #343434;display:flex;gap:16px;align-items:center;justify-content:space-between}.game-topbar .logo{font-size:24px}.game-viewport{position:relative;flex:1;min-height:150px;overflow:hidden;background:#101010}.game-viewport canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.state-notice{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(90%,340px);padding:21px;background:#101010ed;border:1px solid #555;text-align:center;pointer-events:none}.state-notice strong{font:36px/1 var(--font);display:block;letter-spacing:.05em;margin-bottom:10px;color:var(--red)}.state-notice span{font-size:13px;line-height:1.5;color:#ccc}.countdown,.screen-countdown{position:absolute;inset:0;display:grid;place-items:center;font:clamp(100px,25vw,290px)/1 var(--font);color:var(--red);text-shadow:0 6px 45px #000;pointer-events:none}.end-card{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:25px;width:min(90%,370px);border:1px solid #f36458;background:#120b0be6;text-align:center}.end-card h2{font:50px/1 var(--font);margin:10px 0;color:var(--white);overflow-wrap:anywhere}.end-card p{font-size:13px;color:#bbb}.round-badge{position:absolute;left:11px;top:12px;font-size:10px;letter-spacing:.15em;color:#b8b0a8;background:#101010be;padding:6px 9px}.bottom-ui{background:#0b0b0b;border-top:1px solid #363636;min-height:215px;display:flex;flex-direction:column;justify-content:space-between;padding:12px 14px 9px;gap:8px}.player-stats{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:10px}.player-stats>div{display:flex;flex-direction:column;gap:3px;min-width:0}.small-label{font-size:9px;letter-spacing:.14em;color:#86837d;font-weight:bold}.player-stats strong{font:20px/1.05 var(--font);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.health-track{height:8px;background:#46302f;margin-top:6px;border-radius:2px;overflow:hidden}.health-track>div{width:100%;height:100%;background:var(--red)}.health-number{font:12px var(--font);color:#bdb6af}.controls{display:flex;align-items:center;justify-content:space-between;min-height:110px;gap:10px}.joystick{height:104px;width:104px;min-width:104px;border:2px solid #555;border-radius:50%;background:#222;position:relative;display:grid;place-items:center;touch-action:none;user-select:none;-webkit-user-select:none}.joystick-cross{font-size:36px;line-height:1;color:#4c4c4c}.joystick-knob{height:51px;width:51px;background:#777;position:absolute;border-radius:50%;border:2px solid #a6a6a6;box-shadow:0 2px 10px #0008;pointer-events:none;transform:translate(0px,0px)}.controls-instructions{text-align:center;color:#86817b;font-size:10px;line-height:1.55;letter-spacing:.08em}.controls-instructions span{color:#5e5b56;font-size:9px}.attack-button{height:105px;width:105px;min-width:105px;border-radius:50%;background:#b93e36;border:3px solid #f16b60;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;touch-action:none;-webkit-user-select:none}.attack-button:active,.attack-button.attacking{background:#ef675a;transform:scale(.97)}.attack-button span{font:50px/.95 var(--font)}.attack-button small{font-size:10px;letter-spacing:.17em;font-weight:bold}.bottom-hint{display:flex;justify-content:space-between;gap:12px;color:#8a847d;font-size:10px;letter-spacing:.08em}.bottom-hint span:first-child{color:var(--red)}
/* Public projection */
.screen-page{height:100dvh;overflow:hidden}.screen-root{height:100dvh;width:100vw;position:relative;background:#0b0b0b;overflow:hidden}.screen-root>canvas{width:100%;height:100%;display:block}.screen-header{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:26px;padding:20px 33px;background:linear-gradient(#080808e8,#08080800);pointer-events:none}.screen-title{font-size:clamp(30px,3vw,51px)}.screen-subtitle{color:#b1aaa3;font-size:12px;letter-spacing:.15em}.screen-status{margin-left:auto;font:clamp(18px,2vw,29px) var(--font);color:var(--red)}.screen-lobby,.screen-winner{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#0e0e0ef2;border:1px solid #645a55;min-width:min(440px,85vw);padding:30px;text-align:center;box-shadow:0 20px 80px #000d}.screen-lobby img{display:block;margin:15px auto 16px;width:min(210px,45vw);aspect-ratio:1;background:#fff;padding:8px}.screen-url{font:clamp(24px,3vw,40px) var(--font);color:var(--white);overflow-wrap:anywhere}.screen-count{font:clamp(20px,2.5vw,32px) var(--font);color:var(--red);margin-top:12px}.screen-lobby p{font-size:12px;color:#aaa;margin-top:14px}.screen-countdown{font-size:clamp(120px,27vw,440px);text-shadow:0 0 70px #000}.screen-winner{width:min(680px,80vw);border-color:var(--red);padding:60px 35px}.screen-winner h1{font:clamp(72px,12vw,180px)/.95 var(--font);overflow-wrap:anywhere;margin:14px 0;color:var(--red)}.screen-winner p{font:24px var(--font);letter-spacing:.08em}.screen-footer{position:absolute;bottom:0;left:0;right:0;padding:20px 33px;background:linear-gradient(#0000,#080808ee);display:flex;justify-content:space-between;font:20px var(--font);letter-spacing:.075em}.screen-footer span:nth-child(2){color:var(--red)}
/* Host */
.host-page{min-height:100vh;background:#101010}.host-login{width:min(450px,calc(100% - 40px));margin:15vh auto;padding:32px;border:1px solid #48413d;background:#161616}.host-login h1{font:53px var(--font);margin:14px 0 32px}.host-login form{display:flex;gap:10px;flex-direction:column}.host-login .error{margin-top:15px}.dashboard{min-height:100vh}.host-header{display:flex;align-items:center;gap:24px;justify-content:space-between;padding:18px 25px;border-bottom:1px solid #363636;background:#0b0b0b}.host-header .logo{font-size:30px}.host-header .logo small{font:11px Arial;color:#777}.host-links{display:flex;gap:20px}.host-links a{font-size:11px;text-decoration:none;letter-spacing:.12em;color:#c9c5be}.host-columns{display:grid;grid-template-columns:305px 1fr;gap:17px;padding:17px;max-width:1600px;margin:0 auto}.host-panel{border:1px solid #383838;background:#171717;padding:23px}.host-panel h2{font:40px var(--font);margin:12px 0}.host-panel h2 span{color:var(--red)}.host-sidebar>p{font-size:12px;color:#a6a09a;margin-bottom:20px}.host-sidebar button{width:100%;margin-bottom:9px}.qr-frame{display:flex;flex-direction:column;align-items:center;gap:10px;border:1px solid #3a3a3a;background:#0e0e0e;padding:15px;margin:20px 0}.qr-frame img{background:#fff;max-width:100%;width:165px}.qr-frame span{font-size:15px;overflow-wrap:anywhere}.host-message{min-height:22px;color:var(--red)!important;margin:8px 0!important}.host-instructions{font-size:12px;color:#898681;line-height:1.6;border-top:1px solid #333;margin-top:17px;padding-top:17px}.host-main-top{display:flex;align-items:center;justify-content:space-between;gap:18px}.random-picker{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.random-picker input{width:70px;padding:12px}.random-picker .secondary{min-height:42px;padding:12px}.roster{margin-top:24px;border-top:1px solid #464646;max-height:calc(100vh - 230px);overflow-y:auto}.roster-row{min-height:54px;display:grid;grid-template-columns:22px minmax(90px,1fr) auto 28px;align-items:center;gap:12px;border-bottom:1px solid #323232;padding:8px 2px}.roster-row input[type=checkbox]{accent-color:var(--red);width:20px;height:20px;cursor:pointer}.roster-row .roster-name{font-size:17px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.roster-row .roster-name.offline{color:#777}.roster-row .roster-status{font-size:10px;color:#818079;letter-spacing:.08em}.roster-row .roster-status.alive{color:#d5ae74}.roster-row button{background:none;color:#8e7770;font-size:21px}.roster-row button:hover{color:var(--red)}.empty-roster{padding:30px;color:#827d76;font-size:13px;text-align:center}
@media(max-width:640px){.game-topbar{padding:0 11px}.game-topbar .logo{font-size:22px}.game-topbar .quiet-link{font-size:9px}.bottom-ui{min-height:213px;padding:10px 13px 6px}.controls-instructions{display:none}.joystick{height:108px;width:108px;min-width:108px}.attack-button{height:108px;width:108px;min-width:108px}.player-stats strong{font-size:17px}.bottom-hint{font-size:9px}.host-columns{grid-template-columns:1fr}.host-header{flex-wrap:wrap;gap:12px}.host-links{gap:10px}.host-main-top{flex-direction:column;align-items:flex-start}.roster{max-height:none}.screen-header{padding:10px 14px}.screen-subtitle{display:none}.screen-footer{padding:12px 15px;font-size:14px}}@media(max-height:560px){.bottom-ui{min-height:130px;flex-direction:row;align-items:center}.player-stats{display:flex;flex-direction:column}.controls{flex:1}.bottom-hint{display:none}.joystick,.attack-button{height:80px;width:80px;min-width:80px}.attack-button span{font-size:36px}.game-topbar{height:41px;min-height:41px}}@media(hover:hover) and (min-width:900px){.bottom-ui{min-height:140px;flex-direction:row;align-items:center;gap:28px}.player-stats{flex:1}.controls{flex:1;justify-content:space-around}.joystick,.attack-button{width:92px;height:92px;min-width:92px}.bottom-hint{display:none}}
.host-prize{padding:15px;margin:8px 0 18px;border:1px solid var(--red);font-size:13px;line-height:1.7;background:#2b1513}.host-prize strong{display:block;font:28px var(--font);color:var(--red);letter-spacing:.1em}
@media(max-width:640px){.game-topbar{padding:0 11px}.game-topbar .logo{font-size:22px}.game-topbar .quiet-link{font-size:9px}.bottom-ui{min-height:213px;padding:10px 13px 6px}.controls-instructions{display:none}.joystick{height:108px;width:108px;min-width:108px}.attack-button{height:108px;width:108px;min-width:108px}.player-stats strong{font-size:17px}.bottom-hint{font-size:9px}.host-columns{grid-template-columns:1fr}.host-header{flex-wrap:wrap;gap:12px}.host-links{gap:10px}.host-main-top{flex-direction:column;align-items:flex-start}.roster{max-height:none}.screen-header{padding:10px 14px}.screen-subtitle{display:none}.screen-footer{padding:12px 15px;font-size:14px}}@media(max-height:560px){.bottom-ui{min-height:130px;flex-direction:row;align-items:center}.player-stats{display:flex;flex-direction:column}.controls{flex:1}.bottom-hint{display:none}.joystick,.attack-button{height:80px;width:80px;min-width:80px}.attack-button span{font-size:36px}.game-topbar{height:41px;min-height:41px}}@media(hover:hover) and (min-width:900px){.bottom-ui{min-height:140px;flex-direction:row;align-items:center;gap:28px}.player-stats{flex:1}.controls{flex:1;justify-content:space-around}.joystick,.attack-button{width:92px;height:92px;min-width:92px}.bottom-hint{display:none}}
