/* Карты: список и страница карты */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 30px; }
.mtile { position: relative; height: 180px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line2); background: var(--c1); transition: .25s; display: block; color: #fff; }
.mtile:hover { transform: translateY(-3px); border-color: var(--c3); box-shadow: 0 20px 40px -24px var(--c3); }
.mtile::before { content: ""; position: absolute; inset: 0; background: var(--img, none) center/cover no-repeat; transition: transform .5s; }
.mtile:hover::before { transform: scale(1.06); }
.mtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,8,24,.95) 8%, rgba(7,8,24,.25) 60%, rgba(7,8,24,.1)), linear-gradient(120deg, transparent 40%, var(--c2)); mix-blend-mode: normal; }
.mtile > * { position: absolute; z-index: 2; }
.mtile .mtag { right: 12px; top: 12px; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 8px; background: rgba(7,8,24,.6); color: #c9cdf5; }
.mtile .mname { left: 18px; bottom: 34px; font: italic 900 30px var(--font); text-transform: uppercase; }
.mtile .mstats { left: 18px; bottom: 14px; font-size: 13px; color: #c9cdf5; }

/* страница карты */
.mhero { position: relative; border-radius: 26px; overflow: hidden; padding: 34px 30px; margin-top: 18px; background: var(--c1); border: 1px solid var(--line2); color: #fff; }
.mhero { min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.mhero::before { content: ""; position: absolute; inset: 0; background: var(--img, none) center 40%/cover no-repeat; }
.mhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,8,24,.92) 20%, rgba(7,8,24,.45) 60%, rgba(7,8,24,.15)), linear-gradient(0deg, rgba(7,8,24,.7), transparent 50%), linear-gradient(120deg, transparent 50%, var(--c2)); }
.mhero > * { position: relative; z-index: 2; }
.mhero .name { font: italic 900 clamp(46px, 9vw, 84px)/1 var(--font); text-transform: uppercase; margin: 10px 0 14px; }
.mhero .stats { display: flex; gap: 10px; flex-wrap: wrap; }
.mhero .stats span { padding: 6px 12px; border-radius: 12px; background: rgba(7,8,24,.55); border: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #dfe1ff; }
.back { color: var(--muted); font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .8px; } .back:hover { color: var(--text); }

.mtabs { display: flex; gap: 6px; padding: 5px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); margin: 22px 0 18px; width: max-content; max-width: 100%; overflow-x: auto; }
.mtabs button { font: 800 13.5px var(--font); text-transform: uppercase; letter-spacing: .5px; padding: 11px 18px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.mtabs button.on { background: var(--grad); color: #fff; }
.mtabs button small { opacity: .75; font-weight: 700; margin-left: 4px; }

.filters { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 16px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 700 13px var(--font); padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--muted); cursor: pointer; }
.chip.on { border-color: var(--violet); color: var(--text); background: rgba(139,92,246,.14); }

.ngrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ncard { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.ncard .thumb { position: relative; aspect-ratio: 16/9; background: var(--panel3) center/cover no-repeat; display: grid; place-items: center; cursor: pointer; }
.ncard .thumb .play { width: 52px; height: 52px; border-radius: 50%; background: rgba(7,8,24,.7); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); }
.ncard .thumb .play svg { width: 22px; height: 22px; margin-left: 3px; }
.ncard .thumb.none { cursor: default; color: var(--dim); font-size: 13px; }
.ncard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ncard .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ncard b { font-size: 16px; }
.ncard .route { color: var(--muted); font-size: 14px; }
.ncard .how { font-size: 13.5px; color: var(--text2); }
.ncard .setpos { margin-top: auto; display: flex; gap: 6px; }
.ncard .setpos code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; padding: 7px 9px; border-radius: 9px; background: var(--panel2); color: var(--muted); }
.t-smoke { background: rgba(160,170,200,.16) !important; color: #c8cfe8 !important; }
.t-flash { background: rgba(255,233,120,.14) !important; color: #ffe37a !important; }
.t-molotov { background: rgba(255,120,80,.15) !important; color: #ff9b78 !important; }
.t-he { background: rgba(52,224,161,.13) !important; color: var(--good) !important; }
.s-T { background: rgba(255,170,80,.14) !important; color: #ffb35c !important; }
.s-CT { background: rgba(80,160,255,.15) !important; color: #7cb6ff !important; }

.empty-box { text-align: center; padding: 36px 20px; border-radius: 22px; border: 1px dashed var(--dash); background: var(--panel); }
.empty-box b { display: block; font: italic 900 24px var(--font); text-transform: uppercase; margin-bottom: 6px; }
.tipgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.tipgrid ul { margin: 8px 0 0; padding-left: 18px; } .tipgrid li { color: var(--text2); margin: 6px 0; font-size: 15px; }

.scard { border-radius: 20px; border: 1px solid var(--line); background: var(--panel); padding: 18px 20px; }
.scard ol { margin: 10px 0 0; padding-left: 20px; } .scard li { color: var(--text2); margin: 6px 0; }

.plist { list-style: none; margin: 10px 0 0; padding: 0; } .plist li { padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--text2); font-size: 14.5px; }
.calls { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.callgroup h3 { margin: 0 0 10px; font: italic 900 18px var(--font); text-transform: uppercase; }
.call { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.call b { font-weight: 800; } .call span { color: var(--dim); font-size: 13px; }

/* 2D-карта */
.radar-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 22px; align-items: center; }
.radar-card { position: relative; border-radius: 26px; padding: 18px; overflow: hidden; border: 1px solid var(--line2);
  background: radial-gradient(circle at 30% 20%, rgba(34,211,238,.10), transparent 55%), radial-gradient(circle at 80% 90%, rgba(236,72,153,.12), transparent 55%), #080919; }
.radar-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(140,150,255,.06) 1px, transparent 1px) 0 0/40px 40px, linear-gradient(90deg, rgba(140,150,255,.06) 1px, transparent 1px) 0 0/40px 40px; pointer-events: none; }
.radar-stage { position: relative; aspect-ratio: 1; cursor: zoom-in; }
.radar-stage canvas { width: 100%; height: 100%; display: block; position: relative; }
.radar-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 14px; }
.rmark { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; font: italic 900 15px var(--font); color: #fff; pointer-events: none; }
.rmark.site { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(7,8,24,.75), 0 0 24px rgba(236,72,153,.7); font-size: 18px; }
.rmark.spawn { padding: 3px 8px; border-radius: 8px; font-size: 11.5px; letter-spacing: .5px; box-shadow: 0 0 0 3px rgba(7,8,24,.75); }
.rmark.s-T { background: #f59e0b; color: #1a1205; } .rmark.s-CT { background: #3b82f6; }
.rmark.static { position: static; transform: none; display: inline-grid; margin-right: 10px; vertical-align: middle; }
.rmark.site.static { width: 28px; height: 28px; font-size: 14px; }
.legend { display: grid; gap: 12px; color: var(--text2); font-size: 15px; }
.lg-floor { display: inline-block; width: 28px; height: 14px; border-radius: 5px; margin-right: 10px; vertical-align: middle; background: linear-gradient(90deg, #11132e, #605cc4); box-shadow: 0 0 0 1px rgba(139,92,246,.6); }
.radar-big { position: relative; width: min(90vh, 94vw); aspect-ratio: 1; border-radius: 24px; border: 1px solid var(--line2);
  background: radial-gradient(circle at 30% 20%, rgba(34,211,238,.10), transparent 55%), radial-gradient(circle at 80% 90%, rgba(236,72,153,.12), transparent 55%), #080919; }
.radar-big img { width: 100%; height: 100%; display: block; }
@media (max-width: 860px) { .radar-wrap { grid-template-columns: 1fr; } .rmark.site { width: 30px; height: 30px; font-size: 15px; } }

.vmodal { position: fixed; inset: 0; z-index: 50; background: rgba(3,3,10,.85); display: grid; place-items: center; padding: 20px; }
.vmodal .box { width: min(960px, 100%); aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; }
.vmodal iframe, .vmodal video { width: 100%; height: 100%; border: 0; display: block; }
.vmodal .x { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-size: 20px; cursor: pointer; }

@media (max-width: 700px) { .tipgrid { grid-template-columns: 1fr; } .mhero { padding: 26px 20px; } }
