:root, [data-theme="dark"] {
  --bg: #0d0f14; --bg2: #141821; --card: #1a1f2b; --card2: #222838; --line: #2a3142;
  --text: #e9ecf3; --muted: #8b93a7; --accent: #ff6a2a; --accent2: #ffb347;
  --t: #e0a63b; --ct: #5b9bff; --ok: #3ccf7a; --err: #ff5b5b;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
[data-theme="light"] {
  --bg: #f4f5f8; --bg2: #ffffff; --card: #ffffff; --card2: #f0f2f6; --line: #dfe3ea;
  --text: #171a22; --muted: #667089; --shadow: 0 8px 24px rgba(20, 30, 60, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body.noscroll { overflow: hidden; }
a { color: var(--accent2); }
code { background: var(--card2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.boot { padding: 80px 0; text-align: center; color: var(--muted); }

/* header */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .row { height: 62px; }
.logo { display: flex; align-items: baseline; gap: 8px; font-weight: 800; letter-spacing: .06em; color: var(--text); text-decoration: none; font-size: 19px; }
.logo .mark { color: var(--accent); }
.logo small { color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: 11px; }
.server { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.server b { color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--card2); }
.avatar.lg { width: 64px; height: 64px; border-radius: 14px; }
.avatar.letter { display: grid; place-items: center; font-weight: 800; color: #1b0d03; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.avatar.lg.letter { font-size: 26px; }
.uname { font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card2); padding: 9px 14px; border-radius: 10px; cursor: pointer; text-decoration: none; color: var(--text); font-weight: 600; white-space: nowrap; transition: .15s; }
.btn:hover { border-color: var(--accent); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.lg { padding: 14px 22px; font-size: 17px; }
.btn.ghost { background: transparent; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: 0; color: #1b0d03; }
.btn.danger { color: var(--err); }
.btn.danger:hover { border-color: var(--err); }
.btn.steam { background: #171a21; color: #fff; border-color: #2a475e; }
.btn.steam:hover { background: #1b2838; }
.btn.icon { font-size: 16px; }

/* tabs + side switch */
nav.tabs { border-bottom: 1px solid var(--line); background: var(--bg2); position: sticky; top: 62px; z-index: 15; }
nav.tabs .row { gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tab { background: none; border: 0; padding: 14px 14px; cursor: pointer; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.on, .tab:hover { color: var(--text); border-bottom-color: var(--accent); }
.seg { display: inline-flex; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.seg button.t.on { color: var(--t); }
.seg button.ct.on { color: var(--ct); }

main.wrap { padding-top: 20px; padding-bottom: 40px; min-height: 60vh; }
.bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.bar h2 { margin: 0; font-size: 22px; }
h2 small, h3 small { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 6px; }
.search { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--text); min-width: 260px; font: inherit; }
.search:focus, input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; }

/* landing */
.hero { padding: 90px 0 60px; text-align: center; background: radial-gradient(1200px 400px at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent); }
.hero h1 { font-size: clamp(30px, 5vw, 54px); margin: 0 0 12px; letter-spacing: -.02em; }
.hero h1 span { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; margin: 0 0 26px; }
.warn { color: var(--err) !important; margin-top: 16px !important; }
.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding-bottom: 60px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.feat .fi { font-size: 26px; }
.feat h3 { margin: 10px 0 6px; }
.feat p { margin: 0; color: var(--muted); }

/* public banner */
.pub { display: flex; align-items: center; gap: 14px; padding-top: 18px; }
.pub h2 { margin: 0; }
.pub small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.pub .btn { margin-left: auto; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.grid.sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid.xs { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 58vh; overflow: auto; padding: 2px; }
.card { position: relative; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: transform .12s, border-color .12s; min-width: 0; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: radial-gradient(circle at 50% 60%, var(--card2), transparent 70%); border-radius: 10px; }
.card .ct { display: flex; flex-direction: column; min-width: 0; }
.card .ct b, .card .ct span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .ct span { color: var(--muted); font-size: 13px; }
.card .ct small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.mini { padding: 6px; gap: 4px; }
.card.mini .ct span { font-size: 11px; }
.badges { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; z-index: 1; }
.badge { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; color: #10131a; }
.badge.t { background: var(--t); }
.badge.ct { background: var(--ct); }
.badge.on { background: var(--ok); }
.pip.on { background: var(--ok); }
.seg-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.loadout h3.first { margin-top: 0; }
.loadout .slots + .slots { margin-top: 10px; }

/* loadout */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.side { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; border-top: 3px solid var(--t); min-width: 0; }
.side.ct { border-top-color: var(--ct); }
.side h2 { margin: 0 0 14px; font-size: 18px; }
.side h3 { margin: 22px 0 10px; font-size: 15px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.slot { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 8px 8px; min-width: 0; }
.slot.click { cursor: pointer; }
.slot.click:hover { border-color: var(--accent); }
.slot img { width: 72px; height: 54px; object-fit: contain; flex: none; background: var(--card2); border-radius: 8px; }
.slot div { display: flex; flex-direction: column; min-width: 0; }
.slot small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.slot b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }

/* single loadout */
.loadout { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.loadout h3 { margin: 22px 0 10px; font-size: 15px; }
.loadout h3 .badge { font-size: 10px; padding: 1px 5px; vertical-align: 1px; }
.loadout .slots { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.loadout .slot { position: relative; }
.loadout .slot .badges.static { top: 6px; right: 8px; }
.loadout .slot b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-right: 54px; }
.slot .grow { flex: 1; }
.avatar.team { display: grid; place-items: center; font-weight: 800; letter-spacing: .04em; color: #1b0d03; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.pub .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pub { flex-wrap: wrap; }
.empty { background: var(--bg2); border: 1px dashed var(--line); border-radius: 16px; padding: 30px; text-align: center; }
.empty p { margin: 6px 0; }

/* executes viewer */
.btn.nav.on { border-color: var(--accent); }
.exgrid { display: grid; grid-template-columns: 290px minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.exlist { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 10px; max-height: calc(100vh - 210px); overflow: auto; position: sticky; top: 76px; }
.exlist-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.exitem { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 10px; padding: 8px; cursor: pointer; }
.exitem:hover { background: var(--card); }
.ico { display: inline-block; width: 1em; height: 1.2em; flex: none; vertical-align: -.25em; background: var(--ico-c, currentColor);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ico-smoke { --ico-c: #a7b0bf; } .ico-flash { --ico-c: #f2c230; } .ico-molotov, .ico-incendiary { --ico-c: #ff7a2f; }
.ico-he { --ico-c: #5cc062; } .ico-decoy { --ico-c: #b98cff; } .ico-awp { --ico-c: #5ab4ff; width: 2.2em; } .ico-bomb { --ico-c: #ff4d4d; }
:root[data-theme="light"] .ico-smoke { --ico-c: #6b7487; } :root[data-theme="light"] .ico-flash { --ico-c: #c99a00; }
.icn { display: inline-flex; align-items: center; gap: 1px; margin-right: 6px; }
.icn small { font-size: 11px; color: var(--muted); font-weight: 700; }
.radar .ricons rect { fill: #000c; }
.radar .nicon { pointer-events: none; }
.radar .nlabel.num { font-size: 10px; text-anchor: start; }
.exmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; margin-top: 2px; }
.exmeta .icn { margin: 0; }
.check.awpchk.on .box { background: #5ab4ff; border-color: #5ab4ff; }
.check small { font-weight: 500; }
.legend .ico { margin-right: 4px; }
.nadelist .ico { margin-right: 6px; }
.radar .ricons { pointer-events: none; }
.tog { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 5px; border: 1px solid var(--line); border-radius: 7px; background: none; cursor: pointer; opacity: .4; }
.tog.on { opacity: 1; border-color: currentColor; background: color-mix(in srgb, currentColor 12%, transparent); }
.tog.awp { color: #5ab4ff; } .tog.bomb { color: #ff4d4d; }
.tog:hover { opacity: 1; }
.chip .ico { margin-right: 2px; }
.ico.gun { width: 2.6em; height: 1.1em; --ico-c: var(--text); opacity: .85; margin-right: 4px; vertical-align: -.2em; }
.gunbox { margin-top: 10px; display: grid; gap: 6px; }
.gunbox > small { color: var(--muted); }
.gunrow { display: flex; align-items: center; gap: 8px; }
.gunrow select { flex: 1; min-width: 0; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; color: var(--text); font: inherit; }
.gunprev { width: 46px; display: inline-flex; justify-content: center; }
.gunprev .ico.gun { width: 44px; height: 18px; margin: 0; }
.seg.cats { display: grid; grid-template-columns: repeat(4, 1fr); align-self: stretch; }
.seg.cats button { padding: 6px 2px; font-size: 12px; white-space: nowrap; }
.buytag.pistol { background: color-mix(in srgb, #b98cff 25%, transparent); color: #c9a6ff; }
.steps { background: var(--card); border: 1px solid var(--accent); border-radius: 12px; padding: 8px 12px; margin: 10px 0; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; color: var(--muted); }
.steps li b { font-weight: 600; }
.steps .num { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; border: 2px solid var(--line); }
.steps li.done { opacity: .75; }
.steps li.done .num { background: #3fb950; border-color: #3fb950; color: #fff; }
.steps li.done b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.steps li.next { color: var(--text); }
.steps li.next .num { border-color: var(--accent); color: var(--accent); }
.steps li.next p { margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.steps .ready { margin: 6px 0 2px; font-size: 13px; color: #3fb950; }
.radar-wrap { position: relative; }
.maphint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--accent) 92%, #000); color: #1b0d03; font-size: 13px; font-weight: 600; padding: 6px 8px 6px 12px;
  border-radius: 10px; box-shadow: var(--shadow); max-width: calc(100% - 20px); }
.maphint .btn { padding: 4px 10px; flex: none; }
.maphint span { line-height: 1.35; }
.maphint.idle { width: max-content; text-align: center; }
.edhead h3 { font-size: 16px; white-space: nowrap; }
.edhead .row .btn { padding: 5px 9px; }
.steps .num { line-height: 1; box-sizing: border-box; flex: 0 0 22px; }
.edhead { flex-wrap: wrap; row-gap: 6px; }
.edhead .row { margin-left: auto; }
.maphint.idle { background: #000b; color: #fff; font-weight: 500; padding: 6px 12px; pointer-events: none; }
.legendline { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.edhead .btn:disabled { opacity: .35; cursor: default; }
.edhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: 0; z-index: 2; background: var(--bg2); padding: 4px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.edhead h3 { margin: 0; }
.edhead .row { gap: 6px; margin: 0; }
.edsec { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.edsec h4 { margin: 4px 0 6px; }
.edsec h4:not(:first-child) { margin-top: 12px; }
.edsec .fld:first-child { margin-top: 0; }
.edsec > p.small { margin: 4px 0 0; }
.edgrid { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: end; }
.unit { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.unit .num { width: 90px; }
.tplayers .linkish { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.tplayers li { align-items: center; padding: 4px 6px; }
.tplayers .linkish { flex-direction: column; align-items: flex-start; gap: 1px; }
.tplayers .pname { display: inline-flex; align-items: center; gap: 4px; }
.tplayers .psum { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.selbox.player { padding: 10px 12px; }
.phead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.phead b { font-size: 15px; }
.pline { display: grid; gap: 4px; padding: 7px 0; border-top: 1px solid var(--line); }
.plabel { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.selbox.player .pbody .row { margin-top: 0; }
.pbody { display: grid; gap: 5px; min-width: 0; }
.pbody select { width: 100%; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; color: var(--text); font: inherit; font-size: 13px; }
.pbody .row { margin: 0; gap: 4px; }
.pbody .chip { padding: 3px 8px; font-size: 12px; margin: 0; }
.pbody .check { margin: 0; padding: 3px 0; }
.phelp { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.seg.mini { display: flex; flex-wrap: wrap; padding: 2px; }
.seg.mini button { padding: 4px 8px; font-size: 12px; }
.pfoot { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); gap: 6px; }
.tplayers { gap: 6px; }
.tplayers li.pcard { padding: 0; border-radius: 10px; display: flex; gap: 4px; align-items: stretch; }
.pcard .pcbtn { flex: 1; min-width: 0; width: auto; }
.porder { display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.porder .btn { padding: 2px 6px; font-size: 10px; line-height: 1; min-height: 0; }
.porder .btn:disabled { opacity: .25; cursor: default; }
.catnow { color: var(--accent2); font-weight: 600; margin-left: 4px; }
/* T vs CT tags: T always orange, CT always blue */
.matchup { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; vertical-align: 1px; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.matchup .t, .matchup .ct { padding: 1px 5px; border-radius: 5px; }
.matchup .t { background: color-mix(in srgb, #ff9a3c 22%, transparent); color: #ffb067; }
.matchup .ct { background: color-mix(in srgb, #4da3ff 22%, transparent); color: #7dbbff; }
.matchup i { font-style: normal; color: var(--muted); font-weight: 600; text-transform: none; }
.tagfilter .matchup { margin-left: 0; }
.tagside { font-weight: 800; } .tagside.t { color: #ff9a3c; } .tagside.ct { color: #4da3ff; }
.catchips.t button.on { background: #ff9a3c; color: #1b0d03; }
.catchips.ct button.on { background: #4da3ff; color: #06172b; }
.instabtn { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 7px; padding: 2px 7px;
  font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.instabtn.on { background: #ffd84a; border-color: #ffd84a; color: #1b1400; }
.ntime { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.ntime small { font-size: 11px; }
.ntime .num.sm { width: 52px; }
.nadelist.edit li { flex-wrap: wrap; }
.tagfilter { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 2px 8px; }
.tagfilter button { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 3px 9px;
  font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.tagfilter button small { opacity: .7; font-weight: 600; margin-left: 2px; }
.tagfilter button:hover { color: var(--text); }
.tagfilter button.on { background: var(--accent); border-color: var(--accent); color: #1b0d03; }
.tagfilter button.full:not(.on) { color: #7ddc81; } .tagfilter button.force:not(.on) { color: var(--accent2); } .tagfilter button.pistol:not(.on) { color: #c9a6ff; }
.catchips { display: flex; flex-wrap: wrap; gap: 3px; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.catchips button { border: 0; background: none; padding: 5px 8px; border-radius: 7px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; color: var(--muted); }
.catchips button.on { background: var(--accent); color: #1b0d03; }
.catchips button:hover:not(.on) { color: var(--text); }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 4px; }
.catbtn { display: grid; gap: 1px; text-align: left; padding: 5px 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); cursor: pointer; font: inherit; }
.catbtn b { font-size: 12px; }
.catbtn small { font-size: 10px; color: var(--muted); font-weight: 400; line-height: 1.2; }
.catbtn:hover { border-color: var(--accent); }
.catbtn.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--card)); }
.buytag.mix { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent2); }
.buytag.eco, .buytag.deagle { background: color-mix(in srgb, #b98cff 25%, transparent); color: #c9a6ff; }
.buytag.smg, .buytag.shotgun, .buytag.sniper { background: color-mix(in srgb, #5ab4ff 22%, transparent); color: #8ccaff; }
.pcbtn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--card2); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--text); font: inherit; }
.pcbtn:hover { border-color: var(--accent); }
.pcard.on .pcbtn { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pbadge { flex: none; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 900; font-size: 13px; color: #10131a; border: 2px solid #10131a; }
.pbadge.t { background: #ff9a3c; } .pbadge.ct { background: #4da3ff; } .pbadge.bomb { background: #ff4040; }
.pinfo { display: grid; gap: 2px; min-width: 0; flex: 1; }
.pgun { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.pinfo small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.bombtag { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 800; color: #ff6b6b;
  background: color-mix(in srgb, #ff4040 15%, transparent); padding: 1px 6px; border-radius: 6px; }
.pgun .ico.gun { width: 52px; height: 20px; margin: 0; opacity: 1; }
.pgun .ico.gun + .ico.gun { width: 30px; height: 16px; opacity: .75; }
.pgear { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; min-height: 18px; }
.pgear .ico { width: 1em; height: 1.2em; }
.ptag { font-size: 10.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.pcur { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text); margin-left: 6px; }
.gungrid { display: grid; gap: 5px; }
.ggplain { display: flex; gap: 4px; flex-wrap: wrap; }
.gglabel { font-size: 10.5px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.ggrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 4px; }
.gg { display: grid; place-items: center; gap: 2px; padding: 5px 3px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--card);
  cursor: pointer; color: var(--text); font: inherit; }
.gg span { font-size: 10px; color: var(--muted); line-height: 1.1; text-align: center; }
.gg .ico.gun { width: 46px; height: 18px; margin: 0; opacity: .9; }
.gg:hover { border-color: var(--accent); }
.gg.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--card)); }
.gg.on span { color: var(--text); font-weight: 700; }
.gg.txt { padding: 5px 10px; font-size: 12px; font-weight: 600; }
.buyrules .gg { position: relative; min-height: 46px; }
.buyrules .gg.blocked { border-color: #ff4d4d; background: color-mix(in srgb, #ff4d4d 14%, var(--card)); }
.buyrules .gg.blocked .ico { opacity: .25; }
.buyrules .gg.blocked span { color: #ff8080; text-decoration: line-through; }
.buyrules .gg.blocked::after { content: '✕'; position: absolute; top: 2px; right: 5px; color: #ff4d4d; font-size: 11px; font-weight: 900; }
.btn.on { border-color: var(--accent); }
.pedit { flex: none; font-size: 11px; color: var(--muted); }
.pcbtn:hover .pedit { color: var(--accent); }
.phead { gap: 8px; }
.tplayers .rowgun { flex: 0 0 112px; width: 112px; background: var(--card2); border: 1px solid var(--line); border-radius: 7px; padding: 4px 4px; color: var(--text); font: inherit; font-size: 12px; }
.tplayers .linkish b { margin-right: 4px; }
.buytag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .05em; vertical-align: 1px; }
.buytag.full { background: color-mix(in srgb, #4caf50 25%, transparent); color: #7ddc81; }
.buytag.force { background: color-mix(in srgb, var(--accent2) 25%, transparent); color: var(--accent2); }
.fld .seg { align-self: flex-start; }
.exitem b .buytag:first-of-type { margin-left: 6px; }
.exitem b .buytag + .buytag { margin-left: 3px; }
.exrow { position: relative; border-radius: 10px; }
.exrow .exitem { padding-right: 40px; }
.extrash { position: absolute; top: 8px; right: 6px; width: 30px; height: 30px; border: 1px solid transparent; border-radius: 8px; background: none; cursor: pointer; opacity: .45; font-size: 15px; }
.exrow:hover .extrash, .extrash:focus-visible { opacity: 1; }
.extrash:hover { border-color: var(--err); background: color-mix(in srgb, var(--err) 15%, transparent); }
.exrow.confirm { outline: 1px solid var(--err); background: color-mix(in srgb, var(--err) 8%, transparent); }
.exconfirm { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 8px 8px; font-size: 13px; font-weight: 600; }
.exconfirm span { flex: 1; color: var(--err); }
.exitem.on { background: var(--card2); border-color: var(--accent); }
.exitem b { display: block; font-size: 14px; }
.exitem small { color: var(--muted); font-size: 12px; }
.site { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-weight: 800; font-size: 13px; color: #10131a; flex: none; }
.site.a { background: #ff9a3c; }
.site.b { background: #5bc0ff; }
.exradar { background: #0b0d12; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.radar-wrap { position: relative; }
.radar { display: block; width: 100%; height: auto; touch-action: none; }
.zoombar { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; gap: 4px; }
.zoombar .btn { width: 32px; height: 32px; padding: 0; justify-content: center; font-size: 17px; font-weight: 800; background: #000b; color: #fff; border-color: #fff3; }
.zoombar .btn:disabled { opacity: .35; cursor: default; }
.zoomhint { position: absolute; top: 48px; right: 10px; z-index: 3; font-size: 11px; color: #fffa; background: #000a; padding: 2px 8px; border-radius: 6px; pointer-events: none; }
.radar.panning, .radar.panning * { cursor: grabbing !important; }
.lower-btn { position: absolute; top: 10px; left: 10px; z-index: 2; }
.radar .spot circle { stroke: #10131a; stroke-width: 2; }
.radar .spot text { font: 900 10px system-ui, sans-serif; fill: #10131a; text-anchor: middle; pointer-events: none; letter-spacing: -.02em; }
.radar .spot .selring { fill: none; stroke: #fff !important; }
.radar .bombbadge circle { fill: #ff4040; stroke: #10131a; stroke-width: 1.2; }
.radar .bombbadge { pointer-events: none; }
.radar .spot .face { stroke-width: 3; stroke-linecap: round; }
.radar .spot.t circle, .radar .spot.t .face { fill: #ff9a3c; stroke: #ff9a3c; }
.radar .spot.bomb circle, .radar .spot.bomb .face { fill: #ff4040; stroke: #ff4040; }
.radar .spot.ct circle, .radar .spot.ct .face { fill: #4da3ff; stroke: #4da3ff; }
.radar .spot circle { stroke: #10131a !important; }
.radar .nlabel { font: 800 12px system-ui, sans-serif; fill: #fff; text-anchor: middle; paint-order: stroke; stroke: #000; stroke-width: 3px; }
.radar .nlabel.q { fill: #ffd84a; }
.radar .dim { opacity: .22; }
.exinfo { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; position: sticky; top: 76px; }
.exinfo h3 { margin: 0 0 6px; }
.exinfo h4 { margin: 16px 0 8px; }
.nadelist { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.nadelist li { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.dotc { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid #0006; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.lg.t { background: #ff9a3c; } .lg.bomb { background: #ff4040; } .lg.ct { background: #4da3ff; }
.lg.smoke { background: #c9cfd8; } .lg.flash { background: #ffd84a; } .lg.molly { background: #ff7a2f; }
.small { font-size: 13px; }

/* website execute editor */
.badge.edit { background: #b26bff; color: #fff; font-size: 12px; padding: 5px 10px; }
.exlist.locked { opacity: .5; pointer-events: none; }
.radar [data-act] { cursor: pointer; }
.radar .lib.spotlib circle { fill: #ffffff22; stroke: #fff; stroke-width: 2; }
.radar .lib:hover circle { stroke-width: 3.5; }
.radar .nade.sel circle, .radar .lib.sel circle { stroke: #fff !important; stroke-width: 4 !important; }
.radar .nade.sel line { stroke-width: 4; }
.fld { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; margin: 8px 0; }
.fld input, .fld select { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--text); font: inherit; font-weight: 400; }
.selbox { background: var(--card); border: 1px solid var(--accent); border-radius: 12px; padding: 10px; margin: 10px 0; }
.selbox .row { margin-top: 8px; gap: 6px; }
.row.wrap { flex-wrap: wrap; }
.nadelist.edit li { gap: 6px; }
.nadelist.edit li.on { outline: 1px solid var(--accent); border-radius: 8px; }
.num.sm { width: 70px; padding: 4px 6px; }
.exinfo .actions { margin-top: 14px; gap: 8px; }
.warn { color: var(--err); }
.utilbox { margin-top: 8px; display: grid; gap: 6px; }
.utilbox small { color: var(--muted); }
.utilbox .row { gap: 4px; margin: 0; }
.utilbox .chip { padding: 4px 9px; font-size: 12px; margin: 0; }
.chip:disabled { opacity: .35; cursor: not-allowed; }
.roles { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.radar.placing { cursor: crosshair; }
.radar.placing g { pointer-events: none; }
.placebar { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 10px 0; display: grid; gap: 6px; }
.placebar > small { color: var(--muted); font-weight: 600; }
.placebar .row { gap: 4px; margin: 0; }
.placebar .chip { padding: 5px 10px; font-size: 13px; margin: 0; display: inline-flex; align-items: center; gap: 5px; }
.placebar .hint { margin: 0; color: var(--accent2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; margin-top: 6px; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.check .box { width: 18px; height: 18px; border: 2px solid var(--muted); border-radius: 5px; display: grid; place-items: center; font-size: 13px; line-height: 1; }
.check.on .box { background: #ff4d4d; border-color: #ff4d4d; color: #fff; }
.check.sm { margin: 0; gap: 4px; }
.tplayers { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 14px; }
.tplayers li { display: flex; align-items: center; gap: 8px; padding: 2px 6px; border-radius: 8px; }
.tplayers li.on { outline: 1px solid var(--accent); }
.linkish { background: none; border: 0; padding: 4px 0; color: var(--text); font: inherit; cursor: pointer; text-align: left; flex: 1; }
.linkish:hover b { color: var(--accent2); }
.more { margin-top: 14px; font-size: 14px; }
.more summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.radar .ulabel { font: 800 11px system-ui, sans-serif; fill: #ffd84a; text-anchor: middle; paint-order: stroke; stroke: #000; stroke-width: 3px; pointer-events: none; }

/* weapons split */
.split { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
aside.weapons { position: sticky; top: 124px; max-height: calc(100vh - 140px); overflow: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.cat h4 { margin: 10px 8px 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.wpn { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 5px 8px; border-radius: 10px; cursor: pointer; text-align: left; }
.wpn img { width: 54px; height: 34px; object-fit: contain; }
.wpn span { flex: 1; font-weight: 600; font-size: 14px; }
.wpn:hover { background: var(--card); }
.wpn.on { background: var(--card2); box-shadow: inset 3px 0 0 var(--accent); }
.pip { width: 8px; height: 8px; border-radius: 50%; }
.pip.t { background: var(--t); }
.pip.ct { background: var(--ct); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { border: 1px solid var(--line); background: var(--card); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #1b0d03; }

/* presets */
.preset-new { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.preset-new input { flex: 1; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--text); font: inherit; }
.presets { display: grid; gap: 10px; }
.preset { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.preset div { flex: 1; display: flex; flex-direction: column; }
.preset small { color: var(--muted); }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; user-select: none; }
.switch input { display: none; }
.switch span { width: 40px; height: 22px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); position: relative; transition: .15s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: .15s; }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { left: 20px; background: #fff; }

/* modal editor */
#modal, #picker { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
#picker { z-index: 60; }
.backdrop { position: absolute; inset: 0; background: rgba(5, 7, 12, .7); backdrop-filter: blur(4px); }
.dialog { position: relative; width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.1fr 1fr; }
.dialog.small { display: block; width: min(820px, 100%); padding: 20px; }
.dialog.small h3 { margin: 0 0 12px; }
.x { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--card2); border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; }
.preview { padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%); text-align: center; }
.preview img { width: 100%; max-height: 300px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); }
.pname { font-size: 20px; font-weight: 800; margin-top: 8px; }
.tag { font-style: italic; color: var(--accent2); }
.form { padding: 24px; display: flex; flex-direction: column; gap: 16px; border-left: 1px solid var(--line); }
.field label { display: block; font-weight: 700; margin-bottom: 8px; }
.field label.switch { display: inline-flex; margin-bottom: 0; }
.field label small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.field .chips { margin-bottom: 8px; }
.field input[type=text] { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); font: inherit; }
.rowf { display: flex; align-items: center; gap: 10px; }
.rowf input[type=range] { flex: 1; accent-color: var(--accent); }
.num { width: 120px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--text); font: inherit; }
.rowf .search { flex: 1; min-width: 0; }
.stickers { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sticker { width: 62px; height: 62px; border-radius: 12px; border: 1px dashed var(--line); background: var(--card); cursor: pointer; display: grid; place-items: center; padding: 4px; }
.sticker.set { border-style: solid; border-color: var(--accent); }
.sticker span { color: var(--muted); font-size: 22px; }
.sticker img { width: 100%; height: 100%; object-fit: contain; }
.actions { display: flex; gap: 10px; margin-top: 4px; }
.actions .primary { flex: 1; justify-content: center; padding: 12px; }

/* toasts */
#toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.toast { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ok); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 360px; transition: .4s; }
.toast.err { border-left-color: var(--err); }
.toast.hide { opacity: 0; transform: translateY(8px); }

.foot { color: var(--muted); font-size: 13px; padding: 24px 16px 40px; border-top: 1px solid var(--line); }

@media (max-width: 1180px) {
  .exgrid { grid-template-columns: 260px minmax(0, 1fr); }
  .exinfo { grid-column: 1 / -1; position: static; }
}
@media (max-width: 960px) {
  .exgrid { grid-template-columns: 1fr; }
  .exlist { position: static; max-height: 300px; }
  .sides { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  aside.weapons { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
  aside.weapons .cat { display: contents; }
  aside.weapons h4 { display: none; }
  .wpn { flex: none; width: auto; flex-direction: column; gap: 2px; padding: 6px 10px; }
  .wpn span { font-size: 12px; }
  .wpn.on { box-shadow: inset 0 -3px 0 var(--accent); }
  .dialog { grid-template-columns: 1fr; }
  .form { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .server { display: none; }
  .uname { display: none; }
  .search { min-width: 0; width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  nav.tabs { top: 62px; }
}

/* editor: one-line step hint, settings card and popups */
.stepline { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--accent); border-radius: 10px; padding: 7px 10px; margin: 8px 0; font-size: 13px; }
.stepline.ok { border-color: #3fb950; color: #3fb950; }
.stepline .stepn { flex: none; font-size: 11px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.setcard { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 0 0 8px; color: var(--text); cursor: pointer; font: inherit; }
.setcard:hover { border-color: var(--accent); }
.setcard .grow { min-width: 0; display: grid; gap: 2px; }
.setcard b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setcard small { color: var(--muted); font-size: 12px; }
.exmodal-bg { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 12px; }
.exmodal { width: min(460px, 94vw); max-height: 86vh; overflow-y: auto; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.exmodal .selbox { margin: 0; }
.exmodal .mtext { width: 100%; box-sizing: border-box; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--text); font: inherit; }
.exmodal .mtext:focus { outline: none; border-color: var(--accent); }
