* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #111; color: #fff; font-family: Impact, 'Arial Black', sans-serif; letter-spacing: 0.5px; user-select: none; }
#cv { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
button { font-family: inherit; cursor: pointer; border: 3px solid #000; background: #f0c419; color: #111; padding: 8px 14px; font-size: 16px; box-shadow: 3px 3px 0 #000; }
button:hover { background: #ffde4a; } button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
button.big { font-size: 22px; padding: 10px 24px; background: #e23a2e; color: #fff; }
button.big:hover { background: #ff5244; }
button.small { font-size: 13px; padding: 5px 9px; }
input, select { font-family: inherit; font-size: 16px; padding: 6px; border: 3px solid #000; }

.screen { position: fixed; inset: 0; display: none; }
.screen.on { display: block; }
#title.on, #lobby.on { display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(0,0,0,.25), rgba(0,0,0,.8)); }

.logo { text-align: center; transform: rotate(-4deg); margin-bottom: 30px; }
.logo span { display: block; font-size: clamp(40px, 9vw, 110px); color: #e23a2e; -webkit-text-stroke: 3px #000; text-shadow: 6px 6px 0 #000; }
.logo b { display: block; font-size: clamp(28px, 6vw, 70px); color: #f0c419; -webkit-text-stroke: 2px #000; text-shadow: 5px 5px 0 #000; }
.panel { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
#name { width: 220px; text-transform: uppercase; font-size: 22px; }
.hint { opacity: .8; font-family: Arial, sans-serif; font-weight: bold; }

#lobby h1 { font-size: 48px; margin: 0 0 4px; color: #f0c419; -webkit-text-stroke: 2px #000; text-shadow: 4px 4px 0 #000; }
#hostTag { font-size: 14px; color: #9f9; margin-bottom: 10px; }
#slots { display: grid; grid-template-columns: repeat(4, minmax(150px, 230px)); gap: 12px; max-width: 98vw; }
@media (max-width: 800px) { #slots { grid-template-columns: repeat(2, minmax(140px, 1fr)); } }
.slot { position: relative; background: rgba(30,25,20,.92); border: 4px solid var(--pc); padding: 8px; min-height: 360px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; box-shadow: 5px 5px 0 #000; }
.slot.mine { outline: 3px dashed #fff; }
.slot.empty { opacity: .8; justify-content: center; }
.ptag { position: absolute; top: -14px; left: -6px; background: var(--pc); padding: 2px 10px; border: 2px solid #000; font-size: 18px; }
.emptytxt { text-align: center; font-size: 22px; opacity: .6; }
.hostctl { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.portrait { height: 170px; background-size: cover; background-position: center top; border: 2px solid #000; }
.cname { font-size: 24px; color: #f0c419; -webkit-text-stroke: 1px #000; }
.cstyle { font-size: 12px; opacity: .8; font-family: Arial; font-weight: bold; }
.pname { font-size: 14px; font-family: Arial; font-weight: bold; }
.ready { font-size: 18px; color: #f55; } .ready.yes { color: #5f5; }
.charrow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.chr { aspect-ratio: 1; padding: 0; background-size: cover; background-position: center; border: 2px solid #000; box-shadow: none; }
.chr.sel { border-color: #fff; outline: 2px solid var(--pc); }
.readybtn { background: #3fb54a; color: #fff; }
.lobbybar { display: flex; gap: 14px; align-items: center; margin-top: 16px; font-family: Arial; font-weight: bold; }

/* HUD */
#hudTop { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 8px; justify-content: center; pointer-events: none; flex-wrap: wrap; }
.pcard { position: relative; display: flex; gap: 6px; background: rgba(0,0,0,.65); border: 3px solid var(--pc); padding: 4px; width: 250px; box-shadow: 3px 3px 0 #000; }
.pcard.dead { opacity: .45; filter: grayscale(1); }
.pface { width: 52px; height: 52px; background-size: cover; background-position: center; border: 2px solid #000; flex: none; }
.pinfo { flex: 1; min-width: 0; }
.pn { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { position: relative; height: 10px; background: #300; border: 1px solid #000; margin-top: 2px; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; }
.bar.hp .lag { background: #ff0; } .bar.hp .fill { background: linear-gradient(#5f5, #2a2); }
.bar.meter { height: 6px; background: #112; } .bar.meter .fill { background: #39f; }
.bar.meter.ready .fill { background: #6ff; animation: pulse .4s infinite alternate; }
@keyframes pulse { to { filter: brightness(1.8); } }
.pmeta { display: flex; gap: 6px; font-size: 11px; font-family: Arial; font-weight: bold; margin-top: 2px; }
.cash { color: #ffd21f; } .wpn { color: #5df; } .al { color: #9f9; }
.pstatus { position: absolute; right: 4px; bottom: 2px; color: #f44; font-size: 15px; }

#feed { position: absolute; right: 10px; top: 90px; width: 330px; font-family: Arial; font-weight: bold; font-size: 13px; pointer-events: none; }
.fitem { background: rgba(0,0,0,.6); padding: 4px 8px; margin-bottom: 4px; border-left: 4px solid #f0c419; transition: opacity 1s; }
.fitem.fade { opacity: 0; }

#banners { position: absolute; left: 0; right: 0; top: 32%; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.banner { animation: slam .35s cubic-bezier(.2,2,.4,1); text-align: center; -webkit-text-stroke: 2px #000; text-shadow: 4px 4px 0 #000; }
.banner.big { font-size: clamp(50px, 10vw, 130px); color: #f0c419; }
.banner.sub { font-size: clamp(22px, 3.5vw, 40px); color: #fff; }
.banner.special { font-size: clamp(26px, 4vw, 50px); font-style: italic; }
.banner.hazard { font-size: clamp(24px, 3.5vw, 44px); color: #ff8a1a; }
.banner.fatal { font-size: clamp(60px, 12vw, 160px); color: #c00; letter-spacing: 6px; text-shadow: 0 0 30px #f00, 5px 5px 0 #000; }
@keyframes slam { from { transform: scale(3) rotate(-8deg); opacity: 0; } to { transform: scale(1); opacity: 1; } }

#bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble { position: absolute; transform: translate(-50%, -100%); background: #fff; color: #000; border: 3px solid #000; border-radius: 16px; padding: 6px 12px; font-size: 18px; white-space: nowrap; box-shadow: 3px 3px 0 #000; animation: pop .2s; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -12px; border: 8px solid transparent; border-top-color: #000; transform: translateX(-50%); }
.bubble.swear { background: #ffec3d; font-size: 22px; transform: translate(-50%, -100%) rotate(-3deg); }
.bubble.phone { font-family: Arial; font-weight: bold; font-size: 14px; }
.bubble.ally { background: #9f9; }
@keyframes pop { from { transform: translate(-50%, -100%) scale(0); } }

#prompt { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.75); border: 3px solid #f0c419; padding: 8px 18px; font-size: 20px; transition: opacity .2s; pointer-events: none; white-space: nowrap; }
#prompt b { color: #f0c419; }

#oopsie { position: absolute; right: -360px; bottom: 0; width: 320px; pointer-events: none; }
#oopsie img { width: 320px; display: block; }
#oopsie span { position: absolute; top: 30px; left: -40px; font-size: 54px; color: #ff3c8a; -webkit-text-stroke: 2px #000; text-shadow: 4px 4px 0 #000; transform: rotate(-12deg); }
#oopsie.go { animation: oops 3s cubic-bezier(.2,1.4,.4,1); }
#oopsie.go span { animation: oopsTxt 3s ease-out; }
@keyframes oops { 0% { right: -360px; transform: scale(.6) rotate(8deg); } 12% { right: 0; transform: scale(1.15) rotate(-4deg); } 20%, 82% { right: 0; transform: scale(1) rotate(0); } 100% { right: -360px; } }
@keyframes oopsTxt { 0%, 15% { transform: rotate(-12deg) scale(0); } 25% { transform: rotate(-12deg) scale(1.6); } 35%, 100% { transform: rotate(-12deg) scale(1); } }

#podiumUI { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; padding-top: 60px; pointer-events: none; }
#podiumUI.on { display: flex; }
#auctioneer { font-size: clamp(28px, 5vw, 60px); color: #fff; -webkit-text-stroke: 2px #000; text-shadow: 4px 4px 0 #000; text-align: center; }
#lotStats { font-family: Arial; font-weight: bold; font-size: 16px; background: rgba(0,0,0,.6); padding: 4px 12px; margin-top: 6px; }
#bid { font-size: clamp(40px, 8vw, 100px); color: #ffd21f; -webkit-text-stroke: 2px #000; text-shadow: 5px 5px 0 #000; margin-top: 4px; }
#bid.pop { animation: pop2 .15s; }
@keyframes pop2 { from { transform: scale(1.25); } }
#lots { position: absolute; left: 16px; top: 140px; display: flex; flex-direction: column; gap: 6px; }
.lot { background: rgba(0,0,0,.7); border: 3px solid; padding: 6px 12px; display: flex; gap: 20px; justify-content: space-between; min-width: 230px; font-size: 18px; }
.lot b { color: #ffd21f; } .lot.win { font-size: 24px; background: rgba(80,60,0,.85); }
#backBtn { pointer-events: auto; position: absolute; bottom: 30px; }

#settings { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: none; align-items: center; justify-content: center; z-index: 20; }
#settings.on { display: flex; }
.spanel { background: #221d18; border: 4px solid #f0c419; padding: 18px 22px; width: min(620px, 94vw); max-height: 92vh; overflow: auto; box-shadow: 6px 6px 0 #000; }
.spanel h2 { margin: 0 0 10px; color: #f0c419; }
.spanel h3 { margin: 14px 0 6px; } .spanel h3 small { font-family: Arial; font-size: 11px; opacity: .7; display: block; }
.spanel label { display: flex; justify-content: space-between; align-items: center; margin: 6px 0; font-family: Arial; font-weight: bold; }
#keybinds { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.kbrow { display: flex; justify-content: space-between; align-items: center; font-family: Arial; font-size: 13px; font-weight: bold; }
.kbrow button { min-width: 80px; }
.row { display: flex; justify-content: space-between; margin-top: 14px; }

#toasts { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 4px; z-index: 30; pointer-events: none; }
.toast { background: #e23a2e; border: 2px solid #000; padding: 6px 14px; font-family: Arial; font-weight: bold; }

#keysOverlay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 94vw); background: rgba(20,16,12,.93); border: 4px solid #f0c419; padding: 14px 20px; box-shadow: 6px 6px 0 #000; display: none; z-index: 15; pointer-events: none; }
#keysOverlay.on { display: block; }
#keysOverlay h2 { margin: 0 0 8px; color: #f0c419; } #keysOverlay h2 small { font-family: Arial; font-size: 12px; opacity: .7; }
.krow { display: flex; justify-content: space-between; gap: 12px; font-family: Arial; font-size: 14px; font-weight: bold; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.krow b { background: #f0c419; color: #111; padding: 0 6px; border: 2px solid #000; font-family: Impact, Arial Black; }
#keysOverlay .pad { font-family: Arial; font-size: 11px; opacity: .75; margin: 8px 0 0; }
#tabHint { position: absolute; left: 10px; bottom: 10px; font-family: Arial; font-weight: bold; font-size: 12px; opacity: .6; pointer-events: none; }

#flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; mix-blend-mode: screen; }

#pipLabel { position: absolute; display: none; border: 4px solid #ff2d2d; box-shadow: 4px 4px 0 #000; pointer-events: none; }
#pipLabel span { position: absolute; top: -26px; left: -4px; background: #ff2d2d; padding: 2px 8px; font-size: 14px; border: 2px solid #000; animation: pulse .6s infinite alternate; }

/* cinematic intro */
#letterbox i { position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height .4s; pointer-events: none; z-index: 5; }
#letterbox i:first-child { top: 0; } #letterbox i:last-child { bottom: 0; }
#game.cine #letterbox i { height: 11vh; }
#game.cine #hudTop, #game.cine #feed, #game.cine #prompt, #game.cine #tabHint { opacity: 0; }
#hudTop, #feed, #tabHint { transition: opacity .4s; }
#introCard { position: absolute; left: 6vw; bottom: 15vh; max-width: 70vw; z-index: 6; pointer-events: none; opacity: 0; }
#introCard.on { animation: icIn 2.7s ease-out forwards; }
@keyframes icIn { 0% { opacity: 0; transform: translateX(-60px) skewX(-8deg); } 8% { opacity: 1; transform: translateX(0) skewX(-8deg); } 85% { opacity: 1; transform: translateX(10px) skewX(-8deg); } 100% { opacity: 0; transform: translateX(40px) skewX(-8deg); } }
.ic-style { display: inline-block; background: var(--pc); color: #fff; padding: 3px 14px; font-size: clamp(14px, 1.8vw, 22px); border: 3px solid #000; box-shadow: 3px 3px 0 #000; }
.ic-name { font-size: clamp(60px, 11vw, 170px); line-height: .95; color: #fff; -webkit-text-stroke: 3px #000; text-shadow: 6px 6px 0 var(--pc), 10px 10px 0 #000; letter-spacing: 2px; }
.ic-player { font-family: Arial; font-weight: bold; font-size: clamp(13px, 1.4vw, 18px); color: var(--pc); background: rgba(0,0,0,.75); display: inline-block; padding: 2px 10px; margin-top: 6px; }
.ic-line { margin-top: 8px; font-size: clamp(18px, 2.4vw, 34px); color: #ffe14a; -webkit-text-stroke: 1px #000; text-shadow: 3px 3px 0 #000; max-width: 60vw; animation: icLine .5s .35s both; }
@keyframes icLine { from { opacity: 0; transform: translateY(12px); } }

#keysOverlay { width: min(900px, 96vw); max-height: 92vh; overflow: auto; }
#keysOverlay.paused { pointer-events: auto; }
#keysOverlay h1.pz { margin: 0 0 10px; color: #ff3c3c; font-size: 46px; -webkit-text-stroke: 2px #000; text-shadow: 3px 3px 0 #000; }
#keysOverlay h1.pz small { display: block; font-family: Arial; font-size: 14px; color: #fff; -webkit-text-stroke: 0; text-shadow: none; }
#keysOverlay h3 { margin: 0 0 6px; color: #f0c419; }
.kcols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .kcols { grid-template-columns: 1fr; } }

/* bigger, clearer health */
.pcard { width: 300px; }
.pface { width: 62px; height: 62px; }
.pn { font-size: 15px; }
.bar.hp { height: 22px; border: 2px solid #000; background: #2a0000; margin-top: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.bar.hp .lag { background: #fff3a0; } .bar.hp .fill { transition: background .3s; }
.hpn { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 14px; color: #fff; -webkit-text-stroke: 1px #000; text-shadow: 1px 1px 0 #000; letter-spacing: 1px; }
.bar.meter { height: 8px; }
.pcard.low { animation: lowhp .5s infinite alternate; }
@keyframes lowhp { to { box-shadow: 0 0 18px 4px #ff2020, 3px 3px 0 #000; } }
#ohBars { position: absolute; inset: 0; pointer-events: none; }
.ohb { position: absolute; left: 0; top: 0; width: 100px; display: none; will-change: transform; }
.ohn { position: absolute; left: -2px; top: -15px; background: var(--pc); border: 2px solid #000; font-size: 11px; padding: 0 4px; line-height: 13px; }
.ohbar { position: relative; height: 12px; background: #2a0000; border: 2px solid #000; outline: 2px solid var(--pc); overflow: hidden; }
.ohbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; }
.ohbar .lag { background: #fff3a0; }
.ohb.low .ohbar { animation: lowbar .35s infinite alternate; }
@keyframes lowbar { to { outline-color: #ff2020; box-shadow: 0 0 10px #ff2020; } }
.ohb.down .ohbar { opacity: .5; }
#game.cine #ohBars { opacity: 0; }

#mapVote { display: flex; gap: 10px; margin-top: 14px; align-items: stretch; flex-wrap: wrap; justify-content: center; }
#mapVote h3 { width: 100%; text-align: center; margin: 0; color: #f0c419; -webkit-text-stroke: 1px #000; }
.mapcard { display: flex; flex-direction: column; gap: 3px; width: 230px; text-align: left; background: #2a241e; color: #fff; border: 3px solid #555; padding: 8px 10px; }
.mapcard b { font-size: 16px; } .mapcard small { font-family: Arial; font-size: 11px; opacity: .8; } .mapcard i { font-style: normal; color: #f0c419; font-size: 14px; }
.mapcard.sel { border-color: #f0c419; box-shadow: 0 0 0 3px #f0c419, 3px 3px 0 #000; }
.mapcard.map-warehouse { background: linear-gradient(135deg, #3a2a22, #1d1b22); }
.mapcard.map-braga { background: linear-gradient(135deg, #4f7d36, #9fb3c4); }
.mapcard:hover { filter: brightness(1.2); }


/* rooms */
.roomActions { margin-top: 10px; align-items: center; }
.priv { font-family: Arial; font-weight: bold; font-size: 13px; display: flex; gap: 4px; align-items: center; }
#codeIn { width: 130px; text-transform: uppercase; letter-spacing: 3px; }
#roomList { margin-top: 14px; width: min(560px, 94vw); max-height: 30vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
#roomList h3 { margin: 0; color: #f0c419; text-align: center; -webkit-text-stroke: 1px #000; }
.roomrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; background: rgba(30,25,20,.92); color: #fff; }
.roomrow span { font-family: Arial; font-size: 12px; opacity: .85; grid-column: 1; } .roomrow i { font-style: normal; color: #f0c419; grid-row: 1 / span 2; grid-column: 2; align-self: center; letter-spacing: 2px; }
.roomrow:disabled { opacity: .45; }
#roomBar { display: flex; gap: 10px; align-items: center; background: rgba(0,0,0,.6); padding: 6px 12px; margin-bottom: 8px; font-family: Arial; font-weight: bold; }
#roomBar b { color: #f0c419; letter-spacing: 2px; font-size: 18px; }
.logo span { font-size: clamp(48px, 10vw, 120px); }

.mapcard img, .mapcard .thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 2px solid #000; display: block; margin-bottom: 4px; }
.mapcard .thumb.ph { background: repeating-linear-gradient(45deg, #333 0 12px, #444 12px 24px); display: flex; align-items: center; justify-content: center; font-size: 48px; color: #f0c419; }

/* health cards in the four corners */
#hudTop { position: absolute; inset: 0; display: block; pointer-events: none; }
.pcard { position: absolute; width: min(460px, 44vw); }
.pcard.s0 { top: 10px; left: 10px; }
.pcard.s1 { top: 10px; right: 10px; flex-direction: row-reverse; text-align: right; }
.pcard.s2 { bottom: 10px; left: 10px; }
.pcard.s3 { bottom: 10px; right: 10px; flex-direction: row-reverse; text-align: right; }
.pcard.s1 .pmeta, .pcard.s3 .pmeta { justify-content: flex-end; }
.pcard.s1 .pstatus, .pcard.s3 .pstatus { right: auto; left: 6px; }
.pcard .pface { width: 72px; height: 72px; }
.pcard .pn { font-size: 17px; }
.bar.hp { height: 28px; }
.hpn { font-size: 16px; }
#feed { right: auto; left: 50%; transform: translateX(-50%); top: 10px; text-align: center; }
#tabHint { left: 50%; transform: translateX(-50%); bottom: auto; top: 0; }
#prompt { bottom: 100px; }
@media (max-width: 700px) { .pcard { width: 48vw; } .pcard .pface { width: 44px; height: 44px; } }

.quick { background: #f0c419 !important; color: #111 !important; font-size: 26px; padding: 12px 34px; }
#loadState { min-height: 18px; margin: 4px 0; }

/* chat */
#chat { position: fixed; left: 12px; bottom: 120px; width: min(420px, 70vw); z-index: 25; pointer-events: none; font-family: Arial; font-weight: bold; font-size: 14px; }
#chatLog { display: flex; flex-direction: column; gap: 3px; }
.cline { background: rgba(0,0,0,.6); padding: 3px 8px; border-left: 3px solid #f0c419; transition: opacity 1.5s; word-break: break-word; }
.cline.old { opacity: 0; }
#chat.typing .cline.old { opacity: .85; }
#chatIn { display: none; width: 100%; margin-top: 4px; pointer-events: auto; font-family: Arial; font-size: 15px; }
#chat.typing #chatIn { display: block; }
.bubble.chat { background: #e8f4ff; font-family: Arial; font-weight: bold; font-size: 14px; max-width: 260px; white-space: normal; }

.skinrow { display: flex; gap: 4px; }
.skin { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px; background: #2a241e; color: #fff; box-shadow: none; font-size: 10px; border-width: 2px; }
.skin i { width: 100%; aspect-ratio: 1; background-size: cover; background-position: center top; display: block; }
.skin.sel { border-color: #f0c419; outline: 2px solid var(--pc); }

#bossBar { position: absolute; top: 52px; left: 50%; transform: translateX(-50%); width: min(520px, 60vw); display: none; pointer-events: none; text-align: center; z-index: 4; }
#bossBar span { font-size: 18px; color: #ffb3d1; -webkit-text-stroke: 1px #000; text-shadow: 2px 2px 0 #000; }
#bossBar div { height: 16px; border: 3px solid #000; background: #300; margin-top: 2px; box-shadow: 3px 3px 0 #000; }
#bossBar i { display: block; height: 100%; width: 100%; background: linear-gradient(#ff8cc6, #d4146a); transition: width .2s; }

.pmenu { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pmenu button { pointer-events: auto; }

#fps { position: fixed; right: 8px; top: 50%; background: rgba(0,0,0,.6); color: #7cff3c; font: bold 12px Arial; padding: 2px 6px; z-index: 40; display: none; pointer-events: none; }

/* live 3D previews show through the card */
.portrait.live { background: none !important; box-shadow: inset 0 0 0 2px #000; }
.slot:has(.portrait.live) { background: linear-gradient(to bottom, rgba(30,25,20,.0) 0, rgba(30,25,20,.0) 186px, rgba(30,25,20,.94) 186px); }
#title.on { background: radial-gradient(ellipse at center, rgba(0,0,0,0) 30%, rgba(0,0,0,.75)); }

#replayTag { position: absolute; top: calc(11vh + 14px); left: 24px; z-index: 7; display: none; color: #fff; background: #d11; padding: 4px 14px; font-size: 26px; border: 3px solid #000; letter-spacing: 3px; animation: pulse .6s infinite alternate; }
#replayTag.on { display: block; }

body.preview .screen, body.preview #toasts, body.preview #chat, body.preview #fps, body.preview #settings { display: none !important; }

/* HUD card: character name big, player tag small */
.pcard .pch { font-size: 24px; line-height: 1; color: #fff; -webkit-text-stroke: 1px #000; text-shadow: 2px 2px 0 #000; letter-spacing: 1px; white-space: nowrap; }
.pcard .pn { font-size: 12px !important; color: var(--pc); opacity: .95; }

/* lobby fits one screen: sizes follow the viewport height, nothing scrolls or crops */
#lobby.on { justify-content: flex-start; padding: 1.2vh 1vw; gap: .8vh; overflow: hidden; box-sizing: border-box; }
#lobby h1 { font-size: clamp(22px, 4.6vh, 48px); margin: 0; line-height: 1.1; }
#roomBar { margin: 0; padding: .5vh 12px; }
#hostTag { margin: 0; font-size: clamp(10px, 1.5vh, 14px); }
#hostTag:empty { display: none; }
#slots { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); margin-top: 1.4vh; }
.slot { min-height: 0; gap: .6vh; padding: .8vh 8px; }
.portrait { height: auto; flex: 1 1 0; min-height: 60px; }
.slot:has(.portrait.live) { background: rgba(30,25,20,.94); }
.cname { font-size: clamp(14px, 2.6vh, 24px); line-height: 1; }
.cstyle, .pname { font-size: clamp(9px, 1.4vh, 14px); }
.ready { font-size: clamp(12px, 2vh, 18px); }
.slot .skin i { aspect-ratio: auto; height: 7vh; }
.slot button.big, .readybtn { padding-top: .8vh; padding-bottom: .8vh; font-size: clamp(12px, 2vh, 20px); }
.hostctl { margin-top: 1vh; gap: .6vh; }
#mapVote { flex: 0 0 auto; margin-top: 0; gap: 10px; flex-wrap: nowrap; }
#mapVote h3 { width: auto; writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; font-size: clamp(10px, 1.8vh, 16px); }
.mapcard { width: clamp(140px, 19vw, 230px); padding: .6vh 8px; gap: 2px; }
.mapcard img, .mapcard .thumb { aspect-ratio: auto; height: 11vh; margin-bottom: 2px; }
.mapcard .thumb.ph { font-size: 5vh; }
.mapcard b { font-size: clamp(11px, 1.8vh, 16px); }
.mapcard small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mapcard i { font-size: clamp(10px, 1.6vh, 14px); }
.lobbybar { margin-top: 0; flex: 0 0 auto; }
.lobbybar button.big { padding-top: .8vh; padding-bottom: .8vh; }
@media (max-height: 640px) { .mapcard small, .cstyle { display: none; } }
/* circular progress over a fighter while ordering/eating */
.ohring { display: none; position: absolute; left: 50%; bottom: calc(100% + 6px); width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; align-items: center; justify-content: center;
  background: conic-gradient(#7cff3c calc(var(--p, 0) * 1%), rgba(0,0,0,.55) 0); box-shadow: 0 0 0 2px #000, 2px 2px 0 2px #000; }
.ohring span { width: 30px; height: 30px; border-radius: 50%; background: #1b1b1b; display: flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; }
/* next-fighter teaser poll */
#nextVote { margin-top: 10px; width: min(420px, 92vw); display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; background: rgba(0,0,0,.55); padding: 8px 10px; border: 2px solid #000; box-shadow: 3px 3px 0 #000; }
#nextVote h3 { width: 100%; margin: 0; text-align: center; color: #f0c419; -webkit-text-stroke: 1px #000; font-size: 18px; }
#nextVote small { width: 100%; text-align: center; font-family: Arial; font-size: 11px; opacity: .7; }
.nv-row { position: relative; width: 100%; height: 22px; background: #222; border: 2px solid #000; font-family: Arial; font-weight: bold; font-size: 12px; color: #fff; display: flex; align-items: center; }
.nv-row i { position: absolute; left: 0; top: 0; bottom: 0; background: #7a6418; }
.nv-row.mine i { background: #d8a81c; }
.nv-row span, .nv-row b { position: relative; padding: 0 8px; } .nv-row b { margin-left: auto; }
/* title side panels: rooms on the left, next-fighter poll in the bottom-right corner */
#title #roomList { position: fixed; left: 16px; top: 50%; transform: translateY(-50%); width: min(280px, 30vw); max-height: 60vh; margin: 0; background: rgba(0,0,0,.6); border: 2px solid #000; box-shadow: 3px 3px 0 #000; padding: 8px; box-sizing: border-box; }
#title #roomList .hint { text-align: center; font-size: 12px; margin: 4px 0; }
#title #nextVote { position: fixed; right: 16px; bottom: 16px; width: 220px; margin: 0; }
#title #nextVote .nv-btn { flex: 1 1 100%; }
@media (max-width: 760px) { #title #roomList { position: static; transform: none; width: min(420px, 92vw); max-height: 24vh; margin-top: 8px; } #title #nextVote { width: 170px; right: 8px; bottom: 8px; } }
#nextVote .nv-btn { font-size: 18px; text-transform: uppercase; padding: 6px 10px; }
#nextVote .nv-row { height: 30px; font-size: 16px; text-transform: uppercase; }
#nextVote .nv-ok { min-height: 14px; color: #7cff3c; font-weight: bold; opacity: 1; }
.nv-pop { animation: nvpop .25s ease-out; } @keyframes nvpop { 50% { transform: scale(1.08); background: #7cff3c; } }

/* bug button + support form */
#bugBtn { position: fixed; right: 12px; top: 12px; z-index: 60; width: 44px; height: 44px; padding: 0; font-size: 22px; line-height: 1; }
body.preview #bugBtn { display: none; }
#supportModal { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.7); }
#supportModal.on { display: flex; }
.sm-box { width: min(520px, 94vw); max-height: 90vh; overflow: auto; background: #1e1a16; border: 3px solid #000; box-shadow: 6px 6px 0 #000; padding: 14px 16px; color: #fff; }
.sm-box h2 { margin: 0 0 8px; color: #f0c419; -webkit-text-stroke: 1px #000; }
.sm-box label { display: flex; flex-direction: column; gap: 3px; margin: 8px 0; font: bold 13px Arial; }
.sm-box input, .sm-box select, .sm-box textarea { font: 14px Arial; padding: 6px; background: #fff; color: #111; border: 2px solid #000; }
.sm-box .sm-shot { flex-direction: row; flex-wrap: wrap; align-items: center; } .sm-shot img { max-width: 100%; max-height: 120px; margin-top: 4px; border: 2px solid #000; }
.sm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.sm-status { font: bold 13px Arial; min-height: 16px; } .sm-status.err { color: #ff6b6b; } .sm-status.ok { color: #7cff3c; }
/* live 3D preview shows through the top of the card; skins are plain options */
.slot:has(.portrait.live) { background: linear-gradient(to bottom, transparent 0, transparent var(--ph, 40%), rgba(30,25,20,.94) var(--ph, 40%)); }
.skinrow { flex-wrap: wrap; }
.slot .skin { flex: 1 1 auto; padding: .7vh 6px; font-size: clamp(10px, 1.5vh, 13px); }
