/* 역사 야구 온라인 — 밤 경기장 */
:root{
  --bg:#0a1020;--bg2:#0e1628;--panel:#141e33;--panel2:#1b2742;--line:#24324f;--line2:#34466d;
  --ink:#f4f7fc;--dim:#a3b0c8;--faint:#8290aa;
  --gold:#ffc94d;--gold2:#ffb020;--red:#ff6b6b;--blue:#62bcff;--green:#4ade80;--purple:#c9a8ff;--orange:#ff9a3c;
  --gN:#9aa3b2;--gR:#4f9dff;--gU:#a46bff;--gE:#ff8a2a;--gL:#ffcb3d;
  --r:14px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;color:var(--ink);line-height:1.5;font-size:15px;letter-spacing:-.01em;
  font-family:'Pretendard Variable',Pretendard,'Malgun Gothic','Apple SD Gothic Neo',sans-serif;
  background:radial-gradient(900px 420px at 50% -160px,#1c2f57 0%,rgba(28,47,87,0) 70%),var(--bg);background-attachment:fixed;overflow-x:hidden}
img{max-width:100%}
button,select,input{font:inherit;color:var(--ink)}
button{min-height:44px;padding:8px 14px;border-radius:10px;border:1px solid var(--line2);background:var(--panel2);font-weight:700;font-size:14.5px;cursor:pointer;touch-action:manipulation}
button:active:not(:disabled){transform:translateY(1px)}
button:disabled{opacity:.38;cursor:default}
button.main{background:linear-gradient(180deg,var(--gold),var(--gold2));color:#231a00;border-color:var(--gold);box-shadow:0 4px 14px rgba(255,190,50,.22)}
button.on{background:rgba(255,201,77,.15);color:var(--gold);border-color:var(--gold)}
button.ghost{background:transparent}
button.danger{background:rgba(255,107,107,.14);border-color:var(--red);color:var(--red)}
button.sm{min-height:44px;padding:4px 10px;font-size:13px}
select,input[type=text],input[type=search]{min-height:44px;padding:8px 12px;border-radius:10px;border:1px solid var(--line2);background:var(--panel2);width:100%}
select option{background:var(--panel2)}
h1{font-size:22px;margin:0}
h2{font-size:16px;margin:0 0 10px;display:flex;align-items:center;gap:8px}
h2::before{content:'';width:4px;height:16px;border-radius:2px;background:var(--gold)}
h3{margin:0 0 6px;font-size:14.5px}
.dim{color:var(--dim)}.faint{color:var(--faint)}.gold{color:var(--gold)}.small{font-size:12.5px}.center{text-align:center}
.hide{display:none!important}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.row.nw{flex-wrap:nowrap}
.grow{flex:1;min-width:0}
.gap{margin-top:12px}
.panel{background:linear-gradient(180deg,var(--panel),#121b2e);border:1px solid var(--line);border-radius:var(--r);padding:14px;margin:0 0 12px;box-shadow:0 8px 24px rgba(0,0,0,.25);min-width:0}

/* 틀 */
#app{max-width:860px;margin:0 auto;padding:0 12px 96px}
#top{position:sticky;top:0;z-index:20;margin:0 -12px;padding:8px 12px;background:rgba(10,16,32,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);display:flex;gap:8px;align-items:center}
#top .club{font-weight:800;color:var(--gold);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chip{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border-radius:999px;background:var(--panel2);border:1px solid var(--line2);font-weight:700;font-size:13.5px;white-space:nowrap}
#tabs{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;background:rgba(10,16,32,.97);border-top:1px solid var(--line2);padding-bottom:env(safe-area-inset-bottom)}
#tabs button{flex:1;border:0;border-radius:0;background:transparent;min-height:56px;padding:4px 0;font-size:12px;color:var(--dim);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}
#tabs button .ic{font-size:20px;line-height:1}
#tabs button.on{color:var(--gold);background:rgba(255,201,77,.08)}
#tabs button .dot{position:absolute;margin:-18px -20px 0 0;width:9px;height:9px;border-radius:50%;background:var(--red)}
#toast{position:fixed;left:50%;bottom:76px;transform:translateX(-50%);z-index:100;max-width:92vw;background:#222c47;border:1px solid var(--line2);padding:11px 16px;border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.5);font-weight:600;opacity:0;pointer-events:none;transition:opacity .2s}
#toast.show{opacity:1}#toast.err{border-color:var(--red);color:#ffd0d0}
.seg{scrollbar-width:none;display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;margin-bottom:10px}
.seg button{flex:none}

/* 로그인 */
.login{min-height:90vh;display:flex;flex-direction:column;justify-content:center;gap:14px;text-align:center;max-width:380px;margin:0 auto}
.login .logo{font-size:56px}
.login h1{font-size:28px;color:var(--gold)}

/* 등급 색 */
.gN{--g:var(--gN)}.gR{--g:var(--gR)}.gU{--g:var(--gU)}.gE{--g:var(--gE)}.gL{--g:var(--gL)}
.gbadge{display:inline-block;min-width:22px;text-align:center;padding:0 6px;border-radius:6px;background:var(--g);color:#10131c;font-weight:900;font-size:12px}
.stars{color:var(--gold);letter-spacing:-1px;font-size:12px}

/* 카드 */
.cgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.card{position:relative;border:2px solid var(--g,var(--line2));border-radius:12px;background:linear-gradient(180deg,#1a2540,#111a2e);overflow:hidden;cursor:pointer;display:flex;flex-direction:column;min-width:0;text-align:left;padding:0;min-height:0;font-weight:500;color:var(--ink)}
.card .fc{position:relative;aspect-ratio:1/1;background:#0c1426;overflow:hidden}
.card .fc img{width:100%;height:100%;object-fit:cover;display:block}
.card .fc .ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:900;color:var(--g);opacity:.6}
.card .tl{position:absolute;top:3px;left:3px}
.card .tr{position:absolute;top:3px;right:3px;background:rgba(0,0,0,.65);border-radius:6px;padding:0 5px;font-size:11px;font-weight:800;color:var(--gold)}
.card .bl{position:absolute;bottom:3px;left:3px;background:rgba(0,0,0,.65);border-radius:6px;padding:0 5px;font-size:11px;font-weight:800}
.card .info{padding:4px 6px 6px}
.card .nm{font-weight:800;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card .sub{font-size:11px;color:var(--dim);display:flex;justify-content:space-between;gap:4px;white-space:nowrap}
.card.gL{box-shadow:0 0 14px rgba(255,203,61,.35)}.card.gE{box-shadow:0 0 10px rgba(255,138,42,.25)}
.card.used{opacity:.55}
.card .use{position:absolute;bottom:34px;right:3px;background:rgba(98,188,255,.9);color:#00131f;border-radius:6px;padding:0 5px;font-size:10.5px;font-weight:800}
.enh{color:var(--orange);font-weight:900}

/* 시트 */
#sheetbg{position:fixed;inset:0;z-index:50;background:rgba(3,6,14,.7);display:none}
#sheetbg.show{display:block}
#sheet{position:fixed;left:0;right:0;bottom:0;z-index:51;max-height:90vh;overflow-y:auto;background:#101a30;border-top:2px solid var(--gold);border-radius:18px 18px 0 0;padding:14px 14px 28px;transform:translateY(105%);transition:transform .22s;max-width:860px;margin:0 auto}
#sheet.show{transform:none}
#sheet .grab{width:44px;height:5px;border-radius:3px;background:var(--line2);margin:0 auto 10px}
.close{position:absolute;right:10px;top:8px;min-height:44px;min-width:44px;border-radius:50%}
.bar{height:9px;border-radius:5px;background:#0c1426;overflow:hidden;flex:1}
.bar i{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--green))}
.stat{display:grid;grid-template-columns:78px 34px 1fr;gap:8px;align-items:center;font-size:13.5px;margin:4px 0}
.stat span{white-space:nowrap}
.stat.main b{color:var(--gold)}
.tag{display:inline-block;padding:2px 8px;border-radius:999px;background:var(--panel2);border:1px solid var(--line2);font-size:12px;margin:2px 3px 2px 0}
.big-face{width:112px;height:112px;border-radius:14px;overflow:hidden;border:2px solid var(--g);flex:none;background:#0c1426;position:relative}
.big-face img{width:100%;height:100%;object-fit:cover}

/* 편성 */
.slot{display:flex;align-items:center;gap:8px;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);margin-bottom:6px;min-height:52px;cursor:pointer;text-align:left;flex:1;min-width:0;font-weight:500}.row.nw>select[data-act=pos]{width:68px;flex:none;padding:4px;margin-bottom:6px}
.slot .no{width:22px;text-align:center;color:var(--gold);font-weight:900}
.slot .mf{width:38px;height:38px;border-radius:8px;overflow:hidden;border:2px solid var(--g,var(--line2));flex:none;background:#0c1426;position:relative}
.slot .mf img{width:100%;height:100%;object-fit:cover}
.slot .mf .ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--g);font-weight:900}
.slot.empty{border-style:dashed;color:var(--dim)}
.slot.bad{border-color:var(--red)}
.slot select{width:76px;min-height:44px;flex:none;padding:4px 6px}
.costbar{display:flex;align-items:center;gap:8px}
.costbar .bar i{background:linear-gradient(90deg,var(--green),var(--gold))}
.costbar.over .bar i{background:var(--red)}
.cgrade{display:inline-block;width:22px;height:22px;line-height:22px;text-align:center;border-radius:6px;font-weight:900;font-size:12px;color:#10131c}
.cS{background:var(--gold)}.cA{background:#ff9a3c}.cB{background:var(--blue)}.cC{background:var(--green)}.cD{background:var(--gN)}.cX{background:#3a4560;color:var(--dim)}
.cand{display:flex;gap:8px;align-items:center;padding:6px;border-radius:10px;border:1px solid var(--line);margin-bottom:6px;background:var(--panel2);width:100%;text-align:left;font-weight:500}
.cand .mf{width:44px;height:44px;border-radius:8px;overflow:hidden;border:2px solid var(--g);flex:none;background:#0c1426}
.cand .mf img{width:100%;height:100%;object-fit:cover}
.warnbox{background:rgba(255,154,60,.1);border:1px solid var(--orange);border-radius:10px;padding:8px 10px;font-size:13px;margin:8px 0}
.errbox{background:rgba(255,107,107,.1);border:1px solid var(--red);border-radius:10px;padding:8px 10px;font-size:13px;margin:8px 0}

/* 경기 고르기 */
.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.steps button{display:flex;flex-direction:column;gap:0;padding:6px 2px;line-height:1.2}
.steps button small{font-size:10.5px;color:var(--dim);font-weight:500}
.teamlist{max-height:280px;overflow-y:auto;border:1px solid var(--line);border-radius:10px}
.teamlist button{display:flex;justify-content:space-between;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;text-align:left;font-weight:600;gap:8px}
.teamlist button.on{background:rgba(255,201,77,.15)}
.teamlist button small{color:var(--dim);font-weight:500;flex:none}

/* 중계 */
#bc{position:fixed;inset:0;z-index:60;background:var(--bg);display:flex;flex-direction:column;max-width:860px;margin:0 auto}
#bc .head{padding:8px 12px;display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--line)}
.sb{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.sb th,.sb td{padding:3px 2px;text-align:center;border-bottom:1px solid var(--line)}
.sb th{color:var(--dim);font-weight:600;font-size:11.5px}
.sb td.t{text-align:left;padding-left:6px;white-space:nowrap;max-width:110px;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.sb td.rh{font-weight:900;color:var(--gold)}
.sb td.cur{background:rgba(255,201,77,.18)}
.sbwrap{overflow-x:auto;padding:4px 8px}
.field{display:flex;gap:10px;align-items:center;padding:6px 12px}
.diamond{width:70px;height:70px;position:relative;flex:none}
.diamond i{position:absolute;width:18px;height:18px;background:#26324f;border:2px solid var(--line2);transform:rotate(45deg)}
.diamond i.on{background:var(--gold);border-color:var(--gold2)}
.diamond .b2{left:26px;top:2px}.diamond .b1{right:2px;top:26px}.diamond .b3{left:2px;top:26px}.diamond .b0{left:26px;bottom:2px;border-radius:0 0 8px 8px}
.outs{display:flex;gap:4px;margin-top:3px}.outs i{width:12px;height:12px;border-radius:50%;background:#26324f;border:1px solid var(--line2)}.outs i.on{background:var(--red)}
#feed{flex:1;overflow-y:auto;padding:8px 12px;display:flex;flex-direction:column;gap:5px}
#feed .ln{padding:7px 10px;border-radius:9px;background:var(--panel);border-left:3px solid var(--line2);font-size:14.5px;animation:pop .25s}
#feed .ln.inn{background:#1a2a4a;border-left-color:var(--blue);font-weight:800;color:var(--blue)}
#feed .ln.big{border-left-color:var(--gold);background:rgba(255,201,77,.12);font-weight:800}
#feed .ln.good{border-left-color:var(--green)}#feed .ln.bad{border-left-color:var(--red)}
#feed .ln.run{border-left-color:var(--orange);background:rgba(255,154,60,.12);font-weight:800}
#feed .ln.sys{color:var(--dim);font-size:13.5px}
@keyframes pop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
#bc .foot{padding:8px 12px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line);display:flex;gap:6px;flex-wrap:wrap}
#bc .foot button{flex:1;min-width:84px}
#hl{display:none;position:absolute;inset:0;z-index:5;background:rgba(5,9,18,.94);flex-direction:column;align-items:center;justify-content:center;gap:8px}
#hl.show{display:flex}
#hlc{width:min(92vw,420px);aspect-ratio:1/1;border-radius:14px;border:2px solid var(--gold);background:#0f2a1c}
.result-banner{text-align:center;padding:12px;border-radius:12px;font-size:20px;font-weight:900;margin:8px 12px}
.result-banner.win{background:rgba(74,222,128,.14);color:var(--green)}.result-banner.loss{background:rgba(255,107,107,.14);color:var(--red)}.result-banner.draw{background:rgba(255,201,77,.14);color:var(--gold)}
.box{width:100%;border-collapse:collapse;font-size:12.5px;font-variant-numeric:tabular-nums}
.box th,.box td{padding:4px 3px;text-align:center;border-bottom:1px solid var(--line)}.box td:first-child,.box th:first-child{text-align:left;white-space:nowrap}
.box-scroll{overflow-x:auto}

/* 영입판 */
.seals{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:10px}
.seal{perspective:700px;cursor:pointer;aspect-ratio:3/4.2;position:relative;border:0;padding:0;background:none;min-height:0}
.seal .in{position:absolute;inset:0;transition:transform .7s;transform-style:preserve-3d}
.seal.flip .in{transform:rotateY(180deg)}
.seal .f,.seal .bk{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:12px;overflow:hidden}
.seal .bk{background:linear-gradient(135deg,#7a1f2b,#a8323f);border:2px solid var(--gold);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--gold);font-weight:900;text-align:center;padding:6px}
.seal .bk .wax{width:44px;height:44px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ff6a6a,#8b1620);box-shadow:0 2px 6px rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;font-size:20px}
.seal.shiny .bk{animation:glow 1.4s infinite alternate}
@keyframes glow{from{box-shadow:0 0 6px rgba(255,203,61,.3)}to{box-shadow:0 0 22px rgba(255,203,61,.95)}}
.seal .f{transform:rotateY(180deg);border:3px solid var(--g);background:#101a30;display:flex;flex-direction:column}
.seal .f img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.seal .f .t{padding:4px 6px;font-size:12.5px;font-weight:800;text-align:center;flex:1;display:flex;flex-direction:column;justify-content:center}
.seal.mine .f{box-shadow:0 0 24px var(--g)}
.seal.other{opacity:.8}
.pk{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.pk .seal{width:104px;aspect-ratio:3/4.2}

/* 표 */
table.t{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:13.5px}
table.t th,table.t td{padding:7px 4px;text-align:center;border-bottom:1px solid var(--line)}
table.t th{color:var(--dim);font-size:12px}
table.t td.l,table.t th.l{text-align:left}
table.t tr.me td{background:rgba(255,201,77,.14);color:var(--gold);font-weight:800}
.game{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid var(--line);border-radius:10px;margin-bottom:5px;background:var(--panel2);width:100%;text-align:left;font-weight:600}
.game.mine{border-color:var(--gold)}
.game .sc{font-weight:900;min-width:52px;text-align:center;color:var(--gold)}
.game .tm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.empty-note{text-align:center;color:var(--dim);padding:22px 8px}
.colrow{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--line);font-size:13.5px}
.colrow .nm{flex:1;min-width:0}
.colrow.eq{background:rgba(255,201,77,.08)}
.news{padding:8px 10px;border-left:3px solid var(--blue);background:var(--panel2);border-radius:8px;margin-bottom:6px;font-size:14px}
@media(min-width:700px){.cgrid{grid-template-columns:repeat(auto-fill,minmax(128px,1fr))}#sheet{border-radius:18px;bottom:20px;left:50%;right:auto;width:min(760px,96vw);transform:translate(-50%,110%)}#sheet.show{transform:translate(-50%,0)}}
.seg::-webkit-scrollbar{display:none}

/* 출석판 · 가방 · 행상인 · 룰렛 · 퀴즈 */
.stampgrid{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}
.stampgrid .sc{position:relative;min-height:44px;padding:2px;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;background:var(--panel2);border:1px solid var(--line);font-size:15px;line-height:1.1}
.stampgrid .sc i{font-style:normal;font-size:10px;color:var(--faint);font-weight:600}
.stampgrid .sc.done{background:rgba(74,222,128,.14);border-color:var(--green);color:var(--green)}
.stampgrid .sc.big{border-color:var(--gold)}
.stampgrid .sc.next{border-color:var(--gold);animation:glow 1.1s infinite alternate}
.bagrow{display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}
.bagrow:last-child{border-bottom:0}
.bagrow .ic{font-size:30px;width:40px;text-align:center;flex:none}
.bagrow .col{display:flex;flex-direction:column;gap:4px;flex:none}
.boxanim{font-size:84px;text-align:center;animation:shake .5s infinite;margin:10px 0}
.boxanim.pop{animation:popbig .5s}
@keyframes shake{0%,100%{transform:rotate(-8deg)}50%{transform:rotate(8deg)}}
@keyframes popbig{from{transform:scale(.4)}60%{transform:scale(1.3)}to{transform:scale(1)}}
.mgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.mc{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;padding:10px 6px;font-weight:600;min-width:0}
.mc .ic{font-size:30px}
.mc.sold{opacity:.4}
.wheel{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px}
.wheel .wc{display:flex;align-items:center;justify-content:center;text-align:center;min-height:52px;padding:4px;border-radius:10px;background:var(--panel2);border:1px solid var(--line2);font-size:12px;font-weight:700;line-height:1.2;transition:background .08s}
.wheel .wc.big{border-color:var(--gold);color:var(--gold)}
.wheel .wc.lit{background:var(--gold);color:#231a00;border-color:var(--gold2);transform:scale(1.06)}
.wheel .wc.win{background:var(--green);color:#052a12;animation:popbig .5s}
.passage{background:var(--panel2);border-left:3px solid var(--blue);border-radius:8px;padding:8px 10px;font-size:14px;margin-bottom:10px;white-space:pre-wrap}
.qtext{font-size:17px;font-weight:700;line-height:1.5}
.qch{display:flex;flex-direction:column;gap:8px}
.qc{display:flex;gap:10px;align-items:center;text-align:left;width:100%;padding:10px 12px;font-weight:600}
.qc b{width:24px;height:24px;border-radius:50%;background:var(--panel);display:flex;align-items:center;justify-content:center;flex:none;font-size:13px;color:var(--gold)}
.qc span{flex:1;min-width:0}
@media(max-width:380px){.wheel{grid-template-columns:repeat(3,1fr)}}
/* 🎰 스킬(2026-11-28) */
.skgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px}
.skchip{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:7px 9px;border-radius:10px;border:1px solid var(--line,#2a3350);background:rgba(255,255,255,.03);text-align:left;min-height:62px;font-size:13px}
.skchip b{font-size:14px}.skchip.t1{border-left:4px solid var(--green)}.skchip.t2{border-left:4px solid var(--blue)}.skchip.t3{border-left:4px solid var(--purple)}
.skchip.on{background:rgba(255,201,77,.12);border-color:var(--gold);box-shadow:0 0 0 1px var(--gold) inset}
.skchip.open{border:1px dashed var(--gold);color:var(--gold);align-items:center;justify-content:center}
.skchip.lock{opacity:.45;align-items:center;justify-content:center}
button.mini{padding:4px 9px;font-size:12.5px;border-radius:8px}
.row.wrap{flex-wrap:wrap}
.wheelbox{margin:18px auto;padding:22px 10px;border-radius:16px;border:2px solid var(--gold);background:radial-gradient(circle,rgba(255,201,77,.12),transparent 70%);text-align:center;max-width:320px}
.whname{font-size:26px;font-weight:900}.whname.t1{color:var(--green)}.whname.t2{color:var(--blue)}.whname.t3{color:var(--purple)}.whname.need{text-shadow:0 0 10px var(--gold)}
.whname.hit{animation:whpop .5s ease}
@keyframes whpop{0%{transform:scale(.6)}60%{transform:scale(1.25)}100%{transform:scale(1)}}
#feed .ln.skill{color:var(--purple);font-weight:700;font-size:13.5px}

/* 🎓 전직 슬롯(2026-11-28) */
.reels{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}
.reel{border:2px solid var(--line,#2a3350);border-radius:12px;padding:12px 6px;text-align:center;min-height:74px}
.reel b{display:block;font-size:15px;margin-top:6px}
.reel.hit{border-color:var(--gold);animation:whpop .4s ease}.reel.v2{background:rgba(98,188,255,.1)}.reel.v3{background:rgba(255,201,77,.16)}
.jobopt{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:8px 0;border-bottom:1px solid var(--line,#2a3350)}.jobopt .nm{min-width:120px}.jobopt>span.small{flex:1 1 220px}.jobopt>button,.jobopt>b{margin-left:auto}

/* 🎯 스킬 숙련 E~S (2026-11-28) */
.skslot{border:1px solid var(--line,#2a3350);border-radius:12px;padding:8px 10px;margin:6px 0}
.skg{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;font-weight:900;font-size:18px;margin-right:8px;background:rgba(255,255,255,.06);border:2px solid #667}
.skg.g1{border-color:#7a8}.skg.g2{border-color:var(--green)}.skg.g3{border-color:var(--blue)}.skg.g4{border-color:var(--purple)}.skg.g5{border-color:var(--gold);color:var(--gold);box-shadow:0 0 10px rgba(255,201,77,.5)}
.skbar{height:7px;border-radius:4px;background:rgba(255,255,255,.08);margin:6px 0 2px;overflow:hidden}.skbar i{display:block;height:100%;background:linear-gradient(90deg,var(--green),var(--gold))}
.reel.v1{background:rgba(98,188,255,.08)}
/* 💥 필살기 컷인(2026-11-28) */
.cutin{position:absolute;inset:44px 0 0;z-index:6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:radial-gradient(circle,rgba(255,200,80,.28),rgba(255,200,80,0) 55%),rgba(8,10,20,.9);animation:cutin 1.6s ease both}   /* 2026-11-29 휴대폰 점검: 뒤 중계 글자가 비쳐 어둡게 */
.cutin img{max-width:88%;max-height:58%;border-radius:12px;box-shadow:0 0 30px rgba(255,200,80,.6)}
.cutin .cface{width:120px;height:120px;border-radius:50%;overflow:hidden;border:3px solid var(--gold)}
.cutin .cface img{width:100%;height:100%;max-height:none;object-fit:cover;box-shadow:none}
.cutin .ctext{text-align:center}.cutin small{display:block;color:var(--dim,#aab);font-size:13px}.cutin b{font-size:26px;color:var(--gold);text-shadow:0 0 12px rgba(255,200,80,.8)}
@keyframes cutin{0%{opacity:0;transform:scale(1.15)}12%{opacity:1;transform:scale(1)}85%{opacity:1}100%{opacity:0}}
.ln.ex{font-weight:700;color:var(--gold)}
.uqbox{border:1px solid var(--line,#2a3350);border-radius:10px;padding:8px 10px;margin:6px 0}
.uqbox.off{opacity:.6}

/* 🎲 카드 특성(2026-11-29) */
.trbox { border: 1px solid var(--gold, #d4a72c); border-radius: 8px; padding: 6px 10px; }
.trbox.two { border-style: dashed; }
.trbox .good { color: #4caf50; } .trbox .bad { color: var(--red, #e66); }

/* 📂 카드 화면 접는 칸(2026-11-29) */
details.fold { margin-top: 10px; border: 1px solid var(--line, #2a3350); border-radius: 10px; background: rgba(255,255,255,.02); }
details.fold > summary { cursor: pointer; padding: 10px 30px 10px 12px; font-weight: 700; list-style: none; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; position: relative; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: '▾'; position: absolute; right: 12px; top: 11px; color: var(--dim, #aab); transition: transform .15s; }
details.fold[open] > summary::after { transform: rotate(180deg); }
details.fold > .foldbody { padding: 0 12px 10px; }
details.fold > .foldbody > h3.gap:first-child { margin-top: 0; }

/* 🎫 추첨 · 🎲 주사위(2026-11-29) */
.lotbox { display: flex; gap: 12px; align-items: center; }
.lotspin { font-size: 18px; text-align: center; padding: 8px; }
.lotwin { border: 1px solid var(--gold, #d4a72c); border-radius: 10px; padding: 10px; background: rgba(255,200,80,.12); color: var(--gold, #d4a72c); text-align: center; }
.lotmiss { border: 1px dashed var(--line, #2a3350); border-radius: 10px; padding: 8px; text-align: center; color: var(--dim, #aab); }
.dicefx { min-height: 34px; text-align: center; font-size: 26px; font-weight: 800; display: flex; gap: 8px; align-items: center; justify-content: center; }
.dicelist > div { display: grid; grid-template-columns: 40px 36px 1fr; gap: 6px; padding: 2px 0; font-size: 14px; }

/* 🎰 슬롯 · 🎫 뽑기판(2026-11-29) */
.reels { display: flex; justify-content: center; gap: 10px; font-size: 40px; }
.reels > span { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--gold, #d4a72c); border-radius: 12px; background: rgba(0,0,0,.25); }
.sbgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 3px; }
.sbc { aspect-ratio: 1; padding: 0; min-height: 0; font-size: 11px; border-radius: 4px; background: linear-gradient(135deg, #f6d37a, #d4a72c); border: 1px solid rgba(0,0,0,.3); }
.sbc:disabled:not(.torn) { opacity: .55; }
.sbc.torn { background: rgba(255,255,255,.06); color: var(--dim, #aab); }
.sbc.torn.r1, .sbc.torn.r2, .sbc.torn.r3 { background: rgba(255,200,80,.25); color: var(--gold, #d4a72c); font-weight: 800; }
.sbc.mine { outline: 2px solid #4caf50; }
.sbc.tearing { animation: sbtear .5s ease; }
@keyframes sbtear { 0% { transform: rotate(0) } 30% { transform: rotate(-12deg) scale(1.15) } 60% { transform: rotate(10deg) } 100% { transform: rotate(0) } }
.sbprize { display: flex; flex-wrap: wrap; gap: 4px; }

/* 🧤 장비 · 🔨 공방(2026-11-29) */
.gslots{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.gslot{border:2px solid var(--g,#3a4560);border-radius:12px;padding:8px;background:rgba(255,255,255,.03);cursor:pointer;min-height:84px}
.gslot.empty{border-style:dashed;border-color:#3a4560;opacity:.8}
.gslot:hover{background:rgba(255,255,255,.07)}
.gs-top{display:flex;align-items:center;gap:6px;margin-bottom:3px}.gs-top .gbadge{margin-left:auto}
.gs-ic{font-size:20px}.gs-big{font-size:40px;width:54px;text-align:center}
.gset{border-left:3px solid #3a4560;padding:4px 8px;margin:6px 0;border-radius:4px;background:rgba(255,255,255,.02)}
.gset.on3{border-left-color:var(--blue)}.gset.on5{border-left-color:var(--gold);background:rgba(255,201,77,.06)}
.gitem{border:1px solid var(--g,#3a4560);border-left-width:4px;border-radius:10px;padding:8px 10px;margin:6px 0;background:rgba(255,255,255,.03)}
.gitem[data-g]{cursor:pointer}.gitem[data-g]:hover{background:rgba(255,255,255,.07)}
.gitem .row{align-items:center}
.gbar{height:8px;border-radius:4px;background:#1c2742;overflow:hidden;margin-top:6px}.gbar i{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--gold))}
.gflip{width:120px;height:150px;margin:14px auto;border-radius:16px;border:3px solid #3a4560;display:flex;align-items:center;justify-content:center;font-size:56px;background:#16213a;transition:transform .5s}
.gflip.open{transform:rotateY(360deg);border-color:var(--g)}.gflip.great{box-shadow:0 0 30px rgba(255,201,77,.7)}
.gf-front{text-align:center}.gitem.rr{cursor:pointer}.gitem.rr.on{border-color:var(--gold);background:rgba(255,201,77,.1)}
.gbless{color:#ffe98a;font-weight:900;text-shadow:0 0 6px rgba(255,225,120,.85)}.gitem.blessed,.gslot.blessed{box-shadow:0 0 12px rgba(255,225,120,.5),inset 0 0 18px rgba(255,225,120,.12)}.gflip.bless{box-shadow:0 0 44px rgba(255,240,170,.95);animation:gbl 1.4s ease-in-out infinite alternate}@keyframes gbl{from{filter:brightness(1)}to{filter:brightness(1.35)}}
.gseat{display:flex;align-items:center;gap:10px;margin-top:10px;padding:8px;border-radius:10px;background:rgba(255,201,77,.06);border:1px solid rgba(255,201,77,.25)}.gseat.empty{background:rgba(255,255,255,.02);border-style:dashed;border-color:#3a4560}
.gseat .mf,.gitem .mf{width:40px;height:40px;flex:none}
/* 📊 기록실(2026-12-01) */
.rc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:10px;margin-bottom:12px}
.rc-cat{background:linear-gradient(180deg,var(--panel),#121b2e);border:1px solid var(--line);border-radius:var(--r);padding:10px 12px;min-width:0}
.rc-h{margin-bottom:4px}
.rc-row{gap:6px;padding:4px 0}
.rc-row.me{background:rgba(255,201,77,.12);border-radius:6px}
.rc-rank{width:22px;text-align:center;font-weight:800;flex:none}
.rc-face{width:28px;height:28px;flex:none;border-radius:50%;overflow:hidden;display:inline-flex}
.rc-face img{width:100%;height:100%;object-fit:cover}
.rc-row .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rc-v{flex:none;font-variant-numeric:tabular-nums;min-width:44px;text-align:right}
.rc-when{flex:none}
.rc-more{margin-top:4px;width:100%}
.rc-big{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;text-align:center}
.rc-big div{background:rgba(255,255,255,.04);border-radius:8px;padding:6px 0}
.rc-big b{display:block;font-size:20px}
.rc-big span{font-size:12px;color:var(--dim)}
.rc-recent{display:flex;gap:4px;flex-wrap:wrap}
.rc-g{min-width:44px;line-height:1.2}
.rc-g.W{border-color:var(--gold);color:var(--gold)}
.rc-g.L{opacity:.75}
.rc-lg{padding:6px 0;border-bottom:1px solid var(--line)}
.rec-l{margin:4px 0}
.rec-l > b{margin-right:4px}
table.box tr.tot td{font-weight:800;border-top:1px solid var(--line)}
.box-notes{margin:6px 2px 0;line-height:1.6;color:var(--dim)}
.box-notes b{color:var(--text,#e8eefc)}

/* 밤 경기장 공통 표면과 조작 요소 */
:root {
  --bg: #080f1c;
  --panel: #142137;
  --panel2: #1a2a42;
  --line: #293c54;
  --line2: #3b526d;
  --gold: #ffd47c;
  --gold2: #eeb750;
  --chrome: #0b1525;
  --accent-glow: #f7c66d;
}

body {
  background: radial-gradient(ellipse at 48% -220px, #263e57 0, transparent 560px), var(--bg);
}
button, select, input[type=text], input[type=search] {
  border-radius: 9px;
}
button {
  background: linear-gradient(180deg, #20334e, #16243a);
}
button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible,
.box-scroll:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
button.main {
  background: linear-gradient(180deg, #ffe1a1, #eab34d);
  box-shadow: 0 2px 0 #9a6529, 0 5px 16px #eab34d24;
}
button.main:disabled { box-shadow: none; }
.panel {
  background: linear-gradient(158deg, #182840, #0f1b2e 78%);
  box-shadow: 0 8px 22px #02060e40, inset 0 1px #ffffff0b;
}
#top {
  background: #0a1525f2;
  box-shadow: 0 5px 22px #02071050;
}
#top .club { color: #ffe0a4; }
#top .chip {
  border-radius: 8px;
  background: #101e31;
  color: #dce8f6;
  font-variant-numeric: tabular-nums;
}
#tabs {
  background: #0a1525fa;
  box-shadow: 0 -6px 24px #02071065;
}
#tabs button { min-width: 0; position: relative; }
#tabs button.on {
  background: linear-gradient(180deg, #ffd47c21, transparent);
  box-shadow: inset 0 2px var(--gold);
}
#sheet {
  background: linear-gradient(155deg, #192940, #0b1628 80%);
  border-top-color: #d3a96b;
}
.card {
  border-width: 1px;
  background: linear-gradient(155deg, #233652, #0e192b);
  box-shadow: 0 3px 12px #02071155;
}
.card .fc::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #050b1988, transparent 28%);
  pointer-events: none;
}
.card .tl, .card .tr, .card .bl { z-index: 1; }
.card .info { border-top: 1px solid var(--g, var(--line)); }
.card.gL { box-shadow: 0 0 12px #ffc94d44; }
details.fold {
  background: #0d192a;
  border-color: #2c405a;
}
details.fold[open] > summary { color: #ffe1a1; }

/* 기록실과 공방의 화면 제목 */
.ui-masthead {
  --mast-accent: #e3b76c;
  margin: 12px 0;
  min-width: 0;
  min-height: 98px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #48516a;
  border-left: 3px solid var(--mast-accent);
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg, transparent 0 16px, #ffffff06 17px 18px),
    radial-gradient(ellipse at 93% 0, #526181, transparent 72%),
    linear-gradient(135deg, #1b2d48, #0e1d32 72%);
  box-shadow: 0 10px 26px #02071145, inset 0 1px #ffffff12;
}
.ui-masthead h2 { font-size: clamp(25px, 7vw, 36px); margin: 0; letter-spacing: -.055em; }
.ui-masthead h2::before { display: none; }
.ui-masthead button {
  flex: none;
  background: #0b1629bb;
  border-color: #66758b;
  color: #edf2fc;
}

/* 기록실 */
.rc-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 12px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--chrome);
}
.rc-nav button { min-width: 0; padding-inline: 5px; line-height: 1.28; word-break: keep-all; }
.rc-nav button.on { background: #ffcf7721; box-shadow: inset 0 -2px #ffc96a; }
.rc-filters .seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  padding: 0;
}
.rc-filters button { min-width: 0; padding-inline: 4px; line-height: 1.25; }
.rc-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.rc-cat { padding: 12px; background: linear-gradient(145deg, #16263d, #0c182a); }
.rc-h {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 1px 8px;
  font-size: 15px;
}
.rc-h > b { color: #f2f6fd; }
.rc-row {
  --medal: #9faec2;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 26px 32px minmax(0, 1fr) auto;
  column-gap: 7px;
  row-gap: 2px;
  padding: 6px;
  margin-block: 2px;
  text-align: left;
  border: 1px solid transparent;
  border-bottom-color: #263a51;
  background: transparent;
}
.rc-row:is(.rc-place-1, .rc-place-2, .rc-place-3) .rc-rank {
  border: 1px solid var(--medal);
  color: var(--medal);
  background: #0d192c;
}
.rc-row .rc-rank { width: 24px; line-height: 22px; border-radius: 50%; color: #aebbd0; }
.rc-place-1 {
  --medal: #ffe196;
  grid-template-columns: 26px 54px minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 8px 7px;
  border-radius: 10px;
  border-color: #827047;
  background: linear-gradient(115deg, #463b2c, #1b293e 68%);
}
.rc-place-2 { --medal: #d1e1f3; }
.rc-place-3 { --medal: #f3b591; }
.rc-row .rc-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #4c6782;
  background: #223955;
  color: #d4e0f0;
  font-weight: 800;
}
.rc-row .rc-face img { position: absolute; z-index: 1; inset: 0; }
.rc-place-1 .rc-face { width: 54px; height: 54px; border-color: #dbb875; }
.rc-row .nm { display: block; white-space: normal; }
.rc-row .nm b, .rc-row .nm small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc-row .nm small, .rc-extra { color: #aabbd0; font-size: 12px; font-weight: 500; }
.rc-row .rc-v { min-width: 0; color: #ecf5ff; white-space: nowrap; }
.rc-place-1 .rc-v { color: #ffe19b; font-size: 22px; font-weight: 900; }
.rc-row.me {
  border-color: #977443;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: linear-gradient(95deg, #ffd47c26, #ffd47c0b);
}
button.rc-row { cursor: pointer; }
button.rc-row:hover { border-color: var(--gold); }
.rc-extra { grid-column: 3 / -1; overflow-wrap: anywhere; }
.rc-club { grid-template-columns: 26px minmax(0, 1fr) auto; }
.rc-achievement { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 45%); }
.rc-achievement .rc-extra { grid-column: 2 / -1; }
.rc-achievement .rc-v { white-space: normal; overflow-wrap: anywhere; }
.rc-event { --event: #75cdde; border-left: 3px solid var(--event); }
.rc-event.nohit { --event: #c1a1f7; }
.rc-event.milestone { --event: #ecc273; }
.rc-event h2 { flex-wrap: wrap; gap: 4px 8px; }
.rc-event h2::before { background: var(--event); }
.rc-hall { border-color: #766345; }
.rc-scoreboard {
  background: radial-gradient(ellipse at 50% 0, #263d4c, transparent 68%), #101d2d;
}
.rc-big { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rc-big div {
  min-width: 0;
  padding: 9px 2px;
  border: 1px solid #3a5268;
  background: repeating-linear-gradient(0deg, #080f1b 0 3px, #0d1724 4px 5px);
}
.rc-big b {
  color: #ffe09a;
  font: 800 clamp(15px, 4.8vw, 25px)/1.2 ui-monospace, Consolas, monospace;
  overflow-wrap: anywhere;
}
.rc-big span { color: #b8c8d9; }
.rc-recent { display: grid; grid-template-columns: repeat(auto-fit, minmax(45px, 1fr)); gap: 5px; }
.rc-g { min-width: 0; padding-inline: 2px !important; font-variant-numeric: tabular-nums; }
.rc-g.W { color: #9ce6c1; border-color: #3e9e7b; background: #15382f; }
.rc-g.L { color: #ffc1bf; border-color: #9a575e; background: #41242e; opacity: 1; }

/* 경기 기록표: 스코어북과 가로 스크롤 */
.scorebook-page {
  position: absolute;
  inset: 61px 0 0;
  z-index: 4;
  overflow: auto;
  padding: 12px 12px max(14px, env(safe-area-inset-bottom));
  background: #0b1524;
}
#bc .head > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorebook-title { font-size: 21px; margin: 2px 0 12px; }
.scorebook-scroll-help { display: none; margin: -7px 0 10px; }
.scorebook {
  margin-bottom: 12px;
  border: 1px solid #6c6355;
  border-radius: 10px;
  background: #f2ead9;
  color: #292b30;
  overflow: hidden;
  --team-color: #915622;
}
.scorebook.away-side { --team-color: #345b72; }
.scorebook-team {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: var(--team-color);
  color: #fff9ed;
}
.scorebook-team span {
  padding: 2px 6px;
  border: 1px solid #ffffff74;
  border-radius: 5px;
  font-weight: 800;
  font-size: 12px;
  flex: none;
}
.scorebook-team h3 { margin: 0; font-size: 17px; min-width: 0; overflow-wrap: anywhere; }
.scorebook-note { margin: 7px 10px 0; }
.scorebook-note :is(.faint, .gold) { color: #41473e; }
.scorebook .box-scroll {
  padding: 0 8px 5px;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: #937e64 #e7dbc6;
}
.scorebook table.box { min-width: 530px; margin-block: 5px 0; }
.scorebook .box caption {
  padding: 4px 2px;
  text-align: left;
  font-weight: 850;
  color: #523820;
}
.scorebook .box :is(th, td) {
  padding: 6px 5px;
  border-bottom-color: #d6cabb;
  border-right: 1px solid #ded1bd;
  text-align: center;
}
.scorebook .box th { background: #e2d5bf; font-weight: 850; }
.scorebook .box td { background: #f9f2e6; }
.scorebook .box tr:nth-child(even) td { background: #eee4d3; }
.scorebook .box :is(th, td):first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 1px 0 #b5a48f;
  text-align: left;
}
.scorebook .box .faint { color: #635c52; }
.scorebook .box tr.tot td {
  background: #e6d0a3;
  color: #382a1e;
  border-top-color: #a98b57;
}
.scorebook .box-notes {
  margin: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 112px), 1fr));
  gap: 4px;
  color: #3b3128;
}
.scorebook .box-notes > div {
  padding: 4px 6px;
  border: 1px solid #d6c4ab;
  background: #fcf5e8;
  border-radius: 4px;
}
.scorebook .box-notes dt { font-size: 11px; color: #6a4c30; font-weight: 850; }
.scorebook .box-notes dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.scorebook-close { width: 100%; }

/* 카드 상세의 시즌·통산 기록 */
.rec-l {
  margin: 9px 0;
  overflow: hidden;
  border: 1px solid #324b65;
  border-radius: 10px;
  background: #101d2e;
}
.rec-l:not(:has(.rec-metric)) { display: none; }
.rec-l h4 {
  margin: 0;
  padding: 5px 9px;
  border-bottom: 1px solid #405873;
  background: linear-gradient(90deg, #293b53, #19293e);
  color: #ffe0a4;
  font-size: 13px;
}
.rec-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 95px), 1fr));
  margin: 0;
  background: #111f32;
}
.rec-scope { margin: 0 0 6px; }
.rec-metric {
  min-width: 0;
  padding: 6px 8px;
  box-shadow: inset -1px -1px #273e53;
  font-variant-numeric: tabular-nums;
}
.rec-metric dt { color: #aebdd0; font-size: 11.5px; }
.rec-metric dd { margin: 1px 0 0; font-weight: 850; line-height: 1.3; overflow-wrap: anywhere; }
.rec-season { scrollbar-width: thin; padding: 3px 0; }
.rec-season table { min-width: 410px; }

/* 타자·투수 공방과 장비 등급 */
.workshop-odds p { margin: 8px 0 0; }
.workshop-grades { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.workshop-grades > div {
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 6px 1px;
  border: 1px solid #3f5067;
  border-top: 2px solid var(--g);
  border-radius: 7px;
  background: #101a2a;
  color: var(--g);
  font-size: clamp(10px, 3vw, 13px);
  line-height: 1.35;
  font-weight: 800;
}
.workshop-grades b { color: #f0f5ff; font-variant-numeric: tabular-nums; }
.gshop { border-color: #554b47; }
.gshop h2::before { background: #ed9e68; }
.gshop .seg {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: visible;
}
.gshop .seg button { min-width: 0; padding-inline: 3px; word-break: keep-all; }
.gslots { grid-template-columns: repeat(auto-fill, minmax(min(100%, 143px), 1fr)); }
.gs-top { flex-wrap: wrap; }
.gitem, .gslot {
  --gear-tone: var(--g, #42536b);
  background: linear-gradient(120deg, color-mix(in srgb, var(--gear-tone) 13%, #132238), #111e31 72%);
  border-color: color-mix(in srgb, var(--gear-tone) 60%, #324158);
  border-left-color: var(--gear-tone);
}
.gear-item-row .grow { overflow-wrap: anywhere; }
.gear-item-actions { display: flex; flex-direction: column; gap: 4px; flex: none; }
.gslot.empty { background: #0b1627; }
.gitem.blessed, .gslot.blessed {
  border-color: #ffe4a5;
  box-shadow: inset 0 0 12px #ffcf7430, 0 0 12px #ffcf7430;
}
.gbless { color: #ffebaa; text-shadow: 0 0 10px #ffc96a67; }
.gflip, .gflip.open, .gflip.great, .gflip.bless {
  width: 124px;
  height: 154px;
  display: block;
  border: 0;
  background: none;
  box-shadow: none;
  perspective: 650px;
  transform: none;
  animation: none;
}
.gf-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .68s cubic-bezier(.24,.66,.29,1);
}
.gflip.open .gf-card { transform: rotateY(180deg); }
.gf-card > div {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 2px solid #726240;
  border-radius: 14px;
  backface-visibility: hidden;
}
.gf-card .gf-back {
  background: repeating-linear-gradient(135deg, #202d43 0 9px, #24334c 9px 10px);
  box-shadow: inset 0 0 0 5px #142033;
}
.gf-card .gf-front {
  border-color: var(--g, #71849f);
  background: radial-gradient(ellipse at 50% 28%, color-mix(in srgb, var(--g, #8a9db8) 37%, #22344b), #10192b 75%);
  box-shadow: inset 0 0 0 4px #142136, 0 0 20px color-mix(in srgb, var(--g, #71849f) 48%, transparent);
  line-height: 1.05;
  transform: rotateY(180deg);
}
.gf-front .gbadge { padding: 3px 9px; }
.gflip.bless .gf-front {
  border-color: #fff0c4;
  box-shadow: inset 0 0 12px #ffe4ab87, 0 0 28px #ffdf8996;
}
.gflip.great .gf-front { outline: 1px solid #ffe1a3; outline-offset: 3px; }
#gfr:not(:empty) { animation: gear-result-in .28s .43s both; }
.gear-result-bless { display: grid; justify-items: center; text-align: center; }
.gear-result-bless strong { font-size: 17px; }
.gear-result-bless span { color: #d3def0; font-size: 13px; }
.gear-result-great { margin-block: 4px; font-weight: 800; }
@keyframes gear-result-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .scorebook-scroll-help { display: block; }
}
@media (max-width: 540px) {
  .rc-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rc-nav button { grid-column: span 2; }
  .rc-nav button:nth-last-child(-n + 2) { grid-column: span 3; }
}
@media (max-width: 410px) {
  .gear-item-row .gear-item-actions { flex-direction: row; flex-wrap: wrap; grid-column: 2; }
  .gear-item-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start !important; }
  .gear-item-row .gear-item-actions button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .gf-card { transition: none; }
  #gfr:not(:empty) { animation: none; }
}

/* 공방 일러스트, 장비 그림, 하단 메뉴 */
#app { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
#tabs {
  max-width: 860px;
  margin-inline: auto;
  gap: 2px;
  padding: 5px 5px calc(4px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #17263b, #080f1c 79%);
  border-top: 1px solid #88724d;
  box-shadow: 0 -6px 26px #0008, inset 0 1px #e5bb691c;
}
#tabs button {
  isolation: isolate;
  min-height: 59px;
  min-width: 0;
  display: grid;
  grid-template-rows: 34px auto;
  justify-items: center;
  align-content: center;
  gap: 3px;
  padding: 3px 1px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: #c1cde0;
}
#tabs .tab-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px #0009);
}
#tabs .tab-label {
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
}
#tabs button.on {
  border-color: #9c8050;
  color: #ffe9b0;
  background: radial-gradient(ellipse at 50% 12%, #ebaf5e4d, transparent 80%), #222437;
  box-shadow: inset 0 1px #ffc96b48, 0 2px 5px #03060d;
}
#tabs button.on .tab-icon { filter: drop-shadow(0 1px 5px #ffb95472); }
#tabs button .dot {
  top: 6px;
  right: calc(50% - 21px);
  margin: 0;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 2px #111c2c;
}
@media (hover: hover) {
  #tabs button:not(.on):hover { background: #cadcff0f; border-color: #77879f42; }
}

.workshop-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(182px, 53vw, 325px);
  margin: 12px 0;
  padding: 18px 16px;
  border: 1px solid #9f764f;
  border-radius: 14px;
  overflow: hidden;
  background: #261d1a;
  box-shadow: 0 8px 22px #02071295;
}
.workshop-hero img, .workbench-banner > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.workshop-hero img { object-position: 60% 58%; }
.workshop-hero::after, .workbench-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.workshop-hero::after {
  background: linear-gradient(0deg, #070b13eb, transparent 56%), linear-gradient(90deg, #090a1480 0, transparent 58%);
}
.workshop-hero h2 {
  margin: 0;
  color: #fff1ca;
  font-size: clamp(33px, 9vw, 52px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.06;
  text-shadow: 0 2px 8px #000d;
}
.workshop-hero h2::before, .workbench-banner h2::before { display: none; }
.workshop-hero .workshop-back {
  position: absolute;
  right: 10px;
  top: 10px;
  border-color: #e5c28574;
  background: #12101be8;
  color: #fff3d6;
}
.gshop {
  --bench-edge: #8a603e;
  border-color: var(--bench-edge);
}
.gshop:has(.workbench-banner.pit) { --bench-edge: #4b647d; }
.workbench-banner {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(99px, 25vw, 165px);
  margin: -14px -14px 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--bench-edge);
  border-radius: 13px 13px 0 0;
  overflow: hidden;
  background: #101823;
}
.workbench-banner > img { object-position: right center; }
.workbench-banner::after {
  background: linear-gradient(90deg, #090a13a8 0%, #0a10145a 37%, transparent 69%);
}
.workbench-banner h2 {
  margin: 0 0 5px;
  color: #fff5df;
  font-size: clamp(20px, 5.5vw, 30px);
  line-height: 1.15;
  letter-spacing: -.035em;
  text-shadow: 0 2px 4px #000;
}
.workbench-state {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid #c7a17070;
  border-radius: 5px;
  background: #151423d9;
  color: #f6dbb3;
  font-size: 11.5px;
  font-weight: 850;
}
.workbench-state.ready { border-color: #bd9248; background: #503816; color: #ffe7a1; }
.workbench-state.busy { border-color: #778fc2; background: #1a2b45; color: #cce1ff; }
.workshop-odds { padding-block: 11px; }
.gshop .gear-parts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 5px;
}
.gshop .gear-parts button {
  grid-column: auto;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 70px;
  padding: 5px 2px;
  font-size: clamp(10px, 3.05vw, 12.5px);
  line-height: 1.05;
  background: radial-gradient(ellipse at 50% 40%, #32435d, #111d30 78%);
}
.gshop .gear-parts button.on {
  background: radial-gradient(ellipse at 50% 35%, #705132, #201b22 80%);
  box-shadow: inset 0 0 0 1px #fcc56f55;
}
.gear-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px #0009);
}
.gear-parts .gear-art { width: clamp(34px, 11vw, 53px); height: clamp(34px, 11vw, 53px); }
.gear-portrait {
  --gear-picture-size: clamp(63px, 20vw, 92px);
  display: grid;
  place-items: center;
  flex: none;
  width: var(--gear-picture-size);
  height: var(--gear-picture-size);
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--g, #667895) 56%, #1f3045);
  border-radius: 9px;
  background: radial-gradient(ellipse at 52% 48%, color-mix(in srgb, var(--g, #6981a0) 25%, #16243b), #0a1424 80%);
}
.gear-item-row { align-items: start; }
.crafting-item { align-items: center; }
.crafting-item .gear-portrait { --gear-picture-size: 63px; }
.gear-picker-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.gear-picker-row .gear-portrait { --gear-picture-size: 61px; }
.gslots .gear-portrait {
  --gear-picture-size: 63px;
  margin: 1px auto 5px;
}
.gslots .empty .gear-portrait { filter: saturate(.35); opacity: .45; }
#gfl.gflip { width: 145px; height: 173px; }
.gf-card .gear-art { width: 115px; height: 115px; }
.gf-card .gf-back {
  background: radial-gradient(ellipse at 50% 48%, #415775, #111c2e 75%);
  box-shadow: inset 0 0 0 4px #384962, 0 5px 20px #0008;
}
@media (max-width: 350px) {
  .gshop .gear-parts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gshop .gear-parts button { grid-column: span 2; }
  .gshop .gear-parts button:nth-last-child(-n + 2) { grid-column: span 3; }
}

/* 경기 중계: 타석 패널, 루상 주자, 하이라이트 팀 색 */
#bc .head, #bc .sbwrap, #bc .foot { flex: none; }
#bc .sbwrap { background: #0a1425; }
#bc #feed { min-height: 0; }
#bc #feed .ln { flex: none; }
#bc .club-A { --club-color: #9ee7ff; --club-wash: #1b3e77; }
#bc .club-B { --club-color: #ffb488; --club-wash: #633021; }

.matchup-panel {
  flex: none;
  margin: 5px 10px 0;
  border: 1px solid #334761;
  border-radius: 12px;
  background: #0d182a;
  overflow: hidden;
  box-shadow: 0 4px 10px #0308145c;
}
.matchup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(102px, .8fr) minmax(0, 1fr);
}
.matchup-player {
  display: grid;
  min-width: 0;
  justify-items: center;
  align-content: center;
  padding: 4px 5px 6px;
  background: radial-gradient(ellipse at 50% 30%, var(--club-wash), transparent 88%), #101a2c;
}
.matchup-role {
  color: var(--club-color);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}
.matchup-portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(57px, 16vw, 75px);
  height: clamp(57px, 16vw, 75px);
  margin: 3px 0 2px;
  border: 1px solid var(--club-color);
  border-radius: 10px;
  background: var(--club-wash);
  contain: layout paint;
}
.matchup-portrait img, .base-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.matchup-portrait .ph, .base-slot .ph { color: var(--club-color); font-weight: 800; }
.matchup-player strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.33;
}
.matchup-stat {
  white-space: nowrap;
  color: #c1cce0;
  font-size: 11px;
  font-weight: 600;
}
.matchup-state {
  display: grid;
  justify-items: center;
  padding: 4px 3px;
  border-inline: 1px solid #293c54;
  background: linear-gradient(180deg, #141f30, #0b1526);
}
.matchup-inning {
  color: #ffe0a4;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}
.matchup-diamond {
  position: relative;
  isolation: isolate;
  width: 86px;
  height: 59px;
  display: grid;
  place-items: center;
}
.matchup-diamond::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 12px;
  width: 34px;
  height: 34px;
  transform: rotate(45deg);
  border: 1px solid #63917a;
  border-radius: 3px;
  background: #244c43;
  box-shadow: inset 0 0 9px #102920;
  z-index: -1;
}
.base-slot {
  position: absolute;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #c8dbda;
  font-weight: 800;
}
.base-slot.b2 { left: 30px; top: 0; }
.base-slot.b1 { right: 6px; top: 17px; }
.base-slot.b3 { left: 6px; top: 17px; }
.base-slot:not(.occupied)::before {
  content: '';
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid #a2bdb9;
  border-radius: 2px;
  background: #162c36;
  transform: rotate(45deg);
}
.base-slot.occupied {
  border: 1px solid var(--club-color);
  border-radius: 7px;
  background: var(--club-wash);
  box-shadow: 0 0 6px #02050c;
}
.base-slot.occupied img { border-radius: 6px; }
.base-slot.occupied .ph { font-size: 12px; }
.base-slot b { position: relative; font-size: 9px; line-height: 1; }
.base-slot.occupied b {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--club-color);
  border-radius: 50%;
  background: #081428;
  color: #fff;
}
.matchup-home {
  position: absolute;
  top: 47px;
  left: 38px;
  width: 10px;
  height: 10px;
  background: #dcdfd0;
  clip-path: polygon(0 0,100% 0,100% 57%,50% 100%,0 57%);
}
.matchup-count, .matchup-outs {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  color: #c5d4e7;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.matchup-count b { color: #f4f6ff; font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1; }
.matchup-outs { align-items: center; }
.matchup-outs > b { color: #ffe5ad; font-size: 16px; line-height: 1.2; }
.matchup-outs span { display: flex; gap: 3px; }
.matchup-outs i {
  width: 8px;
  height: 8px;
  border: 1px solid #88756c;
  border-radius: 50%;
  background: #2e2937;
}
.matchup-outs i.on { border-color: #ffbb87; background: #f88858; box-shadow: 0 0 4px #f8885880; }

#bc .foot:has([data-a="s-normal"]) {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
#bc .foot:has([data-a="s-normal"]) button {
  min-width: 0;
  padding-inline: 1px;
  font-size: 12px;
  line-height: 1.18;
  word-break: keep-all;
}
#hl {
  padding: 10px;
  background: radial-gradient(ellipse at 50% 20%, #1c2e48, #080f1cee 76%);
}
#hlt {
  max-width: 100%;
  color: #ffe4a5;
  font-size: 19px;
  font-weight: 850;
  text-align: center;
  overflow-wrap: anywhere;
}
.hl-teams {
  max-width: 100%;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.hl-teams span {
  min-width: 0;
  padding: 2px 9px;
  border: 1px solid var(--club-color);
  border-radius: 6px;
  background: var(--club-wash);
  color: var(--club-color);
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#hlc {
  width: min(92vw, 420px, calc(100dvh - 156px));
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 28px #0009;
}

/* 🎯 2026-12-02 그림 중계(기본): 글 줄 대신 큰 타석 카드 + 결과 낱말 + 이번 이닝 결과 줄 */
#ticker { display: none; }
#bc.nofeed #feed { display: none; }
#bc.nofeed #ticker { display: block; flex: none; margin: 8px 10px auto; padding: 7px 10px; border-radius: 9px; background: var(--panel); color: var(--dim); font-size: 13px; line-height: 1.35; min-height: 1.35em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: pop .25s; }
#bc.nofeed #ticker:empty { visibility: hidden; }
#bc.nofeed #ticker.skill { color: var(--purple); font-weight: 700; }
#bc.nofeed #ticker.run, #bc.nofeed #ticker.big { color: #ffd08a; font-weight: 800; background: rgba(255,154,60,.12); }
#bc.nofeed #ticker.inn { color: var(--blue); font-weight: 800; }
#bc.nofeed .matchup-panel { flex: none; display: flex; flex-direction: column; margin-top: auto; }
#bc.nofeed .matchup-grid { min-height: clamp(230px, 42vh, 420px); }
#bc.nofeed .matchup-player { padding: 10px 6px 12px; }
#bc.nofeed .matchup-role { font-size: 13px; }
#bc.nofeed .matchup-portrait { width: clamp(84px, 27vw, 170px); height: clamp(84px, 27vw, 170px); border-width: 2px; border-radius: 16px; margin: 6px 0; }
#bc.nofeed .matchup-player strong { font-size: clamp(15px, 4.4vw, 20px); }
#bc.nofeed .matchup-stat { font-size: 12.5px; }
#bc.nofeed .matchup-state { align-content: center; gap: 4px; }
#bc.nofeed .matchup-inning { font-size: 16px; }
#bc.nofeed .matchup-diamond { transform: scale(1.3); margin: 10px 0 8px; }
#bc.nofeed .matchup-outs > b { font-size: 18px; }
.mu-res { margin: 4px 0 2px; padding: 3px 10px; border-radius: 10px; font-weight: 900; font-size: 15px; line-height: 1.15; text-align: center; word-break: keep-all; animation: muPop .45s cubic-bezier(.2,1.6,.4,1); }
.mu-res small { display: block; font-size: .62em; font-weight: 800; color: #ffd08a; }
#bc.nofeed .mu-res { font-size: clamp(22px, 6.6vw, 34px); padding: 4px 12px; }
.mu-res.k-hit { color: #ffe08a; background: rgba(255,201,77,.14); text-shadow: 0 0 12px rgba(255,201,77,.55); }
.mu-res.k-hr { color: #fff; background: linear-gradient(135deg,#ff7a3c,#ffc94d); text-shadow: 0 2px 0 #9c3b10, 0 0 14px #ffb04d; }
.mu-res.k-walk { color: #9ee7ff; background: rgba(110,190,255,.14); }
.mu-res.k-out { color: #d7deea; background: rgba(160,175,200,.12); }
.mu-res.k-k { color: #ff8f8f; background: rgba(255,90,90,.15); }
.mu-res.k-dp { color: #fff; background: linear-gradient(135deg,#b3364a,#6a2bd1); }
.mu-res.k-err { color: #b8ffb0; background: rgba(110,220,110,.14); }
.mu-res.k-run { color: #7ff0c8; background: rgba(60,220,170,.14); }
.mu-res.k-wait { color: var(--faint); background: none; font-size: 13px !important; animation: none; }
@keyframes muPop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
.mu-log { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px 10px 9px; border-top: 1px solid #293c54; background: #0a1322; }
.mu-log span { padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(160,175,200,.12); color: #c9d3e3; white-space: nowrap; }
#bc.nofeed .mu-log span { font-size: 13.5px; padding: 4px 10px; }
.mu-log span.k-hit { background: rgba(255,201,77,.18); color: #ffe08a; }
.mu-log span.k-hr { background: linear-gradient(135deg,#ff7a3c,#ffc94d); color: #fff; }
.mu-log span.k-walk { background: rgba(110,190,255,.16); color: #9ee7ff; }
.mu-log span.k-k { background: rgba(255,90,90,.16); color: #ff9c9c; }
.mu-log span.k-dp { background: rgba(160,60,200,.28); color: #f0d0ff; }
.mu-log span.k-err { background: rgba(110,220,110,.16); color: #b8ffb0; }
.mu-log span.k-run { background: rgba(60,220,170,.16); color: #7ff0c8; }
.mu-log span.k-wait { background: none; color: var(--faint); font-weight: 600; }
.mu-log span.now { outline: 2px solid currentColor; outline-offset: -1px; }
@media (prefers-reduced-motion: reduce) { .mu-res { animation: none; } }

/* ⚾ 2026-12-02 「8회초 크게 · 중요한 장면도 크게」 */
#bc.nofeed .matchup-inning { font-size: clamp(22px, 6.4vw, 30px); padding: 2px 14px; border-radius: 999px; background: rgba(255,201,77,.12); border: 1px solid rgba(255,201,77,.35); letter-spacing: .02em; }
#innsplash { display: none; }
#innsplash.show { display: flex; position: absolute; inset: 0; z-index: 4; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(ellipse at 50% 45%, var(--club-wash, #1c2e48) 0%, #050912 72%); animation: innIn .2s ease-out; pointer-events: none; }
#innsplash b { font-size: clamp(64px, 22vw, 128px); font-weight: 900; line-height: 1; color: #ffe4a5; text-shadow: 0 4px 0 #6b4a10, 0 0 30px rgba(255,201,77,.5); animation: innPop .5s cubic-bezier(.2,1.6,.4,1); }
#innsplash.late b { color: #fff; text-shadow: 0 4px 0 #8a2a10, 0 0 34px #ff7a3c; }
#innsplash span { font-size: clamp(18px, 5.2vw, 26px); font-weight: 850; color: var(--club-color, #9ee7ff); }
#innsplash em { font-style: normal; font-size: clamp(14px, 4vw, 18px); color: #c9d3e3; font-weight: 700; }
@keyframes innIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes innPop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
#hlt { font-size: clamp(20px, 5.6vw, 30px); }
.hl-teams span { font-size: 13.5px; }
#hlc { width: min(96vw, 780px, calc(100dvh - 140px)); }
#hl [data-a="hlskip"] { font-size: 15px; padding: 8px 22px; }
@media (prefers-reduced-motion: reduce) { #innsplash.show, #innsplash b { animation: none; } }

/* 📢 2026-12-02 장면 위 상황 글씨 */
#hlsit { padding: 3px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #f4f6ff; font-size: clamp(15px, 4.4vw, 22px); font-weight: 850; letter-spacing: .01em; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
#hlsit:empty { display: none; }

/* ⚡ 2026-12-02 요약 중계: 큰 점수판 + 승부처 예고 카드 */
.skim { display: grid; justify-items: center; gap: 10px; padding: 22px 12px 18px; background: radial-gradient(ellipse at 50% 0%, #1c2e48, #0b1526 75%); }
.skim-inn { font-size: clamp(22px, 6.4vw, 30px); font-weight: 900; color: #ffe4a5; padding: 2px 16px; border-radius: 999px; background: rgba(255,201,77,.12); border: 1px solid rgba(255,201,77,.35); }
.skim-score { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.skim-score > div { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; }
.skim-score > div.club-B { justify-content: flex-end; }
.skim-score span { color: var(--club-color); font-weight: 850; font-size: clamp(13px, 3.8vw, 18px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skim-score b { font-size: clamp(48px, 15vw, 84px); font-weight: 900; line-height: 1; color: #dfe6f3; font-variant-numeric: tabular-nums; }
.skim-score > div.lead b { color: #ffe08a; text-shadow: 0 0 18px rgba(255,201,77,.5); }
.skim-score i { font-style: normal; font-size: clamp(30px, 9vw, 52px); color: var(--faint); font-weight: 800; }
#innsplash.stakes small { font-size: clamp(15px, 4.4vw, 20px); font-weight: 900; color: #ff9a5c; letter-spacing: .08em; }
#innsplash.stakes .st-sit { font-size: clamp(22px, 6.4vw, 32px); font-weight: 900; color: #fff; }
#innsplash.stakes b { font-size: clamp(34px, 10vw, 64px); text-align: center; padding: 0 12px; word-break: keep-all; }
#innsplash.stakes em { font-size: clamp(16px, 4.6vw, 22px); color: #ffe4a5; }
#innsplash.stakes .st-vs { font-size: clamp(14px, 4vw, 18px); color: #c9d3e3; font-weight: 700; }
#bc.nofeed #ticker { display: none; }   /* 요약 중계에서는 점수판 카드가 대신(2026-12-02) */

/* 🎬 2026-12-02 선수 등장 연출(축구 온라인과 같은 틀) */
.figx { position: fixed; inset: 0; z-index: 90; background: #050913; }
.figx iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.figbar { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; align-items: center; gap: 12px; z-index: 2; }
.figname { font-size: 18px; font-weight: 800; color: #fff; text-shadow: 0 2px 6px #000; }
/* 승부처 예고: 타자 VS 투수 얼굴 */
#innsplash.stakes .st-duel { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
#innsplash.stakes .st-duel > div { display: grid; justify-items: center; gap: 3px; min-width: 0; max-width: 40vw; }
#innsplash.stakes .st-face { position: relative; display: grid; place-items: center; width: clamp(84px, 26vw, 140px); height: clamp(84px, 26vw, 140px); border: 2px solid var(--club-color); border-radius: 16px; background: var(--club-wash); overflow: hidden; box-shadow: 0 0 22px var(--club-wash); }
#innsplash.stakes .st-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#innsplash.stakes .st-face .ph { color: var(--club-color); font-size: 34px; font-weight: 900; }
#innsplash.stakes .st-duel b { font-size: clamp(15px, 4.4vw, 20px); color: #fff; text-shadow: none; padding: 0; animation: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#innsplash.stakes .st-duel small { font-size: 12px; font-weight: 800; color: var(--club-color); }
#innsplash.stakes .st-duel i { font-style: normal; font-size: clamp(22px, 6vw, 34px); font-weight: 900; color: #ff9a5c; }

/* 📊 2026-12-02 요약 중계: 점수판을 가운데 카드 안에 크게, 승부처 설명도 같은 자리 */
#bc.nofeed .sbwrap { display: none; }
.skim-sb { width: 100%; overflow-x: auto; }
.skim-sb table.sb { width: 100%; font-size: clamp(14px, 3.9vw, 20px); }
.skim-sb table.sb th { font-size: .72em; color: var(--faint); }
.skim-sb table.sb td, .skim-sb table.sb th { padding: 6px 2px; text-align: center; }
.skim-sb table.sb td.t { text-align: left; max-width: 26vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; padding-right: 6px; }
.skim-sb table.sb td.rh { font-size: 1.35em; font-weight: 900; color: #ffe08a; }
.skim-sb table.sb td.cur { background: rgba(255,201,77,.18); border-radius: 6px; }
.skim.stk { gap: 8px; }
.skim.stk .skim-inn { color: #ff9a5c; border-color: rgba(255,154,92,.5); background: rgba(255,120,60,.12); }
.stk-sit { font-size: clamp(22px, 6.4vw, 32px); font-weight: 900; color: #fff; }
.stk-line { font-size: clamp(28px, 8.4vw, 50px); font-weight: 900; color: #ffe4a5; text-align: center; line-height: 1.15; word-break: keep-all; text-shadow: 0 3px 0 #6b4a10, 0 0 24px rgba(255,201,77,.45); animation: innPop .5s cubic-bezier(.2,1.6,.4,1); }
.skim.stk.late .stk-line { color: #fff; text-shadow: 0 3px 0 #8a2a10, 0 0 26px #ff7a3c; }
.skim.stk .st-duel { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.skim.stk .st-duel > div { display: grid; justify-items: center; gap: 3px; min-width: 0; max-width: 38vw; }
.skim.stk .st-face { position: relative; display: grid; place-items: center; width: clamp(80px, 24vw, 130px); height: clamp(80px, 24vw, 130px); border: 2px solid var(--club-color); border-radius: 16px; background: var(--club-wash); overflow: hidden; }
.skim.stk .st-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.skim.stk .st-face .ph { color: var(--club-color); font-size: 32px; font-weight: 900; }
.skim.stk .st-duel b { font-size: clamp(14px, 4.2vw, 19px); color: #fff; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skim.stk .st-duel small { font-size: 12px; font-weight: 800; color: var(--club-color); }
.skim.stk .st-duel i { font-style: normal; font-size: clamp(20px, 5.6vw, 32px); font-weight: 900; color: #ff9a5c; }
#bc.nofeed .matchup-panel { margin: auto 10px; }   /* 가운데에 */
#bc.nofeed .skim { min-height: clamp(360px, 60vh, 560px); align-content: center; }   /* 점수판 ↔ 승부처 설명이 같은 크기 칸에서 바뀌게 */

/* 🎬 등장 연출 뒤 능력치 */
.figinfo { position: absolute; left: 50%; transform: translateX(-50%); top: 54%; width: min(92vw, 380px); z-index: 2; padding: 12px 14px; border-radius: 14px; background: rgba(11,22,38,.92); border: 1px solid rgba(255,255,255,.14); display: grid; gap: 6px; }
@media (min-width: 761px) { .figinfo { left: auto; right: 6vw; top: 50%; transform: translateY(-50%); } }
.fi-h { font-size: 17px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.fi-h span { color: var(--dim); font-size: 13px; font-weight: 700; }
.fi-r { display: grid; grid-template-columns: 52px 1fr 34px; align-items: center; gap: 8px; font-size: 13.5px; opacity: 0; animation: fiIn .35s ease-out forwards; }
.fi-r span { color: var(--dim); font-weight: 700; }
.fi-r i { height: 9px; border-radius: 5px; background: rgba(255,255,255,.08); overflow: hidden; }
.fi-r em { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #4f9dff, #9ee7ff); }
.fi-r.main em { background: linear-gradient(90deg, #ffb340, #ffe08a); }
.fi-r b { text-align: right; font-variant-numeric: tabular-nums; }
.fi-uq { margin-top: 4px; color: var(--gold); font-weight: 800; font-size: 13.5px; }
@keyframes fiIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

/* 🏆 2026-12-02 리그 시상식 */
.cer { position: fixed; inset: 0; z-index: 95; background: radial-gradient(ellipse at 50% 0%, #2a2140 0%, #0a0f1e 55%, #04060c 100%); color: #f4f6ff; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; }
.cer::before { content: ''; position: absolute; inset: -20% -10% auto; height: 70%; background: conic-gradient(from 180deg at 50% 0%, transparent 0 40%, rgba(255,214,120,.10) 44%, transparent 48% 52%, rgba(255,214,120,.10) 56%, transparent 60%); pointer-events: none; animation: cerSweep 6s ease-in-out infinite alternate; }
@keyframes cerSweep { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.cer-stage { flex: 1; display: grid; place-items: center; align-content: center; gap: 14px; padding: 20px 16px 80px; text-align: center; animation: cerIn .45s ease-out; position: relative; }
@keyframes cerIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cer-bar { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; }
.cer-bar button { background: rgba(11,22,38,.85); border: 1px solid rgba(255,255,255,.2); color: #dfe6f3; padding: 8px 20px; border-radius: 999px; font-weight: 800; }
.cer-curtain { display: grid; gap: 10px; }
.cer-curtain small { font-size: clamp(16px, 4.6vw, 22px); color: #c9d3e3; font-weight: 800; }
.cer-curtain b { font-size: clamp(48px, 15vw, 96px); font-weight: 900; color: #ffe4a5; text-shadow: 0 4px 0 #6b4a10, 0 0 40px rgba(255,201,77,.55); animation: innPop .7s cubic-bezier(.2,1.6,.4,1); }
.cer-curtain span { color: var(--dim); font-weight: 700; }
.cer-podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; width: min(calc(100vw - 32px), 560px); }
.cer-podium .pd { order: 0; flex: 1 1 0; display: grid; gap: 4px; justify-items: center; min-width: 0; opacity: .35; transition: opacity .4s; }
.cer-podium .pd.on { opacity: 1; }
.cer-podium .pd.p1 { order: 1; } .cer-podium .pd.p2 { order: 0; } .cer-podium .pd.p3 { order: 2; }
.pd-name { font-weight: 900; font-size: clamp(14px, 4vw, 19px); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-rec { font-size: 12px; color: var(--dim); min-height: 1.2em; }
.pd-box { width: 100%; display: grid; place-items: center; font-size: clamp(30px, 9vw, 48px); font-weight: 900; border-radius: 10px 10px 0 0; color: #0a0f1e; }
.pd.p1 .pd-box { height: clamp(130px, 30vh, 200px); background: linear-gradient(180deg, #ffe08a, #c9921c); }
.pd.p2 .pd-box { height: clamp(95px, 22vh, 150px); background: linear-gradient(180deg, #eef2f8, #8e9bb0); }
.pd.p3 .pd-box { height: clamp(70px, 16vh, 110px); background: linear-gradient(180deg, #f2b98a, #9a5a2c); }
.pd.on.mine .pd-name { color: #9ee7ff; }
.pd.on.mine .pd-box { box-shadow: 0 0 26px #9ee7ff; }
.cer-sub { font-size: clamp(18px, 5vw, 24px); font-weight: 900; color: #dfe6f3; }
.cer-champ { font-size: clamp(24px, 7vw, 40px); font-weight: 900; color: #ffe4a5; text-shadow: 0 0 30px rgba(255,201,77,.6); animation: innPop .6s cubic-bezier(.2,1.6,.4,1); }
.cer-t { display: grid; justify-items: center; gap: 6px; padding: 18px 22px; border-radius: 22px; background: rgba(14,24,42,.85); border: 2px solid rgba(255,201,77,.45); box-shadow: 0 0 40px rgba(255,201,77,.18); width: min(88vw, 360px); animation: innPop .55s cubic-bezier(.2,1.6,.4,1); }
.ct-title { font-size: clamp(24px, 7vw, 34px); font-weight: 900; color: #ffe4a5; }
.ct-face { position: relative; width: clamp(130px, 40vw, 200px); aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #3a4a6a, #121a2c); border: 2px solid rgba(255,255,255,.25); display: grid; place-items: center; }
.ct-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-face .ph { font-size: 54px; font-weight: 900; color: #ffe4a5; }
.ct-name { font-size: clamp(20px, 6vw, 28px); font-weight: 900; }
.ct-club { color: var(--dim); font-weight: 700; }
.ct-club b { color: #9ee7ff; margin-left: 4px; }
.ct-val { color: #dfe6f3; } .ct-val b { font-size: clamp(28px, 8vw, 40px); color: #ffe08a; }
.ct-bonus { font-size: 13px; font-weight: 800; color: #7ff0c8; background: rgba(60,220,170,.12); padding: 2px 10px; border-radius: 999px; }
.cer-stage.mine .cer-t { border-color: #9ee7ff; box-shadow: 0 0 50px rgba(158,231,255,.45); }
.cer-mvpq { font-size: clamp(22px, 6.4vw, 34px); font-weight: 900; color: #dfe6f3; animation: cerPulse 1s ease-in-out infinite alternate; }
@keyframes cerPulse { from { opacity: .55; } to { opacity: 1; } }
.cer-t.big { width: min(92vw, 420px); border-color: #ffe08a; box-shadow: 0 0 70px rgba(255,201,77,.5); }
.cer-t.big .ct-title { font-size: clamp(34px, 10vw, 52px); }
.cer-t.big .ct-face { width: clamp(160px, 50vw, 240px); }
.cer-sum { display: grid; gap: 10px; width: min(92vw, 440px); cursor: default; }
.cer-sum h3 { margin: 0; font-size: 20px; color: #ffe4a5; }
.cs-rank b { font-size: 56px; font-weight: 900; color: #ffe08a; line-height: 1; } .cs-rank span { display: block; color: var(--dim); font-weight: 700; }
.cs-prize { font-weight: 800; } .cs-prize b { color: #ffe08a; }
.cs-t { display: grid; gap: 6px; } .cs-t span { background: rgba(255,201,77,.12); border-radius: 10px; padding: 6px 10px; font-weight: 800; } .cs-t em { font-style: normal; color: #7ff0c8; }
.cs-none { color: var(--dim); }
.cs-all { display: grid; gap: 3px; max-height: 32vh; overflow-y: auto; text-align: left; background: rgba(11,22,38,.7); border-radius: 12px; padding: 8px; }
.cs-all div { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 4px 6px; border-radius: 7px; font-size: 14px; }
.cs-all div.me { background: rgba(110,190,255,.16); color: #9ee7ff; font-weight: 800; }
.cs-all i { font-style: normal; font-weight: 900; color: #ffe08a; text-align: center; } .cs-all em { font-style: normal; color: var(--dim); font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .cer::before, .cer-mvpq { animation: none; } }

/* 📍 승부처 카드 아래 아웃 · 주자 */
.stk-state { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 16px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); }
.stk-state svg { width: clamp(52px, 15vw, 72px); height: auto; }
.stk-state rect { fill: #1b2c3a; stroke: #a2bdb9; stroke-width: 1.5; }
.stk-state rect.on { fill: #ffd45c; stroke: #fff3c4; filter: drop-shadow(0 0 4px #ffcb3d); }
.stk-state .home { fill: #dcdfd0; }
.stk-state b { font-size: clamp(24px, 7vw, 36px); font-weight: 900; color: #ff9a5c; }
.stk-state span { font-size: clamp(24px, 7vw, 36px); font-weight: 900; color: #fff; }

/* 🏠 2026-12-02 메인화면: 큰 경기 단추 · 오늘 할 일 한 줄씩 */
.hhead .hplay { width: 100%; margin-top: 10px; padding: 14px; font-size: 18px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 10px; }
.hhead .hplay small { font-size: 13px; font-weight: 700; opacity: .8; }
.today h2 { margin-bottom: 4px; }
.tdrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.tdrow:first-of-type { border-top: 0; }
.td-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.td-main b { font-size: 15px; }
.td-main .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-bar { display: block; height: 6px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; max-width: 220px; }
.td-bar em { display: block; height: 100%; background: linear-gradient(90deg, #ffb340, #ffe08a); border-radius: 4px; }
.td-btns { display: flex; gap: 6px; flex: none; }
.td-btns button { min-width: 64px; padding: 8px 12px; }
.td-sb { padding-top: 8px; border-top: 1px solid var(--line); }
.td-sb:empty { display: none; }
.hmenu button { padding: 12px 6px; }

/* 🏠 2026-12-02 홈 대시보드: PC 3칸 · 태블릿 2칸 · 휴대폰 1칸 */
body:has(.dash) #app { max-width: 1320px; }
.dash { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: start; }
.dash > .panel { margin: 0; }
@media (min-width: 760px) { .dash { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1120px) { .dash { grid-template-columns: 1fr 1fr 1fr; } .d-team { grid-row: span 2; } }
.dcard h2 { display: flex; align-items: center; gap: 8px; } .dcard h2 .sm { margin-left: auto; }
.d-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 2px; }
.d-stats > div { display: grid; justify-items: center; padding: 8px 4px; border-radius: 10px; background: rgba(255,255,255,.05); }
.d-stats b { font-size: 17px; color: #ffe08a; font-variant-numeric: tabular-nums; } .d-stats span { font-size: 11.5px; color: var(--dim); }
.d-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.d-modes button { display: grid; gap: 2px; padding: 8px 2px; font-size: 13px; } .d-modes small { color: var(--dim); font-size: 11.5px; }
.d-alert { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--gold); background: rgba(255,201,77,.08); }
.d-alert.red { border-color: var(--red); background: rgba(255,90,90,.08); }
.d-st { font-size: 13px; margin-top: 8px; }
.d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; margin-top: 4px; }
.d-pl { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid color-mix(in srgb, var(--g, #556) 60%, transparent); cursor: pointer; min-width: 0; }
.d-pl .d-f { position: relative; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: #152238; }
.d-pl .d-f img, .d-lead .d-f img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-pl b { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .d-pl small { font-size: 10.5px; color: var(--dim); }
.d-kv { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .d-kv span { color: var(--dim); }
.d-leads { display: grid; gap: 6px; }
.d-lead { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 9px; }
.d-lead.me { background: rgba(110,190,255,.14); }
.d-lead .d-f { position: relative; width: 38px; height: 38px; border-radius: 9px; overflow: hidden; background: #152238; }
.d-lead small { display: block; color: var(--dim); font-size: 11.5px; } .d-lead b { font-size: 14px; } .d-lead em { font-style: normal; font-weight: 900; color: #ffe08a; font-variant-numeric: tabular-nums; }
.d-merch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.d-merch > div { display: flex; justify-content: space-between; gap: 6px; padding: 7px 9px; border-radius: 9px; background: rgba(255,255,255,.05); font-size: 13px; }
.d-merch > div span { color: #ffe08a; font-weight: 800; } .d-merch > div.sold { opacity: .45; }
/* 대시보드: 칸 높이가 달라도 빈 곳 없이 벽돌 쌓기(세로로 흘러감) */
.dash { display: block; columns: 1; column-gap: 12px; }
@media (min-width: 760px) { .dash { columns: 2; } }
@media (min-width: 1120px) { .dash { columns: 3; } }
.dash > .panel { break-inside: avoid; margin: 0 0 12px; display: block; width: 100%; }
.hplay { width: 100%; margin-top: 10px; padding: 14px; font-size: 18px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 10px; }
.hplay small { font-size: 13px; font-weight: 700; opacity: .8; }


/* 편성 화면: 야구장, 타순, 투수진, 카드 선택 */
body:has(.lineup-screen) #app{max-width:1140px}
.lineup-screen{
  --lu-line:#314760;
  --lu-gold:#f2ce89;
  margin-top:12px;
}
.lu-hero{
  min-height:clamp(103px,16vw,170px);
  display:flex;
  align-items:end;
  padding:13px 17px;
  overflow:hidden;
  border:1px solid #4b617c;
  border-radius:15px;
  background:linear-gradient(90deg,#071121f0,#07112133 72%),linear-gradient(0deg,#0b15269c,transparent 70%),
    url("art/game-ui/stadium-night.webp") 58% 54%/cover;
  box-shadow:0 9px 22px #05081170;
}
.lu-hero h1{margin:0;color:#fff1d4;font-size:clamp(29px,7vw,47px);line-height:1;letter-spacing:-.065em;text-shadow:0 3px 9px #000b}
.lu-hero span{display:block;margin-top:6px;color:#dae6f5;font-size:13px;font-weight:750}
.lu-tools{
  position:sticky;
  z-index:5;
  top:49px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  margin:8px 0;
  border-color:#49576d;
  border-radius:12px;
  background:linear-gradient(163deg,#1a2b44,#0d1a2d);
}
.lu-meter{min-width:0;padding-inline:2px}
.lu-meter-label{display:flex;align-items:baseline;justify-content:space-between;gap:5px;color:#cad7e9;font-weight:800;font-size:11px}
.lu-meter-label b{color:var(--lu-gold);font:900 clamp(18px,4.7vw,26px)/1.04 Consolas,monospace;font-variant-numeric:tabular-nums;letter-spacing:-.06em;white-space:nowrap}
.lu-meter-label small{font-size:.68em;color:#c3cde1}
.lu-meter .bar{height:6px;margin-top:3px;background:#070f1e}
.lu-meter .bar i{background:linear-gradient(90deg,#54cbb8,#93ddac 65%,#f2ce89)}
.lu-meter.over .bar i{background:var(--red)}
.lu-meter.over .lu-meter-label b{color:var(--red)}
.lu-save-state{margin-top:3px;color:var(--dim);font-size:10.5px;font-weight:700}
.lu-save-state.changed{color:#ffc889}
.lu-tool-actions{display:flex;gap:5px}
.lu-tool-actions button{min-height:44px;padding-inline:9px;font-size:13px;white-space:nowrap}
.lu-tool-actions .main{min-width:67px}
.lu-jump{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0 0 10px}
.lu-jump :is(a,button){
  display:grid;
  min-height:36px;
  place-items:center;
  text-decoration:none;
  color:#d8e3f6;
  font-size:12px;
  font-weight:800;
  border:1px solid var(--lu-line);
  background:#0d1a2d;
  border-radius:7px;
  white-space:nowrap;
}
.lu-jump :is(a,button):focus-visible{outline:2px solid var(--lu-gold);outline-offset:-2px}
.lineup-screen [id^="lu-"]{scroll-margin-top:132px}
.lu-batting-pair,.lu-pitching-pair{display:grid;align-items:start;grid-template-columns:minmax(0,1fr);gap:10px;margin:0 0 11px}
.lu-section{--lu-section:#88b5e4;margin:0;padding:0;overflow:hidden;border-color:var(--lu-line);border-radius:13px}
.lu-section-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  min-height:44px;
  padding:8px 11px;
  border-bottom:1px solid var(--lu-line);
  background:linear-gradient(90deg,color-mix(in srgb,var(--lu-section) 13%,#19273a),#101b2e 75%);
}
.lu-section-head h2{margin:0;color:#f3f6fb;font-size:16px}
.lu-section-head h2::before{background:var(--lu-section)}
.lu-section-count{border:1px solid var(--lu-line);border-radius:6px;background:#0d182a;color:#d5e1f5;padding:3px 6px;font-size:11px;font-weight:750}
.lu-defense{--lu-section:#a4dcae}
.lu-starters{--lu-section:#7acbe9}
.lu-bullpen{--lu-section:#e6a378}
.lu-bench{--lu-section:#d1c09a}
.lu-colors{--lu-section:#bf9be3}
.lu-diamond{
  position:relative;
  isolation:isolate;
  aspect-ratio:4/5;
  background:linear-gradient(180deg,#050d12a8,#06150925 21%,#030b1775),
    url("art/game-ui/lineup-field.webp") center/100% 100%;
}
.lu-marker{
  position:absolute;
  z-index:1;
  top:var(--y);
  left:var(--x);
  transform:translate(-50%,-50%);
  min-width:42px;
  max-width:82px;
  display:grid;
  place-items:center;
  gap:1px;
  padding:0;
  border:0;
  border-radius:6px;
  background:transparent;
  text-align:center;
  line-height:1.08;
}
.lu-marker:active:not(:disabled){transform:translate(-50%,-50%)}
.lu-marker-face{position:relative}
.lu-face{
  position:relative;
  flex:none;
  display:grid;
  place-items:center;
  width:41px;
  height:41px;
  overflow:hidden;
  border:1px solid var(--g,#67829d);
  border-radius:8px;
  background:linear-gradient(142deg,color-mix(in srgb,var(--g,#52657e) 23%,#172c41),#0e192a 75%);
}
.lu-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.lu-face .ph,.lu-placeholder{font-size:16px;color:#dce7f9;font-weight:850}
.lu-marker .lu-face{width:clamp(36px,11vw,60px);height:clamp(36px,11vw,60px);border-width:2px;box-shadow:0 2px 8px #000b}
.lu-marker.gL .lu-face{box-shadow:0 0 11px #f3c46a83}
.lu-marker.empty .lu-face{border-style:dashed;background:#102435c9}
.lu-marker.bad .lu-face{border-color:var(--red)}
.lu-order{
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  border:1px solid #a9844d;
  border-radius:6px;
  background:#443520;
  color:#ffe6aa;
  font:900 13px/1 Consolas,monospace;
}
.lu-marker .lu-order{position:absolute;right:-5px;top:-4px;width:15px;height:15px;border-radius:5px;font-size:10px;font-style:normal}
.lu-marker-pos,.lu-marker strong{
  width:max-content;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border-radius:4px;
  background:#0b1624ee;
  color:#f4f5f8;
  padding:2px 3px;
  font-size:11px;
  font-weight:850;
  box-shadow:0 1px 4px #0005;
}
.lu-marker-pos{color:#ffe0a2;font-size:9.5px}
.lu-section-hint,.lu-bench-hint{margin:0;padding:5px 10px;color:#b7c6dc;background:#0c192b;font-size:11px}
.lu-bench-hint{background:none;padding:4px 2px 10px}
.lu-slots{display:grid;gap:4px;padding:8px}
.lu-slot-row{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:4px;align-items:center}
.lu-slot-row.has-position{grid-template-columns:20px minmax(0,1fr) 61px}
.lu-slot-row select{min-height:43px;width:100%;min-width:0;padding:3px;font-size:11.5px;border-radius:7px;background:#13233a;border-color:#3c526d}
.lu-slot{
  width:100%;
  min-height:51px;
  margin:0;
  padding:3px 5px;
  gap:5px;
  border:1px solid var(--lu-line);
  border-left:2px solid var(--g,var(--lu-line));
  border-radius:8px;
  background:linear-gradient(100deg,color-mix(in srgb,var(--g,#7899bd) 8%,#172842),#122036 80%);
}
.lu-slot.empty{border-left-width:1px}
.lu-slot.bad{border-color:#f58d85}
.lu-slot-text{min-width:0;flex:1;display:grid;gap:2px;color:#f1f5fb;line-height:1.15}
.lu-slot-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.lu-slot-role{color:#f4cd8a;font-size:10px;font-weight:800}
.lu-meta{font-size:10px;color:#c5d3e7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lu-meta .stars{font-size:9.5px}
.lu-slot-cost{
  flex:none;
  padding:3px 4px;
  border:1px solid var(--lu-line);
  border-radius:5px;
  color:#e1ebf9;
  background:#0b1628;
  font-size:10px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.lu-warn{color:#ffba87;font-size:11px;font-weight:800;white-space:nowrap}
.lu-warn.error{color:#ffa09a}
.lu-bench .lu-section-head{
  min-height:62px;
  background:linear-gradient(90deg,#131b27ed,#10201f19 95%),url("art/game-ui/dugout.webp") 56% 55%/cover;
}
.lu-color-body{padding:10px 12px}
.lu-picker .lu-picker-title{
  min-height:79px;
  margin:-3px 0 9px;
  padding:10px 45px 10px 10px;
  border:1px solid #4c6079;
  border-radius:10px;
  background:linear-gradient(90deg,#0e1a2e,#0e1a2ec8 69%,#12203666),url("art/game-ui/stadium-night.webp") 70% 54%/cover;
}
.lu-picker h2{margin-bottom:4px;font-size:17px}
.lu-picker p{margin:0;color:#c1cfe2;font-size:12px}
.lu-current{display:flex;align-items:center;gap:7px;padding:7px;margin-bottom:9px;border:1px solid var(--g,#455b76);border-radius:9px;background:#111e31}
.lu-current small,.lu-current b{display:block}
.lu-current small{color:#c1cfe2;font-size:11px}
.lu-current b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lu-candidates{display:grid;gap:5px}
.lu-candidate{margin:0;align-items:start;padding:6px;gap:7px;border-left:3px solid var(--g,#5c728e);background:linear-gradient(100deg,color-mix(in srgb,var(--g,#7899bd) 11%,#182a43),#101d31 82%)}
.lu-candidate.current{border-color:#c4a36a}
.lu-candidate .lu-face{width:52px;height:52px}
.lu-rank-info{min-width:0;display:grid;gap:3px;flex:1}
.lu-name-line{display:flex;align-items:center;flex-wrap:wrap;gap:4px;min-width:0;font-size:13px}
.lu-name-line b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.lu-candidate-meta{font-size:11px;color:#becde3}
.lu-candidate-stats{display:flex;flex-wrap:wrap;gap:3px}
.lu-candidate-stats>span{display:inline-flex;gap:3px;align-items:center;padding:1px 4px;border:1px solid #3a526e;border-radius:4px;background:#0c1a2c;color:#bbcce5;font-size:10.5px;white-space:nowrap}
.lu-candidate-stats b{color:#f3f6fd;font-variant-numeric:tabular-nums}
.lu-candidate-notes{display:flex;flex-wrap:wrap;gap:4px 6px;font-size:11px;line-height:1.25}
.lu-candidate-notes:empty{display:none}
.lu-fit{color:#9ae2b9}.lu-used{color:#a2d6ff}
@media(hover:hover){
  .lu-jump :is(a,button):hover,.lu-slot:hover,.lu-candidate:hover,.lu-marker:hover .lu-face{border-color:#f2ce89}
  .lu-marker:hover{z-index:2}
}
@media(min-width:690px){
  .lu-batting-pair{grid-template-columns:1.18fr 1fr}
  .lu-pitching-pair,.lu-candidates{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lu-bench .lu-slots{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:980px){
  .lu-hero{padding:17px 24px}
  .lu-tools{padding-inline:14px}
  .lu-slot-row.has-position{grid-template-columns:22px minmax(0,1fr) 71px}
  .lu-slot{min-height:56px}
  .lu-slots{padding:9px}
  .lu-bench .lu-slots{grid-template-columns:repeat(3,minmax(0,1fr))}
}


.lu-warnings{padding:0;margin:8px 0;border-color:#7c6243;background:#3a2d1e8c;color:#ffe1ac}
.lu-warnings summary{min-height:33px;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:5px 9px;list-style:none;cursor:pointer;font-size:12px}
.lu-warnings summary::-webkit-details-marker{display:none}
.lu-warnings summary span{color:#f9d498;white-space:nowrap;font-size:11px}
.lu-warnings[open] summary span{visibility:hidden}
.lu-warnings ul{margin:0;padding:0 13px 8px 29px;color:#ecdcc3;word-break:keep-all}
.lu-warnings li+li{margin-top:3px}
.lu-marker{min-width:44px}
.lu-picker p{word-break:keep-all}

@media(max-width:689px){
  .lu-diamond{aspect-ratio:9/10}
}

/* 야구장 아래 후보와 포지션 적성 */
.lu-marker-meta{display:flex;align-items:center;justify-content:center;gap:2px;white-space:nowrap}
.lu-fit-chip{
  display:inline-block;
  padding:2px 4px;
  border-radius:4px;
  line-height:1.05;
  font-size:10.5px;
  font-weight:850;
  white-space:nowrap;
  background:#1b2b3c;
  color:#c9d6e8;
}
.lu-fit-chip.ideal{background:#183b31;color:#aaf0c7}
.lu-fit-chip.shift{background:#524021;color:#ffe0a2}
.lu-fit-chip.outside{background:#623b25;color:#ffd2a1}
.lu-fit-chip.poor{background:#632f38;color:#ffbec4}
.lu-marker .lu-fit-chip{font-size:8.5px;padding:2px 3px}
.lu-bench-strip{
  padding:6px 7px 8px;
  scroll-margin-top:132px;
  border-top:1px solid #557366;
  background:linear-gradient(90deg,#0f1e2bdd,#102329f0 70%),url("art/game-ui/dugout.webp") center 56%/cover;
}
.lu-bench-heading{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:0 2px 4px}
.lu-bench-heading h3{margin:0;color:#fff1cc;font-size:14px}
.lu-bench-heading>span{color:#b1c6cc;font-size:10.5px}
.lu-bench-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.lu-roster-card{
  position:relative;
  display:grid;
  justify-items:center;
  gap:3px;
  min-width:0;
  padding:4px 2px;
  border:1px solid color-mix(in srgb,var(--g,#607f87) 68%,#21354b);
  border-radius:8px;
  background:linear-gradient(145deg,#20334a,#0f1c2e);
  color:#ebf1fb;
  line-height:1.1;
  text-align:center;
}
.lu-roster-card:active:not(:disabled){transform:none}
.lu-roster-card.empty{border-style:dashed;background:#112735}
.lu-roster-card .lu-face{width:clamp(34px,10vw,57px);height:clamp(34px,10vw,57px)}
.lu-roster-card .lu-marker-face{display:block}
.lu-bench-index,.lu-bench-pos{font-size:9.5px;color:#d0dbea;white-space:nowrap}
.lu-bench-pos{padding:2px 4px;border-radius:4px;background:#0b1b2b;color:#f7dc9f;font-weight:850}
.lu-roster-card strong{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
}
[data-lu-drag]:not(.empty){cursor:grab;user-select:none}
[data-lu-drag] .lu-face,.lu-drag-grip{touch-action:none}
[data-lu-drag] img{-webkit-user-drag:none}
.lu-drag-grip{
  display:grid;
  position:absolute;
  z-index:1;
  left:-4px;
  top:-4px;
  width:14px;
  height:15px;
  place-items:center;
  border:1px solid #7894a8;
  border-radius:4px;
  background:#172638;
  color:#e1ebf9;
  font:900 11px/1 sans-serif;
  cursor:grab;
}
.lu-drag-status{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
.lu-drag-ghost{
  pointer-events:none;
  position:fixed;
  z-index:140;
  left:0;
  top:0;
  display:grid;
  justify-items:center;
  gap:3px;
  min-width:58px;
  max-width:112px;
  padding:5px;
  background:#0b192de8;
  border:1px solid var(--g,#87aaba);
  border-radius:9px;
  box-shadow:0 7px 24px #000d;
  font-size:11px;
}
.lu-drag-ghost b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lu-dragging [data-lu-drag],.lu-dragging .lu-drag-grip{cursor:grabbing}
.lu-dragging .lu-drag-origin{opacity:.42;z-index:1}
[data-drop-tone]{--lu-drop:#a9e7c9}
[data-drop-tone="shift"]{--lu-drop:#ffd073}
[data-drop-tone="outside"]{--lu-drop:#ffaf80}
[data-drop-tone="poor"]{--lu-drop:#ff98aa}
[data-drop-tone] .lu-face{outline:2px solid var(--lu-drop);outline-offset:1px}
.lu-drag-hover{z-index:4}
.lu-drag-hover .lu-face{outline-width:3px;outline-offset:2px}
.lu-drop-fit{display:none}
.lu-drag-hover .lu-drop-fit{
  display:block;
  position:absolute;
  left:50%;
  top:100%;
  transform:translate(-50%,1px);
  padding:3px 5px;
  border:1px solid var(--lu-drop);
  border-radius:5px;
  background:#0a192a;
  color:var(--lu-drop);
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
  pointer-events:none;
  box-shadow:0 2px 5px #000a;
}
@media(min-width:690px){
  .lu-roster-card{padding-block:6px;gap:4px}
  .lu-roster-card strong{font-size:12px}
  .lu-marker .lu-fit-chip{font-size:10px}
}


.lu-board-head{gap:5px 8px}
.lu-board-title{display:flex;align-items:center;gap:6px;min-width:0}
.lu-view-switch{display:inline-flex;align-items:center;gap:3px}
.lu-view-switch button{
  min-height:35px;padding:4px 7px;border-radius:6px;border:1px solid #3d5268;
  background:#0d1a2d;color:#b6c9df;font-size:11.5px;white-space:nowrap;
}
.lu-view-switch button[aria-pressed="true"]{border-color:#be9b62;background:#3e3425;color:#ffe6ad}
.lu-pitch-board{
  padding:8px 7px 11px;
  background:linear-gradient(180deg,#111d2eed,#121e2ef7),url("art/game-ui/dugout.webp") center 60%/cover;
}
.lu-pitch-board h3{margin:0;color:#e1edfb;font-size:13px}
.lu-pitch-heading{display:flex;justify-content:space-between;align-items:center;gap:7px;margin:0 2px 5px}
.lu-pitch-heading a{padding:4px 5px;color:#c9ddf1;font-size:11px;text-underline-offset:3px}
.lu-pitch-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.lu-pitch-grid + h3{margin:8px 2px 5px}
.lu-pitch-grid.bullpen{grid-template-columns:repeat(6,minmax(0,1fr))}
.lu-pitch-card .lu-bench-index{font-size:clamp(8.5px,2.4vw,11px);font-weight:700;max-width:100%}
.lu-pitch-card .lu-fit-chip{font-size:9px;padding-inline:2px}
.lu-pitch-card .lu-face{width:clamp(26px,8.8vw,49px);height:clamp(26px,8.8vw,49px)}
.lu-jump button[data-jump]{padding:0;font:inherit;font-size:12px;font-weight:800}
