:root {
  --bg0: #070b10;
  --bg1: #0c1320;
  --panel: rgba(18, 26, 38, 0.66);
  --panel2: rgba(12, 18, 28, 0.72);
  --line: rgba(255, 255, 255, 0.10);
  --line2: rgba(255, 255, 255, 0.18);
  --txt: #eaf1f8;
  --muted: #8a9bb0;
  --accent: #2ee6a0;
  --accent2: #34c6ff;
  --warn: #ffd23f;
  --danger: #ff5b5b;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
body { font-family: var(--font); color: var(--txt); user-select: none; cursor: default; -webkit-font-smoothing: antialiased; }

#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }

/* ===================== overlays ===================== */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }

/* ===================== MENU ===================== */
#menu {
  overflow: auto; padding: 28px 16px;
  background:
    radial-gradient(1100px 600px at 18% -10%, rgba(46,230,160,0.10), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(52,198,255,0.10), transparent 55%),
    linear-gradient(180deg, rgba(7,11,17,0.55), rgba(5,8,13,0.82));
}
.bgfx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bgfx span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.45; }
.bgfx span:nth-child(1) { width: 420px; height: 420px; left: -80px; top: 8%; background: #1f9d6e; animation: float1 14s ease-in-out infinite; }
.bgfx span:nth-child(2) { width: 380px; height: 380px; right: -60px; top: 22%; background: #1f73a8; animation: float2 17s ease-in-out infinite; }
.bgfx span:nth-child(3) { width: 460px; height: 460px; left: 40%; bottom: -160px; background: #2a6e57; animation: float1 20s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-40px) translateX(30px); } }
@keyframes float2 { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(50px) translateX(-30px); } }

.menuInner { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; max-width: 880px; margin: auto; }

.brand { text-align: center; }
.logo {
  font-weight: 900; font-size: clamp(30px, 6vw, 60px); line-height: 0.95; letter-spacing: -1px;
  display: flex; gap: 14px; justify-content: center; align-items: baseline; flex-wrap: wrap;
}
.logo span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tag { margin-top: 8px; color: var(--muted); font-size: 12.5px; letter-spacing: 3px; font-weight: 600; text-transform: uppercase; }

/* creator card */
.creator {
  display: flex; gap: 18px; width: 100%; align-items: stretch; flex-wrap: wrap; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 18px;
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* preview */
.previewBox {
  position: relative; flex: 0 0 300px; max-width: 320px; min-height: 400px; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(46,230,160,0.16), transparent 55%),
    radial-gradient(80% 60% at 50% 110%, rgba(52,198,255,0.18), transparent 60%),
    linear-gradient(180deg, #0e1826, #0a121d);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.previewBox::after { content: ''; position: absolute; left: 50%; bottom: 14%; width: 160px; height: 26px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0,0,0,0.5), transparent); }
#previewCanvas { width: 100%; height: 400px; display: block; cursor: grab; position: relative; z-index: 1; }
#previewCanvas:active { cursor: grabbing; }
.previewBadge {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 10px; font-weight: 800; letter-spacing: 2px;
  color: #06210f; background: linear-gradient(90deg, var(--accent), var(--accent2)); padding: 4px 10px; border-radius: 20px;
}
.previewHint { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2; text-align: center; font-size: 11px; color: var(--muted); }

/* settings panel */
.panel { flex: 1 1 360px; min-width: 300px; max-width: 460px; text-align: left; max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.panel::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 8px; }
.field { margin-bottom: 14px; }
.field label, .panel > label { display: block; font-size: 11px; color: var(--muted); margin: 0 0 8px 2px; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; }

#pname {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2);
  background: rgba(0,0,0,0.35); color: var(--txt); font-size: 16px; font-weight: 600; outline: none; transition: .15s;
}
#pname:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46,230,160,0.15); }
#pname::placeholder { color: var(--muted); }
.nameWarn { display: none; margin-top: 7px; font-size: 12.5px; font-weight: 700; color: var(--danger); }
.nameWarn.show { display: block; }
.shake { animation: shakeX 0.45s; border-color: var(--danger) !important; }
@keyframes shakeX { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }

.chips { display: flex; gap: 8px; }
.typechip, .botchip {
  flex: 1; padding: 11px 6px; border-radius: 12px; border: 1px solid var(--line2);
  background: rgba(255,255,255,0.03); color: var(--txt); cursor: pointer; font-weight: 700; font-size: 13.5px;
  display: flex; align-items: center; justify-content: center; gap: 6px; transition: .14s;
}
.typechip .ti { font-size: 16px; }
.typechip:hover, .botchip:hover { border-color: var(--accent); background: rgba(46,230,160,0.08); transform: translateY(-1px); }
.typechip.on, .botchip.on {
  background: linear-gradient(180deg, rgba(46,230,160,0.9), rgba(46,200,255,0.85));
  border-color: transparent; color: #042015; box-shadow: 0 6px 18px rgba(46,230,160,0.25);
}

/* circular color swatches */
.swrow { display: flex; gap: 9px; flex-wrap: wrap; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.16); cursor: pointer; position: relative; transition: .12s; box-shadow: inset 0 -3px 6px rgba(0,0,0,0.35); }
.sw:hover { transform: scale(1.12); }
.sw.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(46,230,160,0.55), inset 0 -3px 6px rgba(0,0,0,0.35); }
.sw.on::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.7); }

/* deploy button */
.btn {
  width: 100%; margin-top: 6px; padding: 15px 24px; border: none; border-radius: 14px; cursor: pointer;
  font-weight: 900; font-size: 17px; letter-spacing: 1px; color: #052315;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 30px rgba(46,230,160,0.32); transition: .14s; position: relative; overflow: hidden;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(46,230,160,0.42); }
.btn:active { transform: translateY(0); }
.btn.alt { background: rgba(255,255,255,0.08); color: var(--txt); box-shadow: none; border: 1px solid var(--line2); }
.btn.alt:hover { background: rgba(255,255,255,0.14); box-shadow: none; }

.help {
  max-width: 760px; font-size: 12.5px; color: var(--muted); line-height: 2; text-align: center;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; backdrop-filter: blur(10px);
}
.help b { color: var(--txt); background: rgba(255,255,255,0.08); border: 1px solid var(--line2); border-bottom-width: 2px; padding: 1px 7px; border-radius: 6px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; }

/* ===================== HERO / TITLE ===================== */
#hero {
  background:
    radial-gradient(900px 520px at 50% 26%, rgba(6,10,16,0.12), transparent 62%),
    linear-gradient(180deg, rgba(7,11,17,0.30), rgba(5,8,13,0.80));
}
.heroInner { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; position: relative; }

/* shooting FX canvas above the title */
#heroFx { width: min(680px, 92vw); height: 190px; display: block; margin-bottom: -18px; pointer-events: none; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5)); }

/* HUGE 3D bouncing gradient title (2 lines) */
.heroLogo {
  font-family: 'GameFont', var(--font); font-weight: 400;
  display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 0.92;
  text-align: center; margin: 0; position: relative;
}
/* title is rendered as an inline <svg class="heroSvg"> (see index.html) */
@keyframes gmBounce { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-16px) scale(1.015); } }

.heroSvg {
  width: min(900px, 94vw); height: auto; display: block; overflow: visible;
  animation: gmBounce 2.4s ease-in-out infinite;
}

.heroDesc {
  font-family: var(--font); font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  font-size: clamp(10px, 2vw, 14px); color: #9fd8c9; opacity: 0.95; margin-top: 14px;
  background: rgba(8,14,12,0.4); border: 1px solid var(--line); padding: 7px 16px; border-radius: 20px;
}
.heroPlay { width: auto; padding: 17px 70px; font-size: 22px; letter-spacing: 3px; margin-top: 14px; font-family: 'GameFont', var(--font); animation: pulseGlow 2.6s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 12px 30px rgba(46,230,160,0.32); } 50% { box-shadow: 0 16px 48px rgba(46,230,160,0.6); } }

/* $IMBG balance badge (in the hero top bar) */
.puxHero {
  font-family: var(--mono); font-weight: 800; font-size: 14px; color: #b9f5dd;
  background: rgba(46,230,160,0.12); border: 1px solid rgba(46,230,160,0.4);
  padding: 7px 14px; border-radius: 20px; backdrop-filter: blur(8px);
}

