/* Orbitron has no dotless/dotted i (ı, İ): same font with those left out, so they fall back to Rajdhani */
@font-face { font-family: 'SBDisplay'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(/fonts/orbitron-latin-0.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.sb {
  --ink: #eef2f6; --ink2: #c3ccd6; --ink3: #8693a2; --edge: rgba(255, 255, 255, 0.12); --glass: rgba(14, 18, 24, 0.66); --glass2: rgba(22, 28, 36, 0.82);
  --amber: #ffb02e; --amber2: #ff7a1a; --hot: linear-gradient(135deg, #ffcf5a 0%, #ff9a1f 45%, #ff5a1f 100%);
  --t0: #3d8bff; --t1: #ff4a3d; --ok: #46d98a;
  --display: 'SBDisplay', 'Rajdhani', system-ui, sans-serif;
  margin: 0; height: 100vh; height: 100dvh; overflow: hidden; background: #11151b; color: var(--ink); font-family: var(--font); font-weight: 600;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: none;
}
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.screen { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.screen > * { pointer-events: auto; }
.screen[hidden], .modal[hidden], .panel-wrap[hidden], .board[hidden], .buy[hidden], .touch[hidden] { display: none !important; }
button { font-family: inherit; color: inherit; cursor: pointer; }
input, select { font-family: inherit; }

/* loading */
.loading { position: fixed; inset: 0; z-index: 40; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(800px 520px at 50% 38%, #2a2f38, #0d1015 72%); transition: opacity 0.5s; }
.loading.done { opacity: 0; pointer-events: none; }
.loading b { font: 900 clamp(2rem, 7vw, 3.2rem) var(--display); letter-spacing: 0.06em; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 22px rgba(255, 120, 30, 0.35)); }
.loading small { color: var(--ink3); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; }
.emblem { width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--amber); display: grid; place-items: center; animation: spin 2.4s linear infinite; box-shadow: 0 0 40px rgba(255, 150, 40, 0.35); }
.emblem i { width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 -26px 0 -3px var(--amber), 0 26px 0 -3px var(--amber), 26px 0 0 -3px var(--amber), -26px 0 0 -3px var(--amber); }
@keyframes spin { to { transform: rotate(360deg); } }
.ld { width: min(320px, 70vw); height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.ld i { display: block; height: 100%; width: 0; background: var(--hot); transition: width 0.2s; }

/* menu */
#menu::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(8, 10, 14, 0.88) 0%, rgba(8, 10, 14, 0.55) 38%, rgba(8, 10, 14, 0) 70%), linear-gradient(0deg, rgba(8, 10, 14, 0.8) 0%, rgba(8, 10, 14, 0) 40%); }
.top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left)); z-index: 1; }
.spacer { flex: 1; }
.back, .ib { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--glass); border: 1px solid var(--edge); color: #fff; text-decoration: none; font-size: 1.25rem; line-height: 1; backdrop-filter: blur(10px); }
.rankchip { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border-radius: 14px; background: var(--glass); border: 1px solid var(--edge); backdrop-filter: blur(10px); text-align: left; }
.badge { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--hot); color: #2a1300; font: 900 0.95rem var(--display); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2); }
.rk { display: grid; line-height: 1.05; gap: 2px; min-width: 110px; }
.rk b { font: 900 0.85rem var(--display); letter-spacing: 0.04em; }
.rk small { color: var(--ink3); font-size: 0.72rem; }
.xpbar { display: block; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; background: var(--hot); }
.online-dot { font-size: 0.8rem; color: var(--ok); font-weight: 700; }
.brand { position: absolute; left: max(28px, env(safe-area-inset-left)); top: calc(max(12px, env(safe-area-inset-top)) + 78px); pointer-events: none; }
.brand b { display: block; font: 900 clamp(2.6rem, 7.5vw, 5.4rem) var(--display); line-height: 0.92; letter-spacing: 0.02em; text-transform: uppercase; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 30px rgba(255, 110, 30, 0.35)); }
.brand small { display: inline-block; margin-top: 10px; padding: 4px 12px; border-left: 3px solid var(--amber); background: rgba(255, 176, 46, 0.12); font: 700 0.9rem var(--display); letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink2); }
.tiles { position: absolute; left: max(28px, env(safe-area-inset-left)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 84px); display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 12px; }
.tile { position: relative; display: grid; align-content: end; justify-items: start; gap: 3px; min-height: 132px; padding: 16px; text-align: left; border-radius: 4px 18px 4px 18px; background: var(--glass2); border: 1px solid var(--edge); backdrop-filter: blur(12px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); overflow: hidden; transition: transform 0.14s, border-color 0.14s; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 40%); pointer-events: none; }
.tile:hover { transform: translateY(-4px); border-color: rgba(255, 176, 46, 0.6); }
.tile .ico { position: absolute; top: 12px; right: 14px; font-size: 1.7rem; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.tile b { font: 900 1.25rem var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.tile small { color: var(--ink3); font-size: 0.85rem; line-height: 1.2; }
.tile em { position: absolute; top: 14px; left: 16px; font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--amber); }
.tile.hero { background: linear-gradient(160deg, rgba(255, 150, 40, 0.38), rgba(120, 40, 10, 0.55) 60%, rgba(20, 16, 14, 0.9)); border-color: rgba(255, 176, 46, 0.55); }
.tile.hero b { color: #fff3dc; }
.tile.live em { color: var(--ok); }
.subnav { position: absolute; left: max(28px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.subnav button { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; background: var(--glass); border: 1px solid var(--edge); backdrop-filter: blur(10px); font: 700 0.95rem var(--font); }
.subnav button:hover { border-color: rgba(255, 176, 46, 0.6); }

/* panels */
.panel-wrap { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(5, 7, 10, 0.55); backdrop-filter: blur(6px); padding: 16px; }
.panel { width: min(880px, 100%); max-height: min(720px, calc(100dvh - 32px)); display: flex; flex-direction: column; border-radius: 6px 22px 6px 22px; background: linear-gradient(180deg, rgba(28, 34, 44, 0.97), rgba(16, 20, 26, 0.97)); border: 1px solid var(--edge); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); overflow: hidden; }
.phead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--edge); background: rgba(255, 255, 255, 0.03); }
.phead b { flex: 1; font: 900 1.1rem var(--display); letter-spacing: 0.05em; text-transform: uppercase; }
.pbody { padding: 16px; overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lbl { display: block; margin: 14px 0 8px; color: var(--ink3); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.lbl:first-child { margin-top: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .chip { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.04); font-weight: 700; font-size: 0.95rem; }
.seg button.on { border-color: var(--amber); background: rgba(255, 176, 46, 0.16); color: #ffe2b0; }
.mapcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mapcard { position: relative; height: 92px; border-radius: 10px; border: 2px solid transparent; overflow: hidden; display: grid; align-content: end; padding: 8px 10px; text-align: left; font: 900 0.9rem var(--display); text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); }
.mapcard.on { border-color: var(--amber); }
.mapcard.kasaba { background: linear-gradient(160deg, #f2c27a, #a8723a); }
.mapcard.liman { background: linear-gradient(160deg, #8fb3c9, #3e5466); }
.mapcard.mahalle { background: linear-gradient(160deg, #a9c47e, #4c6b3a); }
.mapcard small { display: block; font: 600 0.72rem var(--font); opacity: 0.85; }
.desc { color: var(--ink2); font-size: 0.92rem; line-height: 1.4; margin: 8px 0 0; }
.go { display: block; width: 100%; margin-top: 18px; padding: 16px; border: 0; border-radius: 12px; background: var(--hot); color: #2a1300; font: 900 1.15rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 10px 28px rgba(255, 120, 30, 0.35); }
.go:disabled { filter: grayscale(1); opacity: 0.5; }
.go.alt { background: rgba(255, 255, 255, 0.08); color: var(--ink); border: 1px solid var(--edge); box-shadow: none; }
.missions { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.mis { position: relative; display: grid; gap: 4px; padding: 12px; text-align: left; border-radius: 4px 14px 4px 14px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.04); min-height: 96px; }
.mis:hover:not(:disabled) { border-color: rgba(255, 176, 46, 0.6); }
.mis:disabled { opacity: 0.45; cursor: default; }
.mis .n { font: 900 0.7rem var(--display); color: var(--amber); letter-spacing: 0.1em; }
.mis b { font: 900 0.98rem var(--display); }
.mis small { color: var(--ink3); font-size: 0.78rem; }
.mis .st { position: absolute; top: 10px; right: 12px; letter-spacing: 1px; color: #3a414c; font-size: 0.95rem; }
.mis .st i { font-style: normal; color: #ffc93a; text-shadow: 0 0 8px rgba(255, 190, 40, 0.6); }
.mis.cur { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; }
.guns { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gun { display: grid; gap: 6px; padding: 12px; border-radius: 12px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.04); text-align: left; }
.gun.on { border-color: var(--amber); background: rgba(255, 176, 46, 0.1); }
.gun.lock { opacity: 0.5; }
.gun .gh { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.gun .gh b { font: 900 0.95rem var(--display); }
.gun .gh span { color: var(--amber); font-weight: 700; font-size: 0.85rem; }
.bar { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--ink3); }
.bar em { display: block; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar em i { display: block; height: 100%; background: var(--hot); }
.field { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--edge); background: rgba(0, 0, 0, 0.3); color: var(--ink); font-size: 1rem; }
.list { display: grid; gap: 6px; }
.li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--edge); }
.li .tag { padding: 2px 8px; border-radius: 6px; background: rgba(255, 176, 46, 0.18); color: #ffd28a; font: 900 0.75rem var(--display); }
.li b { flex: 1; }
.li small { color: var(--ink3); }
.li button { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--edge); background: rgba(255, 176, 46, 0.15); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--edge); text-align: center; }
.stat b { display: block; font: 900 1.4rem var(--display); }
.stat small { color: var(--ink3); font-size: 0.76rem; }
.ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rankrow { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); font-size: 0.85rem; }
.rankrow.got { background: rgba(255, 176, 46, 0.1); }
.rankrow .badge { width: 28px; height: 28px; font-size: 0.75rem; border-radius: 8px; }
.rankrow.no .badge { background: #333a44; color: #8693a2; }
.slider { display: grid; grid-template-columns: 1fr 160px 44px; align-items: center; gap: 10px; padding: 8px 0; }
.slider input[type=range] { width: 100%; accent-color: var(--amber); }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--amber); }
.keys { color: var(--ink3); font-size: 0.82rem; line-height: 1.6; margin-top: 12px; }
.msg { margin-top: 10px; color: #ff9b8a; font-size: 0.88rem; min-height: 1.2em; }

/* HUD */
.h-top { position: absolute; top: max(8px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; align-items: stretch; gap: 4px; pointer-events: none; }
.h-top .sc, .h-top .clock { display: grid; justify-items: center; align-content: center; min-width: 70px; padding: 4px 12px; background: var(--glass); backdrop-filter: blur(8px); line-height: 1.05; }
.h-top .sc b { font: 900 1.45rem var(--display); }
.h-top .sc small { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.h-top .t0 { border-radius: 10px 2px 2px 10px; border-bottom: 3px solid var(--t0); }
.h-top .t0 b { color: #8cbcff; }
.h-top .t1 { border-radius: 2px 10px 10px 2px; border-bottom: 3px solid var(--t1); }
.h-top .t1 b { color: #ff9a90; }
.h-top .clock b { font: 900 1.3rem var(--display); }
.h-top .clock small { font-size: 0.62rem; color: var(--amber); text-transform: uppercase; letter-spacing: 0.08em; }
.h-top .clock.red b { color: #ff5a4a; animation: blink 0.5s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.4; } }
.alive { position: absolute; top: calc(max(8px, env(safe-area-inset-top)) + 54px); left: 50%; transform: translateX(-50%); display: flex; gap: 14px; pointer-events: none; font-size: 0.7rem; }
.alive span { display: flex; gap: 3px; }
.alive i { width: 7px; height: 12px; border-radius: 2px; background: currentColor; opacity: 0.9; }
.alive i.d { opacity: 0.2; }
.alive .a0 { color: var(--t0); } .alive .a1 { color: var(--t1); }
#mini { position: absolute; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); width: 150px; height: 150px; border-radius: 14px; background: rgba(10, 14, 20, 0.55); border: 1px solid var(--edge); pointer-events: none; }
.feed { position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); display: grid; justify-items: end; gap: 4px; pointer-events: none; }
.feed div { display: flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 6px; background: rgba(10, 12, 16, 0.6); font-size: 0.85rem; font-weight: 700; animation: fin 0.2s; }
.feed div.me { border: 1px solid rgba(255, 176, 46, 0.7); }
.feed .k0 { color: #8cbcff; } .feed .k1 { color: #ff9a90; }
.feed .w { color: var(--ink3); font-size: 0.75rem; }
@keyframes fin { from { opacity: 0; transform: translateX(10px); } }
.cross { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; --g: 6px; }
.cross i { position: absolute; background: #fff; box-shadow: 0 0 2px #000; }
.cross i:nth-child(1), .cross i:nth-child(2) { width: 2px; height: 8px; left: -1px; }
.cross i:nth-child(1) { bottom: var(--g); } .cross i:nth-child(2) { top: var(--g); }
.cross i:nth-child(3), .cross i:nth-child(4) { height: 2px; width: 8px; top: -1px; }
.cross i:nth-child(3) { right: var(--g); } .cross i:nth-child(4) { left: var(--g); }
.cross.on i { background: #ff4a3d; }
.cross.hide { display: none; }
.hitm { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; pointer-events: none; opacity: 0; background: linear-gradient(45deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%) , linear-gradient(-45deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%); -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px); }
.hitm.on { animation: hm 0.25s; }
.hitm.head { filter: drop-shadow(0 0 3px #ff3b2f) sepia(1) saturate(8) hue-rotate(-30deg); }
@keyframes hm { 0% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(1); } }
.dmgdir { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px; pointer-events: none; opacity: 0; border-radius: 50%; background: radial-gradient(circle at 50% 0%, rgba(255, 40, 30, 0.8), transparent 30%); transition: opacity 0.6s; }
.scope { position: absolute; inset: 0; pointer-events: none; display: none; background: radial-gradient(circle at 50% 50%, transparent 0 min(36vh, 36vw), #000 calc(min(36vh, 36vw) + 2px)); }
.scope::before, .scope::after { content: ''; position: absolute; background: rgba(0, 0, 0, 0.85); }
.scope::before { left: 0; right: 0; top: 50%; height: 1px; }
.scope::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.scope.on { display: block; }
.banner { position: absolute; top: 24%; left: 50%; transform: translateX(-50%); text-align: center; pointer-events: none; opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
.banner.on { opacity: 1; }
.banner b { display: block; font: 900 clamp(1.6rem, 5vw, 3rem) var(--display); letter-spacing: 0.05em; text-transform: uppercase; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7); }
.banner small { display: inline-block; margin-top: 6px; padding: 4px 14px; background: rgba(10, 12, 16, 0.6); border-radius: 8px; font-size: 1rem; }
.banner.t0 b { color: #8cbcff; } .banner.t1 b { color: #ff9a90; } .banner.hot b { color: #ffc24a; text-shadow: 0 2px 0 #7a3a00, 0 6px 24px rgba(0, 0, 0, 0.6); }
.hint { position: absolute; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 92px); left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 10px; background: rgba(10, 12, 16, 0.65); font-weight: 700; font-size: 0.92rem; pointer-events: none; opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
.hint.on { opacity: 1; }
.actbar { position: absolute; left: 50%; top: 60%; width: 240px; margin-left: -120px; display: none; pointer-events: none; text-align: center; }
.actbar.on { display: block; }
.actbar small { display: block; margin-bottom: 6px; font-weight: 700; }
.actbar i { display: block; height: 8px; border-radius: 9px; background: var(--hot); width: 0; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5); }
.h-bot { position: absolute; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); display: flex; align-items: end; justify-content: space-between; gap: 10px; pointer-events: none; }
.vit, .ammo, .cash { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--glass); backdrop-filter: blur(8px); }
.vit b, .ammo b { font: 900 1.9rem var(--display); line-height: 1; }
.vit .hpico { color: #ff6a5a; font-size: 1.2rem; } .vit .arico { color: #8cbcff; font-size: 1.1rem; margin-left: 6px; }
.vit b.low { color: #ff5a4a; }
.cash { font: 900 1.15rem var(--display); color: #8ef0b0; margin-right: auto; }
.cash.hide { visibility: hidden; }
.ammo { flex-wrap: wrap; justify-content: end; max-width: 260px; }
.ammo small { width: 100%; text-align: right; color: var(--ink3); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ammo span { color: var(--ink3); font-weight: 700; }
.ammo b.low { color: #ffb02e; }
.ammo em { font-style: normal; font-size: 0.85rem; }
.flash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 50%, rgba(200, 0, 0, 0.55)); opacity: 0; transition: opacity 0.4s; }
.pause { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 160px); left: max(10px, env(safe-area-inset-left)); width: 38px; height: 38px; font-size: 0.85rem; }

/* scoreboard */
.board { position: fixed; z-index: 8; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 14px; border-radius: 16px; background: rgba(12, 15, 20, 0.9); border: 1px solid var(--edge); backdrop-filter: blur(10px); pointer-events: none; }
.board h3 { margin: 0 0 10px; display: flex; justify-content: space-between; font: 900 1rem var(--display); letter-spacing: 0.05em; }
.board table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 12px; }
.board th { text-align: right; color: var(--ink3); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; padding: 4px 8px; }
.board th:first-child, .board td:first-child { text-align: left; }
.board td { text-align: right; padding: 6px 8px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.board tr.dead td { opacity: 0.45; }
.board tr.me td { background: rgba(255, 176, 46, 0.12); }
.board .tt0 th:first-child { color: #8cbcff; } .board .tt1 th:first-child { color: #ff9a90; }
.board .clan { color: #ffd28a; font-size: 0.75rem; margin-right: 4px; }

/* buy menu */
.buy { position: fixed; z-index: 9; inset: 0; display: grid; place-items: center; background: rgba(5, 7, 10, 0.55); padding: 12px; }
.buybox { width: min(860px, 100%); max-height: calc(100dvh - 24px); overflow: auto; padding: 16px; border-radius: 16px; background: rgba(16, 20, 26, 0.96); border: 1px solid var(--edge); touch-action: pan-y; }
.buybox h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; font: 900 1.1rem var(--display); }
.buybox h3 em { font-style: normal; color: #8ef0b0; }
.bitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-bottom: 8px; }
.bitem { display: grid; gap: 2px; padding: 10px 12px; text-align: left; border-radius: 10px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.04); }
.bitem:hover:not(:disabled) { border-color: var(--amber); }
.bitem:disabled { opacity: 0.4; cursor: default; }
.bitem b { font: 900 0.9rem var(--display); }
.bitem span { color: #8ef0b0; font-weight: 700; font-size: 0.85rem; }
.bitem small { color: var(--ink3); font-size: 0.74rem; }
.bitem kbd { justify-self: end; margin-top: -18px; font: 700 0.7rem var(--font); color: var(--ink3); }

/* modal (match end, round end) */
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(5, 7, 10, 0.6); backdrop-filter: blur(6px); padding: 14px; }
.mcard { width: min(720px, 100%); max-height: calc(100dvh - 28px); overflow: auto; padding: 22px; border-radius: 6px 22px 6px 22px; background: linear-gradient(180deg, rgba(28, 34, 44, 0.98), rgba(14, 18, 24, 0.98)); border: 1px solid var(--edge); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); text-align: center; touch-action: pan-y; }
.mcard h2 { margin: 0; font: 900 clamp(2.2rem, 8vw, 3.6rem) var(--display); letter-spacing: 0.08em; }
.mcard h2.win { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 30px rgba(255, 120, 30, 0.4)); }
.mcard h2.lose { color: #8693a2; }
.mcard .big { font: 900 1.8rem var(--display); margin: 8px 0; }
.mcard .big .s0 { color: #8cbcff; } .mcard .big .s1 { color: #ff9a90; }
.mcard .stars { font-size: 2.2rem; letter-spacing: 6px; color: #3a414c; margin: 6px 0; }
.mcard .stars i { font-style: normal; color: #ffc93a; text-shadow: 0 0 14px rgba(255, 190, 40, 0.7); display: inline-block; animation: pop 0.4s backwards; }
.mcard .stars i:nth-child(2) { animation-delay: 0.25s; } .mcard .stars i:nth-child(3) { animation-delay: 0.5s; }
@keyframes pop { from { transform: scale(2.5); opacity: 0; } }
.mvp { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0; padding: 8px 16px; border-radius: 12px; background: rgba(255, 176, 46, 0.12); border: 1px solid rgba(255, 176, 46, 0.35); }
.mvp small { color: var(--amber); font: 900 0.72rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.xprow { margin: 12px auto 0; max-width: 360px; text-align: left; }
.xprow .xpbar { height: 8px; margin-top: 6px; }
.xprow .xpbar i { transition: width 1.2s ease-out; }
.mbtns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.mbtns .go { width: auto; margin: 0; padding: 14px 26px; font-size: 1rem; }
.mcard table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.86rem; }
.mcard td, .mcard th { padding: 5px 8px; text-align: right; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.mcard td:first-child, .mcard th:first-child { text-align: left; }
.mcard th { color: var(--ink3); font-size: 0.7rem; text-transform: uppercase; }
.mcard tr.me td { background: rgba(255, 176, 46, 0.12); }
.vsrow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 14px 0; }
.vsrow .tm { display: grid; gap: 4px; padding: 12px; border-radius: 12px; }
.vsrow .tm b { font: 900 1rem var(--display); }
.vsrow .tm small { color: var(--ink3); }
.vsrow .tm.t0 { background: rgba(61, 139, 255, 0.14); border: 1px solid rgba(61, 139, 255, 0.4); }
.vsrow .tm.t1 { background: rgba(255, 74, 61, 0.14); border: 1px solid rgba(255, 74, 61, 0.4); }
.vsrow .vs { font: 900 1.6rem var(--display); color: var(--amber); }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 22%; transform: translateX(-50%); padding: 10px 18px; border-radius: 12px; background: rgba(10, 12, 16, 0.88); border: 1px solid var(--edge); font-weight: 700; opacity: 0; pointer-events: none; transition: opacity 0.25s; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; }

/* touch */
.touch { position: absolute; inset: 0; }
#hud > *:not(.pause) { pointer-events: none; }
.touch > * { pointer-events: auto; }
.stick { position: absolute; left: max(22px, env(safe-area-inset-left)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 70px); width: 132px; height: 132px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.18); }
.stick i { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.tb { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); background: rgba(14, 18, 24, 0.55); font-size: 1.25rem; font-weight: 900; display: grid; place-items: center; touch-action: none; }
.tb.on { background: rgba(255, 176, 46, 0.45); }
.tb.fire { right: calc(max(18px, env(safe-area-inset-right)) + 40px); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 90px); width: 86px; height: 86px; font-size: 2rem; background: rgba(255, 74, 61, 0.35); border-color: rgba(255, 120, 100, 0.6); }
.tb.fire2 { left: calc(max(18px, env(safe-area-inset-left)) + 150px); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 182px); width: 58px; height: 58px; background: rgba(255, 74, 61, 0.3); border-color: rgba(255, 120, 100, 0.5); }
.tb.aim { right: calc(max(18px, env(safe-area-inset-right)) + 140px); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 150px); }
.tb.jump { right: calc(max(18px, env(safe-area-inset-right)) + 0px); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 190px); }
.tb.crouch { right: calc(max(18px, env(safe-area-inset-right)) + 140px); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 80px); }
.tb.reload { right: calc(max(18px, env(safe-area-inset-right)) + 0px); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 30px); width: 46px; height: 46px; font-size: 1.1rem; }
.tb.swap { right: calc(max(18px, env(safe-area-inset-right)) + 70px); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 210px); width: 46px; height: 46px; font-size: 1.1rem; }
.tb.nade { right: calc(max(18px, env(safe-area-inset-right)) + 130px); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 220px); width: 46px; height: 46px; font-size: 1rem; }
.tb.use { right: calc(max(18px, env(safe-area-inset-right)) + 200px); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 120px); width: 50px; height: 50px; }
.tb.buy { top: calc(max(10px, env(safe-area-inset-top)) + 160px); left: calc(max(10px, env(safe-area-inset-left)) + 48px); width: 38px; height: 38px; font-size: 1rem; border-radius: 12px; color: #8ef0b0; }
.tb.tab { top: calc(max(10px, env(safe-area-inset-top)) + 160px); left: calc(max(10px, env(safe-area-inset-left)) + 94px); width: 38px; height: 38px; font-size: 1rem; border-radius: 12px; }
.tb.hide { display: none; }

body.touchmode #mini { width: 110px; height: 110px; }
body.touchmode .pause { top: calc(max(10px, env(safe-area-inset-top)) + 120px); }
body.touchmode .tb.buy, body.touchmode .tb.tab { top: calc(max(10px, env(safe-area-inset-top)) + 120px); }
body.touchmode .h-bot { bottom: max(6px, env(safe-area-inset-bottom)); }
body.touchmode .h-bot .vit, body.touchmode .h-bot .ammo { padding: 4px 10px; }
body.touchmode .h-bot .vit b, body.touchmode .h-bot .ammo b { font-size: 1.3rem; }
body.touchmode .h-bot .ammo { margin-right: 60px; }
body.touchmode .hint { bottom: auto; top: 30%; }
body.touchmode .feed div { font-size: 0.72rem; padding: 3px 7px; }

@media (max-width: 760px) {
  .tiles { left: 16px; right: 16px; grid-template-columns: 1fr 1fr; }
  .tile.hero { grid-column: span 2; min-height: 110px; }
  .tile { min-height: 100px; padding: 12px; }
  .subnav { left: 16px; right: 16px; }
  .subnav button { flex: 1; justify-content: center; padding: 10px 6px; font-size: 0.82rem; flex-direction: column; gap: 2px; }
  .brand { left: 16px; top: calc(max(12px, env(safe-area-inset-top)) + 64px); }
  .mapcards { grid-template-columns: 1fr; }
  .mapcard { height: 60px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .slider { grid-template-columns: 1fr 120px 40px; }
  .rk { min-width: 80px; }
  .online-dot { display: none; }
  .brand b { font-size: 8.6vw; }
  .brand small { font-size: 0.72rem; letter-spacing: 0.22em; }
  .tile .ico { font-size: 1.3rem; top: 10px; right: 10px; }
  .tile b { font-size: 1.05rem; }
}
@media (max-width: 440px) {
  .top { gap: 6px; }
  .rk small { display: none; }
  .rk { min-width: 64px; }
  .rankchip { padding: 4px 10px 4px 4px; gap: 6px; }
  .top .ib, .top .back { width: 38px; height: 38px; }
}
.rotate { display: none; }
@media (max-width: 520px) {
  body.touchmode .tb.use { right: calc(max(18px, env(safe-area-inset-right)) + 75px); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 290px); }
  body.touchmode .tb.fire2 { left: max(18px, env(safe-area-inset-left)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 240px); }
  body.touchmode .h-top { left: auto; right: 8px; transform: none; }
  body.touchmode .alive { left: auto; right: 12px; transform: none; }
  body.touchmode .tb.reload { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 110px); }
}
@media (orientation: portrait) and (pointer: coarse) {
  body.touchmode .rotate { display: grid; position: fixed; z-index: 15; left: 50%; top: 38%; transform: translateX(-50%); place-items: center; gap: 6px; padding: 14px 18px; border-radius: 14px; background: rgba(10, 12, 16, 0.8); text-align: center; font-weight: 700; pointer-events: none; animation: fadeOut 0.6s 4s forwards; }
  .rotate span { font-size: 2rem; animation: tilt 1.4s ease-in-out infinite; }
}
@keyframes tilt { 50% { transform: rotate(-90deg); } }
@keyframes fadeOut { to { opacity: 0; } }
@media (max-height: 520px) {
  .brand { top: calc(max(8px, env(safe-area-inset-top)) + 52px); }
  .brand b { font-size: 2.2rem; }
  .brand small { display: none; }
  .tiles { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 60px); grid-template-columns: repeat(3, minmax(0, 200px)); }
  .tile, .tile.hero { min-height: 88px; padding: 10px 12px; grid-column: auto; }
  .tile small { display: none; }
  .subnav { bottom: max(8px, env(safe-area-inset-bottom)); right: auto; }
  .subnav button { padding: 8px 14px; flex-direction: row; }
  .panel { max-height: calc(100dvh - 16px); }
  .panel-wrap { padding: 8px; }
}
