* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #10141a; color: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; user-select: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
[hidden] { display: none !important; }

#hud { position: fixed; inset: 0; pointer-events: none; text-shadow: 0 1px 3px rgba(0,0,0,.7); }

#crosshair { position: absolute; left: 50%; top: 50%; }
#crosshair i { position: absolute; background: #fff; box-shadow: 0 0 2px #000; }
#crosshair i:nth-child(1) { width: 2px; height: 8px; left: -1px; top: -13px; }
#crosshair i:nth-child(2) { width: 2px; height: 8px; left: -1px; top: 5px; }
#crosshair i:nth-child(3) { width: 8px; height: 2px; left: -13px; top: -1px; }
#crosshair i:nth-child(4) { width: 8px; height: 2px; left: 5px; top: -1px; }

#hitmarker { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; opacity: 0;
  background:
    linear-gradient(45deg, transparent 46%, var(--c, #fff) 46%, var(--c, #fff) 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--c, #fff) 46%, var(--c, #fff) 54%, transparent 54%);
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px); }
#hitmarker.show { opacity: 1; }
#hitmarker.head { --c: #ff4d3d; }

#scope { position: absolute; inset: 0; opacity: 0;
  background:
    linear-gradient(#000, #000) center / 2px 100% no-repeat,
    linear-gradient(#000, #000) center / 100% 2px no-repeat,
    radial-gradient(circle at center, transparent 0, transparent 38vh, #000 38.4vh); }
#scope.on { opacity: 1; }

#dmg { position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(220, 30, 20, .65) 100%); }
#dmg.show { opacity: 1; transition: none; }

#feed { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; }
#feed div { background: rgba(10,14,20,.6); padding: 4px 10px; border-radius: 4px; }
#feed .k { color: #ffb347; font-weight: 700; }
#feed .v { color: #ff6b5e; font-weight: 700; }
#feed .w { opacity: .75; margin: 0 6px; }
#feed .me { text-decoration: underline; }

#stats { position: absolute; top: 14px; left: 14px; font-size: 14px; background: rgba(10,14,20,.6); padding: 5px 10px; border-radius: 4px; }

#bottom-left { position: absolute; left: 22px; bottom: 22px; display: flex; align-items: center; gap: 12px; }
#hpbar { width: 220px; height: 16px; background: rgba(10,14,20,.6); border-radius: 3px; overflow: hidden; }
#hpfill { height: 100%; width: 100%; background: #4cd964; transition: width .12s; }
#hptext { font-size: 28px; font-weight: 800; }

#bottom-right { position: absolute; right: 22px; bottom: 22px; text-align: right; }
#ammo { font-size: 40px; font-weight: 800; line-height: 1; }
#ammo small { font-size: 18px; opacity: .7; }
#wname { font-size: 14px; opacity: .85; margin-top: 2px; }

#weapons { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 6px; font-size: 12px; }
#weapons div { background: rgba(10,14,20,.55); padding: 5px 10px; border-radius: 4px; border-bottom: 3px solid transparent; opacity: .7; }
#weapons div.on { border-color: #ff8a3d; opacity: 1; }
#weapons b { color: #ff8a3d; margin-right: 5px; }

#board { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); min-width: 380px;
  background: rgba(10,14,20,.82); border-radius: 8px; padding: 14px 18px; }
#board table { width: 100%; border-collapse: collapse; font-size: 15px; }
#board th { text-align: left; font-size: 12px; opacity: .6; padding-bottom: 6px; }
#board td { padding: 4px 0; }
#board td:nth-child(n+2), #board th:nth-child(n+2) { text-align: right; width: 70px; }
#board tr.me td { color: #ffb347; font-weight: 700; }

#death { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(90, 10, 10, .35); }
#deathtitle { font-size: 38px; font-weight: 800; }
#deathsub { font-size: 18px; margin-top: 8px; opacity: .85; }

#menu { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10,14,20,.45); }
.card { background: #171d26; border: 1px solid #2a3442; border-radius: 12px; padding: 30px 36px; text-align: center; width: min(560px, 94vw); background: rgba(23,29,38,.94); }
h1 { margin: 0; font-size: 46px; letter-spacing: 3px; font-weight: 900; }
h1 span { color: #ff8a3d; }
.tag { margin: 4px 0 22px; opacity: .6; }
#joinform { display: flex; gap: 8px; }
input { flex: 1; padding: 12px 14px; font-size: 16px; border-radius: 6px; border: 1px solid #2a3442; background: #0f141b; color: #fff; outline: none; user-select: text; }
input:focus { border-color: #ff8a3d; }
button { padding: 12px 26px; font-size: 16px; font-weight: 800; letter-spacing: 1px; border: 0; border-radius: 6px; background: #ff8a3d; color: #1a1005; cursor: pointer; }
button:hover { background: #ffa25f; }
#paused { display: flex; gap: 8px; }
#paused button { flex: 1; }
button.alt { background: #2a3442; color: #fff; }
button.alt:hover { background: #364355; }
#maps { display: flex; gap: 10px; margin-bottom: 14px; }
.map { flex: 1; padding: 8px; background: #0f141b; border: 2px solid #2a3442; color: #fff; text-align: left; letter-spacing: 0; font-weight: 400; }
.map:hover { background: #151c26; }
.map.on { border-color: #ff8a3d; }
.map canvas { width: 100%; aspect-ratio: 1; display: block; border-radius: 4px; margin-bottom: 6px; }
.map b { display: block; font-size: 15px; }
.map span { display: block; font-size: 11px; opacity: .65; margin-top: 2px; }
#status { min-height: 20px; margin: 10px 0 4px; font-size: 13px; color: #ff8a7a; }
.keys { width: 100%; font-size: 13px; text-align: left; border-collapse: collapse; opacity: .85; }
.keys td { padding: 4px 6px; }
.keys b { color: #ffb347; }

#reddot { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; display: none;
  background: #ff2a1a; box-shadow: 0 0 6px 2px rgba(255, 40, 20, .85), 0 0 14px 4px rgba(255, 40, 20, .35); }

#timer { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-size: 22px; font-weight: 800;
  background: rgba(10,14,20,.6); padding: 4px 14px; border-radius: 4px; font-variant-numeric: tabular-nums; }
#timer.low { color: #ff5a4d; }
#end { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8,11,16,.78); }
.endcard { background: #171d26; border: 1px solid #2a3442; border-radius: 12px; padding: 26px 34px; min-width: 420px; text-align: center; text-shadow: none; }
#endtitle { font-size: 40px; font-weight: 900; letter-spacing: 3px; color: #ff8a3d; }
#endsub { margin: 4px 0 16px; opacity: .8; }
#endranks table, #board table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: left; }
#endranks th { font-size: 12px; opacity: .6; padding-bottom: 6px; text-align: left; }
#endranks td { padding: 5px 0; }
#endranks td:nth-child(n+3), #endranks th:nth-child(n+3) { text-align: right; width: 70px; }
#endranks td:first-child, #board td:first-child { width: 34px; opacity: .7; }
#endranks tr.me td { color: #ffb347; font-weight: 700; }
#endranks tr:nth-child(2) td { font-size: 17px; font-weight: 700; }
#endcount { margin-top: 18px; font-size: 18px; font-weight: 700; }
#board td:nth-child(2), #board th:nth-child(2) { text-align: left; width: auto; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs a { flex: 1; padding: 9px 0; border-radius: 6px; background: #0f141b; border: 1px solid #2a3442; color: #cfd6df; text-decoration: none; font-weight: 800; letter-spacing: 1px; font-size: 13px; }
.tabs a:hover { background: #151c26; }
.tabs a.on { background: #ff8a3d; border-color: #ff8a3d; color: #1a1005; }

/* vehicle modes */
.mark { position: absolute; left: 0; top: 0; display: none; pointer-events: none; transform: translate(-50%, -50%); }
#gunsight { width: 26px; height: 26px; border: 2px solid #7dff9a; border-radius: 50%; box-shadow: 0 0 4px #000; }
#gunsight::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; background: #7dff9a; border-radius: 50%; }
#aimcircle { width: 44px; height: 44px; border: 1.5px solid rgba(255,255,255,.75); border-radius: 50%; }
#lockbox { width: 54px; height: 54px; border: 2px solid #ff3b30; color: #ff3b30; font-size: 10px; font-weight: 800; text-align: center; line-height: 120px; }
#warn { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); font-size: 22px; font-weight: 900; letter-spacing: 2px; color: #ff3b30; }
#info { font-size: 15px; font-weight: 700; line-height: 1.6; white-space: pre; font-variant-numeric: tabular-nums; }
#w1, #w2 { position: relative; min-width: 150px; overflow: hidden; opacity: 1 !important; }
#w1 i, #w2 i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #ff8a3d; }
#w1.ready i, #w2.ready i { background: #4cd964; }

/* ---- air force ---- */
.card.wide { width: 720px; max-width: 94vw; max-height: 94vh; overflow-y: auto; box-sizing: border-box; padding: 22px 30px; }
.card.wide h1 { font-size: 36px; }
.card.wide .tag { margin-bottom: 12px; }
#planes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.plane { flex: 1; padding: 6px 8px 8px; background: #0f141b; border: 2px solid #2a3442; color: #fff; text-align: left; border-radius: 8px; cursor: pointer; font-weight: 400; letter-spacing: 0; }
.plane:hover { background: #151c26; }
.plane.on { border-color: #ff8a3d; }
.plane img { width: 100%; aspect-ratio: 32/17; display: block; }
.plane b { display: block; font-size: 11.5px; line-height: 1.2; min-height: 28px; }
.plane span { display: block; font-size: 10.5px; opacity: .65; margin: 2px 0 5px; min-height: 26px; }
.plane .st { display: flex; align-items: center; gap: 5px; font-size: 9.5px; opacity: .85; margin-top: 2px; }
.plane .st u { flex: 0 0 36px; text-decoration: none; }
.plane .st i { flex: 1; height: 4px; background: #2a3442; border-radius: 2px; overflow: hidden; }
.plane .st i em { display: block; height: 100%; background: #ff8a3d; }
#sound { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; margin: 10px 0 2px; padding: 9px 12px; background: #0f141b; border: 1px solid #2a3442; border-radius: 8px; text-align: left; }
#sound label { display: flex; align-items: center; gap: 6px; }
#sound input[type=range] { flex: 0 0 90px; padding: 0; }
#sound input[type=checkbox] { flex: none; width: 16px; height: 16px; }
#sound select { background: #171d26; color: #fff; border: 1px solid #2a3442; border-radius: 4px; padding: 4px; max-width: 170px; }
#sound button { padding: 5px 10px; font-size: 12px; }
#hudc { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px; }
.tape { position: absolute; top: 50%; transform: translateY(-50%); font: 700 15px ui-monospace, Menlo, monospace; color: #7dff9a; text-shadow: 0 0 4px rgba(0,0,0,.9); white-space: pre; line-height: 1.5; }
.tape b { display: inline-block; font-size: 24px; border: 1.5px solid #7dff9a; padding: 0 8px; border-radius: 3px; background: rgba(0,20,8,.35); min-width: 74px; text-align: right; }
#spd { right: calc(50% + 250px); text-align: right; }
#alt { left: calc(50% + 250px); }
#spd .sonic { color: #fff; }
#radar { position: absolute; left: 22px; bottom: 58px; width: 170px; height: 170px; border-radius: 50%; background: rgba(4,16,10,.55); border: 1.5px solid rgba(125,255,154,.6); }
#basemark { color: #8fd0ff; font-size: 11px; font-weight: 700; white-space: nowrap; text-align: center; }
#basemark.low { color: #ffcc00; font-size: 13px; }
#vignette { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 35%, rgba(0,0,0,.95) 85%); }
#flash { position: absolute; top: 30%; left: 50%; transform: translateX(-50%); font-size: 18px; font-weight: 800; letter-spacing: 2px; color: #7dff9a; opacity: 0; transition: opacity .4s; }
#flash.show { opacity: 1; transition: none; }
#weapons .st4 { min-width: 120px; position: relative; overflow: hidden; opacity: 1; }
#weapons .st4 i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #4cd964; }
#weapons .st4.empty { color: #ff6b5e; }
#weapons .st4.empty i { background: #ff3b30; }
#lockbox.far { border-style: dashed; opacity: .7; }
#preview { position: relative; margin-bottom: 8px; border-radius: 8px; overflow: hidden; background: linear-gradient(#3f6fa6, #9db9d2 70%, #c9d6de); border: 1px solid #2a3442; }
#preview img { display: block; width: 100%; aspect-ratio: 1320/520; }
#preview div { position: absolute; left: 12px; right: 12px; bottom: 8px; text-align: left; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
#preview b { font-size: 22px; font-weight: 900; letter-spacing: 1px; margin-right: 10px; }
#preview span { font-size: 13px; opacity: .95; }
#preview small { display: block; font-size: 11.5px; opacity: .95; margin-top: 2px; }
.card.wide .keys { font-size: 12px; }
.card.wide .keys td { padding: 2px 6px; }
#speedfx { position: absolute; inset: 0; opacity: 0; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, #000 88%); mask-image: radial-gradient(ellipse at center, transparent 30%, #000 88%); }
#popup { position: absolute; top: 34%; left: 50%; transform: translateX(-50%) scale(.8); font-size: 22px; font-weight: 900; letter-spacing: 3px; opacity: 0; transition: opacity .35s, transform .35s; }
#popup.show { opacity: 1; transform: translateX(-50%) scale(1); transition: none; }
#popup.head { color: #ff4d3d; font-size: 34px; }
#death { background: linear-gradient(rgba(60,0,0,.45), rgba(0,0,0,0) 45%) !important; justify-content: flex-start !important; padding-top: 12vh; }

/* ---- loading screen ---- */
#splash { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(ellipse at 50% 40%, #1d2632, #0b0e13 75%); transition: opacity .5s; }
#splash.gone { opacity: 0; pointer-events: none; }
#splash b { font-size: 64px; font-weight: 900; letter-spacing: 6px; }
#splash b span { color: #ff8a3d; }
#splash i { width: 240px; height: 4px; border-radius: 2px; background: #2a3442; overflow: hidden; position: relative; }
#splash i::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; background: #ff8a3d; border-radius: 2px; animation: load 1s ease-in-out infinite; }
#splash small { opacity: .55; letter-spacing: 2px; text-transform: uppercase; font-size: 11px; }
@keyframes load { from { left: -40%; } to { left: 100%; } }

/* ---- progression ---- */
#menu { flex-direction: column; gap: 10px; }
#profile { background: #0f141b; border: 1px solid #2a3442; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; text-align: left; font-size: 12px; }
#profile .ptop { display: flex; align-items: center; gap: 12px; }
#profile .plv { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 900; color: #1a1005;
  background: conic-gradient(from 200deg, #ffb347, #ff8a3d, #ffd28a, #ff8a3d); box-shadow: 0 0 0 3px #171d26, 0 0 0 4px #ff8a3d; }
#profile .pinfo { flex: 1; min-width: 0; }
#profile .pinfo b { font-size: 16px; letter-spacing: 1px; text-transform: uppercase; }
#profile .pinfo span { display: block; opacity: .6; margin: 1px 0 5px; }
.pbar { height: 6px; background: #2a3442; border-radius: 3px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, #ff8a3d, #ffd28a); }
#profile .pstats { flex: none; white-space: pre; opacity: .75; line-height: 1.45; font-variant-numeric: tabular-nums; }
#profile .pmis { margin-top: 9px; border-top: 1px solid #2a3442; padding-top: 7px; }
#profile .pmis u { text-decoration: none; font-size: 10px; letter-spacing: 2px; color: #ffb347; font-weight: 700; }
#profile .pmis div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
#profile .pmis em { font-style: normal; opacity: .65; white-space: nowrap; }
#profile .pmis .done { color: #4cd964; }
#lvchip { position: absolute; left: 22px; bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: 1px; opacity: .85; }
#xpbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0,0,0,.35); }
#xpbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff8a3d, #ffd28a); transition: width .5s; }
#toasts { position: absolute; top: 15%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.toast { font-weight: 800; letter-spacing: 1.5px; animation: toastin .25s ease-out; transition: opacity .4s, transform .4s; white-space: nowrap; }
.toast.out { opacity: 0; transform: translateY(-10px); }
.toast.xp { font-size: 13px; color: #ffd28a; }
.toast.streak { font-size: 30px; font-weight: 900; color: #ff8a3d; letter-spacing: 4px; text-shadow: 0 0 18px rgba(255,138,61,.7), 0 2px 4px #000; }
.toast.level { font-size: 20px; color: #fff; background: linear-gradient(90deg, transparent, rgba(255,138,61,.55), transparent); padding: 5px 60px; }
@keyframes toastin { from { opacity: 0; transform: scale(1.5); } to { opacity: 1; transform: scale(1); } }
#endxp { margin-top: 14px; padding: 8px 10px; border-radius: 6px; background: rgba(255,138,61,.14); color: #ffd28a; font-weight: 700; font-size: 14px; }

/* ---- combat feedback ---- */
.dnum { position: absolute; font-size: 18px; font-weight: 900; color: #fff; pointer-events: none; animation: dnum .8s ease-out forwards; }
.dnum.head { color: #ff4d3d; font-size: 24px; }
@keyframes dnum { from { opacity: 1; transform: translate(-50%, 0) scale(1.3); } to { opacity: 0; transform: translate(-50%, -46px) scale(1); } }
#hitdir { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; transition: opacity .9s; }
#hitdir.show { opacity: 1; transition: none; }
#hitdir i { position: absolute; left: -90px; top: -170px; width: 180px; height: 60px; border-top: 6px solid rgba(255,60,40,.95); border-radius: 50%; filter: drop-shadow(0 0 6px rgba(255,60,40,.8)); }
#lowhp { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(170,0,0,.55) 100%); }
#lowhp.on { opacity: 1; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
#cine { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,.38) 100%); }

/* ---- menu extras ---- */
#opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; margin-top: 10px; padding: 8px 12px; background: #0f141b; border: 1px solid #2a3442; border-radius: 8px; text-align: left; }
#opts label { display: flex; align-items: center; gap: 6px; }
#opts input[type=range] { flex: 0 0 120px; padding: 0; }
#opts input[type=checkbox], #sound input[type=checkbox] { flex: none; width: 16px; height: 16px; }
#foot { margin-top: 10px; font-size: 11px; opacity: .6; }
#foot a, .page a { color: #ffb347; }
#ad-menu { display: block; font-size: 12px; }
#ad-menu[hidden] { display: none; }
.page { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; line-height: 1.65; user-select: text; }
.page h1 { font-size: 34px; } .page h2 { margin-top: 30px; color: #ffb347; font-size: 19px; }
body.doc { overflow: auto; height: auto; }
html:has(body.doc) { overflow: auto; height: auto; }

/* opening film */
#intro { position: fixed; inset: 0; z-index: 60; background: #000; opacity: 0; transition: opacity .5s; cursor: default; }
#intro.on { opacity: 1; } #intro.out { opacity: 0; pointer-events: none; }
#intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity 1.2s; }
#intro .bar { position: absolute; left: 0; right: 0; height: max(0px, calc((100vh - 100vw / 2.39) / 2)); background: #000; }
#intro .bar.t { top: 0; } #intro .bar.b { bottom: 0; }
#introcap { position: absolute; left: 6vw; bottom: calc(max(0px, (100vh - 100vw / 2.39) / 2) + 5vh); font: 600 13px/1 ui-monospace, Menlo, monospace; letter-spacing: 5px; color: #e9e4d6; text-shadow: 0 0 12px rgba(0,0,0,.9); }
#introskip { position: absolute; right: 22px; bottom: 16px; background: none; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.6); font-size: 11px; letter-spacing: 2px; padding: 7px 12px; border-radius: 3px; cursor: pointer; }
#introskip:hover { color: #fff; border-color: #fff; }
#introtitle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: #fff; opacity: 0; pointer-events: none; color: #fff; }
#intro.title #introtitle { opacity: 1; pointer-events: auto; cursor: pointer; animation: introbg 1.6s ease-out forwards; }
#intro.title canvas { opacity: 0; }
#introtitle b { font-size: min(11vw, 150px); font-weight: 900; letter-spacing: .5em; margin-right: -.5em; opacity: 0; }
#introtitle b span { color: #ff8a3d; }
#intro.title #introtitle b { animation: intrologo 2.6s cubic-bezier(.2,.7,.2,1) .25s forwards; }
#introtitle i { font-style: normal; letter-spacing: 8px; font-size: 13px; opacity: 0; }
#introtitle small { letter-spacing: 5px; font-size: 12px; opacity: 0; }
#intro.title #introtitle i { animation: introin 1.2s ease 1.5s forwards; }
#intro.title #introtitle small { animation: introin 1s ease 2.4s forwards, intropulse 1.6s ease-in-out 3.4s infinite; }
@keyframes introbg { from { background: #fff; } to { background: #07090c; } }
@keyframes intrologo { from { opacity: 0; letter-spacing: .5em; margin-right: -.5em; transform: scale(1.12); filter: blur(10px); } to { opacity: 1; letter-spacing: .08em; margin-right: -.08em; transform: none; filter: none; } }
@keyframes introin { to { opacity: .75; } }
@keyframes intropulse { 50% { opacity: .3; } }

/* ---------- team play ---------- */
#teamscore { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; font: 800 15px/1 system-ui, sans-serif; letter-spacing: 1px; text-shadow: 0 1px 3px #000; }
#teamscore b { padding: 5px 10px; border-radius: 4px; background: rgba(0,0,0,.45); }
#teamscore .friend { color: #6fbaff; border-bottom: 2px solid #4aa8ff; }
#teamscore .enemy { color: #ff7a7a; border-bottom: 2px solid #ff4d4d; }
#teamscore i { color: #fff; font-style: normal; }
#feed .friend { color: #6fbaff; }
#feed .enemy { color: #ff7a7a; }
table tr.teamhead td { font-weight: 800; letter-spacing: 1.5px; padding-top: 10px; }
table tr.teamhead.friend td { color: #6fbaff; }
table tr.teamhead.enemy td { color: #ff7a7a; }
table tr.friend td:nth-child(2) { color: #9fd0ff; }
table tr.enemy td:nth-child(2) { color: #ffb0b0; }

/* =================== garage-style menu (shared look with NitroRaze) =================== */
:root { --acc: #ff8a3d; --acc2: #ffb347; --cy: #00e5ff; --pan: rgba(8,11,16,.72); --ln: rgba(255,255,255,.12); --dim: #9aa6b6; }
#menu { display: block !important; position: fixed; inset: 0; padding: 0; background: radial-gradient(ellipse at 50% 120%, rgba(255,138,61,.12), transparent 60%), linear-gradient(180deg, rgba(4,6,10,.55) 0%, rgba(4,6,10,.1) 30%, rgba(4,6,10,.15) 65%, rgba(4,6,10,.8) 100%); font-family: 'Rajdhani', system-ui, sans-serif; color: #e9eef6; overflow: hidden; user-select: none; }
#menu[hidden] { display: none !important; }
#menu .mtop { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: linear-gradient(180deg, rgba(0,0,0,.75), transparent); }
#menu .mlogo { display: flex; align-items: baseline; gap: 14px; }
#menu .mlogo h1 { font-family: 'Teko', sans-serif; font-size: 46px; line-height: .8; font-style: italic; letter-spacing: 2px; margin: 0; padding-top: 6px; }
#menu .mlogo h1 span { color: var(--acc); text-shadow: 0 0 22px rgba(255,138,61,.6); }
#menu .mlogo small { font-weight: 700; letter-spacing: 3px; font-size: 11px; color: var(--dim); }
#menu .home { font-weight: 700; letter-spacing: 2px; font-size: 12px; color: #cfd6df; text-decoration: none; padding: 5px 10px; border: 1px solid var(--ln); border-radius: 3px; background: rgba(0,0,0,.35); align-self: center; }
#menu .home:hover { color: #fff; border-color: var(--acc); }
#menu .online { display: flex; align-items: center; gap: 2px; padding: 4px 14px; border-radius: 20px; background: rgba(5,7,12,.7); border: 1px solid rgba(107,230,117,.35); font-weight: 700; font-size: 13px; letter-spacing: 1px; }
#menu .online i { width: 8px; height: 8px; border-radius: 50%; background: #6be675; box-shadow: 0 0 8px #6be675; margin-right: 7px; animation: blink 1.6s infinite; }
#menu .online b { color: #6be675; }
@keyframes blink { 50% { opacity: .35; } }
#menu .acct { display: flex; align-items: center; gap: 10px; min-height: 40px; }
#menu .acct img, #menu .acct .av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--cy), #0077ff); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
#menu .acct b { display: block; font-size: 17px; line-height: 1; }
#menu .acct span { font-size: 11px; letter-spacing: 1.5px; color: var(--cy); font-weight: 700; }
#menu .acct .out { padding: 5px 10px; font-size: 12px; background: rgba(255,255,255,.08); color: #cfd6df; border: 1px solid var(--ln); }
#menu .acct .gsign { display: flex; align-items: center; gap: 9px; padding: 8px 14px; background: #fff; color: #1f1f1f; font-size: 14px; letter-spacing: .3px; border-radius: 4px; }
#menu .acct small { font-size: 11px; color: var(--dim); max-width: 130px; line-height: 1.2; }
#lobby { position: absolute; inset: 0; pointer-events: none; }
#lobby > * { pointer-events: auto; }
#menu .mleft { position: absolute; left: 28px; top: 96px; width: 330px; }
#menu .mright { position: absolute; right: 28px; top: 96px; width: 360px; }
#menu .sect { font-weight: 700; letter-spacing: 3px; font-size: 12px; color: var(--cy); margin: 0 0 6px; }
#menu .sect em { font-style: normal; color: rgba(255,255,255,.35); margin-left: 6px; }
#menu .picker { display: flex; align-items: stretch; gap: 6px; background: var(--pan); border: 1px solid var(--ln); border-left: 4px solid var(--acc); margin-bottom: 18px; backdrop-filter: blur(6px); }
#menu .picker .arr { flex: none; width: 42px; padding: 0; border-radius: 0; background: rgba(255,255,255,.06); color: #fff; font-size: 18px; }
#menu .picker .arr:hover { background: rgba(255,138,61,.35); color: #fff; }
#menu .picker .arrows { display: flex; flex-direction: column; }
#menu .picker .arrows .arr { flex: 1; font-size: 13px; }
#menu .picker canvas { width: 86px; height: 86px; align-self: center; margin: 8px 0; border-radius: 3px; image-rendering: auto; }
#menu .picker .pbody { flex: 1; min-width: 0; padding: 10px 10px 8px; display: flex; flex-direction: column; text-align: left; }
#menu .picker .pbody b { font-family: 'Teko', sans-serif; font-size: 32px; line-height: .95; letter-spacing: .5px; }
#menu .picker .pbody span { font-size: 14px; color: #c8d0db; line-height: 1.2; }
#menu .picker .pbody em { font-style: normal; font-weight: 700; font-size: 12px; color: var(--acc2); letter-spacing: 1px; margin-top: 4px; }
#menu .picker.flash { animation: pkflash .35s ease-out; }
@keyframes pkflash { 0% { border-color: var(--acc); box-shadow: 0 0 24px rgba(255,138,61,.6); } 100% { box-shadow: none; } }
#menu .bars { margin-top: 6px; }
#menu .st { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--dim); }
#menu .st u { text-decoration: none; }
#menu .st i { height: 5px; background: rgba(255,255,255,.1); display: block; }
#menu .st em { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); margin: 0; }
#menu #profile { background: var(--pan); border: 1px solid var(--ln); border-top: 3px solid var(--cy); border-radius: 0; padding: 12px 14px; font-size: 13px; margin: 0 0 14px; backdrop-filter: blur(6px); }
#menu #ad-menu { background: rgba(0,0,0,.35); text-align: center; }
#menu .mbottom { position: absolute; left: 28px; right: 28px; bottom: 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
#menu .keyhint { font-size: 13px; color: var(--dim); font-weight: 600; letter-spacing: .5px; max-width: 520px; }
#menu .keyhint b { color: #fff; }
#menu #joinform { display: flex; gap: 10px; align-items: stretch; }
#menu #name { width: 230px; font-family: inherit; font-size: 18px; font-weight: 700; padding: 0 14px; background: rgba(0,0,0,.55); color: #fff; border: 1px solid var(--ln); border-radius: 0; outline: none; }
#menu #name:focus { border-color: var(--cy); }
#menu #play { font-family: 'Teko', sans-serif; font-size: 34px; line-height: 1; font-style: italic; letter-spacing: 1px; padding: 12px 36px 6px; border-radius: 0; background: linear-gradient(90deg, #ff6a00, #ff9d3d); color: #fff; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); box-shadow: 0 0 30px rgba(255,120,0,.35); }
#menu #play:hover { filter: brightness(1.1); }
#menu #status { position: absolute; right: 0; bottom: -24px; font-size: 13px; color: #ffb0a0; }
#menu .mfoot { position: absolute; left: 10px; bottom: 6px; font-size: 10px; letter-spacing: 1px; color: rgba(255,255,255,.35); }
#menu .mfoot a { color: rgba(255,255,255,.45); text-decoration: none; }
#menu .mfoot a:hover { color: #fff; }
#menu #paused:not([hidden]) { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); }
#menu #paused .pcard { width: min(460px, 92vw); background: rgba(10,13,19,.94); border: 1px solid var(--ln); border-top: 3px solid var(--acc); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
#menu #paused h2 { font-family: 'Teko', sans-serif; font-size: 44px; margin: 0; letter-spacing: 2px; font-style: italic; }
#menu #paused button { font-family: 'Teko', sans-serif; font-size: 26px; padding: 8px 0 4px; border-radius: 0; }
#menu #paused #opts { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--dim); margin-top: 6px; }
#menu #paused .keys { font-size: 12px; color: var(--dim); margin: 6px auto 0; }
/* loader */
#splash { background: radial-gradient(ellipse at 50% 110%, #3a1a06 0%, #05070c 60%) !important; gap: 22px !important; font-family: 'Teko', 'Arial Narrow', Impact, sans-serif; }
#splash b { font-size: clamp(54px, 10vw, 110px) !important; font-style: italic; letter-spacing: 2px !important; line-height: .8; font-weight: 600 !important; }
#splash b span { color: var(--acc) !important; text-shadow: 0 0 26px var(--acc); margin-left: 6px; }
#splash i { width: min(420px, 70vw) !important; height: 6px !important; transform: skewX(-20deg); border-radius: 0 !important; background: rgba(255,255,255,.1) !important; }
#splash i::after { background: linear-gradient(90deg, #ff7a00, #ffb300) !important; box-shadow: 0 0 14px #ff7a00; border-radius: 0 !important; }
#splash small { font-family: 'Rajdhani', sans-serif; font-weight: 700; letter-spacing: 6px !important; font-size: 13px !important; color: #8b97a8; opacity: 1 !important; }
#splash p { font-family: 'Rajdhani', sans-serif; font-size: 15px; color: #6f7b8c; max-width: 80vw; text-align: center; margin: 0; }
@media (max-width: 1100px) { #menu .mright { width: 300px; } #menu .mleft { width: 290px; } }
@media (max-height: 760px) { #menu .mleft, #menu .mright { top: 80px; } #menu .picker canvas { width: 64px; height: 64px; } #menu #profile .pmis { display: none; } }

#menu #country { width: 150px; font-family: inherit; font-size: 16px; font-weight: 700; padding: 0 8px; background: rgba(0,0,0,.55); color: #fff; border: 1px solid var(--ln); border-radius: 0; outline: none; }
#menu #country option { background: #0b0f17; }

/* join / leave event box: light and unobtrusive */
#events { position: absolute; left: 18px; bottom: 120px; width: 290px; display: flex; flex-direction: column; gap: 3px; pointer-events: none; font: 600 13px/1.3 system-ui, sans-serif; }
#events .ev { background: rgba(0,0,0,.28); color: rgba(255,255,255,.82); padding: 4px 9px; border-left: 2px solid rgba(255,255,255,.35); transition: opacity .6s; text-shadow: 0 1px 2px #000; }
#events .ev.join { border-left-color: #6be675; }
#events .ev.left { border-left-color: #ff8a5e; }
#events .ev b { color: #fff; }
#events .ev.out { opacity: 0; }

/* ad boxes */
#ad-menu, .adbox { text-align: center; }
.adlabel { font: 700 9px/1 system-ui, sans-serif; letter-spacing: 2px; color: rgba(255,255,255,.35); text-transform: uppercase; margin: 6px 0 4px; }
.housead { display: block; line-height: 0; opacity: .9; }
.housead:hover { opacity: 1; }
.housead img { width: 100%; max-width: 360px; height: auto; }
#menu #ad-menu { background: none; }
#end .adbox { max-width: 728px; margin: 12px auto 0; }
#end .adbox .housead img { max-width: 480px; }
