:root { --ink: #1a30c0; --red: #d02030; --paper: #f6f3e6; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--paper); font-family: 'Patrick Hand', 'Caveat', 'Comic Sans MS', 'Marker Felt', 'Segoe Print', cursive; }
canvas#c { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
#hud { position: fixed; inset: 0; pointer-events: none; color: var(--ink); user-select: none; overflow: hidden; }
.hud-tl, .hud-tr, .hud-bl, .hud-br, .crosshair, .grapple-ret, .hitmarker, .dmg-ind, .message, .killfeed { mix-blend-mode: multiply; }
#hud.nogame .minimap, #hud.nogame .hud-tl, #hud.nogame .hud-tr, #hud.nogame .hud-bl, #hud.nogame .hud-br, #hud.nogame .crosshair, #hud.nogame .grapple-ret, #hud.nogame .killfeed { display: none; }
/* minimapa: arriba a la izquierda, gira con la vista; el puntaje va debajo */
#hud { --mm: clamp(120px, 21vh, 210px); }
.minimap { position: absolute; left: 1.5%; top: 2%; width: var(--mm); height: var(--mm); transform: rotate(-1.5deg); pointer-events: none; }
.hud-tl { position: absolute; left: 2%; top: calc(2% + var(--mm) + 6px); font-size: 30px; transform: rotate(-1.5deg); }
.hud-tr { position: absolute; right: 4%; top: 3%; text-align: right; font-size: 30px; transform: rotate(1deg); }
.hud-bl { position: absolute; left: 9%; bottom: 5%; }
.hud-br { position: absolute; right: 4%; bottom: 5%; text-align: right; }
.ammo b { font-size: 58px; } .ammo span { font-size: 28px; opacity: .8; } .reloading { font-size: 22px !important; color: var(--red); }
.tally { display: flex; flex-wrap: wrap; width: 240px; gap: 3px; margin-top: -8px; align-items: flex-end; }
.tally i { display: block; width: 4px; height: 20px; background: var(--ink); transform: rotate(4deg); border-radius: 2px; opacity: .9; }
.tally i:nth-child(5n) { width: 4px; margin-right: 10px; transform: rotate(-8deg); }
.health { margin-bottom: 8px; font-size: 26px; display: flex; align-items: center; gap: 10px; }
.bar { width: 210px; height: 16px; border: 2.5px solid var(--ink); border-radius: 6px 8px 5px 7px / 8px 5px 7px 6px; overflow: hidden; transform: rotate(-1deg); }
.fill { height: 100%; width: 100%; background: repeating-linear-gradient(-55deg, var(--ink) 0 2.5px, transparent 2.5px 6px); transition: width .15s; }
.low .bar { border-color: var(--red); } .low .fill { background: repeating-linear-gradient(-55deg, var(--red) 0 2.5px, transparent 2.5px 6px); }
.crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; --s: 10px; filter: drop-shadow(0 0 1px rgba(255,255,255,.9)); }
.crosshair i { position: absolute; background: var(--red); border-radius: 2px; transition: top .06s, left .06s; }
.ch-t { width: 3px; height: 12px; left: -1.5px; top: calc(-1 * var(--s) - 12px); }
.ch-b { width: 3px; height: 12px; left: -1.5px; top: var(--s); }
.ch-l { width: 12px; height: 3px; top: -1.5px; left: calc(-1 * var(--s) - 12px); }
.ch-r { width: 12px; height: 3px; top: -1.5px; left: var(--s); }
.ch-dot { width: 3px; height: 3px; left: -1.5px; top: -1.5px; border-radius: 50%; }
.crosshair.katana i { background: var(--ink); } .crosshair.katana .ch-t, .crosshair.katana .ch-b { height: 16px; }
.crosshair.katana .ch-l, .crosshair.katana .ch-r { display: none; }
.grapple-ret { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border: 2.5px dashed var(--ink); border-radius: 50%; opacity: 0; transition: opacity .1s, transform .12s; transform: scale(1.6) rotate(0deg); }
.grapple-ret.on { opacity: .9; transform: scale(1) rotate(20deg); } .grapple-ret.attached { border-style: solid; transform: scale(.65); }
.hitmarker { position: absolute; left: 50%; top: 50%; opacity: 0; }
.hitmarker i { position: absolute; width: 3.5px; height: 36px; background: #e8801a; left: -1.75px; top: -18px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(250,248,238,.85); }
.hitmarker i:first-child { transform: rotate(45deg); } .hitmarker i:last-child { transform: rotate(-45deg); }
.hitmarker.show { animation: hm .24s ease-out; }
.hitmarker.crit i { background: var(--red); width: 4.5px; height: 44px; top: -22px; left: -2.25px; }
.hitmarker.kill i { background: var(--red); width: 5px; height: 50px; top: -25px; left: -2.5px; }
.hitmarker.armor i { background: #2fa8d8; }
.hitmarker.broke i { background: #2fa8d8; width: 5px; height: 56px; top: -28px; left: -2.5px; }
.hitmarker.broke.show { animation: hmb .4s ease-out; }
@keyframes hmb { 0% { opacity: 1; transform: scale(1.9) rotate(12deg); } 100% { opacity: 0; transform: scale(1); } }
@keyframes hm { 0% { opacity: 1; transform: scale(1.5); } 100% { opacity: 0; transform: scale(1); } }
.message { position: absolute; left: 0; right: 0; top: 24%; text-align: center; }
.msg-main { font-size: 88px; color: var(--ink); transform: rotate(-2deg); opacity: 0; letter-spacing: 3px; line-height: 1; }
.msg-main.show { animation: scribble .55s ease-out forwards; }
@keyframes scribble { 0% { opacity: 0; transform: rotate(-7deg) scale(1.7); filter: blur(3px); } 55% { opacity: 1; transform: rotate(-1deg) scale(.95); filter: blur(0); } 100% { opacity: 1; transform: rotate(-2deg) scale(1); } }
.msg-sub { font-size: 32px; opacity: .85; }
.killfeed { position: absolute; right: 4%; top: 28%; text-align: right; font-size: 27px; }
.killfeed div { animation: kf 1.7s ease-out forwards; } .killfeed .pts { color: var(--red); }
@keyframes kf { 0% { opacity: 0; transform: translateX(30px) rotate(3deg); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
.dmg-ind { position: absolute; left: 50%; top: 50%; }
.dmg-ind i { position: absolute; left: -16px; top: -140px; width: 32px; height: 22px; transform-origin: 16px 140px; background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .9; animation: di 1s linear forwards; }
@keyframes di { to { opacity: 0; } }
.screen { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; pointer-events: auto; cursor: pointer; background: rgba(246, 243, 230, .55); }
.screen.show { display: flex; }
.panel { text-align: center; max-width: 980px; padding: 26px 48px; background: rgba(250, 248, 238, .93); box-shadow: 6px 6px 0 rgba(26, 48, 192, .15); border: 3px solid var(--ink); border-radius: 12px 18px 10px 16px / 16px 10px 18px 12px; transform: rotate(-.6deg); }
.panel h1 { font-size: 92px; margin: 0; letter-spacing: 3px; line-height: 1; }
.panel h2 { font-size: 36px; margin: 4px 0 14px; font-weight: normal; }
.panel .cols { display: flex; gap: 46px; justify-content: center; text-align: left; font-size: 22px; line-height: 1.35; }
.panel .cols b { color: var(--red); } .colhead { font-size: 26px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.panel .go { font-size: 34px; margin-top: 18px; animation: blink 1.2s infinite; } @keyframes blink { 50% { opacity: .35; } }
.panel .stats { font-size: 30px; line-height: 1.4; } .panel .stats b { color: var(--red); }
.panel .tip { font-size: 21px; opacity: .8; margin-top: 8px; }
.weapon { font-size: 36px; } .hint { font-size: 20px; opacity: .8; }
.combo { font-size: 26px; color: var(--red); min-height: 30px; }
.timer { font-size: 24px; color: var(--red); }
@media (max-width: 900px) { .panel h1 { font-size: 56px; } .panel .cols { flex-direction: column; gap: 10px; font-size: 18px; } .msg-main { font-size: 56px; } }
/* v2 additions */
.crosshair.ads { opacity: 0; }
.slots { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-bottom: 6px; font-size: 20px; opacity: .85; }
.slot { display: flex; gap: 8px; align-items: baseline; opacity: .55; transform: rotate(1deg); }
.slot.active { opacity: 1; font-size: 24px; border-bottom: 2px solid var(--ink); }
.slot.empty { color: var(--red); }
.slot .num { font-size: 15px; opacity: .8; border: 1.5px solid var(--ink); border-radius: 4px 6px 4px 5px; padding: 0 4px; }
.slot .sammo { font-size: 16px; opacity: .8; min-width: 54px; text-align: right; }
.modifier { font-size: 22px; color: var(--red); min-height: 26px; }
.bossbar { position: absolute; left: 50%; top: 6%; width: 420px; margin-left: -210px; text-align: center; font-size: 26px; display: none; }
.bossbar.show { display: block; mix-blend-mode: multiply; }
.bar.big { width: 420px; height: 20px; margin-top: 4px; }
.fill.red { background: repeating-linear-gradient(-55deg, var(--red) 0 3px, transparent 3px 7px); }
.tip { position: absolute; left: 0; right: 0; bottom: 17%; text-align: center; font-size: 26px; color: var(--ink); opacity: 0; transition: opacity .4s; mix-blend-mode: multiply; }
.tip.show { opacity: .9; }
.tip b { color: var(--red); }
#hud.nogame .tip, #hud.nogame .bossbar { display: none; }
.settings { display: flex; flex-direction: column; gap: 4px; align-items: center; font-size: 21px; margin-top: 12px; border-top: 2px solid var(--ink); padding-top: 10px; }
.settings label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.settings input[type=range] { width: 220px; accent-color: #1a30c0; }
.settings input[type=checkbox] { width: 17px; height: 17px; accent-color: #1a30c0; }
.settings b { color: var(--red); min-width: 56px; text-align: left; }
.settings .k { opacity: .6; font-size: 17px; }
.beststat { font-size: 22px; opacity: .8; margin-top: 4px; }
/* sniper scope */
.scope { position: absolute; inset: 0; opacity: 0; transition: opacity .1s; pointer-events: none; }
.scope.on { opacity: 1; }
.scope .mask { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(246,243,230,0) 0 30vh, var(--paper) 30.6vh 100%); }
.scope .ring { position: absolute; left: 50%; top: 50%; width: 60.5vh; height: 60.5vh; margin: -30.25vh; border: 3.5px solid var(--ink); border-radius: 50%; box-shadow: inset 0 0 0 7px rgba(26,48,192,.12); }
.scope .cx { position: absolute; left: 50%; top: 50%; width: 60vh; height: 2.5px; margin: -1px -30vh; background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 17px); }
.scope .cy { position: absolute; left: 50%; top: 50%; width: 2.5px; height: 60vh; margin: -30vh -1px; background: repeating-linear-gradient(180deg, var(--ink) 0 14px, transparent 14px 17px); }
.scope .dot { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; background: var(--red); border-radius: 50%; }
/* focus-slash target marker */
.focus-mark { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity .1s; }
.focus-mark.on { opacity: 1; animation: fm .5s ease-in-out infinite alternate; }
.focus-mark i { position: absolute; width: 20px; height: 20px; border: 3px solid var(--red); }
.focus-mark i:nth-child(1) { left: -30px; top: -30px; border-right: 0; border-bottom: 0; }
.focus-mark i:nth-child(2) { left: 10px; top: -30px; border-left: 0; border-bottom: 0; }
.focus-mark i:nth-child(3) { left: -30px; top: 10px; border-right: 0; border-top: 0; }
.focus-mark i:nth-child(4) { left: 10px; top: 10px; border-left: 0; border-top: 0; }
@keyframes fm { from { transform: scale(1); } to { transform: scale(1.18); } }
#hud.nogame .scope, #hud.nogame .focus-mark { display: none; }
/* katana focus gauge */
.focus-meter { position: absolute; left: 4.5%; top: 50%; transform: translateY(-50%) rotate(-1.5deg); opacity: 0; transition: opacity .25s; text-align: center; mix-blend-mode: multiply; }
.focus-meter.on { opacity: 1; }
.fm-label { font-size: 17px; letter-spacing: 2px; color: var(--ink); opacity: .8; margin-bottom: 4px; }
.fm-tube { position: relative; width: 26px; height: 168px; border: 3px solid var(--ink); border-radius: 8px 11px 7px 10px / 11px 7px 10px 8px; overflow: hidden; }
.fm-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0%; background: repeating-linear-gradient(-52deg, var(--ink) 0 3px, transparent 3px 7px); transition: height .18s; }
.fm-tube i { position: absolute; left: 50%; bottom: 100%; width: 16px; height: 22px; margin-left: -8px; background: var(--red); opacity: 0; clip-path: polygon(50% 0, 78% 42%, 66% 38%, 82% 78%, 50% 100%, 18% 78%, 34% 38%, 22% 42%); }
.focus-meter.ready .fm-tube { border-color: var(--red); box-shadow: 0 0 0 3px rgba(208,32,48,.18); }
.focus-meter.ready .fm-fill { background: repeating-linear-gradient(-52deg, var(--red) 0 3px, transparent 3px 7px); }
.focus-meter.ready .fm-tube i { opacity: 1; animation: flame .42s ease-in-out infinite alternate; }
.focus-meter.ready .fm-f2 { margin-left: -18px; height: 16px; animation-delay: .14s; }
.focus-meter.ready .fm-f3 { margin-left: 3px; height: 18px; animation-delay: .27s; }
@keyframes flame { from { transform: translateY(4px) scaleY(.78) rotate(-5deg); } to { transform: translateY(-3px) scaleY(1.15) rotate(6deg); } }
.fm-ready { font-size: 15px; color: var(--red); letter-spacing: 1px; margin-top: 5px; opacity: 0; }
.focus-meter.ready .fm-ready { opacity: 1; animation: blink 1s infinite; }
#hud.nogame .focus-meter { display: none; }
/* map picker */
.mapsel { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 2px solid var(--ink); flex-wrap: wrap; }
.mapsel > span { font-size: 20px; opacity: .75; }
.mapbtn { font: inherit; font-size: 20px; color: var(--ink); background: transparent; border: 2.5px solid var(--ink); border-radius: 7px 10px 6px 9px / 10px 6px 9px 7px; padding: 4px 12px; cursor: pointer; opacity: .55; display: flex; flex-direction: column; align-items: center; line-height: 1.1; transform: rotate(-.6deg); }
.mapbtn i { font-style: normal; font-size: 14px; opacity: .75; }
.mapbtn:hover { opacity: .85; }
.mapbtn.on { opacity: 1; color: var(--paper); background: var(--ink); }

/* grenades */
.health .armor { display: inline-flex; gap: 8px; font-size: 20px; }
.health .armor i { font-style: normal; padding-left: 20px; position: relative; }
.health .armor i::before { content: ''; position: absolute; left: 0; top: 3px; width: 13px; height: 16px; border: 2.5px solid var(--ink); }
.health .armor i.kev::before { border-radius: 3px 3px 8px 8px; }
.health .armor i.cas::before { height: 11px; top: 7px; border-radius: 9px 9px 2px 2px; }
.buymenu .row.undo span { color: var(--red); }
.nades { display: inline-flex; gap: 3px; margin-left: 12px; vertical-align: middle; }
.nades i { width: 13px; height: 15px; border: 2.5px solid var(--ink); border-radius: 50% 50% 45% 45%; display: inline-block; position: relative; top: -2px; }
.nades i::after { content: ''; position: absolute; left: 3px; top: -6px; width: 3px; height: 5px; background: var(--red); }
.nades i.flash, .nades i.smoke { width: 9px; height: 17px; border-radius: 3px; }
.nades i.flash { background: linear-gradient(transparent 40%, var(--red) 40% 60%, transparent 60%); }
.nades i.smoke { background: repeating-linear-gradient(-50deg, rgba(46, 51, 66, .7) 0 2px, transparent 2px 4px); }
.nades i.flash::after, .nades i.smoke::after { left: 1px; background: #e8801a; }
.nades i.sel { top: -8px; }
.nades .sep { width: 6px; }
.nades i.kunai { width: 5px; height: 17px; border-width: 2px; border-radius: 50% 50% 1px 1px; }
.nades i.kunai::after { left: -1px; top: auto; bottom: -7px; width: 3px; height: 3px; border: 2px solid var(--ink); border-radius: 50%; background: none; }
/* kunai: a vertical aiming line with ticks where it lands at 15, 30 and 45 u */
.kmark { position: absolute; left: 50%; top: 50%; display: none; filter: drop-shadow(0 0 1px rgba(255,255,255,.9)); }
.kmark.on { display: block; }
.kmark b { position: absolute; left: -1px; top: -14px; width: 2px; height: 74px; background: var(--red); border-radius: 1px; }
.kmark i { position: absolute; left: -7px; width: 14px; height: 2px; background: var(--red); border-radius: 1px; margin-top: -1px; }
/* lobby + modes */
.modes { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 10px 0 4px; }
.modebtn { font: inherit; font-size: 21px; color: var(--ink); background: transparent; border: 2.5px solid var(--ink); border-radius: 7px 10px 6px 9px / 10px 6px 9px 7px; padding: 6px 14px; cursor: pointer; opacity: .6; display: flex; flex-direction: column; align-items: center; line-height: 1.1; transform: rotate(-.5deg); min-width: 130px; }
.modebtn i { font-style: normal; font-size: 14px; opacity: .8; }
.modebtn:hover { opacity: .9; } .modebtn.on { opacity: 1; color: var(--paper); background: var(--ink); }
.lobby { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 8px; }
.lobby .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.lobby input[type=text] { font: inherit; font-size: 24px; width: 130px; text-align: center; letter-spacing: 4px; text-transform: uppercase; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 6px 9px 6px 8px; background: transparent; padding: 3px 6px; }
.lobby button, .bigbtn { font: inherit; font-size: 21px; color: var(--paper); background: var(--ink); border: 2.5px solid var(--ink); border-radius: 7px 10px 6px 9px / 10px 6px 9px 7px; padding: 5px 16px; cursor: pointer; transform: rotate(-.6deg); }
.lobby button.alt { color: var(--ink); background: transparent; }
.lobby button:disabled { opacity: .4; cursor: default; }
.code { font-size: 44px; letter-spacing: 8px; color: var(--red); border: 3px dashed var(--red); padding: 2px 18px; border-radius: 10px; }
.plist { display: flex; flex-direction: column; gap: 3px; min-width: 300px; font-size: 22px; }
.plist div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1.5px solid rgba(26,48,192,.25); padding: 2px 8px; }
.plist .t0 { color: var(--ink); } .plist .t1 { color: var(--red); } .plist .host::after { content: ' (host)'; opacity: .6; font-size: 16px; }
.status { font-size: 19px; color: var(--red); min-height: 24px; }
.scoreboard { display: flex; flex-direction: column; gap: 4px; font-size: 24px; min-width: 360px; }
.scoreboard div { display: flex; justify-content: space-between; gap: 20px; padding: 2px 10px; border-bottom: 1.5px solid rgba(26,48,192,.25); }
.scoreboard .me { background: rgba(26,48,192,.08); }
.hud-tr .teamscore { font-size: 26px; } .hud-tr .teamscore b { color: var(--red); }
.checkpoints { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; font-size: 19px; }
.checkpoints button { font: inherit; font-size: 19px; color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 6px 8px 5px 7px; padding: 3px 12px; cursor: pointer; }
.checkpoints button:hover { background: var(--ink); color: var(--paper); }
.namebox { font: inherit; font-size: 20px; width: 150px; color: var(--ink); border: 2px solid var(--ink); border-radius: 6px 8px 5px 7px; background: transparent; padding: 2px 8px; }
#hud.pad .kbonly, #hud:not(.pad) .padonly { display: none; }

/* ---- main menu, online panel, scoreboard overlay ---- */
.mainbtns { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 14px 0 6px; }
.mainbtns button { font: inherit; font-size: 30px; color: var(--paper); background: var(--ink); border: 3px solid var(--ink); border-radius: 9px 13px 8px 12px / 12px 8px 11px 9px; padding: 10px 34px; cursor: pointer; transform: rotate(-.8deg); line-height: 1.05; }
.mainbtns button i { display: block; font-style: normal; font-size: 16px; opacity: .8; letter-spacing: 1px; }
.mainbtns button:nth-child(2) { transform: rotate(.7deg); background: var(--red); border-color: var(--red); }
.mainbtns button:hover { filter: brightness(1.15); }
.mainbtns:has(.start) { flex-direction: column; align-items: center; gap: 12px; }
.mainbtns button.start { min-width: 420px; font-size: 54px; padding: 18px 48px; border-width: 4px; transform: rotate(-1deg); box-shadow: 6px 7px 0 rgba(0, 0, 0, .18); }
.mainbtns button.start i { font-size: 18px; margin-top: 4px; }
.mainbtns button.start:hover { transform: rotate(-1deg) scale(1.03); }
.mainbtns button.start + button { transform: rotate(.7deg); }
.online { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 6px; }
.online .sub { font-size: 19px; opacity: .75; }
.online .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.online .row.split { gap: 26px; }
.online button { font: inherit; font-size: 22px; color: var(--paper); background: var(--ink); border: 2.5px solid var(--ink); border-radius: 7px 10px 6px 9px / 10px 6px 9px 7px; padding: 6px 18px; cursor: pointer; }
.online button.alt { color: var(--ink); background: transparent; }
.online button.big { font-size: 26px; padding: 8px 26px; transform: rotate(-.6deg); }
.online button:disabled { opacity: .4; cursor: default; }
.online button:hover:not(:disabled) { filter: brightness(1.15); }
.online input[type=text] { font: inherit; font-size: 26px; width: 150px; text-align: center; letter-spacing: 5px; text-transform: uppercase; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 6px 9px 6px 8px; background: transparent; padding: 3px 6px; }
.online input.namebox { letter-spacing: 0; text-transform: none; font-size: 22px; width: 180px; }
.online .radio { display: flex; gap: 14px; font-size: 19px; }
.online .radio label { display: flex; gap: 5px; align-items: center; cursor: pointer; }
.online .status { min-height: 26px; font-size: 20px; color: var(--red); }
.online .hint { font-size: 17px; opacity: .7; max-width: 520px; text-align: center; }
.online .code { font-size: 52px; letter-spacing: 10px; }
.online .plist { min-width: 340px; }
.online .plist .host span:first-child::after { content: ' · host'; opacity: .6; font-size: 16px; }
.online .plist .me { background: rgba(26,48,192,.08); }
.board { position: absolute; left: 50%; top: 18%; transform: translateX(-50%) rotate(-.5deg); background: rgba(250,247,238,.94); border: 3px solid var(--ink); border-radius: 12px 16px 10px 14px / 14px 10px 16px 12px; padding: 12px 22px; min-width: 380px; font-size: 24px; color: var(--ink); z-index: 5; }
.board h3 { margin: 0 0 6px; font-size: 30px; text-align: center; letter-spacing: 2px; }
.board div { display: flex; justify-content: space-between; gap: 24px; padding: 2px 8px; border-bottom: 1.5px solid rgba(26,48,192,.25); }
.board div.me { background: rgba(26,48,192,.1); }
.board .foot { font-size: 16px; opacity: .7; justify-content: center; border: 0; margin-top: 6px; }
.feed { color: var(--red); }

/* live mini leaderboard in the corner during online play */
.pvpscore { font-size: 20px; line-height: 1.2; text-align: right; }
.pvpscore .row { display: flex; justify-content: flex-end; gap: 10px; }
.pvpscore .row b { min-width: 28px; text-align: right; }
.pvpscore .row.me { color: var(--red); }
.pvpscore .row .rank { opacity: .6; }
.pvpscore .target { font-size: 15px; opacity: .65; margin-top: 2px; }

/* grapple breath: a sliver under the crosshair, only while it is not full */
.gstam { position: absolute; left: 50%; top: 50%; width: 64px; height: 5px; margin-left: -32px; margin-top: 26px; border: 1.5px solid var(--ink); border-radius: 3px; opacity: .8; mix-blend-mode: multiply; }
.gstam i { display: block; height: 100%; background: var(--ink); }
.gstam.low { border-color: var(--red); } .gstam.low i { background: var(--red); }

/* public lobby list on the online panel */
.lobbylist { display: flex; flex-direction: column; gap: 6px; align-items: center; width: 100%; max-width: 560px; margin-top: 4px; padding-top: 8px; border-top: 1.5px dashed rgba(26,48,192,.35); }
.lobbylist .rows { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.lobbyrow { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 12px; align-items: center; font-size: 19px; padding: 3px 8px; border-bottom: 1.5px solid rgba(26,48,192,.2); }
.lobbyrow .code { font-size: 22px; letter-spacing: 3px; padding: 0 8px; border-width: 2px; }
.lobbyrow button { font-size: 18px; padding: 3px 12px; }
/* money and the buy menu: Codex's design (tools/menu-compra, vault UI/Menu de compra), scoped to .buymenu */
.money { font-size: 34px; margin-bottom: 4px; transform: rotate(-1deg); }
.money .buyhint { font-size: 18px; opacity: .75; }
.buymenu, .buymenu * { box-sizing: border-box; }
.buymenu { --line: rgba(26,48,192,.13); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1180px, 88vw); max-height: 88vh; overflow: hidden; z-index: 6; color: var(--ink); font-family: 'Patrick Hand', cursive;
  border: 2px solid var(--ink); border-radius: 9px 14px 7px 11px / 12px 8px 13px 6px; background: repeating-linear-gradient(transparent 0 30px, var(--line) 30px 31px), rgba(246,243,230,.96); box-shadow: 5px 7px 0 rgba(26,48,192,.1); padding-left: 56px; }
.buymenu::before { content: ''; position: absolute; left: 56px; top: 0; bottom: 0; width: 1px; background: rgba(208,32,48,.4); }
.buymenu::after { content: ''; position: absolute; left: 18px; top: 60px; bottom: 30px; width: 16px; background: radial-gradient(circle at 50% 9px, rgba(26,48,192,.15) 0 7px, rgba(26,48,192,.3) 7px 8px, transparent 9px) 0 0 / 16px 100px repeat-y; }
.buymenu .bm-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 30px 12px 22px; border-bottom: 2px solid var(--ink); }
.buymenu .bm-head h1 { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.05; margin: 0; letter-spacing: 1px; font-weight: 400; }
.buymenu .bm-head h1::after { content: ''; display: block; height: 2px; background: var(--ink); transform: rotate(-.5deg); margin-top: 3px; }
.buymenu .bm-head p { margin: 2px 0 0; font-size: 17px; opacity: .55; letter-spacing: 2px; }
.buymenu .wallet { display: flex; align-items: center; gap: 26px; font: 600 30px Caveat, cursive; }
.buymenu .wallet strong { font-size: 38px; font-weight: 600; position: relative; white-space: nowrap; }
.buymenu .wallet strong::before, .buymenu .wallet strong::after { content: ''; position: absolute; inset: -4px -18px; border: 2px solid var(--red); border-radius: 50%; transform: rotate(-9deg); }
.buymenu .wallet strong::after { inset: -7px -14px; transform: rotate(5deg); }
.buymenu .wallet .late { color: var(--red); }
.buymenu .bm-body { padding: 18px 26px 18px 22px; display: grid; grid-template-columns: 36% 1fr; gap: 26px; }
.buymenu .bm-cats { border-right: 1px solid var(--ink); padding-right: 24px; display: flex; flex-direction: column; }
.buymenu h2 { font-size: 22px; line-height: 1.1; letter-spacing: .5px; font-weight: 400; margin: 0 0 16px; display: table; position: relative; }
.buymenu h2::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background: var(--red); transform: rotate(-1deg); }
.buymenu .row { display: flex; align-items: center; gap: 14px; min-height: 38px; padding: 4px 12px; margin-bottom: 8px; border: 1.5px solid var(--ink); border-radius: 2px 4px 1px 3px; font-size: 19px; position: relative; }
.buymenu .row b { font-size: 21px; font-weight: 400; min-width: 16px; }
.buymenu .row.selected { background: repeating-linear-gradient(-48deg, rgba(26,48,192,.09) 0 1px, transparent 1px 5px); border-width: 2px; }
.buymenu .row.selected::before { content: '➜'; position: absolute; left: -28px; color: var(--red); font-size: 26px; transform: rotate(-12deg); }
.buymenu .row.exit { margin-top: auto; margin-bottom: 0; }
.buymenu .row small { font: 600 16px Caveat, cursive; opacity: .65; display: block; }
.buymenu .row .price { margin-left: auto; white-space: nowrap; }
.buymenu .row.poor { color: var(--red); } .buymenu .row.poor .price { text-decoration: line-through; }
.buymenu .row.soon { opacity: .42; } .buymenu .row.own { border-style: dashed; }
.buymenu .equipment { border: 1.5px solid var(--ink); padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.buymenu .equipment article { border: 1.5px solid var(--ink); padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.buymenu .equipment h3 { font-weight: 400; font-size: 19px; margin: 0; }
.buymenu .equipment p { flex: 1; display: grid; place-items: center; min-height: 78px; border: 1px dashed rgba(26,48,192,.4); margin: 0; font: 600 28px Caveat, cursive; text-align: center; line-height: 1; }
.buymenu .equipment p.empty { opacity: .5; }
.buymenu .equipment span { font-size: 16px; opacity: .7; text-align: right; }
.buymenu .bm-items { margin-bottom: 18px; }
.buymenu footer { border-top: 2px solid var(--ink); padding: 9px 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font: 600 19px Caveat, cursive; }
.buymenu kbd { font: inherit; border: 1px solid var(--ink); border-radius: 3px; padding: 0 5px; }
.buymenu .note { color: var(--red); }
@media (max-height: 860px) { .buymenu .bm-head { padding-top: 10px; padding-bottom: 8px; } .buymenu .bm-head p { display: none; } .buymenu .row { min-height: 30px; margin-bottom: 5px; padding: 2px 10px; font-size: 17px; } .buymenu .row small { font-size: 14px; } .buymenu .equipment p { min-height: 52px; font-size: 23px; } .buymenu .bm-body { padding-top: 10px; padding-bottom: 10px; } .buymenu h2 { font-size: 19px; margin-bottom: 10px; } .buymenu footer { padding: 5px 22px; font-size: 17px; } }
@media (max-width: 900px) { .buymenu { padding-left: 30px; width: 94vw; overflow-y: auto; } .buymenu::before { left: 30px; } .buymenu::after { display: none; } .buymenu .bm-body { grid-template-columns: 1fr; gap: 12px; } .buymenu .bm-cats { border-right: 0; padding-right: 0; } .buymenu .row.selected::before { display: none; } .buymenu .equipment { grid-template-columns: 1fr; } .buymenu .equipment p { min-height: 36px; } .buymenu .bm-head { flex-wrap: wrap; } }
#hud.nogame .buymenu { display: none; }

/* ---- start pages (Codex's "Margen vivo": vault/UI/Pantalla inicial) ----
   Everything is sized from the window height so the page always fits; long columns scroll inside. */
:root { --soon: #e2741a; --ok: #1f8a4c; --rule: rgba(26, 48, 192, .13); --margin: rgba(208, 32, 48, .55); }
.panel { max-height: calc(100vh - 24px); overflow-y: auto; box-sizing: border-box; }
.screen.home { background: none; cursor: default; }
.screen.home .panel { position: absolute; inset: 0; max-width: none; max-height: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; transform: none; text-align: left; overflow: hidden; background: none; }
/* behind the pages the camera keeps drifting over District (player.idleCam), as in the original;
   a paper veil keeps the text readable: light on Inicio, heavier on the pages with more to read */
.home { position: absolute; inset: 0; font-size: clamp(14px, 2.1vh, 22px);
  background: linear-gradient(90deg, transparent calc(4.2vw - 1px), var(--margin) calc(4.2vw - 1px) calc(4.2vw + 1px), transparent calc(4.2vw + 1px)),
    linear-gradient(90deg, rgba(246, 243, 230, .9) 0, rgba(246, 243, 230, .78) 36vw, rgba(246, 243, 230, .15) 62vw, rgba(246, 243, 230, 0) 100%); }
.home.sub { background: linear-gradient(90deg, transparent calc(4.2vw - 1px), var(--margin) calc(4.2vw - 1px) calc(4.2vw + 1px), transparent calc(4.2vw + 1px)), rgba(246, 243, 230, .84); }
.home button { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.home button:focus, .home button.cur { outline: none; }
.home kbd { display: inline-block; font: inherit; font-size: .85em; line-height: 1.1; padding: 1px 6px; margin: 0 1px; border: 2px solid var(--ink); border-radius: 5px 7px 4px 6px; background: rgba(255, 255, 255, .35); }
.home .soon { font-style: normal; color: var(--soon); border: 2px solid var(--soon); border-radius: 7px 10px 6px 9px; padding: 0 .5em; font-size: .8em; white-space: nowrap; transform: rotate(-2deg); display: inline-block; }
.home .ok { font-style: normal; color: var(--ok); }
.logo { display: block; height: clamp(34px, 6.5vh, 70px); width: auto; transform: rotate(-1.5deg); }
.logo.big { height: clamp(90px, 25vh, 270px); max-width: 100%; object-fit: contain; object-position: left center; margin-left: -1vw; }
/* the animated logo (src/logoAnim.js): three stacked layers in the same box as the still logo */
.logo.big.la { position: relative; aspect-ratio: 1400 / 560; width: auto; align-self: flex-start; overflow: visible; }   /* the box must be the image: the pivots are in % of it */
.la .la-w, .la .la-w img { position: absolute; inset: 0; width: 100%; height: 100%; }
.la .la-w img { object-fit: contain; object-position: left center; user-select: none; pointer-events: none; }
.la .la-dos, .la .la-dos img { transform-origin: 84.9% 17.7%; }
.la .la-letras, .la .la-letras img, .la .la-rayitas, .la .la-rayitas img { transform-origin: 50% 50%; }
.la.boil .la-w { filter: url(#laBoil); }
.la-fx { position: absolute; width: 0; height: 0; }
.hm-foot { position: absolute; left: 6vw; right: 2.5vw; bottom: 1.4vh; display: flex; justify-content: space-between; gap: 20px; font-size: clamp(12px, 1.7vh, 18px); opacity: .85; border-top: 2px solid var(--ink); padding-top: .6vh; }

/* Inicio */
.home.main .hm-left { position: absolute; left: 6vw; top: 4vh; bottom: 7vh; width: min(44vw, 640px); display: flex; flex-direction: column; }
.hm-tag { font-size: clamp(16px, 3vh, 32px); margin: .8vh 0 0 2.5vw; transform: rotate(-2deg); border-bottom: 2px solid var(--ink); align-self: flex-start; padding: 0 .4em; }
/* buttons as in the original game: solid ink (or red) pen fills, slightly tilted, with a drop
   shadow; the ones not chosen are just an outline. The highlighted one (.cur) lifts a little. */
.home { --btn-r: 9px 13px 8px 12px / 12px 8px 11px 9px; }
.home .btn, .hm-menu button, .home .tab, .home .mcard, .home .hs-detail .cta, .home .hs-detail .online button, .home .hm-credits, .home .hm-profile, .home .hs-back {
  --tilt: -.6deg; color: var(--ink); background: rgba(246, 243, 230, .55); border: 2.5px solid rgba(26, 48, 192, .45); border-radius: var(--btn-r); transform: rotate(var(--tilt)); transition: transform .1s, filter .1s, background .1s; }
.home .solid, .home .tab.on, .home .mcard.sel, .home .hs-detail .cta, .home .hs-detail .online button { color: var(--paper); background: var(--ink); border-color: var(--ink); box-shadow: 5px 6px 0 rgba(0, 0, 0, .16); }
.home .solid.red { background: var(--red); border-color: var(--red); --tilt: .7deg; }
.home .cur { transform: rotate(var(--tilt)) scale(1.035); filter: brightness(1.15); }
.home .cur:not(.solid):not(.on):not(.sel):not(.cta):not(.online button) { background: rgba(26, 48, 192, .1); border-color: var(--ink); }
.home .hs-detail .online button.alt { color: var(--ink); background: transparent; box-shadow: none; }
.home .hs-detail .online button:disabled { opacity: .4; cursor: default; }
.home .hs-detail .online button { padding: .2em .9em; border-width: 2.5px; }
.home .hs-detail .online button.big { --tilt: -.8deg; }
.hs-detail .online input:focus, .hs-detail .online input.cur { outline: 3px solid rgba(26, 48, 192, .5); outline-offset: 2px; }
/* Inicio: the column of big buttons, START-sized first */
/* five buttons since «Tu doodle»: everything at 80 % (fonts, gaps, margin) so the menu fits short windows */
.hm-menu { display: flex; flex-direction: column; align-items: stretch; gap: 1.3vh; margin-top: 3vh; width: min(32vw, 470px); min-width: 250px; }
.hm-menu button { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: clamp(16px, 3.4vh, 37px); line-height: 1.05; padding: .22em .8em; }
.hm-menu button:nth-child(odd) { --tilt: -.8deg; } .hm-menu button:nth-child(even) { --tilt: .7deg; }
.hm-menu button i { display: block; font-style: normal; font-size: .4em; opacity: .85; letter-spacing: 1px; margin-top: .15em; }
.hm-menu button.big { font-size: clamp(24px, 5.6vh, 61px); border-width: 3.5px; padding: .25em .8em .3em; box-shadow: 6px 7px 0 rgba(0, 0, 0, .18); }
.hm-menu button .soon { font-size: .4em; margin-top: .25em; }
.home .hm-credits { margin-top: auto; font-size: clamp(14px, 2.2vh, 24px); align-self: flex-start; padding: .1em .8em; }
.home .hm-profile { position: absolute; right: 2.5vw; top: 2.5vh; font-size: clamp(13px, 2vh, 20px); padding: .2em .9em; letter-spacing: 1px; z-index: 1; --tilt: .8deg; }
/* pages under Inicio */
.home .hs-back { font-size: clamp(14px, 2.2vh, 24px); padding: .05em .7em; }
.home .tab { font-size: clamp(16px, 2.8vh, 30px); padding: .15em 1em; }
.home .tab:nth-child(even) { --tilt: .6deg; }
.home .mcard { display: flex; align-items: center; gap: 1.4vw; min-height: 9vh; padding: .6vh 1.2vw; flex: none; --tilt: -.3deg; }
.home .mcard:nth-child(even) { --tilt: .3deg; }
.home .mcard.off { color: rgba(26, 48, 192, .62); }
.home .mcard.sel { color: var(--paper); }
.home .mcard.sel .ok { color: #a8ecc0; } .home .mcard.sel .soon { color: #ffd2a8; border-color: #ffd2a8; }
.home .hs-detail .cta { display: block; font-size: clamp(24px, 5vh, 52px); border-width: 3.5px; padding: .12em 1.3em .18em; margin: 1.6vh 0; --tilt: -1deg; box-shadow: 6px 7px 0 rgba(0, 0, 0, .18); }

/* pages under Inicio */
.home.sub { display: flex; flex-direction: column; padding: 2.4vh 2.5vw 6vh 6vw; box-sizing: border-box; }
.hs-head { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 3vw; row-gap: .6vh; }
.hs-head .logo { grid-column: 1 / -1; }
.hs-title { display: flex; align-items: baseline; gap: 1.5vw; }
.hs-title h1 { margin: 0; font-size: clamp(30px, 6.4vh, 66px); line-height: 1; font-weight: normal; border-bottom: 3px solid var(--red); }
.tabs { display: flex; gap: 1vw; flex-wrap: wrap; justify-self: start; }
.hs-body { flex: 1; min-height: 0; display: flex; gap: 2.5vw; margin-top: 2.6vh; }
.hs-list { flex: 1.25; display: flex; flex-direction: column; gap: 1.4vh; overflow-y: auto; overflow-x: hidden; padding: 6px 14px 12px 8px; }
.mcard svg { width: clamp(30px, 6vh, 60px); height: clamp(30px, 6vh, 60px); flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mc-txt { flex: 1; display: flex; flex-direction: column; }
.mc-txt b { font-weight: normal; font-size: clamp(20px, 3.8vh, 40px); line-height: 1.05; }
.mc-txt i { font-style: normal; opacity: .85; }
.hs-detail { flex: 1; min-width: 0; border-left: 2.5px solid var(--ink); padding: 0 10px 10px 2vw; overflow-y: auto; overflow-x: hidden; }
.hs-detail.wide { flex: 1; width: 100%; max-width: 1100px; border-left: 0; padding: 0; }
.hs-detail h2 { margin: 0 0 .4vh; font-size: clamp(24px, 4.6vh, 48px); font-weight: normal; line-height: 1.05; }
.hs-detail p { margin: .6vh 0 1.2vh; } .hs-detail .note { opacity: .75; font-size: .9em; }
.hs-detail .kv { margin-bottom: 1.4vh; } .hs-detail .kv b { color: var(--red); font-weight: normal; }
.hs-detail .online { align-items: flex-start; gap: 1.2vh; margin-top: 1vh; }
.hs-detail .online .row { justify-content: flex-start; }
.hs-detail .online button, .hs-detail .online input { font-size: clamp(15px, 2.3vh, 24px); }
.hs-detail .online .hint { text-align: left; }
.hs-detail .online .code { font-size: clamp(30px, 6vh, 56px); }
.hs-detail .lobbylist { width: 100%; }
.hs-detail .checkpoints, .hs-detail .mapsel { justify-content: flex-start; }
.hs-detail .settings { align-items: flex-start; border-top: 0; padding-top: 0; margin-top: 1.5vh; font-size: inherit; gap: 1.2vh; }
.hs-detail .settings input:focus, .hs-detail .settings input.cur { outline: 3px solid rgba(26, 48, 192, .5); outline-offset: 2px; }
.hs-detail.cfg { font-size: clamp(16px, 2.6vh, 26px); }
.hs-detail.cfg .online input { font-size: inherit; }
.cfg-soon { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 560px; padding: 1vh 0; border-bottom: 2px dashed var(--rule); }
.credits p { font-size: clamp(16px, 2.6vh, 28px); }
.credits b { font-weight: normal; color: var(--red); }

/* «Tu doodle»: the figure turning on a page of its own, faces, outline colours and exclusive skins */
.dp-stage { flex: .8; min-width: 0; position: relative; border: 2.5px solid rgba(26, 48, 192, .45); border-radius: 12px 18px 10px 16px / 16px 10px 18px 12px; overflow: hidden; transform: rotate(-.5deg); box-shadow: 5px 6px 0 rgba(0, 0, 0, .1); }
.dp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hs-detail.dd h2 { font-size: clamp(20px, 3.4vh, 36px); margin-top: 1.2vh; }
.dd-caras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2vh 1vw; padding: 4px 8px 4px 2px; }
.home .dd-cara, .home .dd-color, .home .dd-skin { --tilt: -.6deg; background: rgba(246, 243, 230, .55); border: 2.5px solid rgba(26, 48, 192, .45); border-radius: var(--btn-r); transform: rotate(var(--tilt)); transition: transform .1s, filter .1s, background .1s; }
.home .dd-cara:nth-child(even), .home .dd-color:nth-child(even), .home .dd-skin:nth-child(even) { --tilt: .5deg; }
.home .dd-cara { display: flex; flex-direction: column; align-items: center; gap: .3vh; padding: .8vh .4vw .4vh; }
.dd-cara img { width: clamp(44px, 9vh, 100px); height: clamp(44px, 9vh, 100px); object-fit: contain; }
.home .dd-cara.sel, .home .dd-color.sel { border-color: var(--red); border-width: 3.5px; background: rgba(208, 32, 48, .08); box-shadow: 4px 5px 0 rgba(208, 32, 48, .2); }
.dd-colores { display: flex; flex-wrap: wrap; gap: 1vh .8vw; padding: 4px 8px 4px 2px; }
.home .dd-color { display: flex; align-items: center; gap: .5em; padding: .3vh .8em .3vh .4em; }
.dd-color i { width: 1.4em; height: 1.4em; border-radius: 50%; border: 3px solid var(--sw); background: #fff; flex: none; }
.dd-skins { display: flex; flex-direction: column; gap: 1vh; padding: 4px 8px 4px 2px; }
.home .dd-skin { display: flex; align-items: center; gap: 1vw; padding: .6vh 1vw; border-color: var(--sw); color: var(--sw); }
.dd-skin b { font-weight: normal; font-size: 1.3em; min-width: 5em; }
.dd-skin i { flex: 1; font-style: normal; opacity: .85; color: var(--ink); }
.home .dd-skin.seen { background: rgba(26, 48, 192, .07); border-width: 3.5px; }
.home .dd-skin.sel { background: var(--sw); color: var(--paper); box-shadow: 4px 5px 0 rgba(0, 0, 0, .18); }
.home .dd-skin.sel i, .home .dd-skin.sel .ok { color: var(--paper); }
.dd-code { display: flex; align-items: center; flex-wrap: wrap; gap: .6em; margin: 1.2vh 0 0; }
.dd-code input { font: inherit; color: var(--ink); background: rgba(255, 255, 255, .5); border: 2.5px solid rgba(26, 48, 192, .45); border-radius: var(--btn-r); padding: .1em .6em; width: 11em; letter-spacing: 1px; text-transform: uppercase; }
.dd-code input:focus, .dd-code input.cur { outline: 3px solid rgba(26, 48, 192, .5); outline-offset: 2px; }
.home .dd-code button { --tilt: .5deg; color: var(--paper); background: var(--ink); border: 2.5px solid var(--ink); border-radius: var(--btn-r); padding: .1em .9em; transform: rotate(var(--tilt)); }
.dd-msg { font-size: .9em; color: var(--red); }
.dp-cap { position: absolute; left: 0; right: 0; bottom: 1.2vh; text-align: center; z-index: 1; font-size: clamp(14px, 2.2vh, 22px); pointer-events: none; }

/* controls: two tables side by side (start page and pause) */
.ctl { display: flex; gap: 2.5vw; align-items: flex-start; flex-wrap: wrap; text-align: left; }
.ctl table { flex: 1; min-width: 300px; border-collapse: collapse; font-size: clamp(13px, 1.95vh, 20px); }
.ctl caption { font-size: 1.25em; text-align: left; padding: 0 0 .2em; border-bottom: 2.5px solid var(--ink); }
.ctl td { padding: .16em .5em .16em 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.ctl td + td { white-space: nowrap; text-align: right; padding-right: 0; }
.ctl kbd { display: inline-block; font: inherit; font-size: .9em; line-height: 1.1; padding: 0 5px; border: 2px solid var(--ink); border-radius: 5px 7px 4px 6px; }
.panel .ctl { margin: 6px 0 4px; }

/* narrow windows: the art steps back behind the menu, columns stack */
@media (max-aspect-ratio: 5/4) {
    .home.main .hm-left { width: auto; right: 4vw; }
  .hs-body { flex-direction: column; overflow-y: auto; }
  .hs-list { flex: none; overflow: visible; }
  .hs-detail { border-left: 0; border-top: 2.5px solid var(--ink); padding: 1.5vh 0 0; overflow: visible; }
  .dp-stage { flex: none; height: 42vh; }
  .hm-foot span + span { display: none; }
  .tabs { grid-column: 1 / -1; }
}

/* a player's little head next to their name (room, scoreboards, kill feed): skin icon or tinted face */
.av { display: inline-block; width: 1.35em; height: 1.35em; vertical-align: -.32em; margin-right: .3em; object-fit: contain; }
.av-face { background: var(--c); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.plist .av { width: 1.6em; height: 1.6em; vertical-align: -.42em; }

/* «Cuenta» / «Mi perfil» (2026-10-14, provisional until Codex's design) */
.hs-detail.acc { max-width: 900px; }
.acc .acc-form .row > span:first-child { min-width: 7.5em; text-align: left; }
.acc .online input.namebox { width: min(22em, 60vw); font-size: inherit; letter-spacing: 0; text-transform: none; text-align: left; }
.acc .online input.namebox:disabled { opacity: .6; }
.acc-msg { min-height: 1.4em; color: var(--red); font-size: .9em; }
.acc-msg.ok { color: var(--ink); }
.acc-head { display: flex; align-items: center; gap: 1.2vw; margin-bottom: 1vh; }
.acc-head .av { width: 2.6em; height: 2.6em; margin: 0; }
.acc h2 { margin-top: 1.6vh; }
.acc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1vh 1.2vw; max-width: 760px; }
.acc-tile { border: 2.5px solid var(--ink); border-radius: 7px 10px 6px 9px / 10px 6px 9px 7px; padding: .5vh .8em; display: flex; flex-direction: column; }
.acc-tile b { font-weight: normal; font-size: 1.5em; color: var(--red); line-height: 1.1; }
.acc-tile span { font-size: .8em; opacity: .75; }
.acc-recent { max-width: 760px; }
.acc-recent > div { display: flex; justify-content: space-between; gap: 1em; padding: .4vh 0; border-bottom: 2px dashed var(--rule); font-size: .9em; }
.acc-recent > div span:first-child { min-width: 4.5em; opacity: .7; }
.acc-recent > div span:last-child { text-align: right; }
.home .hm-profile .av { width: 1.2em; height: 1.2em; }
@media (max-width: 900px) { .acc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
