/* 구단비서: 어두운 모드와 밝은 모드. 위는 전광판 한 장, 아래는 조용한 표. 왼쪽 정렬, 하단 탭. */
:root {
  --night: #0F1013;      /* 바탕 */
  --turf: #1A1B20;       /* 카드 면 */
  --turf2: #26272E;      /* 눌린 면 */
  --chalk: #F5F6F8;      /* 본문 글자 */
  --dim: #9CA2AE;        /* 보조 글자 */
  --flood: #2FE89A;      /* 강조 */
  --onflood: #062318;    /* 강조색 위에 얹는 글자 */
  --line: rgba(245, 246, 248, .10);
  --win: #2FE89A; --loss: #FF6B86; --draw: #8E95A3; --onres: #0F1013;
  --pta: #C98500; --ptd: #3987E5; /* 경기별 막대: 공격포인트, 수비포인트. 승패 색과 겹치지 않게 따로 둔다 */
  --bar: #0A0B0D;        /* 하단 메뉴 */
  --cardedge: 0 0 0 0 transparent;
  --board: linear-gradient(135deg, #6C2FF7 0%, #3D18AB 58%, #25106E 100%);
  --grbg: #0F1013;
  --pitch1: #1D1E25; --pitch2: #23242C; --pitchedge: rgba(245, 246, 248, .28); --pitchline: rgba(245, 246, 248, .26);
  --namebg: rgba(10, 11, 14, .86); --nametext: #F5F6F8; --pos: #2FE89A;
  --display: "Black Han Sans", "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --night: #F1F3F2; --turf: #FFFFFF; --turf2: #E4EAE7;
  --chalk: #151A1D; --dim: #5E6A71;
  --flood: #0A8052; --onflood: #FFFFFF;
  --line: rgba(21, 26, 29, .12);
  --win: #088553; --loss: #CC3B35; --draw: #6B767D; --onres: #FFFFFF;
  --pta: #B87900; --ptd: #2A78D6;
  --bar: #FFFFFF;
  --cardedge: 0 0 0 1px rgba(21, 26, 29, .07);
  --board: linear-gradient(160deg, #0F4D38, #0A3527);
  --grbg: #ECEFEE;
  --pitch1: #2F8F5E; --pitch2: #2A8556; --pitchedge: rgba(255, 255, 255, .75); --pitchline: rgba(255, 255, 255, .55);
  --namebg: rgba(255, 255, 255, .93); --nametext: #151A1D; --pos: #EFFFD0;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; overscroll-behavior-y: contain; } /* 화면을 아래로 당겨도 페이지가 다시 열리지 않게 한다. 다시 열릴 때마다 넥슨에 묻게 되어 하루 한도를 깎아 먹었다 */
#sheet, #pcIn { overscroll-behavior: contain; }
.modebar { display: flex; } .modebar .seg { flex: none; }
.eal { font-weight: 600; font-size: 11px; color: var(--chalk); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.recinfo { border-top: 1px solid var(--line); padding-top: 10px; } .recinfo summary { cursor: pointer; color: var(--dim); font-size: 13px; padding: 6px 0; } .recinfo .facts { margin: 6px 0 0; }
body { margin: 0; background: var(--night); color: var(--chalk); font: 400 15px/1.55 var(--body); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body.lock { overflow: hidden; }
a { color: var(--flood); }
:focus-visible { outline: 2px solid var(--flood); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 머리: 왼쪽 밤사냥 마크, 가운데 앱 이름, 오른쪽 40번 늑대. 마크와 늑대는 누르면 유튜브 채널로 간다 */
.top { display: grid; grid-template-columns: 76px 1fr 76px; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 16px 0; max-width: 560px; margin: 0 auto; }
.mark, .wolf { flex: none; display: block; line-height: 0; border-radius: 10px; }
.mark img { width: 54px; height: auto; }
/* 엠블럼은 어두운 바탕에 맞춰 만든 그림이라 밝은 모드에서는 늑대의 검은 부분이 비어 보인다. 밝은 모드에서는 검은 판 위에 올린다 */
:root[data-theme="light"] .mark { background: #0A0A0A; padding: 5px 5px 3px; border-radius: 13px; justify-self: start; }
.wolf { align-self: end; }
.mid { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.wolf img { width: 76px; height: auto; display: block; }
/* 앱 이름: Black Han Sans를 오른쪽으로 살짝 기울인다 (Jay 지정) */
.brand { display: inline-block; font: 400 clamp(20px, 6.4vw, 27px)/1.2 var(--display); color: var(--chalk); text-decoration: none; letter-spacing: .01em; white-space: nowrap; transform: skewX(-9deg); }
.tag { font-size: 12px; color: var(--flood); }
main { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px calc(84px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; outline: none; }

nav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; background: var(--bar); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
nav a { flex: 1; max-width: 112px; text-align: center; padding: 13px 0 12px; color: var(--dim); text-decoration: none; font-weight: 500; font-size: 14px; border-top: 3px solid transparent; margin-top: -1px; }
nav a.on { color: var(--chalk); border-top-color: var(--flood); }
/* 홈과 설정은 양 끝에 고정하고, 가운데 메뉴만 손으로 밀어 넘긴다. 가운데가 화면에 다 들어가면 밀리지 않는다 */
nav > a { flex: 0 0 clamp(56px, 16vw, 112px); }
nav .nmid { flex: 0 1 auto; min-width: 0; display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
nav .nmid::-webkit-scrollbar { display: none; }
nav .nmid a { flex: 1 0 60px; width: clamp(60px, 17vw, 112px); scroll-snap-align: center; }
nav .nmid.ml { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px); mask-image: linear-gradient(90deg, transparent, #000 22px); }
nav .nmid.mr { -webkit-mask-image: linear-gradient(270deg, transparent, #000 22px); mask-image: linear-gradient(270deg, transparent, #000 22px); }
nav .nmid.ml.mr { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); }

h1 { font: 400 22px/1.25 var(--display); margin: 0 0 6px; text-wrap: balance; }
h2 { font: 600 15px/1.3 var(--body); margin: 0 0 10px; color: var(--chalk); }
h1 small { font: 500 14px var(--body); color: var(--dim); margin-left: 6px; }
.card { background: var(--turf); box-shadow: var(--cardedge); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card > * { margin-top: 0; margin-bottom: 0; }
.card.demo { background: transparent; border: 1px dashed var(--flood); }
.sub, .foot, .state { color: var(--dim); font-size: 13px; margin: 0; }
.foot { padding: 0 2px; line-height: 1.6; }
.state.bad { color: var(--loss); }
.lead { font-size: 16px; line-height: 1.6; margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack label { font-size: 13px; color: var(--dim); margin-top: 4px; }
.stack label.chk { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--chalk); min-height: 36px; }
.chk input { width: 20px; height: 20px; accent-color: var(--flood); }

input:not([type=checkbox]), select { font: inherit; color: var(--chalk); background: var(--night); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 46px; flex: 1; min-width: 0; width: 100%; }
.row input { width: auto; }
.btn { font: 600 15px var(--body); color: var(--onflood); background: var(--flood); border: 1px solid var(--flood); border-radius: 10px; padding: 0 16px; min-height: 46px; cursor: pointer; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0; }
.go a { gap: 6px; padding: 0 10px; font-size: 14px; white-space: nowrap; }
.go a.sub1 { grid-column: 1 / -1; font-size: 15px; }
.out { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.ext { margin: 0; font-size: 13px; }
.ext a { display: inline-flex; align-items: center; gap: 5px; color: var(--chalk); }
a.btn .out { margin-left: 6px; }
/* 경기 복기 */
.rv { margin: 12px 0 16px; word-break: keep-all; }
.rvt { margin: 0 0 8px; font-size: 15px; line-height: 1.6; }
.chips { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 999px; color: var(--onres); background: var(--draw); }
.chips .good { background: var(--win); } .chips .bad { background: var(--loss); }
.gb { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gb h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; } .gb .good h3 { color: var(--win); } .gb .bad h3 { color: var(--loss); }
.gb ul { margin: 0; padding-left: 16px; font-size: 13.5px; line-height: 1.5; } .gb li + li { margin-top: 4px; } .gb .none { list-style: none; margin-left: -16px; color: var(--dim); }
.bws { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 16px 0 12px; }
.bw { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; position: relative; }
.bw small { position: absolute; top: -8px; left: 8px; padding: 0 4px; font-size: 11px; color: var(--dim); background: var(--sheetbg, var(--turf)); }
.bw .face { flex: none; width: 34px; height: 34px; }
.bw strong { display: block; font-size: 14px; font-weight: 600; } .bw strong em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--dim); margin-left: 4px; } .bw span { display: block; font-size: 13px; line-height: 1.5; color: var(--dim); } .bw div { min-width: 0; }
.bw .ok::before, .bw .no::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--win); } .bw .no::before { background: var(--loss); } .bw .ok, .bw .no { color: var(--chalk); }
.rvtab { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.lg { font-size: 11.5px; color: var(--dim); display: inline-flex; align-items: center; gap: 4px; } .lg i { display: inline-block; border-radius: 50%; margin-left: 6px; }
.lg .go { width: 9px; height: 9px; background: var(--chalk); } .lg .on { width: 7px; height: 7px; border: 1.5px solid var(--chalk); } .lg .off { width: 5px; height: 5px; background: var(--dim); opacity: .6; }
.rt { display: block; width: 100%; height: auto; }
.rt .pg { fill: rgba(127, 127, 127, .1); stroke: var(--line); } .rt .pl { fill: none; stroke: var(--dim); stroke-opacity: .45; stroke-width: 1; } .rt .gm { stroke: var(--chalk); stroke-width: 4; stroke-linecap: round; }
.rt .on { fill: none; stroke: var(--chalk); stroke-opacity: .7; stroke-width: 1.3; } .rt .off { fill: var(--dim); fill-opacity: .5; }
.rt.att { --rc: var(--win); } .rt.def { --rc: var(--loss); }
.rt .gl { fill: none; stroke: var(--rc); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: rtdraw .5s ease-out forwards; }
.rt .go { fill: var(--rc); stroke: var(--onres); stroke-width: 1; } .rt .as { fill: var(--rc); fill-opacity: .55; } .rt text { fill: var(--chalk); font-size: 10px; font-weight: 600; }
.rt .gd { opacity: 0; animation: rtpop .2s ease-out forwards; }
@keyframes rtdraw { to { stroke-dashoffset: 0; } } @keyframes rtpop { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rt .gl { animation: none; stroke-dashoffset: 0; } .rt .gd { animation: none; opacity: 1; } }
.gls { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; } .gls li { display: flex; align-items: baseline; gap: 6px; padding: 5px 0; border-top: 1px solid var(--line); }
.gls b { min-width: 30px; font-variant-numeric: tabular-nums; } .gls small { color: var(--dim); } .gls span { margin-left: auto; color: var(--dim); font-size: 12px; white-space: nowrap; }
/* 이번 구간의 선수 넷 */
.aw { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.aw li { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 9px; border-radius: 12px; background: var(--turf); box-shadow: var(--cardedge); text-align: center; }
.aw small { font-size: 11.5px; font-weight: 600; color: var(--win); } .aw .bad small { color: var(--loss); }
.aw .face { width: 46px; height: 46px; margin: 2px 0; }
.aw strong { max-width: 100%; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw span { font-size: 11.5px; color: var(--dim); word-break: keep-all; line-height: 1.3; } .aw em { font-style: normal; font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; min-height: 1em; }
.awn { margin-top: -4px; overflow-wrap: anywhere; }
.todo { margin: 4px 0 12px; } .todo h3 { margin: 0; font-size: 14px; font-weight: 600; } .todo ul { margin-top: 6px; }
/* 경기 복기: 늑대가 말풍선으로 코칭하는 모양. 첫 말풍선은 총평, 아래 말풍선은 다음 경기 조언 */
.cw { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .cw img { flex: none; width: 62px; height: auto; }
.cbub { flex: 1; min-width: 0; background: var(--turf); box-shadow: var(--cardedge); border-radius: 14px; padding: 10px 14px; } .cbub .rvt { margin: 0; }
/* 키워드는 늑대 말풍선 아래에 한 줄로. 넘치면 옆으로 밀어 본다 */
.chips.rvk { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 12px; } .chips.rvk::-webkit-scrollbar { display: none; } .chips.rvk span { flex: none; white-space: nowrap; } .cbub .sub { margin: 6px 0 0; }
.plan.coach { margin-left: 16px; } .plan.coach h3 { font-size: 12.5px; font-weight: 500; color: var(--dim); } .plan.coach ul { margin-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.plan.coach li { display: block; border: 0; background: var(--turf); box-shadow: inset 3px 0 0 var(--draw), var(--cardedge); border-radius: 4px 14px 14px 14px; padding: 10px 12px 10px 14px; }
.plan.coach li.good { box-shadow: inset 3px 0 0 var(--win), var(--cardedge); } .plan.coach li.bad { box-shadow: inset 3px 0 0 var(--loss), var(--cardedge); }
.plan.coach .tg { display: inline-block; min-width: 0; padding: 4px 8px; margin: 0 0 6px; }
/* 경기 넘기기: 상세 화면 아래에 붙어 있다 */
.mnav { position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 8px -16px calc(-32px - env(safe-area-inset-bottom)) !important; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--night); border-top: 1px solid var(--line); }
.mnav span { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.mnav .btn[disabled] { opacity: .35; }
/* 카드 머리 오른쪽의 구간 고르기 */
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; } .hrow h2 { margin: 0; }
.hrow .seg button { min-height: 34px; padding: 0 10px; font-size: 13px; }
.hrow h1 { margin: 0; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: default; }
/* 영상 탭 */
.vd { color: var(--chalk); text-decoration: none; }
.vth { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--night); }
.vtx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vtx b { font-weight: 500; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.vtx small { color: var(--dim); font-size: 12px; }
.vrow { list-style: none; margin: 0 -16px; padding: 0 16px 4px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: 16px; }
.vrow li { flex: none; width: 168px; scroll-snap-align: start; }
.vrow .vd { display: flex; flex-direction: column; gap: 6px; }
.vrow .vtx b { font-size: 13px; -webkit-line-clamp: 2; }
.vlist { list-style: none; margin: 0; padding: 0; }
.vlist li + li { border-top: 1px solid var(--line); }
.vlist .vd { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 10px 0; align-items: start; }
/* 옆으로 미는 선수 기록 표. 선수 칸은 왼쪽에 붙어 있다 */
.tbw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tb.wide { min-width: max-content; } .tb.wide th, .tb.wide td { white-space: nowrap; }
.tb.wide th:first-child, .tb.wide td:first-child { position: sticky; left: 0; z-index: 1; background: var(--turf); max-width: 46vw; overflow: hidden; box-shadow: 8px 0 8px -8px rgba(0, 0, 0, .45); }
.tb.wide .pl { flex-wrap: nowrap; max-width: 100%; } .tb.wide .pn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb.wide td:not(:first-child) { padding-left: 16px; } .tb.wide .sort { padding-left: 16px; }
/* 랭커와 견준 내 팀 */
.weak .sub { overflow-wrap: anywhere; }
.weak ul { list-style: none; margin: 10px 0 0; padding: 0; }
.weak li { display: grid; grid-template-columns: 92px 1fr 58px; align-items: center; gap: 2px 10px; padding: 8px 0; }
.weak li em { grid-column: 2 / -1; font-style: normal; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.weak li span { font-size: 14px; } .weak li small { display: block; color: var(--dim); font-size: 11.5px; }
.weak .bar { position: relative; height: 8px; border-radius: 4px; background: var(--line); }
.weak .bar i { display: block; height: 100%; border-radius: 4px; background: var(--draw); } .weak .good .bar i { background: var(--win); } .weak .bad .bar i { background: var(--loss); }
.weak .bar::after { content: ""; position: absolute; left: 66.67%; top: -3px; bottom: -3px; width: 2px; background: var(--chalk); opacity: .6; }
.weak b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
/* 선수 카드: 아래에서 올라오는 판 */
#pcard { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; }
#pcard[hidden] { display: none; }
#pcIn { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--night); border-radius: 18px 18px 0 0; padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
#pcIn > .btn { align-self: flex-end; } #pcBody { display: flex; flex-direction: column; gap: 10px; word-break: keep-all; }
#pcBody > * { margin: 0; } #pcBody h3 { margin-top: 8px; font-size: 14px; font-weight: 600; }
.pch { display: flex; align-items: center; gap: 12px; } .pch .face { width: 64px; height: 64px; flex: none; }
.pcn { margin: 0; font-size: 17px; font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; } .tiles.four { grid-template-columns: repeat(4, 1fr); }
.tiles div { background: var(--turf); border-radius: 10px; padding: 7px 4px; text-align: center; min-width: 0; }
.tiles.two { grid-template-columns: 1fr 1fr; } .tiles.two b { font-size: 22px; line-height: 1.2; } .tiles em { display: block; font-style: normal; font-size: 11px; color: var(--dim); overflow-wrap: anywhere; }
.tiles small { display: block; font-size: 11px; color: var(--dim); white-space: nowrap; } .tiles b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.spark { display: block; width: 100%; height: auto; touch-action: pan-y; } .spark .avg { stroke: var(--dim); stroke-opacity: .4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark rect.ap { fill: var(--pta); } .spark rect.dp { fill: var(--ptd); } .spark .hl { fill: var(--chalk); fill-opacity: .09; }
.spark text { font-size: 8.5px; font-weight: 600; fill: var(--chalk); text-anchor: middle; font-variant-numeric: tabular-nums; }
.splg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 2px; font-size: 12px; color: var(--dim); } .splg span { display: inline-flex; align-items: center; gap: 5px; }
.splg .k { width: 10px; height: 10px; border-radius: 2px; } .splg .k.ap { background: var(--pta); } .splg .k.dp { background: var(--ptd); }
.splg .d { width: 8px; height: 8px; border-radius: 50%; } .splg .d.win { background: var(--win); } .splg .d.draw { background: var(--draw); } .splg .d.loss { background: var(--loss); }
.sparkr { min-height: 2.9em; }
.spark .win { fill: var(--win); } .spark .loss { fill: var(--loss); } .spark .draw { fill: var(--draw); }
.facts { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; }
#pcMemo { display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; color: var(--chalk); background: var(--turf); border: 1px solid var(--line); border-radius: 10px; padding: 10px; resize: vertical; min-height: 64px; }
.plb { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; max-width: 100%; -webkit-tap-highlight-color: transparent; }
/* 게임 플랜 */
.plan ul { list-style: none; margin: 10px 0 0; padding: 0; }
.plan li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.plan .tg { flex: none; min-width: 44px; text-align: center; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 0; border-radius: 6px; margin-top: 1px; color: var(--onres); background: var(--draw); }
.plan .good .tg { background: var(--win); } .plan .bad .tg { background: var(--loss); }
.plan strong { display: block; font-weight: 600; line-height: 1.45; }
.plan strong, .plan small, .say p { word-break: keep-all; }
.plan small { display: block; color: var(--dim); font-size: 12.5px; margin-top: 2px; line-height: 1.45; }
/* 등급 흐름 그래프 */
.flow { display: block; width: 100%; height: auto; color: var(--chalk); }
.flow .band { fill: rgba(255, 255, 255, .09); } .flow .band.alt { fill: rgba(255, 255, 255, .03); }
.flow .lb { fill: currentColor; font-size: 10px; opacity: .85; text-anchor: middle; }
.flow .chg { font-size: 8px; text-anchor: middle; } .flow .chg.up { fill: var(--win); } .flow .chg.down { fill: var(--loss); }
.flow .zero { stroke: currentColor; opacity: .3; stroke-dasharray: 3 3; }
.flow .ln { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .7; stroke-linejoin: round; }
.flow .win { fill: var(--win); } .flow .loss { fill: var(--loss); } .flow .draw { fill: var(--draw); }
.flowcap { margin: 0; color: var(--dim); font-size: 13px; } .flowcap small { display: block; font-size: 11.5px; margin-top: 2px; }
.fold { cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; border-radius: 6px; } .fold p { margin: 0; }
.fold .fsum { display: flex; align-items: center; gap: 8px; min-height: 26px; } .fold .fsum::after { content: ''; flex: none; margin: -3px 3px 0 auto; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; }
.fold[aria-expanded=true] .fsum::after { transform: rotate(-135deg); margin-top: 3px; } .fold .fmore { margin-top: 2px; } .fold:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn.ghost { background: transparent; color: var(--chalk); border-color: var(--line); font-weight: 500; }
.btn.wide { width: 100%; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { font: 500 14px var(--body); color: var(--dim); background: transparent; border: 0; padding: 0 13px; min-height: 44px; cursor: pointer; }
.seg button.on { background: var(--turf2); color: var(--chalk); box-shadow: inset 0 -3px 0 var(--flood); }

/* 전광판: 안에서는 글자와 칸 색을 따로 쓴다 */
.board { --chalk: #FFFFFF; --dim: #D3C8FB; --night: rgba(12, 6, 36, .40); --line: rgba(255, 255, 255, .18); --loss: #FFA3B4; --recnum: #FFFFFF; background: var(--board); color: var(--chalk); border-radius: 16px; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.board > * { margin: 0; }
:root[data-theme="light"] .board { --dim: #B5D3C6; --night: rgba(0, 0, 0, .26); --flood: #C5F36A; --turf2: rgba(255, 255, 255, .16); --win: #7CF0B4; --loss: #FF9C93; --draw: #C8D5CE; --recnum: #C5F36A; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: start; }
.hero > * { margin: 0; grid-column: 1; } .hero { position: relative; } .hero > .lag { position: absolute; right: 0; bottom: 2px; font-size: 11.5px; line-height: 1.2; color: var(--dim); white-space: nowrap; }
.hero .star { grid-column: 2; grid-row: 1 / span 2; }
.who { display: flex; gap: 10px; align-items: center; }
.who .meta { display: flex; flex-direction: column; gap: 1px; color: var(--dim); font-size: 13px; min-width: 0; }
.who strong { font: 600 17px var(--body); color: var(--chalk); }
.tierw { flex: none; display: inline-flex; }
.tierimg { width: 58px; height: 58px; object-fit: contain; }
.tierimg[hidden] { display: none; }
.tierimg:not([hidden]) + .tier { display: none; }
.tierw.sm .tierimg { width: 26px; height: 26px; } .tierw.sm .tier { width: 23px; height: 26px; font-size: 9px; letter-spacing: -.4px; }
.mhd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; } .mhb { display: inline-flex; align-items: center; gap: 6px; }
.ctl { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--dim); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-left: 4px; } .ctl .f { fill: var(--dim); stroke: none; }
.opp .on { display: flex; align-items: center; gap: 6px; min-width: 0; } .opp .nk { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .opp .tierw, .opp .omx { flex: none; }
.opp .ol { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 8px; } .opp .ol small { display: inline; } .omx { display: inline-flex; align-items: center; gap: 1px; } .omx i { font-style: normal; color: var(--dim); font-size: 14px; }
.tier { flex: none; width: 46px; height: 51px; display: grid; place-items: center; font: 400 15px/1 var(--display); color: #0F1013; background: linear-gradient(160deg, var(--t1), var(--t2)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.t-champ { --t1: #FFE58A; --t2: #E0A100; } .t-chal { --t1: #7CF3DF; --t2: #12B39A; } .t-master { --t1: #D2C2FF; --t2: #8A5BFF; } .t-world { --t1: #A9D4FF; --t2: #3E8BFF; }
.t-pro { --t1: #B6F0C2; --t2: #3FB56A; } .t-semi { --t1: #EEF1F5; --t2: #A9B3C1; } .t-rookie { --t1: #F0CDB0; --t2: #C08552; }
.star { width: 92px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.star .face { width: 84px; height: 84px; background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.star figcaption { font-size: 12px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.star small { display: block; font-weight: 400; color: var(--dim); }
.star:has(.face[hidden]) { display: none; }
.worth { color: var(--dim); font-size: 14px; }
.worth b { color: var(--chalk); font-weight: 600; font-size: 18px; margin-left: 6px; }
.worth small { display: block; font-size: 12px; word-break: keep-all; }
.worth .wl, .mysq .wl { display: inline; text-decoration: underline; text-underline-offset: 3px; padding: 5px 0; }
.cst label { font-size: 13px; color: var(--dim); flex-basis: 100%; }
.cst input { flex: none; width: 110px; min-height: 40px; padding: 8px 12px; }
.cst span { font-size: 13px; color: var(--dim); }
.cst .btn { margin-left: auto; min-height: 40px; }
.rec { font: 400 25px/1.1 var(--display); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 9px; }
.rec b { font-weight: 400; font-size: 46px; color: var(--recnum, var(--flood)); font-variant-numeric: tabular-nums; margin-right: -4px; }
.rate { font: 500 14px var(--body); color: var(--dim); margin-left: 4px; }
.form { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.form li { background: var(--night); border-radius: 6px; padding: 6px 0 5px; text-align: center; border-bottom: 3px solid var(--draw); display: flex; flex-direction: column; }
.form li span { font-weight: 600; font-size: 14px; line-height: 1.2; }
.form li small { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.form .win { border-color: var(--win); } .form .win span { color: var(--win); }
.form .loss { border-color: var(--loss); } .form .loss span { color: var(--loss); }
.rec.sm b { font-size: 38px; }
.avg { color: var(--dim); font-size: 14px; }

/* 늑대의 한마디 */
.say { display: flex; align-items: flex-end; gap: 8px; }
.say img { flex: none; width: 62px; height: auto; }
.say p { margin: 0 0 8px; background: var(--turf); box-shadow: var(--cardedge); border-radius: 14px 14px 14px 4px; padding: 10px 14px; line-height: 1.5; }
.notes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.tb { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tb th { font-weight: 500; color: var(--dim); font-size: 12px; text-align: right; padding: 0 0 6px 8px; white-space: nowrap; }
.tb td { padding: 8px 0 8px 8px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.tb th:first-child, .tb td:first-child { text-align: left; padding-left: 0; white-space: normal; }
.tb tfoot td { font-weight: 600; }
/* 가계부 그래프: 누적 손익 선과 보유 기간별 막대 */
.cum svg { display: block; width: 100%; height: auto; touch-action: pan-y; overflow: visible; }
.cum .ln { fill: none; stroke: var(--chalk); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cum .cup { fill: var(--win); fill-opacity: .16; } .cum .cdn { fill: var(--loss); fill-opacity: .16; }
.cum .zero { stroke: var(--dim); stroke-opacity: .45; stroke-width: 1; vector-effect: non-scaling-stroke; } .cum .cx { stroke: var(--dim); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cum text { font-size: 10px; fill: var(--dim); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--turf); stroke-width: 3px; stroke-linejoin: round; } .cum .end { fill: var(--chalk); font-size: 12px; font-weight: 600; }
.cum .dot { fill: var(--chalk); stroke: var(--turf); stroke-width: 2; } .cumr { min-height: 2.9em; }
.tb.hold .hb { width: 84px; } .hbar { position: relative; display: block; height: 10px; } .hbar i { position: absolute; top: 0; bottom: 0; min-width: 2px; }
.hbar .z { width: 1px; min-width: 1px; background: var(--dim); opacity: .55; top: -4px; bottom: -4px; } .hbar .p { background: var(--win); border-radius: 0 4px 4px 0; } .hbar .n { background: var(--loss); border-radius: 4px 0 0 4px; }
.tb.rost td { vertical-align: top; } .tb.rost td:first-child { width: 26px; padding-top: 9px; } .tb.rost th:nth-child(2), .tb.rost td:nth-child(2) { text-align: left; white-space: normal; max-width: 0; width: 100%; }
.tb.rost .plb { display: block; width: 100%; } .tb.rost .pl { flex-wrap: nowrap; max-width: 100%; } .tb.rost .pn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tb.rost .face { display: none; }
.tb.rost small { display: block; font-size: 11.5px; color: var(--dim); min-height: 1.3em; } .tb.rost small.up { color: var(--win); } .tb.rost small.down { color: var(--loss); } .tb.rost .dim { color: var(--dim); }
.sellck { width: 20px; height: 20px; margin: 0; accent-color: var(--flood); }
.tb.rost .nowp { width: 62px; min-height: 34px; padding: 4px 8px; text-align: right; font-size: 14px; flex: none; } input.bad { border-color: var(--loss) !important; }
.calc { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; } .calc h3 { margin: 0; font-size: 14px; font-weight: 600; }
.calc .row label { flex: 1; font-size: 14px; color: var(--dim); } .calc .row input { flex: none; width: 96px; min-height: 40px; padding: 8px 10px; text-align: right; } .calc .row span { font-size: 13px; color: var(--dim); width: 14px; }
.tb.cal td { padding: 6px 0; } .tb.cal td:first-child { color: var(--dim); } .tb.cal .calt td { font-weight: 600; } .tb.cal .calt td:first-child, .tb.cal .calr td:first-child { color: var(--chalk); } .tb.cal .calr td { font-size: 16px; font-weight: 600; } .tb.cal b { font-weight: 700; }
.tb th:has(.sort) { padding-left: 0; }
.sort { position: relative; font: inherit; color: inherit; background: none; border: 0; padding: 8px 0 8px 8px; margin: -8px 0; cursor: pointer; }
.sort.on { color: var(--chalk); font-weight: 600; }
.sort i { position: absolute; left: -3px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 9px; color: var(--flood); }
.up { color: var(--win); } .down { color: var(--loss); }

.pl { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; vertical-align: middle; }
.face { flex: none; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; background: var(--turf2); }
.face[hidden], .sicon[hidden] { display: none; }
.ssn { display: inline-flex; align-items: center; }
.sicon { display: block; height: 15px; width: auto; }
.sicon:not([hidden]) + .st { display: none; }
.ssn { color: var(--dim); font-size: 12px; }
.pn { font-weight: 500; }
.gr { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 5px; border-radius: 4px; background: var(--grbg); color: var(--dim); vertical-align: 1px; }
.gr.g1 { color: #1B1F26; background: linear-gradient(160deg, #EEF1F5, #AAB3C0); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }                      /* 1~7: 은색 */
.gr.g2 { color: #2A1D00; background: linear-gradient(160deg, #FFE27A, #E0A100); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }                      /* 8~10: 금색 */
.gr.g3 { color: #0E2230; background: linear-gradient(135deg, #FFFFFF 0%, #DDF3F8 45%, #B9D6E2 100%); box-shadow: inset 0 0 0 1px #8FD9EC, 0 0 6px rgba(160, 230, 245, .55); } /* 11~13: 백금색 */
.ps { display: inline-block; min-width: 34px; font-size: 11px; font-weight: 600; color: var(--dim); }

.res { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 6px; font-weight: 600; font-size: 13px; background: var(--night); color: var(--draw); font-family: var(--body); }
.res.win { color: var(--onres); background: var(--win); } .res.loss { color: var(--onres); background: var(--loss); }
.mlist { list-style: none; margin: 0 -8px; padding: 0; }
.mrow { width: 100%; display: grid; grid-template-columns: 30px 56px 1fr; gap: 8px; align-items: center; background: transparent; border: 0; border-top: 1px solid var(--line); color: inherit; font: inherit; text-align: left; padding: 10px 8px; min-height: 56px; cursor: pointer; }
.mrow:active { background: var(--turf2); }
.sc { font: 400 19px var(--display); font-variant-numeric: tabular-nums; }
.opp { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.opp small { display: block; color: var(--dim); font-size: 12px; }
.when { color: var(--dim); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 14px var(--body); color: var(--chalk); background: var(--night); border: 1px solid var(--line); border-radius: 22px; padding: 4px 12px 4px 5px; min-height: 40px; cursor: pointer; }
.chip .res { min-width: 24px; height: 24px; border-radius: 12px; font-size: 12px; }

/* 경기장 */
.sq { display: flex; flex-direction: column; gap: 12px; }
.sqh strong { font-size: 17px; display: block; }
.sqh span { color: var(--dim); font-size: 13px; }
.pitch { position: relative; aspect-ratio: 5 / 8.9; border-radius: 12px; overflow: hidden; background: repeating-linear-gradient(180deg, var(--pitch1) 0 12.5%, var(--pitch2) 12.5% 25%); border: 2px solid var(--pitchedge); }
.pitch i { position: absolute; border: 2px solid var(--pitchline); }
.pitch .mid { left: 0; right: 0; top: 50%; border-width: 2px 0 0; }
.pitch .circle { left: 50%; top: 50%; width: 26%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.pitch .box { left: 24%; right: 24%; height: 13%; }
.pitch .box.top { top: -2px; } .pitch .box.bot { bottom: -2px; }
.pval { position: absolute; left: 10px; top: 10px; margin: 0; z-index: 1; font-size: 11px; line-height: 1.3; color: var(--nametext); background: var(--namebg); border-radius: 8px; padding: 5px 8px; }
.pval b { display: block; font-size: 14px; font-weight: 600; }
.pval small { display: block; font-size: 10px; opacity: .75; }
.pp { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; width: 25%; text-align: center; }
.pp .ps { min-width: 0; color: var(--pos); font-size: 10px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.pp .ps b { color: var(--nametext); background: var(--namebg); border-radius: 4px; padding: 0 2.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pp .ps b.dp { color: var(--namebg); background: var(--nametext); }
.pp .ps b.ap { color: var(--onflood); background: var(--flood); }
.pts { margin-left: auto; padding-left: 8px; display: inline-flex; gap: 8px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pts .ap { color: var(--flood); } .pts .z { color: var(--dim); font-weight: 400; }
.tb.pt th:not(:first-child), .tb.pt td:not(:first-child) { width: 38px; text-align: center; padding-left: 0; padding-right: 0; }
.tb.pt td b { font-weight: 700; font-size: 15px; } .tb.pt th:nth-child(2), .tb.pt td:nth-child(2) { color: var(--flood); }
.tb.pt td:nth-child(n+4), .tb.pt th:nth-child(n+4) { color: var(--dim); }
.tb.pt td:nth-child(3), .tb.pt th:nth-child(3) { border-right: 1px solid var(--line); }
.tb.pt { table-layout: fixed; } .tb.pt .plb { display: flex; align-items: center; gap: 2px; width: 100%; text-align: left; } .tb.pt .ps { flex: none; }
.tb.pt .face { display: none; } .tb.pt .pl { flex-wrap: nowrap; min-width: 0; } .tb.pt .pn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bwn { margin-top: -6px; }
.rt { margin-left: auto; padding-left: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ps.sub { color: var(--flood); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.ps.sub svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mvp.inl { position: static; margin-left: 6px; }
.mvp { position: absolute; left: -16px; top: -4px; z-index: 1; font-size: 9px; font-weight: 700; line-height: 1; color: #2A1D00; background: linear-gradient(160deg, #FFE27A, #E0A100); border-radius: 4px; padding: 2px 3px; }
.pp .nm { font-size: 11px; font-weight: 600; line-height: 1.15; background: var(--namebg); color: var(--nametext); border-radius: 5px; padding: 3px 4px; max-width: 100%; overflow-wrap: anywhere; }
.pp .nm .sicon { display: inline-block; height: 11px; vertical-align: -1.5px; margin-right: 3px; }
.pp .pv { font-size: 10.5px; line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--nametext); background: var(--namebg); border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
.pp .pv.none { font-weight: 400; opacity: .65; }
.plist.bl li { justify-content: space-between; gap: 10px; } .plist.bl .plb { min-width: 0; } .plist.bl .bv { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; } .plist.bl .bv.none { color: var(--dim); }
.mysq .sub a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sqv { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; } .sqv span { color: var(--dim); font-size: 13px; } .sqv b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; } .sqv small { color: var(--dim); font-size: 12px; }
.wv .pitch { aspect-ratio: 5 / 10.4; } .wv .pp { gap: 1px; } .wv .pp .face { width: 30px; height: 30px; } /* 선수 밑에 값이 한 줄 더 붙어서, 줄 사이가 겹치지 않게 그림을 조금 길게 */
.pp .fw { position: relative; display: inline-flex; }
.pp .face { width: 34px; height: 34px; box-shadow: 0 0 0 2px var(--namebg); }
.pp .gr { font-size: 10px; padding: 2px 4px; }
.pp .fw .gr { position: absolute; right: -13px; bottom: -3px; }
.pp .fw .face[hidden] + .gr { position: static; }
.plist { list-style: none; margin: 0; padding: 0;  font-size: 13px; }
.plist li { padding: 6px 0; border-top: 1px solid var(--line); display: flex; align-items: center; }
details { border-top: 1px solid var(--line); padding: 10px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; min-height: 32px; }
summary small { color: var(--dim); }
details[open] summary { margin-bottom: 12px; }
.steps + .sub { margin-top: 10px; }
.steps { margin: 0; padding-left: 20px; color: var(--dim); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }

.pairs { list-style: none; margin: 0; padding: 0; }
.pair { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pair:first-child { border-top: 0; padding-top: 0; }
.pair small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }
.pair .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pair .num b { font-weight: 600; font-size: 16px; }

.cmp { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cmp td { width: 32%; padding: 7px 0; font-weight: 600; font-size: 16px; border-top: 1px solid var(--line); }
.cmp td:last-child { text-align: right; }
.cmp th { font-weight: 400; color: var(--dim); font-size: 13px; text-align: center; border-top: 1px solid var(--line); }
.cmp thead td { font-weight: 500; font-size: 12px; color: var(--dim); border-top: 0; }

#sheet { position: fixed; inset: 0; background: var(--night); z-index: 10; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#sheet[hidden] { display: none; }
.sheetin { max-width: 560px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
#sheetClose { align-self: flex-end; }
#sheetBody { display: flex; flex-direction: column; gap: 12px; }
#sheetBody > * { margin: 0; }
#sheetBody h2 { margin-top: 8px; }
#toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); background: var(--chalk); color: var(--night); font-weight: 500; font-size: 14px; padding: 10px 16px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 20; max-width: calc(100% - 32px); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }
@media (max-width: 360px) { .rec b { font-size: 40px; } .form { gap: 3px; } .star { width: 76px; } .star .face { width: 68px; height: 68px; } }
.vseg { margin: 8px 0 2px; }
.btn.ico { flex: none; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; }
.btn.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.ico.spin svg { animation: rfspin 1s linear infinite; } @keyframes rfspin { to { transform: rotate(360deg); } } @media (prefers-reduced-motion: reduce) { .btn.ico.spin svg { animation: none; } }
.hrow .hl { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; } .hrow .hl h2 { margin-right: 4px; } .hrow .hl .btn.sm { padding: 0 10px; } .hrow > [data-act=vopen] { margin-left: auto; }
.nform { display: inline-flex; align-items: center; gap: 4px; flex: none; } .nform .nin { flex: none; width: 58px; min-height: 44px; padding: 0 8px; text-align: center; } .nform span { font-size: 13px; color: var(--dim); }
.npick { margin: 8px 0 2px; }
/* 경기 상세: 팀 성적표와 옆으로 미는 선수 기록 표 */
.tcard { margin: 14px 0 4px; } .tcard h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.tb.tc td small { display: block; font-size: 11.5px; color: var(--dim); } .tb.tc td { vertical-align: top; }
.jg { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--turf2); color: var(--dim); } .jg.good { background: var(--win); color: var(--onres); } .jg.bad { background: var(--loss); color: var(--onres); }
#sheet .tb.wide th:first-child, #sheet .tb.wide td:first-child { background: var(--sheetbg, var(--night)); max-width: 44vw; }
.tb.mt td:not(:first-child) { padding-left: 14px; } .tb.mt .sort { padding-left: 14px; } .tb.mt td:nth-child(2) b { color: var(--flood); } .tb.mt .plb { display: flex; align-items: center; gap: 4px; max-width: 100%; } .tb.mt .face { display: none; } .tb.mt .ps { flex: none; }
#sheet .sq .plist { display: none; }
button.bw { font: inherit; color: inherit; background: none; text-align: left; width: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent; } button.bw:active { background: var(--turf2); } .bw div { flex: 1; } .bw .chev { flex: none; font-style: normal; font-size: 20px; color: var(--dim); }
.bws { gap: 16px; } .bw small { font-weight: 600; padding: 2px 8px; border-radius: 999px; top: -10px; } .bw small.good { background: var(--win); color: var(--onres); } .bw small.bad { background: var(--loss); color: var(--onres); } .bw small.gk { background: var(--turf2); color: var(--chalk); } .bw small.warn { background: #F2C230; color: #1A1B20; }
.bw { padding-top: 12px; } .bw span b { font-weight: 600; }
/* 스쿼드 탭: 진 경기 상대가 많이 쓴 선수, 포메이션별 전적 */
.ins { list-style: none; margin: 0; padding: 0; } .ins li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); } .ins .ps { flex: none; min-width: 34px; font-size: 12px; color: var(--dim); } .ins .face { flex: none; width: 30px; height: 30px; } .ins b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ins em { margin-left: auto; flex: none; font-style: normal; font-size: 13px; color: var(--dim); }
.tb.fm td:first-child, .tb.fm th:first-child { white-space: nowrap; } .tb.fm th:nth-child(2):not(:last-child), .tb.fm td:nth-child(2) { text-align: left; }

.sub.bare { margin: 14px 0 4px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }

/* 상대 수준별 맞대결: 줄마다 나(위)와 상대(아래) 막대 한 쌍. 막대 색은 선수 카드 그래프와 같은 두 계열 색, 숫자와 판정은 글자로 적는다 */
.vsg .row { margin: 6px 0 12px; } .vsg .seg button { min-height: 38px; padding: 0 10px; font-size: 13px; } .vsg .lead { font-size: 14.5px; margin-bottom: 10px; }
.vsl { list-style: none; margin: 8px 0 12px; padding: 0; }
.vsl li { display: grid; grid-template-columns: 84px 1fr 40px; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.vsl .vl { font-size: 14px; } .vsl .vl small { display: block; color: var(--dim); font-size: 11.5px; }
.vsl .vbs { display: grid; gap: 4px; min-width: 0; } .vsl .vb { display: grid; grid-template-columns: 1fr 42px; align-items: center; gap: 8px; }
.vsl .t { display: block; height: 8px; border-radius: 4px; background: var(--line); } .vsl .t i { display: block; height: 100%; min-width: 2px; border-radius: 4px; }
.vsl .me .t i { background: var(--pta); } .vsl .op .t i { background: var(--ptd); }
.vsl .vb b { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; } .vsl .op b { color: var(--dim); font-weight: 500; }
.vsl .vj { font-style: normal; font-size: 12px; font-weight: 600; text-align: center; padding: 5px 0; border-radius: 999px; color: var(--dim); border: 1px solid var(--line); }
.vsl .vj.good { color: var(--onres); background: var(--win); border-color: var(--win); } .vsl .vj.bad { color: var(--onres); background: var(--loss); border-color: var(--loss); }

.unreal:not(:empty) { border-top: 1px solid var(--line); margin: 12px 0 10px; padding-top: 12px; } .unreal h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; } .unreal .sub { margin-top: 6px; }

/* 경기 상세의 선수 기록 표: 이름과 강화 배지가 선수 칸 폭을 넘으면 배지만 다음 줄로 내린다. 칸 폭은 그대로 두고, 배지가 잘리지 않게 한다. 시즌 표시와 이름은 한 줄에 붙여 둔다 */
.tb.mt td:first-child .plb { max-width: calc(44vw - 2px); } .tb.mt .pw { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; min-width: 0; } .tb.mt .pw .pl { flex-wrap: nowrap; min-width: 0; max-width: 100%; }

/* 상대 스카우팅 */
.plist.sct li { gap: 6px; } .plist.sct em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tb.scr td:first-child, .tb.scr th:first-child { text-align: left; } .tb.scr small { display: block; font-size: 11.5px; color: var(--dim); }
.scb { margin-top: 12px; } #sheet .scl { margin-top: 12px; }

/* 공략 탭 */
#scOut { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; scroll-margin-top: 10px; } #scOut .scl { margin: 0 0 0 16px; } #scOut .scf { padding: 0 4px; } #scOut .kwl { margin: 0; }
/* 머리 칸은 납작하게: 아래 카드 세 장과 공략이 첫 화면에 더 들어오게(Jay) */
.card.sco { padding: 10px 14px; gap: 2px; position: relative; } .card.sco.hasctl { padding-right: 56px; } .sco > .ctl { position: absolute; right: 14px; top: 50%; width: 30px; height: 30px; margin: -15px 0 0; }
@media (max-width: 379px) { .card.sco.hasctl { padding-right: 14px; } .sco.hasctl .sch { padding-right: 34px; } .sco > .ctl { top: 9px; width: 26px; height: 26px; margin: 0; } } /* 좁은 폰에서는 그림을 첫 줄 오른쪽에 붙여 전적 줄이 두 줄로 넘어가지 않게 한다 */ .sco .state { margin-top: 4px; }
.sch { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; } .sch h2 { margin: 0; font-size: 16px; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.sctx { font-size: 12.5px; color: var(--dim); white-space: nowrap; } .scw { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--dim); font-variant-numeric: tabular-nums; word-break: keep-all; }

.tb.scd td:first-child { white-space: normal; } .tb.scd .ps { margin-right: 6px; } .tb.scd .tg2 { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 6px; border-radius: 999px; color: var(--onres); background: var(--win); vertical-align: 1px; } .tb.scd tr.tgt td:first-child { font-weight: 600; }

/* PC 연동 줄 */
#lkBox:empty { display: none; }
/* 공략 결과 맨 위 카드 세 장 */
.sc3 { display: grid; gap: 8px; }
.scc { background: var(--turf); box-shadow: var(--cardedge); border-radius: 14px; padding: 10px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.scc .tg { font-size: 11.5px; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 999px; color: var(--onres); background: var(--draw); white-space: nowrap; }
.scc.bad .tg { background: var(--loss); } .scc.good .tg { background: var(--win); }
.scc .face { width: 76px; height: 76px; background: var(--turf2); } .scc.bad .face { box-shadow: 0 0 0 2px var(--loss); } .scc.good .face { box-shadow: 0 0 0 2px var(--win); }
.scc b { font-size: 14.5px; font-weight: 700; line-height: 1.25; word-break: keep-all; overflow-wrap: anywhere; } .scc small { font-size: 11.5px; color: var(--dim); line-height: 1.35; }
.scc em { font-style: normal; font-size: 12.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; margin-top: -2px; }
.scc .fcw { position: relative; display: inline-flex; }
.scc .dir { position: absolute; top: 0; right: -12px; display: inline-flex; align-items: center; gap: 2px; padding: 4px 6px 4px 5px; border-radius: 999px; background: var(--win); color: var(--onres); font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; box-shadow: 0 0 0 2px var(--turf); }
.scc .dir svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scc .face[hidden] + .dir { position: static; }
/* 공략 줄 반반: 왼쪽 노릴 것, 오른쪽 막을 것. 꼬리표는 키워드 윗줄 */
.kwl.kw2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: start; }
.kwl.kw2 summary { flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; min-height: 56px; padding: 8px 24px 8px 12px; position: relative; } .kwl.kw2 summary::after { position: absolute; right: 10px; top: 13px; margin: 0; } .kwl.kw2 details[open] summary::after { margin: 0; top: 16px; }
.kwl.kw2 b { white-space: normal; overflow: visible; font-size: 14px; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; } .kwl.kw2 .tg { font-size: 11px; padding: 4px 6px; }
.kwl.kw2 details p { padding: 0 12px; font-size: 13px; } .kwl.kw2 details small { padding: 3px 12px 10px; font-size: 12px; } .kwl.kw2 li.none { padding: 10px 12px; font-size: 12.5px; }
/* 공략 그림: 세로로 선 반쪽 경기장 두 개 */
.sp2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; } .spf { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; } .spn { padding: 0 4px; margin-top: -4px; font-size: 12px; }
.sp { display: block; width: 100%; height: auto; border-radius: 10px; } .sp .gr { fill: var(--pitch1); } .sp .fl { fill: none; stroke: var(--pitchline); stroke-width: 1; } .sp .gl { fill: none; stroke: var(--chalk); stroke-width: 2.2; stroke-linecap: round; }
.spf.good .ln { fill: var(--win); } .spf.bad .ln { fill: var(--loss); } .spc { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--chalk); } .spc span.on { text-decoration: underline; text-underline-offset: 3px; }
.sp .pd { fill: var(--turf); stroke: var(--chalk); stroke-width: 1; opacity: .85; } .spf.good .pd.hi { fill: var(--win); stroke: var(--win); stroke-width: 1.6; opacity: 1; } .spf.bad .pd.hi { fill: var(--loss); stroke: var(--loss); stroke-width: 1.6; opacity: 1; }
.sp .pn { fill: var(--chalk); font-size: 6.6px; font-weight: 700; paint-order: stroke; stroke: var(--pitch1); stroke-width: 2.4px; stroke-linejoin: round; }
.sp .rt { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; } .sp .rt.dash { stroke-dasharray: 2.2 3.2; } .spf.good .rt { stroke: var(--win); } .spf.bad .rt { stroke: var(--loss); } .spf.good marker path { fill: var(--win); } .spf.bad marker path { fill: var(--loss); }
.spf figcaption { font-size: 12.5px; line-height: 1.35; color: var(--dim); padding: 0 2px; word-break: keep-all; } .spf figcaption b { display: block; color: var(--chalk); font-weight: 600; font-size: 12.5px; }
.sco .era { color: var(--chalk); }
/* 공략 줄: 키워드 한 줄, 누르면 설명과 근거가 펼쳐진다 */
.kwl ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kwl li { background: var(--turf); border-radius: 4px 12px 12px 4px; box-shadow: inset 3px 0 0 var(--draw), var(--cardedge); } .kwl li.good { box-shadow: inset 3px 0 0 var(--win), var(--cardedge); } .kwl li.bad { box-shadow: inset 3px 0 0 var(--loss), var(--cardedge); }
.kwl li.good + li.bad { margin-top: 6px; }
.kwl li.none { padding: 11px 14px; font-size: 13px; color: var(--dim); }
.kwl details { border: 0; padding: 0; } .kwl details[open] summary { margin-bottom: 0; }
.kwl summary { list-style: none; box-sizing: border-box; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 14px; cursor: pointer; } .kwl summary::-webkit-details-marker { display: none; }
.kwl summary::after { content: ''; flex: none; width: 7px; height: 7px; margin: -3px 3px 0 auto; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); } .kwl details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.kwl .tg { flex: none; font-size: 11.5px; font-weight: 700; line-height: 1; padding: 5px 7px; border-radius: 6px; color: var(--onres); background: var(--draw); white-space: nowrap; } .kwl .good .tg { background: var(--win); } .kwl .bad .tg { background: var(--loss); }
.kwl b { min-width: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwl details p { margin: 0; padding: 2px 14px 0; font-size: 13.5px; line-height: 1.5; word-break: keep-all; } .kwl details small { display: block; padding: 3px 14px 11px; font-size: 12.5px; color: var(--dim); line-height: 1.45; word-break: keep-all; }
@media (prefers-reduced-motion: no-preference) { .kwl summary::after { transition: transform .15s; } }
.scp { width: 100%; max-width: 104px; height: 76px; } .scp .ln { fill: var(--loss); stroke: var(--line); stroke-width: 1; } .scp .ln.on { stroke: var(--loss); stroke-width: 2; }
.scp.aim .bx { fill: none; stroke: var(--line); stroke-width: 1.5; } .scp.aim .ps { fill: none; stroke: var(--win); stroke-width: 2.5; stroke-dasharray: 4 4; stroke-linecap: round; stroke-linejoin: round; } .scp.aim .st { fill: none; stroke: var(--win); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; } .scp.aim marker path { fill: var(--win); }
.scp text { fill: var(--chalk); font-size: 11px; font-weight: 600; text-anchor: middle; font-variant-numeric: tabular-nums; } .scp .gl { stroke: var(--chalk); stroke-width: 3; stroke-linecap: round; fill: none; }

/* PC 스카우터 페이지에 넣는 넓은 배치(?pc=1): 공략 결과만, 여러 칸으로 */
/* 경기장 안의 선수 얼굴. 둘째 선수(.h2)는 PC 화면에서만 */
.spw { position: relative; } .spfc { position: absolute; width: 20%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; } .spfc .face { display: block; width: 100%; height: 100%; }
.spf.good .spfc .face { box-shadow: 0 0 0 2px var(--win); } .spf.bad .spfc .face { box-shadow: 0 0 0 2px var(--loss); }
.spfc.h2, .sp .pn.h2, .sph.h2 { display: none; } .sph { display: block; }
.sc3.sc2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sc2 .scc { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: 6px 10px; padding: 10px 10px 11px; text-align: left; }
.sc2 .scc .tg { grid-column: 1 / -1; } .sc2 .scc small { white-space: nowrap; } .sc2 .sct { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .sc2 .scp { width: 66px; height: 46px; max-width: none; } .sc2 .scc.none { display: flex; }
.sc2 .scc em { margin: 0; } .scc.bad .scp.aim .ps, .scc.bad .scp.aim .st { stroke: var(--loss); } .scc.bad .scp.aim marker path { fill: var(--loss); } .scc.none { opacity: .6; }

/* 경기장 소제목과 경기장 안의 선수 기록(흰 글씨). 얼굴 옆 이름은 선수가 둘인 PC 화면에서만 */
.spt { margin: 0 2px; font-size: 13px; font-weight: 700; color: var(--chalk); line-height: 1.2; } .spf { gap: 5px; }
.sp .rec { fill: #fff; font-size: 6.2px; font-weight: 700; paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: 2px; stroke-linejoin: round; } .sp .rec.sub2 { font-size: 5.6px; font-weight: 600; } .sp .rec.h2 { display: none; }
.sp .pn { display: none; }
.spn { margin-top: 0; font-size: 12.5px; }

/* 경기장 안 선수 기록: 어두운 바탕 띠 위 흰 글씨. 둘째 줄(.h2)은 PC 화면에서만 */
.sprec { position: absolute; left: 5px; top: 5px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: calc(100% - 10px); pointer-events: none; }
.rcl { background: rgba(8, 10, 12, .78); color: #fff; border-radius: 6px; padding: 3px 6px 4px; font-size: 11.5px; font-weight: 600; line-height: 1.3; max-width: 100%; word-break: keep-all; }
.rcl b { font-weight: 700; } .spf.good .rcl b { color: var(--win); } .spf.bad .rcl b { color: var(--loss); } .rcl i { display: block; font-style: normal; font-weight: 500; font-size: 11px; opacity: .9; } .rcl.h2 { display: none; }
.spfc { width: 17%; }
.h2f { font-size: 13px; font-weight: 500; color: var(--dim); }