/* token bar — single transparent line (no box) */
.tokenline {
  margin-top: 18px; display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; position: relative; background: none; border: none;
  font-family: var(--mono); font-size: 14px; max-width: 96vw;
}
.tkLogo { width: 22px; height: 22px; vertical-align: middle; margin-right: 5px; }
.tkTicker { display: inline-flex; align-items: center; font-family: 'GameFont', var(--font); font-size: 22px; letter-spacing: 1px; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tkDot { color: var(--muted); opacity: 0.6; }
.tkLabel { color: var(--muted); font-weight: 700; }
.tkCa { color: var(--warn); font-weight: 800; letter-spacing: 1px; }
.tkbtn { font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line2); background: rgba(255,255,255,0.06); color: var(--txt); cursor: pointer; transition: .12s; }
.tkbtn:hover { border-color: var(--accent); background: rgba(46,230,160,0.12); }
.tkLaunch { font-family: var(--mono); font-size: 12.5px; color: #bfe9ff; letter-spacing: 0.5px; }
.tkBuy { width: auto; padding: 9px 22px; font-size: 14px; font-family: 'GameFont', var(--font); letter-spacing: 1px; margin: 0; }
.tkToast { position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%); font-size: 12.5px; font-weight: 700; color: var(--accent); background: rgba(8,14,12,0.85); border: 1px solid var(--line2); padding: 5px 12px; border-radius: 10px; opacity: 0; transition: opacity .2s; white-space: nowrap; pointer-events: none; }
.tkToast.show { opacity: 1; }

