/* Krack Shot.io styles: HUD, menu, crosshair, scope, and animations */

:root{
  --ink:#1d2340; --paper:#fff8e7; --sun:#ffcf3f; --tomato:#ff5a3c; --plum:#7b4fd6; --mint:#3cff6e;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
/* The game uses its own fixed palette in both light and dark mode */
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --ink:#1d2340; --paper:#fff8e7; } }
:root[data-theme="dark"]{ --ink:#1d2340; --paper:#fff8e7; }
html{ scroll-padding-top:env(safe-area-inset-top,0px); }
html,body{ height:100%; margin:0; overflow:hidden; background:#bfe6ff;
  font-family:'Nunito',system-ui,-apple-system,'Segoe UI',sans-serif; color:var(--ink); user-select:none; }
canvas{ position:fixed; inset:0; display:block; }
.lil{ font-family:'Lilita One','Arial Black',Impact,sans-serif; font-weight:400; }

.vignette{ position:fixed; inset:0; pointer-events:none; background:radial-gradient(ellipse at center, transparent 58%, rgba(10,14,40,.32) 100%); }
.hurt{ position:fixed; inset:0; pointer-events:none; opacity:0; background:radial-gradient(ellipse at center, transparent 45%, rgba(255,40,40,.65) 100%); }
.scope{ position:fixed; inset:0; pointer-events:none; display:none; --r:min(40vh,40vw); }
.scope.on{ display:block; }
/* the dark ring around the lens, with a soft edge and a little blue glass tint */
.scope.on::before{ content:""; position:absolute; inset:0;
  background:radial-gradient(circle at center, rgba(120,170,255,.06) 0, rgba(120,170,255,.03) calc(var(--r) - 12px), rgba(0,0,0,.85) calc(var(--r) - 2px), #07080c var(--r)); }
.scope.on::after{ content:""; position:absolute; left:50%; top:50%; width:calc(var(--r) * 2); height:calc(var(--r) * 2); transform:translate(-50%,-50%);
  background-repeat:no-repeat; background-position:center; background-size:100% 100%; }
/* sniper: thin crosshair with range dots, thicker lines toward the edge */
.scope.sniper{ --r:min(44vh,44vw); }
.scope.sniper::after{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='%23111'%3E%3Crect x='0' y='99' width='70' height='2'/%3E%3Crect x='130' y='99' width='70' height='2'/%3E%3Crect x='99' y='0' width='2' height='70'/%3E%3Crect x='99' y='130' width='2' height='70'/%3E%3Crect x='70' y='99.6' width='60' height='0.8'/%3E%3Crect x='99.6' y='70' width='0.8' height='60'/%3E%3Ccircle cx='100' cy='110' r='1'/%3E%3Ccircle cx='100' cy='120' r='1'/%3E%3Ccircle cx='110' cy='100' r='1'/%3E%3Ccircle cx='120' cy='100' r='1'/%3E%3Ccircle cx='90' cy='100' r='1'/%3E%3Ccircle cx='80' cy='100' r='1'/%3E%3Ccircle cx='100' cy='90' r='1'/%3E%3Ccircle cx='100' cy='80' r='1'/%3E%3C/g%3E%3Ccircle cx='100' cy='100' r='0.9' fill='%23ff3030'/%3E%3C/svg%3E"); }
/* marksman: smaller lens, a red chevron to aim with */
.scope.marksman{ --r:min(34vh,34vw); }
.scope.marksman::after{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='%23111'%3E%3Crect x='0' y='99.3' width='80' height='1.4'/%3E%3Crect x='120' y='99.3' width='80' height='1.4'/%3E%3Crect x='99.3' y='115' width='1.4' height='85'/%3E%3C/g%3E%3Cpath d='M92 108 L100 99 L108 108' fill='none' stroke='%23ff2a2a' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* Sentinel crossbow: a green ring and drop marks below the middle (aim higher for far shots) */
.scope.bow{ --r:min(32vh,32vw); }
.scope.bow::after{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%2339ff7a'%3E%3Ccircle cx='100' cy='100' r='14' stroke-width='1.4'/%3E%3C/g%3E%3Cg fill='%2339ff7a'%3E%3Ccircle cx='100' cy='100' r='1.4'/%3E%3Crect x='94' y='112' width='12' height='1.2'/%3E%3Crect x='95.5' y='122' width='9' height='1.2'/%3E%3Crect x='97' y='132' width='6' height='1.2'/%3E%3C/g%3E%3Cg fill='%23111'%3E%3Crect x='0' y='99.4' width='82' height='1.2'/%3E%3Crect x='118' y='99.4' width='82' height='1.2'/%3E%3C/g%3E%3C/svg%3E"); }

.hud{ position:fixed; pointer-events:none; color:#fff; text-shadow:0 2px 0 rgba(0,0,0,.4); }
.stats{ top:calc(12px + env(safe-area-inset-top,0px)); left:16px; font-weight:900; font-size:16px; line-height:1.45; }
.stats .seed{ font-size:24px; color:var(--sun); }
.tip{ top:calc(12px + env(safe-area-inset-top,0px)); right:16px; max-width:270px; text-align:right; font-weight:700; font-size:14px; line-height:1.4; transition:opacity 1s; }

.health{ bottom:calc(22px + env(safe-area-inset-bottom,0px)); left:18px; width:220px; }
.health .num{ font-size:30px; line-height:1; margin-bottom:4px; }
.health .bar{ height:14px; border:3px solid var(--ink); border-radius:9px; background:rgba(29,35,64,.55); overflow:hidden; }
.health .fill{ height:100%; width:100%; background:var(--mint); transition:width .15s, background .15s; }

.slots{ bottom:calc(18px + env(safe-area-inset-bottom,0px)); left:50%; transform:translateX(-50%); display:flex; gap:8px; }
.slot{ min-width:88px; padding:5px 10px 6px; border:3px solid var(--ink); border-radius:10px; background:rgba(255,248,231,.6);
  color:var(--ink); text-shadow:none; font-weight:900; font-size:14px; text-align:center; transition:transform .12s, background .12s; }
.slot small{ display:block; font-size:11px; opacity:.65; }
.slot.on{ background:var(--sun); transform:translateY(-6px); }

.ammo{ bottom:calc(20px + env(safe-area-inset-bottom,0px)); right:22px; text-align:right; }
.ammo .wname{ font-weight:900; font-size:16px; }
.ammo .big{ font-size:48px; line-height:1; }
.ammo .max{ font-size:22px; opacity:.8; }
.reload{ bottom:calc(92px + env(safe-area-inset-bottom,0px)); right:22px; font-weight:900; font-size:16px; opacity:0; transition:opacity .15s; }
.reload.on{ opacity:1; }

.cross{ left:50%; top:50%; width:0; height:0; }
.cross i{ position:absolute; width:6px; height:6px; margin:-3px 0 0 -3px; border-radius:50%; background:#fff;
  box-shadow:0 0 0 1.5px rgba(0,0,0,.45); transition:transform .1s ease-out; }
.cross i:nth-child(1){ transform:translate(0,-16px); } .cross i:nth-child(2){ transform:translate(0,16px); }
.cross i:nth-child(3){ transform:translate(-16px,0); } .cross i:nth-child(4){ transform:translate(16px,0); }
.cross.kick i:nth-child(1){ transform:translate(0,-28px); } .cross.kick i:nth-child(2){ transform:translate(0,28px); }
.cross.kick i:nth-child(3){ transform:translate(-28px,0); } .cross.kick i:nth-child(4){ transform:translate(28px,0); }
.cross.hide{ display:none; }
.hitmark{ left:50%; top:50%; width:26px; height:26px; margin:-13px 0 0 -13px; opacity:0; }
.hitmark.on{ animation:hit .25s ease-out; }
.hitmark::before,.hitmark::after{ content:""; position:absolute; left:50%; top:0; width:3px; height:100%; margin-left:-1.5px; background:#fff; }
.hitmark.head::before,.hitmark.head::after{ background:var(--sun); }
.hitmark::before{ transform:rotate(45deg); } .hitmark::after{ transform:rotate(-45deg); }
@keyframes hit{ from{opacity:1; transform:scale(1.35);} to{opacity:0; transform:scale(1);} }

.pop{ left:50%; top:28%; transform:translate(-50%,-50%); font-size:clamp(28px,5vw,52px); color:var(--sun); opacity:0; white-space:nowrap;
  -webkit-text-stroke:2px var(--ink); text-shadow:0 4px 0 var(--ink); }
.pop.on{ animation:pop 1s ease-out; }
@keyframes pop{ 0%{opacity:0; transform:translate(-50%,-30%) scale(.6) rotate(-6deg);}
  15%{opacity:1; transform:translate(-50%,-50%) scale(1.1) rotate(-3deg);}
  70%{opacity:1; transform:translate(-50%,-60%) scale(1) rotate(-3deg);}
  100%{opacity:0; transform:translate(-50%,-80%) scale(1) rotate(-3deg);} }
#dmgLayer{ left:0; top:0; }
.killcam{ position:fixed; inset:0; pointer-events:none; display:none; text-align:center; color:#fff; text-shadow:0 2px 0 rgba(0,0,0,.5);
  background:linear-gradient(rgba(120,0,0,.35), transparent 30%, transparent 70%, rgba(120,0,0,.35)); }
.killcam.on{ display:block; }
#killTitle{ margin-top:14vh; font-size:clamp(28px,5vw,46px); color:#ff5a3c; -webkit-text-stroke:2px #1d2340; text-shadow:0 4px 0 #1d2340; }
#killTime{ margin-top:8px; font-weight:900; font-size:18px; }
.dmgnum{ position:absolute; left:0; top:0; font-size:26px; color:#ffe14d; white-space:nowrap; will-change:transform;
  text-shadow:-1.5px -1.5px 0 #1d2340, 1.5px -1.5px 0 #1d2340, -1.5px 1.5px 0 #1d2340, 1.5px 1.5px 0 #1d2340, 0 3px 0 #1d2340; }
.dmgnum.head{ font-size:34px; color:#ff8a1a; }
.note{ bottom:calc(90px + env(safe-area-inset-bottom,0px)); left:18px; max-width:340px; font-weight:700; font-size:14px; }

.menu{ position:fixed; inset:0; display:grid; place-items:center; background:rgba(29,35,64,.55); z-index:5; padding:16px; }
.menu.hidden{ display:none; }
.card{ background:var(--paper); border:4px solid var(--ink); border-radius:18px; box-shadow:0 10px 0 var(--ink);
  padding:22px 26px 24px; max-width:470px; width:100%; max-height:calc(100vh - 60px); overflow:auto; }
.card h1{ margin:0; font-size:48px; line-height:1; color:var(--tomato); -webkit-text-stroke:2px var(--ink); text-shadow:0 4px 0 var(--ink); transform:rotate(-2deg); }
.card p{ margin:10px 0 14px; font-size:16px; line-height:1.4; }
.label{ font-weight:900; font-size:15px; margin:14px 0 6px; }
.label small{ font-weight:700; opacity:.65; }
.seedrow{ display:flex; gap:8px; }
.seedrow input{ flex:1; min-width:0; font:inherit; font-weight:900; font-size:18px; padding:8px 12px; border:3px solid var(--ink); border-radius:10px; background:#fff; color:var(--ink); }
.seedhint{ margin-top:6px; font-size:13px; font-weight:700; line-height:1.9; }
.seedhint .world{ display:block; font-weight:900; color:#ffd860; font-size:15px; }
.seedchip{ font:inherit; font-size:12px; font-weight:900; padding:1px 8px; margin:0 4px 0 0; border:2px solid var(--ink); border-radius:999px; background:#fff; color:var(--ink); cursor:pointer; }
.seedchip:hover{ background:#ffe9a8; }
.btn{ font:inherit; font-weight:900; font-size:15px; color:var(--ink); background:#fff; border:3px solid var(--ink); border-bottom-width:5px; border-radius:10px; padding:7px 12px; cursor:pointer; }
.btn:active{ transform:translateY(2px); border-bottom-width:3px; }
.btn[aria-pressed="true"]{ background:var(--sun); }
.btn:focus-visible,.play:focus-visible,.seedrow input:focus-visible{ outline:4px solid var(--plum); outline-offset:2px; }
.chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chips.classes{ display:grid; grid-template-columns:repeat(4, 1fr); gap:6px; }
.chips.classes .btn{ padding:5px 4px; font-size:14px; line-height:1.1; }
.chips.classes .btn small{ display:block; font-size:10px; font-weight:700; opacity:.6; }
@media (max-width:520px){ .chips.classes{ grid-template-columns:repeat(3, 1fr); } }
.keys{ display:grid; grid-template-columns:auto 1fr auto 1fr; gap:6px 10px; font-size:14px; margin:14px 0 18px; align-items:center; }
.keys kbd{ font-family:inherit; font-weight:900; background:#fff; border:2px solid var(--ink); border-bottom-width:4px; border-radius:7px; padding:0 7px; font-size:13px; white-space:nowrap; justify-self:start; }
.play{ font-family:'Lilita One','Arial Black',sans-serif; font-size:26px; color:var(--ink); background:var(--sun);
  border:4px solid var(--ink); border-radius:14px; box-shadow:0 6px 0 var(--ink); padding:10px 26px; cursor:pointer; width:100%; }
.play:active{ transform:translateY(4px); box-shadow:0 2px 0 var(--ink); }
.touchwarn{ margin-top:12px; font-size:14px; color:var(--tomato); font-weight:900; display:none; }
@media (max-width:520px){ .keys{ grid-template-columns:auto 1fr; } .slots{ display:none; } }

/* ---- Lobby (Army Base style) ---- */
.menu.lobby{ display:block; padding:0; background:linear-gradient(115deg, rgba(47,58,34,.93) 0%, rgba(47,58,34,.55) 28%, transparent 50%, transparent 65%, rgba(107,122,74,.35) 100%);
  --olive:rgba(38,46,28,.88); --khaki:#e9e4c9; --brass:#c9a43a; color:var(--khaki); }
.menu.lobby.hidden{ display:none; }
body.inlobby .hud, body.inlobby .vignette{ display:none; }
.lobby-logo{ position:absolute; left:28px; top:18px; font-size:54px; line-height:1; color:var(--brass); text-shadow:0 4px 0 rgba(0,0,0,.35); }
.lobby-logo .io{ font-size:30px; color:var(--khaki); margin-left:2px; }
.lobby-logo small{ display:block; font-family:'Nunito',sans-serif; font-weight:900; font-size:13px; letter-spacing:4px; color:var(--khaki); text-shadow:none; margin-top:4px; opacity:.85; }
.lobby-top{ position:absolute; right:24px; top:20px; display:flex; gap:10px; align-items:center; }
.lobby-chip{ display:flex; gap:10px; align-items:center; background:var(--olive); border-radius:999px; padding:6px 16px 6px 6px; font-weight:900; font-size:17px; box-shadow:0 6px 18px rgba(0,0,0,.25); }
.lobby-chip .avatar{ width:34px; height:34px; border-radius:50%; background:linear-gradient(var(--brass),#9bb06b); display:grid; place-items:center; font-size:18px; }
.ctag{ font-weight:900; margin-right:6px; }
.lobby-nav{ position:absolute; right:28px; top:92px; display:flex; flex-direction:column; gap:8px; }
.lobby-nav .nb{ font:inherit; font-weight:900; font-size:19px; letter-spacing:.5px; color:var(--khaki); background:var(--olive); border:0; border-radius:6px; padding:9px 18px; min-width:200px; display:flex; gap:12px; align-items:center; cursor:pointer; box-shadow:0 6px 18px rgba(0,0,0,.25); transition:transform .12s; }
.lobby-nav .nb .ic{ width:26px; text-align:center; }
.lobby-nav .nb:hover{ transform:translateX(-5px); }
.lobby-nav .nb.on{ background:var(--brass); color:#1d2340; transform:translateX(-10px); }
.lobby-nav .nb:focus-visible{ outline:3px solid var(--khaki); outline-offset:2px; }
.lobby-panel{ position:absolute; left:24px; top:110px; width:360px; max-height:calc(100vh - 250px); overflow:auto; background:var(--olive); border-radius:6px; padding:14px 16px; box-shadow:0 6px 18px rgba(0,0,0,.25); }
.lobby-panel .label{ color:var(--khaki); opacity:.75; font-size:12px; letter-spacing:2px; text-transform:uppercase; margin:12px 0 6px; }
.lobby-panel .label:first-child{ margin-top:0; }
.lobby-panel .label small{ text-transform:none; letter-spacing:0; }
/* Profile tab */
.pf-head{ display:flex; gap:12px; align-items:center; }
.pf-pic{ width:74px; height:92px; object-fit:cover; background:rgba(0,0,0,.2); border-radius:6px; }
.pf-name{ font-size:20px; font-weight:900; color:#fff; }
.pf-owner{ display:inline-block; margin:3px 0; padding:1px 8px; border-radius:4px; background:var(--brass); color:#1d2340; font-weight:900; font-size:12px; letter-spacing:1px; }
.pf-sub{ color:var(--khaki); font-size:13px; margin-top:2px; }
.pf-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; }
.pf-stat{ background:rgba(0,0,0,.18); border-radius:5px; padding:6px 4px; text-align:center; }
.pf-stat b{ display:block; color:#fff; font-size:17px; }
.pf-stat span{ color:var(--khaki); font-size:11px; opacity:.8; }
.pf-row{ display:flex; justify-content:space-between; color:var(--khaki); font-size:13px; margin:6px 0 3px; }
.pf-row b{ color:#fff; }
.pf-row.small{ font-size:11px; opacity:.8; margin-top:3px; }
.pf-bar{ height:8px; background:rgba(0,0,0,.3); border-radius:4px; overflow:hidden; }
.pf-bar.big{ height:12px; }
.pf-bar i{ display:block; height:100%; background:var(--brass); border-radius:4px; }
.lobby-panel p{ font-size:14px; margin:12px 0 0; opacity:.8; }
.lobby .btn{ background:#efe9cf; border-color:#1d2340; }
.lobby .btn[aria-pressed="true"]{ background:var(--brass); }
/* the map list: a compact grid so lots of maps fit */
#mapChips{ display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; }
#mapChips .btn.super{ grid-column:1 / -1; font-size:13px; background:linear-gradient(90deg,#ffd23a,#ff9a3a); color:#2a1a0a; }
#mapChips .btn{ font-size:12px; line-height:1.15; padding:3px 3px; margin:0; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lobby .thumb{ height:52px; border-radius:6px; margin-top:8px; background:linear-gradient(180deg,#3f8fe0 0%,#bfe6ff 55%,#e8c9a0 56%,#d7a980 100%); position:relative; overflow:hidden; }
.lobby .thumb::before{ content:''; position:absolute; left:8%; bottom:38%; width:84%; height:30%; background:repeating-linear-gradient(90deg,#f4a6b8 0 18%,#5cc6c0 18% 34%,#f6d365 34% 52%,#ff8a65 52% 70%,#b39ddb 70% 86%,#9ee6b8 86% 100%); }
.lobby .thumb::after{ content:'🌴'; position:absolute; left:44%; bottom:14%; font-size:30px; }
.lobby .thumb.random{ background:linear-gradient(180deg,#6f9fd8,#e8f1fb 55%,#5fb14a 56%,#4a8f3a); }
.lobby .thumb.random::before{ background:repeating-linear-gradient(90deg,#ffab40 0 10%,transparent 10% 22%,#4d8dff 22% 30%,transparent 30% 48%,#ff5a3c 48% 60%,transparent 60% 75%,#7b4fd6 75% 85%,transparent 85%); }
.lobby .thumb.random::after{ content:'🎲'; }
.lobby .thumb.rooftops{ background:linear-gradient(180deg,#3a8ee6,#d6ecff); }
.lobby .thumb.rooftops::before{ left:6%; bottom:30%; width:88%; height:34%; background:
  linear-gradient(90deg,#f4a6b8 0 18%,transparent 18% 24%,#7ec8f2 24% 38%,transparent 38% 41%,#f5ecd9 41% 59%,transparent 59% 62%,#ffcf6b 62% 76%,transparent 76% 82%,#9ee6b8 82%); }
.lobby .thumb.rooftops::after{ content:'👑'; left:46%; bottom:62%; }
.lobby .thumb.maple{ background:linear-gradient(180deg,#3f94ea,#dff1ff 55%,#74ab5c 56%,#5f9a4a); }
.lobby .thumb.maple::before{ left:10%; bottom:36%; width:80%; height:26%; background:linear-gradient(90deg,#f3e3c3 0 26%,transparent 26% 37%,#b8d8e8 37% 63%,transparent 63% 74%,#f0c9d8 74%); }
.lobby .thumb.maple::after{ content:'🏡'; }
.lobby .thumb.desert{ background:linear-gradient(180deg,#4f7fcf,#ffcf9a 55%,#e3c58f 56%,#c9a06a); }
.lobby .thumb.desert::before{ left:8%; bottom:38%; width:84%; height:30%; background:linear-gradient(90deg,#a8b5a0 0 18%,#b0673e 18% 42%,transparent 42% 58%,#c98a5a 58% 82%,#6f6a70 82%); }
.lobby .thumb.desert::after{ content:'🌵'; }
.lobby .thumb.snow{ background:linear-gradient(180deg,#9fb6d6,#eef3fa 55%,#f4f8fc 56%,#dfe8f2); }
.lobby .thumb.snow::before{ left:6%; bottom:38%; width:88%; height:34%; background:linear-gradient(135deg,transparent 30%,#7d8a9c 30% 50%,transparent 50%),linear-gradient(225deg,transparent 30%,#8f9bab 30% 50%,transparent 50%); }
.lobby .thumb.snow::after{ content:'❄️'; }
.lobby .thumb.pirate{ background:linear-gradient(180deg,#2f8ee8,#cdeeff 52%,#2fa6d8 53%,#1f6f9a); }
.lobby .thumb.pirate::before{ left:25%; bottom:28%; width:50%; height:22%; background:radial-gradient(ellipse at 50% 100%,#ecd9a6 0 60%,transparent 61%); }
.lobby .thumb.pirate::after{ content:'🏴‍☠️'; }
.lobby .thumb.temple{ background:linear-gradient(180deg,#4f98d6,#dff2d6 55%,#4f8a3c 56%,#3f7a2a); }
.lobby .thumb.temple::before{ left:30%; bottom:40%; width:40%; height:36%; background:linear-gradient(180deg,transparent 0 22%,#9a9a86 22% 45%,#86866f 45% 70%,#9a9a86 70%); clip-path:polygon(35% 0,65% 0,100% 100%,0 100%); }
.lobby .thumb.temple::after{ content:'🗿'; left:8%; }
.lobby .thumb.moon{ background:radial-gradient(circle at 25% 30%,#4f8fe0 0 9%,transparent 10%),radial-gradient(circle at 70% 20%,#fff 0 1px,transparent 2px),radial-gradient(circle at 50% 40%,#fff 0 1px,transparent 2px),linear-gradient(180deg,#02030a,#1a1e30 58%,#9a9a9e 59%,#7d7f86); }
.lobby .thumb.moon::before{ left:40%; bottom:30%; width:24%; height:30%; background:radial-gradient(ellipse at 50% 100%,#e8ecf2 0 70%,transparent 71%); }
.lobby .thumb.moon::after{ content:'🚀'; left:70%; }
.lobby .thumb.build{ background:linear-gradient(180deg,#4a90d9,#f2e6d0 58%,#a08867 59%,#8a7050); }
.lobby .thumb.build::before{ left:30%; bottom:40%; width:30%; height:50%; background:repeating-linear-gradient(180deg,#b8b4ac 0 8%,transparent 8% 33%),linear-gradient(90deg,#c0392b 0 8%,transparent 8% 46%,#c0392b 46% 54%,transparent 54% 92%,#c0392b 92%); }
.lobby .thumb.build::after{ content:'🏗️'; left:68%; }
.lobby .thumb.haunted{ background:radial-gradient(circle at 75% 25%,#f4f0d8 0 7%,transparent 8%),linear-gradient(180deg,#0b0d24,#3a2f5a 58%,#3d5a3a 59%,#2a3a28); }
.lobby .thumb.haunted::before{ left:25%; bottom:40%; width:34%; height:38%; background:radial-gradient(circle at 30% 40%,#ffcf5a 0 8%,transparent 9%),radial-gradient(circle at 70% 40%,#141424 0 8%,transparent 9%),#5e5470; }
.lobby .thumb.haunted::after{ content:'👻'; left:68%; }
.lobby .thumb.candy{ background:linear-gradient(180deg,#7ec8ff,#ffd6ec 58%,#f7b8d4 59%,#e89ab8); }
.lobby .thumb.candy::before{ left:28%; bottom:40%; width:30%; height:30%; background:linear-gradient(180deg,#b3e6ff 0 33%,#fff0b3 33% 66%,#ffb3d1 66%); border-radius:6px 6px 2px 2px; }
.lobby .thumb.candy::after{ content:'🍭'; left:68%; }
.lobby .thumb.neon{ background:linear-gradient(180deg,#05030f,#2a1244 58%,#2a2a34 59%,#1a1a24); }
.lobby .thumb.neon::before{ left:22%; bottom:40%; width:40%; height:48%; background:repeating-linear-gradient(180deg,#ff2bd6 0 5%,#1c1a34 5% 20%); }
.lobby .thumb.neon::after{ content:'🌃'; left:70%; }
.lobby .thumb.castle{ background:linear-gradient(180deg,#5a8fd6,#f4dcb8 58%,#6aa84f 59%,#4a8a38); }
.lobby .thumb.castle::before{ left:22%; bottom:40%; width:40%; height:36%; background:repeating-linear-gradient(90deg,#a8a296 0 10%,transparent 10% 16%) top/100% 18% no-repeat,linear-gradient(#a8a296,#a8a296) bottom/100% 84% no-repeat; }
.lobby .thumb.castle::after{ content:'🏰'; left:70%; }
.lobby .thumb.magma{ background:linear-gradient(180deg,#3a1a1a,#e0703a 58%,#5a4a44 59%,#3a2e2a); }
.lobby .thumb.magma::before{ left:22%; bottom:40%; width:44%; height:40%; background:linear-gradient(90deg,transparent 45%,#ff5a14 45% 55%,transparent 55%) top/100% 40% no-repeat,#2a2222; clip-path:polygon(0 100%,35% 0,65% 0,100% 100%); }
.lobby .thumb.magma::after{ content:'🌋'; left:72%; }
.lobby .thumb.stadium{ background:linear-gradient(180deg,#2a6fd0,#cfe6ff 50%,#b8b4ac 51% 62%,#5aa84a 63%,#4e9a40); }
.lobby .thumb.stadium::before{ left:10%; bottom:37%; width:80%; height:14%; background:repeating-linear-gradient(90deg,#d83a3a 0 4%,#2a6ad8 4% 8%); }
.lobby .thumb.stadium::after{ content:'🏟️'; left:70%; }
.lobby .thumb.farm{ background:linear-gradient(180deg,#3a8ae0,#dcefff 58%,#7ab84a 59%,#5a9a3a); }
.lobby .thumb.farm::before{ left:20%; bottom:40%; width:30%; height:34%; background:#b8322a; clip-path:polygon(0 35%,50% 0,100% 35%,100% 100%,0 100%); }
.lobby .thumb.farm::after{ content:'🚜'; left:68%; }
.lobby .thumb.mall{ background:linear-gradient(180deg,#bfe4ff,#e0f0ff 40%,#f0ebe4 41% 58%,#e8e2d8 59%,#d8d2c8); }
.lobby .thumb.mall::before{ left:15%; bottom:42%; width:70%; height:14%; background:repeating-linear-gradient(90deg,#d83a5a 0 20%,#2a6ad8 20% 40%,#3aa84a 40% 60%,#e0a020 60% 80%,#7a3ad8 80%); }
.lobby .thumb.mall::after{ content:'🛍️'; left:70%; }
.lobby .thumb.treetops{ background:linear-gradient(180deg,#3a9ad8,#d8f0d0 58%,#5a9a3a 59%,#4a8a2a); }
.lobby .thumb.treetops::before{ left:18%; bottom:35%; width:44%; height:55%; background:radial-gradient(ellipse at 50% 30%,#3a8a2a 0 38%,transparent 39%),linear-gradient(90deg,transparent 45%,#6a4a2e 45% 55%,transparent 55%),linear-gradient(#a07a4a,#a07a4a) 0 62%/100% 8% no-repeat; }
.lobby .thumb.treetops::after{ content:'🌳'; left:70%; }
.lobby .thumb.island{ background:radial-gradient(ellipse at 50% 70%,#6ab04c 0 28%,#ecd49a 29% 33%,transparent 34%),linear-gradient(180deg,#3f8fe0,#cfe8ff 50%,#2a86d0 51%); }
.lobby .thumb.island::before{ left:42%; bottom:38%; width:16%; height:30%; background:#8f857a; clip-path:polygon(0 100%,50% 0,100% 100%); }
.lobby .thumb.island::after{ content:'🏝️'; left:70%; }
.lobby .thumb.beach{ background:radial-gradient(circle at 70% 50%,#ffd060 0 8%,transparent 9%),linear-gradient(180deg,#5a6ad8,#ffb070 50%,#2a8ad8 51% 64%,#f0d8a0 65%); }
.lobby .thumb.beach::before{ left:20%; bottom:25%; width:26%; height:26%; background:#e0c080; clip-path:polygon(0 100%,0 40%,20% 40%,20% 0,80% 0,80% 40%,100% 40%,100% 100%); }
.lobby .thumb.beach::after{ content:'🏖️'; left:70%; }
.lobby .thumb.undercity{ background:radial-gradient(ellipse at 50% 70%,#1d4a58 0%,#141820 45%,#0a0c10 100%); }
.lobby .thumb.undercity::before{ left:0; bottom:0; width:100%; height:100%; background:
  radial-gradient(circle at 30% 80%,#6ff3ff 0 3px,transparent 4px), radial-gradient(circle at 62% 74%,#c58bff 0 3px,transparent 4px),
  linear-gradient(180deg,#3a332d 0 14%,transparent 14% 82%,#3a332d 82%); }
.lobby .thumb.undercity::after{ content:'💎'; left:44%; bottom:22%; }
.lobby .keys{ margin:0; color:var(--khaki); }
.lobby .keys kbd{ color:#1d2340; }
.lobby-input{ width:100%; box-sizing:border-box; font:inherit; font-weight:900; font-size:18px; padding:8px 12px; border:3px solid #1d2340; border-radius:8px; background:#fff; color:#1d2340; }
.lobby-input:focus-visible{ outline:3px solid var(--brass); outline-offset:1px; }
.tag-input{ text-transform:uppercase; letter-spacing:3px; }
.clan-msg{ min-height:18px; font-size:13px; font-weight:800; margin-top:6px; }
.clan-msg.bad{ color:#ffb36b; } .clan-msg.good{ color:#b6f07b; }
.swatches{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.swatch{ width:30px; height:30px; border-radius:50%; border:3px solid rgba(0,0,0,.35); cursor:pointer; padding:0; }
.swatch.on{ border-color:#fff; box-shadow:0 0 0 3px var(--brass); }
.swatches input[type=color]{ width:38px; height:32px; border:0; padding:0; background:none; cursor:pointer; }
.clan-preview{ background:rgba(0,0,0,.35); border-radius:999px; padding:8px 16px; font-weight:900; font-size:20px; display:inline-block; }
.lobby-card{ position:absolute; right:24px; bottom:24px; width:270px; background:var(--olive); border-radius:6px; padding:14px 16px; box-shadow:0 6px 18px rgba(0,0,0,.25); }
.lobby-card .label{ margin:0 0 4px; font-size:12px; letter-spacing:2px; opacity:.75; }
.lobby-card .big{ font-family:'Lilita One',sans-serif; font-size:24px; }
.lobby-card .upg-progress, .lobby-card .upg-owned{ display:block; width:100%; margin-top:10px; padding:7px 8px; border-radius:5px; font:700 13px inherit; text-align:center; }   /* gun upgrades */
.lobby-card .upg-progress{ position:relative; overflow:hidden; background:rgba(0,0,0,.3); color:#f4ead0; }
.lobby-card .upg-progress span{ position:relative; z-index:1; }
.lobby-card .upg-progress i{ position:absolute; left:0; top:0; bottom:0; background:rgba(217,164,58,.55); }
.lobby-card .upg-owned{ background:rgba(0,0,0,.25); color:#ffd34d; }
.stat{ display:grid; grid-template-columns:82px 1fr; gap:6px 10px; align-items:center; font-size:13px; font-weight:900; margin-top:6px; }
.stat .bar{ height:8px; border-radius:6px; background:rgba(0,0,0,.3); overflow:hidden; } .stat .bar i{ display:block; height:100%; background:var(--brass); }
.lobby-tag{ position:absolute; transform:translate(-50%,-100%); font-weight:900; font-size:17px; padding:4px 12px; border-radius:999px; background:var(--olive); white-space:nowrap; pointer-events:none; }
.play.deploy{ position:absolute; left:24px; bottom:24px; width:auto; font-size:46px; padding:12px 50px; background:linear-gradient(var(--brass),#9bb06b); color:#1d2340; border:0; border-radius:6px; box-shadow:0 8px 0 rgba(0,0,0,.35), 0 0 40px rgba(201,164,58,.4); line-height:1; }
.play.deploy small{ display:block; font-family:'Nunito',sans-serif; font-weight:900; font-size:14px; letter-spacing:1px; opacity:.75; margin-top:4px; }
.lobby .touchwarn{ position:absolute; left:24px; bottom:130px; }
.hudname{ font-weight:900; font-size:16px; margin-bottom:2px; }
@media (max-width:760px){
  .lobby-nav{ top:auto; bottom:110px; right:12px; left:12px; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .lobby-nav .nb{ min-width:0; flex:1; font-size:14px; padding:8px; } .lobby-nav .nb.on{ transform:none; }
  .lobby-panel{ left:12px; right:12px; width:auto; top:84px; max-height:calc(100vh - 330px); }
  .lobby-card{ display:none; } .lobby-logo{ font-size:36px; left:16px; } .lobby-chip{ right:12px; font-size:14px; }
  .play.deploy{ left:12px; right:12px; bottom:16px; font-size:34px; }
}

/* ---- Krack Coins ---- */
.coin{ display:inline-grid; place-items:center; width:26px; height:26px; border-radius:50%; background:radial-gradient(circle at 35% 30%, #fff6b0, #ffcf3f 45%, #c98a1a); color:#6a3a00; font-weight:900; font-size:11px; box-shadow:inset 0 -2px 0 rgba(0,0,0,.25); }
.kc-chip{ padding:6px 16px 6px 6px; }
.ad-btn{ font:inherit; font-weight:900; font-size:15px; line-height:1.1; text-align:left; color:#0d3318; background:linear-gradient(#3cff6e,#22b04a); border:0; border-radius:10px; padding:8px 14px; cursor:pointer; box-shadow:0 6px 18px rgba(0,0,0,.25); }
.ad-btn small{ display:block; font-size:11px; opacity:.8; }
.ad-btn:disabled{ background:#6b7a4a; color:#2f3a22; cursor:default; }
.cap-left{ position:absolute; right:24px; top:74px; font-size:12px; font-weight:800; opacity:.7; }
.kc-pop{ position:fixed; left:50%; top:36%; transform:translate(-50%,-50%); font-size:28px; color:#ffcf3f; opacity:0; pointer-events:none; z-index:20; -webkit-text-stroke:1.5px #1d2340; text-shadow:0 3px 0 #1d2340; }
.kc-pop.on{ animation:kcpop 1.2s ease-out; }
@keyframes kcpop{ 0%{ opacity:0; transform:translate(-50%,-30%) scale(.7);} 15%{ opacity:1; transform:translate(-50%,-50%) scale(1.1);} 75%{ opacity:1; transform:translate(-50%,-70%);} 100%{ opacity:0; transform:translate(-50%,-90%);} }
.ad-screen{ position:fixed; inset:0; z-index:30; display:none; place-items:center; background:#5b5f66; }
.ad-screen.on{ display:grid; }
.ad-box{ width:min(440px, calc(100vw - 32px)); text-align:center; color:#d8dadd; font-weight:800; }
.ad-label{ font-size:12px; letter-spacing:3px; opacity:.6; margin-bottom:20px; }
.ad-text{ font-size:18px; line-height:1.5; margin-bottom:24px; }
.ad-track{ height:6px; background:#484b50; border-radius:3px; overflow:hidden; }
.ad-bar{ height:100%; width:0; background:#9aa0a8; transition:width 1s linear; }
.ad-count{ margin-top:12px; font-size:14px; opacity:.7; }
.ad-claim{ margin-top:16px; font-size:24px; padding:10px 28px; border:0; border-radius:10px; cursor:pointer; color:#0d3318; background:linear-gradient(#3cff6e,#22b04a); }
@media (max-width:760px){ .ad-btn{ display:none; } .cap-left{ display:none; } }

/* ---- Shop (design 1, Army Base) ---- */
.lobby-top{ z-index:3; }
.shop{ position:absolute; inset:0; z-index:2; background:linear-gradient(120deg, #2b3520, #2f3a22 55%, #36422a); }
.shop[hidden]{ display:none; }
.shop-head{ position:absolute; left:24px; top:18px; display:flex; gap:14px; align-items:center; }
.shop-back{ font:inherit; font-weight:900; font-size:15px; color:var(--khaki); background:rgba(0,0,0,.25); border:0; border-radius:8px; padding:8px 14px; cursor:pointer; }
.shop-title{ font-size:44px; color:var(--brass); text-shadow:0 3px 0 rgba(0,0,0,.3); }
.shop-tabs{ position:absolute; left:24px; top:96px; width:180px; display:flex; flex-direction:column; gap:8px; background:var(--olive); border-radius:14px; padding:14px; box-shadow:0 8px 22px rgba(0,0,0,.28); }
.shop-tabs .nb{ font:inherit; font-weight:900; font-size:16px; text-align:left; color:var(--khaki); background:rgba(0,0,0,.25); border:0; border-radius:10px; padding:9px 12px; cursor:pointer; }
.shop-tabs .nb.on{ background:var(--brass); color:#1d2340; }
.shop-main, .shop-side{ position:absolute; top:96px; bottom:24px; overflow:auto; background:var(--olive); border-radius:14px; padding:14px 16px; box-shadow:0 8px 22px rgba(0,0,0,.28); }
.shop-main{ left:228px; right:356px; }
.shop-main.wide{ right:24px; }
.shop-side{ right:24px; width:300px; box-sizing:border-box; }
.shop-side[hidden]{ display:none; }
.shop .h{ font-size:13px; font-weight:900; letter-spacing:2px; text-transform:uppercase; opacity:.85; margin-bottom:10px; display:flex; justify-content:space-between; }
.shop .h b{ color:var(--brass); }
.skin-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:10px; }
.skin-grid.two{ grid-template-columns:1fr 1fr; }
.skin-card{ position:relative; background:rgba(0,0,0,.25); border-radius:10px; padding:26px 6px 8px; text-align:center; border-top:4px solid var(--rar); }
.skin-card img{ height:130px; display:block; margin:0 auto; }
.wrap-card img{ width:100%; height:auto; max-height:110px; object-fit:contain; margin:10px auto; }   /* gun wraps */
.skin-card .rar{ position:absolute; left:6px; top:6px; font-size:10px; font-weight:900; letter-spacing:1px; text-transform:uppercase; padding:1px 6px; border-radius:4px; background:var(--rar); color:#1d2340; }
.skin-card .badge{ position:absolute; left:6px; top:24px; font-size:10px; font-weight:900; padding:1px 6px; border-radius:4px; color:#1d2340; }
.skin-card .badge.season{ background:#ff7a1a; } .skin-card .badge.sport{ background:#3cff6e; }
.skin-card .nm{ font-weight:900; font-size:14px; line-height:1.15; margin-top:2px; min-height:32px; display:grid; place-items:center; }
.skin-card .price{ font:inherit; display:inline-flex; gap:6px; align-items:center; margin-top:4px; font-weight:900; font-size:14px; background:var(--brass); color:#1d2340; border:0; border-radius:999px; padding:3px 12px 3px 4px; cursor:pointer; }
.skin-card .price .coin{ width:20px; height:20px; font-size:9px; }
.skin-card .price.confirm{ background:#3cff6e; padding:5px 12px; }
.skin-card .price.poor{ background:#ff8a6a; padding:5px 12px; }
.skin-card .price.equip{ background:#3cff6e; padding:5px 16px; }
.skin-card .price.locked{ background:rgba(0,0,0,.35); color:#9ff0c4; padding:5px 12px; cursor:default; font-size:12px; }   /* Wild: crates only */
.skin-card .price.owned{ background:rgba(255,255,255,.18); color:var(--khaki); padding:5px 12px; cursor:default; }
.skin-card.is-owned img{ opacity:.85; }
.shop .empty{ font-weight:800; font-size:16px; line-height:1.5; opacity:.85; margin:20px 0; }
.free-list{ display:grid; gap:8px; margin-bottom:16px; }
.free-list div{ display:flex; justify-content:space-between; gap:12px; background:rgba(0,0,0,.25); border-radius:10px; padding:10px 14px; font-weight:800; }
.free-list span{ opacity:.8; text-align:right; }
.ad-btn.big{ font-size:20px; padding:12px 22px; }
.redeem{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:16px; background:rgba(0,0,0,.25); border-radius:10px; padding:10px 14px; font-weight:800; }
.redeem input{ font:inherit; font-weight:800; text-transform:uppercase; flex:1; min-width:120px; padding:8px 10px; border-radius:8px; border:2px solid rgba(255,255,255,.2); background:rgba(0,0,0,.3); color:#fff; }
.redeem button{ font:inherit; font-weight:900; padding:8px 14px; border:0; border-radius:8px; background:linear-gradient(#e8c25a,#b8902e); color:#2a1e05; cursor:pointer; }
@media (max-width:980px){ .shop-side{ display:none; } .shop-main{ right:24px; } }
@media (max-width:760px){
  .shop-tabs{ left:12px; right:12px; top:76px; width:auto; flex-direction:row; flex-wrap:wrap; padding:8px; }
  .shop-tabs .nb{ flex:1; font-size:13px; padding:7px; text-align:center; }
  .shop-main{ left:12px; right:12px; top:180px; bottom:12px; }
  .shop-title{ display:none; }
}

/* ---- Crates ---- */
.crate-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:12px; }
.crate-card{ background:rgba(0,0,0,.25); border-radius:10px; padding:12px; text-align:center; }
.crate-card .nm{ font-weight:900; font-size:15px; margin-bottom:6px; }
.crate-box, .co-box{ position:relative; width:84px; height:70px; margin:4px auto 10px; border-radius:8px; box-shadow:inset 0 -8px 0 rgba(0,0,0,.2), 0 6px 12px rgba(0,0,0,.3); }
.crate-box::before, .co-box::before{ content:''; position:absolute; left:-4px; right:-4px; top:14px; height:10px; background:rgba(0,0,0,.25); border-radius:3px; }
.crate-box::after, .co-box::after{ content:'?'; position:absolute; left:50%; top:54%; transform:translate(-50%,-50%); font-family:'Lilita One'; font-size:30px; color:rgba(255,255,255,.9); text-shadow:0 2px 0 rgba(0,0,0,.3); }
.odds{ display:flex; height:10px; border-radius:5px; overflow:hidden; margin:6px 0; }
.odds i{ display:block; height:100%; }
.odds-list{ display:grid; grid-template-columns:1fr auto; gap:1px 8px; font-size:12px; font-weight:800; text-align:left; text-transform:capitalize; margin-bottom:8px; }
.odds-list i{ display:inline-block; width:8px; height:8px; border-radius:2px; margin-right:5px; }
.crate-card .price{ font:inherit; display:inline-flex; gap:6px; align-items:center; font-weight:900; font-size:15px; background:var(--brass); color:#1d2340; border:0; border-radius:999px; padding:4px 14px 4px 5px; cursor:pointer; }
.crate-card .price .coin{ width:20px; height:20px; font-size:9px; }
.crate-card .price.confirm{ background:#3cff6e; padding:6px 14px; } .crate-card .price.poor{ background:#ff8a6a; padding:6px 14px; }
.crate-note{ font-size:13px; font-weight:800; opacity:.8; margin-top:14px; line-height:1.5; }
.crate-open{ position:absolute; inset:0; z-index:4; display:grid; place-items:center; background:rgba(15,18,10,.88); --glow:#c9a43a; }
.crate-open[hidden]{ display:none; }
.co-box{ width:170px; height:140px; margin:0; }
.co-box::after{ font-size:64px; } .co-box::before{ top:28px; height:18px; }
.co-box.shake{ animation:coshake 1.4s ease-in; }
@keyframes coshake{ 0%{ transform:rotate(0) scale(1);} 20%{ transform:rotate(-6deg);} 30%{ transform:rotate(6deg);} 45%{ transform:rotate(-9deg) scale(1.05);} 55%{ transform:rotate(9deg) scale(1.05);} 70%{ transform:rotate(-12deg) scale(1.1);} 80%{ transform:rotate(12deg) scale(1.12);} 100%{ transform:rotate(0) scale(1.3);} }
.co-flash{ position:absolute; inset:0; background:radial-gradient(circle, #fff 0%, var(--glow) 30%, transparent 70%); opacity:0; pointer-events:none; }
.co-flash.on{ animation:coflash .7s ease-out; }
@keyframes coflash{ from{ opacity:1; } to{ opacity:0; } }
.co-result{ text-align:center; padding:20px 30px; border-radius:18px; background:radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--glow) 45%, transparent), transparent 70%); }
.co-result[hidden]{ display:none; }
.co-result.reveal{ animation:coreveal .45s ease-out; }
@keyframes coreveal{ from{ transform:scale(.6); opacity:0; } to{ transform:scale(1); opacity:1; } }
.co-result img{ height:240px; display:block; margin:0 auto; filter:drop-shadow(0 0 18px var(--glow)); }
.co-rar{ display:inline-block; font-size:13px; font-weight:900; letter-spacing:2px; text-transform:uppercase; padding:2px 10px; border-radius:6px; color:#1d2340; }
.co-name{ font-size:40px; color:#fff; margin:6px 0 2px; text-shadow:0 3px 0 rgba(0,0,0,.4); }
.co-note{ font-weight:900; font-size:17px; color:var(--brass); margin-bottom:14px; }
.co-btns{ display:flex; gap:10px; justify-content:center; }
.co-btns .price{ font:inherit; font-weight:900; font-size:17px; border:0; border-radius:999px; padding:8px 22px; cursor:pointer; }
.co-btns .price.equip{ background:#3cff6e; color:#1d2340; } .co-btns .price.owned{ background:rgba(255,255,255,.18); color:var(--khaki); }
.co-btns .price[hidden]{ display:none; }

/* ---- Pause menu (Esc in a game), Army Base colors ---- */
.pause-menu{ position:fixed; inset:0; z-index:30; display:grid; place-items:center; background:rgba(12,14,8,.55); backdrop-filter:blur(3px); color:#e9e4c9; }
.pause-menu[hidden]{ display:none; }
.pm-box{ width:min(620px,92vw); max-height:88vh; overflow:auto; background:rgba(38,46,28,.95); border:2px solid #c9a43a; border-radius:10px; padding:22px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.pm-title{ font-size:40px; color:#c9a43a; text-align:center; margin-bottom:16px; text-shadow:0 3px 0 rgba(0,0,0,.35); }
.pm-main{ display:grid; gap:10px; }
.pm-main[hidden], .pm-panel[hidden]{ display:none; }
.pm-btn{ font-size:22px; color:#e9e4c9; background:#4a5636; border:0; border-radius:7px; padding:13px 18px; cursor:pointer; text-align:left; box-shadow:0 4px 0 rgba(0,0,0,.3); transition:transform .1s, background .1s; width:100%; }
.pm-btn:hover{ background:#5d6b44; transform:translateY(-1px); }
.pm-resume{ background:#c9a43a; color:#1f2515; font-size:26px; text-align:center; }
.pm-resume:hover{ background:#dcb84a; }
.pm-leave{ background:#7a2f25; }
.pm-leave:hover{ background:#94392c; }
.pm-panel .pm-btn{ margin-top:14px; text-align:center; }
.pm-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(128px,1fr)); gap:8px; }
.pm-pick{ font:inherit; font-weight:900; font-size:15px; color:#e9e4c9; background:#323d25; border:2px solid transparent; border-radius:7px; padding:9px; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:2px; }
.pm-pick small{ font-size:11px; opacity:.75; letter-spacing:.5px; }
.pm-pick:hover{ background:#46532f; }
.pm-pick.on{ border-color:#c9a43a; background:#46532f; }
.pm-grid.skins .pm-pick{ border-bottom:4px solid var(--rar); }
.pm-grid.skins img{ width:100%; aspect-ratio:1; object-fit:contain; background:rgba(0,0,0,.2); border-radius:5px; }
.pm-grid.skins .pm-pick.on small{ color:#c9a43a; opacity:1; }
.pm-note{ grid-column:1/-1; font-size:14px; opacity:.8; margin:6px 0 0; text-align:center; }
.pm-blocks{ font-weight:800; font-size:13px; opacity:.85; text-align:center; margin-top:4px; line-height:1.4; }
.map-timer{ left:50%; top:12px; transform:translateX(-50%); font-size:24px; padding:6px 16px; border-radius:8px; background:rgba(15,20,35,.45); white-space:nowrap; }
.map-timer.on{ color:#9dff8a; }
.map-timer.warn{ color:#ff5a3c; animation:timerBlink .5s steps(2) infinite; }
@keyframes timerBlink{ 50%{ opacity:.35; } }

/* ===== Multiplayer (js/multiplayer.js) ===== */
.mode-note{ margin:6px 0 0; font-size:13px; opacity:.75; }
#rivalTags{ left:0; top:0; }
.rival-tag{ position:absolute; left:0; top:0; font-size:15px; padding:2px 10px; border-radius:999px; background:rgba(0,0,0,.45); white-space:nowrap; will-change:transform; }
.kill-feed{ right:16px; top:150px; display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.feed-line{ font-weight:900; font-size:14px; background:rgba(0,0,0,.45); border-radius:8px; padding:4px 10px; }
.mp-status{ left:50%; top:16%; transform:translateX(-50%); font-weight:900; font-size:16px; background:rgba(0,0,0,.6); border-radius:10px; padding:8px 16px; text-align:center; max-width:90vw; }
.mp-board{ left:50%; top:50%; transform:translate(-50%,-50%); min-width:320px; background:rgba(20,26,18,.88); border:2px solid #c9a43a; border-radius:14px; padding:14px 18px; }
.mp-board #mpRoomName{ font-size:20px; color:var(--sun); margin-bottom:8px; text-align:center; }
.mp-board table{ width:100%; border-collapse:collapse; font-weight:800; }
.mp-board th{ font-size:12px; opacity:.7; text-align:left; padding:4px 8px; }
.mp-board td{ padding:5px 8px; border-top:1px solid rgba(255,255,255,.12); }
.mp-board th:not(:first-child), .mp-board td:not(:first-child){ text-align:center; width:60px; }
.mp-board tr.me td{ color:var(--sun); }

/* ===== Accounts and clans (js/account.js) ===== */
.lobby-nav .nb{ position:relative; }
.red-dot{ position:absolute; top:7px; right:10px; width:13px; height:13px; border-radius:50%; background:#ff2a2a; box-shadow:0 0 0 3px rgba(0,0,0,.3), 0 0 10px #ff2a2a; }
.acct-note{ font-weight:800; opacity:.85; }
.acct-btns{ margin-top:10px; }
.acct-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:20px; }
.req-bar{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; background:rgba(0,0,0,.3); border-left:4px solid #ff2a2a; border-radius:8px; padding:8px 10px; margin-top:8px; font-weight:800; font-size:14px; }
.req-bar span{ flex:1; min-width:140px; }
.req-bar .btn{ font-size:13px; padding:4px 8px; }
.req-bar .btn.yes{ background:#3cff6e; } .req-bar .btn.no{ background:#ff8a7a; }
.clan-asked{ display:flex; align-items:center; gap:8px; margin-top:8px; font-size:13px; font-weight:800; background:rgba(0,0,0,.25); border-radius:8px; padding:8px 10px; }
.clan-asked .btn{ font-size:13px; padding:4px 8px; }
.clan-info{ font-weight:800; font-size:16px; margin-bottom:8px; }
.clan-members{ font-size:13px; opacity:.8; margin-top:4px; }
#clanBtn:disabled{ opacity:.5; cursor:default; }
#clanRequests{ margin-bottom:10px; }
.crown{ margin-left:2px; }

/* ===== Verification badges (shop "Badges" tab, js/shop.js) ===== */
.vbadge{ display:inline-flex; align-items:center; justify-content:center; width:1.05em; height:1.05em; border-radius:50%; font-size:.72em; font-weight:900; color:#fff; vertical-align:.12em; text-shadow:none; line-height:1; }
.vbadge.blue{ background:#1d9bf0; box-shadow:0 0 0 2px rgba(29,155,240,.35); }
.vbadge.gold{ background:linear-gradient(#ffe27a,#d9a21a); color:#3a2a00; box-shadow:0 0 0 2px rgba(255,200,60,.4), 0 0 8px rgba(255,200,60,.6); }
.ctag + .vbadge{ margin-left:-2px; }
.badge-grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 260px)); gap:16px; }
.badge-card{ background:rgba(0,0,0,.25); border-radius:14px; padding:18px 14px; text-align:center; border:2px solid rgba(255,255,255,.08); }
.badge-card.gold{ border-color:rgba(255,200,60,.5); }
.badge-card .big-badge{ font-size:64px; margin:4px auto 10px; }
.badge-card .nm{ font-weight:900; font-size:20px; }
.badge-eg{ background:rgba(0,0,0,.35); border-radius:999px; padding:6px 12px; margin:10px auto 12px; display:inline-block; font-weight:900; }
@media (max-width:520px){ .badge-grid{ grid-template-columns:1fr; } }

/* ===== Locked class (the Marksman, js/stats.js) ===== */
.btn.locked, .pm-pick.locked{ opacity:.55; filter:grayscale(1); }
.btn.locked small, .pm-pick.locked small{ opacity:1 !important; font-weight:900; }

/* ===== Games being played (PLAY tab, Online mode, js/multiplayer.js) ===== */
.room-list{ display:grid; gap:6px; max-height:190px; overflow:auto; }
.room-row{ display:flex; align-items:center; gap:10px; background:rgba(0,0,0,.28); border-radius:8px; padding:7px 10px; }
.room-info{ flex:1; min-width:0; display:flex; flex-direction:column; }
.room-info b{ font-size:15px; }
.room-info small{ font-size:12px; opacity:.7; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.room-count{ font-weight:900; font-size:14px; color:var(--sun); white-space:nowrap; }
.room-row .btn{ font-size:13px; padding:4px 12px; }
.room-row .btn:disabled{ opacity:.5; cursor:default; }
.room-empty{ font-size:13px; opacity:.75; margin:2px 0 0 !important; }

/* ===== Immortal skins (the rarest: js/skins.js "Immortal effects") ===== */
.skin-card.immortal{ background:linear-gradient(160deg, rgba(255,42,74,.22), rgba(40,0,10,.45)); box-shadow:0 0 0 2px var(--rar), 0 0 18px rgba(255,42,74,.55); animation:immortalGlow 2.2s ease-in-out infinite; }
.skin-card.immortal .rar{ color:#fff; text-shadow:0 1px 0 rgba(0,0,0,.4); }
@keyframes immortalGlow{ 50%{ box-shadow:0 0 0 2px #ffd34d, 0 0 30px rgba(255,90,60,.85); } }
.h.immortal-h{ color:#ff6a7a; }
.skin-card.wild{ background:linear-gradient(160deg, rgba(47,214,126,.2), rgba(20,30,15,.45)); box-shadow:0 0 0 2px var(--rar), 0 0 14px rgba(47,214,126,.45); }   /* Wild rarity */
.skin-card.wild .rar{ color:#fff; text-shadow:0 1px 0 rgba(0,0,0,.4); }
.h.wild-h{ color:#5fe8a0; }
.crate-open.immortal .co-rar{ color:#fff; animation:immortalGlow 1s ease-in-out infinite; }
.crate-open.immortal .co-name{ color:#ff6a7a; text-shadow:0 0 18px rgba(255,42,74,.8); }

/* ===== Chat (js/chat.js) ===== */
.chat{ position:fixed; left:18px; bottom:calc(120px + env(safe-area-inset-bottom,0px)); width:min(420px, calc(100vw - 36px)); z-index:6; pointer-events:none; }
body.inlobby .chat{ display:none; }
#chatLines{ display:flex; flex-direction:column; gap:3px; }
.chat-line{ align-self:flex-start; max-width:100%; background:rgba(20,24,16,.55); color:#fff; border-radius:6px; padding:3px 9px; font-weight:800; font-size:15px; line-height:1.3;
  text-shadow:0 1px 0 rgba(0,0,0,.5); overflow-wrap:anywhere; transition:opacity .8s; }
.chat-line.old{ opacity:0; }
.chat.open .chat-line.old{ opacity:1; }
.chat-line .chat-name{ color:#ffd76a; margin-right:6px; }
.chat-line .chat-name::after{ content:':'; }
.chat-line.mine .chat-name{ color:#8fe3ff; }
.chat-line.notice{ color:#d9d4b8; font-style:italic; font-weight:700; }
.chat-input{ pointer-events:auto; width:100%; margin-top:6px; font:inherit; font-weight:800; font-size:16px; color:#fff; background:rgba(20,24,16,.85);
  border:2px solid #c9a43a; border-radius:6px; padding:7px 10px; outline:none; }
.chat-input::placeholder{ color:#bdb79a; }

/* ===== Emote wheel (js/emotes.js) ===== */
.emote-wheel{ position:fixed; left:50%; top:50%; width:min(440px, 92vw); height:min(440px, 92vw); transform:translate(-50%,-50%); z-index:7; border-radius:50%;
  background:radial-gradient(circle, rgba(38,46,28,.55) 0 22%, rgba(38,46,28,.88) 23% 70%, rgba(38,46,28,0) 71%); }
body.inlobby .emote-wheel{ display:none; }
.ew-item{ position:absolute; width:96px; height:84px; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  font:inherit; color:#e9e4c9; background:rgba(0,0,0,.25); border:2px solid transparent; border-radius:14px; cursor:pointer; transition:transform .08s, background .08s; }
.ew-item.on{ background:#c9a43a; color:#1d2340; border-color:#fff3c4; transform:translate(-50%,-50%) scale(1.12); }
.ew-icon{ font-size:30px; line-height:1; }
.ew-name{ font-size:14px; line-height:1.05; text-align:center; }
.ew-key{ font-size:11px; font-weight:900; opacity:.7; }
.ew-mid{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); font-size:18px; color:#c9a43a; text-align:center; max-width:30%; }

/* while emoting (third person) there's no crosshair */
body.emoting #cross{ display:none; }
.aim-note{ left:50%; top:58%; transform:translateX(-50%); font-size:22px; background:rgba(20,24,16,.7); padding:6px 16px; border-radius:8px; }

/* ===== Key binds (lobby CONTROLS tab, js/keybinds.js) ===== */
.bind-help{ margin:6px 0 8px; font-size:13px; font-weight:700; opacity:.85; }
.bind-list{ display:flex; flex-direction:column; gap:4px; }
.bind-row{ display:grid; grid-template-columns:1fr 92px 92px; gap:6px; align-items:center; font-size:14px; font-weight:800; }
.bind-key{ font:inherit; font-size:12px; font-weight:900; color:#1d2340; background:#fff; border:2px solid #1d2340; border-bottom-width:4px; border-radius:7px;
  padding:3px 4px; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bind-key:hover{ background:#fff3c4; }
.bind-key.empty{ color:#8a8f9e; background:#e9e6d8; }
.bind-key.waiting{ background:var(--brass); color:#1d2340; animation:bindBlink .8s ease-in-out infinite; }
@keyframes bindBlink{ 50%{ opacity:.6; } }
.bind-msg{ background:rgba(0,0,0,.3); border-radius:6px; padding:7px 9px; margin:0 0 8px; font-size:13px; font-weight:800; display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.bind-msg .btn{ font-size:13px; padding:3px 10px; }
.bind-reset{ margin:10px 0 12px; font-size:14px; padding:5px 14px; }
.bind-fixed{ margin:0 !important; }
.bind-msg[hidden]{ display:none; }

/* ===== Graphics settings (lobby SETTINGS tab, js/postfx.js) ===== */
.gfx-list{ display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.gfx-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.gfx-name b{ display:block; font-size:14px; font-weight:900; }
.gfx-name small{ display:block; font-size:12px; font-weight:700; opacity:.75; }
.gfx-toggle{ font:inherit; font-size:13px; font-weight:900; min-width:64px; padding:4px 10px; border-radius:999px; cursor:pointer;
  border:2px solid #1d2340; color:#1d2340; background:#e9e6d8; }
.gfx-toggle.on{ background:var(--brass); }
