/* Screen layouts (desktop-first; mobile overrides live in mobile.css) */
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.span-4, .span-5, .span-7, .span-8, .span-12 { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.span-4 > .card, .span-8 > .card { flex: 1; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- Home ---------- */
.home-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.card--hero { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 24px; background:
  radial-gradient(60% 120% at 0% 0%, rgba(197, 143, 240, .09), transparent 60%), var(--surface); }
.rank-card { display: flex; align-items: center; gap: 22px; }
.rank-card__emblem { flex: none; display: grid; place-items: center; width: 108px; height: 108px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); }
.rank-card__main { flex: 1; min-width: 0; }
.rank-card__tier { font: 700 40px/1.05 var(--font-display); letter-spacing: .02em; text-transform: uppercase; margin: 4px 0 10px; }
.rank-card__rr { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.rank-card__rr b { color: var(--text); }
.rrbar { flex: 1; max-width: 360px; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.rrbar i { display: block; height: 100%; background: linear-gradient(90deg, #9f6fd0, #c58ff0); border-radius: 999px; }
.rank-card__meta { display: flex; gap: 22px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.rank-card__meta b { color: var(--text); font-weight: 600; }
.card--hero .kpis { padding-top: 18px; border-top: 1px solid var(--line); }

.live-card { position: relative; display: block; height: 100%; min-height: 330px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.live-card:hover { border-color: rgba(255, 70, 85, .45); }
.live-card__bg { position: absolute; inset: 0; opacity: .55; }
.live-card__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 22, 25, .2), rgba(20, 22, 25, .96) 70%); }
.live-card__body { position: relative; display: flex; flex-direction: column; height: 100%; padding: 20px; gap: 10px; }
.live-card__top { display: flex; justify-content: space-between; align-items: center; }
.live-card__agent { position: absolute; right: 18px; top: 52px; width: 96px; height: 112px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.live-card__title { margin-top: auto; font: 700 34px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.live-card__title span { font-size: 18px; color: var(--text-2); font-weight: 600; letter-spacing: .06em; }
.live-card__stats { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.live-card__stats b { color: var(--text); }

.fav-agents { display: flex; flex-direction: column; gap: 8px; }
.fav-agent { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); }
.fav-agent:hover { border-color: var(--line-2); }
.fav-agent > .agent-art { width: 52px; height: 52px; border-radius: 6px; flex: none; }
.fav-agent__info { flex: 1; min-width: 0; }
.fav-agent__name { font-weight: 600; }
.fav-agent__wr { text-align: right; }

.feature { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature:hover { border-color: var(--line-2); }
.feature__art { position: relative; }
.feature__art > .map-art { position: absolute; inset: 0; opacity: .5; }
.feature__overlay { position: absolute; inset: 0; display: grid; place-items: center; }
.feature__overlay svg { width: 100%; height: 100%; }
.feature__body { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.feature__body h3 { font: 600 26px/1.1 var(--font-display); letter-spacing: .01em; }
.feature__body p { color: var(--text-2); }
.feature__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feature__meta .muted { display: inline-flex; gap: 4px; align-items: center; }
.feature__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

.news { display: flex; flex-direction: column; }
.news__item { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news__item:first-child { padding-top: 0; }
.news__item:last-child { border-bottom: 0; padding-bottom: 0; }
.news__item:hover .news__title { color: #fff; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.news__tag { font: 600 10.5px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.news__title { font-weight: 600; line-height: 1.3; }

/* ---------- Live match ---------- */
.setup-sel { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.setup-sel .seg > * { height: 36px; }

/* Live Match setup (#/setup) */
.setup { display: flex; flex-direction: column; gap: 22px; max-width: 880px; }
.setup__note { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13px; color: var(--text-2); }
.setup__note .i { flex: none; margin-top: 2px; }
.setup__group { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.setup__opts { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.setup__opts > a { min-height: 40px; }
.setup__soon { font: 600 10px/1 var(--font); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 3px 5px; }
.setup .seg > * { height: 40px; }
.setup__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.setup__sum { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; font: 600 18px var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.setup__sum > span:not([class]) { color: var(--muted); }
.setup__na { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-2); }
.setup--m { padding: 16px; gap: 18px; }
.setup--m .setup__foot { flex-direction: column; align-items: stretch; }
.setup--m .setup__opts > a { min-height: 44px; }
.is-mobile .setup .seg--block > * { height: 44px; }
.cta-big { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: linear-gradient(135deg, rgba(255, 70, 85, .16), rgba(255, 143, 74, .08)); border: 1px solid rgba(255, 70, 85, .45); flex: 1; }
.cta-big:hover { border-color: var(--red); }
.cta-big > .i:last-child { margin-left: auto; color: var(--red); }
.cta-big__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--red); color: #fff; flex: none; }
.cta-big > span:nth-child(2):not(.cta-big__row) { display: flex; flex-direction: column; gap: 2px; }
.cta-big__k { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.cta-big__t { font: 600 20px/1.1 var(--font-display); letter-spacing: .01em; }
.cta-big__s { font-size: 12px; color: var(--muted); }


/* ---------- Lineup viewer ---------- */
.vmap__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 12px; }
.tac-map { display: block; width: 100%; height: auto; }
.mk { cursor: pointer; transition: opacity .2s; }
.mk:hover { opacity: 1 !important; }
.save-btns { display: flex; gap: 6px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts > div { background: var(--bg-2); padding: 10px 12px; }
.facts dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.diff { display: inline-flex; align-items: center; gap: 5px; }
.diff::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.diff--easy::before { background: var(--win); } .diff--medium::before { background: var(--yellow); } .diff--hard::before { background: var(--loss); }
.pos__art svg, .mini-card__art svg, .step__art svg, .aimref svg, .bigstep__art svg { width: 100%; height: 100%; display: block; }

.video { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: #0c0d10; border: 1px solid var(--line); }
.video__bg { position: absolute; inset: 0; filter: saturate(.9) brightness(.7); }
.video__bg svg { width: 100%; height: 100%; }
.video__tl { position: absolute; left: 14px; top: 14px; z-index: 2; }
.video__tr { position: absolute; right: 14px; top: 14px; z-index: 2; }
.video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 70, 85, .92); color: #fff; box-shadow: 0 0 0 10px rgba(255, 70, 85, .15); }
.video__play .i { margin-left: 4px; }
.video__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px 16px 14px; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent); }
.video__ctrls { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); margin-bottom: 10px; }
.video__track { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.video__track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); border-radius: 4px; }
.video__track b { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255, 255, 255, .35); border-radius: 4px; }
.video__track u { position: absolute; top: -3px; width: 2px; height: 10px; background: var(--orange); border-radius: 2px; }
.video__center { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--text-2); }
.video--loading .video__bg { filter: blur(6px) brightness(.45); }


/* ---------- Library ---------- */
.lib-top { display: flex; flex-direction: column; gap: 14px; }
.pick-row { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pick-row__k { width: 56px; flex: none; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.agent-chips, .map-chips { display: flex; gap: 8px; min-width: 0; }
.scroller { overflow-x: auto; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.map-chip { position: relative; flex: none; width: 128px; height: 56px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.map-chip > span { position: absolute; left: 10px; bottom: 7px; font: 700 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; }
.map-chip > .map-art { position: absolute; inset: 0; opacity: .8; }
.map-chip.is-active { border-color: var(--mc); box-shadow: 0 0 0 1px var(--mc); }
.lib-top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.feat-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.fcoll { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fcoll:hover { border-color: var(--line-2); }
.fcoll__art { background: #0e1013; border-bottom: 1px solid var(--line); height: 230px; overflow: hidden; display: grid; place-items: center; }
.fcoll__art svg { width: 100%; height: 100%; }
.fcoll__body { display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.fcoll__t { font: 600 20px/1.1 var(--font-display); letter-spacing: .01em; }
.fcoll--lead .fcoll__t { font-size: 24px; }
.status-inline { display: flex; gap: 6px; align-items: center; }
.saved-key { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; font: 600 10.5px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--orange); background: var(--orange-dim); border-radius: var(--r-sm); }
.saved-key .i { fill: currentColor; }

/* ---------- Agents ---------- */
.agent-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.agent-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.agent-card:hover { border-color: color-mix(in srgb, var(--ac) 55%, transparent); transform: translateY(-2px); }
.agent-card > .agent-art { aspect-ratio: 4/4.2; height: auto; }
.agent-card__body { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.agent-card__role { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ac); }
.agent-card__name { font: 700 24px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.agent-card__stats { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.agent-card__stats b { color: var(--text); }
.agent-card__fav { position: absolute; top: 10px; right: 10px; color: var(--orange); display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .5); }
.agent-card__fav .i { fill: currentColor; }
.agent-card--sm > .agent-art { aspect-ratio: 1.3; }
.agent-card--sm .agent-card__name { font-size: 20px; }

.agent-hero { display: grid; grid-template-columns: 360px 1fr; min-height: 360px; background: linear-gradient(90deg, color-mix(in srgb, var(--ac) 10%, var(--surface)), var(--surface) 60%); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.agent-hero__art { position: relative; border-right: 1px solid var(--line); }
.agent-hero__info { display: flex; flex-direction: column; gap: 14px; padding: 32px; justify-content: center; }
.agent-hero__info .kicker { color: var(--ac); }
.agent-hero__info h2 { font: 700 72px/.95 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.agent-hero__info p { max-width: 560px; color: var(--text-2); font-size: 15px; }
.agent-hero__stats { display: flex; margin-top: 6px; }
.agent-hero__stats > div { display: flex; flex-direction: column; padding: 0 22px; border-left: 1px solid var(--line); }
.agent-hero__stats > div:first-child { padding-left: 0; border: 0; }
.agent-hero__stats b { font: 600 28px/1.1 var(--font-display); }
.agent-hero__stats span { font-size: 12px; color: var(--muted); }
.agent-hero__cta { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.abilities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ability { position: relative; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ability--ult { border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
.ability__key { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r); font: 700 17px var(--font-display); background: var(--surface-3); border: 1px solid var(--line-2); }
.ability--ult .ability__key { background: var(--red-dim); color: var(--red); border-color: rgba(255, 70, 85, .4); }
.ability__type { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ability__name { font: 600 22px/1.1 var(--font-display); margin: 4px 0 8px; padding-right: 40px; }
.ability p { font-size: 13px; color: var(--text-2); }
.rec-maps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rec-map { position: relative; height: 120px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.rec-map:hover { border-color: var(--line-2); }
.rec-map > .map-art { position: absolute; inset: 0; }
.rec-map .map-art__name { display: none; }
.rec-map__cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: linear-gradient(0deg, rgba(8, 9, 11, .92), transparent); }
.rec-map__cap span { font: 700 18px/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; }
.rec-map__cap b { font-size: 12px; color: var(--win); }
.rec-map__cap .i { color: var(--orange); fill: currentColor; }
.notes { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.notes li { display: flex; gap: 10px; color: var(--text-2); }
.notes .i { color: var(--win); margin-top: 2px; }

/* ---------- Maps ---------- */
.map-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 16px; }
.map-tile { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.map-tile:hover { border-color: color-mix(in srgb, var(--mc, #fff) 40%, var(--line-2)); }
.map-tile > .map-art { position: absolute; inset: 0; transition: transform .4s; }
.map-tile:hover > .map-art { transform: scale(1.03); }
.map-tile--lead { grid-column: span 2; grid-row: span 2; }
.map-tile__body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 16px; background: linear-gradient(0deg, rgba(8, 9, 11, .95), transparent); }
.map-tile__name { font: 700 30px/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; }
.map-tile--lead .map-tile__name { font-size: 52px; }
.map-tile__meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-2); }
.map-tile__tag { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--red); border-radius: var(--r-sm); }
.map-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.map-detail__preview { padding: 14px; }
.map-big { border-radius: var(--r); overflow: hidden; background: #0e1013; border: 1px solid var(--line); }
.map-detail__side { display: flex; flex-direction: column; gap: 16px; }
.map-facts h2 { font: 700 44px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin: 6px 0 6px; }
.map-facts p { margin-bottom: 14px; }
.seg-sites { display: inline-flex; gap: 4px; padding: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.seg-sites a { height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.seg-sites a.is-active { background: var(--surface-3); color: var(--text); }
.agent-guides { display: flex; flex-direction: column; }
.ag-row { display: grid; grid-template-columns: 30px 1fr auto 28px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ag-row:last-child { border: 0; }
.ag-row b { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Statistics ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: start; }
.rank-big { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.rank-big__top { display: flex; align-items: center; gap: 16px; }
.rank-big .rank-card__tier { font-size: 34px; margin: 2px 0 8px; }
.acts { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--line-2); margin-left: 6px; }
.act { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 10px 0 10px 18px; }
.act__dot { position: absolute; left: -6px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--surface); }
.act__k { font-size: 12px; color: var(--muted); }
.act__r { font-weight: 600; }
.act.is-current { background: linear-gradient(90deg, var(--surface-2), transparent); border-radius: 0 var(--r) var(--r) 0; }
.act.is-current .act__k { color: var(--text); }
.kpis--card { grid-template-columns: repeat(6, 1fr); padding: 18px 20px; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: 64px 1fr 44px 30px; align-items: center; gap: 12px; font-size: 13px; }
.hbar__track { position: relative; height: 10px; border-radius: 3px; background: var(--surface-3); }
.hbar__track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--orange); border-radius: 3px 4px 4px 3px; }
.hbar:hover .hbar__track i { background: #ffa56b; }
.hbar__track u, .hbars__foot u { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 1.5px dashed var(--text-2); opacity: .6; }
.hbar__v { text-align: right; }
.hbars__foot { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.hbars__foot u { position: static; display: inline-block; height: 12px; }
.stack__bar { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; }
.stack__bar i { display: block; height: 100%; }
.stack__legend { display: flex; gap: 20px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.stack__legend span { display: inline-flex; align-items: center; gap: 6px; }
.stack__legend i { width: 10px; height: 10px; border-radius: 2px; }
.stack__legend b { color: var(--text); margin-left: 2px; }
.table { display: flex; flex-direction: column; }
.table__h, .table__r { display: grid; grid-template-columns: 1.6fr .7fr 1.6fr .7fr .7fr .7fr; gap: 12px; align-items: center; padding: 9px 0; }
.table__h { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.table__r { border-bottom: 1px solid var(--line); font-size: 13.5px; }
.table__r:last-child { border: 0; }
.table__who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.table__wr { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; }
.stats-grid .card { padding: 18px 20px; }
.stats-grid .span-12 .mrow::before, .card .mrow::before { left: -20px; }

/* ---------- Training ---------- */
.train-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.streak { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.streak__n { font: 600 34px/1.1 var(--font-display); margin: 4px 0; }
.streak__n b { color: var(--orange); }
.week { display: flex; gap: 10px; }
.week__d { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.week__d i { width: 34px; height: 44px; border-radius: 6px; background: var(--surface-3); position: relative; overflow: hidden; }
.week__d i::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--v) * 100%); background: var(--orange); }
.week__d i.today { outline: 1.5px solid var(--text-2); outline-offset: 2px; }
.next-up { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; background: linear-gradient(135deg, rgba(255, 70, 85, .1), var(--surface) 60%); }
.next-up__t { font: 600 24px/1.1 var(--font-display); }
.next-up .btn { margin-top: 8px; }
.daily { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.daily__c { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.daily__c.is-done { border-color: rgba(63, 207, 142, .3); }
.daily__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); margin-bottom: 8px; }
.daily__icon--red { background: var(--red-dim); color: var(--red); }
.daily__icon--orange { background: var(--orange-dim); color: var(--orange); }
.daily__t { font: 600 19px/1.1 var(--font-display); }
.daily__p { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 10px; }
.daily__p span { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.goals { display: flex; flex-direction: column; gap: 16px; }
.goal { display: flex; flex-direction: column; gap: 6px; }
.goal__row { display: flex; justify-content: space-between; font-weight: 500; }
.routines { display: flex; flex-direction: column; }
.routine { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.routine:last-child { border: 0; }
.routine__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); background: var(--surface-3); color: var(--text-2); }
.routine__b { flex: 1; font-weight: 500; }
.skills { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: center; }
.skill { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-2); }
.skill__ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--red) calc(var(--v) * 1%), var(--surface-3) 0); position: relative; }
.skill__ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.skill__ring span { position: relative; font: 600 22px var(--font-display); color: var(--text); }

/* ---------- Local practice and collections ---------- */
.practice-queue, .practice-suggestions, .collection-add { display: flex; flex-direction: column; gap: 14px; }
.practice-list { display: flex; flex-direction: column; gap: 8px; }
.practice-row { display: flex; align-items: center; gap: 12px; padding: 10px; min-width: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.practice-row.is-done { border-color: rgba(63, 207, 142, .42); }
.practice-row__site { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--surface-3); color: var(--orange); font: 700 18px/1 var(--font-display); }
.practice-row__body { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.practice-row__body b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.practice-row__body span { font-size: 12px; color: var(--muted); }
.practice-row__actions { display: flex; flex: none; gap: 8px; align-items: center; }
.practice-empty { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--orange); }
.practice-empty > div { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; color: var(--text); }
.practice-empty span { font-size: 13px; color: var(--muted); }
.collection-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.collection-tabs { display: flex; flex: 1; min-width: 0; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.collection-tabs::-webkit-scrollbar { display: none; }
.collection-tabs .chip { white-space: nowrap; }
.collection-create { display: flex; flex: none; align-items: center; gap: 8px; }
.collection-create input { width: 178px; height: 36px; padding: 0 10px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); outline: none; }
.collection-create select { height: 36px; max-width: 115px; padding: 0 7px; color: var(--text-2); font: 500 12px var(--font); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.collection-create input:focus { border-color: var(--red); }
.collection-create [data-collection-status] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.collection-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.collection-head h2 { margin: 4px 0 6px; font: 600 28px/1 var(--font-display); }
.collection-head p { margin: 0; }
.collection-item { position: relative; min-width: 0; }
.collection-item .lcard { height: 100%; }
.collection-item__actions { display: flex; gap: 8px; padding: 8px 0 0; }
.collection-meta { display: grid; gap: 8px; padding-top: 10px; }
.collection-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { height: 26px; padding: 0 9px; color: var(--muted); font: 600 10px var(--font); letter-spacing: .04em; text-transform: uppercase; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; }
.tag-chip.is-active { color: var(--text); background: var(--red-dim); border-color: rgba(255,70,85,.5); }
.collection-note { display: flex; gap: 7px; }
.collection-note input { min-width: 0; flex: 1; height: 34px; padding: 0 10px; color: var(--text); font: 13px var(--font); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); outline: none; }
.collection-note [data-note-status] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.collection-empty { margin: 0; min-height: 220px; }
.coming-soon { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; max-width: 850px; }
.coming-soon--empty { align-items: start; }
.coming-soon__mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r); color: var(--orange); background: var(--orange-dim); }
.coming-soon h2 { margin: 4px 0 8px; font: 600 30px/1 var(--font-display); }
.coming-soon p { margin: 0; }
.coming-soon .btn { margin-top: 18px; }
.coming-soon__list { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 4px; }
.coming-soon__list > div { padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.coming-soon__list span { display: block; margin-bottom: 7px; color: var(--orange); font: 600 12px var(--font-display); letter-spacing: .08em; }
.coming-soon__list p { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ---------- Lineup library ---------- */
.library-search { display: flex; align-items: center; gap: 10px; }
.library-search .search { flex: 1; }
.library-search .search .icon-btn { margin-left: auto; }
.library-filter { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 14px; }
.library-filter > span { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.library-filter .chips { min-width: 0; }
.library-filter--bottom { grid-template-columns: 52px auto 52px minmax(0, 1fr); }
.library-filter__state-label { margin-left: 14px; }
.library-results { display: flex; flex-direction: column; gap: 14px; }
.library-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.library-row { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px 14px; color: var(--text); border-bottom: 1px solid var(--line); }
.library-row:last-child { border-bottom: 0; }
.library-row:hover { background: var(--surface-2); }
.library-row__agent { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--ac) 16%, var(--surface-3)); overflow: hidden; }
.library-row__body { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
.library-row__body b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.library-row__body small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-row__ability { width: 156px; flex: none; }
.library-row__media { display: grid; place-items: center; flex: none; width: 26px; color: var(--orange); }
.library-row__status { width: 204px; flex: none; }
.library-row__saved { color: var(--orange); }
.library-row__go { flex: none; color: var(--muted); }
.map-profile { position: relative; min-height: 230px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.map-profile__art, .map-profile__veil { position: absolute; inset: 0; }
.map-profile__art { opacity: .46; filter: saturate(.75) contrast(1.05); transform: scale(1.04); }
.map-profile__art .map-art { width: 100%; height: 100%; border: 0; border-radius: 0; background: transparent; }
.map-profile__art .map-art__svg { object-position: center; }
.map-profile__veil { background: linear-gradient(90deg, rgba(11,12,14,.96) 0%, rgba(11,12,14,.80) 42%, rgba(11,12,14,.34) 100%), linear-gradient(0deg, rgba(11,12,14,.42), transparent 55%); }
.map-profile__body { position: relative; z-index: 1; width: min(610px, calc(100% - 120px)); padding: 34px; }
.map-profile h2 { margin: 4px 0 8px; font: 700 clamp(42px, 6vw, 72px)/.86 var(--font-display); letter-spacing: .015em; text-transform: uppercase; }
.map-profile p { max-width: 470px; margin: 0; color: var(--text-2); line-height: 1.45; }
.map-profile__stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; color: var(--text-2); font-size: 13px; }
.map-profile__stats span { display: inline-flex; align-items: baseline; gap: 5px; }
.map-profile__stats b { color: var(--text); font: 600 23px/1 var(--font-display); }
.map-profile__clear { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--text); background: rgba(11,12,14,.72); backdrop-filter: blur(8px); }
.map-profile__clear:hover { border-color: var(--text-2); }

/* ---------- Find teammates / LFG (backend-ready UI shell) ---------- */
.lfg-hero { position: relative; display: flex; justify-content: space-between; min-height: 265px; padding: 36px; overflow: hidden; background: linear-gradient(118deg, var(--surface) 0%, #19181d 58%, #211519 100%); }
.lfg-hero::after { content: ''; position: absolute; width: 340px; height: 340px; right: -90px; top: -80px; border: 1px solid rgba(255,70,85,.22); transform: rotate(45deg); box-shadow: 0 0 0 42px rgba(255,70,85,.025), 0 0 0 84px rgba(255,70,85,.018); }
.lfg-hero > div:first-child { position: relative; z-index: 1; max-width: 630px; }
.lfg-hero h2, .lfg-create h2 { max-width: 610px; margin: 6px 0 10px; font: 700 clamp(35px,4.2vw,55px)/.92 var(--font-display); letter-spacing: .01em; text-transform: uppercase; }
.lfg-hero p { max-width: 560px; margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.lfg-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lfg-hero__art { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; align-self: flex-end; color: rgba(255,255,255,.24); }
.lfg-hero__art .i { color: var(--red); opacity: .75; }
.lfg-hero__art span { font: 700 27px/.83 var(--font-display); letter-spacing: .12em; }
.lfg-directory { margin-top: 28px; }
.lfg-connected { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 12px 14px; color: #b9f2ce; font-size: 13px; font-weight: 600; background: rgba(79, 202, 123, .12); border: 1px solid rgba(79, 202, 123, .3); border-radius: var(--r); }
.lfg-connected a { color: #d4f8e0; text-decoration: underline; }
.lfg-filters { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 0; padding: 0 18px; }
.lfg-filter { min-width: 0; padding: 16px 14px; }
.lfg-filter + .lfg-filter { border-left: 1px solid var(--line); }
.lfg-filter > span { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lfg-filter .chips { flex-wrap: wrap; }
.lfg-empty { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding: 28px; }
.lfg-empty__icon { display: grid; flex: none; place-items: center; width: 58px; height: 58px; color: var(--red); background: var(--red-dim); border: 1px solid rgba(255,70,85,.22); border-radius: 50%; }
.lfg-empty h3 { margin: 2px 0 5px; font: 600 24px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.lfg-empty p { max-width: 650px; margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.lfg-empty .btn { margin-left: auto; flex: none; }
.lfg-safety { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 22px 24px; }
.lfg-safety__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; color: var(--yellow); background: rgba(255,213,74,.09); }
.lfg-safety h2 { margin: 2px 0 4px; font: 600 20px/1 var(--font-display); text-transform: uppercase; }
.lfg-safety p { max-width: 700px; margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.lfg-safety .link-btn { margin-left: auto; white-space: nowrap; }
.lfg-create { max-width: 890px; padding: 32px; }
.lfg-create .back-link { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 27px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.lfg-create > .muted { max-width: 620px; line-height: 1.5; }
.lfg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.lfg-form label { display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lfg-form select, .lfg-form textarea, .lfg-form input:not([type="checkbox"]) { width: 100%; padding: 12px 13px; color: var(--text); font: 500 14px var(--font); letter-spacing: normal; text-transform: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); outline: none; }
.lfg-form textarea { min-height: 100px; resize: vertical; line-height: 1.45; }
.lfg-form small { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: normal; line-height: 1.35; text-transform: none; }
.lfg-form__wide { grid-column: 1 / -1; }
.lfg-form .lfg-check { flex-direction: row; align-items: center; gap: 9px; color: var(--text-2); font-size: 13px; font-weight: 500; letter-spacing: normal; text-transform: none; }
.lfg-check input { width: 16px; height: 16px; accent-color: var(--red); }
.lfg-discord-lock { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.lfg-discord-lock__mark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; color: #fff; font-weight: 800; background: #5865f2; border-radius: 10px; }
.lfg-discord-lock b { font-size: 13px; }
.lfg-discord-lock p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.lfg-discord-lock .btn { margin-left: auto; flex: none; }
.lfg-form__actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Notifications ---------- */
.notice-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.notice-head h2 { margin: 4px 0 0; font: 600 30px/1 var(--font-display); text-transform: uppercase; }
.notice-list { overflow: hidden; }
.notice-row { position: relative; display: flex; align-items: flex-start; gap: 13px; padding: 16px 20px; color: var(--text); border-bottom: 1px solid var(--line); }
.notice-row:last-child { border-bottom: 0; }
.notice-row:hover { background: var(--surface-2); }
.notice-row.is-unread { background: linear-gradient(90deg, rgba(255,70,85,.07), transparent 58%); }
.notice-row__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; color: var(--red); background: var(--red-dim); border-radius: 10px; }
.notice-row > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.notice-row b { font-size: 14px; }
.notice-row small, .notice-row em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.4; }
.notice-row i { position: absolute; top: 22px; right: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.notice-empty { display: flex; align-items: center; gap: 18px; min-height: 190px; padding: 30px; }
.notice-empty__art { display: grid; place-items: center; flex: none; width: 58px; height: 58px; color: var(--red); background: var(--red-dim); border-radius: 50%; }
.notice-empty h2 { margin: 3px 0 6px; font: 600 25px/1 var(--font-display); text-transform: uppercase; }
.notice-empty p { max-width: 650px; margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.notice-future { display: flex; align-items: center; gap: 11px; margin-top: 14px; padding: 16px 18px; color: var(--text-2); font-size: 12px; }
.notice-future > div { color: var(--orange); }
.notice-future p { margin: 0; }
.notice-future a { margin-left: auto; color: var(--text); white-space: nowrap; font-weight: 600; }

/* ---------- Favorites ---------- */
.empty--page { padding: 64px 20px 20px; max-width: 560px; margin: 0 auto; }
.empty--page .empty__art { width: 76px; height: 76px; color: var(--orange); background: var(--orange-dim); border-color: rgba(255, 143, 74, .3); }
.empty--page .empty__t { font-size: 26px; }
.empty__cta { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.empty__ghosts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; margin-top: 28px; opacity: .5; }
.ghost { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.ghost i { aspect-ratio: 16/9; border-radius: 6px; background: var(--surface-2); }
.ghost b { height: 8px; border-radius: 4px; background: var(--surface-2); }
.ghost b:last-child { width: 60%; }
.fav-agents--row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rec-maps--2 .rec-map { height: 150px; }

/* ---------- Settings ---------- */
.settings { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.set-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; padding: 10px; }
.set-nav a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: var(--r); color: var(--text-2); font-weight: 500; }
.set-nav a:hover { background: var(--surface-2); color: var(--text); }
.set-nav a.is-active { background: var(--surface-2); color: var(--text); }
.set-nav__foot { padding: 14px 10px 4px; margin-top: 8px; border-top: 1px solid var(--line); line-height: 1.5; }
.set-main { display: flex; flex-direction: column; gap: 20px; }
.set-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.set-sec { display: flex; flex-direction: column; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.set-row__t { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.theme { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); text-align: left; font-size: 13px; font-weight: 500; color: var(--text-2); }
.theme i { height: 46px; border-radius: 6px; border: 1px solid var(--line-2); }
.theme.is-active { border-color: var(--red); color: var(--text); }
.swatches { display: flex; gap: 8px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; }
.swatches i.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.acct, .device { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.acct > div:nth-child(2), .device > div:nth-child(2) { flex: 1; min-width: 0; }
.acct__logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r); font: 700 18px var(--font-display); background: var(--surface-3); color: var(--text-2); }
.device__i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r); background: var(--surface-3); color: var(--text-2); }
.ok { display: inline-flex; align-items: center; gap: 4px; color: var(--win); font-size: 12px; font-weight: 600; }
.profile { display: flex; align-items: center; gap: 18px; }
.profile .av { font-size: 26px; }
.profile__b { flex: 1; min-width: 0; }
.profile__n { font: 700 30px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.profile__n span { color: var(--muted); font-size: 20px; margin-left: 4px; }
.profile__tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Responsive desktop widths ---------- */
@media (max-width: 1480px) {
  .agent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  .home-grid > .span-8, .home-grid > .span-4 { grid-column: span 12; }
  .live-card { min-height: 240px; }
  .stats-grid > * { grid-column: span 12 !important; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .set-cols { grid-template-columns: 1fr; }
}

/* ---------- Pass 2 additions ---------- */
.rank-card__session { flex: none; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-width: 200px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.session__rr { font: 600 28px/1.1 var(--font-display); }
.form { display: flex; gap: 3px; margin: 8px 0 2px; }
.form i { width: 14px; height: 6px; border-radius: 2px; }
.form--W { background: var(--win); } .form--L { background: var(--loss); } .form--D { background: var(--muted); }
.roles { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.roles__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.roles .stack__legend { flex-wrap: wrap; gap: 6px 14px; font-size: 12px; }
.feature__art { background: #0e1013; border-right: 1px solid var(--line); }
.plan__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.plan__steps a { display: grid; grid-template-columns: 26px 22px 1fr auto 16px; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.plan__steps a:hover { border-color: var(--line-2); }
.plan__n { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--col); border: 1.5px solid var(--col); }
.plan__ab { color: var(--text-2); display: grid; place-items: center; }
.plan__t { font-weight: 600; }
.plan__w { font-size: 12px; color: var(--muted); }
.plan__steps a > .i:last-child { color: var(--muted); }
.cta-big__row { display: flex; align-items: center; gap: 14px; }
.cta-big__row > .i { margin-left: auto; color: var(--red); flex: none; }
.cta-big__txt { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 1240px) { .rank-card__session { display: none; } }

.stats-grid > .span-4, .stats-grid > .span-5 { align-self: stretch; }
.rank-big__top > div { flex: 1; min-width: 0; }
.acts { flex: 1; justify-content: space-around; }
.map-tile--info { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: repeating-linear-gradient(135deg, var(--bg-2) 0 10px, var(--surface) 10px 20px); }
.map-tile--info ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.map-tile--info li { display: flex; align-items: center; gap: 8px; }
.map-tile--info li i { width: 8px; height: 8px; border-radius: 2px; }
.pairs { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.pairs .kicker { margin-right: 6px; }
.notes-card { display: flex; flex-direction: column; }

/* ---------- Live Match: map-first ----------
   The map stage is sized with container units so the whole map fits ("contain")
   at zoom 1, and zoom/focus are pure CSS from --s (scale) and --cx/--cy (focus
   point as 0–1 fractions). Markers and labels counter-scale so they stay the
   same on-screen size at every zoom level. */
.page--live { gap: 14px; }
.mhead { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.mhead__art { flex: none; width: 50px; height: 56px; }
.mhead__art .agent-mono__glyph { left: 7px; top: 5px; font-size: 30px; }
.mhead__art .agent-mono__role { display: none; }
.mhead__id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mhead__kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.mhead__title { font: 700 30px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhead__title span { color: var(--muted); font-size: 20px; }
.mhead__r { flex: none; display: flex; align-items: center; gap: 10px; }

.lmtool { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.lmtool__hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.lfilters { gap: 6px; align-items: center; }
.lfilters .chip { height: 34px; }
.lfilters__sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; }
.chip--ab .chip__dot { display: none; }
.chip--ab .i { color: var(--col); }
.chip--ab.is-active { color: var(--text); border-color: var(--col); background: color-mix(in srgb, var(--col) 14%, var(--surface)); }
.chip.is-empty { opacity: .45; }
.chip--saved.is-active .i { fill: currentColor; }

.lmap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; }
.lmap.has-drawer { grid-template-columns: minmax(0, 1fr) 380px; }
.mapview { position: relative; height: max(460px, calc(100vh - 262px)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); touch-action: none; cursor: grab; outline: none;
  background: #17191d var(--tex-diagonals) repeat; background-size: var(--tex-size); } /* texture sits under the map stage and marker layer */
.mapview:focus-visible { box-shadow: 0 0 0 2px var(--red); }
.mapview.is-dragging { cursor: grabbing; }
.mapview.is-dragging .maplayer { pointer-events: none; }
/* Stage size + transform are set by MapView from the measured viewport */
.mapstage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.mapstage__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sitehit { position: absolute; z-index: 1; border-radius: 6px; border: 1.5px solid transparent; transition: border-color .15s, background .15s; }
.sitehit:hover { border-color: rgba(236, 232, 225, .4); background: rgba(236, 232, 225, .03); }
.sitehit.is-on { border-color: rgba(255, 70, 85, .8); box-shadow: 0 0 0 3px rgba(255, 70, 85, .12); }
/* Fixed-size overlay: markers, start points and labels, positioned in px by MapView */
.maplayer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.maplayer > * { pointer-events: auto; }
.callout { position: absolute; transform: translate(-50%, -50%); font: 600 10.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: rgba(236, 232, 225, .55); white-space: nowrap; pointer-events: none !important; text-shadow: 0 1px 3px #000; }

/* Marker types:
   single — one lineup: plain ringed disc
   shared — several variants at the SAME spot: stacked discs + count badge
   mixed  — shared spot with more than one ability: split ring + secondary ability chip
   .lclu  — several NEARBY spots merged at this zoom: dashed pill, tap to zoom in */
.lmk { position: absolute; z-index: 2; width: 34px; height: 34px; padding: 2.5px; border-radius: 50%; background: var(--ring); transform: translate(-50%, -50%); box-shadow: 0 4px 12px rgba(0, 0, 0, .5); transition: filter .15s; }
.lmk__disc { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #111317; color: var(--col); }
.lmk__stack { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: 4px -4px 0 -1px #111317, 4px -4px 0 1px var(--col), 8px -8px 0 -1px #111317, 8px -8px 0 1px var(--col); z-index: -1; }
.lmk--shared, .lmk--mixed { z-index: 3; }
.lmk:hover { filter: brightness(1.2); z-index: 5; }
.lmk__n { position: absolute; bottom: -8px; right: -10px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; font: 700 11px/1 var(--font); color: #111317; background: #ece8e1; box-shadow: 0 0 0 2px #111317; }
.lmk__alt { position: absolute; top: -6px; left: -6px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--col2); background: #111317; border: 1.5px solid var(--col2); }
.lmk.is-on { z-index: 6; }
.lmk.is-on .lmk__disc { background: var(--col); color: #140a04; }
.lmk.is-on::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--col); opacity: .6; }
.lmk.is-dim { opacity: .4; }
.lclu { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 8px; border-radius: 17px; font: inherit; color: var(--text); background: rgba(17, 19, 23, .92); border: 1.5px dashed rgba(236, 232, 225, .55); box-shadow: 0 4px 12px rgba(0, 0, 0, .5); cursor: zoom-in; }
.lclu:hover { border-color: #ece8e1; background: #1b1e23; }
.lclu b { font: 700 16px/1 var(--font-display); }
.lclu__lbl { font-size: 11px; color: var(--text-2); white-space: nowrap; }
.lclu__dots { display: inline-flex; gap: 2px; }
.lclu__dots i { width: 7px; height: 7px; border-radius: 50%; }
.lstart { position: absolute; z-index: 4; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; transform: translate(-50%, -50%); font: 700 11px/1 var(--font); color: var(--col); background: #0f1114; border: 2px solid var(--col); pointer-events: none !important; }

.mapview__tl { position: absolute; left: 12px; top: 12px; z-index: 6; }
.mapview__tl .seg { background: rgba(12, 13, 16, .92); }
.mapview__tag { position: absolute; right: 12px; top: 12px; z-index: 6; background: rgba(8, 9, 11, .8); }
.mapview__zoom { position: absolute; right: 12px; bottom: 12px; z-index: 6; display: flex; flex-direction: column; background: rgba(20, 22, 25, .94); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.mapview__zoom button { display: grid; place-items: center; width: 40px; height: 40px; color: var(--text-2); }
.mapview__zoom button + button { border-top: 1px solid var(--line); }
.mapview__zoom button:hover { color: var(--text); background: var(--surface-3); }
.mapview__zoom button[disabled] { opacity: .35; pointer-events: none; }
.mapview__legend { position: absolute; left: 12px; bottom: 12px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; max-width: calc(100% - 90px); padding: 8px 12px; font-size: 12px; color: var(--text-2); background: rgba(12, 13, 16, .9); border: 1px solid var(--line); border-radius: var(--r); cursor: default; }
.mapview__legend span, .m-mapkey span { display: inline-flex; align-items: center; gap: 7px; }
/* Legend swatches mirror the marker types */
.lk { position: relative; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-style: normal; background: #111317; border: 2px solid var(--orange); }
.lk--shared { box-shadow: 3px -3px 0 -1px #111317, 3px -3px 0 1px var(--orange); }
.lk--shared b { position: absolute; right: -9px; bottom: -6px; min-width: 12px; height: 12px; padding: 0 2px; display: grid; place-items: center; border-radius: 6px; font: 700 8px/1 var(--font); color: #111317; background: #ece8e1; }
.lk--mixed { border: 0; background: conic-gradient(var(--orange) 0 50%, var(--red) 50% 100%); }
.lk--mixed::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #111317; }
.lk--clu { width: auto; min-width: 26px; height: 16px; padding: 0 5px; border-radius: 8px; border: 1.5px dashed rgba(236, 232, 225, .6); font: 700 10px/1 var(--font); color: var(--text); }

.ldrawer { display: flex; flex-direction: column; min-width: 0; height: max(460px, calc(100vh - 262px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ldrawer__head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.ldrawer__id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ldrawer__id h3 { font: 600 24px/1.1 var(--font-display); letter-spacing: .01em; }
.ldrawer__sub { font-size: 12.5px; color: var(--muted); }
.ldrawer__list { list-style: none; margin: 0; padding: 10px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.ldrawer__note { margin: 0; padding: 10px 16px 14px; display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.ldrawer__note .i { color: var(--yellow); flex: none; margin-top: 1px; }
.vcard { position: relative; }
.vcard__main { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
.vcard__main:hover { border-color: var(--line-2); }
.vcard__main:hover .vcard__open { text-decoration: underline; }
.vcard__thumb { position: relative; align-self: start; width: 112px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.vcard__thumb > svg { display: block; width: 100%; height: 100%; }
.vcard__num { position: absolute; left: 5px; top: 5px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font: 700 11px/1 var(--font); color: var(--col); background: #0f1114; border: 2px solid var(--col); }
/* Illustrative clips aren't available yet: a planned-clip tag, never a play/time control */
.vcard__clip { position: absolute; right: 4px; bottom: 4px; display: inline-flex; align-items: center; height: 16px; padding: 0 5px; font: 700 9px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--yellow); background: rgba(10, 11, 13, .82); border: 1px dashed rgba(232, 197, 71, .5); border-radius: 3px; }
.vcard__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vcard__t { font-weight: 600; font-size: 14px; line-height: 1.3; padding-right: 34px; }
.vcard__route { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--text-2); }
.vcard__route em { display: inline-block; width: 44px; font-style: normal; color: var(--muted); }
.vcard__meta { display: flex; flex-wrap: wrap; gap: 5px; }
.vcard__meta .tagline, .vcard__meta .ab { height: 22px; font-size: 11.5px; }
/* Source-quoted throw facts can be long: let them wrap inside the card instead of overflowing it. */
.vcard__meta .tagline, .mv__meta .tagline { max-width: 100%; white-space: normal; height: auto; min-height: 22px; padding-block: 3px; line-height: 1.3; }
/* Long sourced throw directions (e.g. two-dart sequences) stay readable in cards: clamp, full text lives in the viewer */
.vcard__meta .tagline { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; padding-bottom: 0; border-bottom: 3px solid transparent; }
.vcard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
/* Long status labels wrap inside the card; "Open" never gets pushed past the card edge. */
.vcard__foot .status { max-width: 100%; white-space: normal; height: auto; min-height: 22px; padding-block: 4px; line-height: 1.25; }
.vcard__foot .vcard__open { margin-left: auto; }
.vcard__open { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--red); white-space: nowrap; }
.vcard__save { position: absolute; top: 10px; right: 10px; }
.pips { display: inline-flex; gap: 2px; margin-right: 5px; }
.pips i { width: 5px; height: 10px; border-radius: 2px; background: var(--surface-3); }
.pips i.on { background: var(--orange); }

@media (max-width: 1439px) {
  .lmap.has-drawer { grid-template-columns: minmax(0, 1fr) 350px; }
  .lmtool__hint { display: none; }
  .lfilters .chip { padding: 0 10px; }
}
@media (max-width: 1100px) {
  .lmap.has-drawer { grid-template-columns: minmax(0, 1fr); }
  .ldrawer { height: auto; max-height: 560px; }
  .mhead { flex-wrap: wrap; }
}

/* ---------- Full lineup viewer ---------- */
.page--viewer { gap: 16px; }

.vplayer { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #0c0d10; }
.vplayer__stage { position: relative; aspect-ratio: 16 / 9; }
.vplayer__stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vplayer__badge { position: absolute; left: 14px; top: 14px; z-index: 2; }
.vplayer__dur { position: absolute; right: 14px; top: 14px; z-index: 2; }
.vplayer__play { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255, 70, 85, .94); box-shadow: 0 0 0 10px rgba(255, 70, 85, .16), 0 10px 30px rgba(0, 0, 0, .5); }
.vplayer__play .i { margin-left: 4px; }
.vplayer__load { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-2); }
.vplayer__bar { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.vplayer__ctrls { display: flex; align-items: center; gap: 8px; }
.vplayer__time { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.vplayer.is-loading .vplayer__stage > svg { filter: blur(5px); }


.vmapcard { padding: 14px; }
.vmapcard__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.vmapcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.vmapbox { position: relative; aspect-ratio: 10 / 7; border-radius: var(--r); overflow: hidden; background: #0e1013; border: 1px solid var(--line); }
.vmapbox > .tac-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.vpin { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 16px)); padding: 3px 6px; font: 700 10px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; border-radius: 4px; pointer-events: none; }
.vpin--start { color: #111317; background: #ece8e1; }
.vpin--land { color: #1b0e05; background: var(--orange); }
.vsrc { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.vsrc__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vsrc__dl { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.vsrc__dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.vsrc__dl dt { color: var(--muted); }
.vsrc__dl dd { margin: 0; font-weight: 600; text-align: right; }
.vsrc__no { display: inline-flex; align-items: center; gap: 4px; color: var(--loss); }
.vsrc__report { align-self: flex-start; gap: 6px; }
.toast--float { position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: 360px; }
@media (max-width: 1439px) {
}
@media (max-width: 1100px) {
}

.mapstage__svg .svg-site { opacity: .3; }
@media (max-width: 1599px) { .lmtool__hint { display: none; } }
.mapview__legend .lk--shared { margin-right: 6px; }

/* ---------- Lineup viewer (assignment 007) ---------- */
.vwhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.vwhead__id { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vwhead__crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.vwhead__crumb .av { font-size: 8px; }
.vwhead__title { font: 600 30px/1.08 var(--font-display); letter-spacing: .01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.vwhead__r { display: flex; align-items: center; gap: 10px; }
.vwhead__nav { display: flex; align-items: center; gap: 6px; padding: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.vwhead__nav .icon-btn { width: 34px; height: 34px; border: 0; background: transparent; }
.vwhead__nav .icon-btn:hover { background: var(--surface-3); }
.vwhead__pos { min-width: 44px; text-align: center; font-size: 13px; color: var(--muted); white-space: nowrap; }
.vwhead__pos b { font: 700 18px/1 var(--font-display); color: var(--text); }

/* Chapters = step navigation */
.vplayer__chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.vch { min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 2px 2px 4px; border-radius: 6px; color: var(--muted); }
.vch:hover { color: var(--text); }
.vch i { display: block; height: 5px; border-radius: 3px; background: var(--surface-3); }
.vch.is-done i { background: rgba(255, 70, 85, .45); }
.vch.is-now i { background: linear-gradient(90deg, var(--red) 35%, var(--surface-3) 35%); }
.vch__lbl { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; font-weight: 600; }
.vch__lbl > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vch__lbl b { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; color: var(--text-2); background: var(--surface-3); }
.vch.is-now { color: var(--text); }
.vch.is-now b { color: #fff; background: var(--red); }
.vch small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; padding-left: 27px; }

/* Current step panel */
.vstepd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.vstepd__art { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.vstepd__art > svg { display: block; width: 100%; height: 100%; }
.illus { position: absolute; right: 8px; top: 8px; padding: 3px 7px; font: 600 9.5px/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: rgba(236, 232, 225, .75); background: rgba(8, 9, 11, .75); border-radius: 4px; }
.vstepd__txt { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.vstepd__n { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.vstepd__k { font: 600 30px/1.1 var(--font-display); letter-spacing: .01em; overflow-wrap: anywhere; }
.vstepd__s { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.vstepd__next { font-size: 13px; color: var(--muted); }
.vstepd__next b { color: var(--text); font-weight: 600; }
.vstepd__nav { display: flex; gap: 10px; margin-top: auto; padding-top: 10px; }
.vstepd__nav .btn { height: 44px; }
.vstepd__nav .btn--primary { flex: 1; min-width: 0; }
.vstepd__nav .btn--primary span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vmapcard { padding: 14px; }
.vmapcard__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.vmapcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.vsetup { padding: 16px; }
.vfacts { margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.vfacts > div { min-width: 0; }
.vfacts dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vfacts dd { margin: 3px 0 0; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.vsrc__yes { display: inline-flex; align-items: center; gap: 4px; color: var(--win); }
.vsrc__note { margin: 0; font-size: 12px; color: var(--muted); }
.vsrc__acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.vsrc__acts .vsrc__report { margin-left: auto; }
.lineup-report { display: none; gap: 12px; padding: 14px; background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: var(--r); }
.lineup-report.is-on { display: flex; flex-direction: column; }
.lineup-report__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lineup-report__head b { font-size: 14px; }
.lineup-report__head span, .lineup-report p { margin: 0; font-size: 12px; color: var(--muted); }
.lineup-report form { display: flex; flex-direction: column; gap: 10px; }
.lineup-report label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.lineup-report label span { color: var(--muted); font-weight: 400; }
.lineup-report select, .lineup-report textarea { width: 100%; min-width: 0; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; font: inherit; }
.lineup-report select { height: 38px; padding: 0 10px; }
.lineup-report textarea { resize: vertical; padding: 9px 10px; line-height: 1.4; }
.lineup-report select:focus, .lineup-report textarea:focus { outline: 2px solid rgba(255, 70, 85, .55); outline-offset: 1px; }
.lineup-report__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.lineup-report__foot [data-report-status] { font-size: 12px; color: var(--win); }

@media (max-width: 1439px) {
  .vstepd { grid-template-columns: minmax(0, 1fr); }
  .vstepd__art { max-height: 320px; }
  .vwhead__title { font-size: 26px; }
}
@media (max-width: 1100px) {
  .vwhead { grid-template-columns: auto minmax(0, 1fr); }
  .vwhead__r { grid-column: 1 / -1; justify-content: flex-end; }
}


/* Viewer layout: video + current step side by side (learning core above the fold),
   reference info (map, setup, source) in one row below */
.vwgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: 'video step' 'info info'; gap: 20px; align-items: stretch; }
.vwvideo { grid-area: video; min-width: 0; }
.vwstep { grid-area: step; min-width: 0; display: flex; }
.vwstep .vstepd { flex: 1; grid-template-columns: minmax(0, 1fr); align-content: start; }
.vwstep .vstepd__art { max-height: none; }
.vwstep .vstepd__txt { flex: 1; }
.vwstep .vstepd { display: flex; flex-direction: column; }
.vwinfo { grid-area: info; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.vwinfo__col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1800px) { .vwgrid { grid-template-columns: minmax(0, 1fr) 440px; } }
@media (max-width: 1439px) { .vwstep .vstepd__k { font-size: 26px; } }
@media (max-width: 1100px) { .vwgrid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'video' 'step' 'info'; } .vwinfo { grid-template-columns: minmax(0, 1fr); } }
.vstepd__peek { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 8px 10px 8px 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.vstepd__peek:hover { border-color: var(--line-2); }
.vstepd__peek > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vstepd__peek em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vstepd__peek b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vstepd__peek > .i { flex: none; color: var(--muted); }
.vstepd__peekart { flex: none; width: 72px; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.vstepd__peekart > svg { display: block; width: 100%; height: 100%; }

/* ---------- Viewer final pass (assignment 008) ---------- */
/* Placeholder player: visibly not a working video player */
.vplayer__ph { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 22px; text-align: center; background: rgba(10, 11, 13, .78); border: 1.5px dashed rgba(232, 197, 71, .45); border-radius: var(--r-lg); }
.vplayer__ph b { font-size: 15px; font-weight: 600; }
.vplayer__ph span:last-child { font-size: 12px; color: var(--muted); }
.vplayer__phicon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--yellow); border: 1.5px dashed rgba(232, 197, 71, .6); }
.vplayer--m .vplayer__ph { padding: 10px 14px; gap: 4px; }
.vplayer--m .vplayer__ph b { font-size: 13.5px; }
.vplayer--m .vplayer__phicon { width: 34px; height: 34px; }
.vplayer__ctrls [disabled] { opacity: .38; cursor: not-allowed; }
.vplayer__ctrls .seg [disabled].is-active { background: transparent; }
.vplayer__phtag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; font: 700 10px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); border: 1px dashed rgba(232, 197, 71, .5); border-radius: 4px; }
.vplayer__time { color: var(--muted); }
/* End-of-set states */
.icon-btn.is-disabled { opacity: .3; pointer-events: none; }
.vwhead__pos { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.vwhead__pos small { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.btn--end { flex: 1; min-width: 0; }
.btn--end span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vstepd__peek--end { color: var(--win); border-style: dashed; }
.vstepd__peek--end em { color: var(--win); }
/* Desktop step panel: illustration fills the available height */
.vwstep .vstepd { gap: 16px; }
.vwstep .vstepd__art { flex: 1 1 auto; aspect-ratio: auto; min-height: 200px; }
.vwstep .vstepd__txt { flex: 0 0 auto; }
.vwstep .vstepd__nav { margin-top: 4px; padding-top: 0; }
@media (min-width: 1600px) { .vwgrid { grid-template-columns: minmax(0, 1fr) 440px; } }
@media (min-width: 1800px) { .vwgrid { grid-template-columns: minmax(0, 1fr) 500px; } }
@media (max-width: 1100px) { .vwstep .vstepd__art { flex: none; aspect-ratio: 16 / 9; } }

/* ---------- Textures: blueprint grid, used sparingly ----------
   Only the Statistics rank card and the Training streak card get the grid. Never
   behind charts (it would compete with data gridlines), videos or map markers. */
.next-up { background: var(--surface) var(--tex-grid) repeat; background-size: var(--tex-size); background-position: -1px -1px; }
/* Rank card: quieter grid. A surface-toned wash sits over a sparser (1.5x) grid so the
   lines read as faint structure and the rank content stays primary; heaviest behind the emblem/tier. */
.rank-big {
  background:
    radial-gradient(130% 100% at 18% 22%, rgba(20, 22, 25, .9) 0%, rgba(20, 22, 25, .76) 55%, rgba(20, 22, 25, .66) 100%),
    var(--tex-grid) -1px -1px / 768px repeat,
    var(--surface);
}
/* Grid lines reach luminance 44; lift muted text so it stays >= 4.5:1 (WCAG AA) where it crosses a line */
.rank-big, .next-up { --muted: #989ba3; }

/* ---------- Texture layering fix (assignment 010) ----------
   Textures are backgrounds of decorative containers only. Any media that sits on a
   textured container gets its own opaque plate, so no pattern shows through it. */
.mapstage { background: #111316; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); } /* map plate: diagonals only around the map */
.rank-big__top > svg { flex: none; padding: 8px; box-sizing: content-box; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.vplayer__stage { background: #0c0d10; }
.vsrc__pending { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.vwstep .vstepd { min-width: 0; } /* long non-wrapping 'Up next' text must not widen the column */
.vsrc__head { flex-wrap: wrap; row-gap: 6px; } /* long status badges wrap below the heading at 320px */
/* Undocumented / unassessed lineup facts (ascent-data-honesty) */
.fact-na { font-weight: 500; font-style: italic; color: var(--text-2); }
.tagline--na { font-style: italic; color: var(--text-2); border-style: dashed; }
.vfacts__note { margin: 10px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }

/* Live Match: this side has no lineups for the chosen agent × map */
.mapview__empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; width: min(320px, calc(100% - 32px)); padding: 16px; display: grid; gap: 12px; justify-items: center; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md, 10px); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.mapview__empty p { margin: 0; font-size: 14px; color: var(--text-2); }
.mapview__empty .btn { min-height: 40px; }

/* Live Match: requested agent × map has no lineup set, so the demo set is shown */
.lnotice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; padding: 10px 12px; font-size: 13px; color: var(--text-2); background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--r-sm); }
.lnotice a { display: inline-flex; align-items: center; min-height: 40px; margin-left: auto; color: var(--red); font-weight: 600; }
.lnotice > span { flex: 1 1 200px; min-width: 0; }

/* Lineup viewer media: compact image-step view (no reserved player for a missing video) */
.vmedia { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.vmedia__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.vmedia__note { font-size: 12px; color: var(--text-2); }
.vmedia__main { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: #0c0d10; aspect-ratio: 16 / 9; max-height: 340px; }
.vmedia__main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vmedia__main figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; font-size: 11.5px; color: #fff; background: rgba(0, 0, 0, .6); border-radius: var(--r-sm); }
.vmedia__stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #0c0d10; }
.vmedia__stage video { width: 100%; height: 100%; display: block; }
.vmedia__strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.vmstep { display: grid; gap: 6px; min-height: 44px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r); color: var(--text-2); text-decoration: none; }
.vmstep.is-now { border-color: var(--red); color: var(--text); }
.vmstep__pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: #0c0d10; }
.vmstep__pic > svg, .vmstep__pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vmstep__lbl { display: flex; align-items: center; gap: 6px; font-size: 12px; min-width: 0; }
.vmstep__lbl b { flex: none; display: grid; place-items: center; width: 18px; height: 18px; font-size: 10.5px; border-radius: 50%; background: var(--surface-2); }
.vmstep.is-now .vmstep__lbl b { background: var(--red); color: #fff; }
.vmstep__lbl > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* loading + error fallback for remote media */
.vmedia .is-loading { background-image: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.08), rgba(255,255,255,.03)); background-size: 200% 100%; animation: vmshimmer 1.2s linear infinite; }
@keyframes vmshimmer { to { background-position: -200% 0; } }
.vmedia__fail { display: none; }
.vmedia .is-error > .vmedia__fail { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; text-align: center; font-size: 12px; color: var(--text-2); }
.vmedia .is-error > figcaption { display: none; }
.vmedia--m { border-radius: 0; border-left: 0; border-right: 0; }
/* Full screen: only on confirmed media, hidden while loading and once that media has failed */
.vmedia__fs { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; font: 600 13px/1 var(--font); color: #fff; background: rgba(8, 9, 11, .72); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r); cursor: pointer; }
.vmedia__fs:hover { background: rgba(8, 9, 11, .88); border-color: rgba(255, 255, 255, .4); }
.vmedia__fs:focus-visible, .mfull__close:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.vmedia .is-error > .vmedia__fs, .vmedia .is-loading > .vmedia__fs { display: none; }
.mfull { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #060709; }
.mfull__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mfull__t { margin: 0; min-width: 0; font: 700 18px/1.2 var(--font-display); letter-spacing: .03em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfull__close { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; font: 600 14px/1 var(--font); color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r); cursor: pointer; }
.mfull__close:hover { background: rgba(255, 255, 255, .16); }
.mfull__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 16px; }
.mfull__media { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.mfull__media img, .mfull__media video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r); background: #0c0d10; }
.mfull__media video { width: 100%; }
.mfull__fail { display: none; margin: 0; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.mfull__media.is-error .mfull__fail { display: flex; }
/* A step without confirmed media: its Vantage illustration, explicitly not source media */
.mfull__illus { position: relative; margin: 0; width: min(100%, calc((100dvh - 180px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #0c0d10; border: 1px solid rgba(255, 255, 255, .1); }
.mfull__illus > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mfull__tag { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 5px 9px; font: 700 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(8, 9, 11, .8); border: 1px dashed rgba(255, 255, 255, .35); border-radius: var(--r-sm); }
.mfull__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); }
.mfull__navbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 112px; min-height: 48px; padding: 0 16px; font: 600 15px/1 var(--font); color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r); cursor: pointer; }
.mfull__navbtn[data-dir="1"] { background: var(--red); border-color: var(--red); }
.mfull__navbtn:hover:not(:disabled) { filter: brightness(1.12); }
.mfull__navbtn:disabled { opacity: .38; cursor: not-allowed; }
.mfull__navbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mfull__pos { font-size: 14px; color: var(--text-2); white-space: nowrap; }
.mfull__pos b { color: #fff; }
@media (max-width: 640px) { .mfull__bar { padding: 8px 8px 8px 14px; } .mfull__t { font-size: 16px; } .mfull__stage { padding: 8px; } .mfull__nav { padding-inline: 10px; } .mfull__navbtn { min-width: 96px; } .mfull__illus { width: 100%; } }
.vmedia--m .vmedia__strip { gap: 6px; }
@media (max-width: 380px) { .vmedia--m .vmstep__lbl > span { display: none; } .vmedia--m .vmstep__lbl { justify-content: center; } }
/* Compact media no longer fills the left column: let the info cards flow under it, beside the step panel. */
@media (min-width: 1101px) {
  .vwgrid { grid-template-areas: 'video step' 'info step'; grid-template-rows: auto 1fr; align-items: start; }
  .vwstep { align-self: start; }
  .vwinfo { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1600px) { .vwinfo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pairs { flex-wrap: wrap; row-gap: 8px; } /* 320px: three agent chips must not overflow */
.vmap__head { flex-wrap: wrap; row-gap: 8px; } /* 3-site maps at 320px: the credit tag wraps below the site switcher */

/* Step-image zoom (inline + full screen): wheel zooms at the cursor, drag pans, Reset zoom returns to 100%. */
.vzoom__img { transform-origin: 0 0; will-change: transform; user-select: none; -webkit-user-drag: none; }
.is-zoomed .vzoom__img { cursor: grab; }
.is-panning .vzoom__img { cursor: grabbing; }
.mfull__media { overflow: hidden; }
.vzoom__reset { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; font: 600 12.5px/1 var(--font); color: #fff; background: rgba(8, 9, 11, .72); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r-sm); cursor: pointer; }
.vzoom__reset:hover:not(:disabled) { background: rgba(8, 9, 11, .9); border-color: rgba(255, 255, 255, .4); }
.vzoom__reset:disabled { opacity: .55; cursor: default; }
.vzoom__reset:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.is-loading > .vzoom__reset, .is-error > .vzoom__reset { display: none; }
.mfull__media .vzoom__reset { right: 12px; bottom: 12px; min-height: 40px; font-size: 13px; }
@media (hover: none) { .vzoom__reset { display: none; } } /* no wheel on touch devices, so nothing to reset */
.vstepd--noart { grid-template-columns: minmax(0, 1fr); }
.vwstep .vstepd--noart .vstepd__txt { flex: 1 1 auto; }
.vzoom__hint { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.vzoom__hint svg { flex: none; opacity: .8; }
.mfull { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.vzoom__hint--fs { justify-content: center; margin: 0; padding: 4px 16px 0; color: rgba(255, 255, 255, .62); }
@media (hover: none) { .vzoom__hint { display: none; } }

/* Visual QA: map-tile stats never break mid-phrase; they wrap below the name when space is tight. */
.map-tile__body { flex-wrap: wrap; gap: 6px 14px; }
.map-tile__meta span { white-space: nowrap; }