/* social links */
.socials { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.soc { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: #cfe0ef; background: rgba(255,255,255,0.05); border: 1px solid var(--line2); transition: .14s; text-decoration: none; }
.soc:hover { color: #052315; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(46,230,160,0.3); }

/* hero top bar: balance + identity + claim */
.heroTop { position: absolute; top: 16px; right: 16px; left: 16px; z-index: 4; display: flex; align-items: center; gap: 10px; justify-content: flex-end; pointer-events: none; }
.heroTop > * { pointer-events: auto; }
.idBadge { font-family: var(--mono); font-weight: 700; font-size: 12px; color: #cfe0ef; background: rgba(8,12,18,0.55); border: 1px solid var(--line2); padding: 7px 12px; border-radius: 20px; display: none; }
.idBadge.show { display: inline-block; }
.claimHero { font-family: var(--font); font-weight: 900; font-size: 13px; letter-spacing: 0.5px; padding: 8px 16px; border-radius: 20px; border: none; cursor: pointer; color: #2a1c00; background: linear-gradient(135deg, var(--warn), #ffe98a); box-shadow: 0 6px 20px rgba(255,210,63,0.4); display: none; animation: pulseGlow 2.4s ease-in-out infinite; }
.claimHero.show { display: inline-block; }
.claimHero:hover { filter: brightness(1.07); transform: translateY(-1px); }
.lbHero { font-family: var(--font); font-weight: 900; font-size: 13px; letter-spacing: 0.5px; padding: 8px 14px; border-radius: 20px; border: none; cursor: pointer; color: #04203f; background: linear-gradient(135deg, #7ab8ff, #4a86e8); box-shadow: 0 6px 18px rgba(74,134,232,0.35); }
.lbHero:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* leaderboard rows */
#lbBody { display: flex; flex-direction: column; gap: 6px; }
.lbEmpty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 18px; line-height: 1.6; }
.lbTabs { display: flex; gap: 8px; padding: 12px 20px 0; }
.lbTab { flex: 1; padding: 9px 10px; border-radius: 10px 10px 0 0; border: 1px solid var(--line); border-bottom: none; background: rgba(255,255,255,0.02); color: var(--muted); font: 700 13px/1 inherit; letter-spacing: .5px; cursor: pointer; transition: .15s; }
.lbTab:hover { color: #fff; background: rgba(255,255,255,0.06); }
.lbTab.on { color: #fff; background: rgba(54,110,255,0.18); border-color: rgba(54,110,255,0.55); }
.lbRow { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); font-size: 13.5px; }
.lbRow:nth-child(1) { border-color: rgba(255,210,63,0.5); background: rgba(255,210,63,0.08); }
.lbPos { width: 28px; font-weight: 900; font-family: var(--mono); text-align: center; }
.lbName { flex: 1; font-weight: 700; }
.lbName small { color: var(--muted); font-family: var(--mono); font-weight: 400; font-size: 11px; }
.lbRank { font-family: var(--mono); font-size: 11.5px; font-weight: 700; }
.lbStat { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--warn); text-align: center; white-space: nowrap; line-height: 1.35; }
.lbStat b { color: #ffe98a; }
.lbSlots { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.lbGums { font-family: var(--mono); font-weight: 800; color: var(--accent); white-space: nowrap; text-align: right; line-height: 1.35; }
#endPux { margin-bottom: 22px; }
#endPux .puxEarn { font-family: var(--mono); font-weight: 900; font-size: 22px; color: var(--accent); }
#endPux .puxBonus { color: var(--warn); font-size: 14px; }
#endPux .puxTotal { margin-top: 6px; font-family: var(--mono); font-size: 14px; color: #b9f5dd; }

/* creator header + cta */
.crTitle { font-family: 'GameFont', var(--font); font-size: clamp(26px, 5vw, 44px); font-weight: 400; letter-spacing: 1px; }
.crTitle span { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta { display: flex; gap: 10px; margin-top: 6px; }
.cta .backbtn { width: auto; flex: 0 0 auto; padding: 15px 18px; font-size: 14px; }
.cta .btn:not(.backbtn) { flex: 1; }

/* ===================== HUD ===================== */
#hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; display: none; }

#topbar { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
#topbar .cell {
  min-width: 76px; text-align: center; background: rgba(8,12,18,0.5); border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 14px; backdrop-filter: blur(10px);
}
#topbar .big { font-size: 22px; font-weight: 900; font-family: var(--mono); line-height: 1; }
#topbar .lbl { font-size: 9px; color: var(--muted); letter-spacing: 1.5px; margin-top: 3px; font-weight: 700; }
#topbar .alive { color: var(--accent); }
#topbar .slots { color: #bfe9ff; font-size: 18px; }
#topbar .kills { color: #ff8f6b; }

#ginfo {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%); display: none;
  align-items: center; gap: 8px; font-family: var(--mono); font-weight: 800; font-size: 14px; color: #fff;
  background: rgba(8,12,18,0.6); border: 1px solid rgba(255,210,63,0.55); padding: 8px 18px; border-radius: 22px;
  backdrop-filter: blur(8px); box-shadow: 0 0 26px rgba(255,210,63,0.28);
}
#ginfo .gv { color: var(--warn); }

#miniWrap { position: absolute; top: 14px; right: 14px; text-align: center; }
#mini { width: 172px; height: 172px; border: 1px solid var(--line2); border-radius: 14px; background: #0c1a14; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
#zoneTxt { margin-top: 7px; font-size: 12px; font-weight: 600; color: #bfe9ff; background: rgba(8,12,18,0.55); padding: 4px 10px; border-radius: 20px; display: inline-block; border: 1px solid var(--line); }

#killfeed { position: absolute; top: 70px; left: 16px; width: 290px; font-size: 13px; display: flex; flex-direction: column; gap: 5px; }
.kf { background: rgba(8,12,18,0.5); border: 1px solid var(--line); padding: 5px 11px; border-radius: 10px; backdrop-filter: blur(6px); }
.kf span { color: var(--accent); margin: 0 5px; }
.kf.hot { background: rgba(120,30,20,0.5); border-color: rgba(255,90,60,0.4); }

#cross { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; transform: translate(-50%,-50%); border: 2px solid rgba(255,255,255,0.9); border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 0 6px rgba(0,0,0,0.5); }
#hitmarker { position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; transform: translate(-50%,-50%) rotate(45deg); opacity: 0; }
#hitmarker:before, #hitmarker:after { content: ''; position: absolute; background: #ff5a3c; }
#hitmarker:before { left: 50%; top: 0; width: 3px; height: 26px; transform: translateX(-50%); }
#hitmarker:after { top: 50%; left: 0; height: 3px; width: 26px; transform: translateY(-50%); }

/* bottom-left: health card */
#health { position: absolute; left: 18px; bottom: 18px; width: 300px; background: rgba(8,12,18,0.5); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; backdrop-filter: blur(10px); }
.bar { height: 12px; background: rgba(0,0,0,0.45); border-radius: 8px; overflow: hidden; margin-top: 8px; position: relative; }
#armRow { height: 8px; }
.bar i { display: block; height: 100%; width: 100%; border-radius: 8px; transition: width .12s; }
#hpFill { background: linear-gradient(90deg, #28d07a, #6dffb0); }
#armFill { background: linear-gradient(90deg, #2e86de, #6fc3ff); }
#hpNum { position: absolute; right: 8px; top: -19px; font-size: 13px; font-weight: 800; font-family: var(--mono); text-shadow: 0 1px 2px #000; }

/* bottom-right: weapon card */
#weapon { position: absolute; right: 18px; bottom: 18px; text-align: right; background: rgba(8,12,18,0.5); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; backdrop-filter: blur(10px); min-width: 200px; }
#wpnName { font-size: 24px; font-weight: 900; letter-spacing: 0.5px; }
#ammoRow { font-size: 15px; margin-top: 2px; font-family: var(--mono); }
#ammoMag { font-size: 30px; font-weight: 900; color: var(--warn); }
#ammoRes { color: var(--muted); font-size: 15px; }
#slots { display: flex; gap: 7px; justify-content: flex-end; margin-top: 9px; }
.slot { font-size: 12px; padding: 5px 10px; border-radius: 9px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.slot.on { background: linear-gradient(180deg, var(--accent), var(--accent2)); border-color: transparent; color: #052315; }
#healBox { margin-top: 9px; font-size: 13px; color: #cfe3ff; }
#gearBox { margin-top: 4px; font-size: 12.5px; color: #7fe6d8; min-height: 16px; }

#prompt { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); background: rgba(8,12,18,0.62); border: 1px solid var(--line2); padding: 9px 18px; border-radius: 30px; font-size: 15px; display: none; backdrop-filter: blur(8px); }
#prompt b { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #052315; padding: 2px 9px; border-radius: 7px; font-weight: 900; font-family: var(--mono); }

#healBar { display: none; position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); width: 220px; height: 12px; background: rgba(0,0,0,0.55); border: 1px solid var(--line2); border-radius: 8px; z-index: 21; }
#healBar i { display: block; height: 100%; width: 0%; border-radius: 8px; background: linear-gradient(90deg, #28d07a, #6dffb0); transition: width .08s; }
#healBar::after { content: '💊 HEALING…'; position: absolute; left: 0; right: 0; top: -18px; text-align: center; font-size: 11px; font-weight: 800; color: var(--accent); }

#hurt { position: fixed; inset: 0; z-index: 18; pointer-events: none; opacity: 0; box-shadow: inset 0 0 220px 70px rgba(200,20,20,0.9); transition: opacity .1s; }

#pauseHint { position: fixed; inset: 0; z-index: 22; display: none; align-items: center; justify-content: center; background: rgba(4,8,12,0.45); font-size: 20px; font-weight: 800; pointer-events: none; letter-spacing: 1px; backdrop-filter: blur(2px); }

/* lobby / drop banner */
#dropInfo { position: absolute; left: 50%; top: 19%; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
#dropInfo .dropbig {
  font-size: 30px; font-weight: 900; letter-spacing: 1px; padding: 8px 22px; border-radius: 16px;
  background: rgba(6,10,16,0.72); border: 1px solid var(--line2); backdrop-filter: blur(10px);
  color: #ffffff; text-shadow: 0 2px 7px rgba(0,0,0,0.95), 0 0 2px rgba(0,0,0,0.95);   /* was a blue gradient — hard to read on grass/sky */
}
#dropInfo .dropsub { font-size: 14px; color: var(--txt); background: rgba(8,12,18,0.55); padding: 6px 14px; border-radius: 20px; border: 1px solid var(--line); }
#dropInfo b { color: var(--warn); }

/* scope / teropong overlay */
#scopeOverlay { position: fixed; inset: 0; z-index: 19; pointer-events: none; display: none; background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 26%, rgba(0,0,0,0.55) 30%, rgba(0,0,0,0.97) 42%); }
#scopeOverlay:before, #scopeOverlay:after { content: ''; position: absolute; background: rgba(46,230,160,0.7); }
#scopeOverlay:before { left: 50%; top: 50%; width: 1px; height: 28vh; transform: translate(-50%,-50%); }
#scopeOverlay:after { left: 50%; top: 50%; height: 1px; width: 28vw; transform: translate(-50%,-50%); }

/* ===================== END SCREEN ===================== */
#endScreen { background: radial-gradient(1000px 600px at 50% 0%, rgba(46,230,160,0.08), transparent), rgba(4,8,12,0.86); backdrop-filter: blur(8px); display: none; }
#endTitle { font-size: clamp(30px, 5.5vw, 62px); font-weight: 900; letter-spacing: 1px; margin-bottom: 14px; }
#endTitle.win { background: linear-gradient(90deg, var(--warn), #ffe98a); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 40px rgba(255,210,60,0.4); }
#endTitle.lose { color: var(--danger); text-shadow: 0 0 40px rgba(255,40,40,0.35); }
#endStats { font-size: 17px; color: var(--muted); margin-bottom: 26px; font-family: var(--mono); }
#endBtns { display: flex; gap: 12px; }
#endBtns .btn { width: auto; padding: 13px 28px; }

/* ===================== LOBBY NAVBAR ===================== */
#lobbyNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: none;
  align-items: center; gap: 14px; padding: 12px 18px;
  background: linear-gradient(180deg, rgba(6,10,16,0.85), rgba(6,10,16,0));
}
#lobbyNav.show { display: flex; }
.lnBrand { font-family: 'GameFont', var(--font); font-size: 20px; letter-spacing: 1px; color: #bfe9ff; }
.lnBtns { display: flex; gap: 10px; margin: 0 auto; }
.lnBtn {
  font-family: var(--font); font-weight: 800; font-size: 14px; letter-spacing: 0.5px;
  padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line2);
  background: rgba(18,26,38,0.8); color: var(--txt); cursor: pointer; transition: .14s; backdrop-filter: blur(8px);
}
.lnBtn:hover { border-color: var(--accent); background: rgba(46,230,160,0.16); transform: translateY(-1px); }
.lnBtn.danger { border-color: rgba(255,91,91,0.5); color: #ffb3b3; }
.lnBtn.danger:hover { border-color: var(--danger); background: rgba(255,91,91,0.18); }
.lnBal { font-family: var(--mono); font-weight: 800; font-size: 14px; color: #b9f5dd;
  background: rgba(46,230,160,0.12); border: 1px solid rgba(46,230,160,0.4); padding: 8px 14px; border-radius: 20px; }

/* ===================== MODALS (how-to / shop) ===================== */
.modal {
  position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center;
  background: rgba(4,8,12,0.72); backdrop-filter: blur(6px); padding: 20px;
}
.modal.show { display: flex; }
.modalCard {
  width: min(760px, 96vw); max-height: 90vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0e1826, #0a121d); border: 1px solid var(--line2); border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6); overflow: hidden;
}
.modalHead {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line);
  font-family: 'GameFont', var(--font); font-size: 22px; letter-spacing: 1px; color: var(--txt);
}
.modalHead .shopBal { margin-left: auto; font-family: var(--mono); font-size: 14px; color: #b9f5dd;
  background: rgba(46,230,160,0.12); border: 1px solid rgba(46,230,160,0.4); padding: 6px 12px; border-radius: 16px; letter-spacing: 0; }
.modalX { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line2);
  background: rgba(255,255,255,0.05); color: var(--txt); font-size: 16px; cursor: pointer; transition: .12s; }
.modalHead .shopBal + .modalX { margin-left: 10px; }
.modalX:hover { background: rgba(255,91,91,0.2); border-color: var(--danger); }
.modalBody { padding: 18px 20px; overflow-y: auto; text-align: left; }
.modalFoot { padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); text-align: center; }

/* how-to content */
.htCols { display: flex; gap: 22px; flex-wrap: wrap; }
.htCol { flex: 1 1 280px; }
.htCol h4 { font-size: 12px; letter-spacing: 2px; color: var(--accent); margin: 6px 0 8px; text-transform: uppercase; }
.htCol ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.htCol li { font-size: 13.5px; color: #cfe0ef; line-height: 1.4; }
.htCol li b { color: var(--txt); background: rgba(255,255,255,0.08); border: 1px solid var(--line2); padding: 1px 7px; border-radius: 6px; font-family: var(--mono); font-size: 11.5px; }
.htScore { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.scoreCard { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line2); font-size: 13px; font-weight: 700; }
.scoreCard b { font-family: var(--mono); font-size: 22px; font-weight: 900; }
.scoreCard span { font-size: 12px; color: var(--muted); font-weight: 600; }
.scoreCard.win { background: rgba(255,210,63,0.1); border-color: rgba(255,210,63,0.45); color: var(--warn); }
.scoreCard.lose { background: rgba(255,91,91,0.1); border-color: rgba(255,91,91,0.4); color: #ff9b9b; }
.htFlow { margin-top: 14px; text-align: center; font-family: var(--mono); font-size: 12px; color: #bfe9ff; background: rgba(8,12,18,0.6); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }

/* equipment guide grid */
#equipGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.eqItem { background: rgba(255,255,255,0.03); border: 1px solid var(--line2); border-radius: 14px; padding: 10px; text-align: center; }
.eqItem img { width: 92px; height: 92px; display: block; margin: 0 auto 4px; image-rendering: auto; }
.eqNoimg { font-size: 54px; height: 92px; line-height: 92px; }
.eqName { font-weight: 900; font-size: 13px; margin-bottom: 3px; }
.eqDesc { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

/* shop grid */
.shopHint { font-size: 13px; color: var(--muted); margin-bottom: 14px; text-align: center; }
#shopGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shopItem { background: rgba(255,255,255,0.03); border: 1px solid var(--line2); border-radius: 14px; padding: 14px 12px; text-align: center; transition: .14s; }
.shopItem:hover { border-color: var(--accent); transform: translateY(-2px); }
.shopItem .si { font-size: 38px; line-height: 1; }
.shopItem .sn { font-weight: 800; font-size: 14px; margin: 8px 0 2px; }
.shopItem .sp { font-family: var(--mono); font-size: 13px; color: var(--warn); margin-bottom: 10px; }
.shopItem .sbtn { width: 100%; padding: 9px 0; border-radius: 10px; border: none; cursor: pointer; font-weight: 900; font-size: 13px; letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #052315; transition: .12s; }
.shopItem .sbtn:hover { filter: brightness(1.08); }
.shopItem .sbtn.owned { background: rgba(255,255,255,0.08); color: var(--txt); border: 1px solid var(--line2); }
.shopItem .sbtn.equipped { background: rgba(46,230,160,0.18); color: var(--accent); border: 1px solid var(--accent); }
.shopItem .sbtn.locked { background: rgba(255,255,255,0.05); color: var(--muted); cursor: not-allowed; }
.shopItem.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(46,230,160,0.25); }

/* ===================== INTRO CONVERSATION ===================== */
#intro {
  background:
    radial-gradient(900px 520px at 50% 30%, rgba(6,10,16,0.18), transparent 62%),
    linear-gradient(180deg, rgba(7,11,17,0.45), rgba(5,8,13,0.85));
}
.introChat { display: flex; align-items: flex-end; gap: 18px; max-width: min(820px, 94vw); padding: 16px; }
.introAvatar {
  flex: 0 0 200px; width: 200px; height: 220px; border-radius: 18px; overflow: hidden; position: relative;
  background: radial-gradient(120% 90% at 50% 0%, rgba(46,230,160,0.18), transparent 60%), linear-gradient(180deg, #0e1826, #0a121d);
  border: 1px solid var(--line2); box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#talkerCanvas { width: 200px; height: 220px; display: block; }
.introBubble {
  flex: 1 1 auto; min-width: 280px; background: var(--panel); border: 1px solid var(--line2); border-radius: 18px;
  padding: 18px 20px; text-align: left; backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); position: relative;
}
.introName { font-family: 'GameFont', var(--font); font-size: 18px; letter-spacing: 1px; color: var(--accent); margin-bottom: 8px; }
.introText { font-size: 17px; line-height: 1.55; color: var(--txt); min-height: 78px; }
.introDots { display: flex; gap: 6px; margin: 12px 0 4px; }
.introDots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); transition: .2s; }
.introDots i.on { background: var(--accent); transform: scale(1.2); }
.introBtns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.introBtns .btn { width: auto; padding: 11px 22px; font-size: 14px; margin: 0; }

/* ===================== WALLET GATE ===================== */
.gateCard { width: min(440px, 94vw); }
.gateHint { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 16px; line-height: 1.5; }
.gateBtn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px;
  padding: 15px 20px; border-radius: 14px; cursor: pointer; font-weight: 900; font-size: 16px; letter-spacing: 0.5px; transition: .14s; border: none;
}
.gateBtn .gi { font-size: 20px; }
.gateBtn.phantom { background: linear-gradient(135deg, #ab9ff2, #6f5bd6); color: #fff; box-shadow: 0 10px 26px rgba(120,90,220,0.4); }
.gateBtn.guest { background: rgba(255,255,255,0.07); color: var(--txt); border: 1px solid var(--line2); }
.gateBtn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.gateNote { font-size: 12px; color: var(--warn); text-align: center; margin-top: 4px; line-height: 1.5; }
.gateNote b { color: #ffe98a; }
.gateBackBtn { margin-top: 14px; }

/* ===================== CLAIM ===================== */
.claimBig { font-family: var(--mono); font-weight: 900; font-size: 30px; color: var(--accent); text-align: center; margin-bottom: 6px; }
.claimReq { font-size: 13px; text-align: center; margin-bottom: 16px; }
.claimReq.ok { color: var(--accent); }
.claimReq.no { color: var(--warn); }
.claimLbl { display: block; font-size: 11px; letter-spacing: 2px; color: var(--muted); font-weight: 700; margin: 0 0 8px 2px; text-transform: uppercase; }
#claimWallet {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2);
  background: rgba(0,0,0,0.35); color: var(--txt); font-size: 14px; font-family: var(--mono); outline: none; margin-bottom: 14px;
}
#claimWallet:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46,230,160,0.15); }
#claimGo[disabled] { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.4); }
.claimOk { font-family: 'GameFont', var(--font); font-size: 22px; color: var(--accent); text-align: center; margin-bottom: 10px; }
.claimMsg { font-size: 13.5px; color: var(--muted); text-align: center; margin-bottom: 12px; line-height: 1.5; }
.claimCode { font-family: var(--mono); font-weight: 900; font-size: 22px; letter-spacing: 2px; color: var(--warn); text-align: center; background: rgba(255,210,63,0.1); border: 1px dashed rgba(255,210,63,0.5); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.claimMsg2 { font-size: 12.5px; color: var(--accent); text-align: center; margin-top: 10px; }

/* ===================== COMBAT JUICE ===================== */
#killBanner, #streakBanner { position: fixed; left: 50%; z-index: 24; pointer-events: none; font-family: 'GameFont', var(--font); text-align: center; white-space: nowrap; opacity: 0; transform: translateX(-50%) scale(0.8); transition: opacity .15s ease-out, transform .15s ease-out; }
#killBanner { top: 25%; font-size: clamp(20px, 3.6vw, 38px); color: #fff; text-shadow: 0 0 14px rgba(255,60,60,0.85), 0 3px 8px #000; }
#streakBanner { top: 32%; font-size: clamp(16px, 3vw, 30px); color: var(--warn); text-shadow: 0 0 16px rgba(255,210,60,0.9), 0 3px 8px #000; }
#killBanner.show, #streakBanner.show { opacity: 1; transform: translateX(-50%) scale(1); }

#fx { position: fixed; inset: 0; z-index: 23; pointer-events: none; overflow: hidden; }
.dmgNum { position: absolute; font-family: var(--mono); font-weight: 900; font-size: 20px; color: #fff; text-shadow: 0 2px 4px #000, 0 0 8px rgba(255,90,70,0.85); animation: dmgFloat .85s ease-out forwards; }
@keyframes dmgFloat { 0% { opacity: 0; transform: translate(-50%,-50%) scale(0.6); } 15% { opacity: 1; transform: translate(-50%,-95%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%,-200%) scale(1); } }

#lowhp { position: fixed; inset: 0; z-index: 17; pointer-events: none; opacity: 0; box-shadow: inset 0 0 200px 64px rgba(200,0,0,0.55); }
#lowhp.show { animation: hpPulse 0.9s ease-in-out infinite; }
@keyframes hpPulse { 0%,100% { opacity: 0.12; } 50% { opacity: 0.6; } }

/* molotov throw-power charge bar */
#moloBar { display: none; position: absolute; left: 50%; bottom: 174px; transform: translateX(-50%); width: 200px; height: 12px; background: rgba(0,0,0,0.55); border: 1px solid var(--line2); border-radius: 8px; z-index: 60; }
#moloBar i { display: block; height: 100%; width: 0%; border-radius: 8px; background: linear-gradient(90deg, #ff7a2a, #ffd23f); }
#moloBar::after { content: '🔥 THROW POWER'; position: absolute; left: 0; right: 0; top: -18px; text-align: center; font-size: 11px; font-weight: 800; color: #ff9a4a; }
body.touch #moloBar { bottom: 270px; width: min(180px, 46vw); }

/* red OUT-OF-ZONE warning */
#zoneWarn { position: fixed; inset: 0; z-index: 18; pointer-events: none; display: none; }
#zoneWarn.show { display: block; }
#zoneWarn::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 170px 56px rgba(225,18,30,0.62); animation: zoneWarnPulse 0.7s ease-in-out infinite; }
#zoneWarn .zwTxt { position: absolute; top: 14%; left: 50%; transform: translateX(-50%); background: rgba(175,12,22,0.9); color: #fff; font-weight: 900; padding: 8px 18px; border-radius: 10px; letter-spacing: 0.5px; font-size: 15px; white-space: nowrap; box-shadow: 0 4px 18px rgba(0,0,0,0.45); }
@keyframes zoneWarnPulse { 0%, 100% { opacity: 0.32; } 50% { opacity: 0.9; } }
@media (max-width: 540px) { #zoneWarn .zwTxt { font-size: 12px; padding: 6px 12px; top: 22%; } }

/* ===== SQUAD: lobby panel ===== */
#squadPanel { display: none; position: fixed; left: 16px; top: 50%; transform: translateY(-50%); width: 268px; max-width: 80vw; background: rgba(12,16,22,0.92); border: 1px solid var(--line2); border-radius: 16px; padding: 14px; z-index: 45; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
#squadPanel.show { display: block; }
.sqHead { font-weight: 900; font-size: 15px; margin-bottom: 10px; }
.sqHead small { color: var(--muted); font-weight: 700; font-size: 11px; }
.sqModes { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.sqMode { flex: 1; min-width: 56px; padding: 8px 6px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255,255,255,0.04); color: var(--txt); font-weight: 800; font-size: 12px; cursor: pointer; }
.sqMode.on { background: linear-gradient(180deg, #46e06a, #28b050); color: #06140b; border-color: #46e06a; }
.sqMine { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.sqMine b { color: #46e06a; }
.sqSlots { display: flex; flex-direction: column; gap: 6px; }
.sqSlot { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; font-weight: 700; font-size: 13px; border: 1px solid var(--line2); background: rgba(255,255,255,0.03); }
.sqSlot.you { border-color: #46e06a; }
.sqSlot.mate { color: #9be8a0; }
.sqSlot.add { background: rgba(70,224,106,0.1); border: 1px dashed #46e06a; color: #9be8a0; cursor: pointer; justify-content: center; }
.sqSlot.add:hover { background: rgba(70,224,106,0.2); }
.sqSlot small { color: var(--muted); font-weight: 600; }
.sqX { background: rgba(255,80,80,0.18); border: none; color: #ff9a9a; border-radius: 6px; width: 22px; height: 22px; cursor: pointer; font-weight: 900; }
.sqNote { margin-top: 10px; font-size: 11px; color: var(--muted); line-height: 1.4; }
.sqRoom { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line2); font-size: 12px; }
.sqRoomLine { display: flex; gap: 6px; margin-top: 6px; }
#sqRoomIn { flex: 1; min-width: 0; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line2); background: rgba(255,255,255,0.05); color: var(--txt); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
#sqRoomJoin { padding: 7px 12px; border-radius: 8px; border: 1px solid #5aa9ff; background: rgba(90,169,255,0.18); color: #bfe0ff; font-weight: 800; cursor: pointer; }
.sqRoomStat { margin: 4px 0 8px; font-size: 11px; color: #9be8a0; font-weight: 700; min-height: 14px; }

/* room picker cards */
.chips.rooms .botchip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; }
.chips.rooms .rm { font-weight: 900; font-size: 13px; }

/* multiplayer notice toast (room full / server busy) */
#mpNotice { display: none; position: fixed; left: 50%; top: 8%; transform: translateX(-50%); z-index: 23; background: rgba(20,16,10,0.92); border: 1px solid #ffb24a; color: #ffd79a; font-weight: 800; font-size: 13px; padding: 8px 16px; border-radius: 10px; box-shadow: 0 4px 18px rgba(0,0,0,0.5); pointer-events: none; white-space: nowrap; }

/* ===== SQUAD: in-match HUD ===== */
#squadHud { display: none; position: absolute; left: 12px; top: 120px; z-index: 16; width: 168px; }
.sqRow { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; background: rgba(0,0,0,0.4); border-radius: 8px; padding: 4px 7px; }
.sqRow.down { outline: 1px solid #ff5a5a; }
.sqName { font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 0 78px; }
.sqRow.down .sqName { color: #ff8a8a; }
.sqBar { flex: 1; height: 7px; background: rgba(255,255,255,0.15); border-radius: 5px; overflow: hidden; }
.sqBar i { display: block; height: 100%; background: linear-gradient(90deg,#46e06a,#9be86a); }
.sqRow.down .sqBar i { background: #ff5a5a; }

/* revive bar */
#reviveBar { display: none; position: absolute; left: 50%; bottom: 210px; transform: translateX(-50%); width: 240px; height: 14px; background: rgba(0,0,0,0.6); border: 1px solid #46e06a; border-radius: 8px; z-index: 22; }
#reviveBar i { display: block; height: 100%; width: 0%; border-radius: 8px; background: linear-gradient(90deg,#46e06a,#9be86a); }
#reviveBar #reviveTxt { position: absolute; left: 0; right: 0; top: -20px; text-align: center; font-size: 12px; font-weight: 800; color: #9be8a0; white-space: nowrap; }
body.touch #reviveBar { bottom: 300px; }

/* downed overlay */
#downedOverlay { display: none; position: fixed; inset: 0; z-index: 19; pointer-events: none; }
#downedOverlay.show { display: block; }
#downedOverlay::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 180px 70px rgba(180,10,20,0.55); animation: zoneWarnPulse 1s ease-in-out infinite; }
#downedOverlay .doInner { position: absolute; top: 30%; left: 50%; transform: translateX(-50%); text-align: center; color: #fff; font-weight: 900; font-size: 22px; text-shadow: 0 2px 10px rgba(0,0,0,0.7); }
#downedOverlay #doSub { font-size: 13px; font-weight: 700; color: #ffd0d0; }
#downedOverlay #doTimer { font-size: 14px; color: #ffe066; }
@media (max-width: 540px) { #squadHud { top: 330px; width: 140px; } #downedOverlay .doInner { font-size: 17px; } }

#zoneArrow { position: fixed; left: 50%; top: 62%; z-index: 23; pointer-events: none; font-size: 40px; color: #4aa6ff; text-shadow: 0 0 12px rgba(74,166,255,0.9), 0 2px 6px #000; display: none; }

#controlsHint { position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%); z-index: 23; pointer-events: none; max-width: 92vw; text-align: center; font-size: 13px; line-height: 1.6; color: #dfe9f5; background: rgba(8,12,18,0.72); border: 1px solid var(--line2); border-radius: 22px; padding: 9px 18px; opacity: 0; transition: opacity .4s; backdrop-filter: blur(8px); }
#controlsHint.show { opacity: 1; }
#controlsHint b { color: var(--warn); font-family: var(--mono); font-size: 11.5px; }

/* mission tracker */
#missionHud { position: absolute; top: 232px; right: 14px; width: 190px; background: rgba(8,12,18,0.5); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: 11.5px; display: none; backdrop-filter: blur(6px); }
.mTitle { font-weight: 800; letter-spacing: 1.5px; color: var(--accent); font-size: 10.5px; margin-bottom: 5px; }
.mRow { color: #cfe0ef; line-height: 1.55; }
.mRow.done { color: var(--accent); opacity: 0.9; }
.mRow b { color: var(--warn); font-family: var(--mono); }

/* hero rank badge */
.rankBadge { font-family: var(--mono); font-weight: 800; font-size: 13px; color: #dfe9f5; background: rgba(8,12,18,0.55); border: 1px solid var(--line2); padding: 7px 12px; border-radius: 20px; display: none; }
.rankBadge.show { display: inline-block; }

/* settings */
.setLbl { display: block; font-size: 11px; letter-spacing: 1.5px; color: var(--muted); font-weight: 700; margin: 16px 0 8px; text-transform: uppercase; }
.setLbl:first-child { margin-top: 0; }
#settings input[type=range] { width: 100%; accent-color: var(--accent); cursor: pointer; }
.setNote { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 16px; }

/* end-screen progression */
#endPux .endMissions { margin-top: 8px; font-size: 13px; color: #cfe0ef; }
#endPux .endMissions b { color: var(--accent); font-family: var(--mono); }
#endPux .endXp { margin-top: 6px; font-size: 13.5px; color: #bfe9ff; font-family: var(--mono); }

/* ===================== TOUCH CONTROLS (mobile) ===================== */
html, body { touch-action: none; overscroll-behavior: none; }
#touchUI { position: fixed; inset: 0; z-index: 25; pointer-events: none; display: none; }
body.touch #touchUI { display: block; }
/* floating joystick (positioned by JS where you press) */
#joy { position: fixed; width: 116px; height: 116px; border-radius: 50%; display: none; pointer-events: none;
  background: radial-gradient(circle, rgba(46,230,160,0.10), rgba(8,12,18,0.35)); border: 2px solid rgba(46,230,160,0.4); }
#joyKnob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #6dffb0, #2ee6a0); box-shadow: 0 4px 14px rgba(0,0,0,0.5); }
/* action buttons cluster (bottom-right) */
#tbtns { position: fixed; right: 12px; bottom: 14px; width: 250px; display: flex; flex-wrap: wrap-reverse; flex-direction: row-reverse; gap: 10px; justify-content: flex-start; align-items: flex-end; }
.tbtn { pointer-events: auto; width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--line2);
  background: rgba(18,26,38,0.6); color: #eaf1f8; font-size: 24px; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-user-select: none; user-select: none; touch-action: none; transition: transform .06s, background .12s; }
.tbtn.on { transform: scale(0.9); background: rgba(46,230,160,0.3); border-color: var(--accent); }
.tbtn.needs { animation: reloadPulse 0.7s ease-in-out infinite; border-color: #ffd23f; color: #ffd23f; }

/* 🏆 VICTORY LAP banner — overlay while the game keeps running (pointer-events off so you can still play) */
#winCele { position: fixed; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; pointer-events: none; text-align: center; }
.wcInner { animation: wcPop 0.5s cubic-bezier(.2,1.5,.4,1) both; padding: 0 16px; }
.wcConfetti { font-size: clamp(26px, 6vw, 56px); letter-spacing: 6px; animation: wcBob 1.3s ease-in-out infinite; }
.wcBig { margin-top: 6px; font-weight: 900; font-size: clamp(32px, 8vw, 92px); line-height: 1.02; letter-spacing: 1px; color: #ffd23f; text-shadow: 0 3px 0 #a9701a, 0 0 28px rgba(255,210,63,0.65), 0 8px 34px rgba(0,0,0,0.6); animation: wcGlow 1.4s ease-in-out infinite; }
.wcSub { margin-top: 14px; font-size: clamp(13px, 2.4vw, 22px); font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
@keyframes wcPop { 0% { transform: scale(0.55); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes wcBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes wcGlow { 0%,100% { text-shadow: 0 3px 0 #a9701a, 0 0 22px rgba(255,210,63,0.5), 0 8px 34px rgba(0,0,0,0.6); } 50% { text-shadow: 0 3px 0 #a9701a, 0 0 40px rgba(255,210,63,0.95), 0 8px 34px rgba(0,0,0,0.6); } }
@keyframes reloadPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,210,63,0.0); transform: scale(1); } 50% { box-shadow: 0 0 18px 4px rgba(255,210,63,0.7); transform: scale(1.08); } }
.tbtn.fire { width: 92px; height: 92px; font-size: 38px; background: rgba(200,40,40,0.32); border-color: rgba(255,90,90,0.6); }
.tbtn.fire.on { background: rgba(255,60,60,0.5); }
#cleanToggle { position: fixed; top: 12px; left: 12px; z-index: 60; display: none; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line2); background: rgba(8,12,18,0.6); color: #cfe0ef; font-size: 18px; cursor: pointer; backdrop-filter: blur(6px); pointer-events: auto; }
#cleanToggle:hover { border-color: var(--accent); }
/* CLEAN MODE: hide the info HUD only — KEEP the play controls (joystick/buttons) + crosshair so you can still play */
body.clean #topbar, body.clean #health, body.clean #weapon, body.clean #miniWrap,
body.clean #missionHud, body.clean #killfeed, body.clean #ginfo, body.clean #prompt,
body.clean #controlsHint, body.clean #dropInfo, body.clean #reviveBar, body.clean #squadHud { display: none !important; }
body.clean #cleanToggle { opacity: 0.4; }
@media (max-width: 540px) {
  .tbtn { width: 52px; height: 52px; font-size: 21px; }
  .tbtn.fire { width: 78px; height: 78px; font-size: 32px; }
  #tbtns { width: 200px; }
}

/* ===== MOBILE HUD layout: keep info up top so it never sits under the touch controls ===== */
body.touch #cleanToggle { top: 8px; left: 8px; }
body.touch #topbar { top: 8px; transform: scale(0.9); }
body.touch #topbar .cell { min-width: 60px; padding: 5px 10px; }
body.touch #miniWrap { top: 8px; right: 8px; }
body.touch #mini { width: 116px; height: 116px; }
body.touch #zoneTxt { font-size: 10px; padding: 3px 7px; }
body.touch #health { left: 56px; top: 8px; bottom: auto; width: min(150px, 38vw); padding: 8px 10px; }
body.touch #weapon { left: 56px; right: auto; top: 70px; bottom: auto; min-width: 130px; text-align: left; padding: 8px 10px; }
body.touch #wpnName { font-size: 18px; }
body.touch #ammoMag { font-size: 22px; }
body.touch #slots { justify-content: flex-start; }
body.touch #missionHud { top: 138px; right: 8px; width: 150px; font-size: 10.5px; }
body.touch #killfeed { top: 150px; left: 8px; width: 180px; font-size: 11px; }
body.touch #prompt { bottom: 180px; font-size: 13px; }
body.touch #healBar { bottom: 200px; }
/* small phones: shrink a bit more */
@media (max-width: 430px) {
  body.touch #health { width: 34vw; }
  body.touch #weapon { min-width: 110px; }
  body.touch #missionHud { display: none; }
}

@media (max-width: 720px) {
  .introChat { flex-direction: column; align-items: center; }
  .introAvatar { flex-basis: 140px; width: 160px; height: 160px; }
  #talkerCanvas { width: 160px; height: 160px; }
  .creator { flex-direction: column; align-items: center; }
  .previewBox { flex-basis: auto; width: 100%; max-width: 360px; min-height: 320px; }
  #previewCanvas { height: 320px; }
  .panel { max-width: 100%; max-height: none; }
  #lobbyNav { flex-wrap: wrap; gap: 8px; }
  .lnBtns { order: 3; width: 100%; justify-content: center; margin: 4px 0 0; }
  .lnBtn { padding: 9px 12px; font-size: 12.5px; }
}

/* ===================== HERO REDESIGN (BG1⇄BG2 image bg + navbar + big logo) ===================== */
#hero { position: fixed; inset: 0; overflow: hidden; }
.heroBg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.heroBgImg { position: absolute; inset: -3%; background-size: cover; background-position: center; will-change: opacity, transform; }
.heroBgImg.bg1 { background-image: url(../assets/BG1.png); animation: heroBgA 18s ease-in-out infinite, heroKen 36s ease-in-out infinite alternate; }
.heroBgImg.bg2 { background-image: url(../assets/BG2.png); animation: heroBgB 18s ease-in-out infinite, heroKen 36s ease-in-out infinite alternate-reverse; }
@keyframes heroBgA { 0%,40% { opacity: 1; } 50%,90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes heroBgB { 0%,40% { opacity: 0; } 50%,90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes heroKen { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.heroScrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,8,12,.55) 0%, rgba(4,8,12,.15) 30%, rgba(4,8,12,.32) 60%, rgba(4,8,12,.85) 100%); }

/* navbar */
.heroNav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; flex-wrap: wrap; background: linear-gradient(180deg, rgba(6,10,16,.8), rgba(6,10,16,0)); }
.navLeft, .navRight { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.navLogo { height: 48px; width: auto; filter: drop-shadow(0 3px 8px rgba(0,0,0,.55)); }
.navLink { color: #eaf1f8; font-weight: 800; font-size: 13px; letter-spacing: .5px; cursor: pointer; text-decoration: none; padding: 6px 9px; border-radius: 8px; opacity: .92; }
.navLink:hover { background: rgba(255,255,255,.13); opacity: 1; }
.navSoc { display: inline-flex; gap: 8px; }
.navSoc .soc { color: #eaf1f8; opacity: .9; display: inline-flex; }
.navSoc .soc:hover { color: var(--accent); opacity: 1; }
.navCa { font-size: 12px; font-weight: 700; color: #cfe0ef; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.4); padding: 5px 10px; border-radius: 20px; border: 1px solid var(--line2); }
.navCa .tkCa { color: #ffd23f; }
.navLaunch { font-size: 12px; font-weight: 800; color: #ffd79a; letter-spacing: .5px; }
.navBuy { padding: 9px 18px; font-size: 13px; }
.heroNav .tkbtn { font-size: 10px; padding: 2px 7px; }
.heroNav .tkToast { right: 18px; top: 56px; left: auto; }

/* player status row under the nav */
#hero .heroTop { position: absolute; top: 66px; right: 16px; left: auto; bottom: auto; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 70vw; }

/* center logo + tagline + play */
#hero .heroInner { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; padding: 92px 16px 48px; }
.heroLogoImg { width: min(780px, 92vw); max-height: 46vh; object-fit: contain; filter: drop-shadow(0 12px 34px rgba(0,0,0,.6)); }
#hero .heroDesc { color: #e8f1f9; font-weight: 700; letter-spacing: 2px; font-size: 14px; text-shadow: 0 2px 8px rgba(0,0,0,.75); }
#hero .heroPlay { font-size: 20px; padding: 14px 46px; }

@media (max-width: 760px) {
  .heroNav { padding: 8px 10px; gap: 8px; }
  .navLeft, .navRight { gap: 8px; }
  .navLink { font-size: 12px; padding: 5px 6px; }
  .navLogo { height: 36px; }
  .navLaunch { display: none; }
  #hero .heroTop { top: auto; bottom: 12px; right: 10px; transform: scale(.88); transform-origin: bottom right; }
  .heroLogoImg { max-height: 32vh; width: 94vw; }
  #hero .heroInner { padding-top: 110px; gap: 14px; }
}

/* hero navbar layout fixes: keep right cluster compact + on the right */
.heroNav { flex-wrap: nowrap; }
.navLeft { flex: 1 1 auto; min-width: 0; }
.navRight { flex: 0 0 auto; }
.navBuy { width: auto !important; min-width: 0; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 760px) {
  .heroNav { flex-wrap: wrap; }
  .navRight { width: 100%; justify-content: flex-start; }
  #hero .heroTop { top: auto; bottom: 12px; }
}

/* hero polish: socials inline on desktop, a touch more breathing room for the status row */
.navLeft { flex-wrap: nowrap; }
@media (max-width: 760px) { .navLeft { flex-wrap: wrap; } }
#hero .heroTop { top: 78px; }
.navBuy { align-self: center; }

/* ===== HERO REVISION: bigger logos, token row under the wordmark, socials top-right ===== */
.navLogo { height: 76px; }
.heroLogoImg { width: min(1080px, 96vw); max-height: 58vh; }
.tokenRow { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 2px; }
.tokenRow .tkToast { left: 50%; transform: translateX(-50%); top: auto; bottom: -34px; right: auto; }
.navRight { gap: 12px; }
.navSoc { gap: 12px; }
.navSoc .soc svg { width: 22px; height: 22px; }
#hero .heroTop { top: 96px; }
@media (max-width: 760px) {
  .navLogo { height: 54px; }
  .heroLogoImg { max-height: 36vh; width: 96vw; }
  .tokenRow { gap: 10px; }
  #hero .heroTop { top: auto; bottom: 12px; }
}

/* keep the bigger logo but guarantee PLAY stays visible on shorter screens */
.heroLogoImg { max-height: 54vh; width: min(1040px, 95vw); }
#hero .heroInner { padding: 70px 16px 50px; gap: 14px; }
@media (max-height: 760px) { .heroLogoImg { max-height: 44vh; } #hero .heroInner { padding-top: 62px; gap: 10px; } }

/* ============ HERO FINAL — glitch-free 2-image cross-fade + bigger logos + PLAY above CA ============ */
#hero { background: #0a0f16 !important; }          /* solid fallback (kills the old gradient bleed) */
.heroBg { background: #0a0f16; }
.heroBgImg { inset: 0 !important; background-size: cover; background-position: center; animation: none !important; }
.heroBgImg.bg1 { opacity: 1; }                      /* BG1 = always-on base layer */
.heroBgImg.bg2 { opacity: 0; animation: heroXfade 16s ease-in-out infinite !important; }  /* BG2 fades on TOP — never a gap */
@keyframes heroXfade { 0%,40% { opacity: 0; } 50%,90% { opacity: 1; } 100% { opacity: 0; } }

/* bigger IMBG nav logo + bigger center wordmark */
.navLogo { height: 96px; }
.heroLogoImg { width: min(1140px, 96vw); max-height: 56vh; }

/* center column: logo → tagline → PLAY → CA row */
#hero .heroInner { gap: 16px; padding: 88px 16px 40px; justify-content: center; }
#hero .heroPlay { font-size: 21px; padding: 14px 50px; }
.tokenRow { margin-top: 2px; }

@media (max-height: 800px) { .heroLogoImg { max-height: 46vh; } #hero .heroInner { padding-top: 72px; gap: 11px; } }
@media (max-width: 760px) { .navLogo { height: 62px; } .heroLogoImg { max-height: 36vh; width: 96vw; } #hero .heroInner { padding-top: 96px; } }

/* ===== ROOM CHAT ===== */
#chatWrap { display: none; position: fixed; left: 14px; bottom: 14px; z-index: 23; width: min(340px, 76vw); }
#chatWrap.show { display: block; }
#chatLog { display: flex; flex-direction: column; gap: 3px; margin-bottom: 6px; max-height: 132px; overflow: hidden; }
.chatMsg { background: rgba(8,12,18,0.6); border-radius: 8px; padding: 4px 9px; font-size: 12px; color: #e8f1f9; width: fit-content; max-width: 100%; word-break: break-word; }
.chatMsg b { color: #6dffb0; }
#chatBar { display: none; }
#chatWrap.open #chatBar { display: block; }
#chatInput { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--accent); background: rgba(8,12,18,0.92); color: var(--txt); font-size: 13px; font-weight: 600; outline: none; }
#chatBtn { position: absolute; right: -2px; bottom: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(8,12,18,0.8); color: #fff; font-size: 18px; cursor: pointer; }
#chatWrap.open #chatBtn { display: none; }
body.touch #chatWrap { bottom: 150px; left: 10px; }

/* ===== HERO: bigger wordmark + content hugged high under it ===== */
.heroLogoImg { max-height: 58vh !important; width: min(1240px, 97vw) !important; }
#hero .heroInner { justify-content: flex-start !important; padding: 5vh 16px 24px !important; gap: 12px !important; }
@media (max-height: 820px) { .heroLogoImg { max-height: 48vh !important; } #hero .heroInner { padding-top: 8vh !important; gap: 9px !important; } }
@media (max-width: 760px) { .heroLogoImg { max-height: 34vh !important; } #hero .heroInner { padding-top: 92px !important; } }

/* ===== PROFILE bar (in the create/profile screen) ===== */
.profileBar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.profileBar .rankBadge, .profileBar .puxHero, .profileBar .idBadge { position: static; }
.profileBar .claimHero { position: static; }

/* ===== in-match screens (Inventory / Map / System) ===== */
.gscreen { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(4,8,12,0.74); align-items: center; justify-content: center; }
.gscreen.show { display: flex; }
.gscreen .gsCard { width: min(560px, 94vw); max-height: 90vh; overflow: auto; background: rgba(12,16,22,0.97); border: 1px solid var(--line2); border-radius: 16px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.gsHead { display: flex; align-items: center; justify-content: space-between; font-weight: 900; font-size: 17px; margin-bottom: 12px; }
.gsX { background: rgba(255,255,255,0.08); border: none; color: #fff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-weight: 900; }
.gsBody { display: flex; flex-direction: column; gap: 8px; }
.gsFoot { margin-top: 12px; text-align: center; font-size: 11px; color: var(--muted); }
.invRow { background: rgba(255,255,255,0.04); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 700; }
.invRow.dim { color: var(--muted); }
.invRow b { color: var(--accent); margin-right: 6px; }
#bigMap { width: min(520px, 86vw); height: auto; border-radius: 12px; border: 1px solid var(--line2); background: #10210f; }
.sysBtns { gap: 10px; }
.sysBtns .btn { width: 100%; }

/* locked name (already chosen — tied to your wallet) */
#pname.locked { opacity: 0.7; cursor: not-allowed; border-style: dashed; }
.profileBar #profileShopBtn { background: linear-gradient(135deg, #46e06a, #9be86a); color: #06210f; box-shadow: 0 6px 20px rgba(70,224,106,0.35); }

/* hero: pull the PLAY/CA block higher (logof PNG has transparent vertical padding) */
.heroLogoImg { margin: -3vh 0 -12vh !important; }
#hero .heroInner { justify-content: flex-start !important; padding: 6vh 16px 22px !important; gap: 4px !important; }
.navCa #tkLaunch { color: #ffd79a; font-weight: 800; }
@media (max-height: 820px) { .heroLogoImg { margin: -2vh 0 -10vh !important; } }
@media (max-width: 760px) { .heroLogoImg { margin: -1vh 0 -8vh !important; } #hero .heroInner { padding-top: 90px !important; } }

/* ===== HERO FINAL: bigger wordmark + PLAY tucked right under it ===== */
.heroLogoImg { width: min(1400px, 95vw) !important; max-height: 64vh !important; margin: -2vh 0 -9vh !important; }
#hero .heroInner { gap: 2px !important; padding-top: 5vh !important; justify-content: flex-start !important; }
@media (max-height: 820px) { .heroLogoImg { max-height: 56vh !important; margin: -1vh 0 -8vh !important; } }
@media (max-width: 760px) { .heroLogoImg { max-height: 42vh !important; width: 96vw !important; margin: 0 0 -6vh !important; } #hero .heroInner { padding-top: 88px !important; } }

/* ===== HERO FINAL v4: logof cropped to wordmark-only (no glow padding) → size by width, no shadow, tight stack ===== */
.heroLogoImg { width: min(1120px, 92vw) !important; max-height: none !important; height: auto !important; margin: 0 0 6px !important; filter: none !important; object-fit: contain !important; }
#hero .heroInner { justify-content: center !important; align-items: center !important; padding: 64px 16px 36px !important; gap: 14px !important; }
@media (max-width: 760px) { .heroLogoImg { width: 94vw !important; } #hero .heroInner { padding-top: 84px !important; gap: 10px !important; } }

/* ===== SQUAD CODE (lobby party invite — real-time) ===== */
.sqCode { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:8px; padding:8px 10px; border:1px dashed rgba(120,200,255,.5); border-radius:10px; background:rgba(40,80,120,.18); font-size:13px; }
.sqCode b { font-size:16px; letter-spacing:2px; color:#bfe9ff; }
.sqCodeBtn { margin-left:auto; padding:5px 10px; border:0; border-radius:7px; background:#2a86ff; color:#fff; font-weight:800; font-size:11px; cursor:pointer; letter-spacing:.5px; }
.sqCodeBtn[data-joincode] { margin-left:0; background:#1ec96b; }
.sqCodeBtn:active { transform:translateY(1px); }

/* ===== GLOBAL CHAT (menu + lobby: recruit real squadmates) ===== */
#gchatWrap { position: fixed; left: 14px; bottom: 14px; width: min(340px, 88vw); max-height: 46vh; display: none; flex-direction: column;
  background: rgba(8,14,22,.86); border: 1px solid rgba(120,200,255,.35); border-radius: 14px; overflow: hidden; z-index: 60;
  backdrop-filter: blur(8px); box-shadow: 0 10px 36px rgba(0,0,0,.5); font-family: inherit; }
#gchatWrap.show { display: flex; }
#gchatHead { padding: 9px 12px; font-weight: 900; font-size: 13px; letter-spacing: .4px; color: #bfe9ff; background: rgba(40,90,140,.35); border-bottom: 1px solid rgba(120,200,255,.25); }
#gchatHead small { font-weight: 600; color: #8fb6cf; }
#gchatLog { flex: 1; overflow-y: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; min-height: 60px; }
.gcMsg { font-size: 12.5px; line-height: 1.35; color: #dceaf5; word-break: break-word; }
.gcMsg b { color: #7fd0ff; }
.gcMsg.dim { color: #7f93a4; font-style: italic; }
.gcJoin { margin-left: 4px; padding: 2px 8px; border: 0; border-radius: 6px; background: #1ec96b; color: #04140b; font-weight: 900; font-size: 11px; cursor: pointer; letter-spacing: .4px; }
.gcJoin:active { transform: translateY(1px); }
#gchatBar { display: flex; gap: 6px; padding: 8px; border-top: 1px solid rgba(120,200,255,.2); }
#gchatInput { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(120,200,255,.3); background: rgba(0,0,0,.35); color: #fff; font-size: 13px; }
#gchatSend { padding: 8px 12px; border: 0; border-radius: 8px; background: #2a86ff; color: #fff; font-weight: 800; font-size: 12px; cursor: pointer; }
@media (max-width: 760px) { #gchatWrap { width: 78vw; max-height: 38vh; left: 8px; bottom: 8px; } }

/* ===== PICKUP toast (momentary "you grabbed X") ===== */
#pickupFeed { position: fixed; top: 15%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; z-index: 41; pointer-events: none; }
.pfRow { background: rgba(8,14,22,.85); border: 1px solid rgba(255,210,120,.55); border-radius: 999px; padding: 6px 15px; color: #ffe9b0; font-weight: 800; font-size: 14px; display: flex; gap: 8px; align-items: center; box-shadow: 0 5px 18px rgba(0,0,0,.45); animation: pfIn .22s ease; }
.pfRow .pfIco { font-size: 18px; }
@keyframes pfIn { from { opacity: 0; transform: translateY(-10px) scale(.88); } to { opacity: 1; transform: none; } }

/* ===== persistent GEAR panel (bottom-right): your collected loadout, click a weapon to equip ===== */
#gearPanel { position: fixed; left: 12px; bottom: 90px; right: auto; width: 196px; background: rgba(8,14,22,.74); border: 1px solid rgba(120,200,255,.32); border-radius: 12px; padding: 8px 8px 6px; z-index: 38; backdrop-filter: blur(6px); font-size: 12.5px; user-select: none; }
body.clean #gearPanel { display: none; }
.gpHead { font-weight: 900; font-size: 11px; letter-spacing: .6px; color: #bfe9ff; margin: 0 2px 6px; opacity: .92; }
.gpRow { display: flex; align-items: center; gap: 7px; padding: 4px 6px; border-radius: 7px; color: #dceaf5; }
.gpRow.dim { opacity: .42; }
.gpRow .gpI { width: 18px; text-align: center; font-size: 14px; }
.gpRow b { font-weight: 800; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpAmmo { margin-left: auto; opacity: .82; font-size: 11px; font-variant-numeric: tabular-nums; }
.gpW { cursor: pointer; }
.gpW:hover { background: rgba(120,200,255,.12); }
.gpW.on { background: linear-gradient(90deg, rgba(46,224,107,.30), rgba(46,224,107,.05)); box-shadow: inset 0 0 0 1px rgba(46,224,107,.6); color: #eafff0; }
.gpDiv { height: 1px; background: rgba(255,255,255,.12); margin: 5px 2px; }
@media (max-width: 760px) { #gearPanel { width: 150px; left: auto; right: 6px; top: 34%; bottom: auto; max-height: 42vh; overflow-y: auto; font-size: 11px; } }

/* navbar keyboard-shortcut hints */
.lnBtn kbd { display:inline-block; margin-left:5px; padding:0 6px; border-radius:5px; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.28); font:800 11px ui-monospace,monospace; line-height:17px; color:#fff; vertical-align:middle; }

/* GEAR panel collapse (so it never blocks controls / touch buttons) */
.gpHead { cursor:pointer; display:flex; align-items:center; }
.gpCaret { margin-left:auto; transition:transform .15s; }
#gearPanel.collapsed { width:auto; }
#gearPanel.collapsed .gpBody { display:none; }
#gearPanel.collapsed .gpCaret { transform:rotate(-90deg); }

/* GEAR panel per-row key hints (DESKTOP only — hidden on touch) */
.gpKey { margin-left:auto; margin-right:6px; padding:0 6px; border-radius:4px; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.26); font:800 10px ui-monospace,monospace; line-height:15px; color:#cfe8ff; }
.gpRow .gpAmmo { margin-left:0; }   /* key takes the left-auto slot; ammo sits right after */
body.touch .gpKey { display:none; }

/* room card sub-label (solo/duo/squad + minutes) */
.botchip .rmsub { display:block; font-size:10.5px; font-weight:600; opacity:.7; margin:2px 0 1px; letter-spacing:.2px; }
#logoutBtn { background:rgba(255,90,90,.16); border-color:rgba(255,90,90,.4); }

/* ===== PET STORE ===== */
#petGrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
.petCard { background:rgba(20,28,38,.7); border:1px solid var(--line2); border-radius:12px; padding:12px 10px; text-align:center; }
.petCard.active { border-color:#46e06a; box-shadow:0 0 0 1px rgba(70,224,106,.5) inset; }
.petCard.owned { background:rgba(30,42,30,.6); }
.petEmoji { font-size:40px; line-height:1.1; }
.petName { font-weight:900; margin-top:4px; }
.petStats { font-size:12px; opacity:.85; margin:2px 0; }
.petDesc { font-size:11px; opacity:.65; min-height:28px; margin-bottom:8px; }
.petBtn { width:100%; padding:8px; border:0; border-radius:8px; font-weight:800; font-size:13px; cursor:pointer; }
.petBtn.buy { background:linear-gradient(90deg,#2a86ff,#46c0ff); color:#fff; }
.petBtn.equip { background:#2a3850; color:#cfe8ff; }
.petBtn.on { background:#1ec96b; color:#04140b; }
.petBtn.lock { background:#2a2a2a; color:#888; cursor:not-allowed; }
