:root {
  --bg: #0b0e14;
  --bg2: #121722;
  --panel: #161c29;
  --panel2: #1c2333;
  --line: #273046;
  --text: #e8ecf4;
  --muted: #9aa4b9;
  --dim: #7f89a1;
  --blue: #4c8dff;
  --blue-bg: rgba(76, 141, 255, 0.12);
  --red: #ff5a63;
  --red-bg: rgba(255, 90, 99, 0.12);
  --gold: #e8b64c;
  --gold-bg: rgba(232, 182, 76, 0.14);
  --good: #3ccf91;
  --good-bg: rgba(60, 207, 145, 0.12);
  --bad: #ff7a59;
  --bad-bg: rgba(255, 122, 89, 0.12);
  --radius: 12px;
  --font-num: "Chakra Petch", "Pretendard Variable", sans-serif;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: rgba(232, 182, 76, 0.35); color: var(--text); }
html { scrollbar-color: #2e3850 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2e3850; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
input, select, textarea { caret-color: var(--gold); }
.pill, .chip .st, .lv, table.study td, .dstat-n, .rec .rk, .help { font-variant-numeric: tabular-nums; }
.ico-x { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
:where(button, a, select, input, summary, [tabindex]):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
:where(button, select, .chip, .rec, .cbtn, .tab, .btn) { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease; }
:where(.rec, .cbtn, .btn, .tab, .seg button):active:not([disabled]) { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { :where(button, select, .chip, .rec, .cbtn, .tab, .btn) { transition: none; } :where(.rec, .cbtn, .btn, .tab, .seg button):active { transform: none; } }
button, select, summary, [data-act] { touch-action: manipulation; }
select { cursor: pointer; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 14, 20, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1440px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { font-family: var(--font-num); font-weight: 700; letter-spacing: 0.04em; font-size: 15px; white-space: nowrap; }
.brand b { color: var(--gold); }
.tabs { display: flex; gap: 4px; background: var(--bg2); padding: 4px; border-radius: 10px; border: 1px solid var(--line); }
.tab { border: 0; background: transparent; padding: 7px 14px; border-radius: 7px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--panel2); color: var(--text); }
.top-side { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sel { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
select, .input { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; min-height: 34px; }
.btn { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; min-height: 34px; font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: #3a4560; }
.btn.primary { background: var(--gold); color: #1b1404; border-color: var(--gold); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 28px; padding: 3px 9px; font-size: 12px; }

main { max-width: 1440px; margin: 0 auto; padding: 16px; }
.section-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 22px 0 10px; }
.section-title h2 { white-space: nowrap; }
.section-title h2 { margin: 0; font-size: 17px; }
.section-title p { margin: 0; color: var(--muted); font-size: 13px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.grid { display: grid; gap: 12px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.note { background: var(--gold-bg); border: 1px solid rgba(232, 182, 76, 0.35); color: #f3d793; border-radius: 10px; padding: 10px 12px; font-size: 13px; }

/* ---------- champion visuals ---------- */
.ic { width: 40px; height: 40px; border-radius: 8px; background: var(--panel2) center/cover no-repeat; flex: none; position: relative; overflow: hidden; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); }
.ic.lg { width: 64px; height: 64px; border-radius: 12px; }
.ic.sm { width: 28px; height: 28px; border-radius: 6px; font-size: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.chip .ic.sm { width: 22px; height: 22px; border-radius: 50%; }
.lv { font-size: 12px; font-weight: 800; padding: 1px 5px; border-radius: 4px; }
.chip .st { font-size: 12px; color: var(--muted); }
.lv3 { background: var(--good-bg); color: var(--good); }
.lv2 { background: var(--blue-bg); color: #8ab4ff; }
.lv1 { background: rgba(139, 149, 171, 0.14); color: var(--muted); }
.lvone { background: var(--gold-bg); color: var(--gold); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); }
.pill.good { background: var(--good-bg); color: var(--good); border-color: transparent; }
.pill.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.pill.gold { background: var(--gold-bg); color: var(--gold); border-color: transparent; }
.pill.blue { background: var(--blue-bg); color: #8ab4ff; border-color: transparent; }

/* ---------- live draft ---------- */
.draft-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.draft-bar .spacer { flex: 1; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 4px 10px; border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.seg button[aria-pressed="true"] { background: var(--panel2); color: var(--text); }
/* PC: 위 = 중계형 밴픽판, 아래 = 추천·순서(왼쪽) + 챔피언(오른쪽 고정) */
.board { display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-areas: "dh dh" "main grid"; gap: 12px; align-items: start; }
.dh { grid-area: dh; display: grid; grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr); grid-template-areas: "b st r"; gap: 12px; align-items: stretch; }
.dh > .side.B { grid-area: b; }
.dh > .side.R { grid-area: r; }
.dh > .dstat { grid-area: st; }
.col-main { grid-area: main; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.col-grid { grid-area: grid; min-width: 0; position: sticky; top: 70px; }
.col-grid .champs { max-height: calc(100vh - 210px); }
.m-only { display: none !important; }
.dstat-m { display: none !important; }
.dstat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; text-align: center; }
.dstat.B { box-shadow: inset 0 0 0 1px rgba(76, 141, 255, 0.45); }
.dstat.R { box-shadow: inset 0 0 0 1px rgba(255, 90, 99, 0.45); }
.dstat-top { display: flex; align-items: baseline; gap: 8px; }
.dstat-n { font-family: var(--font-num); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.dstat-n small { font-size: 13px; color: var(--muted); font-weight: 600; }
.dstat-ph { font-size: 12px; color: var(--muted); font-weight: 700; }
.dstat-what { font-size: 17px; font-weight: 800; }
.dstat.B .dstat-what { color: var(--blue); }
.dstat.R .dstat-what { color: var(--red); }
.dstat-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.threat-box { background: var(--panel); border: 1px solid rgba(255, 122, 89, 0.35); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; }
.th-h { display: flex; gap: 12px; align-items: center; min-width: 0; }
.th-who { min-width: 0; display: grid; gap: 2px; }
.th-head { margin-bottom: 0; }
.th-title { color: var(--bad); }
.th-n { font-size: 17px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-comp { margin: 0; font-weight: 700; font-size: 14px; }
.th-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.th-opt { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; min-width: 0; }
.th-ot b { color: var(--gold); font-size: 13px; }
.th-lanes summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--muted); }
.th-lanes ul { margin-top: 6px; font-size: 13px; }
.th-lanes li b { color: var(--gold); margin-right: 4px; }
.hovercard { position: fixed; z-index: 60; width: 320px; max-width: calc(100vw - 16px); background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); pointer-events: none; display: grid; gap: 10px; }
.hc-h { display: flex; align-items: center; gap: 8px; }
.hc-t { font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.hc-t.bad { color: var(--bad); }
.hc-t.good { color: var(--good); }
.hovercard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hovercard li { display: flex; gap: 8px; align-items: center; min-width: 0; }
.hovercard li span { display: grid; min-width: 0; }
.hovercard li b { font-size: 13px; }
.hovercard li small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.hovercard .help { margin: 0; }
.plan-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.pp-sum { margin: 0 0 12px; font-size: 13px; color: #cfd6e4; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.pp-slot { border-top: 1px solid var(--line); padding: 12px 4px 4px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.pp-slot.now { background: var(--gold-bg); border-top-color: var(--gold); border-radius: 0 0 10px 10px; padding: 12px 10px 10px; }
.pp-slot.past { opacity: 0.6; }
.pp-h { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pp-item { display: grid; gap: 5px; min-width: 0; }
.pp-item.done { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.pp-role { font-size: 12px; font-weight: 800; color: var(--gold); }
.pp-c { cursor: default; }
.pp-c[data-act="pick"] { cursor: pointer; }
.pp-c[data-act="pick"]:hover { border-color: var(--gold); }
.pp-why { margin: 0; padding-left: 14px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.scen-box .now-h .seg { margin-left: auto; }
.sc-sum { margin: 0 0 10px; font-size: 13px; color: #cfd6e4; line-height: 1.5; }
.sc-rows { display: grid; gap: 0; }
.sc-row { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line); }
.sc-row .pp-role { padding-top: 5px; }
.sc-row.done { opacity: 0.7; align-items: center; }
.sc-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.sc-pick .ic.sm { width: 24px; height: 24px; border-radius: 50%; }
.sc-cells { display: grid; gap: 4px; min-width: 0; }
.sc-main { border-color: var(--gold); background: var(--gold-bg); font-weight: 700; }
.sc-alt-l { align-self: center; font-size: 12px; color: var(--dim); margin: 0 2px 0 6px; }
.sc-note { font-size: 12px; color: var(--muted); }
.sc-lost { font-size: 12px; color: var(--bad); }
.sc-warn { align-self: center; font-size: 12px; color: var(--bad); margin-left: 6px; }
.sc-foot { margin: 8px 0 0; }
.side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.side.B { border-color: rgba(76, 141, 255, 0.45); }
.side.R { border-color: rgba(255, 90, 99, 0.45); }
.side-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.side-h .nm { font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-h .tag { font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 5px; }
.side.B .tag { background: var(--blue-bg); color: var(--blue); }
.side.R .tag { background: var(--red-bg); color: var(--red); }
.bans { display: grid; grid-template-columns: repeat(5, 34px); gap: 5px; margin-bottom: 10px; }
.slot-ban { aspect-ratio: 1; border-radius: 8px; border: 1px dashed var(--line); background: var(--bg2); display: grid; place-items: center; overflow: hidden; position: relative; }
.slot-ban img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.6); }
.slot-ban.now, .slot-pick.now { border: 1px solid var(--gold); box-shadow: 0 0 0 3px var(--gold-bg); }
.slot-ban .x { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); }
.picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.slot-pick { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); text-align: center; min-width: 0; }
.slot-pick .ic { width: 52px; height: 52px; border-radius: 10px; }
.slot-pick .who { min-width: 0; width: 100%; }
.slot-pick .cn { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-pick .pn { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 16px; }
.slot-pick .pn .unk { color: var(--gold); }
.slot-pick select { min-height: 26px; padding: 1px 4px; font-size: 12px; width: 100%; max-width: 72px; }
.slot-pick.empty .ic { border: 1px dashed var(--line); background: transparent; }
.slot-pick.empty .cn { color: var(--dim); font-weight: 600; }

.center { display: grid; gap: 12px; min-width: 0; }
.now-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.now-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.now-h .step { font-size: 12px; color: var(--muted); }
.now-h .what { font-size: 18px; font-weight: 800; }
.now-h .what.B { color: var(--blue); }
.now-h .what.R { color: var(--red); }
.dir { margin-left: auto; font-size: 12px; color: var(--muted); }
.dir b { color: var(--gold); }
.recs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; max-width: 1000px; }
.rec { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
/* 챔프 카드: 초상화를 카드 폭에 맞춰 위쪽에 꽉 채우고, 이름표·순위는 초상화 위에 얹는다(빈 여백 없이) */
.rec { padding: 0 0 9px; overflow: hidden; align-items: stretch; }
.rec .hero { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--panel2); }
.rec .hero .ic.hero { width: 100%; height: 100%; border-radius: 0; }
.rec .hero .ic.hero img { transform: scale(1.08); }
.rec .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 14, 20, 0) 45%, rgba(11, 14, 20, 0.75) 100%); pointer-events: none; }
.rec .hero .lab { position: absolute; left: 6px; bottom: 6px; z-index: 1; max-width: calc(100% - 12px); background: rgba(11, 14, 20, 0.82); }
.rec.first .hero .lab { background: rgba(40, 30, 8, 0.9); }
.rec.ban.first .hero .lab { background: rgba(48, 12, 16, 0.9); }
.rec .hero .rk { z-index: 1; top: 6px; left: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.rec .nm { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0 8px; }
.rec .nm .pos { font-size: 12px; font-weight: 700; color: var(--muted); }
/* 짧은 알약: 색 = 뜻(금 = 연습·자기평가, 파랑 = 팀원과·조합, 초록 = 우리에게 좋음, 빨강 = 위협·불리) */
.cpills { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.cp { font-size: 12px; font-weight: 700; line-height: 1.3; padding: 2px 7px; border-radius: 6px; background: var(--panel2); color: var(--muted); max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.cp.gold { background: var(--gold-bg); color: var(--gold); }
.cp.info { background: var(--blue-bg); color: var(--blue); }
.cp.good { background: var(--good-bg); color: var(--good); }
.cp.bad { background: var(--red-bg); color: var(--red); }
.rec .nm .cn { font-size: 14px; }
.rec .why, .rec .ans, .rec .vs-ours { padding: 0 9px; }
.rec:hover { border-color: var(--gold); }
.rec .lab { font-size: 12px; font-weight: 700; color: #cfd6e4; background: var(--panel2); border-radius: 6px; padding: 2px 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec.first .lab { color: var(--gold); background: var(--gold-bg); }
.rec.ban.first .lab { color: var(--red); background: var(--red-bg); }
.rec.first { border-color: rgba(232, 182, 76, 0.55); }
.rec.comp .lab { color: var(--gold); }
.rec.ban.first { border-color: rgba(255, 90, 99, 0.55); }
.rec .cn { font-weight: 800; font-size: 14px; }
.rec { position: relative; }
.rec .rk { font-family: var(--font-num); position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--panel2); color: var(--muted); font-size: 12px; font-weight: 900; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.rec.first .rk { background: var(--gold); color: #1b1404; }
.rec .ans { font-size: 12px; color: var(--good); line-height: 1.35; }
.rec .pc-good { color: var(--good); }
.rec .pc-bad { color: var(--bad); }
.rec .vs-ours { font-size: 12px; color: var(--bad); line-height: 1.35; }
.rec .ans b { font-weight: 700; }
.pred-seg { margin-left: 4px; }
.pred-seg button[disabled] { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.pred-h { margin: -4px 0 10px; }
.rec .why { font-size: 12px; color: var(--muted); line-height: 1.35; }
/* 근거 줄: 분류 이름표 + 한 문장. 분류마다 이름표 색이 같아 전체·라인 칸에서 같은 뜻으로 읽힌다 */
.rec .why.has-fx { align-self: stretch; text-align: left; }
.fx { display: flex; flex-direction: column; gap: 3px; }
.fx-r { display: block; }
.fx-l { margin-right: 5px; font-size: 11px; font-weight: 800; color: var(--dim); white-space: nowrap; }
.fx-t { color: var(--muted); overflow-wrap: anywhere; }
.fx-self { color: var(--text); }
.fx-recent { color: var(--gold); }
.fx-team { color: var(--bad); }
.fx-pro { color: var(--blue); }
.fx-now { color: var(--good); }
.fx-warn { color: var(--red); }
.fx-r:has(.fx-now) .fx-t { color: var(--text); }
.fx-r:has(.fx-warn) .fx-t { color: var(--red); }
.rec .role { font-size: 12px; }
.rec.muted { opacity: 0.75; }
.empty-recs { color: var(--muted); font-size: 13px; padding: 8px 2px; }

.pool { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.sheet-h { align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 39; }
.pool-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.pool-bar .input { flex: 1 1 100%; min-width: 0; }
.champs { overscroll-behavior: contain; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; padding: 2px; }
.cbtn { border: 1px solid transparent; background: transparent; padding: 4px 2px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.cbtn:hover { background: var(--panel2); border-color: var(--line); }
.cbtn .ic { width: 46px; height: 46px; }
.cbtn span { font-size: 12px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbtn.mine span { color: var(--good); }
.cbtn[disabled] { opacity: 0.25; cursor: not-allowed; }
.cbtn.locked .ic::after { content: "F"; position: absolute; right: 2px; bottom: 2px; font-size: 12px; font-weight: 900; background: var(--red); color: #fff; border-radius: 3px; padding: 0 3px; }

.fearless { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fearless .g { font-size: 12px; color: var(--muted); margin-right: 2px; }

/* 저장한 밴픽 */
.sv { border-top: 1px solid var(--line); padding: 8px 0; }
.sv:first-of-type { border-top: 0; }
.sv summary { cursor: pointer; font-size: 13px; overflow-wrap: anywhere; }
.sv-g { margin: 10px 0 0; }
.sv-h { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin-bottom: 6px; }
.sv-r { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.sv-l { font-size: 12px; color: var(--muted); min-width: 48px; }
.sv .dnav { margin-top: 8px; }
.btn.res-w, .sv-res .res-w[aria-pressed="true"] { background: var(--good-bg); color: var(--good); border-color: var(--good); }
.btn.res-l, .sv-res .res-l[aria-pressed="true"] { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.end-ask { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* ---------- strategy ---------- */
.strat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.strat .wide { grid-column: 1 / -1; }
.banner { border-radius: var(--radius); padding: 14px 16px; font-weight: 700; }
.banner.good { background: var(--good-bg); color: var(--good); }
.banner.bad { background: var(--bad-bg); color: var(--bad); }
.banner.even { background: var(--panel2); color: var(--text); }
.kv { display: grid; grid-template-columns: 70px 1fr; gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.lanes { display: grid; gap: 8px; }
.lane { display: grid; grid-template-columns: 44px 1fr auto 1fr; align-items: center; gap: 8px; padding: 8px; background: var(--bg2); border-radius: 10px; }
.lane .r { font-size: 12px; font-weight: 800; color: var(--muted); }
.lane .vs { font-size: 12px; color: var(--dim); }
.lane .c { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 700; }
.lane .c.right { justify-content: flex-end; }
.lane .t { grid-column: 2 / -1; font-size: 12px; color: var(--muted); }
h3 { font-size: 14px; margin: 0 0 10px; }
.jgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; }
.jungle .sub { font-size: 12px; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.jr { display: flex; gap: 10px; align-items: flex-start; padding: 8px; background: var(--bg2); border-radius: 10px; margin-bottom: 6px; }
.jn { width: 22px; height: 22px; border-radius: 50%; background: var(--panel2); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
@media (max-width: 760px) { .jgrid { grid-template-columns: 1fr; } }
ol.steps, ul.plain { margin: 0; padding-left: 18px; }
ol.steps li, ul.plain li { margin: 4px 0; }

/* ---------- our team / opponent ---------- */
.roster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pl { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-width: 0; }
.pl .role { font-size: 12px; font-weight: 800; color: var(--gold); }
.pl .id { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .tier { font-size: 12px; color: var(--muted); }
.pl .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.comps { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.comp-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.comp-h h3 { margin: 0; }
.five { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.five .s { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; min-width: 0; }
.five .s .r { font-size: 12px; color: var(--muted); font-weight: 700; }
.five .s .n { font-size: 12px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.five .s.suggest .ic { outline: 1px dashed var(--gold); outline-offset: 1px; }
.plan dl { margin: 0; }
.plan dt { font-size: 12px; color: var(--gold); font-weight: 700; margin-top: 8px; }
.plan dd { margin: 2px 0 0; font-size: 13px; color: #cfd6e4; }
.series { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
table.study { width: 100%; border-collapse: collapse; font-size: 13px; }
table.study th, table.study td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.study th { color: var(--muted); font-weight: 600; font-size: 12px; }
table.study th:first-child, table.study td:first-child, table.study td:nth-child(4) { white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
.row-chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; width: min(860px, 100%); max-height: 90vh; overflow: auto; padding: 18px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.modal-h h2 { margin: 0; font-size: 17px; }
.ed-role { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 8px; }
.ed-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ed-row .input { min-width: 0; }
.ed-chip { cursor: pointer; }
.ed-chip .del { color: var(--dim); margin-left: 2px; display: inline-grid; place-items: center; width: 18px; height: 18px; }
.ed-chip .del .ico-x { width: 14px; height: 14px; }
.help { font-size: 12px; color: var(--muted); }
.warn { font-size: 12px; color: var(--bad); font-weight: 700; }
footer { max-width: 1440px; margin: 0 auto; padding: 20px 16px 40px; color: var(--dim); font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .board { grid-template-columns: minmax(0, 1fr); grid-template-areas: "dh" "main" "grid"; }
  .dh { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "st st" "b r"; }
  .dstat { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .col-grid { position: static; }
  .col-grid .champs { max-height: 420px; }
  .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  main { padding: 12px 12px 96px; }
  .btn, .btn.sm, .seg button, select, .input, .tab, .chip.pp-c, .pool-bar .btn { min-height: 44px; }
  .seg button { min-width: 44px; padding: 0 12px; }
  .slot-pick select { min-height: 36px; }
  .draft-bar .btn { flex: 1 1 calc(50% - 4px); white-space: normal; line-height: 1.2; }
  .col-grid { width: 100%; max-width: 100vw; }
  .pool-bar > * { min-width: 0; }
  .pool-bar .seg { flex: 1 1 100%; }
  .section-title { align-items: center; }
  .section-title select, .section-title .btn { flex: 1 1 auto; }
  .section-title p { flex-basis: 100%; }
  .btn, .btn.sm { min-width: 44px; }
  table.cards-m td a { display: inline-flex; align-items: center; min-height: 44px; }
  .input, select { font-size: 16px; } /* iOS 입력 확대 방지 */
  .m-only { display: flex !important; }
  /* 머리: 고정 해제, 섹션 탭은 아래 고정 막대로 */
  .top { position: static; backdrop-filter: none; background: var(--bg); } /* blur가 있으면 안쪽 fixed 탭 막대가 화면이 아닌 머리에 붙음 */
  .top-in { padding: 10px 12px; gap: 8px; }
  .top-side { margin-left: 0; width: 100%; }
  .top-side .sel { flex: 1; min-width: 0; }
  .top-side .sel select { flex: 1; min-width: 0; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-radius: 0; border: 0; border-top: 1px solid var(--line);
    background: rgba(18, 23, 34, 0.96); backdrop-filter: blur(10px); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
  .tab { flex: 1; padding: 10px 4px; font-size: 13px; border-radius: 10px; }
  .tab[aria-selected="true"] { background: var(--gold-bg); color: var(--gold); }
  /* 조작 막대 */
  .draft-bar { gap: 6px; }
  .draft-bar .sel-l { display: none; }
  .draft-bar .spacer { display: none; }
  .draft-bar .btn { flex: 1; }
  /* 상태 칸: 위에 붙어 다님 */
  .board { gap: 10px; }
  .dh { grid-template-columns: minmax(0, 1fr); grid-template-areas: "b" "r"; gap: 8px; }
  .board { grid-template-areas: "main" "dh" "grid"; }
  .dh > .dstat { display: none; }
  .dstat-m { display: flex !important; }
  .dstat { position: sticky; top: 0; z-index: 20; margin-bottom: 10px !important; flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; gap: 10px; padding: 8px 10px;
    border-radius: 0 0 12px 12px; margin: 0 -12px; border-width: 0 0 1px; background: rgba(22, 28, 41, 0.97); backdrop-filter: blur(10px); }
  .dstat-top { flex-direction: column; align-items: flex-start; gap: 2px; }
  .dstat-n { font-size: 18px; }
  .dstat-ph { font-size: 12px; }
  .dstat-what { font-size: 15px; flex: 1; text-align: left; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dstat-act { flex-wrap: nowrap; }
  .dstat-act .btn { padding: 4px 8px; }
  /* 팀 칸: 밴은 이름 줄 옆 작은 아이콘, 픽은 가로 5칸 */
  .side { padding: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h bans" "p p"; column-gap: 8px; }
  .side-h { grid-area: h; margin-bottom: 8px; min-width: 0; }
  .side-h .nm { font-size: 13px; }
  .side-h .tag { display: none; }
  .bans { grid-area: bans; grid-template-columns: repeat(5, 22px); gap: 3px; margin-bottom: 8px; }
  .slot-ban { border-radius: 5px; }
  .slot-ban .x { font-size: 12px; }
  .picks { grid-area: p; gap: 4px; }
  .slot-pick { padding: 5px 2px; gap: 3px; }
  .slot-pick .ic { width: 40px; height: 40px; border-radius: 8px; }
  .slot-pick .cn { font-size: 12px; }
  .slot-pick .pn { font-size: 12px; min-height: 13px; }
  .slot-pick select { font-size: 12px; min-height: 22px; max-width: 58px; }
  .recs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .rec { padding: 0 0 8px; }
  .rec .lab { font-size: 12px; padding: 2px 5px; }
  .rec .rk { width: 20px; height: 20px; font-size: 12px; top: 4px; left: 4px; }
  .rec .why, .rec .ans, .rec .vs-ours { padding: 0 6px; }
  .pred-seg { order: 5; width: 100%; margin-left: 0; overflow-x: auto; }
  .pred-seg button { flex: 1; padding: 6px 4px; }
  .pp-grid { grid-template-columns: minmax(0, 1fr); }
  /* 챔피언 고르기: 아래에서 올라오는 시트 */
  .col-grid { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 40; transform: translateY(105%); transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .col-grid.open { transform: none; }
  .col-grid .pool { border-radius: 16px 16px 0 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); border-width: 1px 0 0; }
  .col-grid .champs { max-height: 58vh; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
  .pool-bar .seg { overflow-x: auto; max-width: 100%; }
  .cbtn .ic { width: 44px; height: 44px; }
  /* 상대 분석 표 → 라인별 카드 */
  table.cards-m thead { display: none; }
  table.cards-m, table.cards-m tbody, table.cards-m tr, table.cards-m td { display: block; width: 100%; }
  table.cards-m tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: var(--bg2); }
  table.cards-m td { border: 0; padding: 5px 0; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; align-items: start; }
  table.cards-m td::before { content: attr(data-label); font-size: 12px; color: var(--muted); padding-top: 3px; }
  table.cards-m td > * { grid-column: 2; } /* 칸 안 둘째 줄(티어·최근 기록)도 이름 칸이 아닌 내용 칸에 */
  table.cards-m td { white-space: normal !important; overflow-wrap: anywhere; min-width: 0; }
  table.cards-m td:first-child { font-size: 15px; }
  .tbl-wrap:has(table.cards-m) { background: transparent; border: 0; padding: 0; }
  .strat { grid-template-columns: 1fr; }
  .roster { grid-template-columns: 1fr; }
  .series { grid-template-columns: 1fr; }
  .comps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .col-grid { transition: none; } }

/* ---- 글 대신 시각화: 아이콘·배지·타임라인 ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tgs { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.tg { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 1.2; padding: 3px 7px; border-radius: 6px; background: var(--panel2); color: var(--muted); max-width: 100%; overflow-wrap: anywhere; word-break: keep-all; }
.tg.good { color: var(--good); background: var(--good-bg); }
.tg.bad { color: var(--bad); background: var(--bad-bg); }
.sc-cells .tgs, .sc-sum .tgs { justify-content: flex-start; }
.bdgs { display: flex; flex-wrap: wrap; gap: 4px; }
.bdg { display: inline-block; }
.bdg summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; cursor: pointer; position: relative; background: var(--panel2); color: var(--muted); }
.bdg summary::-webkit-details-marker { display: none; }
.bdg.t-good summary { color: var(--good); background: var(--good-bg); }
.bdg.t-bad summary { color: var(--bad); background: var(--bad-bg); }
.bdg.t-warn summary { color: var(--gold); background: var(--gold-bg); }
.bdg.t-info summary { color: #9cc0ff; background: var(--blue-bg); }
.bdg { position: relative; }
.bdg[open] { flex-basis: 100%; }
.bdg-pop { margin: 6px 0 2px; }
.bdg-ch { display: flex; flex-wrap: wrap; gap: 8px; }
.bdg-ch .pc { display: grid; justify-items: center; gap: 3px; width: 52px; font-size: 12px; color: var(--text); text-align: center; line-height: 1.2; }
.bdg-ch .pc .ic { width: 40px; height: 40px; border-radius: 8px; }
.bdg-cap { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .bdg[open] { flex-basis: auto; }
  .bdg-pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; margin: 0; width: max-content; max-width: 300px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); }
  .bdg-pop.flip { left: auto; right: 0; }
}
.chip.cut { opacity: 0.75; }
.chip.cut s { color: var(--muted); }
.chip.cut .st { color: var(--bad); }
.tl { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; }
.tl-c { height: 28px; border-radius: 5px; display: grid; place-items: center; overflow: hidden; font-size: 12px; font-weight: 800; position: relative; }
.tl-c.gap { margin-left: 6px; }
.tl-c img { width: 100%; height: 100%; object-fit: cover; }
.tl-c.ban.b { background: var(--blue-bg); } .tl-c.ban.r { background: var(--red-bg); }
.tl-c.ban.filled img { opacity: 0.45; filter: grayscale(1); }
.tl-c.pick.b { background: rgba(76, 141, 255, 0.35); } .tl-c.pick.r { background: rgba(255, 90, 99, 0.35); }
.tl-c.pick.b.filled { box-shadow: inset 0 0 0 1.5px var(--blue); } .tl-c.pick.r.filled { box-shadow: inset 0 0 0 1.5px var(--red); }
.tl-c.open.pick { background: transparent; border: 1px dashed var(--line); }
.tl-c.open.pick span { color: #9cc0ff; }
.tl-c.now { outline: 2px solid var(--gold); outline-offset: 1px; }
.tl-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 12px; font-size: 12px; color: var(--dim); }
.tl-key span { display: inline-flex; align-items: center; gap: 4px; }
.tl-key .k { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tl-key .k.ban { background: rgba(156, 192, 255, 0.2); } .tl-key .k.pick { background: #3b4762; }
.tl-key .k.b { background: var(--blue); } .tl-key .k.r { background: var(--red); }
.tl-key .k.now { outline: 2px solid var(--gold); background: transparent; } .tl-key .k.open { border: 1px dashed var(--muted); }
.sc-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; font-size: 14px; }
@media (max-width: 760px) {
  .tl { gap: 2px; } .tl-c { height: 24px; font-size: 12px; border-radius: 4px; } .tl-c.gap { margin-left: 3px; }
  .bdg summary::after { content: ""; position: absolute; inset: -10px -2px; }
  .bdgs { gap: 8px 6px; }
}

/* ---- 시야 공부 ---- */
.vbox { display: grid; gap: 10px; margin-bottom: 12px; }
.vfx { justify-content: flex-start; }
.vfx .tg .ic.sm { width: 18px; height: 18px; border-radius: 50%; }
.vplan { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.vp { display: grid; gap: 6px; align-content: start; text-align: left; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--text); cursor: pointer; }
.vp.on { border-color: var(--gold); background: var(--gold-bg); }
.vp-h { display: grid; gap: 1px; font-size: 13px; } .vp-h .dim { font-size: 12px; }
.vp-r { display: grid; gap: 4px; }
.vp-who { display: flex; align-items: center; gap: 3px; font-size: 12px; } .vp-who b { width: 30px; color: var(--muted); font-weight: 700; }
.vctl { display: flex; flex-wrap: wrap; gap: 6px; }
.vtip { margin: 0; font-size: 13px; color: #cfd6e4; }
.vgrid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 14px; align-items: start; }
.vmap { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #0d1520; }
.vmap img { width: 100%; height: 100%; display: block; }
/* 색 = 목적(갱 대비 파랑 · 끊기 빨강 · 오브젝트 금색), 테두리 = 와드 종류(분홍 = 제어 와드, 점선 = 렌즈) */
.vm { --c: #e8b64c; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #0b0e14; font: 800 12px/1 var(--font-num); border: 2px solid #0b0e14; padding: 0; flex: none; }
.vm.p-def { --c: #6ea4ff; } .vm.p-agg { --c: #ff7a80; } .vm.p-obj { --c: #e8b64c; }
.vm.t-ctrl { border-color: #ff6fa5; border-width: 3px; }
.vm.t-sweep { border: 2px dashed #e8ecf4; }
.vm.pri { box-shadow: 0 0 0 2px #0b0e14, 0 0 0 4px var(--c); }
.vmap .vm { position: absolute; transform: translate(-50%, -50%); cursor: pointer; }
.vmap .vm::after { content: ""; position: absolute; inset: -10px; }
.vmap .vm.sel { width: 28px; height: 28px; z-index: 2; box-shadow: 0 0 0 3px #fff; }
.vbase { position: absolute; transform: translate(-50%, -50%); font-size: 12px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.vbase.ours { background: var(--blue-bg); color: #9cc0ff; } .vbase.theirs { background: var(--red-bg); color: var(--red); }
.vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.vrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.vrow:hover, .vrow.sel { background: var(--panel2); border-color: var(--line); }
.vr-main { display: grid; gap: 2px; min-width: 0; }
.vr-main b { font-size: 13px; }
.vr-sub { font-size: 12px; color: var(--muted); }
.vr-pri { color: var(--gold); font-weight: 700; }
.vr-why { font-size: 12px; color: var(--dim); line-height: 1.4; }
.vkey { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 12px; color: var(--muted); }
.vkey span { display: inline-flex; align-items: center; gap: 5px; }
.vkey .vm, .vp .vm.mini { width: 20px; height: 20px; font-size: 12px; }
@media (max-width: 900px) { .vgrid { grid-template-columns: minmax(0, 1fr); } .vplan { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
@media (max-width: 760px) { .vp { min-height: 44px; } .vrow { min-height: 44px; } .vctl .seg { flex-wrap: wrap; } }

.vmode { margin-bottom: 10px; }
.vpks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.vpk { display: grid; gap: 2px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); cursor: pointer; }
.vpk b { font-size: 13px; } .vpk span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.vpk.p-def b { color: #6ea4ff; } .vpk.p-agg b { color: #ff7a80; } .vpk.p-obj b { color: var(--gold); }
.vpk[aria-pressed="true"] { border-color: currentColor; background: var(--panel2); }
.vpk.p-def[aria-pressed="true"] { border-color: #6ea4ff; } .vpk.p-agg[aria-pressed="true"] { border-color: #ff7a80; } .vpk.p-obj[aria-pressed="true"] { border-color: var(--gold); }
.vgroups { gap: 10px; }
.vgrp { list-style: none; display: grid; gap: 4px; }
.vgrp-h { display: flex; align-items: baseline; gap: 8px; font-size: 13px; padding: 0 8px; }
.vgrp-h span { font-size: 12px; color: var(--dim); }
.vgrp-h.p-def b { color: #6ea4ff; } .vgrp-h.p-agg b { color: #ff7a80; } .vgrp-h.p-obj b { color: var(--gold); }
/* 상황 훈련 */
.drill { gap: 12px; }
.dtop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.dsc { font-size: 12px; color: var(--muted); }
.dhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; }
.dmeta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--gold); }
.dhead .dim { font-size: 12px; }
.dteams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dteams > div { display: grid; gap: 6px; align-content: start; background: var(--bg2); border-radius: 10px; padding: 8px; }
.dt-l { font-size: 12px; font-weight: 800; } .dt-l.us { color: #9cc0ff; } .dt-l.them { color: var(--red); }
.dteam { display: grid; gap: 4px; }
.dch { display: grid; grid-template-columns: 22px auto auto 1fr; align-items: center; gap: 6px; font-size: 12px; }
.dch .ic.sm { width: 22px; height: 22px; border-radius: 50%; }
.dlv { font-family: var(--font-num); color: var(--gold); font-weight: 700; }
.dit { color: var(--muted); min-width: 0; }
.dnote { margin: 4px 0 2px; font-size: 15.5px; line-height: 1.6; color: var(--text); background: var(--gold-bg); border: 1px solid rgba(232, 182, 76, 0.45); border-radius: 10px; padding: 12px 14px; }
.dnote-h { display: inline-block; font-size: 12px; font-weight: 800; color: #0b0e14; background: var(--gold); border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }
.dnote p { margin: 0; font-weight: 600; }
.dnote ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-weight: 600; }
.dq { margin: 0; font-size: 15px; font-weight: 800; }
.dgrid { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 14px; align-items: start; }
.dmap .dzoom { position: absolute; max-width: none; height: auto; display: block; }
.dmini { position: absolute; left: 8px; top: 8px; width: 22%; aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); z-index: 1; }
.dmini img { width: 100%; height: 100%; display: block; }
.dmini i { position: absolute; border: 2px solid var(--gold); border-radius: 2px; }
/* 보기 이름은 핀 아래에 — 핀 옆 지형(강·부쉬)을 가리지 않게 */
.dpin-l { position: absolute; transform: translate(-50%, 19px); font-size: 12px; font-weight: 800; color: #fff; background: rgba(11, 14, 20, 0.62); padding: 1px 6px; border-radius: 6px; white-space: nowrap; pointer-events: none; text-shadow: 0 1px 2px #000; }
.dmap.pos { background: #101826; }
.dfield { position: absolute; inset: 0; }
.df-zone { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255, 90, 99, 0.12); border: 2px dashed rgba(255, 90, 99, 0.6); }
.df-zone em { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-style: normal; font-size: 12px; font-weight: 700; color: var(--red); white-space: nowrap; }
.df-ch { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 2px solid; }
.df-ch.them { border-color: var(--red); } .df-ch.us { border-color: var(--blue); }
.df-ch .ic.sm { width: 100%; height: 100%; }
.df-side { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.df-side.them { top: 2%; left: 88%; background: var(--red-bg); color: var(--red); } .df-side.us { bottom: 2%; background: var(--blue-bg); color: #9cc0ff; }
.dpin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; border: 2px solid #0b0e14; background: #e8ecf4; color: #0b0e14; font: 800 13px/1 var(--font-num); cursor: pointer; padding: 0; }
.dpin::after { content: ""; position: absolute; inset: -8px; }
.dpin.ok { background: var(--good); } .dpin.no { background: var(--bad); }
.dopts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dopt { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); cursor: pointer; font-size: 13px; min-height: 44px; }
.dopt b { font-family: var(--font-num); color: var(--gold); }
.dopt span { display: grid; gap: 4px; }
.dopt small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.dopt.ok { border-color: var(--good); background: var(--good-bg); } .dopt.no { border-color: var(--bad); background: var(--bad-bg); }
.dopt:disabled { cursor: default; }
.dres { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.dres.ok { background: var(--good-bg); color: var(--good); } .dres.no { background: var(--bad-bg); color: var(--bad); }
.dnav { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 900px) { .dgrid { grid-template-columns: minmax(0, 1fr); } .vpks { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .dteams { grid-template-columns: minmax(0, 1fr); } .dnav .btn { flex: 1; min-height: 44px; } }

.varea { position: absolute; transform: translate(-50%, -50%); width: 11%; height: 11%; border-radius: 50%; pointer-events: none; }
.varea.p-def { background: rgba(110, 164, 255, 0.22); border: 1px dashed rgba(110, 164, 255, 0.7); }
.varea.p-agg { background: rgba(255, 122, 128, 0.2); border: 1px dashed rgba(255, 122, 128, 0.7); }
.varea.p-obj { background: rgba(232, 182, 76, 0.2); border: 1px dashed rgba(232, 182, 76, 0.7); }
.vlink { display: inline-flex; align-items: center; gap: 4px; width: max-content; font-size: 12px; font-weight: 700; color: #9cc0ff; text-decoration: none; padding: 2px 6px; border-radius: 6px; background: var(--blue-bg); }
.vlink:hover { text-decoration: underline; }
.vsrc { margin: 0; font-size: 12px; color: var(--muted); }
.vsrc a { color: #9cc0ff; }
@media (max-width: 760px) { .vlink { min-height: 32px; padding: 4px 8px; } }

.champs-empty { grid-column: 1 / -1; white-space: nowrap; }

/* 단계별 배우기 */
.lus { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.lu { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); cursor: pointer; min-height: 44px; }
.lu:hover { border-color: var(--gold); }
.lu-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel2); color: var(--gold); font: 800 13px/1 var(--font-num); }
.lu.fin .lu-n { background: var(--good-bg); color: var(--good); }
.lu-b { display: grid; gap: 4px; min-width: 0; flex: 1; }
.lu-b b { font-size: 14px; } .lu-b > span { font-size: 12px; color: var(--muted); line-height: 1.4; } .lu-b small { font-size: 12px; color: var(--dim); }
.lu-p { height: 4px; border-radius: 4px; background: var(--panel2); overflow: hidden; } .lu-p i { display: block; height: 100%; background: var(--good); }
.lhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 15px; } .lhead .dim { font-size: 12px; }
.lsteps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.lsteps li { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--panel2); color: var(--dim); }
.lsteps li.on { background: var(--gold-bg); color: var(--gold); }
.lcore { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lcore li { display: grid; gap: 6px; background: var(--bg2); border-radius: 10px; padding: 12px; }
.lcore b { font-size: 14px; } .lcore p { margin: 0; font-size: 13px; color: #cfd6e4; line-height: 1.55; }
.lprog { margin: 0; font-size: 12px; color: var(--gold); font-weight: 800; }
.lsum { margin: 0; padding: 10px 12px; border-radius: 10px; font-weight: 800; font-size: 14px; } .lsum.ok { background: var(--good-bg); color: var(--good); } .lsum.no { background: var(--bad-bg); color: var(--bad); }
.lres { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lres li { display: flex; align-items: center; gap: 8px; font-size: 13px; } .lres li.ok { color: var(--good); } .lres li.no { color: var(--bad); } .lres li span { color: var(--text); }
@media (max-width: 760px) { .dpin-l { display: none; } }

/* 퀴즈: 진영·시점·챔프 위치 */
.dsides { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dside { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.dside.b, .dt-l.b { background: var(--blue-bg); color: #9cc0ff; } .dside.r, .dt-l.r { background: var(--red-bg); color: var(--red); }
.dt-l.b, .dt-l.r { justify-self: start; padding: 2px 8px; border-radius: 6px; }
.dwhen, .vr-when { font-size: 12px; color: #e8ecf4; background: var(--gold-bg); padding: 3px 8px; border-radius: 6px; line-height: 1.4; }
.dwhen b, .vr-when b { color: var(--gold); margin-right: 4px; }
.vr-when { justify-self: start; }
.dbase { position: absolute; z-index: 1; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; pointer-events: none; }
.dbase.b { background: rgba(22, 40, 76, 0.9); color: #9cc0ff; border: 1px solid var(--blue); } .dbase.r { background: rgba(70, 20, 26, 0.9); color: #ff9aa0; border: 1px solid var(--red); }
.dch-map { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 3px solid; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); pointer-events: none; }
.dch-map.b { border-color: var(--blue); } .dch-map.r { border-color: var(--red); }
.dch-map .ic.sm { width: 100%; height: 100%; }
.dch-map.out { opacity: 0.6; width: 26px; height: 26px; }
.dmini .mb { position: absolute; font-size: 12px; font-weight: 800; padding: 0 3px; border-radius: 4px; line-height: 1.3; }
.dmini .mb.b { background: var(--blue); color: #fff; } .dmini .mb.r { background: var(--red); color: #fff; }
@media (max-width: 760px) { .dch-map { width: 26px; height: 26px; border-width: 2px; } .dbase { font-size: 12px; padding: 2px 6px; } }

.card:has(> .pager) { scroll-margin-top: 80px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 10px; }
.pager .btn { min-width: 36px; font-variant-numeric: tabular-nums; }
.pager-c { margin-left: auto; font-size: 12px; }
@media (max-width: 760px) { .pager .btn { min-width: 44px; min-height: 44px; } .pager-c { width: 100%; margin-left: 0; } }
.g-refresh { flex-basis: 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.g-refresh .help { margin: 0; }
.g-refresh .g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.g-refresh .g-btn .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.g-refresh .g-btn:disabled { opacity: 0.75; cursor: progress; }
.g-refresh .g-btn.busy .ico { animation: g-spin 0.9s linear infinite; }
@keyframes g-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .g-refresh .g-btn.busy .ico { animation: none; } }
@media (max-width: 760px) { .g-refresh .btn { min-height: 44px; padding: 0 16px; } }

/* ---------- 시야 공부: 애니메이션 장면 무대 (11-18) ---------- */
.sc-wrap { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 16px; align-items: start; }
.sc-stage { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #0d1520; isolation: isolate; }
.sc-world { position: absolute; left: 0; top: 0; aspect-ratio: 1; transform-origin: 0 0; }
.sc-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; }
.sc-world > :where(.sc-z, .sc-vis, .sc-ward, .sc-tok, .sc-hit, .sc-lab, .sc-pin) { position: absolute; transform: translate(-50%, -50%); }
.sc-z { border-radius: 50%; pointer-events: none; }
.sc-z:not(.z-ring):not(.z-range) { transform: translate(-50%, -50%) rotate(var(--rot)); }
.sc-z em { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 2px) rotate(calc(-1 * var(--rot, 0deg))); font-style: normal; font-size: 11px; font-weight: 800; white-space: nowrap; color: #fff; text-shadow: 0 1px 2px #000, 0 0 4px #000; }
.z-bush, .z-tri { background: rgba(70, 190, 90, 0.38); border: 2px dashed rgba(150, 240, 150, 0.9); }
.z-fairy { background: radial-gradient(closest-side, rgba(200, 150, 255, 0.5), rgba(200, 150, 255, 0.08)); border: 2px solid rgba(215, 175, 255, 0.85); animation: sc-fae 2.2s ease-in-out infinite; }
.z-fog { background: rgba(4, 6, 10, 0.62); border: 1px dashed rgba(154, 164, 185, 0.6); border-radius: 30%; }
.z-wall { background: rgba(20, 20, 24, 0.85); border: 2px solid #8a8f9c; border-radius: 40%; }
.z-ring, .z-range { aspect-ratio: 1; }
.z-ring { background: rgba(255, 90, 99, 0.1); border: 2px dashed rgba(255, 90, 99, 0.85); }
.z-ring em { top: auto; bottom: 4px; transform: translateX(-50%); color: #ffb3b7; }
.z-range { border: 2px dotted rgba(140, 190, 255, 0.95); background: rgba(76, 141, 255, 0.08); }
.z-range em { top: auto; bottom: -18px; transform: translateX(-50%); color: #b8d3ff; }
@keyframes sc-fae { 50% { border-color: rgba(215, 175, 255, 0.35); } }
.sc-vis { aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 236, 140, 0.32), rgba(255, 236, 140, 0.1) 80%, transparent); border: 1.5px solid rgba(255, 236, 140, 0.65); }
.sc-vis.s-r { background: radial-gradient(closest-side, rgba(255, 90, 99, 0.28), rgba(255, 90, 99, 0.08) 80%, transparent); border-color: rgba(255, 120, 128, 0.7); }
.sc-vis.ghost { background: none; border-style: dashed; }
.sc-vis.dead { opacity: 0.15; }
.sc-ward { width: 16px; height: 16px; display: grid; place-items: center; z-index: 2; }
.sc-ward i { width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg); background: #f6d64a; border: 2px solid #1b1300; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.sc-ward.k-ctrl i { background: #ff6fa5; border-color: #2a0614; }
.sc-ward.s-r.k-ward i { background: #ff8a8f; }
.sc-ward.ghost i { background: transparent; border: 2px dashed #f6d64a; box-shadow: none; }
.sc-ward.ghost.k-ctrl i { border-color: #ff6fa5; }
.sc-ward.dead i { opacity: 0.35; }
.sc-x { position: absolute; color: #ff5a63; font-size: 22px; font-weight: 900; text-shadow: 0 0 3px #000; line-height: 1; transform: none; }
.sc-tok { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 3px solid var(--blue); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); z-index: 3; background: #111; }
.sc-tok.s-r { border-color: var(--red); }
.sc-tok.me { width: 40px; height: 40px; border-color: #fff; box-shadow: 0 0 0 3px var(--blue), 0 2px 10px rgba(0, 0, 0, 0.7); }
.sc-tok .ic.sm { width: 100%; height: 100%; }
.sc-hit { aspect-ratio: 1; border-radius: 50%; border: 3px solid #ff5a63; background: rgba(255, 90, 99, 0.25); z-index: 4; pointer-events: none; }
.sc-lab { z-index: 5; font-size: 12px; font-weight: 800; white-space: nowrap; color: #fff; background: rgba(11, 14, 20, 0.82); padding: 2px 8px; border-radius: 6px; pointer-events: none; }
.sc-lab.good { background: rgba(20, 90, 60, 0.92); color: #b9f5d8; } .sc-lab.bad { background: rgba(120, 25, 30, 0.92); color: #ffd0d3; }
.sc-arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.sc-arrows polyline { fill: none; stroke-width: 4px; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-linecap: round; stroke-linejoin: round; }
.sc-arrows .ar-them { stroke: #ff6b73; } .sc-arrows .ar-us { stroke: #79a9ff; }
.sc-base, .sc-approx { position: absolute; z-index: 6; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.sc-base.r { background: var(--red-bg); color: var(--red); }
.sc-approx { left: 8px; top: 8px; background: rgba(11, 14, 20, 0.8); color: var(--muted); border: 1px dashed var(--muted); }
.sc-pin { z-index: 6; }
.sc-cap { display: grid; gap: 10px; align-content: start; }
.sc-cap-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.sc-cap-h b { font-size: 17px; }
.sc-n { font: 800 12px/1 var(--font-num); color: var(--gold); background: var(--gold-bg); padding: 4px 8px; border-radius: 999px; }
.sc-cap p { margin: 0; line-height: 1.6; }
.sc-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.sc-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: transparent; padding: 0; cursor: pointer; position: relative; }
.sc-dot::after { content: ""; position: absolute; inset: -8px; }
.sc-dot.seen { background: var(--line); } .sc-dot.on { background: var(--gold); border-color: var(--gold); }
.sc-note { margin: 8px 0 0; }
.dmap-pos { max-width: 620px; }
.dvis { position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 236, 140, 0.35), rgba(255, 236, 140, 0.08) 80%, transparent); border: 1.5px solid rgba(255, 236, 140, 0.7); pointer-events: none; animation: sc-grow 0.6s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes sc-grow { from { opacity: 0; transform: translate(-50%, -50%) scale(0.2); } }
/* 한눈에 보기 */
.sm-groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sm-h { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; } .sm-h span { color: var(--muted); font-size: 12px; }
.sm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sm-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.sm-row.sel { border-color: var(--gold); }
.sm-row > .vm { cursor: pointer; margin-top: 2px; }
.sm-b { display: grid; gap: 4px; font-size: 13px; line-height: 1.5; }
.sm-b > b { font-size: 14px; }
.sm-k em { font-style: normal; font-weight: 800; color: var(--gold); margin-right: 6px; }
.sm-act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.vm.approx { border-style: dashed; }
@media (max-width: 900px) { .sc-wrap { grid-template-columns: 1fr; gap: 10px; } }
@media (max-width: 760px) {
  .sc-tok { width: 28px; height: 28px; border-width: 2px; } .sc-tok.me { width: 32px; height: 32px; }
  .sc-lab { font-size: 11px; padding: 1px 6px; }
  .sc-cap .dnav .btn, .sm-act .btn { min-height: 44px; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { .z-fairy, .dvis { animation: none; } }
@media (max-width: 760px) { .sc-dots { gap: 14px; } .sc-dot { width: 18px; height: 18px; } .sc-dot::after { inset: -13px; } }
.sc-world > .sc-head { position: absolute; width: 14px; height: 16px; background: #ff6b73; clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translate(-50%, -50%) rotate(var(--ang)); z-index: 2; pointer-events: none; }
.sc-world > .sc-head.ar-us { background: #79a9ff; }
.sc-world > .sc-pin:disabled { z-index: 1; width: 22px; height: 22px; font-size: 11px; opacity: 0.9; }
/* 실제 시야(게임 격자로 계산한 칸) */
.sc-world > .sc-vcan, .vmap > .sm-vcan { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.sc-vcan.ghost { opacity: 0.55; }
.sc-vcan.dead { opacity: 0.12; }
.dmap > .dvcan { position: absolute; aspect-ratio: 1; height: auto; pointer-events: none; z-index: 1; animation: sc-vfade 0.6s ease-out both; }
@keyframes sc-vfade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dmap > .dvcan { animation: none; } }
.dmap > .dmk { position: absolute; transform: translate(-50%, -50%); z-index: 3; width: 16px; height: 16px; display: grid; place-items: center; }
.dmap > .dmk i { width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg); background: #f6d64a; border: 2px solid #1b1300; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.dmap > .dmk.k-ctrl i { background: #ff6fa5; border-color: #2a0614; }
.dmk-l { position: absolute; transform: translate(-50%, -30px); z-index: 3; font-size: 12px; font-weight: 800; white-space: nowrap; padding: 1px 7px; border-radius: 6px; pointer-events: none; }
.dmk-l.r { background: rgba(120, 25, 30, 0.92); color: #ffd0d3; } .dmk-l.b { background: rgba(20, 50, 110, 0.92); color: #cfe0ff; }
.sc-world > .sc-fog { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.sc-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.sc-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.sc-tok.fogged { opacity: 0.5; border-style: dashed; filter: grayscale(0.6); }
.sc-tok .fog-q { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; color: #fff; text-shadow: 0 0 3px #000; }
.sc-world > .sc-vsrc { position: absolute; transform: translate(-50%, -50%); width: 12px; height: 12px; border-radius: 50%; background: #79a9ff; border: 2px solid #0b0e14; z-index: 2; }
.sc-lab.vsrc { background: rgba(20, 50, 110, 0.9); color: #cfe0ff; font-size: 11px; }
.sc-zoom { position: absolute; right: 8px; top: 8px; z-index: 8; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 70%; }
.sc-zoom button { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(11, 14, 20, 0.86); color: var(--text); font-weight: 800; font-size: 13px; cursor: pointer; }
.sc-zoom button[aria-pressed="true"] { background: var(--gold); color: #0b0e14; border-color: var(--gold); }
.sc-stage.zoomed { cursor: grab; touch-action: none; }
.sc-stage.zoomed:active { cursor: grabbing; }
.sc-world > .dpin-l { position: absolute; transform: translate(-50%, 19px); font-size: 12px; font-weight: 800; color: #fff; background: rgba(11, 14, 20, 0.7); padding: 1px 6px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 6; }
.sc-zoom .zs { display: none; }
@media (max-width: 760px) {
  /* 휴대폰: 2×2 묶음을 오른쪽 위(상대 기지 쪽, 덜 중요한 곳)에 — 탑 라인을 가리지 않게 */
  .sc-zoom { display: grid; grid-template-columns: repeat(2, 44px); gap: 4px; right: 6px; top: 6px; max-width: none; }
  .sc-zoom button { min-width: 44px; width: 44px; height: 44px; padding: 0; font-size: 12px; }
  .sc-zoom .zl { display: none; } .sc-zoom .zs { display: inline; }
}
/* 첫 그림에만: 화면이 어두워졌다 밝아지며 확대·축소 방법을 알려 준다(한 번 쓰면 사라짐) */
.sc-hint { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; pointer-events: none; background: rgba(5, 7, 12, 0.7); animation: hint-pulse 1.1s ease-in-out 7 alternate forwards; transition: opacity 0.35s ease; }
.sc-hint.out { opacity: 0; }
.sc-hint-b { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 14px 18px; max-width: 86%; }
.sc-hint-b b { font-size: 17px; font-weight: 800; color: #fff; text-shadow: 0 2px 6px #000; }
.sc-hint-b small { font-size: 13px; color: #d9dde6; text-shadow: 0 1px 4px #000; }
.sc-hint .hint-touch { display: none; }
@media (hover: none) { .sc-hint .hint-wheel { display: none; } .sc-hint .hint-touch { display: block; } }
@keyframes hint-pulse { from { background: rgba(5, 7, 12, 0.78); } to { background: rgba(5, 7, 12, 0.22); } }
.sc-stage:not(.zoomed) .sc-world > .dpin-l { display: none; }
@media (prefers-reduced-motion: reduce) { .sc-hint { animation: none; background: rgba(5, 7, 12, 0.6); } }
/* 전체 맥락: 포탑(우리 = 진영 색 채움, 상대 = 테두리), 장면 밖 팀원·맞라인 상대(조금 작게), 라인 미니언 시야 점 */
.sc-world > .sc-tower { position: absolute; transform: translate(-50%, -50%) rotate(45deg); width: 11px; height: 11px; border-radius: 2px; z-index: 2; border: 2px solid #0b0e14; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.sc-world > .sc-tower.s-b { background: var(--blue); } .sc-world > .sc-tower.s-r { background: var(--red); }
.sc-world > .sc-tok.ctx { width: 26px; height: 26px; border-width: 2px; z-index: 2; }
.sc-world > .sc-vsrc.wave { width: 9px; height: 9px; }
@media (max-width: 760px) { .sc-world > .sc-tok.ctx { width: 22px; height: 22px; } .sc-world > .sc-tower { width: 9px; height: 9px; } }
/* 라인 웨이브: 진영 색 작은 묶음 + 남은 미니언 수(상대 묶음은 시야 안일 때만 수, 밖이면 ?) */
.sc-world > .sc-wv { position: absolute; transform: translate(-50%, -50%); display: flex; height: 18px; border-radius: 9px; overflow: hidden; z-index: 2; border: 2px solid #0b0e14; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); font-size: 11px; font-weight: 900; color: #fff; line-height: 14px; }
.sc-world > .sc-wv b { min-width: 15px; padding: 0 3px; display: grid; place-items: center; }
.sc-world > .sc-wv .s-b { background: var(--blue); } .sc-world > .sc-wv .s-r { background: var(--red); }
.sc-world > .sc-wv .unk { background: #3a3f4b; color: #c9ced8; }
.sc-world > .sc-lab.wvl { font-size: 11px; z-index: 4; }
.drefs { display: inline-flex; flex-wrap: wrap; gap: 4px; }

/* ---------- 상대 연습 픽 (실시간 밴픽) ---------- */
.prac-box { display: grid; gap: 10px; }
.prac-box .now-h { margin-bottom: 0; }
.prac-help summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; min-height: 32px; }
.prac-help ul { font-size: 12px; color: var(--muted); }
.prac-who { font-size: 13px; overflow-wrap: anywhere; }
.prac-c { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 3px 8px 3px 3px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); font-size: 12px; max-width: 100%; min-width: 0; }
.prac-c .ic.sm { width: 22px; height: 22px; border-radius: 50%; }
.prac-c .ic.sm + .ic.sm { margin-left: -8px; }
.prac-c .st { color: var(--muted); }
.prac-n { font-weight: 700; white-space: nowrap; }
.prac-n small { font-weight: 600; color: var(--dim); margin-left: 4px; font-size: 12px; }
.prac-t { font-size: 12px; color: var(--gold); white-space: nowrap; }
.prac-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.prac-foot .sub { font-size: 12px; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.prac-sw { font-size: 12px; color: var(--muted); }
.prac-sw b { color: var(--text); }
@media (max-width: 760px) { .prac-help summary { min-height: 44px; } .prac-foot { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 실시간 벤픽 아래 탭(시안 A) ---------- */
.dock { margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.dock-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.dock-tabs button { position: relative; flex: none; border: 1px solid transparent; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 8px; min-height: 34px; }
.dock-tabs button:hover { color: var(--text); background: var(--panel2); }
.dock-tabs button[aria-selected="true"] { color: var(--gold); background: var(--gold-bg); border-color: rgba(232, 182, 76, 0.45); }
.dock-tabs .dk-dot { position: absolute; top: 5px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.dock-body { padding: 10px 12px 12px; }
.dock-body > .plan-box, .dock-body > section.plan-box { margin-top: 0; border: 0; background: transparent; padding: 0; }
.dock-body > .live-comps > .section-title:first-child, .dock-body > .section-title:first-child { margin-top: 0; }
.dock-body > .card:first-child { margin-top: 0 !important; }
.dock-empty { margin: 4px 2px; }
@media (max-width: 760px) { .dock-tabs { padding: 6px; } .dock-tabs button { padding: 6px 10px; } .dock-body { padding: 8px; } }

/* ---------- 상대팀 분석: 왼쪽 목차 + 오른쪽 한 섹션(시안 A) ---------- */
.ensec { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: start; }
.ensec-nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.ensec-nav button { text-align: left; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; padding: 8px 10px; border-radius: 8px; min-height: 36px; }
.ensec-nav button:hover { color: var(--text); background: var(--panel2); }
.ensec-nav button[aria-selected="true"] { color: var(--gold); background: var(--gold-bg); }
.ensec-body { min-width: 0; }
.ensec-body > .section-title:first-child { margin-top: 0; }
@media (max-width: 760px) {
  .ensec { grid-template-columns: minmax(0, 1fr); }
  .ensec-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px; }
  .ensec-nav button { flex: none; padding: 6px 10px; }
}

/* ---------- 피드백 노트(시안 B: 주제별 보드) ---------- */
.nfilters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.nfilters select { min-height: 34px; }
.nboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ncol { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ncol h3 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.ncol h3 .btn { margin-left: auto; min-width: 34px; }
.ncard { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ncard-h { display: flex; align-items: center; gap: 6px; }
.ncard-h b { font-size: 14px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ncard-h .nst { flex: none; border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.ncard-h span.nst { cursor: default; }
.ncard p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ncard-f { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 12px; color: var(--dim); }
.ncard-f .ng { color: var(--blue); }
.ncard-f .nby { margin-right: auto; }
.ncard-f .btn { min-height: 26px; padding: 2px 8px; }
.pill.info { background: var(--blue-bg); color: var(--blue); }
.nbtns { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.nmodal { width: min(640px, 100%); }
.nf-game { display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 12px; }
.nf-game .chip small { color: var(--dim); margin-left: 3px; }
.nf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.nf-grid label, .nf-full { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.nf-full { margin-top: 10px; }
.nf-full textarea { resize: vertical; min-height: 90px; font: inherit; }
@media (max-width: 1180px) { .nboard { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .nboard { grid-template-columns: minmax(0, 1fr); } .nf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prep { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0 8px; }
.prep b { color: var(--gold); }
.prep input[type="date"] { min-height: 32px; color-scheme: dark; }

/* ---------- 상대 연습 픽: 라인 다섯 칸 ---------- */
.pr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 4px 0 10px; }
.pr-bar .prep, .pr-bar .g-refresh { margin: 0; }
.pr-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pr-col { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-width: 0; }
.pr-h { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; min-width: 0; }
.pr-h b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pr-h .dim { margin-left: auto; font-size: 12px; flex: none; }
.pr-r { flex: none; font-size: 12px; font-weight: 800; color: var(--gold); }
.pr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.pr-list li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pr-n { font-size: 13px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-n small { margin-left: 3px; color: var(--dim); font-weight: 600; }
.pr-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pr-g { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-g .cp { font-size: 11px; padding: 0 5px; }
.pr-col > p { margin: 0; font-size: 12px; }
.pr-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.pr-foot > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; }
.pr-k { font-weight: 800; color: var(--muted); min-width: 64px; }
.pr-f { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; background: var(--panel2); color: var(--text); }
.pr-f .ic.sm { width: 18px; height: 18px; border-radius: 4px; }
.prac-box .prac-help { margin-top: 8px; }
@media (max-width: 1180px) { .pr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pr-grid { grid-template-columns: minmax(0, 1fr); } }
.lc-why { justify-content: flex-start; margin: 2px 0 8px; }
.lc-alts { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; }
.lc-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.lc-alt .pp-role { min-width: 34px; font-size: 12px; font-weight: 800; color: var(--gold); }
.live-comps .card .dnav { margin: 0 0 10px; }
/* 노트 내용: 5줄까지, 넘치면 눌러서 펼침 · 연결 경기는 눌러서 그 기록으로 */
.ncard .nbody { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.ncard .nbody.clamped { cursor: pointer; position: relative; }
.ncard .nbody.clamped:not(.open)::after { content: "더 보기"; position: absolute; right: 0; bottom: 0; padding-left: 18px; background: linear-gradient(90deg, rgba(18, 23, 34, 0), var(--bg2) 40%); color: var(--blue); font-weight: 700; }
.ncard .nbody.open { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.ncard-f .ng { border: 0; background: transparent; color: var(--blue); font: inherit; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ncard-f .ng:hover { color: var(--text); }
.sv-g.focus, tr.focus td { background: var(--gold-bg); }
.sv-g.focus { border-radius: 8px; padding: 6px; outline: 1px solid rgba(232, 182, 76, 0.5); }

/* ---------- 계정 입력 도움 (2026-11-19) ---------- */
.ed-sug { display: grid; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.ed-s { display: flex; align-items: baseline; gap: 6px; padding: 8px 10px; min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.ed-s:hover, .ed-s:focus-visible { background: var(--panel2); }
.ed-s span { color: var(--muted); } .ed-s small { margin-left: auto; color: var(--dim); font-size: 12px; }
.ed-chk { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
.ed-chk:empty { display: none; }
.ed-ok { color: var(--good); font-weight: 700; } .ed-no { color: var(--bad); font-weight: 700; }
.ed-pts { white-space: nowrap; padding: 0 6px; }

/* ---------- 설정 페이지 (2026-11-19) ---------- */
.set-card { display: grid; gap: 12px; padding: 16px; }
.set-card > h3 { margin: 0; font-size: 16px; }
.set-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.set-card > h3 + .set-row, .set-card > h3 + .tmodal { border-top: 0; padding-top: 0; }
.set-l { display: grid; gap: 2px; flex: 1 1 260px; min-width: 0; } .set-l b { font-size: 14px; }
.set-inline { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; } .set-inline select { min-height: 32px; }
.set-seg button { min-height: 34px; padding: 0 14px; font-size: 13px; }
.set-seg button[aria-pressed="true"] { background: var(--gold-bg); color: var(--gold); }
.set-card .prep { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.set-btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
@media (max-width: 760px) { .set-card { padding: 12px; } .set-row { padding: 10px 0; } .set-seg { width: 100%; } .set-seg button { flex: 1; min-height: 40px; } }

/* ---------- 팀·챔프폭 불러오기 페이지 (2026-11-19) ---------- */
.imp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.imp .card h3 { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.imp-how .steps { margin: 0 0 12px; }
.imp-how code { font-family: var(--font-num); font-size: 12px; background: var(--panel2); border-radius: 4px; padding: 1px 5px; }
.imp-ex { border-collapse: collapse; font-size: 12px; margin: 0 0 10px; width: 100%; }
.imp-ex td { border: 1px solid var(--line); padding: 4px 6px; white-space: nowrap; }
.imp-ex tr.t td { background: var(--gold-bg); color: var(--gold); font-weight: 700; } .imp-ex tr.h td { background: var(--panel2); color: var(--muted); font-weight: 700; }
.imp-drop { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; text-align: center; }
.imp-drop:hover, .imp-drop.over { border-color: var(--gold); background: var(--gold-bg); }
.imp-drop:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.imp-pv { display: grid; gap: 10px; margin-top: 12px; }
.imp-sum { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.imp-errs { border: 1px solid rgba(255, 90, 99, 0.5); background: var(--red-bg); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.imp-errs ul, .imp-warn ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.imp-errs .pill, .imp-warn .pill { margin-right: 6px; }
.imp-warn { font-size: 13px; } .imp-warn summary { cursor: pointer; min-height: 32px; }
.imp-team { padding: 10px 12px; } .imp-team h3 { font-size: 14px; }
.imp-lanes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12px; }
.imp-lanes li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; } .imp-lanes li > b { width: 34px; color: var(--muted); }
.imp-c { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; } .imp-c .cpills { justify-content: flex-start; }
@media (max-width: 900px) { .imp { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 주소 이전 막대 (2026-11-19) ---------- */
.move-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; padding: 8px 16px; background: var(--gold-bg); border-bottom: 1px solid rgba(232, 182, 76, 0.45); color: var(--text); font-size: 13px; }
.move-bar b { color: var(--gold); }
.move-bar .btn { min-height: 34px; }

/* ---------- 팀 공간 창 (2026-11-19) ---------- */
.tmodal { width: min(560px, 100%); display: grid; gap: 12px; }
.tm-name { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 16px; }
.tm-l { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.tm-link { display: flex; gap: 6px; } .tm-link .input { flex: 1; min-width: 0; font-size: 12px; }
.tm-form { display: grid; gap: 10px; } .tm-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.tm-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.tm-icon { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; vertical-align: middle; }
.tm-icon img { width: 56px; height: 56px; border-radius: 10px; border: 2px solid var(--gold); }
.tm-msg:empty { display: none; }
.btn.warnb { border-color: var(--bad); color: var(--bad); }
@media (max-width: 760px) { .tmodal { max-height: 88dvh; } .tm-link .input { font-size: 16px; } }

/* ---------- 목표 챔프 · 밴픽 설계 · 추천 조합 끌어서 넘기기 (2026-11-19) ---------- */
.gl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 12px; }
.gl-l { font-size: 12px; font-weight: 800; color: var(--gold); }
.gl-chip { display: inline-flex; align-items: center; gap: 6px; padding-right: 2px; border-color: rgba(232, 182, 76, 0.5); }
.gl-x { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--dim); display: inline-grid; place-items: center; }
.gl-x:hover { color: var(--text); background: var(--panel2); }
.gl-x .ico-x { width: 14px; height: 14px; }
.gl-add { display: inline-flex; gap: 6px; align-items: center; }
.gl-add .input { width: 210px; min-height: 32px; }
.gp { margin: 0 0 14px; }
.gp-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; }
.gp-h b { font-size: 14px; }
.gp-w { justify-content: flex-start; }
.gp-strip { list-style: none; margin: 0; padding: 3px 3px 8px; display: flex; gap: 6px; overflow-x: auto; position: relative; scrollbar-width: thin; }
.gp-li { display: flex; flex: none; }
.gp-t { flex: none; width: 112px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); text-align: center; color: var(--text); font: inherit; }
button.gp-t { cursor: pointer; }
.gp-t.en { width: 48px; padding: 8px 2px; justify-content: flex-start; background: transparent; border-style: dashed; color: var(--dim); }
.gp-t.en.risk { border-color: rgba(255, 90, 99, 0.6); }
.gp-t.en .ic.sm { width: 26px; height: 26px; outline: 1px solid rgba(255, 90, 99, 0.6); }
.gp-t.our.pick { border-color: rgba(76, 141, 255, 0.4); }
.gp-t.our.ban .gp-k { color: var(--red); }
.gp-t.our.ban .ic.gp img { filter: grayscale(0.5); }
.gp-t.goal { border-color: rgba(232, 182, 76, 0.65); background: var(--gold-bg); }
.gp-t.now { outline: 2px solid var(--gold); outline-offset: 1px; }
.gp-n { font: 700 11px var(--font-num); color: var(--dim); }
.gp-k { font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.25; }
.gp-t .ic.gp { width: 44px; height: 44px; }
.gp-t b { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-t .cpills { flex-direction: column; align-items: center; gap: 3px; }
.gp-t .cp { font-size: 11px; padding: 1px 5px; }
.ctrack-wrap { position: relative; }
.live-comps .ctrack { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.ctrack > .ct-card { flex: 0 0 min(400px, 86%); min-width: 0; display: flex; }
.ctrack > .ct-card > .card { flex: 1; margin: 0; }
.ct-card .plan { display: none; }
.ct-win { margin: 0 0 8px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.ctrack > .ct-card.on > .card { border-color: rgba(76, 141, 255, 0.6); }
.drag-x { user-select: none; -webkit-user-select: none; }
.drag-x img { -webkit-user-drag: none; }
@media (hover: hover) and (pointer: fine) { .drag-x { cursor: grab; } .drag-x.dragging, .drag-x.dragging * { cursor: grabbing; } }
.ct-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(22, 28, 41, 0.94); color: var(--text); font-size: 22px; line-height: 1; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
.ct-nav:hover { border-color: #3a4560; }
.ct-nav.prev { left: -6px; } .ct-nav.next { right: -6px; }
@media (max-width: 760px) {
  .ct-nav, .gl-help, .gl-bar [data-act="goalclr"] { display: none; }
  .gl-add { flex: 1 1 100%; } .gl-add .input { width: auto; flex: 1; min-height: 40px; } .gl-add .btn { min-height: 40px; }
  .gl-bar { margin-bottom: 10px; }
  .gp-t { width: 100px; } .gp-t.en { width: 42px; }
  .gp-strip { scrollbar-width: none; } .gp-strip::-webkit-scrollbar { display: none; }
  .mv .live-comps .ctrack { display: flex; }
  .mv .ctrack > .ct-card { flex: 0 0 90%; scroll-snap-align: start; }
}

/* ---------- 휴대폰 화면(모바일 시안 A, 2026-11-19): 폭 760px 이하에서만. PC는 그대로 ---------- */
.t-short { display: none; }
@media (max-width: 760px) {
  .t-long, .tab.t-vision { display: none; }
  .t-short { display: inline; }
  .tab-more { flex: 0 0 52px; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 20px; font-weight: 800; line-height: 1; }
  .tab-more, .mv-more { display: inline-grid; place-items: center; align-items: center; justify-content: center; }
  .ico-dots { width: 22px; height: 22px; fill: currentColor; }
  .tab-more[aria-expanded="true"], .tab-more.cur { background: var(--gold-bg); color: var(--gold); }
  body.mob .top { border: 0; background: transparent; }
  body.mob .top-in { padding: 0; }
  body.mob .brand, body.mob .top-side { display: none; }
  body.mob main { padding-top: 12px; }
  body.mv-on main { padding: 0; max-width: none; }
  body.mv-on footer { display: none; }
  body.mv-on { overflow: hidden; overscroll-behavior: none; }

  /* 공통 틀: 하단 탭 위까지 한 화면 */
  .mv { --navh: calc(57px + env(safe-area-inset-bottom)); height: calc(100dvh - var(--navh)); display: flex; flex-direction: column; overflow: hidden; }
  .mv-pad { padding-left: 14px; padding-right: 14px; }
  .mv-h { flex: none; height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; border-bottom: 1px solid var(--line); min-width: 0; }
  .mv-h > b { font-size: 15px; white-space: nowrap; }
  .mv-h .mv-title { font-size: 16px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .mv-h .mv-hb { margin-left: auto; margin-right: 8px; min-height: 36px; padding: 0 12px; flex: none; }
  .mv-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .mv-more { margin-left: auto; flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 20px; font-weight: 800; }
  .mv-more[aria-expanded="true"] { background: var(--gold-bg); color: var(--gold); }
  .mv-turn .B { color: var(--blue); } .mv-turn .R { color: var(--red); }
  .mv-chips { flex: none; display: flex; gap: 4px; }
  .mv-chip { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mv-chip small { font-size: 11px; opacity: 0.8; }
  .mv-chip[aria-pressed="true"] { background: var(--gold-bg); color: var(--gold); border-color: rgba(232, 182, 76, 0.5); }
  .mv-chip[disabled] { opacity: 0.35; }
  .mv-pager { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 14px 8px; }
  .mv-pager .btn.sm { min-width: 44px; min-height: 40px; }
  .mv-pg { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; }
  .mv-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 11px; }
  .mv-cell .ic { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; }
  .mv-cell .n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
  .mv-cell .sub { font-size: 11px; color: var(--muted); }
  .mv-cell[disabled] { opacity: 0.3; }
  .mv-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  /* 가로로 넘기는 줄(스크롤 막대 숨김) */
  .mv .recs, .mv .comps, .mv-ecs, .mv-pick .champs { scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .mv .recs::-webkit-scrollbar, .mv .comps::-webkit-scrollbar, .mv-ecs::-webkit-scrollbar, .mv-pick .champs::-webkit-scrollbar { display: none; }

  /* 실시간 벤픽 */
  .mv-board { flex: none; padding: 8px 14px 2px; display: grid; gap: 6px; }
  .mv-row { display: flex; align-items: center; gap: 6px; }
  .mv-who { width: 26px; flex: none; font-size: 12px; font-weight: 800; }
  .mv-row.B .mv-who { color: var(--blue); } .mv-row.R .mv-who { color: var(--red); }
  .mv-picks { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .mv-s { position: relative; aspect-ratio: 1; max-height: 60px; border-radius: 10px; background: var(--bg2); display: grid; place-items: center; overflow: hidden; font-size: 12px; font-weight: 700; color: var(--dim); }
  .mv-s.now { border: 2px dashed var(--gold); background: transparent; color: var(--gold); }
  .mv-row.B .mv-s.f { box-shadow: inset 0 0 0 2px var(--blue); } .mv-row.R .mv-s.f { box-shadow: inset 0 0 0 2px var(--red); }
  .mv-s .ic.mv { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
  .mv-s select { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 20px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: rgba(11, 14, 20, 0.82); color: var(--text); font-size: 16px; font-weight: 700; line-height: 20px; text-align: center; text-align-last: center; -webkit-appearance: none; appearance: none; transform: scale(0.75); transform-origin: bottom center; width: 133%; left: -16.5%; }
  .mv-bans { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); min-width: 0; }
  .mv-bans > span:first-child { width: 26px; flex: none; }
  .mv-bset { display: flex; gap: 3px; } .mv-bset + .mv-bset { margin-left: auto; }
  .mv-b { width: 26px; height: 26px; border-radius: 6px; background: var(--bg2); display: grid; place-items: center; overflow: hidden; color: var(--dim); }
  .mv-bset.B .mv-b { box-shadow: inset 0 -2px 0 var(--blue); } .mv-bset.R .mv-b { box-shadow: inset 0 -2px 0 var(--red); }
  .mv-b .ic.sm { width: 100%; height: 100%; border-radius: 0; filter: grayscale(1); opacity: 0.75; }
  .mv-b.now { outline: 2px solid var(--gold); outline-offset: 1px; }
  .mv-now { flex: none; padding: 8px 14px 0; }
  .mv-now .now-box { padding: 0; border: 0; background: transparent; }
  .mv-now .now-h { display: block; margin: 0 0 6px; }
  .mv-now .now-h > .what, .mv-now .now-h > .step, .mv-now .now-h > .dir, .mv-now .pred-h { display: none; }
  .mv-now .pred-seg { display: flex; width: 100%; gap: 4px; padding: 0; border: 0; background: transparent; }
  .mv-now .pred-seg button { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); font-size: 13px; }
  .mv-now .pred-seg button[aria-pressed="true"] { background: var(--gold-bg); color: var(--gold); border-color: rgba(232, 182, 76, 0.5); }
  .mv-now .pred-seg button[disabled] { opacity: 0.35; }
  .mv-now .recs { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 14px) / 3.15); gap: 6px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; max-width: none; }
  .mv-now .rec { scroll-snap-align: start; padding-bottom: 6px; gap: 4px; }
  .mv-now .rec .hero { aspect-ratio: 4 / 3; }
  .mv-now .rec .nm .cn { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mv-now .rec .lab { font-size: 11px; }
  .mv-now .rec .cpills .cp:nth-child(n+3), .mv-now .rec .tgs .tg:nth-child(n+3) { display: none; }
  .mv-now .rec .cp { font-size: 11px; padding: 1px 5px; }
  .mv-now .rec .ans { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mv-now .empty-recs { padding: 14px 4px; font-size: 13px; }
  .mv-dock { flex: 1; min-height: 96px; margin: 8px 14px 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .mv-dtabs { flex: none; display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line); }
  .mv-dtabs button { position: relative; flex: 1 1 0; min-width: 0; min-height: 36px; padding: 0 2px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
  .mv-dtabs button[aria-selected="true"] { background: var(--gold-bg); color: var(--gold); border-color: rgba(232, 182, 76, 0.45); }
  .mv-dtabs .dk-dot { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
  .mv-dbody { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px 10px; }
  .mv-dbody .live-comps > .section-title, .mv-dbody > .section-title { display: none; }
  .mv-dbody .plan-box { margin: 0; padding: 0; border: 0; background: transparent; }
  .mv .comps { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; }
  .mv .comps > .card { flex: 0 0 90%; min-width: 0; margin: 0; scroll-snap-align: start; padding: 10px; }
  .mv .comps > .ct-card > .card { padding: 10px; }
  .mv-dbody .comps > .card .plan, .mv-dbody .comps .ct-card .plan { display: none; }
  .mv .comps .five { margin-bottom: 6px; }
  .mv .comps .lc-alts { margin-top: 6px; }
  .mv-prac .pr-bar .prep, .mv-prac .prac-help, .mv-prac .now-h { display: none; }
  .mv-prac .pr-grid { grid-template-columns: minmax(0, 1fr); }
  .mv-prac[data-show="T"] .pr-col:not([data-r="T"]), .mv-prac[data-show="J"] .pr-col:not([data-r="J"]), .mv-prac[data-show="M"] .pr-col:not([data-r="M"]),
  .mv-prac[data-show="A"] .pr-col:not([data-r="A"]), .mv-prac[data-show="S"] .pr-col:not([data-r="S"]) { display: none; }
  .mv-dbody > .mv-chips { margin-bottom: 8px; }
  .mv-act { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px; }
  .mv-act .btn { min-height: 48px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
  .mv-act .mv-main { flex: 1; font-size: 15px; font-weight: 800; }
  .mv-act .res-w, .mv-act .res-l { flex: 1; font-weight: 800; }
  .mv-ask { font-size: 13px; font-weight: 800; white-space: nowrap; }

  /* 아래 시트(챔프 고르기 · 메뉴) */
  .mv-sheet-bg { position: fixed; inset: 0; z-index: 58; background: rgba(0, 0, 0, 0.55); }
  .mv-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 59; max-height: 90dvh; display: flex; flex-direction: column; gap: 10px; padding: 6px 14px calc(14px + env(safe-area-inset-bottom));
    background: var(--panel); border-top: 1px solid #3a4560; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.45); animation: mvUp 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .mv-grab { flex: none; align-self: center; width: 40px; height: 4px; border-radius: 4px; background: #3a4560; }
  .mv-sh-h { flex: none; display: flex; align-items: center; gap: 8px; }
  .mv-sh-h b { font-size: 16px; }
  .mv-sh-h .btn { margin-left: auto; min-height: 40px; padding: 0 14px; }
  .mv-search { flex: none; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
  .mv-search:focus-within { border-color: rgba(232, 182, 76, 0.6); }
  .mv-search > span { flex: none; font-size: 13px; color: var(--dim); }
  .mv-search .input { flex: 1; min-width: 0; min-height: 46px; padding: 0; border: 0; background: transparent; }
  .mv-search .input:focus-visible { outline: none; }
  .mv-sec { flex: none; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
  .mv-sec > b { font-size: 12px; color: var(--muted); }
  .mv-rec > b { color: var(--gold); }
  .mv-all { flex: 1; }
  .mv-res-h { display: none; }
  .mv-pick .champs { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(3, auto); grid-auto-columns: calc((100% - 30px) / 6);
    gap: 8px 6px; max-height: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 0; align-content: start; }
  .mv-pick .champs .cbtn { padding: 2px 0; }
  .mv-pick .champs .cbtn .ic { width: 100%; height: auto; aspect-ratio: 1; }
  .mv-pick .champs .cbtn:nth-child(18n+1) { scroll-snap-align: start; }
  .mv-pick.searching .mv-rec, .mv-pick.searching .mv-pool, .mv-pick.searching .mv-all-h { display: none; }
  .mv-pick.searching .mv-res-h { display: block; color: var(--gold); }
  .mv-pick.searching .champs { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow-x: hidden; overflow-y: auto; }
  .mv-menu .seg button { min-width: 0; }
  .mv-teams { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .mv-teams label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
  .mv-teams select { width: 100%; min-width: 0; }
  .mv-mg { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .mv-mg > b { font-size: 13px; }
  .mv-ml { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
  .mv-mb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mv-mb.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mv-mb .btn, .mv-wide { width: 100%; padding: 0 6px; }

  /* 함께 한 경기 */
  .mv-gh { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .mv-gh b { font-size: 14px; flex: none; }
  .mv-gh .help { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mv-gh .btn { margin-left: auto; flex: none; min-height: 36px; }
  .mv-gl { display: grid; gap: 6px; margin-top: 6px; }
  .mv-g { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 8px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); min-width: 0; }
  .mv-g.focus { border-color: var(--gold); }
  .mv-gr { width: 18px; flex: none; font-size: 14px; } .mv-g.w .mv-gr { color: var(--good); } .mv-g.l .mv-gr { color: var(--bad); }
  .mv-gq { display: grid; flex: none; font-size: 12px; font-weight: 700; } .mv-gq small { font-size: 11px; color: var(--dim); font-weight: 500; }
  .mv-gi { display: flex; gap: 2px; min-width: 0; overflow: hidden; } .mv-gi .ic.sm { width: 24px; height: 24px; }
  .mv-g .nbtns { margin-left: auto; display: flex; gap: 4px; flex: none; }
  .mv-g .nbtns .btn { min-height: 36px; padding: 0 8px; }

  /* 우리팀 전략 */
  .mv-roster { flex: none; display: grid; gap: 6px; padding: 10px 14px 0; }
  .mv-pl { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 4px 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
  .mv-r { flex: none; width: 30px; font-size: 12px; font-weight: 800; color: var(--gold); }
  .mv-pn { display: grid; flex: 1 1 0; min-width: 0; }
  .mv-pn b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mv-pn span { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mv-pc { display: flex; gap: 4px; flex: none; }
  .mv-pi { display: grid; justify-items: center; gap: 1px; } .mv-pi .ic.sm { width: 32px; height: 32px; } .mv-pi small { font-size: 10px; color: var(--muted); }
  .mv-games { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px 14px 0; }
  .mv-games .mv-pager { padding: 6px 0 8px; }

  /* 상대팀 분석 */
  .mv-esel { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; flex: 1; }
  .mv-esel select { min-width: 0; flex: 1; min-height: 36px; }
  .mv-sum { flex: none; padding: 8px 14px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--panel2); }
  .mv-sum b { color: var(--text); } .mv-sum .good { color: var(--good); } .mv-sum .bad { color: var(--bad); }
  .mv-ecs { flex: none; display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 14px; }
  .mv-ec { flex: 0 0 calc(100% - 22px); min-width: 0; scroll-snap-align: start; display: grid; gap: 10px; align-content: start; padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
  .mv-ec-h { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .mv-ec-h b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .mv-ec-h .help { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .mv-ec-n { margin-left: auto; flex: none; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
  .mv-ec-s { display: grid; gap: 6px; }
  .mv-k { font-size: 12px; font-weight: 700; color: var(--muted); }
  .mv-ec-c { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .mv-ec .cpills { justify-content: flex-start; }
  .mv-low { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 14px; }
  .mv-low .section-title { display: none; }
  .mv-low .threat-box { margin: 0; }
  .mv-bcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .mv-bc { display: grid; justify-items: center; gap: 4px; padding: 8px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); min-width: 0; text-align: center; }
  .mv-bc .ic { width: 52px; height: 52px; } .mv-bc b { font-size: 12px; } .mv-bc .help { font-size: 11px; }
  .mv-bc:first-child { border-color: rgba(255, 90, 99, 0.45); }

  /* 피드백 노트 */
  .mv-notes .mv-chips { padding-top: 10px; }
  .mv-nfil { flex: none; display: flex; align-items: center; gap: 6px; padding-top: 8px; min-width: 0; }
  .mv-nfil .seg button { min-width: 0; min-height: 36px; padding: 0 10px; }
  .mv-nfil select { flex: 1; min-width: 0; min-height: 40px; margin-left: auto; }
  .mv-ngame { margin-left: auto; min-height: 36px; max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
  .mv-nl { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 8px; align-content: start; padding: 10px 14px 4px; }
  .mv-nc .nbody { -webkit-line-clamp: 3; line-clamp: 3; }
  .mv-nc .ncard-f { flex-wrap: nowrap; min-width: 0; }
  .mv-nc .ncard-f .ng { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mv-nc .ncard-f .btn { flex: none; min-height: 32px; }
  .mv-nnew { margin-left: auto; min-height: 44px; padding: 0 16px; border-radius: 22px; font-weight: 800; }
}
/* 휴대폰 자기평가·챔프폭 편집: 라인 하나씩, 설명문은 숨김 */
@media (max-width: 760px) {
  .modal[data-edr] .ed-intro { display: none; }
  .modal[data-edr] > .mv-chips { margin: 4px 0 2px; }
  .modal[data-edr="T"] .ed-role:not([data-r="T"]), .modal[data-edr="J"] .ed-role:not([data-r="J"]), .modal[data-edr="M"] .ed-role:not([data-r="M"]),
  .modal[data-edr="A"] .ed-role:not([data-r="A"]), .modal[data-edr="S"] .ed-role:not([data-r="S"]) { display: none; }
  .modal[data-edr] .ed-role { border-top: 0; }
  .modal[data-edr] .ed-row > b { display: none; }
  .modal[data-edr] .ed-row > [data-f="riot"] { flex: 1 1 100% !important; }
  .modal[data-edr] .ed-row > .ed-alt { flex: 1 1 calc(50% - 4px) !important; }
  .modal[data-edr] .ed-row > [data-tf="t"] { flex: 1 1 120px !important; }
  .modal[data-edr] .ed-row > [data-add] { flex: 1 1 100% !important; }
  .modal[data-edr] .ed-row > [data-addlv] { flex: 1; }
}
/* 키가 작은 휴대폰(아이폰 SE·주소창 펼침): 칸·그림을 낮춰 한 화면에 */
@media (max-width: 760px) and (max-height: 760px) {
  .mv-s { max-height: 46px; }
  .mv-b { width: 24px; height: 24px; }
  .mv-board { gap: 4px; padding-top: 6px; }
  .mv-now { padding-top: 6px; }
  .mv-now .pred-seg button, .mv-chip { min-height: 36px; }
  .mv-now .rec .hero { aspect-ratio: 16 / 9; }
  .mv-now .rec .ans { display: none; }
  .mv-dock { min-height: 72px; margin-top: 6px; }
  .mv-act { padding: 6px 14px; }
  .mv-act .btn { min-height: 44px; }
  .mv-roster { gap: 4px; padding-top: 8px; }
  .mv-pl { min-height: 46px; padding: 2px 10px; }
  .mv-pi .ic.sm { width: 28px; height: 28px; }
  .mv-g { min-height: 46px; }
  .mv-games { padding-top: 8px; }
  .mv-ecs { padding-top: 8px; padding-bottom: 8px; }
  .mv-ec { gap: 8px; padding: 10px; }
  .mv-ec-c .ic { max-height: 60px; }
}
@keyframes mvUp { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .mv-sheet { animation: none; } }
