/* 게임 글꼴: GFC Red Spirit (Medium 500 / Bold 700 / Black 900) - 한글 전체 + 영문·숫자·기호만 남긴 woff (user req 2026-11-02).
   Regular(400)가 없어서 가장 얇은 Medium이 400 이하를 맡고, 600~700은 Bold, 800~900은 Black. */
@font-face{font-family:'GFCRedSpirit';src:url(fonts/GFCRedSpirit-Medium.woff) format('woff');font-weight:100 500;font-display:swap}
@font-face{font-family:'GFCRedSpirit';src:url(fonts/GFCRedSpirit-Bold.woff) format('woff');font-weight:600 700;font-display:swap}
@font-face{font-family:'GFCRedSpirit';src:url(fonts/GFCRedSpirit-Black.woff) format('woff');font-weight:800 900;font-display:swap}
/* ===== BASEBALL KOREA ===== */
*,*::before,*::after{box-sizing:border-box}
:root{
  --bg:#060B16; --bg2:#0B1326; --bg3:#111C36;
  --panel:rgba(17,28,54,.90); --panel2:rgba(23,36,66,.92);
  --line:rgba(122,162,232,.18); --line2:rgba(122,162,232,.34);
  --txt:#E9EEF9; --dim:#8DA0C4; --dim2:#61739A;
  --acc:#3D8FE0; --acc2:#5FB2F5; --gold:#F5C518; --red:#E0524E; --green:#37C07A;
  --team:#3D8FE0;
  --ui:#2C6BE0;               /* 버튼/탭/칩 등 UI 컨트롤 색 - 팀컬러와 무관하게 구단 색 선택지의 파랑(BK.TEAM_COLORS blue)으로 통일 (user req 2026-11-02) */
  --r:14px; --r2:20px;
  --safeT:env(safe-area-inset-top,0px); --safeB:env(safe-area-inset-bottom,0px);
  /* a night game under the lights: one committed visual world, no light variant */
  color-scheme:dark;
  --display:'Bebas Neue','Anton','Arial Narrow',ui-sans-serif,system-ui,sans-serif;
}
:focus-visible{outline:2px solid var(--acc2);outline-offset:2px;border-radius:6px}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;scroll-behavior:auto!important}
}
html,body{height:100%}
body{
  margin:0;font-family:'GFCRedSpirit','Noto Sans KR',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
  color:var(--txt);background:var(--bg) url(img/bg_pc.webp?v=2) center/cover no-repeat fixed;overflow:hidden;
  -webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;
}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
input,select{font:inherit;color:inherit}
.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}

#app{position:fixed;inset:0;display:flex;flex-direction:column;
  padding-top:var(--safeT);padding-bottom:var(--safeB)}
.screen{position:absolute;inset:0;display:none;flex-direction:column;
  padding-top:var(--safeT);padding-bottom:var(--safeB)}
.screen.on{display:flex}
.scroll{flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.wrap{width:min(1080px,100%);margin:0 auto;padding:16px}

/* ---------- title ---------- */
#scTitle{background:#04070F}
.titleArt{position:absolute;inset:0;background:center/cover no-repeat;opacity:.55}
.titleArt::after{content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(4,7,15,.35) 0%,rgba(4,7,15,.15) 40%,rgba(4,7,15,.95) 100%)}
.titleInner{position:relative;flex:1;display:flex;flex-direction:column;
  align-items:center;justify-content:flex-end;gap:12px;padding:24px 20px 44px;text-align:center}
.titleKo{font-size:clamp(34px,8vw,62px);font-weight:900;letter-spacing:.04em;
  text-shadow:0 4px 26px rgba(0,0,0,.85),0 0 40px rgba(61,143,224,.35)}
.titleEn{font-family:var(--display);font-size:clamp(17px,3.6vw,26px);letter-spacing:.44em;
  color:var(--acc2);margin-top:2px;text-shadow:0 2px 14px rgba(0,0,0,.8)}
.titleMenu{display:flex;flex-direction:column;gap:10px;width:min(340px,86%);margin-top:22px}

/* ---------- buttons ---------- */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 18px;border-radius:var(--r);font-weight:700;font-size:15px;
  background:linear-gradient(180deg,rgba(38,58,104,.95),rgba(22,36,70,.95));
  border:1px solid var(--line2);transition:.16s;letter-spacing:.01em}
.btn:hover{border-color:var(--acc);transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn.primary{background:linear-gradient(180deg,var(--acc2),var(--acc));border-color:transparent;
  box-shadow:0 8px 26px -10px var(--acc)}
.btn.team{background:linear-gradient(180deg,color-mix(in srgb,var(--ui) 88%,#fff),var(--ui));
  border-color:transparent;color:#fff;box-shadow:0 8px 26px -10px var(--ui)}
.btn.ghost{background:rgba(255,255,255,.04)}
/* player sale (user req: 선수 판매) - same team/primary gradient shape, just
   on --red, so a destructive action visually reads as one at a glance */
.btn.danger{background:linear-gradient(180deg,color-mix(in srgb,var(--red) 85%,#fff),var(--red));
  border-color:transparent;color:#fff;box-shadow:0 8px 26px -10px var(--red)}
.btn.sm{padding:9px 13px;font-size:13px;border-radius:10px}
.btn.xs{padding:6px 10px;font-size:12px;border-radius:9px}
.btn[disabled]{opacity:.38;pointer-events:none}
.btn.on{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}

/* ---------- top bar ---------- */
.bar{display:flex;align-items:center;gap:10px;padding:10px 14px;
  background:rgba(8,14,28,.94);border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);flex:none}
.bar h2{margin:0;font-size:16px;font-weight:800;flex:1;letter-spacing:.01em;
  min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}   /* user req 2026-10-12: 제목이 두세 줄로 꺾이지 않게 한 줄 고정 */
.iconBtn{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;
  background:rgba(255,255,255,.05);border:1px solid var(--line);font-size:15px}
.iconBtn:hover{border-color:var(--acc)}
/* user req: 자동진행 버튼을 배속 아이콘(⏩)에서 흰색 'AUTO' 텍스트로 -
   "AUTO"는 4글자라 .iconBtn의 15px 아이콘용 폰트 크기로는 36px 폭 안에
   안 들어가므로 이 버튼만 작은 볼드체+자간 축소로 맞춘다. */
.autoBtn{font-size:8px;font-weight:900;letter-spacing:-.02em;color:#fff;padding:0;line-height:1;text-align:center;white-space:nowrap}   /* GFC 폰트는 글자가 넓어서 8px + 버튼 기본 좌우 여백 제거 (user req 2026-11-02) */
/* AUTO 켜짐 표시: 초록 채움 + 글로우 + 은은한 깜빡임, 우상단에 켜짐 점 */
.autoBtn{position:relative}
.autoBtn.on{background:linear-gradient(180deg,#43D98A,#1FAE62);border-color:#8CF2BD;color:#05220f;
  box-shadow:0 0 0 1px rgba(140,242,189,.55),0 0 12px 1px rgba(67,217,138,.7);animation:autoPulse 1.6s ease-in-out infinite}
.autoBtn.on::after{content:'';position:absolute;top:-3px;right:-3px;width:9px;height:9px;border-radius:50%;
  background:#FFE24A;border:1.5px solid #05220f;box-shadow:0 0 6px #FFE24A}
@keyframes autoPulse{0%,100%{box-shadow:0 0 0 1px rgba(140,242,189,.55),0 0 10px 0 rgba(67,217,138,.55)}
  50%{box-shadow:0 0 0 1px rgba(140,242,189,.8),0 0 16px 3px rgba(67,217,138,.9)}}
.res{display:flex;gap:6px;align-items:center}
.resChip{display:flex;align-items:center;gap:5px;padding:5px 10px;border-radius:999px;
  background:rgba(255,255,255,.05);border:1px solid var(--line);font-size:12px;font-weight:700}
.resChip b{color:var(--gold)}
.resChip.tk b{color:var(--acc2)} .resChip.tkp b{color:#D08BFF}
.resChip .itemIco{width:14px;height:14px;margin-right:0;vertical-align:middle}   /* 상단 골드·티켓 아이콘 크기 (user req 2026-10-30: 조금 작게) */
/* small inline item-art icon (exp drink, recovery kit, scout tickets - user
   req: 게임 내 아이템들 이미지 보내줄테니까 이걸로 전부 수정해줘) - a plain
   inline <img>, same slot every one of these spots used to give a single
   emoji character, so it drops in next to existing text/number layout
   without needing its own wrapper. object-fit:contain keeps each item's own
   real aspect ratio (a can, a ticket, and a box are all shaped differently)
   instead of squashing it into a square the way a flat width/height alone
   would. The bigger `.lg` variant is for the shop list, where each item gets
   its own full standalone row instead of sharing a line with other text. */
.itemIco{width:18px;height:18px;object-fit:contain;vertical-align:-4px;flex:none;margin-right:4px}
.itemIco.lg{width:34px;height:34px;vertical-align:-9px;margin-right:8px}

/* ---------- panels / grids ---------- */
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--r2);padding:16px;
  backdrop-filter:blur(10px)}
.panel + .panel{margin-top:14px}
.panelH{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:14px;font-weight:800;
  color:var(--dim);letter-spacing:.06em;text-transform:uppercase}
.panelH::before{content:'';width:3px;height:14px;border-radius:2px;background:var(--team)}
.grid{display:grid;gap:10px}
.g2{grid-template-columns:repeat(2,1fr)} .g3{grid-template-columns:repeat(3,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}
.gAuto{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}
.gAutoSm{grid-template-columns:repeat(auto-fill,minmax(108px,1fr))}
@media(max-width:560px){.g4{grid-template-columns:repeat(2,1fr)}}

/* ---------- lobby ---------- */
.lobbyHead{cursor:pointer;-webkit-tap-highlight-color:transparent;display:flex;align-items:center;gap:14px;padding:18px 16px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--team) 24%,transparent),transparent 62%),var(--panel);
  border:1px solid var(--line);border-radius:var(--r2)}
.lobbyLogo{width:66px;height:66px;flex:none;display:grid;place-items:center;border-radius:16px;
  background:rgba(0,0,0,.28);border:1px solid var(--line)}
.lobbyName{font-size:20px;font-weight:900}
.lobbySub{font-size:12px;color:var(--dim);margin-top:3px}
.lobbyOvr{flex:none;text-align:right}
.lobbyOvr span{display:block;font-size:11px;color:var(--dim)}
.lobbyOvr b{display:block;font-size:22px;margin-top:2px;font-family:var(--display);letter-spacing:.03em}
.menuTile{position:relative;display:flex;flex-direction:column;gap:6px;align-items:flex-start;
  padding:15px 14px;border-radius:var(--r);background:var(--panel2);
  border:1px solid var(--line);transition:.16s;text-align:left}
.menuTile:hover{border-color:var(--ui);transform:translateY(-2px);
  box-shadow:0 12px 30px -16px var(--ui)}
.menuTile i{font-style:normal;font-size:20px;line-height:1}
.menuTile b{font-size:14px;font-weight:800}
.menuTile span{font-size:11px;color:var(--dim2);line-height:1.35}
/* 업적 달성 뱃지 (user req: 업적 달성한 게 있으면 로비의 업적탭에 느낌표
   모양 생기도록) - a small red "!" pinned to the tile's own top-right
   corner (menuTile above is now position:relative for exactly this),
   only ever added to the one 업적 tile and only while
   ACH.unclaimedCount() > 0 (ui.js UI.lobby) */
.menuTile .tileBadge{position:absolute;top:-6px;right:-6px;width:20px;height:20px;
  border-radius:50%;background:var(--red);color:#fff;font-size:12px;font-weight:900;
  display:grid;place-items:center;box-shadow:0 0 0 2px var(--bg2),0 4px 10px -3px var(--red)}

/* ---------- player card ---------- */
.card{position:relative;border-radius:var(--r);overflow:hidden;isolation:isolate;
  background:linear-gradient(170deg,rgba(30,44,78,.96),rgba(14,22,44,.98));
  border:1px solid var(--line);transition:.16s;cursor:pointer}
.card:hover{transform:translateY(-2px);border-color:var(--line2)}
.card.sel{border-color:var(--gold);box-shadow:0 0 0 2px rgba(245,197,24,.4)}
.card .cTop{position:absolute;top:7px;left:7px;right:7px;display:flex;justify-content:space-between;z-index:3}
.card .cArt{height:124px;display:grid;place-items:end center;position:relative;z-index:1}
.card .cArt canvas{display:block;max-width:100%}
.card .cArt .comboMark{position:absolute;right:3px;bottom:3px;width:20%;max-width:30px;height:auto;pointer-events:none;filter:drop-shadow(0 1px 3px rgba(0,0,0,.7))}
.subCard .scArt canvas{display:block;max-width:100%}
.card .cBody{position:relative;z-index:2;padding:7px 9px 9px;
  background:linear-gradient(180deg,transparent,rgba(6,11,22,.92) 32%)}
.card .cName{font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card .cMeta{display:flex;gap:6px;align-items:center;font-size:10.5px;color:var(--dim);margin-top:2px}
.card .cBar{display:flex;gap:3px;margin-top:6px}
.card .cBar i{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.12);position:relative;overflow:hidden}
.card .cBar i::after{content:'';position:absolute;inset:0 auto 0 0;width:var(--v);background:var(--team)}
.card .cGlow{position:absolute;inset:0;z-index:0;
  background:radial-gradient(120% 80% at 50% 8%,color-mix(in srgb,var(--team) 34%,transparent),transparent 70%)}
/* 몬스터·얼티밋 몬스터·레전드·V9 카드 레이어: 배경(cGlow) -> 선수 이미지(cArt) -> 등급 뱃지·능력치 창 (user req 2026-11-09).
   뱃지·능력치 창 모양은 카드틀 그림에 들어 있어서, 같은 카드틀을 두 번째로(cGlow2) 선수 이미지 위에 겹치되 뱃지·능력치 창 자리만 보이게 오려 둔다 -
   선수 그림이 그 자리로 올라와도 틀 그림이 위에 있어 가려진다. 숫자·등급 글자(cTop)는 그 위(z-index 3) */
.card .cGlow2{display:none}
/* (user req 2026-11-14) 배지·능력치 창 자리를 틀 그림으로 다시 덮어 선수 그림을 오려 내던 덧씌우기는 없앤다 - 선수 그림이 그 자리로 올라와도 잘리지 않는다 (배지·능력치 숫자는 그 위 z-index 3 에 그대로 보인다) */
.card.leg .cGlow2,.card.mon .cGlow2,.card.ult .cGlow2,.card.uniq .cGlow2,.card.v9 .cGlow2{display:none}
.card.leg.lcard .cGlow2{display:none}
.card.leg .cGlow2.tl,.card.mon .cGlow2.tl,.card.ult .cGlow2.tl,.card.uniq .cGlow2.tl{clip-path:polygon(1% 2%,27% 2%,27% 21.5%,1% 21.5%)}
.card.leg .cGlow2.tr,.card.mon .cGlow2.tr,.card.ult .cGlow2.tr{clip-path:polygon(72.5% 4%,97% 4%,97% 20%,72.5% 20%)}
.card.uniq .cGlow2.tr{clip-path:polygon(68.5% 5.5%,95.5% 5.5%,95.5% 18.5%,68.5% 18.5%)}
.card.v9 .cGlow2.tl{clip-path:polygon(calc(3.5*var(--u)) calc(.5*var(--u)),calc(28*var(--u)) calc(.5*var(--u)),calc(28*var(--u)) calc(21*var(--u)),calc(3.5*var(--u)) calc(21*var(--u)))}
.card.v9 .cGlow2.tr{clip-path:polygon(calc(72*var(--u)) calc(4.5*var(--u)),calc(96.5*var(--u)) calc(4.5*var(--u)),calc(96.5*var(--u)) calc(21*var(--u)),calc(72*var(--u)) calc(21*var(--u)))}
.gr{display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:7px;
  font-size:12px;font-weight:900;color:#0A0E18}
.gD{background:#7C8698;color:#fff} .gC{background:#F5821F} .gB{background:#3D8FE0;color:#fff}
.gA{background:#B05CE8;color:#fff} .gS{background:linear-gradient(135deg,#FFD45E,#F0A82A)}
.gU{background:url(img/badge_U.png) center/contain no-repeat;min-width:25px;padding:0;border-radius:0;box-shadow:none;color:transparent;font-size:0;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))}      /* U등급 표시는 어디서나 U 배지 그림 (user req 2026-11-14) */
/* L등급 표시는 어디서나 월계관 뱃지 그림 (글자 L은 그림에 이미 들어 있다) */
.gL{background:url(img/badge_L.png) center/contain no-repeat;min-width:25px;padding:0;border-radius:0;box-shadow:none;color:transparent;font-size:0;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))}
.gR{background:url(img/badge_R.png) center/contain no-repeat;min-width:27px;padding:0;border-radius:0;box-shadow:none;color:transparent;font-size:0;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))}      /* R등급 표시는 어디서나 R 배지 그림 (user req 2026-11-15) */
.ovrTag{display:grid;place-items:center;min-width:30px;height:22px;border-radius:7px;font-size:12px;
  font-weight:900;background:rgba(6,11,22,.82);border:1px solid var(--line2)}
.lvTag{font-size:10px;font-weight:800;color:var(--gold);background:rgba(0,0,0,.5);
  padding:2px 6px;border-radius:6px}
/* "this award belongs to MY CLUB" corner pill (user req, awards ceremony) -
   see the long comment on UI.card's opt.myBadge (ui.js) for why this is a
   separate thing from .myTag below (the unrelated MY PLAYER ribbon) */
.myBadge{display:grid;place-items:center;height:22px;padding:0 6px;border-radius:7px;
  font-size:11px;font-weight:900;letter-spacing:.02em;color:#0A0E18;
  background:linear-gradient(135deg,#FFD45E,#F0A82A)}

/* 컨디션 아이콘: a small square face, one of 5 conditions - only ever added
   where the caller explicitly opts in (ui.js condIconHTML), never a default
   part of a card so every screen the spec leaves untouched stays untouched.
   .cTopR (the card's own top-right corner, UI.card) is now a column so the
   injury badge below can sit directly under the ovrTag+condIco row inside
   it (user req: 부상 표시를 컨디션 아이콘 아래) - .scTopR (the plain inline
   text-line version used by game.js's matchup/sub-picker cards, which never
   gets an injury badge) is untouched, still a single row. */
.cTopR{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.cTopRow,.scTopR{display:flex;align-items:center;gap:5px}
.condIco{flex:none;display:inline-grid;place-items:center;border-radius:6px;
  background:var(--cc,#7C8698);box-shadow:0 0 0 1px rgba(0,0,0,.28),0 0 6px -1px var(--cc,transparent)}
.condIco svg{width:74%;height:74%;display:block}
/* 컨디션 아이콘 이미지 교체 (user req): the new per-condition PNGs (ui.js
   CONDITION_FACE) already ARE the full face - their own background color,
   border and expression baked in - so unlike the old inline SVG lines
   (still 74% above, kept for old saves/fallback) the <img> fills the whole
   .condIco box; border-radius:inherit keeps its corners matching the
   square .condIco frame it sits in at every size this renders at. */
.condIco img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}
/* 부상 아이콘 (반창고): directly under condIco inside .cTopR (above) - see
   ui.js injuryIconHTML. Plain emoji glyph, sized to roughly match condIco's
   own footprint rather than a fixed font-size, so it scales the same way at
   every call site's chosen size. */
.injIco{flex:none;display:inline-grid;place-items:center;font-size:12px;line-height:1}

/* unique (U-grade) card: bright teal/cyan the grade badge itself uses (§3).
   The diagonal-stripe frame is the user-supplied texture photo now, not a
   generated CSS pattern - cGlow sits under cArt/cBody at z-index:0 inside
   .card's own overflow:hidden box (§16), so cover-fit crops it to the
   card's own rounded rect and it can never bleed past that boundary,
   whatever the source photo's own aspect ratio. */
/* U등급(유니크) 카드 - 레전드·몬스터와 같은 방식의 전용 카드틀(img/uniq_frame.jpg) + 왼쪽 위 U 배지(img/badge_U.png) (user req 2026-11-14) */
.card.uniq{border:0;box-shadow:0 0 0 1.5px rgba(18,245,232,.7),0 10px 34px -12px rgba(18,245,232,.85)}
.card.uniq .cGlow{background:#030a0c url(img/uniq_frame.jpg) center/100% 100% no-repeat}
.card.uniq .cTop{inset:0;display:block}
.card.uniq .cTop .cTopL{display:block;position:absolute;left:1.5%;top:calc(2.6% - 5px);width:24%;height:20.8%}
.card.uniq .cTopL .gr{position:absolute;inset:0;min-width:0;height:auto;filter:drop-shadow(0 2px 3px rgba(0,0,0,.6))}
.card.uniq .cTopL .awkIcon{position:absolute;top:calc(100% + 4px);left:50%;transform:translateX(-50%);height:19px}
.card.uniq .cTop .cTopR{display:block;position:absolute;left:70.2%;top:7.8%;width:23.5%;height:8.7%}
.card.uniq .cTopRow{display:block;position:static}
.card.uniq .ovrTag{position:absolute;inset:-1px;min-width:0;height:auto;border:0;border-radius:0;isolation:isolate;
  background:linear-gradient(135deg,#C9FFFB,#0E9E99 48%,#12F5E8);clip-path:polygon(5px 0,calc(100% - 5px) 0,100% 5px,100% calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,0 calc(100% - 5px),0 5px);
  color:#DFFFFC;font-size:13px;text-shadow:0 0 8px rgba(18,245,232,.8);padding:1px 0 0 1px;box-sizing:border-box;line-height:1}
.card.uniq .ovrTag::before{content:'';position:absolute;inset:1.5px;z-index:-1;
  background:radial-gradient(120% 140% at 50% 35%,#06292b,#020b0c);
  clip-path:polygon(4px 0,calc(100% - 4px) 0,100% 4px,100% calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,0 calc(100% - 4px),0 4px)}
.card.uniq .condIco{position:absolute;right:0;top:calc(100% + 5px)}
.card.uniq .injIco{position:absolute;right:0;top:calc(100% + 27px)}
/* 선수 하반신이 아래 이름 칸 위에 떠 보이지 않도록 그림을 12px 내려 칸 윗선에 붙인다 (레전드·몬스터 카드와 동일) */
.card.uniq .cArt{height:136px;margin-bottom:-12px}
/* 선수 그림이 위쪽 그림 칸의 아래 테두리 선(이름 칸과 나뉘는 선)을 넘어 겹치지 않게, 그 선 위까지만 보이게 오려 둔다 (user req 2026-11-14) */
.card.uniq .cArt{clip-path:inset(0 0 8px 0)}      /* 레전드·몬스터처럼 발끝이 박스 윗 테두리(2중선)를 덮고 박스 안쪽 시작점에서 끊기게 - 이전 10px은 약 2px 떠 있었다 (user req 2026-11-15) */
.card.uniq .cBody{background:linear-gradient(180deg,transparent 12px,rgba(3,12,14,.92) 30px)}
.card.uniq .cName{color:#CFFFFA;text-shadow:0 0 12px rgba(18,245,232,.65)}
/* R등급(라이징) 카드 */
/* R등급(라이징) 카드 - 대표 색상 하늘색, 배경은 유저 제공 이미지 (user req 2026-10-01) */
.card.rise{border:0;box-shadow:0 0 0 1.5px rgba(92,200,255,.85),0 10px 34px -12px rgba(92,200,255,.95)}
/* R등급 카드 - 전용 카드틀(img/rise_frame.webp) + 왼쪽 위 R 배지(img/badge_R.png) (user req 2026-11-15). 구조는 유니크 카드와 같다 */
.card.rise .cGlow{background:#0A4A9C url(img/rise_frame.webp) center/100% 100% no-repeat}
.card.rise .cTop{inset:0;display:block}
.card.rise .cTop .cTopL{display:block;position:absolute;left:2%;top:calc(2.4% - 2px);width:27%;height:17%}
.card.rise .cTopL .gr{position:absolute;inset:0;min-width:0;height:auto;filter:drop-shadow(0 2px 3px rgba(0,20,70,.6))}
.card.rise .cTopL .awkIcon{position:absolute;top:calc(100% + 4px);left:50%;transform:translateX(-50%);height:19px}
.card.rise .cTop .cTopR{display:block;position:absolute;left:68.6%;top:6.9%;width:22.4%;height:8.6%}
.card.rise .cTopRow{display:block;position:static}
.card.rise .ovrTag{position:absolute;inset:0;min-width:0;height:auto;border:0;border-radius:0;background:none;
  color:#fff;font-size:13px;text-shadow:0 1px 3px rgba(0,30,90,.9),0 0 8px rgba(120,210,255,.9);padding:1px 0 0 0;box-sizing:border-box;line-height:1}
.card.rise .condIco{position:absolute;right:0;top:calc(100% + 5px)}
.card.rise .injIco{position:absolute;right:0;top:calc(100% + 27px)}
/* 선수 그림 발끝이 아래 박스 윗선(구분선)에 닿거나 넘지 않게 그림 칸을 8px 올린다 (user req 2026-11-15) */
.card.rise .cArt{height:139px;margin-bottom:-15px}      /* 발끝이 아래 박스 윗선을 덮고 박스 안쪽에서 끊기게 11px 내린다 - 레전드·몬스터와 같은 위치 (user req 2026-11-15, 이전 8px 올림 되돌려 더 내림) */
/* 선수 도감 목록에서는 그림을 원래 위치(8px 아래)로 둔다 (user req 2026-11-15) */
#dexGrid .card.rise .cArt{height:136px;margin-bottom:-12px;clip-path:inset(0 0 5px 0)}
/* 모바일 도감에서만: 라이징 그림이 박스 윗선에서 약 3~4px 떠 보여 아래 자르는 폭을 줄여 발끝이 윗선에 닿게 한다 (user req 2026-11-15) */
@media (max-width:639px){#dexGrid .card.rise .cArt{height:139px;margin-bottom:-15px;clip-path:none}}
.card.rise .cBody{background:none;padding:10px 12px 11px}      /* 이름·직급 줄을 박스 윗선에서 3px 띄우고 왼쪽 여백을 레전드·몬스터와 비슷하게 (user req 2026-11-15) */
/* 능력치 막대를 숨기는 라이징 카드(제작 페이지 목표 카드)도 막대가 있는 카드와 같은 높이로 - 높이가 낮으면 카드 틀 윗선이 위로 올라가 선수 그림이 박스를 덮는다 (user req 2026-11-15) */
.card.rise.hideSt .cBody{min-height:70px;box-sizing:border-box}
#dexGrid .card.rise.hideSt .cBody{min-height:0}
/* 우측 상단 능력치 박스는 선수 그림 위에 쌓인다 (user req 2026-11-15) - 같은 카드틀을 한 장 더 깔고 박스 자리만 보이게 오려 선수 그림(z 1) 위(z 2)에 둔다 */
.card.rise .cGlow2.tr{display:block;z-index:2;pointer-events:none;background:url(img/rise_frame.webp) center/100% 100% no-repeat;clip-path:inset(5.9% 7.4% 82.9% 66.8% round 6px)}
.card.rise .cName{color:#fff;text-shadow:0 1px 3px rgba(4,40,90,.8),0 0 12px rgba(92,200,255,.7)}
.card.my .cGlow{background:radial-gradient(130% 92% at 50% 0%,rgba(245,197,24,.34),transparent 66%),
  linear-gradient(168deg,#2A2410,#10162C 60%)}
.myTag{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%) rotate(-7deg);z-index:3;
  font-size:12px;font-weight:900;letter-spacing:.14em;color:#FFE99B;
  text-shadow:0 0 14px rgba(245,197,24,.9);pointer-events:none}
.skillIcon{width:22px;height:22px;border-radius:50%;overflow:hidden;flex:none}
.skillIcon img{width:100%;height:100%;display:block}

/* ---------- tabs / chips ---------- */
.tabs{display:flex;gap:6px;padding:4px;background:rgba(255,255,255,.04);
  border-radius:12px;border:1px solid var(--line)}
.tabs button{flex:1;padding:9px 8px;border-radius:9px;font-size:13px;font-weight:700;color:var(--dim)}
.tabs button.on{background:var(--ui);color:#fff}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{padding:6px 11px;border-radius:999px;font-size:12px;font-weight:700;
  background:rgba(255,255,255,.05);border:1px solid var(--line);color:var(--dim)}
.chip.on{background:var(--ui);color:#fff;border-color:transparent}
.rdChips{display:flex;flex-wrap:wrap;gap:6px}

/* ---------- tables ---------- */
.tblWrap{overflow-x:auto;border-radius:var(--r);border:1px solid var(--line)}
table{border-collapse:collapse;width:100%;font-size:12.5px;white-space:nowrap}
th,td{padding:9px 10px;text-align:right}
th:first-child,td:first-child,th.l,td.l{text-align:left}
thead th{background:rgba(255,255,255,.05);color:var(--dim);font-weight:700;font-size:11px;
  position:sticky;top:0;letter-spacing:.04em}
tbody tr{border-top:1px solid rgba(255,255,255,.055)}
tbody tr.me{background:color-mix(in srgb,var(--team) 16%,transparent)}
tbody tr:hover{background:rgba(255,255,255,.035)}
.teamDot{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:7px;vertical-align:-1px}
.pName{color:var(--txt);font-weight:700}   /* never tinted by team colour (§79, §91.9) */

/* ---------- forms ---------- */
.field{margin-bottom:14px}
.label{font-size:12px;color:var(--dim);font-weight:700;margin-bottom:7px;display:block}
.input{width:100%;padding:12px 14px;border-radius:12px;background:rgba(0,0,0,.30);
  border:1px solid var(--line);outline:none;font-size:15px}
.input:focus{border-color:var(--acc)}
.swatches{display:flex;gap:9px;flex-wrap:wrap}
.swatch{width:42px;height:42px;border-radius:12px;border:2px solid transparent;position:relative;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.swatch.on{border-color:#fff;transform:scale(1.06)}
.swatch.on::after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;
  font-size:16px;font-weight:900;color:var(--sw-ink,#fff);text-shadow:0 1px 5px rgba(0,0,0,.8)}
/* swipeable, one page of logos at a time - not everything crammed on screen (user req) */
.logoCarousel{display:flex;align-items:center;gap:6px}
.logoPick{flex:1;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;border-radius:13px;min-width:0}
.logoPick::-webkit-scrollbar{display:none}
.logoPage{flex:0 0 100%;scroll-snap-align:start;display:grid;
  grid-template-columns:repeat(4,1fr);gap:9px;padding:2px 1px}
.logoOpt{aspect-ratio:1;border-radius:13px;display:grid;place-items:center;
  background:rgba(0,0,0,.26);border:1px solid var(--line)}
.logoOpt.on{border-color:var(--ui);background:color-mix(in srgb,var(--ui) 18%,transparent);
  box-shadow:0 0 0 1px var(--ui)}
.logoNav{flex:none;width:30px;height:30px;border-radius:50%;background:rgba(0,0,0,.32);
  border:1px solid var(--line);color:var(--txt);font-size:18px;line-height:1;
  display:grid;place-items:center;cursor:pointer}
.logoNav:disabled{opacity:.25;cursor:default}
.logoDots{display:flex;justify-content:center;gap:6px;margin-top:10px}
.logoDot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.22);
  border:none;padding:0;cursor:pointer;transition:width .15s,background .15s}
.logoDot.on{background:var(--ui);width:16px;border-radius:3px}
.langPick{display:flex;gap:6px}

/* ---------- game screen ---------- */
#scGame{background:#04070F}
#fieldWrap{position:relative;flex:1;min-height:0;overflow:hidden}
#field{position:absolute;inset:0;width:100%;height:100%;display:block}
#hud{position:absolute;inset:0;pointer-events:none}
/* score box + ball-strike-out count now share one top-left flex row (user
   req: 볼카운트 박스를 스코어 박스 옆으로 이동) - .sb no longer positions
   itself; the wrapper does, and .countBox sits beside it as a plain flex
   child instead of being separately docked under the diamond. */
.sbWrap{position:absolute;top:10px;left:10px;display:flex;align-items:flex-start;gap:8px}
.sb{display:flex;flex-direction:column;gap:3px;
  background:rgba(4,9,20,.82);border:1px solid var(--line);border-radius:12px;padding:8px 11px;
  backdrop-filter:blur(8px);pointer-events:auto}
.sbRow{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700}
.sbRow i{width:16px;height:16px;flex:none;display:grid;place-items:center}
.sbRow i canvas{display:block}
.muLogo{display:inline-grid;place-items:center;width:22px;height:22px}
.sbRow span{flex:1;max-width:108px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sbRow b{font-family:var(--display);font-size:21px;line-height:1;min-width:22px;text-align:right}
/* now holds only the inning indicator (user req: 기존 아웃카운트/볼카운트
   텍스트는 삭제하고 이닝 표시만 남기기) - the old count/outs dot readouts
   were removed; live ball-strike-out state now shows only in .countBox. */
.sbFoot{display:flex;align-items:center;gap:9px;margin-top:4px;padding-top:5px;
  border-top:1px solid var(--line);font-size:12px;font-weight:700;color:var(--dim)}
/* pause button sits top-right on its own, above the base diamond, which is
   nudged down to clear it (user req) */
.pauseBtn{position:absolute;top:10px;right:10px;pointer-events:auto;z-index:1;
  background:rgba(4,9,20,.72)}
/* 연속 진행 표시 (user req 2026-11-01): 인게임 상단 중앙, 누르면 이 경기가 끝나고 연속 진행이 멈춘다 */
.chainBadge{position:absolute;top:70px;left:50%;transform:translateX(-50%);z-index:5;pointer-events:auto;
  padding:5px 12px;border-radius:14px;border:1px solid var(--gold,#f5c542);background:rgba(4,9,20,.78);
  color:var(--gold,#f5c542);font-size:12px;font-weight:800;letter-spacing:.02em;white-space:nowrap;cursor:pointer;
  animation:chainPulse 1.6s ease-in-out infinite}
.chainBadge[hidden]{display:none}
.chainCnt{position:absolute;right:16px;top:50%;transform:translateY(-50%);width:26px;height:26px;border-radius:50%;box-sizing:border-box;
  display:flex;align-items:center;justify-content:center;border:2px solid rgba(255,255,255,.85);background:rgba(255,255,255,.16);
  font-weight:900;font-size:13px;line-height:1;font-variant-numeric:tabular-nums}
.chainBadge.stopping{animation:none;color:var(--dim,#9aa7bd);border-color:var(--dim,#9aa7bd)}
@keyframes chainPulse{0%,100%{opacity:1}50%{opacity:.55}}
.dia{position:absolute;top:54px;right:10px;width:92px;height:74px;pointer-events:none}
/* catcher arm readout (user req: 주자 있을 때 다이아몬드 아래 현재 수비중인
   포수 송구 능력치 표시) - fixed-position text under the diamond, blanked
   (not display:none) when no runner is on so .gTools below it never has to
   move; own absolute top, so it never depends on .dia's or .gTools' layout. */
.catcherThrow{position:absolute;top:130px;right:10px;width:92px;text-align:center;
  font-size:10.5px;font-weight:800;color:#fff;letter-spacing:.01em;white-space:nowrap;
  text-shadow:0 1px 4px rgba(0,0,0,.75);pointer-events:none}
/* ball-strike-out count (user req: 우측 상단 스코어 옆에 볼카운트 표시,
   이후 스코어 박스 옆으로 이동) - a plain flex child of .sbWrap now, sitting
   right beside the score box instead of being separately docked top-right. */
.countBox{display:flex;flex-direction:column;
  gap:4px;background:rgba(4,9,20,.82);border:1px solid var(--line);border-radius:10px;
  padding:7px 10px;backdrop-filter:blur(8px);pointer-events:none}
.cbRow{display:flex;align-items:center;gap:5px}
.cbRow span{width:9px;font-size:10.5px;font-weight:800;color:var(--dim);text-align:center;line-height:1}
.cbRow i{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.14);flex:none}
.cbB i.on{background:var(--green)}
.cbS i.on{background:var(--gold)}
.cbO i.on{background:var(--red)}
/* batter/pitcher info boxes (§J) - docked flush to the field view's own
   bottom edge (and left/right edge respectively), per user req: "한 쪽
   면이 화면 끝에 붙어 있는 모습" - the two flush sides carry no border or
   radius, only the inner corner is rounded, matching the other HUD chrome's
   dark-panel-with-blur look otherwise */
/* .piBox used to be position:absolute;bottom:0 itself; it's now a normal-
   flow child of .piWrap (below), which took over that same bottom:0
   placement, so the new .skillBadge sibling above it (also normal flow)
   stacks directly on top of it at whatever height the badge needs, instead
   of the box having to know the badge's height in advance (user req, §J
   skill badge). Visually unchanged when no badge is shown. */
.piWrap{position:absolute;bottom:0;display:flex;flex-direction:column;gap:5px}
.piWrapBat{left:0;align-items:flex-start}
.piWrapPit{right:0;align-items:flex-end}
.piBox{display:flex;flex-direction:column;gap:3px;
  max-width:54vw;padding:8px 11px;background:rgba(4,9,20,.82);border:1px solid var(--line);
  backdrop-filter:blur(8px)}
.piBat{border-left:0;border-bottom:0;border-radius:0 12px 0 0}
.piPit{border-right:0;border-bottom:0;border-radius:12px 0 0 0}
.piRow1{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:800;white-space:nowrap}
.piRow1 .piNum{font-family:var(--display);font-size:15px;color:var(--gold);min-width:14px}
.piRow1 .piName{overflow:hidden;text-overflow:ellipsis;max-width:98px}
.piRow1 .piPos{font-size:10.5px;font-weight:700;color:var(--dim)}
.piRow2{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--dim);flex-wrap:wrap}
.piRow2 b{color:var(--txt);font-weight:800}
/* 투수 체력: 50% 미만 노랑, 20% 미만 빨강 (user req 2026-10-02) */
.piRow2 b.stamMid{color:#F5C842}
.piRow2 b.stamLow{color:#FF5A4F}
.piPit .piRow1,.piPit .piRow2{justify-content:flex-end}
/* skill-active badge (user req, §J skill badge): same dark glass chip
   language as .piBox/.countBox, pill-shaped, gold accent text matching the
   game's other "special" highlights (.myTag, jersey numbers) - reuses the
   very same .skillIcon 22px round-icon rule the player-card/detail modal
   already draw the same 3 skill icons with (ui.js), so the icon art
   itself never needed any new CSS. */
.skillBadge{display:flex;align-items:center;gap:6px;padding:4px 12px 4px 5px;
  background:rgba(4,9,20,.82);border:1px solid var(--line);border-radius:999px;
  backdrop-filter:blur(8px);font-size:11.5px;font-weight:800;color:#FFE99B;
  text-shadow:0 0 10px rgba(245,197,24,.55);white-space:nowrap}
/* moved off the old top-center spot into the slot .countBox vacated when it
   docked next to the score box - top-center used to sit right over the
   score/count row on narrow phone widths (user req: 볼카운트 박스랑 안
   겹치게 위치 조정), and this right-edge column (under the pause button +
   diamond) is otherwise empty now. */
.gTools{position:absolute;top:150px;right:10px;display:flex;gap:6px;pointer-events:auto}

/* controls */
#controls{position:relative;flex:none;background:rgba(6,11,22,.96);border-top:1px solid var(--line);
  padding:9px 10px calc(9px + var(--safeB))}
.ctlRow{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.ctlRow .btn{flex:1 1 92px;min-width:82px;padding:11px 8px;font-size:13px}
.ctlRow .btn.sel,#btnSteal.sel{border-color:var(--gold);background:linear-gradient(180deg,rgba(80,64,16,.9),rgba(46,36,8,.9))}
/* 도루/견제 버튼은 이제 타격/투구 버튼 줄 안에 같이 놓인다 (user req 2026-11-13) - 타자 8개(4×2: 도루는 대기 옆), 투수 9개(3×3: 견제는 마지막 칸).
   아래 보조 줄(.ctlSide)에는 교체 버튼만 남았고 그것도 일시정지 팝업으로 옮겨져 숨겨져 있으므로 자리를 차지하지 않는다 */
.ctlSide{display:none}
#controls .ctlRow .btn{min-width:0}
#batPanel .btn{flex:1 1 22%}
#pitPanel .btn{flex:1 1 30%}
#scGame.derbyMode #batPanel #btnSteal{display:none !important}

/* effects */
#fx{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:5}
.fxItem{position:absolute;display:flex;flex-direction:column;align-items:center;gap:4px;
  animation:pop .28s cubic-bezier(.2,1.5,.4,1)}
.fxItem.out{animation:fade .4s forwards}
.fxItem span{font-family:var(--display);font-size:clamp(46px,13vw,104px);letter-spacing:.07em;
  line-height:1;text-shadow:0 6px 30px rgba(0,0,0,.9)}
.fxItem em{font-style:normal;font-size:clamp(13px,3vw,18px);font-weight:800;color:#FFE99B;
  text-shadow:0 3px 14px rgba(0,0,0,.9)}
.fxItem.strike span,.fxItem.k span{color:#FF6B5E}
.fxItem.ball span,.fxItem.walk span{color:#6FD3FF}
.fxItem.out span{color:#FF5E5E}
.fxItem.safe span{color:#4BE08A}
/* user req: 수비수가 송구로 승부를 하지 않은 안타 전용 'HIT' 효과 - 세이프와
   같은 계열의 '타자가 무사히 출루했다'는 긍정적 호출이라 같은 초록 톤을
   그대로 쓴다 (텍스트/사운드 조건만 SAFE와 달라짐, game.js finishPlay) */
.fxItem.hit span{color:#4BE08A}
.fxItem.foul span{color:#FFD166}
.fxItem.hbp span{color:#DDF1FF;font-size:clamp(20px,5vw,40px);
  background:linear-gradient(180deg,#2E7FD8,#1B4E96);border:1px solid #6FC1FF;
  border-radius:12px;padding:8px 18px;box-shadow:0 10px 30px -10px #2E7FD8}
/* user req: 고의사구 효과 'INTENTIONAL WALK' - 일반 WALK 배너의 큰 기본
   크기로는 이 긴 문구가 넘치므로, 위 .hbp와 같은 알약형 배지로 표시 */
.fxItem.ibb span{color:#DDF1FF;font-size:clamp(18px,4.5vw,36px);
  background:linear-gradient(180deg,#2E7FD8,#1B4E96);border:1px solid #6FC1FF;
  border-radius:12px;padding:8px 18px;box-shadow:0 10px 30px -10px #2E7FD8}
.fxItem.hr span{color:#FFD45E;font-size:clamp(54px,16vw,128px);
  text-shadow:0 0 40px rgba(255,200,70,.85),0 6px 30px rgba(0,0,0,.9)}
.fxItem.hr.gs span{font-size:clamp(40px,12.5vw,100px)}
.fxItem.ko span{font-family:inherit;font-weight:900;letter-spacing:.02em;
  font-size:clamp(30px,8vw,64px)}
.fxItem.inning span{font-size:clamp(20px,5vw,40px);color:#BFD4F5}
.fxItem.sub span{font-size:clamp(18px,4.5vw,32px);color:#BFD4F5}
.fxItem.nice span{font-size:clamp(20px,5vw,36px);color:#6FE3B0}
.fxItem.iff span{color:#FFE9A8;font-size:clamp(20px,5vw,38px);letter-spacing:.04em;
  background:linear-gradient(180deg,#B9791A,#7C4A08);border:1px solid #FFD27A;
  border-radius:12px;padding:8px 18px;box-shadow:0 10px 30px -10px #E0A82E}
.fxItem.bang span{font-size:clamp(40px,10vw,70px);color:#FFD166}
/* user req 2026-09-28: 수비 실책 "!" 표시 사이즈를 폭투/몸에맞는공 경고
   (.bang, 위)보다 작게 - 실책 표시는 수비상황뷰의 작게 압축된 수비수 스프라이트
   머리 위에 뜨는 것이라, 그 큰 사이즈 그대로 쓰면 몸집에 비해 지나치게 커
   보인다. 같은 색(#FFD166)은 유지하고 크기만 줄인 전용 클래스 - game.js의
   실책 fx() 호출만 이 클래스를 쓰고, 폭투/몸에맞는공 쪽 .bang은 그대로 둔다. */
.fxItem.errbang span{font-size:clamp(16px,4vw,26px);color:#FFD166}
@keyframes pop{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}
@keyframes fade{to{opacity:0;transform:scale(1.14) translateY(-10px)}}

/* My Player Mode auto-progress indicator (user req: 화면 중간에서 살짝 아래
   "자동진행"이라고 계속 표시) - a step below #fx's own vertically-centered
   call text (STRIKE/BALL/OUT etc.), so the two never sit on top of each
   other even during the one auto-simmed pitch per PA that does animate */
#autoIndicator{position:absolute;left:50%;top:60%;transform:translate(-50%,-50%);z-index:4;
  pointer-events:none;background:rgba(10,14,24,.62);color:#EAF2FF;font-weight:800;font-size:13px;
  letter-spacing:.04em;padding:7px 16px;border-radius:999px;border:1px solid rgba(255,255,255,.18);
  opacity:0;transition:opacity .18s}
#autoIndicator.on{opacity:1}

/* score popup (user req: 득점 시 화면 가운데에서 살짝 아래에 표시, 직사각형
   박스가 가운데를 기준으로 양쪽이 각 팀 팀컬러로 나뉨, 득점마다 2초 정도
   떴다 사라짐) - sits a step above #fx's own vertically-centered call text
   (STRIKE/OUT/etc, z:5, top:50%) at top:57%, close enough to read as
   "center, slightly below" without ever landing exactly on top of it. */
#scorePop{position:absolute;left:50%;top:57%;transform:translate(-50%,-50%) scale(.85);
  z-index:5;pointer-events:none;opacity:0;display:flex;align-items:stretch;
  border-radius:var(--r);overflow:hidden;border:1px solid rgba(255,255,255,.22);
  box-shadow:0 14px 38px -12px rgba(0,0,0,.8);
  transition:opacity .22s ease,transform .22s cubic-bezier(.2,1.5,.4,1)}
#scorePop.show{opacity:1;transform:translate(-50%,-50%) scale(1)}
/* each half is tinted by ITS team's own color (--c, set inline per side) -
   the two halves meeting edge-to-edge at .spMid is what reads as "split
   right down the middle" (user req: 가운데를 기준으로 양쪽이 각 팀 팀컬러로
   나뉘도록); color-mix keeps the app's own dark-navy panel look underneath
   so the text stays readable no matter how light or saturated a club's own
   color happens to be, same approach as the matchup card (§34). */
/* user req: 득점 배너를 옆으로 조금 더 길게 - 세로 높이나 글자 크기는 그대로
   두고 가로 패딩/최소폭/간격만 늘려서 박스 자체를 좀 더 길쭉하게 늘였다 */
.spSide{display:flex;align-items:center;gap:11px;padding:12px 28px;min-width:96px;
  background:linear-gradient(150deg,color-mix(in srgb,var(--c) 46%,rgba(14,22,44,.97)),rgba(9,15,30,.98))}
.spSide.spAway{justify-content:flex-end}
.spSide.spHome{flex-direction:row-reverse;justify-content:flex-end}
.spLogo{display:flex;flex:none}
.spScore{font-family:var(--display);font-size:clamp(26px,6.5vw,38px);color:#fff;
  line-height:1;text-shadow:0 3px 14px rgba(0,0,0,.85);min-width:.6em;text-align:center}
.spMid{flex:none;display:flex;align-items:center;padding:0 8px;background:rgba(7,11,22,.98);
  font-family:var(--display);font-size:clamp(15px,3.6vw,21px);color:var(--dim2)}

/* home run name/season-HR banner (user req: 홈런 타구가 담장을 넘어 떨어진
   시점에 기존 'HOMERUN' 연출은 그대로 두고, 그 아래 "선수A 시즌 13호 홈런"
   형태의 배너를 타자 주자가 홈 베이스에 들어왔을 때까지 유지, 득점 시 뜨는
   #scorePop과 위치가 겹치지 않도록). #fx's own centered "HOME RUN" call text
   sits around 50%, #scorePop sits at top:57% - this drops well clear of
   both, in its own band below #scorePop's box instead of directly under the
   HOMERUN text the way fx()'s old sub-line used to sit (that line shared
   #fx's own centered block, which is exactly why it could never be timed
   independently of the HOMERUN call itself). */
#hrBanner{position:absolute;left:50%;top:69%;transform:translate(-50%,-50%) scale(.92);
  z-index:5;pointer-events:none;opacity:0;max-width:88vw;padding:8px 20px;
  border-radius:999px;background:rgba(10,14,24,.74);border:1px solid rgba(255,212,94,.55);
  box-shadow:0 10px 30px -12px rgba(0,0,0,.8);
  font-family:var(--display);font-size:clamp(14px,3.6vw,20px);font-weight:800;
  color:#FFE99B;letter-spacing:.03em;text-align:center;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;text-shadow:0 3px 14px rgba(0,0,0,.9);
  transition:opacity .22s ease,transform .22s cubic-bezier(.2,1.5,.4,1)}
#hrBanner.show{opacity:1;transform:translate(-50%,-50%) scale(1)}

/* My Player reveal (user req: 마이플레이어 투수/타자 등판 시 로고 화면
   중앙에서 살짝 상단에 표시됐다가 사라지도록) - z:7 already clears #matchup's
   own z:6 (paint order was always correct even when a controlled PA's
   matchup card opens at the very same GM.nextBatter beat). Two earlier
   fixed-% passes here (a full-screen dim, then top:9%, then top:12%) each
   only worked for ONE #fieldWrap aspect ratio: #matchup's own card sits at
   a very different height depending on layout - the portrait phone view
   stacks its two .muCard rows into one TALL block starting high up (~20%
   down), a wide/landscape view lays them out side by side into one SHORT
   block that still centers in the same full-height box and so starts much
   lower - and a % tuned for one left either an overlap or a big gap in the
   other, exactly what the user's 3rd follow-up screenshot showed (a large
   empty gap on a wide layout). game.js's showMyPlayerFx now measures
   #matchup's actual rendered card each time and sets --mpfH to land this
   banner's bottom edge a fixed ~10px above it, whatever the layout - this
   block just consumes that variable instead of a fixed top/center %. */
#myPlayerFx{position:absolute;left:0;right:0;top:0;height:var(--mpfH,30%);
  z-index:7;pointer-events:none;opacity:0;display:flex;align-items:flex-end;justify-content:center;
  transition:opacity .25s ease}
#myPlayerFx.show{opacity:1}
#myPlayerFx img{max-width:min(64vw,260px);max-height:120px;width:auto;height:auto;
  filter:drop-shadow(0 12px 30px rgba(0,0,0,.7));transform:scale(.82);
  transition:transform .25s cubic-bezier(.2,1.5,.4,1)}
#myPlayerFx.show img{transform:scale(1)}

/* pitcher/batter change banner (user req: 투수 혹은 타자 교체 시 타석 화면
   중간에 OUT/IN 선수 카드 배너가 뜨도록 - 스텟 없이 카드 이미지, 이름,
   포지션만). Same reused-DOM-node/restart-the-transition pattern as
   #scorePop and #myPlayerFx (showChangeFx, game.js) - a dimmed backdrop
   like #matchup's own so the swap actually reads as an event worth
   noticing, but pointer-events:none and self-dismissing since, unlike
   #matchup, there's nothing here to tap. z-index 7 sits with #myPlayerFx
   (both transient reveals that never fire at the same moment as each
   other) and above #matchup's own z:6, so it's never the one left hidden
   if a game ever did manage to queue both. */
#changeFx{position:absolute;inset:0;z-index:7;display:flex;align-items:center;justify-content:center;
  pointer-events:none;padding:16px;opacity:0;background:rgba(3,7,16,0);
  transition:opacity .25s ease,background .25s ease}
#changeFx.show{opacity:1;background:rgba(3,7,16,.72)}
.chCard{--c:#3D8FE0;width:min(400px,100%);border-radius:var(--r2);overflow:hidden;
  background:linear-gradient(165deg,color-mix(in srgb,var(--c) 20%,rgba(8,13,26,.97)),rgba(5,9,18,.98));
  border:1px solid color-mix(in srgb,var(--c) 46%,transparent);
  box-shadow:0 24px 60px -18px rgba(0,0,0,.75),0 0 0 1px rgba(255,255,255,.03) inset;
  transform:scale(.86) translateY(6px);transition:transform .3s cubic-bezier(.2,1.4,.4,1)}
#changeFx.show .chCard{transform:scale(1) translateY(0)}
.chRow{display:flex;align-items:center;gap:12px;padding:14px 16px;position:relative;overflow:hidden}
.chRow::before{content:'';position:absolute;inset:0;z-index:0;opacity:.5;
  background:linear-gradient(100deg,transparent 0%,transparent 62%,color-mix(in srgb,var(--c) 55%,transparent) 63%,
    transparent 64%,transparent 76%,color-mix(in srgb,var(--c) 30%,transparent) 77%,transparent 78%)}
.chRow.chIn::before{background:linear-gradient(280deg,transparent 0%,transparent 62%,
    color-mix(in srgb,var(--c) 55%,transparent) 63%,transparent 64%,transparent 76%,
    color-mix(in srgb,var(--c) 30%,transparent) 77%,transparent 78%)}
.chRow.chIn{flex-direction:row-reverse;text-align:right}
.chArt{position:relative;z-index:1;flex:none;width:82px;height:98px;display:grid;place-items:end center;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.6))}
.chInfo{position:relative;z-index:1;flex:1;min-width:0;display:flex;flex-direction:row;
  align-items:baseline;flex-wrap:wrap;gap:9px}
.chRow.chIn .chInfo{justify-content:flex-end}
.chTag{font-family:var(--display);font-size:15px;letter-spacing:.16em;color:var(--dim2)}
.chRow.chOut .chTag{color:var(--dim)}
.chRow.chIn .chTag{color:var(--gold)}
.chName{font-size:23px;font-weight:900;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chPos{font-size:14px;font-weight:800;color:var(--c);letter-spacing:.03em}
.chMid{position:relative;display:flex;align-items:center;gap:8px;padding:2px 16px;
  background:rgba(0,0,0,.32);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.chMidLine{flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--line2))}
.chMidLine:last-child{background:linear-gradient(270deg,transparent,var(--line2))}
.chIcon{flex:none;width:30px;height:30px;display:grid;place-items:center;color:var(--c)}
.chIcon svg{width:22px;height:22px}
.chTitle{flex:none;font-family:var(--display);font-size:15px;letter-spacing:.14em;color:var(--txt);
  text-shadow:0 2px 10px rgba(0,0,0,.6)}

/* matchup card (§34) */
#matchup{position:absolute;inset:0;z-index:6;display:none;align-items:center;justify-content:center;
  background:rgba(3,7,16,.80);backdrop-filter:blur(5px);padding:14px;cursor:pointer}
#matchup.show{display:flex;animation:pop .22s ease}
.mu{display:flex;align-items:center;gap:10px;width:min(880px,100%)}
@media(max-width:700px){.mu{flex-direction:column;gap:6px}}
.muCard{flex:1;display:flex;gap:10px;padding:12px;border-radius:var(--r2);min-width:0;
  background:linear-gradient(150deg,color-mix(in srgb,var(--c) 26%,rgba(14,22,44,.96)),rgba(10,17,34,.97));
  border:1px solid color-mix(in srgb,var(--c) 42%,transparent)}
.muArt{flex:none;width:108px;height:132px;display:grid;place-items:end center}
.muInfo{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;justify-content:center}
.muTop{display:flex;gap:6px;align-items:center}
.muTop .ovr{font-size:12px;font-weight:900;padding:2px 8px;border-radius:7px;
  background:rgba(0,0,0,.45);border:1px solid var(--line2)}
.muName{font-size:17px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.muName em{font-style:normal;font-size:11.5px;color:var(--dim);font-weight:700;margin-left:5px}
.muStat{font-size:11.5px;color:var(--dim);font-weight:700}
/* §91.19 타석별 결과 배지 (user req: 안타/2루타/3루타/홈런/볼넷/사구/희생타는
   파란색 네모 박스, 삼진/뜬공/땅볼/병살타/직선타는 빨간색 네모 박스) - same
   filled-box-with-border look #fx already uses for its .hbp call (colored
   gradient + matching border), just at chip scale and in the two colors the
   user asked for instead of #fx's own per-call palette. */
.muPaLog{display:flex;gap:4px;flex-wrap:wrap;margin-top:1px}
.paChip{font-size:10px;font-weight:800;padding:3px 7px;border-radius:6px;line-height:1.3;
  color:#fff;white-space:nowrap;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.paChip.blue{background:linear-gradient(180deg,#2E7FD8,#1B4E96);border:1px solid #6FC1FF}
.paChip.red{background:linear-gradient(180deg,#D8452E,#961B1B);border:1px solid #FF8F7C}
.muAttr{display:flex;gap:4px;flex-wrap:wrap;margin-top:2px}
.muAttr span{display:flex;flex-direction:column;align-items:center;gap:1px;padding:4px 7px;
  border-radius:8px;background:rgba(0,0,0,.34);min-width:44px}
.muAttr em{font-style:normal;font-size:9.5px;color:var(--dim2)}
.muAttr b{font-size:13px}
.muVs{font-size:16px;font-weight:900;color:var(--dim2);letter-spacing:.1em}
.muZone{flex:none;display:flex;align-items:center}
@media(max-width:560px){.muZone{display:none}}

/* hot & cold chart (§37) */
.hczWrap{display:flex;flex-direction:column;align-items:center;gap:5px}
.hczWrap small{font-size:9.5px;color:var(--dim2);letter-spacing:.1em;font-weight:800}
.hcz{display:grid;grid-template-columns:repeat(3,var(--cell,22px));
  grid-auto-rows:var(--cell,22px);gap:2px;padding:3px;border-radius:7px;
  background:rgba(0,0,0,.5);border:1px solid var(--line2)}
.hcz i{display:grid;place-items:center;font-style:normal;border-radius:3px;
  font-size:calc(var(--cell,22px)*0.40);font-weight:800;
  color:rgba(255,255,255,.95);text-shadow:0 1px 2px rgba(0,0,0,.65)}

/* ---------- pregame intro (§H, user req: 인게임 경기 시작 시 인트로) ----------
   sits on top of the whole live-game screen (#fieldWrap+#controls) - #scGame
   (a .screen) is the nearest positioned ancestor, so inset:0 here fills the
   exact same box. z-index 50 clears the HUD (#fx z:5, #matchup z:6) but
   stays below the modal (z:40)... except the modal never opens over the
   live-game screen while the intro's own click-to-advance is live, and
   #scoutFx (z:80) belongs to a different screen entirely, so no conflict. */
#introOverlay{position:absolute;inset:0;z-index:50;background:#04070F;overflow:hidden;cursor:pointer}
.introScene{position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;animation:introFade .35s ease}
@keyframes introFade{from{opacity:0}to{opacity:1}}

/* ---- scene 1: both team logos on their own team-colour chip (§1) ----
   no position rule of its own: .introScene (above) already makes the scene
   host itself position:absolute + full-size, which is what an absolutely
   positioned child like .i1Bg below needs to fill it - redeclaring
   position:relative here would just override that full-size behaviour back
   down to shrink-to-content (caught in verification: the scene collapsed to
   ~144px tall instead of the full screen), so scene classes below only ever
   add layout/visual rules, never touch position. */
/* user req: 맨 첫 번째 양팀 로고 보이는 장면에 배경 경기장 수비상황뷰 모습으로
   깔아주기 - stadium_wide.jpg is the exact same wide defensive-view plate the
   live field canvas cuts to for every fielded ball (VIEW.field, field.js),
   used here as a plain CSS background rather than run through that file's
   homography rig (same reasoning as intro.js's own drawMoundBg for scenes
   4/5 - this is a static backdrop, not a scene that needs real-field
   projection). The darkening gradient stays UNDER the photo in paint order
   (bottom layer) so it still shows through as a fallback if the image
   somehow fails to load, same degrade spirit as assets.js's own "nothing
   here may throw" - just without JS to detect the failure on a plain CSS
   background-image. */
.i1Bg{position:absolute;inset:0;
  background:
    linear-gradient(180deg,rgba(4,7,15,.60) 0%,rgba(4,7,15,.30) 38%,rgba(4,7,15,.72) 100%),
    radial-gradient(120% 90% at 50% 20%,rgba(61,143,224,.10),transparent 60%),
    url('img/stadium_wide.jpg') center 58%/cover no-repeat,
    linear-gradient(180deg,#0B1326 0%,#04070F 70%)}
.i1Row{position:relative;display:flex;align-items:center;gap:clamp(16px,6vw,32px);padding:0 20px}
.i1Side{display:flex;flex-direction:column;align-items:center;gap:14px;min-width:0}
.i1Chip{--tc:#3D8FE0;width:clamp(96px,26vw,136px);height:clamp(96px,26vw,136px);border-radius:24px;
  display:grid;place-items:center;
  background:linear-gradient(160deg,color-mix(in srgb,var(--tc) 92%,#fff),var(--tc));
  box-shadow:0 18px 46px -16px var(--tc),inset 0 0 0 1px rgba(255,255,255,.25)}
.i1Name{font-size:15.5px;font-weight:900;text-align:center;max-width:150px;
  text-shadow:0 2px 10px rgba(0,0,0,.7)}
.i1Vs{font-family:var(--display);font-size:30px;color:var(--gold);letter-spacing:.08em;
  text-shadow:0 2px 16px rgba(0,0,0,.7)}
/* postseason series/game line under the two logos (user req: 인트로 첫
   화면에 "한국시리즈 7차전"처럼 몇 차전인지 표시) - only rendered when scene 1
   is given a `post` round (intro.js sceneTeams), so a regular-season game's
   intro never reserves this space at all. */
.i1Series{position:relative;margin-top:18px;font-size:14.5px;font-weight:800;
  letter-spacing:.02em;color:var(--gold);text-align:center;
  text-shadow:0 2px 10px rgba(0,0,0,.7)}

/* ---- scenes 2/3: team head + lineup table + lineup's OPS-leader card (§2,§3) ----
   user req: 화면 중간 높이로 정렬 (지금 너무 상단에 몰려있어) - .i23Left used to
   be flex:1, which in a column flex layout FORCES it to stretch and fill
   every last pixel of the scene's own height regardless of how tall its
   actual content (head + table rows) is. .introScene's justify-content:center
   never got a chance to do anything, because there was no leftover space
   left to center into - the stretched block already filled the whole
   height, pinned flush to the top since .i23Right (order:1) sits above it.
   flex:0 1 auto here lets the whole i23Right+i23Left stack size to its own
   natural content height instead, so justify-content:center (inherited from
   .introScene, restated below for clarity) actually centers the stack
   vertically, with real margin above and below on a typical lineup. The
   max-height + .i23TblWrap's own overflow-y:auto (unchanged) remain as a
   safety net for an unusually tall viewport-vs-content mismatch, not the
   normal case any more. */
.introS23{flex-direction:column;justify-content:center;gap:10px;padding:14px;width:100%;height:100%;
  box-sizing:border-box;overflow:hidden}
.i23Left{order:2;flex:0 1 auto;min-height:0;max-height:76%;display:flex;flex-direction:column}
.i23Right{order:1;flex:none;display:flex;flex-direction:column;align-items:center;gap:8px}      /* 세로 화면(모바일): 카드를 위, 기록을 아래로 - 예전엔 74px 폭에 억지로 넣어 일러스트가 찌그러졌다 (user req 2026-11-13) */
.i23Head{display:flex;align-items:center;gap:9px;margin-bottom:8px;flex:none}
.i23Head b{font-size:16px;font-weight:900}
/* flex:0 1 auto (not flex:1) here so the table sizes to its actual row count
   instead of stretching to fill whatever indefinite space a content-sized
   .i23Left (flex:0 1 auto above) hands it - flex:1's flex-basis:0% doesn't
   have a real "available space" to grow into when the parent's own height
   is itself content-driven, and produced an off-centre lean toward the top.
   Restated as flex:1 for the >=640px row layout below, where .i23Left is
   genuinely stretched to a fixed height and the table SHOULD fill it. */
.i23TblWrap{flex:0 1 auto;min-height:0;max-height:100%;overflow-y:auto}
.i23Tbl{width:100%;border-collapse:collapse;font-size:12px}
.i23Tbl th{position:sticky;top:0;background:rgba(10,17,34,.97);color:var(--dim);font-size:10px;
  text-transform:uppercase;letter-spacing:.05em;padding:6px 7px;text-align:center;
  border-bottom:1px solid var(--line)}
.i23Tbl th.l,.i23Tbl td.l{text-align:left}
.i23Tbl td{padding:6px 7px;text-align:center;border-bottom:1px solid var(--line)}
.i23CardWrap{width:160px;flex:none}
.i23CardWrap .card{width:100%}
.i23Info{flex:none;width:100%;max-width:340px;min-width:0}
.i23PName{font-size:14.5px;font-weight:900;margin-bottom:2px;text-align:center;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.i23Info .statRow{font-size:11px;padding:3px 0;gap:10px}
@media (max-width:639px) and (max-height:720px){.i23CardWrap{width:132px}}
@media(min-width:640px){
  /* user req: 라인업 박스 길이 자체를 9번 타순까지만 딱 보여지도록 줄이고,
     박스를 중간 높이에 위치하도록 - align-items:stretch (old) forced BOTH
     side-by-side columns to the row's full height regardless of how tall
     their actual content was, which is exactly what left the table box
     mostly empty below row 9 and pinned to the top. align-items:center lets
     each column size to its own natural content height (the table box ends
     right after row 9, the card box ends right after its 3 stat rows) and
     centers each one vertically in the row - no more forced full-height
     stretch on either side. */
  .introS23{flex-direction:row;align-items:center;padding:22px;gap:18px}
  .i23Left{order:1;flex:1.3 1 auto;max-height:88%}
  /* flex:0 1 auto (not flex:1) - same reasoning as the mobile fix above:
     with .i23Left now sized to its own content instead of stretched to a
     definite height, flex:1's flex-basis:0% has no real leftover space to
     grow into and can behave unpredictably. The table just renders at its
     natural 9-row height; max-height + this wrapper's own overflow-y:auto
     (unchanged) stay as a safety net for an unusually long lineup. */
  .i23TblWrap{flex:0 1 auto}
  .i23Right{order:2;flex:1;flex-direction:column;justify-content:center;gap:16px}
  .i23CardWrap{width:160px}
  .i23PName{font-size:17px;text-align:center}
  /* .i23Info{flex:1} (base rule) is for the MOBILE row layout, where it fills
     the remaining ROW width next to the card - here i23Right is a COLUMN
     instead, and that same flex:1 was making i23Info's flex-grow swallow
     every pixel of i23Right's leftover height (card height aside), which
     left nothing for i23Right's own justify-content:center to distribute -
     the card+info block rendered pinned to the top of a tall, mostly-empty
     box instead of centered within it (user-reported, screenshot: 인트로에
     타자 라인업이랑 OPS최고 타자 보여지는 위치). flex:none lets it size to
     its own content (name + 3 stat rows) so the centering actually shows. */
  .i23Info{flex:none;max-width:230px}
  .i23Info .statRow{font-size:13px;padding:7px 0}
}

/* ---- scenes 4/5: pitcher closeup canvas + stat panel (§4,§5) ----
   same note as .introS1 above: no position rule here, only overflow +
   alignment overrides - .introScene's own position:absolute is what must
   stay in effect for this host to actually cover the full screen. */
/* user req: 선발 투수 스텟 - 좌측 상단이 아니라 좌측 중단(세로 중앙)에 뜨도록.
   align-items stays flex-start (still hugs the LEFT edge, unchanged) - only
   justify-content changes, since main-axis here is vertical
   (.introScene's own flex-direction:column) */
.introS45{overflow:hidden;align-items:flex-start;justify-content:center}
.i45Canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
/* .i45Bg (a left-side dark scrim over the whole scene) removed - it read as
   just the left half of the screen going dark for no reason, and the stat
   panel below already sits on its own opaque/blurred background (user req:
   투수 인트로 시 화면 왼쪽만 살짝 검게 변하는데 이 효과 없애줘) */
/* user req (round 2, with a reference screenshot): 투수 스텟창을 투수와 더
   가깝게 - the pitcher sprite is always drawn centred on the canvas
   (drawSpriteFit anchors at w/2), so on a narrow/mobile screen the flat
   22px left margin already sits close to him and must stay untouched, but
   on a wide screen that same 22px leaves a huge gap before reaching centre.
   Below the 640px breakpoint already used for the other intro scenes,
   nothing changes (max(0, 100vw-640px) is 0); above it, the margin grows
   toward the middle of the screen so the panel trails the pitcher instead
   of hugging the left wall, capped so it can never overlap him even on an
   ultra-wide window.
   user req (round 3): 너무 붙었다, 카드 길이의 절반만큼 다시 왼쪽으로 -
   the round-2 result sat too close, so it's pulled back left by half of
   the card's own rendered width (min(240px,68vw), same expression as the
   width property below), floored at the original 22px so it can never
   pass back beyond where it started. */
.i45Stats{position:relative;
  margin:22px 22px 22px max(22px,
    min(calc(22px + max(0px,(100vw - 640px))*0.42), 460px) - min(120px,34vw));
  padding:16px 18px;border-radius:var(--r2);
  background:var(--panel);border:1px solid var(--line);backdrop-filter:blur(10px);
  width:min(240px,68vw)}
/* narrow/mobile screens only: the pitcher sprite is centred on the canvas
   (w/2) at every width, so on a phone-width screen his now-smaller (~60%)
   footprint sits squarely behind the old, wider card and disappears behind
   it entirely. Shrinking the card just on these widths keeps its right
   edge clear of his centred position; the wide-screen rule above is
   untouched since there the horizontal gap to centre is already large. */
@media(max-width:639px){
  .i45Stats{width:min(128px,34vw);padding:10px 12px}
  /* label+value no longer fit side by side at this width without wrapping
     mid-word (e.g. "승-패-HLD-SV") - stack them instead of squeezing */
  .i45Stats .statRow{flex-direction:column;align-items:flex-start;gap:1px;
    font-size:10px;padding:4px 0}
  .i45Stats .statRow b{font-size:11px}
  .i45Head b{font-size:10.5px}
  .i45PName{font-size:14px;margin-bottom:5px}
}
.i45Head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.i45Head b{font-size:12.5px;font-weight:800;color:var(--dim)}
.i45PName{font-size:17px;font-weight:900;margin-bottom:8px}
.i45Stats .statRow{font-size:12px;padding:5px 0}

/* ---------- preview (§32) ---------- */
.pvTeams{display:flex;align-items:center;gap:12px;justify-content:center}
.pvTeam{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;padding:16px 10px;
  border-radius:var(--r2);background:var(--panel);border:1px solid var(--line)}
.pvTeam b{font-size:16px;font-weight:900;text-align:center}
.pvTeam small{font-size:11.5px;color:var(--dim)}
.pvVs{font-family:var(--display);font-size:30px;color:var(--dim2);letter-spacing:.06em}
.bigScore{font-family:var(--display);font-size:52px;line-height:1;margin-top:2px}
.ovrTag,.sbFoot .num,.muTop .ovr{font-family:var(--display);letter-spacing:.03em}
.ovrTag{font-size:15px}
.pvH2H{text-align:center;padding:12px;border-radius:var(--r);background:rgba(255,255,255,.04);
  border:1px solid var(--line);font-size:14px;font-weight:800;margin-top:12px}
.pvH2H small{display:block;font-size:11px;color:var(--dim);font-weight:700;margin-bottom:4px}

/* ---------- box score (§81, §82) ---------- */
.barCmp{display:flex;align-items:center;gap:9px;margin-bottom:9px}
.barCmp .v{font-size:13px;font-weight:900;min-width:30px}
.barCmp .lbl{font-size:11px;color:var(--dim);min-width:46px;text-align:center;font-weight:700}
.barCmp .tr{flex:1;height:9px;border-radius:5px;background:rgba(255,255,255,.07);
  display:flex;overflow:hidden}
.barCmp .tr i{height:100%}
.mvpCard{display:flex;gap:14px;align-items:center;padding:16px;border-radius:var(--r2);
  background:linear-gradient(140deg,rgba(245,197,24,.16),var(--panel));
  border:1px solid rgba(245,197,24,.36)}
.mvpCard .mvArt{width:104px;height:128px;flex:none;display:grid;place-items:end center}

/* ---------- scout result ---------- */
.drawRoster{margin-left:auto;font-size:13px;font-weight:800;color:var(--dim);font-variant-numeric:tabular-nums}
.drawRoster.full{color:var(--red)}
.drawGrid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}
@media(max-width:620px){.drawGrid{grid-template-columns:repeat(3,1fr)}}
.reveal{animation:rv .34s cubic-bezier(.2,1.4,.4,1) backwards}
@keyframes rv{from{opacity:0;transform:translateY(14px) scale(.9)}to{opacity:1;transform:none}}

/* ---------- combine ---------- */
.slots{display:grid;grid-template-columns:repeat(5,minmax(0,150px));justify-content:center;gap:8px}
.slot{position:relative;overflow:hidden;aspect-ratio:112/193;border-radius:var(--r);border:1.5px dashed var(--line2);
  display:grid;place-items:center;color:var(--dim2);font-size:22px;background:rgba(0,0,0,.2)}
.slot.filled{border-style:solid}
.slot .card.inSlot{position:absolute;left:50%;top:50%;margin:0;flex:none;transform-origin:center center;transform:translate(-50%,-50%)}
.odds{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.odds div{flex:1;min-width:104px;padding:10px;border-radius:12px;background:rgba(255,255,255,.04);
  border:1px solid var(--line);text-align:center}
.odds small{display:block;font-size:10.5px;color:var(--dim);margin-bottom:3px}
.odds b{font-size:16px}

/* ---------- my player ---------- */
.posGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.posBtn{padding:13px 6px;border-radius:12px;font-weight:800;font-size:14px;
  background:rgba(255,255,255,.05);border:1px solid var(--line)}
.posBtn.p1{background:linear-gradient(180deg,#2FA96A,#1E7D4C);border-color:#43D68C;color:#fff}
.posBtn.p2{background:linear-gradient(180deg,#8B4BD6,#6A2FB0);border-color:#B57CF5;color:#fff}
.posBtn[disabled]{opacity:.3}

/* ---------- misc ---------- */
.empty{text-align:center;padding:40px 16px;color:var(--dim2);font-size:13px}
.divider{height:1px;background:var(--line);margin:14px 0}
.rowBetween{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mini{font-size:11px;color:var(--dim)}
.bottomTabs{flex:none;display:flex;gap:4px;padding:6px 8px calc(6px + var(--safeB));
  background:rgba(6,11,22,.96);border-top:1px solid var(--line)}
.bottomTabs button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;
  padding:7px 2px;border-radius:10px;font-size:10.5px;font-weight:700;color:var(--dim2)}
.bottomTabs button i{font-style:normal;font-size:17px;display:flex;align-items:center;justify-content:center;height:26px}
.tabIco{height:24px;width:auto;max-width:34px;object-fit:contain;opacity:.5}
.bottomTabs button.on .tabIco{opacity:1}
.bottomTabs button.on{color:var(--ui);background:color-mix(in srgb,var(--ui) 14%,transparent)}
.modal{position:fixed;inset:0;z-index:40;display:none;align-items:center;justify-content:center;
  background:rgba(3,7,16,.78);backdrop-filter:blur(6px);padding:16px}
.modal.on{display:flex}
.modalCard{width:min(560px,100%);max-height:86vh;overflow-y:auto;background:var(--panel2);
  border:1px solid var(--line2);border-radius:var(--r2);padding:18px;animation:pop .22s ease}
.modalCard h3{margin:0 0 10px;font-size:17px;font-weight:900}
.modalCard p{margin:0 0 16px;font-size:13.5px;color:var(--dim);line-height:1.6}
.modalBtns{display:flex;gap:8px;flex-wrap:wrap}.modalBtns .btn{flex:1}
.modalBtns .btn.full{flex:1 1 100%}
.modalBrk{flex-basis:100%;height:0}
.modalBtns .btn.lvUp{flex:1.6 1 0;white-space:nowrap;padding-left:6px;padding-right:6px}   /* 레벨업 + 골드 금액이 한 줄에 */
.modalBtns .btn.lvUp .itemIco{margin:0 2px 0 0}
.modalBtns .btn.itemUse{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:9px 4px}
.modalBtns .btn.itemUse .itemIco{width:30px;height:30px;margin:0}
.modalBtns .btn.itemUse .iuName{font-size:12px;font-weight:800;line-height:1.15;text-align:center;word-break:keep-all}
.modalBtns .btn.itemUse small{font-size:11px;color:var(--dim);font-weight:700}   /* 선수 상세: 아이템 사용·레벨업 등 긴 버튼은 한 줄을 다 쓴다 */
.expBar{height:5px;border-radius:3px;background:rgba(255,255,255,.1);overflow:hidden;margin-top:5px}
.expBar i{display:block;height:100%;background:linear-gradient(90deg,var(--acc2),var(--gold))}
.statRow{display:flex;justify-content:space-between;align-items:center;padding:7px 0;
  border-bottom:1px solid rgba(255,255,255,.055);font-size:13px}
.statRow b{font-weight:800}.statRow .up{color:var(--green);font-size:11px;margin-left:5px}
/* 부상으로 감소된 능력치 (user req: 노란색으로 표기) - the number itself
   turns this color (not a small side note like .up above), since it's
   already showing the actual reduced value, not the original one */
.statRow b.injured{color:var(--gold)}

/* ---------- achievements (업적, user req) ----------
   one row per achievement, listed inside a .panel by UI.achievements
   (ui.js); the plain panel2 background is the default (not-yet-achieved
   OR achieved-but-unclaimed) state, and .claimed is the one explicit
   visual the user asked for: the whole row turns black once its reward
   has been collected, its button already reading '획득완료' and disabled
   via the shared .btn[disabled] look every other disabled button here
   uses (style.css line ~70) - no separate CSS needed for the button
   itself. */
.achRow{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 14px;border-radius:12px;background:var(--panel2);
  border:1px solid var(--line);margin-bottom:8px;transition:.16s}
.achRow:last-child{margin-bottom:0}
.achName{font-size:13px;font-weight:800}
.achReward{font-size:11px;color:var(--dim);margin-top:3px}
.achRow.claimed{background:#000;border-color:#000}
.achRow.claimed .achName{color:var(--dim2)}
.achRow.claimed .achReward{color:#3a3a3a}
.lockTag{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--dim2)}

/* ---------- attendance calendar (출석체크, user req 2026-09-28) ----------
   today-card + a 28-cell grid, both inside .panel (ui.js UI.attendance).
   The grid is 7 columns so four rows cover the full 28-day cycle (user
   req: 한 줄에 7일까지의 보상이 표시되는 달력 형태로). Three cell states:
   .today mirrors the achievement tile's own "!" badge look (own standalone
   rule below - it isn't nested under .menuTile the way that one is, so it
   needs its own copy of the same circle/shadow rather than inheriting it);
   .claimed reuses the exact same "whole box turns black" treatment
   .achRow.claimed already established just above; a plain locked cell (no
   extra class) just shows a dimmed reward preview, not clickable. */
.attnToday{display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-top:10px;padding:12px 14px;border-radius:12px;background:var(--panel2);
  border:1px solid var(--line)}
.attnTodayInfo{display:flex;flex-direction:column;gap:3px}
.attnTodayInfo b{font-size:14px;font-weight:800}
.attnTodayInfo span{font-size:12px;color:var(--dim)}
.attnGrid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.attnCell{position:relative;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:2px;padding:8px 2px;border-radius:10px;
  background:var(--panel2);border:1px solid var(--line);min-height:62px;transition:.16s}
.attnDay{font-size:10px;color:var(--dim2);font-weight:700}
.attnIcon{font-size:16px;line-height:1}
.attnAmt{font-size:10px;color:var(--dim);font-weight:700;white-space:nowrap}
.attnCell.today{border-color:var(--team);
  background:color-mix(in srgb,var(--team) 20%,var(--panel2));
  box-shadow:0 0 0 1px var(--team)}
.attnCell.today .attnDay,.attnCell.today .attnAmt{color:#fff}
.attnCell.claimed{background:#000;border-color:#000}
.attnCell.claimed .attnDay,.attnCell.claimed .attnAmt{color:#3a3a3a}
.attnCell.claimed .attnIcon{opacity:.35}
.attnCell:not(.today):not(.claimed) .attnIcon{opacity:.55}
.attnCheck{position:absolute;top:3px;right:5px;font-size:11px;color:var(--green);font-weight:900}
.attnCell .attnBadge{position:absolute;top:-6px;right:-6px;width:18px;height:18px;
  border-radius:50%;background:var(--red);color:#fff;font-size:11px;font-weight:900;
  display:grid;place-items:center;box-shadow:0 0 0 2px var(--bg2),0 4px 10px -3px var(--red)}
.tierCard{display:flex;align-items:center;gap:12px;padding:14px;border-radius:var(--r);
  background:var(--panel2);border:1px solid var(--line);text-align:left;width:100%}
.tierTrophyBox{flex:none;width:52px;height:52px;display:grid;place-items:center}
.tierTrophy{width:52px;height:52px;object-fit:contain}
.tierCard.on{border-color:var(--gold)}
.tierCard.lock{opacity:.55}
.tierCard b{font-size:15px;font-weight:900}
.tierCard small{display:block;font-size:11px;color:var(--dim);margin-top:2px}
.subCard{display:flex;flex-direction:column;gap:6px;padding:10px;border-radius:var(--r);
  background:var(--panel2);border:1px solid var(--line);position:relative;text-align:left}
.subCard:hover{border-color:var(--ui)}
.subCard .scTop{display:flex;justify-content:space-between;font-size:10.5px;color:var(--dim);font-weight:800}
.subCard .scArt{height:96px;display:grid;place-items:end center}
.subCard .scName{font-size:13px;font-weight:800;text-align:center}
.subCard .scAttr{display:flex;justify-content:space-between;font-size:10.5px;color:var(--dim)}
.subCard .scAttr b{color:var(--txt)}
.stamBar{height:4px;border-radius:2px;background:rgba(255,255,255,.12);overflow:hidden}
.stamBar i{display:block;height:100%;background:var(--green)}
.stamBar.mid i{background:var(--gold)} .stamBar.low i{background:var(--red)}

/* ---------- postseason bracket (§H12) - a straight ladder, top (final) to
   bottom (wild card), matching how L.post.rounds actually seeds: each round's
   winner climbs to face the next-higher seed above it, not a symmetric tree */
.bracket{display:flex;flex-direction:column;gap:0}
.bracketRound{background:var(--panel2);border:1px solid var(--line);border-radius:var(--r);
  padding:12px 14px}
.bracketRound.final{border-color:var(--gold)}
.bracketRoundHead{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.bracketRoundHead b{font-size:13px;font-weight:900}
.bracketRoundHead .mini{color:var(--dim)}
.bracketTeam{display:flex;align-items:center;gap:9px;padding:7px 8px;border-radius:9px;opacity:.62}
.bracketTeam + .bracketTeam{margin-top:3px}
.bracketTeam.win{opacity:1;background:rgba(255,255,255,.055)}
.bracketTeam.tbd{opacity:.42}
.bracketTeam .bLogo{flex:none;line-height:0}
.bracketTeam .bName{flex:1;font-weight:800;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bracketTeam.tbd .bName{font-style:italic;color:var(--dim)}
.bracketTeam .bWins{font-weight:900;font-size:16px;min-width:16px;text-align:right}
.bracketTeam.win .bWins{color:var(--gold)}
.bracketConnector{display:flex;justify-content:center;align-items:center;gap:4px;
  padding:4px 0;color:var(--dim2);font-size:11px;font-weight:800}
.bracketConnector::before,.bracketConnector::after{content:'';flex:1;max-width:26px;height:1px;background:var(--line)}
.bracketTrophyRow{text-align:center;font-size:26px;line-height:1;margin-bottom:8px}
.bracketChampBanner{margin-top:12px;text-align:center;padding:14px;border-radius:var(--r);
  background:linear-gradient(180deg,rgba(245,197,24,.16),transparent);border:1px solid var(--gold)}
.bracketChampBanner .bcName{font-size:17px;font-weight:900;color:var(--gold);margin-top:2px}

/* ---------- scout reveal, tiered by grade (§16) ---------- */
.cardBack{position:relative;border-radius:var(--r);height:186px;   /* 공개된 카드(.card)와 같은 높이 - 뒤집힐 때 뽑기 영역이 늘었다 줄었다 하지 않게 */
 
  background:linear-gradient(155deg,var(--panel2),var(--bg3));border:1px solid var(--line);
  display:grid;place-items:center;overflow:hidden}
.cardBack::before{content:'?';font-family:var(--display);font-size:34px;color:var(--dim2)}
.cardBack::after{content:'';position:absolute;inset:0;
  background:repeating-linear-gradient(120deg,rgba(255,255,255,.05) 0 10px,transparent 10px 22px)}
.cardBack.wait{animation:cbPulse 1.1s ease-in-out infinite}
@keyframes cbPulse{0%,100%{opacity:.75}50%{opacity:1}}
/* S/U never auto-flip - they sit face-down, glowing, until tapped (user req) */
.cardBack.tap{cursor:pointer;border-color:rgba(245,197,24,.55);
  animation:cbTapPulse 1.2s ease-in-out infinite}
@keyframes cbTapPulse{0%,100%{box-shadow:0 0 0 0 rgba(245,197,24,.45)}
  50%{box-shadow:0 0 0 9px rgba(245,197,24,0)}}
.cardBack .tapHint{position:absolute;bottom:9px;left:0;right:0;text-align:center;
  font-size:10px;font-weight:900;letter-spacing:.1em;color:var(--gold);
  text-shadow:0 0 8px rgba(245,197,24,.8);pointer-events:none}

.card.rvB{animation:rvFlip .5s cubic-bezier(.2,1.2,.3,1) backwards}
@keyframes rvFlip{0%{opacity:0;transform:perspective(700px) rotateY(85deg) scale(.92)}
  55%{opacity:1}100%{opacity:1;transform:none}}
.card.rvA{animation:rvA .6s cubic-bezier(.15,1.4,.3,1) backwards;
  box-shadow:0 0 0 2px rgba(176,92,232,.65),0 0 46px -8px rgba(176,92,232,.9)}
@keyframes rvA{0%{opacity:0;transform:scale(.45)}55%{opacity:1;transform:scale(1.14)}100%{opacity:1;transform:scale(1)}}
.card.rvS{animation:rvS .8s cubic-bezier(.15,1.4,.25,1) backwards;
  box-shadow:0 0 0 2px rgba(245,197,24,.9),0 0 60px -4px rgba(245,197,24,1)}
@keyframes rvS{0%{opacity:0;transform:scale(.3) rotate(-8deg)}50%{opacity:1;transform:scale(1.2) rotate(3deg)}
  75%{transform:scale(.95) rotate(0deg)}100%{opacity:1;transform:scale(1)}}
/* U reveals with the same motion as S, in the U grade's own fluorescent
   green instead of gold, so it never reads as "just another S" (§3, §7) */
.card.rvU{animation:rvS .8s cubic-bezier(.15,1.4,.25,1) backwards;
  box-shadow:0 0 0 2px rgba(18,245,232,.95),0 0 60px -4px rgba(18,245,232,1)}

#scoutFx{position:fixed;inset:0;z-index:80;pointer-events:none;overflow:hidden}
#scoutFx.dim::before{content:'';position:absolute;inset:0;background:rgba(3,6,14,0);animation:sfDim .5s ease forwards}
@keyframes sfDim{to{background:rgba(3,6,14,.82)}}

/* app-wide center toast (user req: 상점에서 상품 구매 후 화면 가운데에
   '구매가 완료되었습니다' 메세지 떳다가 사라지게) - fixed + a high z-index so
   it reads on top of whichever screen (or even an open modal) triggered it,
   not just #scGame's own field view the way #fx/#scorePop are scoped to. */
#toastFx{position:fixed;inset:0;z-index:90;display:grid;place-items:center;pointer-events:none}
.toastItem{background:linear-gradient(180deg,rgba(38,58,104,.97),rgba(20,32,60,.98));
  border:1px solid var(--line2);border-radius:var(--r);padding:14px 26px;
  font-weight:800;font-size:15px;color:var(--txt);box-shadow:0 14px 38px -12px rgba(0,0,0,.8);
  opacity:0;transform:scale(.85);transition:opacity .22s ease,transform .22s cubic-bezier(.2,1.5,.4,1)}
.toastItem.show{opacity:1;transform:scale(1)}
.sfFlash{position:absolute;inset:0;background:radial-gradient(circle at 50% 50%,#fff,transparent 60%);
  opacity:0;mix-blend-mode:screen}
.sfFlash.go{animation:sfFlash .6s ease-out forwards}
@keyframes sfFlash{0%{opacity:0;transform:scale(.15)}28%{opacity:.95;transform:scale(1)}100%{opacity:0;transform:scale(1.7)}}
.sfGlow{position:absolute;width:560px;height:560px;border-radius:50%;opacity:0;mix-blend-mode:screen;
  transform:translate(-50%,-50%) scale(.2)}
.sfGlow.go{animation:sfGlow .7s ease-out forwards}
@keyframes sfGlow{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}25%{opacity:1;transform:translate(-50%,-50%) scale(.9)}
  100%{opacity:0;transform:translate(-50%,-50%) scale(1.5)}}
.sfWave{position:absolute;width:var(--sz);height:var(--sz);border-radius:50%;box-sizing:border-box;
  border:var(--bw) solid var(--c);box-shadow:0 0 22px var(--c),inset 0 0 26px var(--c);opacity:0;
  transform:translate(-50%,-50%) scale(.08)}
.sfWave.go{animation:sfWave var(--dur) cubic-bezier(.1,.7,.3,1) var(--delay) forwards}
@keyframes sfWave{0%{opacity:0;transform:translate(-50%,-50%) scale(.08)}
  12%{opacity:var(--a)}100%{opacity:0;transform:translate(-50%,-50%) scale(1)}}
.sfRays{position:absolute;width:220vmax;height:220vmax;opacity:0;
  background:repeating-conic-gradient(from 0deg,rgba(255,255,255,.16) 0 4deg,transparent 4deg 16deg)}
.sfRays.go{animation:sfRays 1.7s linear forwards}
@keyframes sfRays{0%{opacity:0;transform:translate(-50%,-50%) rotate(0deg) scale(.35)}
  18%{opacity:.9}100%{opacity:0;transform:translate(-50%,-50%) rotate(70deg) scale(1)}}
.sfSpark{position:absolute;width:6px;height:6px;border-radius:50%;background:#FFE49B;opacity:0;
  box-shadow:0 0 10px 2px rgba(255,228,155,.9)}
.sfSpark.go{animation:sfSpark 1.1s ease-out forwards}
@keyframes sfSpark{0%{opacity:1;transform:translate(-50%,-50%) translate(0,0) scale(1)}
  100%{opacity:0;transform:translate(-50%,-50%) translate(var(--dx),var(--dy)) scale(.2)}}

/* ---------- lineup editor: field diagram + hand-picked bench slots ---------- */
.lineupBatLayout{display:grid;grid-template-columns:172px 1fr;gap:14px;align-items:start}
/* 모바일(한 줄 배치): 주전 필드를 위로, 후보 타자 패널은 아래로 (user req 2026-10-07) */
@media(max-width:680px){.lineupBatLayout{grid-template-columns:1fr}.lineupBatLayout > .panel:first-child{order:2}}
.benchCol{display:flex;flex-direction:column;gap:8px;max-height:640px;overflow:auto}
/* each bench slot opens the assign picker, so it looks clickable like any
   other slot; a card marked .static (the compare-screen "current" side, the
   old reference-only bench) is the one exception that never acts clickable */
.benchCol .subCard{cursor:pointer}
.subCard.empty{opacity:.55}
.subCard.static{cursor:default}
.subCard.static:hover{border-color:var(--line)}
.benchCol .subCard.static{cursor:default}

.fieldWrap{position:relative;width:100%;aspect-ratio:1/1.06;max-width:560px;margin:0 auto;
  border-radius:18px;overflow:hidden;border:1px solid var(--line);
  background:radial-gradient(120% 85% at 50% 4%,#1D3D26,#112A19 55%,#0B1C10)}
/* real ground photo, laid down faint behind the CSS diamond/arc accents and
   the position cards - a subtle texture, not the focal layer (§H14) */
.fieldWrap .fieldPhoto{position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:url('img/field_bg.jpg');background-size:cover;background-position:50% 34%;
  opacity:.30}
/* the old abstract "infield dirt" diamond accent (a rotated square with its
   own tan border) was drawn for the flat gradient background this replaced -
   now that the real photo already shows an actual infield diamond, that
   accent's border just shows up as a stray line crossing the photo where it
   doesn't line up with it, so it's removed rather than kept alongside (§H15).
   The old "outfield arc" circle accent (::after) had the same problem in a
   less obvious spot: it's a huge circle pushed almost entirely above the box
   (top:-58%) so only its bottom arc peeks in - but that bottom arc lands low,
   sweeping from edge to edge right through the catcher/corner-infielder area,
   not near the outfield at all. It reads as a stray curved line through the
   infield rather than a warning-track edge, so it's removed too - the real
   photo already draws the actual outfield boundary (§H16). */

.posSlot{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:92px;height:106px;padding:0;z-index:1;
  border-radius:10px;text-align:center;cursor:pointer;transition:.15s;user-select:none;overflow:hidden;
  background:linear-gradient(165deg,rgba(23,36,66,.96),rgba(9,15,30,.96));
  border:1px solid var(--line2);box-shadow:0 8px 20px -12px rgba(0,0,0,.85)}
.posSlot:hover{border-color:var(--ui);z-index:2}
.posSlot.sel{border-color:var(--gold);box-shadow:0 0 0 2px rgba(245,197,24,.45);z-index:3}
.posSlot.dragOver{border-color:var(--gold);background:rgba(245,197,24,.16);z-index:3}
.posSlot.oop{border-color:rgba(224,82,78,.55)}
.posSlot.empty{opacity:.55;cursor:default;height:auto}
/* the registered player's card art, cropped/zoomed to fill the small slot
   (portraitEl is drawn oversized so the canvas itself clips it - see
   posCardEl in ui.js) - purely decorative, sits behind the info scrim (§H14) */
.posSlot .psArt{position:absolute;inset:0;z-index:0;display:flex;align-items:flex-end;justify-content:center}
.posSlot .psArt canvas{display:block}
.posSlot .psInfo{position:relative;z-index:1;height:100%;padding:7px 8px 6px;
  display:flex;flex-direction:column;justify-content:flex-end;
  background:linear-gradient(180deg,rgba(9,15,30,0) 0%,rgba(9,15,30,.28) 35%,rgba(9,15,30,.94) 92%)}
.posSlot.empty .psInfo{background:none;justify-content:flex-start}
.posSlot .psTop{display:flex;justify-content:space-between;gap:4px;font-size:9.5px;
  color:var(--dim);font-weight:800}
.posSlot .psName{font-size:12px;font-weight:800;margin-top:2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.posSlot .psSub{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:3px}
.posSlot .psSub .gr{min-width:16px;height:16px;padding:0 4px;font-size:9px;border-radius:5px}
.posSlot .psSub b{font-size:11px}

/* pitcher lineup cards - same visual language as the batter field cards
   (.posSlot/.psArt/.psInfo), laid out in a responsive row grid instead of
   pinned to field coordinates (§H17) */
.pitGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px}
.pitCard{position:relative;aspect-ratio:84/100;border-radius:10px;overflow:hidden;
  cursor:pointer;transition:.15s;
  background:linear-gradient(165deg,rgba(23,36,66,.96),rgba(9,15,30,.96));
  border:1px solid var(--line2);box-shadow:0 8px 20px -12px rgba(0,0,0,.85)}
.pitCard:hover{border-color:var(--ui)}
.pitCard.sel{border-color:var(--gold);box-shadow:0 0 0 2px rgba(245,197,24,.42)}
.pitCard.dragOver{border-color:var(--gold);background:rgba(245,197,24,.10)}
.pitCard.empty{opacity:.55;cursor:default}
.pitCard.rotOn{border-style:dashed}
.pitCard.rotSel{border-color:var(--gold);border-style:solid;box-shadow:0 0 0 3px rgba(245,197,24,.55);transform:scale(1.03)}
.pitCard.rotDim{opacity:.35;filter:grayscale(.7)}
.rotHint{margin:0 0 10px;color:var(--gold);line-height:1.45}
.penLegend{margin-top:12px;padding-top:10px;border-top:1px solid var(--line,rgba(255,255,255,.12));display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--mute,#9aa4b2);line-height:1.4}
.penLegend b{color:var(--text,#fff);margin-right:4px}
.penLegend .penNote{margin-top:4px;font-size:10.5px;opacity:.85}
/* the closer's card shares the bullpen grid with the middle relievers, so it
   needs its own colour to avoid being mistaken for one - a gold border plus
   a gold CP tag, the same accent language the champion/gold-grade UI already
   uses elsewhere (user req: RP/CP must never be confused at a glance) */
.pitCard.role-cp{border-color:rgba(245,197,24,.6);
  box-shadow:0 0 0 1px rgba(245,197,24,.30),0 8px 20px -12px rgba(0,0,0,.85)}
.pitCard.role-cp .pcTop span:first-child{color:var(--gold)}
.pitCard .pcArt{position:absolute;inset:0;z-index:0}
.pitCard .pcArt canvas{display:block}
.pitCard .pcInfo{position:relative;z-index:1;height:100%;padding:7px 8px 6px;
  display:flex;flex-direction:column;justify-content:flex-end;
  background:linear-gradient(180deg,rgba(9,15,30,0) 0%,rgba(9,15,30,.28) 35%,rgba(9,15,30,.94) 92%)}
.pitCard.empty .pcInfo{background:none;justify-content:flex-start}
.pitCard .pcTop{display:flex;justify-content:space-between;gap:4px;font-size:9.5px;
  color:var(--dim);font-weight:800}
.pitCard .pcName{font-size:12px;font-weight:800;margin-top:2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pitCard .pcSub{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:3px}
.pitCard .pcSub .gr{min-width:16px;height:16px;padding:0 4px;font-size:9px;border-radius:5px}
/* 등급 오른쪽에 남은 체력 % 표기 (user req 2026-09-24: 라인업 투수탭에서
   투수마다 남은 체력을 바로 볼 수 있도록) - 아래 .pcStam 바와 같은 35/65
   임계값·색상(green/gold/red)을 텍스트 색으로 재사용해 한눈에 위급도가
   보이도록 함 */
.pitCard .pcSub .pcStamPct{font-size:9px;font-weight:800;color:var(--green)}
.pitCard .pcSub .pcStamPct.mid{color:var(--gold)}
.pitCard .pcSub .pcStamPct.low{color:var(--red)}
.pitCard .pcStam{margin-top:4px;height:4px}

/* ---------- substitution candidate list / compare screen ---------- */
.cmpHead{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center}
.cmpSide{display:flex;flex-direction:column;align-items:stretch}
.cmpSide .subCard{width:100%;max-width:220px;margin:0 auto}
.cmpVs{font-family:var(--display);font-size:20px;font-weight:900;color:var(--dim2);text-align:center;padding:0 2px}
@media(max-width:480px){.cmpHead{grid-template-columns:1fr 1fr}.cmpVs{display:none}}
.cmpBetter{color:var(--green);font-weight:900}
/* 선수 교체 비교: higher value blue with (+n), lower value red with (-n),
   an exact tie grey with no suffix at all - both sides share the same
   colour treatment as the number itself, never the diff alone */
.cmpHi{color:var(--acc2);font-weight:800}
.cmpLo{color:var(--red);font-weight:800}
.cmpEq{color:var(--dim)}
.cmpDiff{margin-left:3px;font-weight:900}

/* ---------- batting order editor (drag or click two in turn to swap) ---------- */
.ordList{display:flex;flex-direction:column;gap:8px}
.ordRow{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:10px;
  cursor:pointer;transition:.15s;background:var(--panel2);border:1px solid var(--line)}
.ordRow:hover{border-color:var(--ui)}
.ordRow{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}   /* 같은 선수를 연달아 두 번 누르면 글자가 드래그 선택돼 파란 띠가 생기던 것 방지 (user req 2026-11-10) */
.ordRow.sel{border-color:var(--gold);box-shadow:0 0 0 2px rgba(245,197,24,.42)}
.ordRow.dragOver{border-color:var(--gold);background:rgba(245,197,24,.10)}
.ordNum{width:22px;height:22px;border-radius:7px;background:var(--ui);color:#fff;
  display:grid;place-items:center;font-size:12px;font-weight:900;flex:none}
.ordPos{width:30px;font-size:11px;color:var(--dim);font-weight:800;flex:none}
.ordMid{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.ordName{font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ordRates{display:flex;flex-wrap:wrap;gap:2px 9px}
.ordRates span{display:inline-flex;align-items:baseline;gap:3px;white-space:nowrap}
.ordRates small{font-size:9px;color:var(--dim)}
.ordRates b{font-size:11px;font-weight:700;color:var(--txt)}
.ordStat{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:42px;flex:none}
.ordStat small{font-size:9px;color:var(--dim)}
.ordStat b{font-size:13px}
@media(max-width:560px){.ordPos{display:none}.ordStat{min-width:34px}
  /* 좁은 화면: 이름줄(번호·이름·등급·능력치) 아래에 타율·출루율·장타율·OPS를 한 줄로 */
  .ordRow{flex-wrap:wrap;row-gap:6px}
  .ordMid{display:contents}
  .ordName{flex:1;min-width:0}
  .ordRates{order:10;flex:0 0 100%;padding-left:32px;flex-wrap:nowrap;justify-content:space-between;gap:4px}}

/* ==================================================================
   END-OF-SEASON AWARDS CEREMONY (user req: 리그 포스트시즌 다 끝나고
   마지막에 부문별 수상/골든글러브/MVP/최종순위/순위보상 페이지들) - a
   6-page full-screen overlay driven by js/awards.js (UI.leagueAwards).
   Sits at the #app level in index.html (NOT scoped inside #scGame like
   #introOverlay is), since it can open from whichever screen the player
   happened to be on (the postseason bracket screen, or wherever they
   navigated to before tapping back into 리그) - shown/hidden via the same
   plain [hidden] attribute idiom #introOverlay already uses (see index.html's
   own inline <style> at the very top of the page for that rule).
   ================================================================== */
#awardsOverlay{position:fixed;inset:0;z-index:70;
  background:linear-gradient(180deg,rgba(4,7,15,.94) 0%,rgba(4,7,15,.98) 100%),
    radial-gradient(120% 55% at 50% 0%,rgba(61,143,224,.14),transparent 60%),#04070F;
  display:flex;flex-direction:column;
  padding-top:var(--safeT);padding-bottom:var(--safeB)}
.awHead{flex:none;display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px 4px;gap:10px}
.awHeadTitle{font-size:12.5px;font-weight:800;color:var(--dim);letter-spacing:.08em;
  text-transform:uppercase}
.awSkip{flex:none;padding:7px 13px;border-radius:999px;font-size:12px;font-weight:800;
  background:rgba(255,255,255,.06);border:1px solid var(--line2);color:var(--txt)}
.awBody{flex:1;min-height:0;overflow-y:auto;padding:6px 16px 20px;
  -webkit-overflow-scrolling:touch}
.awPageSub{font-size:21px;font-weight:900;text-align:center;margin:8px 0 18px}
.awFoot{flex:none;display:flex;gap:8px;padding:10px 16px calc(10px + var(--safeB))}
.awFoot .btn{flex:1}
/* pages 1/2/4 (user req: 화면 가운데에/화면 중간에 오도록) - vertically
   centers a page's content inside .awBody when it's shorter than the
   available height, instead of sitting pinned under the subtitle with a
   block of empty space below it */
.awCenterWrap{min-height:100%;display:flex;flex-direction:column;justify-content:center}

/* batter/pitcher category-leader tile grid - a fixed 3 columns (not
   auto-fill) so the 6 leaders always read as two rows of three (user req:
   2줄로 나눠서 3명 3명), regardless of viewport width */
.awGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.awTile{display:flex;flex-direction:column;align-items:center;text-align:center;
  padding:10px 8px 12px;border-radius:var(--r2);background:rgba(255,255,255,.035);
  border:1px solid var(--line)}
.awTileLabel{font-size:11.5px;font-weight:800;color:var(--gold);margin-bottom:8px}
.awTileCard{width:100%;max-width:120px}
.awTileCard .card{width:100%;cursor:pointer}
.awTileTeam{font-size:10.5px;color:var(--dim);margin-top:6px;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;max-width:100%}
.awTileStat{margin-top:7px;display:flex;align-items:baseline;gap:5px;
  padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.05)}
.awTileStat span{font-size:10.5px;color:var(--dim);font-weight:700}
.awTileStat b{font-size:13px;font-weight:900;color:var(--txt);font-family:var(--display)}
.awTileEmpty{padding:24px 0;color:var(--dim);font-size:12px;grid-column:1/-1;text-align:center}

/* MVP page - one big card + a name/team/stat-line block beside it */
.awMvpWrap{display:flex;gap:16px;align-items:center;padding:16px;border-radius:var(--r2);
  background:rgba(255,255,255,.035);border:1px solid var(--line)}
.awMvpCard{width:132px;flex:none}
.awMvpCard .card{width:100%;cursor:pointer}
.awMvpInfo{flex:1;min-width:0}
.awMvpName{font-size:19px;font-weight:900}
.awMvpTeam{font-size:12.5px;color:var(--dim);margin:3px 0 10px;display:flex;align-items:center;gap:6px}
.awMvpStats{display:grid;grid-template-columns:repeat(2,1fr);gap:2px 16px;margin-top:8px}
.awMvpStats .statRow{font-size:12px;padding:4px 0}

/* golden glove page - players stood on a field background at their own
   position (user req: 그라운드 이미지를 배경으로 각 포지션 위치에 서있도록,
   라인업 페이지에서 보여주듯) - deliberately mirrors the real lineup
   screen's .fieldWrap/.posSlot look (see "lineup editor" section above) so
   the two feel like the same visual language, but under its own gg-prefixed
   classes since these cards are keyed off allPlayers() entries that can
   belong to ANY team (own portrait hex per card), not just the player's own
   roster the real lineup screen always draws. */
.ggFieldWrap{position:relative;width:100%;height:500px;max-width:480px;margin:8px auto 0;
  border-radius:18px;overflow:hidden;border:1px solid var(--line);
  background:radial-gradient(120% 85% at 50% 4%,#1D3D26,#112A19 55%,#0B1C10)}
.ggFieldWrap .ggFieldPhoto{position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:url('img/field_bg.jpg');background-size:cover;background-position:50% 34%;
  opacity:.30}
.ggPlane{position:absolute;left:0;right:0;top:8px;bottom:52px;z-index:1}
.ggSlot{position:absolute;transform:translate(-50%,-50%);width:min(84px,23.5%);height:98px;z-index:1;
  border-radius:10px;text-align:center;overflow:hidden;
  background:linear-gradient(165deg,rgba(23,36,66,.96),rgba(9,15,30,.96));
  border:1px solid var(--line2);box-shadow:0 8px 20px -12px rgba(0,0,0,.85)}
.ggSlot.empty{opacity:.55;height:auto}
.ggSlot .ggArt{position:absolute;inset:0;z-index:0;display:flex;align-items:flex-end;justify-content:center}
.ggSlot .ggArt canvas{display:block}
.ggSlot .ggInfo{position:relative;z-index:1;height:100%;padding:6px 6px 5px;
  display:flex;flex-direction:column;justify-content:flex-end;
  background:linear-gradient(180deg,rgba(9,15,30,0) 0%,rgba(9,15,30,.28) 35%,rgba(9,15,30,.94) 92%)}
.ggSlot.empty .ggInfo{background:none;justify-content:flex-start}
.ggSlot .ggTop{display:flex;justify-content:space-between;align-items:center;gap:4px;
  font-size:9px;color:var(--dim);font-weight:800}
.ggSlot .ggName{font-size:11px;font-weight:800;margin-top:2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ggSlot .ggSub{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:3px}
.ggSlot .ggSub .gr{min-width:15px;height:15px;padding:0 4px;font-size:8.5px;border-radius:5px}
.ggSlot .ggSub b{font-size:10.5px}
/* compact MY pill sized for the tiny .ggTop row - same gold treatment as
   the corner .myBadge pill (UI.card) but small enough to sit inline next to
   a 9px position label instead of a full card's OVR tag */
.ggMy{display:inline-flex;align-items:center;justify-content:center;height:13px;padding:0 4px;
  border-radius:5px;font-size:7.5px;font-weight:900;letter-spacing:.02em;color:#0A0E18;
  background:linear-gradient(135deg,#FFD45E,#F0A82A)}

/* final-standings page - the user's own row gets the usual tr.me tint PLUS a
   gold outline, so it reads as "look here" even at a glance (user req: 내
   팀의 등수를 눈에 띄이게 따로 표시) */
tbody tr.awMeRow{outline:2px solid var(--gold);outline-offset:-2px;font-weight:800}

/* rank + reward preview page */
.awRankBig{font-family:var(--display);font-size:60px;text-align:center;color:var(--gold);
  line-height:1;margin:14px 0 2px;letter-spacing:.02em}
.awRankSub{text-align:center;color:var(--dim);font-size:13px;font-weight:700;margin-bottom:20px}

/* 각성 아이콘 (user req 2026-09-30) - 카드 좌측 상단 등급 표시 바로 아래.
   img/awake_1~3.png를 통째로 교체하면 된다 (임시 별 아이콘) */
.card .cTop .cTopL{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.card .cTop .cTopL{position:relative}
.card .cTop .cTopL .awkIcon{position:absolute;top:calc(100% + 3px);left:50%;transform:translateX(-50%)}   /* 각성 아이콘은 등급 배지와 같은 세로 중심선 (user req 2026-10-25) */
.awkIcon{height:21px;width:auto;display:block;filter:drop-shadow(0 1px 2px rgba(0,0,0,.65))}
.awkIcon.lg{height:26px;display:inline-block}
.awkInfo{margin-top:10px}
.awkTarget{max-width:150px;margin:0 auto 4px}

/* 로비 메뉴 그룹 줄 나누기 (user req 2026-09-30) - 한 그룹 = 한 줄, 타일은 작게 */
.menuRows{display:flex;flex-direction:column;gap:6px}
.menuGroupName{font-size:12px;font-weight:800;color:var(--dim);margin:8px 2px 0;letter-spacing:.02em}
.menuGroupName:first-child{margin-top:0}
.menuRow{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:6px}
.menuRow .menuTile{min-width:0;align-items:center;text-align:center;gap:4px;padding:11px 3px 10px}
.menuRow .menuTile i{font-size:20px}
.menuRow .menuTile b{font-size:12px;line-height:1.2;word-break:keep-all}
.menuRow .menuTile > span:not(.tileBadge){display:none}

/* ---------- 이벤트 탭 / 캡슐 뽑기 (user req 2026-10-01) ---------- */
.evList{display:flex;flex-direction:column;gap:12px}
.evBanner{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;
  width:100%;min-height:112px;padding:16px 16px 16px 18px;border-radius:var(--r2);text-align:left;color:#fff;
  background:linear-gradient(115deg,#6B3BE0 0%,#D9467A 58%,#F2A33A 100%);
  border:1px solid rgba(255,255,255,.22);overflow:hidden;transition:.16s;
  box-shadow:0 14px 30px -18px #D9467A}
.evBanner:hover{transform:translateY(-2px)}
.evInfo{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.evName{font-size:22px;font-weight:900;letter-spacing:.01em;text-shadow:0 2px 10px rgba(0,0,0,.35)}
.evSub{font-size:12px;font-weight:700;color:rgba(255,255,255,.88)}
.evArt{flex:none;width:112px;height:84px;filter:drop-shadow(0 6px 10px rgba(0,0,0,.35))}
.evChip{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:900;
  background:rgba(255,255,255,.22);color:#fff}
.evChip.open{background:#37C07A;color:#06210f}
.evChip.closed{background:#2a2a2a;color:#9a9a9a}
/* 종료된 이벤트: 배너 전체가 검게 */
.evBanner.closed{background:#000;border-color:#000;box-shadow:none;color:#6b6b6b}
.evBanner.closed:hover{transform:none}
.evBanner.closed .evName{color:#7a7a7a;text-shadow:none}
.evBanner.closed .evSub{color:#6a6a6a}
.evBanner.closed .evArt{filter:grayscale(1) brightness(.5)}
.evBanner .evBadge{position:absolute;top:8px;right:8px;width:20px;height:20px;border-radius:50%;background:var(--red);color:#fff;font-size:12px;font-weight:900;display:grid;place-items:center;box-shadow:0 0 0 2px rgba(0,0,0,.35),0 4px 10px -3px var(--red)}
.capRow{display:inline-flex;align-items:center;gap:6px}
.capPanel{text-align:center}
.capPanel .rowBetween{text-align:left}
.capMachineBox{width:230px;max-width:80%;margin:10px auto 0}
.capSvg{display:block;width:100%;height:auto;overflow:visible}
.capSvg .capKnob{transform-box:fill-box;transform-origin:center}
.capSvg.spin .capKnob{animation:capKnob .9s ease-in-out}
.capSvg.spin .capBalls{animation:capRattle .09s linear 10}
@keyframes capKnob{to{transform:rotate(540deg)}}
@keyframes capRattle{0%{transform:translate(0,0)}25%{transform:translate(3px,-2px)}50%{transform:translate(-2px,2px)}75%{transform:translate(2px,3px)}100%{transform:translate(0,0)}}
.capCoinRow{display:flex;align-items:center;justify-content:center;gap:8px;margin:12px 0 10px;font-size:14px;color:var(--dim)}
.capCoinRow b{font-size:20px;color:var(--gold);font-family:var(--display);letter-spacing:.03em}
.capCoin{flex:none;vertical-align:-3px}
.capPullBtn{width:100%;max-width:300px;padding:13px 16px;font-size:15px;font-weight:900;
  display:inline-flex;align-items:center;justify-content:center;gap:6px}
.capPanel .mini{text-align:left}
/* --- the pull overlay --- */
.capOv{position:fixed;inset:0;z-index:60;overflow:hidden}
.capOvBg{position:absolute;inset:0;background:rgba(3,7,16,.0);transition:background .5s}
.capOv.dim .capOvBg{background:rgba(3,7,16,.86)}
.capBall{position:absolute;width:64px;height:64px;opacity:0;transform:translate(-50%,-50%) scale(.45);
  transition:left .6s cubic-bezier(.3,.7,.3,1),top .6s cubic-bezier(.3,.7,.3,1),transform .6s cubic-bezier(.3,.7,.3,1),opacity .15s}
.capBall.show{opacity:1}
.capBall.drop{transform:translate(-50%,-50%) scale(.6);transition-timing-function:cubic-bezier(.5,0,.9,.6);transition-duration:.55s}
.capBall.center{transform:translate(-50%,-50%) scale(2.1)}
.capBall i{position:absolute;left:0;width:100%;height:50%;transition:transform .55s ease-in,opacity .55s;
  box-shadow:inset -5px -6px 0 rgba(0,0,0,.14),inset 5px 5px 0 rgba(255,255,255,.28)}
.capBall i.top{top:0;border-radius:64px 64px 0 0;background:var(--c);transform-origin:50% 100%}
.capBall i.bot{bottom:0;border-radius:0 0 64px 64px;background:#f1f1f1;transform-origin:50% 0}
.capBall.shake{animation:capBallShake .18s ease-in-out infinite}
@keyframes capBallShake{0%,100%{rotate:0deg}25%{rotate:-11deg}75%{rotate:11deg}}
.capBall.open i.top{transform:translate(-34px,-70px) rotate(-38deg);opacity:0}
.capBall.open i.bot{transform:translate(26px,60px) rotate(24deg);opacity:0}
.capFlash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none}
.capOv.burst .capFlash{animation:capFlash .55s ease-out}
@keyframes capFlash{0%{opacity:.85}100%{opacity:0}}
.capReward{position:absolute;left:50%;top:42%;display:grid;place-items:center;width:150px;height:150px;
  margin:-75px 0 0 -75px;opacity:0;transform:scale(.2)}
.capOv.burst .capReward{animation:capRewardIn .6s cubic-bezier(.2,1.4,.4,1) forwards}
.capOv.result .capReward{translate:0 -62px}
@keyframes capRewardIn{0%{opacity:0;transform:scale(.2)}100%{opacity:1;transform:scale(1)}}
.capReward{transition:translate .5s ease}
.capRays{position:absolute;inset:-60px;border-radius:50%;
  background:repeating-conic-gradient(from 0deg,rgba(255,226,120,.28) 0 10deg,rgba(255,226,120,0) 10deg 24deg);
  -webkit-mask:radial-gradient(circle,#000 22%,transparent 68%);mask:radial-gradient(circle,#000 22%,transparent 68%);
  animation:capSpin 9s linear infinite;z-index:-1}
.capReward.rare .capRays{background:repeating-conic-gradient(from 0deg,rgba(255,170,60,.55) 0 10deg,rgba(255,170,60,0) 10deg 24deg)}
@keyframes capSpin{to{transform:rotate(360deg)}}
.capBigEmoji{font-size:84px;line-height:1;filter:drop-shadow(0 6px 16px rgba(245,197,24,.6))}
.itemIco.capBig{width:96px;height:96px;object-fit:contain;filter:drop-shadow(0 6px 16px rgba(120,180,255,.55))}
.capResult{position:absolute;left:0;right:0;bottom:0;padding:22px 20px calc(24px + var(--safeB));
  text-align:center;opacity:0;transform:translateY(24px);transition:.4s;pointer-events:none;
  background:linear-gradient(180deg,transparent,rgba(3,7,16,.92) 30%)}
.capOv.result .capResult{opacity:1;transform:none;pointer-events:auto}
.capGot{font-size:13px;font-weight:800;color:var(--gold);letter-spacing:.12em}
.capGotName{font-size:22px;font-weight:900;margin-top:4px}
.capMs{margin-top:8px;font-size:13px;font-weight:800;color:var(--acc2)}
.capResult .modalBtns{max-width:360px;margin-left:auto;margin-right:auto}

/* ---------- 라이징스타 이벤트 (user req 2026-10-01) ---------- */
.evBanner.cap:not(.closed){background:linear-gradient(90deg,rgba(70,10,140,.72) 0%,rgba(70,10,140,.45) 30%,rgba(70,10,140,0) 52%),url(img/cap_banner.jpg) right center/cover no-repeat,#8A3BE0;border-color:rgba(255,160,230,.45)}
.evBanner.cap:not(.closed) .evSub{text-shadow:0 1px 6px rgba(40,0,90,.9)}
/* 캡슐 종료: 배너 그림 그대로 검게 가라앉힌 모습 (train과 동일 처리, user req 2026-10-13) */
.evBanner.cap.closed::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#000 0%,rgba(0,0,0,.7) 40%,rgba(0,0,0,0) 70%),url(img/cap_banner.jpg) right center/cover no-repeat;filter:grayscale(1) brightness(.3);pointer-events:none}
.evBanner.cap.closed .evInfo{position:relative;z-index:1}
.evBanner.rise .evSub{text-shadow:0 1px 6px rgba(0,30,90,.9)}
.evBanner.rise{background:linear-gradient(90deg,rgba(6,40,120,.78) 0%,rgba(6,40,120,.5) 45%,rgba(6,40,120,0) 75%),url(img/rise_banner.jpg) right center/cover no-repeat,#1E88E5;box-shadow:0 14px 30px -18px #3BB4F5;border-color:rgba(120,210,255,.45)}
.riseRule{margin:8px 0 0;font-size:13px;color:var(--dim);line-height:1.55}
.riseRule b{color:var(--txt)}
.riseGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:10px}
.riseTile{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:8px;border-radius:12px;
  background:var(--panel2);border:1px solid var(--line);text-align:center;transition:.16s}
.riseTile:hover{border-color:rgba(92,200,255,.7)}
.riseTile.can{border-color:#5CC8FF;box-shadow:0 0 0 1px #5CC8FF}
.riseTile.done{background:#000;border-color:#000}
.riseTile.done .riseCardBox{opacity:.45}
.risePos{font-family:var(--display);font-size:20px;letter-spacing:.04em;line-height:1}
.riseCardBox .card{pointer-events:none}
.riseEmpty{display:grid;place-items:center;aspect-ratio:95/172;border-radius:10px;border:1.5px dashed var(--line2);
  background:rgba(0,0,0,.18)}
.riseEmpty b{font-size:34px;font-weight:900;color:var(--dim2)}
.riseSt{font-size:11px;font-weight:800;color:var(--dim2)}
.riseSt.can{color:#7FD6FF}.riseSt.done{color:#5a5a5a}.riseSt.mat{color:var(--dim)}.riseSt.limit{color:var(--dim2)}
/* 라이징스타 목록: 타자는 그라운드 위 포지션 카드, 투수는 아래 한 줄 */
.riseSlot .rsR{color:#7FD6FF;font-weight:900}
.riseSlot .rsChip{display:inline-block;max-width:100%;padding:1px 6px;border-radius:6px;font-size:9.5px;font-weight:800;
  white-space:nowrap;background:rgba(0,0,0,.55);color:var(--dim)}
.riseSlot .rsChip.can{background:#5CC8FF;color:#06223A}
.riseSlot .rsChip.mat{color:#CBD6EE}
.riseSlot.can{border-color:#5CC8FF;box-shadow:0 0 0 1px #5CC8FF,0 0 14px rgba(92,200,255,.5)}
.riseSlot.done{background:#000;border-color:#000}
.riseSlot.done .psArt{opacity:.4}
.riseSlot.done .rsChip{color:#7a7a7a}
.riseSlot.none{border:1.5px dashed var(--line2);background:rgba(0,0,0,.28);box-shadow:none}
.riseSlot .riseQ{flex:1;display:grid;place-items:center;font-size:30px;font-weight:900;color:var(--dim2)}
.riseSlot.none .psInfo{background:none;justify-content:flex-start}
.riseSlot.none .psSub{margin-top:0}
.riseSlot .psTop{position:relative}
.riseField{aspect-ratio:1/1.1}
.riseField .posSlot{width:min(100px,21%);height:auto;aspect-ratio:92/106}
.posSlot.flow{position:relative;left:auto;top:auto;transform:none;width:100%;height:auto;aspect-ratio:92/106}
.posSlot.flow .psArt canvas{width:100%!important;height:100%!important;max-width:none}
.risePitGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:420px;margin:0 auto}
.riseHead{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.riseTarget{width:150px;flex:none}
.riseTInfo{flex:1;min-width:180px}
.riseMats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;max-width:308px;margin:0 auto}
.riseMat{display:flex;flex-direction:column;gap:6px;min-width:0}
.riseMatLbl{font-size:11px;font-weight:800;color:var(--dim);text-align:center;min-height:28px;display:grid;place-items:center;line-height:1.25}
.card.rvR{animation:rvS .8s cubic-bezier(.15,1.4,.25,1) backwards;
  box-shadow:0 0 0 2px rgba(92,200,255,.95),0 0 60px -4px rgba(92,200,255,1)}

/* 라이징스타 - 이벤트 매치 */
.evBanner.rm{background:linear-gradient(90deg,rgba(4,30,100,.55) 0%,rgba(4,30,100,.3) 40%,rgba(4,30,100,0) 72%),url(img/rm_banner.jpg) right center/cover no-repeat,#1F58D6;box-shadow:0 14px 30px -18px #1F58D6;border-color:rgba(120,190,255,.45)}
.evBanner.rm .evName{font-size:16px;white-space:nowrap}
.evBanner.rm .evSub{text-shadow:0 1px 6px rgba(0,20,70,.9)}
/* 종료된 상시 이벤트(라이징스타 2명 제작 완료 / 이벤트 매치 10승 보상 수령): 배너 그림을 검게 가라앉힌다 (눌러서 들어갈 수는 있음) */
.evBanner.rise.closed,.evBanner.rm.closed{background:#000;border-color:#000;box-shadow:none}
.evBanner.rise.closed::before,.evBanner.rm.closed::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#000 0%,rgba(0,0,0,.7) 40%,rgba(0,0,0,0) 70%),var(--evimg) right center/cover no-repeat;filter:grayscale(1) brightness(.3);pointer-events:none}
.evBanner.rise.closed{--evimg:url(img/rise_banner.jpg)}
.evBanner.rm.closed{--evimg:url(img/rm_banner.jpg)}
.evBanner.rise.closed .evInfo,.evBanner.rm.closed .evInfo{position:relative;z-index:1}
.evBanner.rise.closed .evSub,.evBanner.rm.closed .evSub{color:#6a6a6a;text-shadow:none}
.evBanner.rise.closed .evName,.evBanner.rm.closed .evName{color:#7a7a7a;text-shadow:none}
.evBanner.closed{cursor:pointer}
.evLogo{flex:none;width:92px;height:92px;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(0,0,0,.4))}
.rmHero{display:flex;align-items:center;gap:16px}
.rmLogo{flex:none;width:96px;height:96px}
.rmLogo canvas{width:100%!important;height:100%!important}
.rmHeroInfo{flex:1;min-width:0}
.rmWins{font-size:15px;font-weight:800}
.rmWins b{font-size:30px;color:var(--gold);margin-right:2px}
.rmRow{display:flex;align-items:center;gap:10px;padding:7px 0;border-top:1px solid var(--line);cursor:pointer}
.rmRow:first-of-type{border-top:0}
.rmNo{flex:none;width:26px;text-align:center;font-size:15px;color:var(--dim)}
.rmNo.rmInn{width:52px;font-size:12px}
.rmArt{flex:none;width:40px;height:48px;border-radius:8px;background:rgba(255,255,255,.05);overflow:hidden;display:flex;align-items:flex-end;justify-content:center}
.rmArt canvas{display:block;max-width:100%}
.rmInfo{flex:1;min-width:0}
.rmName{font-weight:800;font-size:14px}
.rmOvr{flex:none;font-size:11px;color:var(--dim)}
.rmOvr b{font-size:15px;color:var(--text)}

/* 훈련 지원 배너 */
.evBanner.train:not(.closed){background:linear-gradient(90deg,rgba(0,50,10,.7) 0%,rgba(0,50,10,.4) 40%,rgba(0,50,10,0) 70%),url(img/train_banner.jpg) right center/cover no-repeat,#14A030;box-shadow:0 14px 30px -18px #3BE05A;border-color:rgba(150,255,150,.45)}
.evBanner.train .evSub{text-shadow:0 1px 6px rgba(0,50,10,.9)}
.evBanner.train.closed{background:#000;border-color:#000;box-shadow:none}
/* 종료: 배너 그림 그대로 검게 가라앉힌 실루엣 (user req) */
.evBanner.train.closed::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#000 0%,rgba(0,0,0,.7) 40%,rgba(0,0,0,0) 70%),url(img/train_banner.jpg) right center/cover no-repeat;filter:grayscale(1) brightness(.3);pointer-events:none}
.evBanner.train.closed .evInfo{position:relative;z-index:1}

/* ---------- 첫 실행 로딩 화면 ---------- */
#bootLoader{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;background:#04070F;
  transition:opacity .45s ease;color:#fff}
#bootLoader[hidden]{display:none}
#bootLoader.done{opacity:0;pointer-events:none}
.bootBox{width:min(320px,80%);text-align:center}
.bootKo{font-size:clamp(28px,8vw,40px);font-weight:900;letter-spacing:.04em;text-shadow:0 0 30px rgba(61,143,224,.45)}
.bootEn{font-family:var(--display,inherit);font-size:13px;letter-spacing:.44em;color:#7FB4F5;margin:4px 0 26px}
.bootTrack{height:8px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden;border:1px solid rgba(255,255,255,.12)}
.bootTrack i{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#3D8FE0,#7FD0FF);transition:width .15s ease-out;box-shadow:0 0 12px rgba(100,180,255,.7)}
.bootInfo{display:flex;justify-content:space-between;margin-top:10px;font-size:12px;color:rgba(255,255,255,.7)}
.bootInfo b{color:#fff;font-variant-numeric:tabular-nums}

/* 라인업 카드 길게 누르기 (상세 팝업) - 텍스트 선택/모바일 메뉴 방지 + 누르는 동안 살짝 눌린 느낌 */
.posSlot,.subCard,.pitCard{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.subCard.pressing,.pitCard.pressing{transform:scale(.96);transition:transform 1s ease}
.posSlot.pressing{transform:translate(-50%,-50%) scale(.94);transition:transform 1s ease}
.posSlot.flow.pressing{transform:scale(.94)}

/* 특이폼 표시 (user req 2026-10-03) - 선수 상세페이지 이름 옆 */
.quirkTag{display:inline-block;vertical-align:middle;font-size:11px;font-weight:800;line-height:1;padding:4px 7px;border-radius:999px;color:#1a1305;background:linear-gradient(180deg,#FFE08A,#F2B134);box-shadow:0 0 6px rgba(255,200,80,.45);letter-spacing:.2px}

/* 선수 잠금 표시 (user req 2026-10-05) */
.card .lockIco{font-size:10px;line-height:1;margin-left:auto}

/* ---- 올스타전 ---- */
.asMy{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:6px;background:var(--gold,#f5c542);color:#1a1405;font-size:10px;font-weight:900;letter-spacing:.5px;vertical-align:1px}
.asHead{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.asLogo{flex:none;width:54px;height:54px}
.asSub{margin:12px 0 2px;font-weight:800;letter-spacing:.3px}
.asClub{display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.asDot{flex:none;display:inline-block;width:8px;height:8px;border-radius:50%;background:#888}
.asTeam{border:1px solid var(--line)}

/* 선수 상세: 이름 줄 오른쪽 끝 잠금 아이콘 */
.pdTitle{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pdTitle .pdName{min-width:0;display:inline-flex;align-items:center;flex-wrap:wrap;gap:0 6px}
/* 등급 뱃지 + 이름/텍스트를 한 줄에 놓을 때 세로 중앙 정렬 (user req 2026-10-22) */
.nmB{display:inline-flex;align-items:center;gap:6px;max-width:100%;vertical-align:middle}
.nmB>.gr{flex:none}
.pdLock{flex:none;background:none;border:0;padding:2px 4px;font-size:20px;line-height:1;cursor:pointer;opacity:.4;filter:grayscale(.6)}
.pdLock.on{opacity:1;filter:none}

/* 유니크 각성 재료 카드 (user req 2026-10-06): 유니크 카드 틀 그대로, 우측 상단 x보유수 */
.card.ucard{cursor:pointer}
/* 유니크 각성 재료 카드: 우측 상단 능력치 박스가 없는 틀 (uniq_frame.jpg 에서 박스만 지움) (user req 2026-11-15) */
.card.ucard:not(.lcard) .cGlow{background-image:url(img/uniq_frame_nb.jpg)}
.ucCnt{display:grid;place-items:center;min-width:30px;height:22px;padding:0 6px;border-radius:7px;font-size:12px;font-weight:900;
  color:#052624;background:#12F5E8}
/* 레전드 각성 재료 카드 전용 테두리 (user req 2026-10-30): 선수 카드 틀(leg_bg)에 들어 있는 L 뱃지·능력치 박스가 없는 별도 틀 */
.card.leg.lcard .cGlow{background:#050507 url(img/lcard_frame.webp) center/100% 100% no-repeat}
.card.leg.lcard .cTop .cTopL{display:none}
.card.leg.lcard .cTop .cTopR{left:auto;right:9%;top:5.5%;width:auto;height:auto}
.card.leg.lcard .cArt .ucArt{transform:translateY(-5px)}      /* 레전드 재료 카드 이미지를 살짝 위로 (user req 2026-10-30) */
.card.lcard .ucCnt{color:#3a2600;background:#F5C518}
.card.lcard .cTopR:not(:has(.ucCnt)){display:none}
.ucIco{display:inline-block;width:20px;height:20px;margin-right:6px;object-fit:contain;vertical-align:-5px}
.card.ucard .cArt{place-items:stretch}
.card.ucard .cArt .ucArt{display:block;width:100%;height:100%;object-fit:contain;object-position:center;padding:10%;box-sizing:border-box}
#awkPool .empty{grid-column:1/-1}

/* 목표 달성 (user req 2026-10-06) */
.evBanner.goal:not(.closed){background:linear-gradient(90deg,rgba(2,24,100,.8) 0%,rgba(2,24,100,.45) 40%,rgba(2,24,100,0) 72%),url(img/goal_banner.jpg) right center/cover no-repeat,#0C3CAA;border-color:rgba(140,190,255,.55);box-shadow:0 14px 30px -18px #2F7BFF}
.evBanner.goal .evSub{text-shadow:0 1px 6px rgba(0,20,90,.9)}
/* 종료: 배너 그림 그대로 검게 가라앉힌 모습 (train/capsule과 동일) */
.evBanner.goal.closed::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#000 0%,rgba(0,0,0,.7) 40%,rgba(0,0,0,0) 70%),url(img/goal_banner.jpg) right center/cover no-repeat;filter:grayscale(1) brightness(.3);pointer-events:none}
.evBanner.goal.closed .evInfo{position:relative;z-index:1}
.evBanner.goal .evArt{width:104px;height:78px;flex:none}
.evBanner.goal.closed .evArt{filter:grayscale(1) brightness(.5)}
.goalPanel{padding-bottom:6px}
.goalRow{margin:6px 0 18px}
.goalHead{display:flex;align-items:baseline;gap:8px;margin-bottom:8px}
.goalHead b{font-size:16px}
.goalBar{position:relative;height:16px;border-radius:9px;background:rgba(255,255,255,.1);box-shadow:inset 0 2px 5px rgba(0,0,0,.45);overflow:hidden}
.goalFill{height:100%;border-radius:9px;background:linear-gradient(90deg,#FFB020,#FF6B3D);transition:width .5s}
.goalFill.full{background:linear-gradient(90deg,#37C07A,#7BE8A8)}
.goalTick{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:rgba(255,255,255,.55)}
.goalIcos{position:relative;height:62px;margin-top:6px}
.goalIco{position:absolute;top:0;transform:translateX(calc(var(--p) * -1));display:flex;flex-direction:column;align-items:center;gap:1px;background:none;border:0;padding:0;min-width:44px;color:var(--fg,#fff);cursor:default}
.goalIco .gi{position:relative;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.1);border:2px solid rgba(255,255,255,.25);display:grid;place-items:center;font-size:18px}
.goalIco .gi img{width:22px;height:22px;object-fit:contain}
.goalIco em{font-style:normal;font-size:11px;font-weight:800;line-height:1.1}
.goalIco small{font-size:10px;color:var(--dim);line-height:1}
.goalIco.locked{opacity:.45;filter:grayscale(.6)}
.goalIco.ready{cursor:pointer}
.goalIco.ready .gi{border-color:#FFD23F;background:rgba(255,210,63,.22);animation:goalPulse 1.1s ease-in-out infinite}
.goalIco.claimed{opacity:.6}
.goalIco.claimed .gi{border-color:#37C07A}
.goalIco .gChk{position:absolute;right:-4px;bottom:-4px;width:16px;height:16px;border-radius:50%;background:#37C07A;color:#fff;font-style:normal;font-size:11px;font-weight:900;display:grid;place-items:center}
.goalBonus .goalIco.bonus{position:static;transform:none}
.goalBonus .goalIco.bonus .gi{width:44px;height:44px}
.goalBonus .goalIco.bonus .gi img{width:30px;height:30px}
@keyframes goalPulse{0%,100%{box-shadow:0 0 0 0 rgba(255,210,63,.6)}50%{box-shadow:0 0 0 7px rgba(255,210,63,0)}}
.subCard .scNote{margin-top:3px;font-size:9.5px;line-height:1.25;color:var(--gold,#F5C518);text-align:center}

/* 상점 수량 선택 (user req 2026-10-12) */
.shopItem{padding:12px 0;border-top:1px solid rgba(255,255,255,.07)}
.shopItem:first-of-type{border-top:0}
.shopItemTop{display:flex;align-items:center;gap:10px}
.shopItemTop > div{display:flex;flex-direction:column;gap:2px}
.shopItemTop small{color:var(--dim,#9fb0c8);font-size:12px}
.shopItemBuy{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.qtyStep{display:flex;align-items:center;gap:6px}
.qtyStep .iconBtn{width:38px;height:38px;font-size:14px;touch-action:manipulation}
.qtyStep .iconBtn:disabled{opacity:.35}
.qtyStep b{min-width:38px;text-align:center;font-size:17px}
.shopItemBuy .btn{flex:1;max-width:210px;padding:11px 13px}

/* 전체 자동조합 결과 카드 목록 (user req 2026-10-12) */
.cbAllOut{max-height:46vh;overflow-y:auto;padding:2px}

/* 라인업 모바일 정리 (user req 2026-10-12): 필드 카드 축소 + 4줄 배치(ui.js FIELD_XY_M)로 겹침 제거,
   후보 타자는 큰 카드 대신 한 줄 목록(작은 얼굴 + 이름 + 포지션/등급 + OVR) - 박스 안 이중 스크롤 없음 */
@media(max-width:680px){
  .lineupBatLayout .posSlot{left:var(--mx);top:var(--my);width:70px;height:84px;border-radius:9px}
  .lineupBatLayout .posSlot.empty{height:auto}
  .lineupBatLayout .posSlot .psArt canvas{height:84px!important;width:auto!important;max-width:none!important;flex:none}
  .lineupBatLayout .posSlot .psInfo{padding:5px 6px 5px}
  .lineupBatLayout .posSlot .psTop{font-size:8.5px}
  .lineupBatLayout .posSlot .psName{font-size:11px;margin-top:1px}
  .lineupBatLayout .posSlot .psSub{margin-top:2px;gap:4px}
  .lineupBatLayout .posSlot .psSub .gr{min-width:14px;height:14px;font-size:8px}
  .lineupBatLayout .posSlot .psSub b{font-size:10px}
  .benchCol{max-height:none;overflow:visible;gap:6px}
  .benchCol .subCard{flex-direction:row;align-items:center;gap:10px;padding:6px 10px;min-height:56px}
  .benchCol .subCard .scArt{order:0;width:44px;height:44px;flex:none;overflow:hidden;border-radius:8px;
    background:rgba(255,255,255,.04);display:flex;align-items:flex-end;justify-content:center}
  .benchCol .subCard .scArt canvas{height:44px!important;width:auto!important;max-width:none!important;flex:none}
  .benchCol .subCard .scName{order:1;flex:1;min-width:0;text-align:left;font-size:13.5px;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .benchCol .subCard .scTop{order:2;gap:6px;align-items:center;font-size:11px}
  .benchCol .subCard .scAttr{order:3;gap:4px;align-items:baseline;font-size:10.5px}
  .benchCol .subCard .scAttr b{font-size:14px}
}

/* 좁은 폰 화면 상단 바 (user req 2026-10-12): 제목이 한 줄에 들어가도록 재화 칩/간격을 살짝 줄인다 */
@media(max-width:440px){
  .bar{gap:8px;padding:10px 10px}
  .bar h2{font-size:15px}
  .res{gap:4px}
  .resChip{padding:4px 7px;gap:4px;font-size:11.5px}
}

/* 업적 진행도 (user req 2026-10-12) */
.achInfo{flex:1;min-width:0}
.achProg{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:10.5px;color:var(--dim)}
.achProg span{white-space:nowrap}
.achProg b{color:var(--txt);font-size:11px}
.achProgBar{flex:1;max-width:160px;height:5px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden}
.achProgBar i{display:block;height:100%;border-radius:99px;background:var(--ui)}
.achProg.done .achProgBar i{background:var(--green,#43D98A)}
@media(max-width:380px){
  .bar{gap:6px;padding:9px 8px}
  .bar h2{font-size:14px}
  .res{gap:3px}
  .resChip{padding:3px 6px;gap:3px;font-size:10.5px}
  .resChip .itemIco{width:12px;height:12px;margin-right:0;vertical-align:middle}
}

/* 유니크 픽업 스카우트 (user req 2026-10-12) - 배너(임시 그림, 사용자 그림 오면 교체) + 이벤트 페이지 픽업 칸 */
.evBanner.pick:not(.closed){background:linear-gradient(90deg,rgba(8,12,70,.78) 0%,rgba(8,12,70,.45) 42%,rgba(8,12,70,0) 72%),
  url(img/pick_banner.jpg) right center/cover no-repeat,#1A2A9A;border-color:rgba(170,150,255,.55);box-shadow:0 14px 30px -18px #6A4DFF}
.evBanner.pick .evSub{text-shadow:0 1px 6px rgba(5,10,60,.9)}
/* 종료: 배너 그림 그대로 검게 가라앉힌 모습 (다른 이벤트와 동일) */
.evBanner.pick.closed::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#000 0%,rgba(0,0,0,.7) 40%,rgba(0,0,0,0) 70%),url(img/pick_banner.jpg) right center/cover no-repeat;filter:grayscale(1) brightness(.3);pointer-events:none}
.evBanner.pick.closed .evInfo{position:relative;z-index:1}
.pickPanel{display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px 14px}
.pickStage{width:176px;min-height:250px;border-radius:16px;border:2px dashed rgba(18,245,232,.55);
  background:radial-gradient(circle at 50% 40%,rgba(18,245,232,.18),rgba(18,245,232,.03) 70%);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;color:#CFFFFA;padding:0}
.pickStage .pickPlus{font-size:46px;font-weight:300;line-height:1}
.pickStage .pickHint{font-size:12px;font-weight:700;color:var(--dim)}
.pickStage.has{border:0;background:none;min-height:0;filter:drop-shadow(0 0 22px rgba(18,245,232,.45))}
.pickStage.has .card{width:176px}
.pickMeta{display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center}
.pickName{font-size:17px;font-weight:900}
.pickLeft{color:var(--dim)}
.odds .pickOdd{border-color:rgba(18,245,232,.6);background:rgba(18,245,232,.10)}
.odds .pickOdd b{color:#5FF7EE}
.card.pickSel{box-shadow:0 0 0 3px #12F5E8,0 0 18px rgba(18,245,232,.6)}
.evBanner.pick .evName{font-size:20px;word-break:keep-all}

/* 카드 교환소 (user req 2026-10-12) */
.evBanner.exch{background:linear-gradient(90deg,rgba(60,30,4,.85) 0%,rgba(60,30,4,.5) 45%,rgba(60,30,4,0) 75%),
  url(img/exch_banner.jpg) right center/cover no-repeat,#E89A1C;border-color:rgba(255,220,150,.5);box-shadow:0 14px 30px -18px #F5A623}
.evBanner.exch .evSub{text-shadow:0 1px 6px rgba(60,30,4,.9)}
.evBanner.exch .evArt{width:96px;height:72px;flex:none}
.exHead .exPts{display:flex;align-items:baseline;gap:6px;margin:10px 0 4px}
.exHead .exPts small{color:var(--dim);font-size:12px;font-weight:700}
.exHead .exPts b{font-size:28px;font-weight:900;color:var(--gold)}
.exHead .exPts span{font-weight:900;color:var(--gold)}
.exGain{color:var(--gold);font-size:18px}
.card.exSel{box-shadow:0 0 0 3px var(--gold),0 0 16px rgba(245,197,24,.55)}
.card.exSel::after{content:'✓';position:absolute;top:6px;left:50%;transform:translateX(-50%);z-index:5;width:26px;height:26px;border-radius:50%;
  background:var(--gold);color:#1a1200;font-weight:900;display:grid;place-items:center;font-size:15px}
/* 유니크 각성 재료 카드 아이콘 - 검은 실루엣이 묻히지 않게 유니크 등급 카드 배경 + 유니크 색(시안) 테두리 박스 */
.exSIco{width:34px;height:34px;font-size:18px;border-radius:9px;margin-right:8px;display:grid;place-items:center;flex:none}
.exPosGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.exPosBtn{padding:10px 0;font-weight:900}

/* ===== 홈런 더비 (user req 2026-10-12) - derby.js ===== */
/* 더비 화면: 스코어/카운트/다이아몬드/선수 정보 박스는 쓰지 않고 자체 HUD(#dbHud)만 */
#scGame.derbyMode .sbWrap,#scGame.derbyMode .dia,#scGame.derbyMode .catcherThrow,#scGame.derbyMode .piWrap,#scGame.derbyMode #btnAuto,#scGame.derbyMode #autoIndicator{display:none !important}
#dbHud{position:absolute;top:10px;left:10px;z-index:4;min-width:150px;max-width:62vw}
.dbHead{font-size:11px;font-weight:800;color:var(--gold);letter-spacing:.04em;margin-bottom:3px}
.dbRow{opacity:.55;transition:opacity .2s}
.dbRow.on{opacity:1}
.dbRow .dbSeedTag,.dbSeedTag{flex:none;display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;
  background:rgba(255,255,255,.14);font-style:normal;font-size:10px;font-weight:900;color:#fff}
.dbRow em{font-style:normal;font-size:11px;font-weight:800;color:var(--gold)}
.dbFoot{gap:6px}
.dbDots{display:flex;gap:3px;flex-wrap:wrap}
.dbDots i{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.16)}
.dbDots i.on{background:var(--red)}
/* 강스윙 버튼 - 가운데에 크게 */
#scGame.derbyMode #batPanel{justify-content:center}
#scGame.derbyMode #batPanel .btn{flex:0 1 260px;padding:16px 10px;font-size:17px}
#batPanel .btn.dbHint{animation:dbPulse 1.1s ease-in-out infinite;border-color:var(--gold)}
@keyframes dbPulse{0%,100%{box-shadow:0 0 0 0 rgba(245,197,66,.0)}50%{box-shadow:0 0 18px 2px rgba(245,197,66,.55)}}
/* 대결 소개 · 결과 카드 */
.dbIntroHead{width:100%;text-align:center;font-size:13px;font-weight:900;color:var(--gold);letter-spacing:.06em;margin-bottom:2px}
.mu:has(.dbIntroHead){flex-wrap:wrap;justify-content:center}
.dbIntroHint{width:100%;text-align:center;font-size:11.5px;font-weight:700;color:var(--dim);margin-top:4px}
.dbTag{font-size:10px;font-weight:900;padding:2px 7px;border-radius:7px;background:rgba(245,197,66,.18);color:var(--gold)}
.dbRes{width:min(420px,100%);display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:var(--r2);
  background:linear-gradient(150deg,rgba(24,34,64,.96),rgba(10,17,34,.97));border:1px solid var(--line2);text-align:center}
.dbResRow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border-radius:10px;
  background:rgba(255,255,255,.05);font-weight:800;opacity:.7}
.dbResRow.w{opacity:1;background:rgba(245,197,66,.16);border:1px solid rgba(245,197,66,.5)}
.dbResRow b{font-family:var(--display);font-size:26px;line-height:1}
.dbResRow small,.dbScore small{font-size:11px;color:var(--gold);margin-left:3px}
.dbResWin{font-size:17px;font-weight:900;color:var(--gold)}
/* 대진표 */
.dbMatch{display:flex;gap:8px;align-items:stretch;padding:8px 0;border-top:1px solid var(--line)}
.dbMatch:first-of-type{border-top:0}
.dbMatch.mine .dbSides{outline:1px solid rgba(245,197,66,.45);border-radius:10px}
.dbMNo{flex:none;width:18px;display:grid;place-items:center;font-size:11px;font-weight:900;color:var(--dim2)}
.dbSides{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.dbSide{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:9px;background:rgba(255,255,255,.04);min-width:0}
.dbSide.w{background:rgba(245,197,66,.16)}
.dbSide.l{opacity:.55}
.dbSide.tbd{opacity:.5}
.dbSeed{flex:none;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.12);font-size:11px;font-weight:900}
.dbNm{flex:1;min-width:0;font-weight:800;font-size:13.5px;display:flex;flex-direction:column;gap:1px}
.dbNm em{font-style:normal;font-size:10.5px;font-weight:700;color:var(--dim);display:flex;align-items:center;gap:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dbScore{flex:none;font-family:var(--display);font-size:22px;min-width:26px;text-align:right}
.dbVia{flex:none;width:100%;font-size:10.5px;color:var(--dim);font-weight:700;padding-left:26px}
.dbMatch{flex-wrap:wrap}
.dbChamp{text-align:left}
.dbChampRow{display:flex;gap:10px;align-items:center;margin:6px 0}
.dbN{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ===== 자동진행 티켓 (user req 2026-10-12) ===== */
.autoSimRow{display:flex;align-items:center;gap:8px}
.autoSimRow .btn{flex:1}
.autoTkChip{display:inline-flex;align-items:center;gap:4px;padding:0 12px;height:42px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);font-size:14px;white-space:nowrap}
.autoTkChip b{font-size:16px}
.autoTkChip .itemIco{width:26px;height:auto;margin-right:2px;vertical-align:middle}
.autoQtyBox{display:flex;flex-direction:column;align-items:center;gap:8px;margin:12px 0 16px}
.autoQtyBox .qtyStep .btn{margin-left:6px}
.asimRow{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.asimRow:last-child{border-bottom:0}
.asimNo{width:24px;opacity:.55;text-align:right;font-size:12px}
.asimOpp{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.asimScore{font-size:16px}
.asimRes{min-width:26px;text-align:center;font-weight:900;font-size:13px;padding:2px 6px;border-radius:8px}
.asimRes.win{background:rgba(70,200,120,.18);color:#5fd68c}
.asimRes.lose{background:rgba(230,80,80,.18);color:#ff7b7b}
.asimRes.draw{background:rgba(255,255,255,.1);color:#cfd6e4}
.asimBoxes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.asimBox{padding:10px 4px 8px;border-radius:12px;text-align:center;background:linear-gradient(165deg,rgba(23,36,66,.96),rgba(9,15,30,.96));border:1px solid var(--line2);min-width:0}
.asimBoxTeams{display:flex;align-items:center;justify-content:center;gap:2px}
.asimLg{width:34px;height:34px;display:flex;align-items:center;justify-content:center;flex:none}
.asimLg canvas{width:34px!important;height:34px!important;filter:drop-shadow(0 2px 4px rgba(0,0,0,.5))}
.asimVs{font-size:10px;color:var(--dim);font-weight:900}
.asimHA{margin-top:6px;font-size:10.5px;font-weight:900;letter-spacing:.6px;color:var(--dim)}
.asimHA.home{color:#7FC4FF}
.asimBoxScore{margin-top:2px;font-size:20px;font-weight:900;color:var(--dim2);letter-spacing:.5px}
.asimBox.shown{animation:asimPop .35s ease-out}
.asimBox.shown .asimBoxScore{color:#fff}
.asimBox.win{border-color:#1E8CFF;box-shadow:0 0 12px rgba(30,140,255,.55)}
.asimBox.win .asimBoxScore{color:#2E9BFF;text-shadow:0 0 8px rgba(30,140,255,.55)}
.asimBox.lose{border-color:#FF5A5A;box-shadow:0 0 10px rgba(255,90,90,.3)}
.asimBox.lose .asimBoxScore{color:#FF6B6B}
.asimBox.draw{border-color:#8C94A6;box-shadow:0 0 8px rgba(140,148,166,.25)}
.asimBox.draw .asimBoxScore{color:#B4BBCB}
@keyframes asimPop{0%{transform:scale(.88);opacity:.5}60%{transform:scale(1.05)}100%{transform:scale(1);opacity:1}}

/* ===== 홈런 더비 우승자 페이지 (user req 2026-10-12) ===== */
.dbChampPage{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:22px 16px;background:radial-gradient(120% 80% at 50% 0%,color-mix(in srgb,var(--k,#E0A82E) 28%,transparent),transparent 70%),var(--panel,rgba(255,255,255,.04))}
.dbChampTag{font-size:12px;letter-spacing:.12em;color:var(--gold);font-weight:800}
.dbChampArt{width:150px;height:184px;margin:6px 0;filter:drop-shadow(0 8px 22px rgba(245,197,66,.35))}
.dbChampName{font-size:24px;font-weight:900;display:flex;align-items:center;gap:6px}
.dbChampStats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;width:100%;margin:12px 0 4px}
.dbChampStats div{display:flex;flex-direction:column;gap:2px;padding:8px 2px;border-radius:10px;background:rgba(255,255,255,.06)}
.dbChampStats b{font-size:17px}
.dbChampStats span{font-size:10.5px;opacity:.7}
.dbChampFinal{display:flex;flex-direction:column;gap:3px;width:100%;margin-top:6px;font-size:13px}
.dbChampFinal .dbFW{color:var(--gold);font-weight:800}
.dbChampFinal .dbFL{opacity:.7}
.dbChampFinal small{font-size:11px;color:var(--gold);margin-left:2px}
.dbChampMine{margin-top:12px;padding:10px 12px;border-radius:12px;background:rgba(245,197,66,.14);border:1px solid rgba(245,197,66,.45);font-weight:800;width:100%}

/* 아이템 보관함 (user req 2026-10-13) */
.itemBtn{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin-top:14px;padding:12px 14px;text-align:left;
  background:var(--panel);border:1px solid var(--line);border-radius:14px;color:var(--txt);cursor:pointer}
.itemBtn:hover{border-color:var(--ui)}
.itemBtn i{font-style:normal;font-size:22px;line-height:1}
.itemBtn b{font-size:14px;font-weight:800}
.itemBtn span{flex:1;font-size:11px;color:var(--dim2)}
.itemBtn em{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-style:normal;font-size:20px;color:var(--dim2)}
.itemGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.itemTile{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 4px 10px;background:var(--panel);
  border:1px solid var(--line);border-radius:12px;color:var(--txt);cursor:pointer}
.itemTile:hover{border-color:var(--ui)}
.itemTileIco{display:grid;place-items:center;height:48px}
.itemTileIco .itemIco.lg{width:46px;height:46px;margin:0;vertical-align:baseline}
.itemTileName{font-size:11px;line-height:1.25;text-align:center;color:var(--dim);word-break:keep-all;min-height:27px}
.itemTileCnt{font-size:14px;font-weight:900}
.itemDetail{text-align:center}
.itemDetailIco{display:grid;place-items:center;height:84px;margin-bottom:6px}
.itemDetailIco .itemIco.lg{width:80px;height:80px;margin:0;vertical-align:baseline}
.itemDetailCnt{margin-bottom:12px;font-size:13px;color:var(--dim)}
.itemDetailCnt b{font-size:16px;color:var(--txt)}
.itemDetail p{text-align:left}

/* 픽업 스카우트 누적 뽑기 게이지 (user req 2026-10-13) */
.pityBox{width:100%;margin-top:6px;padding:10px 6px 0}
.pityHead{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px;font-size:12px;font-weight:700;color:var(--dim)}
.pityHead b{font-size:15px;color:#5FF7EE}
.pityBar{position:relative;height:10px;border-radius:6px;background:rgba(255,255,255,.10);margin:0 10px}
.pityBar i{position:absolute;left:0;top:0;bottom:0;border-radius:6px;background:linear-gradient(90deg,#12B8B0,#5FF7EE);box-shadow:0 0 10px rgba(18,245,232,.5)}
.pityBar s{position:absolute;top:-4px;width:18px;height:18px;margin-left:-9px;border-radius:50%;background:var(--bg3);border:2px solid rgba(255,255,255,.35);box-sizing:border-box}
.pityBar s.on{background:#12F5E8;border-color:#CFFFFA;box-shadow:0 0 10px rgba(18,245,232,.8)}
.pityLbls{position:relative;height:20px;margin:6px 10px 0}
.pityLbls span{position:absolute;top:0;transform:translateX(-50%);font-size:12px;font-weight:800;color:var(--dim2);white-space:nowrap}
.pityLbls span:last-child{transform:translateX(-70%)}
.pityLbls span.on{color:#5FF7EE}
.pityNote{margin-top:4px;text-align:center;color:var(--dim)}

/* 타자 발사각 표기 (user req 2026-10-14): 상세페이지 OVR 오른쪽 */
.laTag{margin-left:6px;padding:1px 6px;border-radius:6px;font-size:12px;font-weight:800;color:#CFE6FF;background:rgba(95,178,245,.16);border:1px solid rgba(95,178,245,.4);font-variant-numeric:tabular-nums;white-space:nowrap}

/* 로비 메뉴 이미지 아이콘 (user req 2026-10-14) - 흰색 실루엣, 이모지 자리(20px 높이)에 맞춰 비율 유지 */
.menuTile i,.itemBtn i{display:flex;align-items:center;height:30px}
.menuIco{height:22px;width:auto;max-width:30px;object-fit:contain}
.menuIco.big{height:30px;max-width:42px}
.menuIco.xl{height:34px;max-width:48px;flex:none}
.itemBtn i:empty{display:none}

/* 마이플레이어 타자/투수 선택 버튼 - 선수카드 형식(등급·정보 없이 카드 이미지만) */
.kindBtn{display:flex;flex-direction:column;align-items:center;gap:8px;padding:0;background:none;border:0;color:var(--txt);cursor:pointer}
.kindBtn .kindCard{width:100%}
.kindBtn .kindCard .cArt{height:168px}
.kindBtn:hover .kindCard{transform:translateY(-2px);border-color:var(--line2)}
.kindBtn b{font-size:15px;font-weight:800}

/* L등급(레전드) 카드 - 검정 바탕에 금빛 후광 */
.card.leg{border:0;box-shadow:0 0 0 1.5px rgba(240,196,80,.95),0 10px 34px -12px rgba(245,190,50,.85)}
.card.leg .cGlow{background:#050507 url(img/leg_bg.jpg) center/104% 103% no-repeat}
/* 카드틀(img/leg_bg.jpg)의 왼쪽 위 월계관 뱃지 / 오른쪽 위 박스 위치에 L 표시와 능력치를 맞춘다.
   배경이 카드 크기에 맞춰 104%x103%로 늘어나므로 좌표도 카드 기준 % */
.card.leg .cTop{inset:0;display:block}
.card.leg .cTop .cTopL{display:block;position:absolute;left:1.5%;top:calc(2.6% - 5px);width:24%;height:20.8%}
.card.leg .cTopL .gr{position:absolute;inset:0;min-width:0;height:auto;filter:drop-shadow(0 2px 3px rgba(0,0,0,.6))}
.card.leg .cTopL .awkIcon{position:absolute;top:calc(100% - 3px);left:50%;transform:translateX(-50%);height:19px}
.card.leg .cTop .cTopR{display:block;position:absolute;left:74%;top:5.7%;width:21.4%;height:11.3%}
.card.leg .cTopRow{display:block;position:static}
.card.leg .ovrTag{position:absolute;inset:-1px;min-width:0;height:auto;border:0;border-radius:0;isolation:isolate;
  background:linear-gradient(135deg,#FFEBA8,#C98E1C 48%,#F7CB4A);clip-path:polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px);
  color:#FFF3CC;font-size:15px;text-shadow:0 0 8px rgba(245,190,50,.8);padding:1.2px 0 0 1px;box-sizing:border-box}
.card.leg .ovrTag::before{content:'';position:absolute;inset:1.5px;z-index:-1;
  background:radial-gradient(120% 140% at 50% 35%,#201808,#070503);
  clip-path:polygon(5px 0,calc(100% - 5px) 0,100% 5px,100% calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,0 calc(100% - 5px),0 5px)}
.card.leg .condIco{position:absolute;right:0;top:calc(100% + 5px)}
.card.leg .injIco{position:absolute;right:0;top:calc(100% + 27px)}
/* 선수 하반신이 아래 이름 칸 위에 떠 보이지 않도록 그림을 12px 내려 칸 윗선에 붙인다 (카드 높이는 그대로) */
.card.leg .cArt{height:136px;margin-bottom:-12px}
.card.leg .cBody{background:linear-gradient(180deg,transparent 12px,rgba(6,11,22,.92) 30px)}
.card.leg .cName{color:#FFE7A8;text-shadow:0 0 12px rgba(245,190,50,.75)}
.card.rvL{animation:rvS .8s cubic-bezier(.15,1.4,.25,1) backwards;box-shadow:0 0 0 2px rgba(255,225,130,.98),0 12px 44px -8px rgba(245,190,50,1)}

/* L 뱃지는 월계관까지 들어간 그림이라 작은 칸에서도 조금 크게 보여 준다 (라인업/투수진/골든글러브 칸) */
.posSlot .psSub .gr.gR,.lineupBatLayout .posSlot .psSub .gr.gR,.posSlot .psSub .gr.gU,.lineupBatLayout .posSlot .psSub .gr.gU,.posSlot .psSub .gr.gL,.lineupBatLayout .posSlot .psSub .gr.gL{min-width:23px;height:20px;padding:0}
.pitCard .pcSub .gr.gR,.pitCard .pcSub .gr.gU,.pitCard .pcSub .gr.gL{min-width:23px;height:20px;padding:0}
.ggSlot .ggSub .gr.gR,.ggSlot .ggSub .gr.gU,.ggSlot .ggSub .gr.gL{min-width:22px;height:19px;padding:0}

/* M등급(몬스터) 카드 - 검정 바탕에 붉은 크리스탈 틀 (user req 2026-10-19) */
.card.mon{border:0;box-shadow:0 0 0 1.5px rgba(229,35,59,.95),0 10px 34px -12px rgba(229,35,59,.85)}
.card.mon .cGlow{background:#050507 url(img/mon_bg.jpg) center/104% 103% no-repeat}
/* 카드틀(img/mon_bg.jpg)의 왼쪽 위 M 뱃지 / 오른쪽 위 박스 위치에 M 표시와 능력치를 맞춘다.
   배경이 카드 크기에 맞춰 104%x103%로 늘어나므로 좌표도 카드 기준 % */
.card.mon .cTop{inset:0;display:block}
.card.mon .cTop .cTopL{display:block;position:absolute;left:1.5%;top:calc(2.6% - 5px);width:24%;height:20.8%}
.card.mon .cTopL .gr{position:absolute;inset:0;min-width:0;height:auto;filter:drop-shadow(0 2px 3px rgba(0,0,0,.6))}
.card.mon .cTopL .awkIcon{position:absolute;top:calc(100% + 9px);left:50%;transform:translateX(-50%);height:19px}
.card.mon .cTop .cTopR{display:block;position:absolute;left:74%;top:5.7%;width:21.4%;height:11.3%}
.card.mon .cTopRow{display:block;position:static}
.card.mon .ovrTag{position:absolute;inset:-1px;min-width:0;height:auto;border:0;border-radius:0;isolation:isolate;
  background:linear-gradient(135deg,#FF8A8A,#B3121F 48%,#E5233B);clip-path:polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px);
  color:#FFE3E3;font-size:15px;text-shadow:0 0 8px rgba(255,60,70,.85);padding:1.2px 0 0 1px;box-sizing:border-box}
.card.mon .ovrTag::before{content:'';position:absolute;inset:1.5px;z-index:-1;
  background:radial-gradient(120% 140% at 50% 35%,#240606,#070202);
  clip-path:polygon(5px 0,calc(100% - 5px) 0,100% 5px,100% calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,0 calc(100% - 5px),0 5px)}
.card.mon .condIco{position:absolute;right:0;top:calc(100% + 5px)}
.card.mon .injIco{position:absolute;right:0;top:calc(100% + 27px)}
/* 선수 하반신이 아래 이름 칸 위에 떠 보이지 않도록 그림을 12px 내려 칸 윗선에 붙인다 (카드 높이는 그대로) */
.card.mon .cArt{height:136px;margin-bottom:-12px}
.card.mon .cBody{background:linear-gradient(180deg,transparent 12px,rgba(6,11,22,.92) 30px)}
.card.mon .cName{color:#FFD0D0;text-shadow:0 0 12px rgba(255,60,70,.8)}
.card.rvM{animation:rvS .8s cubic-bezier(.15,1.4,.25,1) backwards;box-shadow:0 0 0 2px rgba(255,120,130,.98),0 12px 44px -8px rgba(229,35,59,1)}

/* M 뱃지는 문장까지 들어간 그림이라 작은 칸에서도 조금 크게 보여 준다 (라인업/투수진/골든글러브 칸) */
.posSlot .psSub .gr.gM,.lineupBatLayout .posSlot .psSub .gr.gM{min-width:23px;height:20px;padding:0}
.pitCard .pcSub .gr.gM{min-width:23px;height:20px;padding:0}
.ggSlot .ggSub .gr.gM{min-width:22px;height:19px;padding:0}

/* M등급 표시는 어디서나 M 문장 뱃지 그림 */
.gM{background:url(img/badge_M.png) center/contain no-repeat;min-width:25px;padding:0;border-radius:0;box-shadow:none;color:transparent;font-size:0;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))}
/* 특별조합 레전드 목록 (누르면 아래로 제작 재료가 펼쳐진다) */
.legList{display:grid;gap:12px}
.legItem{padding:12px}
.legHead{display:flex;gap:12px;align-items:center;cursor:pointer}
.legThumb{flex:none;width:112px}
.legThumb .card{pointer-events:none}
.legInfo{flex:1;min-width:0}
.legChev{flex:none;align-self:flex-start;font-size:15px;color:var(--dim);padding:2px 4px}
.legItem.open{box-shadow:0 0 0 1.5px rgba(240,196,80,.55)}
.legBody[hidden]{display:none}

/* 유니크 - 이벤트 매치 (user req 2026-10-21) */
.evBanner.um{background:linear-gradient(90deg,rgba(2,26,24,.7) 0%,rgba(2,26,24,.4) 40%,rgba(2,26,24,0) 70%),url(img/um_banner.jpg) right center/cover no-repeat,#0E5A55;box-shadow:0 14px 30px -18px #3FD6C0;border-color:rgba(120,240,220,.45)}
.evBanner.um .evName{font-size:16px;white-space:nowrap}
.evBanner.um.closed{background:#000;border-color:#000;box-shadow:none}
.evBanner.um.closed .evSub{color:#6a6a6a;text-shadow:none}
.evBanner.um.closed .evName{color:#7a7a7a;text-shadow:none}
.umStage{align-items:center}
.umStage.cur{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold) inset}
.umStage.lock{opacity:.55}
.umTag{flex:none;font-size:12px;font-weight:800;color:var(--dim)}
.umStage.cur .umTag{color:var(--gold)}
.umStage.claimed .umTag{color:#6bd48a}
.evBanner.um.closed::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#000 0%,rgba(0,0,0,.7) 40%,rgba(0,0,0,0) 70%),url(img/um_banner.jpg) right center/cover no-repeat;filter:grayscale(1) brightness(.3)}
.evBanner.um.closed .evInfo{position:relative;z-index:1}

/* 보상정보 표: 열이 많은 리그(마스터)도 가로 스크롤 없이 보이게 촘촘하게 */
.rwTbl th,.rwTbl td{padding:9px 5px;font-size:12px;white-space:nowrap}
.rwTbl th img.itemIco,.rwTbl th .ucIco{width:16px;height:16px;margin-right:3px;vertical-align:-3px}

/* 각성 - 동일선수 보너스 (user req 2026-10-21) */
.slot.bonus{border-color:var(--gold);border-style:solid}
.slot.bonus .card{filter:brightness(.8) saturate(.9)}
.slot .bonusTag{position:absolute;left:0;right:0;bottom:0;z-index:5;padding:5px 2px;text-align:center;font-size:11px;font-weight:900;letter-spacing:-.3px;
  color:#2a1c00;background:linear-gradient(180deg,#ffe27a,#f0b429);box-shadow:0 -2px 8px rgba(0,0,0,.45);pointer-events:none}
.card .dupTag{position:absolute;left:0;right:0;bottom:0;z-index:6;padding:3px 0;text-align:center;font-size:10px;font-weight:900;color:#2a1c00;
  background:linear-gradient(180deg,#ffe27a,#f0b429);pointer-events:none}

.evBanner.um .evSub{text-shadow:0 1px 6px rgba(0,25,22,.9)}

/* 훈련 재분배: 선수 카드를 패널 폭으로 늘리지 않고 일반 카드 크기로 가운데에 둔다 */
.cmpHead.rdHead{grid-template-columns:1fr}
.rdHead #rdCard{align-items:center}
.rdHead #rdCard .card{width:130px}

/* 챌린지 타워 (user req 2026-10-23) */
.evBanner.tw:not(.closed){background:linear-gradient(90deg,rgba(10,0,2,.55) 0%,rgba(10,0,2,.25) 40%,rgba(10,0,2,0) 70%),url(img/tw_banner.jpg) right center/cover no-repeat,#1a0305;box-shadow:0 14px 30px -18px #E0201C;border-color:rgba(255,90,80,.45)}
.evBanner.tw .evName{font-size:16px;white-space:nowrap}
.evBanner.tw .evSub{text-shadow:0 1px 6px rgba(20,0,0,.95)}
.evBanner.tw.closed{background:#000;border-color:#000;box-shadow:none}
.evBanner.tw.closed::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#000 0%,rgba(0,0,0,.7) 40%,rgba(0,0,0,0) 70%),url(img/tw_banner.jpg) right center/cover no-repeat;filter:grayscale(1) brightness(.3);pointer-events:none}
.evBanner.tw.closed .evInfo{position:relative;z-index:1}
.evBanner.tw.closed .evSub,.evBanner.tw.closed .evName{color:#6a6a6a;text-shadow:none}
.twFloor .twFloorNo{font-size:30px;font-weight:900;text-align:center;margin:2px 0 10px;color:var(--gold)}
.twKey{display:grid;justify-content:center;gap:10px;grid-template-columns:repeat(var(--tc2,2),minmax(0,150px))}
.twKey .card{width:100%}
@media (min-width:720px){.twKey{gap:12px;grid-template-columns:repeat(var(--tcn,4),150px)}.twKey .card{width:auto}}
.twKey .card{cursor:pointer}
.coldTag{margin-top:10px;padding:8px 10px;text-align:center;border-radius:10px;font-weight:800;font-size:13px;color:#FFD84A;background:rgba(255,200,40,.12);border:1px solid rgba(255,200,40,.4)}

/* 이닝 교대 직후 잠깐 버튼이 눌리지 않는 동안 패널을 흐리게 (game.js HALF_CTL_LOCK_MS) */
#batPanel.ctlWait,#pitPanel.ctlWait,#btnSteal.ctlWait,#btnPickoff.ctlWait{opacity:.45;transition:opacity .12s}

/* ===== 선수 특훈 (special.js, user req 2026-10-26) ===== */
.spTabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.spTab{display:flex;flex-direction:column;align-items:center;gap:2px;padding:9px 4px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:var(--txt);font:inherit;cursor:pointer}
.spTab small{font-size:11px;color:var(--dim)}
.spTab.on{border-color:#A855F7;background:rgba(168,85,247,.16)}
.spTab.locked{opacity:.55}
.spTab.training small{color:#C792FF}.spTab.done small{color:var(--gold);font-weight:800}
.spLock{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:26px 14px}
.spBox{position:relative}
.spState{text-align:center;font-weight:900;font-size:15px;letter-spacing:.5px;padding:6px 0 10px;color:#C792FF}
.spState.done{color:var(--gold)}
.spInfo{display:flex;gap:12px;align-items:flex-start}
.spCardBox{flex:none;width:124px}
.spCardBox .card{width:124px}
.spStats{flex:1;min-width:0}
.spRow{display:grid;grid-template-columns:40px 34px 1fr 28px;align-items:center;gap:4px;padding:5px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:13px}
.spRow .spNm{color:var(--dim)}
.spRow .spVal{font-weight:800}
.spUp{color:#B66BFF;font-weight:800;font-size:12px}
.spUp.z{opacity:.45}
.spUp em{font-style:normal;color:#E3C4FF;text-decoration:underline;margin-left:1px}
.spUp small{color:var(--dim);font-weight:500;margin-left:2px}
.spPlus{width:26px;height:26px;border-radius:8px;border:1px solid #A855F7;background:rgba(168,85,247,.2);color:#E3C4FF;font-size:17px;font-weight:800;line-height:1;cursor:pointer;padding:0}
.spPlus:disabled{opacity:.3;cursor:default}
.spPts{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:10px;font-size:12px}
.spPts small{color:var(--dim)}
.spWarn{margin:6px 0 0;color:var(--dim)}
.spAct{margin-top:14px;text-align:center}
.spAct .btn{width:100%}
.spAct .btn.xs{width:auto}
/* 특훈 시작 버튼은 하위 페이지 투명도(70%) 예외 - 불투명 100% (user req 2026-11-14) */
#pageBody #spStart,#pageBody #spStart.btn.team{background:linear-gradient(180deg,color-mix(in srgb,var(--ui) 88%,#fff),var(--ui))}
.spGauge{position:relative;height:30px;border-radius:15px;background:rgba(168,85,247,.16);border:1px solid rgba(168,85,247,.45);overflow:hidden}
.spGauge i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#7C3AED,#B66BFF);transition:width .8s linear}
.spGauge span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:15px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.7);letter-spacing:.5px}
.spCutLine{margin-top:6px;text-align:right}
.spDoneBtn{background:linear-gradient(90deg,#7C3AED,#B66BFF)!important;color:#fff!important}
.statRow .up.sp{color:#B66BFF}

.menuTile.locked{opacity:.72}
.menuTile.locked b,.menuTile.locked span{color:var(--dim2)}

/* ---------- 주장 시스템 (user req 2026-10-29, js/captain.js) ---------- */
.card .cBody .capMark{position:absolute;right:6px;bottom:calc(100% + 2px);width:22px;height:22px;z-index:3;filter:drop-shadow(0 1px 3px rgba(0,0,0,.7));pointer-events:none}
.capTop{display:flex;gap:14px;align-items:flex-start}
.capCardBox{flex:none;width:136px}
.capInfo{flex:1;min-width:0}
.capReg{font-size:12px;font-weight:700;padding:6px 8px;border-radius:8px;line-height:1.4}
.capReg.ok{background:rgba(67,217,138,.14);color:#6EE7A8;border:1px solid rgba(67,217,138,.4)}
.capReg.no{background:rgba(255,107,107,.12);color:#FF9A9A;border:1px solid rgba(255,107,107,.4)}
.capGauge{position:relative;height:28px;border-radius:14px;background:rgba(255,210,63,.12);border:1px solid rgba(255,210,63,.45);overflow:hidden}
.capGauge i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#D99A12,#FFD23F);transition:width .6s}
.capGauge span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:14px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.75)}
.capList{display:flex;flex-direction:column;gap:10px}
.capAb{padding:11px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04)}
.capAb.on{border-color:#FFD23F;background:rgba(255,210,63,.09)}
.capAb.lock .capAbNow{color:var(--dim)}
.capAbHead{display:flex;align-items:center;gap:8px}
.capAbIco{font-size:18px;display:inline-flex;align-items:center}
.capAbIco img{width:46px;height:46px;object-fit:contain;margin:-6px 0}
.capPips{display:inline-flex;gap:4px;margin-left:2px}
.capPips i{width:14px;height:7px;border-radius:4px;background:rgba(255,255,255,.16)}
.capPips i.on{background:#FFD23F;box-shadow:0 0 6px rgba(255,210,63,.6)}
.capOn{margin-left:auto;font-style:normal;font-size:11px;font-weight:900;color:#1A1300;background:#FFD23F;border-radius:10px;padding:2px 8px}
.capAbNow{margin-top:6px;font-size:13px;color:var(--txt)}
.capAbNext{margin-top:2px;color:var(--dim)}
.capAbHead + .capAbNext{margin-top:6px}
.capAbBtns{display:flex;gap:8px;margin-top:9px;justify-content:flex-end}
.statRow .up.cap{color:#FFD23F}   /* 주장 해결사로 오른 능력치 (user req 2026-10-30) */
/* 능력치 박스: 기본은 합산값만, 줄을 누르면 (+N) 펼침 + 위쪽 범례 (user req 2026-10-30) */
.statRow.attrRow .ups{display:none}
.attrBox.open .statRow.attrRow .ups{display:inline}
.attrBox{cursor:pointer}
.attrLegend{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:2px 0 4px}
.attrLegend small{color:var(--dim);font-size:11px}
.attrLegend span{display:none;gap:10px;margin-left:auto}
.attrBox.open .attrLegend span{display:inline-flex}
.attrBox.open .attrLegend small{display:none}
.attrLegend b{font-size:12px;font-weight:800}
.statRow .up.awk{color:#4DA3FF}   /* 각성으로 오른 능력치 - 훈련(초록)과 별도 (user req 2026-10-30) */
/* 격자·원형 칸 가운데에 놓이는 아이템 아이콘은 오른쪽 여백(margin-right:4px)이 없어야 정확히 가운데 (user req 2026-10-30: 출석체크 코인이 왼쪽으로 쏠림) */
.attnIcon{display:flex;align-items:center;justify-content:center}
.attnIcon .itemIco,.goalIco .gi .itemIco{margin:0;vertical-align:middle}
/* 리그 보상정보 표 머리글: 아이콘과 문구 간격 좁게 (user req 2026-10-30) */
.rwTbl th .itemIco{margin-right:2px}
.condVal{display:inline-flex;align-items:center;gap:6px}

/* 골드 상점 배너 (user req 2026-11-02) */
.evBanner.gshop:not(.closed){background:linear-gradient(90deg,rgba(90,52,0,.82) 0%,rgba(90,52,0,.5) 40%,rgba(90,52,0,0) 72%),url(img/gshop_banner.jpg) right center/cover no-repeat,#B8820F;border-color:rgba(255,224,130,.55);box-shadow:0 14px 30px -18px #F5C518}
.evBanner.gshop .evSub{text-shadow:0 1px 6px rgba(60,30,0,.9)}
.evBanner.gshop.closed{background:#000;border-color:#000;box-shadow:none}
.evBanner.gshop.closed::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#000 0%,rgba(0,0,0,.7) 40%,rgba(0,0,0,0) 70%),url(img/gshop_banner.jpg) right center/cover no-repeat;filter:grayscale(1) brightness(.3);pointer-events:none}
.evBanner.gshop.closed .evInfo{position:relative;z-index:1}

/* 선수 상세 판매 버튼: 윗줄 골드 아이콘+금액, 아랫줄 '방출' (user req 2026-11-02) */
.btn.sellBtn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;line-height:1.15;white-space:nowrap}
.btn.sellBtn .sellTop{display:flex;align-items:center;justify-content:center;gap:5px;font-size:14px}
.btn.sellBtn .sellTop .itemIco{width:18px;height:18px}
.btn.sellBtn .sellBot{font-size:15px;font-weight:900}


/* 정규시즌 최종 순위 페이지 (user req 2026-11-02): 리그명 → 빈 공간(나중에 리그 트로피 아이콘) → 최종 순위 → 포스트시즌 진출 여부 → 확인 */
.fsWrap{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:calc(100vh - 200px);min-height:calc(100dvh - 200px)}
.fsBtn{width:180px;max-width:70%;margin-top:6px}
.fsPage{display:flex;flex-direction:column;align-items:center;text-align:center;padding:26px 16px 18px}
.fsTier{font-size:20px;font-weight:900;letter-spacing:.01em}
.fsSlot{width:100%;height:200px;display:flex;align-items:center;justify-content:center}
.tierTrophy.fs{height:190px;width:auto;max-width:90%;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(0,0,0,.45))}
.fsRank{display:flex;align-items:baseline;justify-content:center;gap:4px;margin-top:6px}
.fsRank b{font-size:64px;font-weight:900;line-height:1}
.fsRank span{font-size:26px;font-weight:900}
.fsStatus{margin-top:14px;font-size:18px;font-weight:900}
.fsStatus.ok{color:var(--green)}
.fsStatus.no{color:var(--red)}

/* 골드 랜덤 박스 개봉 연출 (user req 2026-11-02) */
.gbGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(54px,1fr));gap:7px;margin:4px 0 12px}
.gbSlot{position:relative;aspect-ratio:1;display:grid;place-items:center;border-radius:12px;
  background:var(--panel2);border:1px solid var(--line)}
.gbSlot .itemIco{width:36px;height:36px;object-fit:contain}
.gbSlot:not(.on) .itemIco{opacity:.28;filter:grayscale(.7)}
.gbSlot b{position:absolute;right:3px;bottom:2px;font-size:11px;font-weight:900;color:#fff;
  text-shadow:0 1px 3px #000,0 0 3px #000}
.gbSlot.on{border-color:rgba(255,255,255,.28)}
.gbSlot.pop{animation:gbPop .38s cubic-bezier(.2,1.4,.4,1) both}
.gbSlot.gbS{border-color:#4DA3FF;box-shadow:0 0 10px -1px #4DA3FF}
.gbSlot.gbU{border-color:#B67CFF;box-shadow:0 0 12px 0 #B67CFF}
.gbSlot.gbL{border-color:#FFD34D;box-shadow:0 0 16px 2px #FFD34D;background:linear-gradient(160deg,rgba(255,211,77,.28),var(--panel2))}
@keyframes gbPop{0%{transform:scale(.4);opacity:0}60%{transform:scale(1.22);opacity:1}100%{transform:scale(1)}}
.gbSum{margin-top:4px}
.gbSkipRow{display:flex;justify-content:center;margin-bottom:10px}
.gbSkipRow[hidden],.gbSum[hidden],#gbSkip[hidden]{display:none}
@media (prefers-reduced-motion:reduce){.gbSlot.pop{animation:none}}

/* 시상식 오버레이(z 70) 위에서도 선수 정보 팝업이 보이도록 (user req 2026-11-02) */
body:has(#awardsOverlay:not([hidden])) .modal{z-index:80}

/* 보관함 카드팩 개봉 팝업: 카드가 하나씩 팡 하고 나타난다 (user req 2026-11-02) */
#modalCard .drawGrid{gap:8px}
.drawGrid .gbPop{animation:pkPop .42s cubic-bezier(.2,1.3,.4,1) both}
@keyframes pkPop{0%{transform:scale(.55);opacity:0}65%{transform:scale(1.07);opacity:1}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.drawGrid .gbPop{animation:none}}

/* 부포지션이 있는 선수(SP/CP 등)는 카드 한 줄(포지션 · Lv · 스킬 아이콘)이 좁아서 스킬 아이콘이 잘렸다 - 이런 카드만 글자·간격·아이콘을 조금 줄인다 (user req 2026-11-02) */
.card .cMeta.tight{gap:3px;font-size:9.5px;letter-spacing:-.02em}
.card .cMeta.tight .lvTag{font-size:9px;padding:2px 4px}
.card .cMeta.tight .skillIcon{width:18px;height:18px}
/* 절전 화면 (js/saver.js) */
#saverOvl{position:fixed;inset:0;z-index:9999;background:#000;display:flex;align-items:center;justify-content:center;touch-action:manipulation;user-select:none}
#saverOvl[hidden]{display:none}
#saverOvl .svBox{text-align:center;color:#6f7787;transition:transform 2s ease;padding:0 24px;max-width:100%}
#saverOvl .svTier{font-size:13px;letter-spacing:.08em;color:#4d5565;margin-bottom:10px}
#saverOvl .svBig{font-size:30px;font-weight:800;color:#8b93a4}
#saverOvl .svMid{font-size:16px;margin-top:6px;color:#737b8c}
#saverOvl .svNow{font-size:14px;margin-top:22px;color:#656d7e}
#saverOvl .svSub{font-size:12px;margin-top:8px;color:#505869}
#saverOvl .svHint{font-size:12px;margin-top:26px;color:#4d5565}
#saverOvl .svHint2{font-size:11px;margin-top:6px;color:#3d4452}
/* 절전 해제 태양 버튼 - 가운데 아래, 절전 화면 톤에 맞춘 어두운 회색 (user req 2026-11-03) */
#saverOvl .svSun{position:absolute;left:50%;bottom:calc(34px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);
  width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;
  color:#7b8394;background:rgba(120,128,146,.10);border:1.5px solid rgba(120,128,146,.28);
  box-shadow:0 0 22px rgba(120,128,146,.12);-webkit-tap-highlight-color:transparent;touch-action:manipulation;padding:0}
#saverOvl .svSun:active{background:rgba(150,158,176,.2);color:#a0a8b8}
#saverOvl .svSun svg{display:block}

/* 절전 화면 진입 버튼 - 타격/투구 버튼 오른쪽 하단의 초승달 */
.saverMoon{position:absolute;right:10px;bottom:calc(9px + var(--safeB));width:36px;height:36px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;
  border:1px solid rgba(154,167,189,.45);background:rgba(10,16,30,.9);color:#aab4c8}
.saverMoon[hidden]{display:none}
.saverMoon:active{background:rgba(40,52,80,.95);color:#fff}

/* 포스트시즌 시리즈 프리뷰 (UI.postseason) */
.psWrap{position:relative;max-width:560px;margin:0 auto;border-radius:var(--r);overflow:hidden;padding-bottom:6px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.05) 0 25%,transparent 25% 100%),
    linear-gradient(225deg,rgba(120,80,255,.16) 0 30%,transparent 30% 100%),
    linear-gradient(35deg,rgba(60,120,255,.10) 0 28%,transparent 28% 100%),
    linear-gradient(170deg,#1b1560,#2b1a80 45%,#17133f)}
.psHero{margin:12px 12px 0;padding:14px 0 12px;background:rgba(8,10,38,.82);border:1px solid rgba(130,140,230,.22)}
.psHeroIn{display:flex;flex-direction:column;align-items:center;gap:2px}
.psTr{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 3px 8px rgba(0,0,0,.5))}
.psWord{padding:0 .12em 0 0;font-size:clamp(28px,9vw,44px);font-weight:900;font-style:italic;letter-spacing:.01em;line-height:1.05;
  background:linear-gradient(180deg,#fff,#b8c0d8);-webkit-background-clip:text;background-clip:text;color:transparent}
.psLg{font-size:12px;letter-spacing:.16em;color:#9fb0e8;font-weight:700}
.psStage{position:relative;padding:8px 10px 238px}
.psNav{display:flex;justify-content:space-between;gap:8px}
.psTag{display:flex;align-items:center;gap:8px;max-width:46%;padding:9px 14px;border:0;border-radius:3px;cursor:pointer;
  background:rgba(14,18,58,.88);color:#fff;font-size:14px;font-weight:700;box-shadow:0 2px 6px rgba(0,0,0,.35);white-space:nowrap}
.psTag i{font-style:normal;font-size:20px;line-height:1;font-weight:900}
.psTag:disabled{opacity:.28;cursor:default}
.psTag:not(:disabled):active{background:rgba(40,52,120,.95)}
.psFrame{position:relative;margin:36px 20% 0;border:3px solid #5aa8e8;border-bottom:0;min-height:132px}
.psFrame::before{content:"";position:absolute;left:50%;top:-40px;width:3px;height:37px;margin-left:-1.5px;background:#5aa8e8}
.psMid{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:2px}
.psRoundRow{display:flex;align-items:center;gap:10px}
.psRound{font-size:clamp(17px,5.2vw,26px);font-weight:800;color:#fff;white-space:nowrap}
.psInfoBtn{width:26px;height:26px;border:0;border-radius:4px;background:#8b8fb8;color:#fff;font-weight:900;font-size:15px;cursor:pointer;
  font-family:Georgia,serif;font-style:italic;padding:0;line-height:1}
.psGlow{width:78%;height:2px;margin:6px 0 2px;background:linear-gradient(90deg,transparent,#8fd6ff,transparent);box-shadow:0 0 10px #5aa8e8}
.psGameNo{font-size:clamp(26px,8vw,34px);font-weight:600;color:#33e1ff;letter-spacing:.02em}
.psFmt{font-size:11px;color:#a9b4e0}
.psSide{position:absolute;top:100%;margin-top:8px;width:136px;text-align:center}
.psSide.away{left:0;transform:translateX(-50%)}
.psSide.home{right:0;transform:translateX(50%)}
.psLogo{position:relative;width:112px;height:112px;margin:0 auto;display:flex;align-items:center;justify-content:center}
.psLogo canvas{filter:drop-shadow(0 4px 10px rgba(0,0,0,.5))}
.psLogo>span{width:96px;height:96px;border:3px dashed rgba(170,180,240,.5);border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:40px;font-weight:800;color:rgba(190,200,255,.6)}
.psWins{position:absolute;right:-4px;bottom:-4px;width:32px;height:32px;border-radius:50%;box-sizing:border-box;
  display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:800;font-size:17px;color:#fff;
  background:#1c5aa6;border:2px solid #8cc4ff;box-shadow:0 2px 6px rgba(0,0,0,.45)}
.psRole{margin-top:10px;padding:8px 0;background:rgba(10,14,50,.9);color:#4fd2ff;font-size:19px;font-weight:800;letter-spacing:.02em}
.psTName{margin-top:6px;font-size:13px;font-weight:700;color:#e8edff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.psSeed{font-size:11px;color:#9fb0e8;min-height:14px}
.psSide.won .psLogo canvas{filter:drop-shadow(0 0 14px rgba(255,215,90,.75))}
.psSide.lost{opacity:.55}
.psSide.lost .psLogo canvas{filter:grayscale(.7)}
.psResRow{position:absolute;left:50%;top:calc(100% + 48px);transform:translateX(-50%);display:flex;gap:8px}
.psRes{width:32px;height:32px;border-radius:50%;box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  font-weight:900;font-size:16px;font-style:italic;background:rgba(10,14,50,.55)}
.psRes.w{border:2px solid #35c4ff;color:#35c4ff;box-shadow:0 0 10px rgba(53,196,255,.5)}
.psRes.l{border:2px solid #9aa3bf;color:#bfc6dc}
.psRes.t{border:2px solid #7d86a6;color:#a8b0cc;font-size:16px;font-style:normal}

/* 세트 효과 (user req 2026-11-05) - 세트 효과로 오른 능력치는 파란색 */
.statRow .up.set{color:#FF8A1F}
.card .ovrTag{color:#fff}   /* 카드 우측상단 능력치는 항상 흰색 (user req 2026-11-05 - 세트 효과가 올라도 색을 바꾸지 않는다) */
.setSum{display:flex;justify-content:space-between;align-items:center;gap:10px}
.setSum b{color:#FFA14D}
.setTier{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.setTier .setTx{font-size:13px;line-height:1.35}
.setTier .setTx small{display:block;color:var(--dim);font-size:11px;margin-top:2px}
.setChip{flex:none;font-size:11px;font-weight:800;padding:4px 9px;border-radius:999px;background:rgba(255,255,255,.06);color:var(--dim);border:1px solid var(--line2)}
.setTier.on .setChip{background:rgba(255,138,31,.18);color:#FFA14D;border-color:#FF8A1F}
.setTier.on .setTx b{color:#FFA14D}
.setNote{font-size:11.5px;color:var(--dim);line-height:1.5;margin-top:10px}

.statRow .up.base{color:#B8BFCC}   /* 능력치를 눌러 펼치면 맨 왼쪽에 보이는 기본 능력치 (user req 2026-11-05) */
/* 일반 카드도 레전드/몬스터 카드처럼 능력치(OVR)는 우측 상단, 컨디션 아이콘은 그 아래 (user req 2026-11-05) */
.card .cTopRow{flex-direction:column;align-items:flex-end;gap:3px}
.card.leg .cTopRow,.card.mon .cTopRow,.card.uniq .cTopRow,.card.rise .cTopRow{flex-direction:row}
/* X등급(얼티밋 몬스터) 카드 - 검정 바탕에 보라색 크리스탈 틀 (user req 2026-11-06) - 몬스터(M) 카드 규칙을 그대로 따르고 색·틀 그림만 다르다 */
.card.ult{border:0;box-shadow:0 0 0 1.5px rgba(170,70,255,.95),0 10px 34px -12px rgba(170,70,255,.85)}
.card.ult .cGlow{background:#050507 url(img/ult_bg.png) center/104% 103% no-repeat}
/* 카드틀(img/ult_bg.png)의 왼쪽 위 뱃지 / 오른쪽 위 박스 위치에 M 표시와 능력치를 맞춘다.
   배경이 카드 크기에 맞춰 104%x103%로 늘어나므로 좌표도 카드 기준 % */
.card.ult .cTop{inset:0;display:block}
.card.ult .cTop .cTopL{display:block;position:absolute;left:1.5%;top:calc(2.6% - 5px);width:24%;height:20.8%}
.card.ult .cTopL .gr{position:absolute;inset:0;min-width:0;height:auto;filter:drop-shadow(0 2px 3px rgba(0,0,0,.6))}
.card.ult .cTopL .awkIcon{position:absolute;top:calc(100% + 9px);left:50%;transform:translateX(-50%);height:19px}
.card.ult .cTop .cTopR{display:block;position:absolute;left:74%;top:5.7%;width:21.4%;height:11.3%}
.card.ult .cTopRow{display:block;position:static}
.card.ult .ovrTag{position:absolute;inset:-1px;min-width:0;height:auto;border:0;border-radius:0;isolation:isolate;
  background:linear-gradient(135deg,#D9A8FF,#5B1FB5 48%,#8A3DFF);clip-path:polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px);
  color:#EBDDFF;font-size:15px;text-shadow:0 0 8px rgba(190,110,255,.85);padding:1.2px 0 0 1px;box-sizing:border-box}
.card.ult .ovrTag::before{content:'';position:absolute;inset:1.5px;z-index:-1;
  background:radial-gradient(120% 140% at 50% 35%,#14062A,#06020C);
  clip-path:polygon(5px 0,calc(100% - 5px) 0,100% 5px,100% calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,0 calc(100% - 5px),0 5px)}
.card.ult .condIco{position:absolute;right:0;top:calc(100% + 5px)}
.card.ult .injIco{position:absolute;right:0;top:calc(100% + 27px)}
/* 선수 하반신이 아래 이름 칸 위에 떠 보이지 않도록 그림을 12px 내려 칸 윗선에 붙인다 (카드 높이는 그대로) */
.card.ult .cArt{height:136px;margin-bottom:-12px}
.card.ult .cBody{background:linear-gradient(180deg,transparent 12px,rgba(6,11,22,.92) 30px)}
.card.ult .cName{color:#E6D2FF;text-shadow:0 0 12px rgba(190,110,255,.8)}

.card.rvX{animation:rvS .8s cubic-bezier(.15,1.4,.25,1) backwards;box-shadow:0 0 0 2px rgba(200,140,255,.98),0 12px 44px -8px rgba(170,70,255,1)}
/* X 뱃지도 문장까지 들어간 그림이라 작은 칸에서 조금 크게 (라인업/투수진/골든글러브 칸) */
.posSlot .psSub .gr.gX,.lineupBatLayout .posSlot .psSub .gr.gX{min-width:23px;height:20px;padding:0}
.pitCard .pcSub .gr.gX{min-width:23px;height:20px;padding:0}
.ggSlot .ggSub .gr.gX{min-width:22px;height:19px;padding:0}
.gX{background:url(img/badge_X.png) center/contain no-repeat;min-width:25px;padding:0;border-radius:0;box-shadow:none;color:transparent;font-size:0;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))}
.card.leg .cTopRow,.card.mon .cTopRow,.card.ult .cTopRow,.card.uniq .cTopRow{flex-direction:row}

/* 얼티밋 몬스터 승급 게이지 (user req 2026-11-06) - 선수 상세페이지, 보라색 */
.ultGauge{margin:12px 0;padding:10px 12px;border-radius:12px;background:rgba(150,80,255,.10);border:1px solid rgba(170,110,255,.45)}
.ultGauge .ugHead{display:flex;justify-content:space-between;align-items:center;font-weight:800;color:#C9A0FF;font-size:14px;margin-bottom:7px}
.ultGauge .ugHead b{color:#E3CCFF}
/* 게이지 바: 보라색 번개 무늬 이미지(ug_fill)가 왼쪽부터 퍼센트만큼 드러나고, 그 위에 테두리(ug_frame)를 덮는다. 열 때마다 0에서 천천히 차오른다 */
.ultGauge .ugBar{position:relative;width:100%;aspect-ratio:1990/169}
.ultGauge .ugTrack,.ultGauge .ugFill{position:absolute;left:1.71%;right:1.71%;top:20.12%;bottom:18.34%;border-radius:999px}
.ultGauge .ugTrack{background:linear-gradient(180deg,#0b0818,#1a1033)}
.ultGauge .ugFill{right:auto;width:calc((100% - 3.42%) * var(--p) / 100);background:url(img/ug_fill.png) left center/calc(100% * 100 / var(--p)) 100% no-repeat;animation:ugGrow 1.1s cubic-bezier(.2,.8,.2,1) both;box-shadow:0 0 10px rgba(182,107,255,.65)}
.ultGauge .ugFrame{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.ultGauge.full .ugFill{animation:ugGrow 1.1s cubic-bezier(.2,.8,.2,1) both,ugPulse 1.2s ease-in-out 1.1s infinite}
@keyframes ugGrow{from{width:0}}
@keyframes ugPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.4)}}
.ultGauge .ugNote{margin-top:6px;font-size:12px;color:var(--dim)}

/* 포지션 특훈 (user req 2026-11-07) */
.statRow .up.pt{color:#FF77B7}
.posSlot.ptSlot .ptLv,.pitCard.ptPit .ptLv{color:#FF9BCB;font-weight:800}
.posSlot.ptSlot.ptOn,.pitCard.ptPit.ptOn{border-color:rgba(255,119,183,.7);box-shadow:0 0 0 1px rgba(255,119,183,.35)}
.ptProg{font-size:11px;font-weight:800;color:var(--dim)}
.ptHistRow{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 2px}
.ptHist{font-size:11px;padding:2px 7px;border-radius:999px;background:rgba(255,119,183,.12);color:#FFB4D6}
.ptHist b{color:#FF77B7}
.card.ptSel{outline:3px solid #FF77B7;outline-offset:-3px;filter:brightness(1.08)}
/* 칸별 특훈: 선발·후보 5칸은 한 줄, 긴 보직 이름은 말줄임 (Lv 표시와 겹치지 않게) */
.pitGrid.ptGrid5{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.pitCard.ptPit .pcTop{flex-direction:column;align-items:flex-start;gap:0;line-height:1.25}
.pitCard.ptPit .pcTop>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pitCard.ptPit .pcTop .ptLv{white-space:nowrap}
.pitGrid.ptGrid5 .pitCard.ptPit .pcTop{font-size:10.5px}
.pitGrid.ptGrid5 .pitCard.ptPit .pcName{font-size:12px}
.pitGrid.ptGrid5 .ptProg{font-size:10px}
.pitCard.ptPit .pcTop,.pitCard.ptPit .pcName,.pitCard.ptPit .ptProg{text-shadow:0 1px 3px rgba(0,0,0,.95),0 0 6px rgba(0,0,0,.8)}
/* 특훈 화면 카드: 선수 정보 없이 포지션 이름 + Lv 만 */
.posSlot.ptSlot.bare,.pitCard.ptPit.bare{display:grid;place-items:center;background:linear-gradient(160deg,rgba(24,40,78,.92),rgba(10,18,40,.94));cursor:pointer}
.pitCard.ptPit.bare{min-height:64px;aspect-ratio:auto;padding:8px 4px}
.ptBareIn{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;min-width:0;max-width:100%}
.ptBareIn .ptPos{font-size:15px;font-weight:900;color:#EAF1FF;letter-spacing:-.3px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:none}
.ptBareIn .ptLv{font-size:13px;font-weight:800;color:#FF9BCB;text-shadow:none}
.pitGrid.ptGrid5 .ptBareIn .ptPos{font-size:13px}
.ptMats{margin:10px auto 0}
.ptMats .riseSlot.ptDone{display:grid;place-items:center;background:rgba(255,119,183,.10);border:1.5px solid rgba(255,119,183,.5)}
.ptDoneIn{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;font-weight:800;color:#FFB4D6}
.ptDoneIn b{font-size:26px;color:#FF77B7}
.ptMats .riseSlot:not(.filled):not(.ptDone){cursor:pointer;border-color:#5CC8FF;color:#5CC8FF;font-size:28px}
.menuTile i .menuIco[src$="menu_postrain.png"]{transform:translateY(-3px)}   /* 포지션 특훈 아이콘: 문구에서 살짝 띄움 */

/* 인트로 첫 장면 배경 - 내가 홈이면 새 구장 수비상황 사진 */
.i1Bg.park2{background:
    linear-gradient(180deg,rgba(4,7,15,.60) 0%,rgba(4,7,15,.30) 38%,rgba(4,7,15,.72) 100%),
    radial-gradient(120% 90% at 50% 20%,rgba(61,143,224,.10),transparent 60%),
    url('img/stadium_wide2.jpg') center 58%/cover no-repeat,
    linear-gradient(180deg,#0B1326 0%,#04070F 70%)}
.i1Bg.park3{background:
    linear-gradient(180deg,rgba(4,7,15,.60) 0%,rgba(4,7,15,.30) 38%,rgba(4,7,15,.72) 100%),
    radial-gradient(120% 90% at 50% 20%,rgba(61,143,224,.10),transparent 60%),
    url('img/stadium_wide3.jpg') center 58%/cover no-repeat,
    linear-gradient(180deg,#0B1326 0%,#04070F 70%)}
.i1Bg.park4{background:
    linear-gradient(180deg,rgba(4,7,15,.60) 0%,rgba(4,7,15,.30) 38%,rgba(4,7,15,.72) 100%),
    radial-gradient(120% 90% at 50% 20%,rgba(61,143,224,.10),transparent 60%),
    url('img/stadium_wide4.jpg') center 58%/cover no-repeat,
    linear-gradient(180deg,#0B1326 0%,#04070F 70%)}
.i1Bg.park5{background:
    linear-gradient(180deg,rgba(4,7,15,.60) 0%,rgba(4,7,15,.30) 38%,rgba(4,7,15,.72) 100%),
    radial-gradient(120% 90% at 50% 20%,rgba(61,143,224,.10),transparent 60%),
    url('img/stadium_wide5.jpg') center 58%/cover no-repeat,
    linear-gradient(180deg,#0B1326 0%,#04070F 70%)}
.i1Bg.park6{background:
    linear-gradient(180deg,rgba(4,7,15,.60) 0%,rgba(4,7,15,.30) 38%,rgba(4,7,15,.72) 100%),
    radial-gradient(120% 90% at 50% 20%,rgba(61,143,224,.10),transparent 60%),
    url('img/stadium_wide6.jpg') center 58%/cover no-repeat,
    linear-gradient(180deg,#0B1326 0%,#04070F 70%)}
.i1Bg.park7{background:
    linear-gradient(180deg,rgba(4,7,15,.60) 0%,rgba(4,7,15,.30) 38%,rgba(4,7,15,.72) 100%),
    radial-gradient(120% 90% at 50% 20%,rgba(61,143,224,.10),transparent 60%),
    url('img/stadium_wide7.jpg') center 58%/cover no-repeat,
    linear-gradient(180deg,#0B1326 0%,#04070F 70%)}
.i1Bg.park8{background:
    linear-gradient(180deg,rgba(4,7,15,.60) 0%,rgba(4,7,15,.30) 38%,rgba(4,7,15,.72) 100%),
    radial-gradient(120% 90% at 50% 20%,rgba(61,143,224,.10),transparent 60%),
    url('img/stadium_wide8.jpg') center 58%/cover no-repeat,
    linear-gradient(180deg,#0B1326 0%,#04070F 70%)}
.i1Bg.park9{background:
    linear-gradient(180deg,rgba(4,7,15,.60) 0%,rgba(4,7,15,.30) 38%,rgba(4,7,15,.72) 100%),
    radial-gradient(120% 90% at 50% 20%,rgba(61,143,224,.10),transparent 60%),
    url('img/stadium_wide9.jpg') center 58%/cover no-repeat,
    linear-gradient(180deg,#0B1326 0%,#04070F 70%)}
.i1Bg.park10{background:
    linear-gradient(180deg,rgba(4,7,15,.60) 0%,rgba(4,7,15,.30) 38%,rgba(4,7,15,.72) 100%),
    radial-gradient(120% 90% at 50% 20%,rgba(61,143,224,.10),transparent 60%),
    url('img/stadium_wide10.jpg') center 58%/cover no-repeat,
    linear-gradient(180deg,#0B1326 0%,#04070F 70%)}
/* 포지션 특훈 재료 선택 팝업: 카드가 많아도 '취소 / 선택 완료' 버튼은 아래에 붙어 있다 (user req 2026-11-07) */
.modalBtns.ptPickBar{position:sticky;bottom:-18px;margin:12px -4px -4px;padding:10px 4px 6px;background:linear-gradient(to bottom,rgba(24,32,58,0),var(--panel2) 22%)}
/* 선택 완료 버튼: 윗단 수량(3 / 4), 아랫단 '선택 완료' */
.btn.ptPickOk{flex-direction:column;gap:1px;line-height:1.15}
.btn.ptPickOk .ptPickCnt{font-size:12.5px;font-weight:800;opacity:.9}
.btn.ptPickOk .ptPickLbl{font-size:15px;font-weight:900}
/* 포지션 특훈: 재료 자동 투입 버튼 / 투입 완료(레벨업 가능) 칸의 우측 상단 느낌표 (user req 2026-11-08) */
.btn.ptAutoBtn{width:100%;margin:0 0 12px}
.pitCard.ptPit{position:relative}      /* posSlot 은 이미 absolute (필드 배치) - 건드리지 않는다 */
.ptBang{position:absolute;top:3px;right:3px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;
  background:#FF4D6A;color:#fff;font:900 12px/1 var(--font,inherit);font-style:normal;box-shadow:0 0 0 2px rgba(10,18,40,.9),0 0 8px rgba(255,77,106,.7);pointer-events:none}
/* 자동 등록 확인 창: 포지션별 단 (user req 2026-11-08) */
.ptAutoRow{margin-top:8px}
.ptAutoRow .statRow{margin-bottom:6px}
.riseMats.ptAutoCards{grid-template-columns:repeat(5,minmax(0,1fr));max-width:100%;gap:6px;margin:0}

/* ---- V9등급 (user req 2026-11-08): 파란 사자 문양 틀(img/v9_bg.webp, 600×727 - 원본 1099×1431에서 아래 이름 칸 안쪽 100px를 덜어 레전드 이름 칸 높이에 맞춤) + 금색 V9 뱃지.
   카드 크기는 다른 등급(레전드 등)과 똑같이 칸을 꽉 채우고, 틀은 9분할(border-image)로 붙인다: 테두리·왼쪽 위 모서리·OVR 상자 칸·아래 이름 칸은
   카드 폭에 비례해 모양 그대로 커지고 줄고, 가운데 사자 배경만 세로로 늘고 준다. 치수는 모두 카드 폭 기준 cqw (틀 그림 600px = 100cqw) */
.card.v9{width:100%;max-width:194px;margin-left:auto;margin-right:auto;border:0;box-shadow:0 0 0 1.5px rgba(90,170,255,.95),0 10px 34px -12px rgba(60,140,255,.9);container-type:size;height:190px}
.card.v9>*{--u:min(1cqw,1.021cqh);
  /* 아래 이름 칸 높이 (user req 2026-11-10: 모바일 도감에서도 V9 이름 칸이 다른 등급보다 낮아 보임) - 다른 등급 카드의 이름 칸(cBody)은 카드 폭과 상관없이 68px 고정이라,
     V9도 카드 폭과 상관없이 카드 높이(190px)의 35.8% = 68px 로 고정한다. 틀은 가운데를 세로로 늘린 v9_bg2.webp (원본 v9_bg.webp 에서 아래 칸만 89px 늘림) */
  --pb:33.2cqh}   /* 카드 크기 단위: 폭 기준이되 높이(190px)를 넘지 않게 - 모바일(폭 194px)과 같은 모양을 PC 같은 좁은 칸에서도 그대로 줄여서 쓴다 (user req 2026-11-08) */
.card.v9 .cGlow{background:#02081c;border:solid transparent;border-width:calc(21*var(--u)) calc(11*var(--u)) var(--pb) calc(11*var(--u));
  border-image:url(img/v9_bg2.webp) 126 66 275 66 fill / calc(21*var(--u)) calc(11*var(--u)) var(--pb) calc(11*var(--u)) stretch}
.card.v9 .cTop{inset:0;display:block}
.card.v9 .cTop .cTopL{display:block;position:absolute;left:calc(4.8*var(--u));top:calc(1.8*var(--u));width:calc(22*var(--u));height:calc(19*var(--u))}
.card.v9 .cTopL .gr{position:absolute;inset:0;min-width:0;height:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.7))}
.card.v9 .cTopL .awkIcon{display:none}
.card.v9 .cTop .cTopR{display:block;position:absolute;left:calc(73.1*var(--u));top:calc(5.9*var(--u));width:calc(21.8*var(--u));height:calc(14.1*var(--u))}
.card.v9 .cTopRow{display:block;position:static}
.card.v9 .ovrTag{position:absolute;inset:0;min-width:0;height:auto;border:0;border-radius:0;background:none;display:grid;place-items:center;
  color:#fff;font-size:15px;text-shadow:0 0 8px rgba(70,150,255,.95),0 1px 2px rgba(0,0,0,.8);padding:0}
.card.v9 .condIco{position:absolute;right:0;top:calc(100% + 5px)}
.card.v9 .injIco{position:absolute;right:0;top:calc(100% + 27px)}
.card.v9 .cArt{position:absolute;left:calc(5*var(--u));right:calc(5*var(--u));top:calc(5*var(--u));bottom:calc(var(--pb) - 1*var(--u));height:auto;margin:0;overflow:hidden;place-items:end center}   /* 일러스트는 레전드와 같은 크기 그대로, 아래 이름 칸 윗선에서 잘린다 */
.card.v9 .cArt canvas{position:absolute;left:50%;bottom:calc(-6.5*var(--u));width:calc(67*var(--u));height:calc(64*var(--u));max-width:none;margin:0;transform:translateX(-50%) scale(calc(var(--artz,1)*.9));transform-origin:50% 100%}   /* 선수 이미지는 이름 칸 윗선에 맞춰 아래 정렬 - 카드 폭이 달라도 같은 비율 (user req 2026-11-08) */   /* 선수 이미지를 살짝 내려 아래 이름 칸 윗선과 빈 틈이 없게 (user req 2026-11-08) */
.card.v9 .cBody{position:absolute;left:calc(8*var(--u));right:calc(8*var(--u));bottom:calc(var(--pb)*.12);height:calc(var(--pb)*.76);padding:0;background:none;display:flex;flex-direction:column;justify-content:center;overflow:hidden}
.card.v9 .cName{line-height:1.1;flex:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#EAF4FF;text-shadow:0 0 10px rgba(70,150,255,.9),0 1px 2px rgba(0,0,0,.8)}   /* 글자 크기는 다른 등급과 같은 기본값(이름 13px / 포지션줄 10.5px / Lv 10px / 스킬 아이콘 22px) 그대로 (user req 2026-11-10) */
.card.v9 .cMeta{margin-top:1px;flex:none}
.card.v9 .cMeta .lvTag{padding:2px 6px}
.card.v9 .cMeta.tight .lvTag{padding:2px 4px}
.card.v9 .cBar{margin-top:2px;flex:none}
/* PC(폭 640px 이상)는 이름 칸을 모바일처럼 68px 로 높이지 않고, 한 번 더 높이기 전(V1032) 모양 그대로 둔다 (user req 2026-11-10: 모바일에서만 높여 달라) */
@media (min-width:640px){
  .card.v9>*{--pb:min(calc(45.8*var(--u)),30.4cqh)}
  .card.v9 .cArt canvas{transform:translateX(-50%) scale(var(--artz,1))}
  .card.v9 .cBody{bottom:calc(var(--pb)*.15);height:calc(var(--pb)*.82)}
  @container (min-width:176px){
    .card.v9>*{--pb:calc(31*var(--u))}
    .card.v9 .cGlow{border-image:url(img/v9_bg.webp) 126 66 186 66 fill / calc(21*var(--u)) calc(11*var(--u)) var(--pb) calc(11*var(--u)) stretch}
  }
}
.gV{background:url(img/badge_V9.png) center/contain no-repeat;min-width:27px;padding:0;border-radius:0;box-shadow:none;color:transparent;font-size:0;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))}
.posSlot .psSub .gr.gV,.lineupBatLayout .posSlot .psSub .gr.gV{min-width:25px;height:20px;padding:0}
.pitCard .pcSub .gr.gV{min-width:25px;height:20px;padding:0}
.ggSlot .ggSub .gr.gV{min-width:24px;height:19px;padding:0}
.card.leg .cTopRow,.card.mon .cTopRow,.card.ult .cTopRow,.card.uniq .cTopRow,.card.v9 .cTopRow{flex-direction:row}

/* 라이온즈 우승 기념 이벤트 (user req 2026-11-08) */
.evBanner.lions{background:linear-gradient(90deg,rgba(4,26,100,.88) 0%,rgba(4,26,100,.5) 45%,rgba(4,26,100,0) 75%),url(img/lions_banner.jpg) right center/cover no-repeat,#0b3aa8;box-shadow:0 14px 30px -18px #3B8BFF;border-color:rgba(130,190,255,.5)}   /* 배너 그림: user 가 준 우승 기념 이벤트 배너 (user req 2026-11-10) */
.evBanner.lions .evName{font-size:16px;white-space:nowrap}
.evBanner.lions .evSub{text-shadow:0 1px 6px rgba(0,20,80,.9)}
.evBanner.lions.closed{background:#000;border-color:#000;box-shadow:none}
.evBanner.lions.closed::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#000 0%,rgba(0,0,0,.7) 40%,rgba(0,0,0,0) 70%),url(img/lions_banner.jpg) right center/cover no-repeat;filter:grayscale(1) brightness(.3)}
.evBanner.lions.closed .evInfo{position:relative;z-index:1}
.evBanner.lions.closed .evName{color:#7a7a7a;text-shadow:none}
.evBanner.lions.closed .evSub{color:#6a6a6a;text-shadow:none}
.lionPick{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lionOne{display:flex;flex-direction:column;align-items:center;gap:6px}
.lionOne .lionCard{width:100%}
.lionOne .lionCard .card{width:100%}
.lionOne .lionName{font-size:15px;font-weight:900}
.lionOne .btn{width:100%}
.lionGot{display:flex;justify-content:center}

.lionWrap{min-height:calc(100vh - 230px);display:flex;align-items:center;justify-content:center}   /* 두 선수 카드를 페이지 가운데에 (user req 2026-11-08) */
.lionWrap .panel{width:100%}
.lionPick{max-width:440px;margin:0 auto}

/* 라이온즈 우승 기념 이벤트 확장 (user req 2026-11-09) */
.lionHead .riseRule{margin:8px 0 12px}
.lionGaugeTop{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;font-weight:800;color:var(--dim);margin-bottom:5px}
.lionGaugeTop b{font-size:15px;color:#7FC4FF}
.lionBar{height:14px;border-radius:8px;background:rgba(0,0,0,.45);border:1px solid rgba(92,170,255,.35);overflow:hidden}
.lionBar i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#1E6BFF,#5CC8FF);box-shadow:0 0 10px rgba(92,200,255,.6);transition:width .4s}
.lionBar.stop i{background:linear-gradient(90deg,#3a4a66,#52627f);box-shadow:none}
.lionTkRow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.lionTkCnt{display:flex;align-items:center;font-size:18px}
.lionTkCnt .itemIco.lg{width:40px;height:40px;margin-right:8px}
.lionTkRow .btn{flex:1;max-width:230px}
.btn.sm{padding:6px 10px;font-size:12px}
.lionField{aspect-ratio:1/1.2}      /* 카드 크기는 라이징 이벤트 타자 라인업과 같고(.riseField .posSlot), 지타(DH) 칸 때문에 필드만 조금 더 길다 */
.lionGrpH{font-size:12px;font-weight:900;color:var(--dim);margin:12px 0 6px}
.lionGrpH:first-child{margin-top:0}
.lionPitGrid{margin:0 auto;max-width:420px}
.lionPitGrid[data-g="CP"]{grid-template-columns:repeat(3,1fr)}
.lionPitGrid[data-g="CP"] .lionSlot{grid-column:2}
.lionSlot .rsV{color:#FFD65C;font-weight:900}
.lionSlot.flow .psInfo{padding:6px 6px 5px}
.lionSlot.flow .psName{font-size:11.5px}
.lionDone{position:absolute;inset:0;z-index:3;background:rgba(0,0,0,.62);display:grid;place-items:center;pointer-events:none}
.lionDone span{padding:3px 8px;border-radius:7px;background:rgba(0,0,0,.7);border:1px solid rgba(255,255,255,.45);color:#fff;font-size:11px;font-weight:900;letter-spacing:.2px;transform:rotate(-8deg);white-space:nowrap}
.lionMs{display:flex;flex-direction:column;gap:8px}
.lionMsRow{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.05);border:1px solid var(--line2)}
.lionMsRow.dn{opacity:.55}
.lionMsIco{flex:none;display:grid;place-items:center;width:44px}
.lionMsIco .itemIco.lg{margin:0}
.lionMsTx{flex:1;display:flex;flex-direction:column;gap:1px;min-width:0}
.lionMsTx b{font-size:13px}.lionMsTx span{font-size:12px;color:var(--dim)}
.lionMsSt{flex:none;font-size:12px;font-weight:800;color:#7FC4FF}
.lionMsRow.dn .lionMsSt{color:var(--dim2)}
.lionPtsGrid{display:grid;grid-template-columns:1fr auto;gap:6px 18px;margin:10px 4px;font-size:14px}
.lionPtsGrid b{text-align:right;color:#7FC4FF}
.lionGain{display:flex;align-items:center;gap:8px;margin-top:10px;padding:9px 12px;border-radius:10px;font-size:12.5px;background:rgba(30,107,255,.16);border:1px solid rgba(92,200,255,.45)}
.lionGain b{color:#7FC4FF}
.lionRwBox{margin-top:10px;display:flex;flex-direction:column;gap:6px}
.lionRw{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:10px;background:rgba(255,255,255,.06);font-size:12px;color:var(--dim)}
.lionRw .itemIco.lg{margin:0}
.lionRw b{color:var(--text,#fff);font-size:13px}
/* 슬롯머신 */
.lionSpin{position:fixed;inset:0;z-index:36;background:rgba(2,6,16,.88);display:flex;align-items:center;justify-content:center;cursor:pointer}
.lionSpinBox{width:min(440px,94vw);padding:16px 0 12px;text-align:center}
.lionSpinH{font-size:20px;font-weight:900;margin-bottom:14px;color:#FFD65C;text-shadow:0 0 14px rgba(255,214,92,.5)}
.lionReel{position:relative;overflow:hidden;height:176px;border-radius:14px;border:2px solid #5CC8FF;background:linear-gradient(180deg,#0B1530,#06102A);box-shadow:0 0 22px rgba(92,200,255,.45)}
.lionStrip{display:flex;gap:8px;position:absolute;left:0;top:0;height:100%;align-items:center;will-change:transform}
.lionReelItem{flex:none;width:96px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0;border-radius:10px;background:rgba(255,255,255,.05);border:1px solid var(--line2)}
.lionReelArt{width:92px;height:106px;border-radius:8px;overflow:hidden}
.lionReelArt canvas{display:block;width:92px;height:106px}
.lionReelNm{font-size:12px;font-weight:800;white-space:nowrap}
.lionReelPos{font-size:10px;color:var(--dim)}
.lionReelItem.hit{border-color:#FFD65C;background:rgba(255,214,92,.18);box-shadow:0 0 18px rgba(255,214,92,.8);transform:scale(1.07);transition:.25s}
.lionPtr{position:absolute;left:50%;top:0;bottom:0;width:112px;transform:translateX(-50%);border-left:2px solid rgba(255,214,92,.9);border-right:2px solid rgba(255,214,92,.9);background:linear-gradient(180deg,rgba(255,214,92,.12),rgba(255,214,92,0) 40%,rgba(255,214,92,.12));pointer-events:none}
.lionSpinHint{margin-top:10px;color:var(--dim)}
/* 우승 반지 목록 */
.ringGrid{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));max-height:58vh;overflow:auto;margin-top:10px;padding:2px}
.ringGrid .card{cursor:pointer}

/* 포지션 특훈 - 오른 능력치 구간별 줄 + 재분배 버튼 (user req 2026-11-08) */
.ptQHead{font-size:13px;color:var(--dim);margin:10px 0 6px}
.ptQRow{display:flex;align-items:center;gap:10px;padding:7px 0;border-top:1px solid rgba(255,255,255,.07)}
.ptQRow .btn{flex:none;width:auto;white-space:nowrap}
.ptQRow .btn[disabled]{opacity:.4;cursor:not-allowed}
.ptQInfo{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.ptQInfo small{font-size:11px;color:var(--dim)}
.ptQInfo b{font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.ptRdBox{background:rgba(255,255,255,.05);border-radius:10px;padding:10px 12px;margin:8px 0;display:flex;flex-direction:column;gap:3px}
.ptRdBox.after{border:1px solid rgba(255,119,183,.5)}
.ptRdBox small{font-size:11px;color:var(--dim)}
.ptRdBox b{font-size:14px;line-height:1.4}

/* 교체 후보 카드: 특수 등급(L/M/X/V9)은 뱃지만 좌측 상단, 포지션·타격손(투구손)은 그 아래 줄 (user req 2026-11-09) */
.subCard.spec .scTop{display:grid;grid-template-columns:auto 1fr;align-items:center;row-gap:2px}
.subCard.spec .scTop .scBdg{grid-column:1;grid-row:1;width:30px;min-width:30px;height:26px;padding:0}
.subCard.spec .scTop .num{grid-column:2;grid-row:1;justify-self:end}
.subCard.spec .scTop .scPos{grid-column:1 / -1;grid-row:2;white-space:nowrap}

/* 경험치 드링크 사용: 수량 지정 / 목표 레벨 탭 (user req 2026-11-09) */
.edTabs{display:flex;gap:6px;margin:0 0 12px}
.edTab{flex:1;padding:9px 0;border-radius:10px;border:1px solid var(--line2);background:rgba(255,255,255,.05);color:var(--dim);font:inherit;font-weight:800;font-size:13px;cursor:pointer}
.edTab.on{background:var(--ui);border-color:transparent;color:#fff}
.edLv{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.edLvRow{display:flex;align-items:baseline;justify-content:center;gap:12px;font-size:20px;font-weight:900;margin:2px 0 4px}
.edLvRow .edArrow{color:var(--dim);font-size:16px}
.edLvRow b{color:#7FC4FF;font-size:26px}
.edSlide{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.edSlide input[type=range]{flex:1;min-width:0;accent-color:var(--ui)}
.edSlide .btn{min-width:38px}
/* V9 이벤트 타자 라인업: 모바일에서만 선수 이미지를 조금 줄인다 (user req 2026-11-09) - 캔버스가 칸(67x78)보다 훨씬 커서 머리가 잘려 보였다 */
@media(max-width:680px){
  .lionField .lionSlot .psArt canvas{height:76px!important;width:auto!important;max-width:none!important;flex:none}
}

/* 인게임 스킬 아이콘: 눌러서 설명 창 (user req 2026-11-09) */
.skillBadge{position:relative;pointer-events:auto;cursor:pointer}
.skillBadge .skillTip{position:absolute;bottom:calc(100% + 8px);width:min(230px,62vw);padding:9px 11px;border-radius:12px;background:rgba(4,9,20,.96);border:1px solid rgba(245,197,24,.55);
  box-shadow:0 8px 22px rgba(0,0,0,.55);display:flex;flex-direction:column;gap:3px;white-space:normal;text-align:left;cursor:default;z-index:6;text-shadow:none}
.skillBadge .skillTip b{font-size:12px;color:#FFE99B}
.skillBadge .skillTip span{font-size:11.5px;line-height:1.45;font-weight:600;color:var(--txt,#fff)}
.piWrapBat .skillBadge .skillTip{left:0}
.piWrapPit .skillBadge .skillTip{right:0}

/* 세트 효과 탭 '!' / 히든 세트 표시 (user req 2026-11-09) */
.tabs button[data-lk="set"]{position:relative}
.tabs .tabBang{position:absolute;top:-7px;right:-4px;width:18px;height:18px;border-radius:50%;background:var(--red);color:#fff;font-size:11px;font-weight:900;display:grid;place-items:center;box-shadow:0 0 0 2px var(--bg2),0 3px 8px -3px var(--red);pointer-events:none}
.setHid{margin-left:8px;font-size:10px;font-weight:800;padding:2px 7px;border-radius:999px;background:rgba(255,209,102,.16);color:#FFD166;border:1px solid rgba(255,209,102,.5);vertical-align:middle}

/* 포지션 특훈 재료 목록의 '예비 선수' (user req 2026-11-10): 레벨/각성이 모자라 재료로 못 쓰는 카드 - 흐리게, 투입 불가 */
.ptResvHead{grid-column:1/-1;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:10px 0 2px;padding-top:10px;border-top:1px solid var(--line)}
.ptResvHead b{font-size:13px;color:var(--dim)}
.ptResvHead span{font-size:11px;color:var(--dim2)}
.card.ptReserve{opacity:.5;filter:grayscale(.55);cursor:not-allowed}
.card.ptReserve .ptResvTag{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:6;padding:4px 10px;border-radius:999px;background:rgba(10,16,32,.86);border:1px solid var(--line);color:#fff;font-size:12px;font-weight:800;white-space:nowrap;pointer-events:none}
/* 선수 도감 (dex.js) */
.dexBar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.dexSearch{padding:8px 16px;font-size:13.5px;font-weight:800;border-radius:999px}
.dexSearch b{margin-left:4px;background:rgba(255,255,255,.25);border-radius:999px;padding:0 7px;font-size:12px}
.dexFilt{margin-top:12px}
.dexFiltH{font-weight:800;margin-bottom:6px}

/* 도감 로딩 - 화면 가운데에서 도는 원 (user req 2026-11-10) */
.dexLoad{position:fixed;inset:0;display:grid;place-items:center;pointer-events:none;z-index:5}
.dexSpin{width:46px;height:46px;border-radius:50%;border:5px solid rgba(255,255,255,.16);border-top-color:#fff;animation:dexSpin .8s linear infinite}
@keyframes dexSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.dexSpin{animation-duration:1.6s}}

/* 도감: 아직 갖고 있지 않은 선수 카드는 전체가 살짝 회색으로 어둡게 (글자·능력치는 그대로 읽힌다) (user req 2026-11-10) */
.card.dexLocked{filter:grayscale(.6) brightness(.68)}

/* 포지션 특훈 재료 아이템 (user req 2026-11-11) */
.ptMatTile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 4px;min-height:150px;border-color:#5CC8FF;box-shadow:0 0 0 1px rgba(92,200,255,.5),0 0 14px rgba(92,200,255,.35)}
.ptMatTile .ptMatArt{height:92px;display:grid;place-items:center}
.ptMatTile .ptMatArt img{height:92px;width:auto;max-width:100%;object-fit:contain}
.ptMatTile .ptMatName{font-size:12px;font-weight:800;color:#CBD6EE;text-align:center;line-height:1.2}
.ptMatTile .ptMatCnt{font-size:15px;color:#7FD6FF}
.ptMatTile .ptMatPick{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);z-index:6;padding:3px 9px;border-radius:999px;background:rgba(10,16,32,.88);border:1px solid var(--gold);color:var(--gold);font-size:12px;font-weight:800;white-space:nowrap;pointer-events:none}
.ptMatTile .ptMatPick:empty{display:none}
.ptMats .riseSlot.ptMatSlot{position:relative;cursor:pointer;border-color:#5CC8FF}
.ptMats .riseSlot.ptMatSlot img{position:absolute;left:3px;top:3px;width:calc(100% - 6px)!important;height:calc(100% - 6px)!important;max-width:none!important;max-height:none!important;object-fit:contain}

/* PC: 불펜 보직별 칸(RP1~6 + CP = 7칸)을 선발처럼 가로에 꽉 차게 (user req 2026-11-11) */
@media (min-width:720px){ .pitGrid.ptGrid7{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px} }

/* 컬러 팀로고 (user req 2026-11-11) */
.i1Chip.emb{background:linear-gradient(160deg,#1b2848,#0d1530);box-shadow:0 18px 46px -16px var(--tc),inset 0 0 0 2px var(--tc)}
.logoForcedGrid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:2px}
@media (max-width:420px){.logoForcedGrid{grid-template-columns:repeat(4,1fr)}}
.logoForcedGrid .logoOpt{cursor:pointer;padding:3px}
.modalBtns .btn.dis,.modalBtns .btn:disabled{opacity:.4;pointer-events:none}

/* 팀 만들기 로고 크기 (user req 2026-11-11): 모바일은 56px 그대로, PC(칸이 큼)는 칸의 64%로 키움 */
.logoPage .logoOpt canvas{width:56px!important;height:56px!important}
@media (min-width:720px){.logoPage .logoOpt canvas{width:68%!important;height:auto!important;aspect-ratio:1}}

/* 마이플레이어 각성 이벤트 (user req 2026-11-12) */
.evBanner.myawk:not(.closed){background:linear-gradient(90deg,rgba(14,8,50,.8) 0%,rgba(14,8,50,.45) 40%,rgba(14,8,50,0) 72%),url(img/myawk_banner.jpg) right center/cover no-repeat,#1A0E4A;border-color:rgba(170,140,255,.55);box-shadow:0 14px 30px -18px #8A5BFF}
.evBanner.myawk .evSub{text-shadow:0 1px 6px rgba(20,0,70,.9)}
/* 종료: 배너 그림 그대로 검게 가라앉힌 모습 (목표달성 배너와 동일) */
.evBanner.myawk.closed::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#000 0%,rgba(0,0,0,.7) 40%,rgba(0,0,0,0) 70%),url(img/myawk_banner.jpg) right center/cover no-repeat;filter:grayscale(1) brightness(.3);pointer-events:none}
.evBanner.myawk.closed .evInfo{position:relative;z-index:1}
.maTop{display:flex;gap:14px;align-items:center;margin-bottom:12px}
.maCard{flex:none;width:130px}
.maInfo{min-width:0}
.maGaugeHead{display:flex;justify-content:space-between;align-items:baseline;font-weight:800;margin-bottom:6px}
.maBar{height:16px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden;border:1px solid var(--line)}
.maBar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#FFB020,#FFE27A);transition:width .4s}
.maBar i.full{box-shadow:0 0 12px #FFD36B inset;animation:maPulse 1.2s ease-in-out infinite}
@keyframes maPulse{50%{filter:brightness(1.35)}}

/* ===== 구단 생성 2페이지: 홈구장 선택 (user req 2026-11-13) ===== */
.hpWrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.hpMap{display:grid;place-items:center}
.hpMap canvas{width:min(100%,calc(100vh - 190px));height:auto;aspect-ratio:1;cursor:pointer;touch-action:manipulation}
.hpInfo{display:flex;flex-direction:column;gap:10px;min-width:0}
.hpPhoto{position:relative;aspect-ratio:3/2;border-radius:var(--r2,14px);overflow:hidden;background:rgba(0,0,0,.34);
  border:1px solid var(--line);display:grid;place-items:center}
.hpPhoto img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hpEmpty{padding:14px;text-align:center;color:var(--mute,#9aa7bd);font-size:14px}
.hpHead{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.hpRegion{font-size:12px;font-weight:800;padding:2px 9px;border-radius:99px;background:#7d2bff;color:#fff}
.hpName{font-size:22px;font-weight:900}
.hpDesc{min-height:96px;border-radius:12px;border:1px dashed var(--line);padding:10px 12px;font-size:14px;line-height:1.55;color:var(--txt)}
.hpBtns{display:flex;justify-content:space-between;gap:10px;margin-top:14px}
.hpBtns .btn{min-width:110px}
.hpBtns .btn:disabled{opacity:.4;cursor:default}
@media (max-width:640px){
  .hpWrap{grid-template-columns:1fr}
  .hpMap canvas{width:100%}
}

/* 경기 시작 방식 선택 팝업 (UI.pvPick) - 배경은 살짝만 어둡게, 버튼은 가로 한 줄 */
.pvPick{position:fixed;inset:0;z-index:45;display:flex;align-items:center;justify-content:center;
  background:rgba(3,7,16,.5);padding:16px;animation:pop .18s ease}
.pvPickRow{display:flex;gap:8px;width:min(560px,100%)}
.pvPickRow .btn{flex:1 1 0;min-width:0;padding:20px 6px;font-size:15px;font-weight:900;line-height:1.25;word-break:keep-all;
  box-shadow:0 6px 24px rgba(0,0,0,.45)}
@media (max-width:420px){.pvPickRow{gap:6px}.pvPickRow .btn{font-size:13px;padding:18px 4px}}
.pvPickRow .btn.ghost{background:var(--panel2)}
.pvPick{backdrop-filter:blur(2px)}
/* 팝업 버튼: 정사각형보다 살짝 세로로 긴 모양 (4:5) */
.pvPickRow{justify-content:center}
.pvPickRow .btn{flex:1 1 0;max-width:150px;aspect-ratio:4/5;padding:6px;display:flex;align-items:center;justify-content:center;text-align:center}
/* 일반 진행 버튼: 위에 VS 아이콘, 아래에 문구 */
.pvPickRow .btn.hasIco{flex-direction:column;gap:2px;padding:8px 6px 12px}
.pvPickRow .btn.hasIco img{width:100%;max-width:112px;aspect-ratio:1/1;object-fit:contain;pointer-events:none;margin-top:-4px}
@media (max-width:420px){.pvPickRow .btn.hasIco{padding:8px 4px 12px}}
/* 세 버튼의 아이콘 높이를 맞추려고 문구 칸을 2줄 높이로 고정 */
.pvPickRow .btn.hasIco{justify-content:flex-start}
.pvPickRow .btn.hasIco span{min-height:2.5em;display:flex;align-items:center;justify-content:center}
.pvPickRow .btn.hasIco img{max-width:100px}
@media (max-width:420px){.pvPickRow .btn.hasIco{padding:8px 4px 8px}}
@media (min-width:421px){.pvPickRow .btn.hasIco img{max-width:132px}.pvPickRow .btn.hasIco{padding-top:10px}}
/* 세 버튼 동일 색상 + 아이콘·문구로 박스가 거의 꽉 차도록 (v2) */
.pvPickRow .btn.hasIco,.pvPickRow .btn.hasIco.ghost{aspect-ratio:auto;flex:1 1 0;max-width:124px;min-width:0;
  padding:5px 5px 7px;gap:3px;background:var(--panel2);border:1px solid var(--line2);justify-content:flex-start;align-items:center}
.pvPickRow .btn.hasIco img{width:100%;max-width:none;margin:0;aspect-ratio:1/1;display:block}
.pvPickRow .btn.hasIco span{min-height:0;display:block;white-space:nowrap;font-size:13px;line-height:1.2;text-align:center}
@media (max-width:420px){.pvPickRow .btn.hasIco{padding:4px 3px 6px}.pvPickRow .btn.hasIco span{font-size:12.5px}}

/* 게임 전체 배경 (user req 2026-11-13) - 가로 화면(PC)용 / 세로 화면(모바일)용. 타이틀·경기 화면은 각자 배경을 그대로 쓴다 */
@media (max-aspect-ratio:1/1){body{background-image:url(img/bg_mobile.webp?v=2);background-position:center bottom}}
/* 로비 MENU 박스: 버튼 뒤 박스만 70% 불투명 (버튼은 그대로) (user req 2026-11-13) */
.panel.menuPanel{background:rgba(17,28,54,.70)}
/* 로비 투명도 (user req 2026-11-13): 메뉴 버튼 70% / 메뉴 박스·보관함·구단 정보 박스 50% (이전 70% 규칙 대체) */
#lobbyBody .panel.menuPanel{background:rgba(17,28,54,.50)}
#lobbyBody .itemBtn{background:rgba(17,28,54,.50)}
#lobbyBody .lobbyHead{background:linear-gradient(135deg,color-mix(in srgb,var(--team) 24%,transparent),transparent 62%),rgba(17,28,54,.50)}
#lobbyBody .menuTile{background:rgba(23,36,66,.70)}
/* 리그 페이지 투명도 (user req 2026-11-13): 눌러서 쓰는 버튼·카드(뜨거운 선수, 난이도 카드)는 70%, 바깥 박스는 50% */
#pageBody[data-pg="league"] .panel{background:rgba(17,28,54,.50)}
#pageBody[data-pg="league"] .btn.ghost,
#pageBody[data-pg="league"] .tierCard,
#pageBody[data-pg="league"] .autoTkChip{background:rgba(23,36,66,.70)}
#pageBody[data-pg="league"] .btn.team{background:linear-gradient(180deg,color-mix(in srgb,color-mix(in srgb,var(--ui) 88%,#fff) 70%,transparent),color-mix(in srgb,var(--ui) 70%,transparent))}
#pageBody[data-pg="league"] .btn.primary{background:linear-gradient(180deg,color-mix(in srgb,var(--acc2) 70%,transparent),color-mix(in srgb,var(--acc) 70%,transparent))}

/* 모든 하위 페이지 투명도 (user req 2026-11-13): 바깥 박스(--panel)는 50%, 그 안의 카드·타일·버튼(--panel2, .btn)은 70%.
   팝업(#modal)은 #pageBody 밖이라 그대로 불투명 */
#pageBody{--panel:rgba(17,28,54,.50);--panel2:rgba(23,36,66,.70)}
#pageBody .btn{background:linear-gradient(180deg,rgba(38,58,104,.70),rgba(22,36,70,.70))}
#pageBody .btn.ghost{background:rgba(23,36,66,.70)}
#pageBody .btn.team{background:linear-gradient(180deg,color-mix(in srgb,color-mix(in srgb,var(--ui) 88%,#fff) 70%,transparent),color-mix(in srgb,var(--ui) 70%,transparent))}
#pageBody .btn.primary{background:linear-gradient(180deg,color-mix(in srgb,var(--acc2) 70%,transparent),color-mix(in srgb,var(--acc) 70%,transparent))}
#pageBody .btn.danger{background:linear-gradient(180deg,color-mix(in srgb,color-mix(in srgb,var(--red) 85%,#fff) 70%,transparent),color-mix(in srgb,var(--red) 70%,transparent))}
#pageBody .autoTkChip{background:rgba(23,36,66,.70)}

/* 인게임 일시정지 팝업 (UI.pauseOpen) - 배경은 살짝 어둡게, 카드 가운데 */
.pausePop{position:fixed;inset:0;z-index:38;display:flex;align-items:center;justify-content:center;
  background:rgba(3,7,16,.55);backdrop-filter:blur(2px);padding:16px;animation:pop .16s ease}
.ppCard{width:min(360px,100%);background:var(--panel2);border:1px solid var(--line2);border-radius:var(--r2);padding:18px;
  box-shadow:0 18px 50px rgba(0,0,0,.5)}
.ppCard h3{margin:0 0 14px;font-size:17px;font-weight:900;text-align:center}
.ppGrid{display:flex;gap:8px;margin-top:8px}
.ppGrid .btn{flex:1 1 0;min-width:0;padding:13px 6px;font-size:14px;word-break:keep-all;line-height:1.25}
.ppGrid .btn.on{border-color:var(--ui);color:var(--acc2)}
.ppGrid .btn[disabled]{opacity:.4;pointer-events:none}
.ppSubs{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.ppHint{margin-top:6px;font-size:11.5px;color:var(--dim);text-align:center}
.ppEnd{margin-top:14px}
.ppExit{color:var(--red)}
/* 일시정지 예약 표시 - ⏸ 버튼 바로 아래 */
.pauseResv{position:absolute;top:52px;right:10px;z-index:1;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:900;
  color:var(--gold,#f5c542);background:rgba(4,9,20,.78);border:1px solid var(--gold,#f5c542);pointer-events:none;letter-spacing:.02em}
/* 하단 조작 버튼의 교체 3종(대주자/투수 교체/타자 교체)은 숨긴다 (user req 2026-11-13) - 교체는 ⏸ 일시정지 팝업에서.
   요소는 그대로 둬야 팝업이 이 버튼들의 표시/활성 상태를 따라간다 */
#btnSubP,#btnSubB,#btnSubR{display:none !important}

/* 일시정지 팝업 v2 (user req 2026-11-13): 스위치형 ON/OFF, 빨간 나가기 */
.ppCard{width:min(400px,100%)}
.ppToggles{margin-top:10px}
.ppSw{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 10px 10px 12px;
  border-radius:var(--r);background:rgba(23,36,66,.9);border:1px solid var(--line2);color:var(--txt);cursor:pointer}
.ppSwLb{font-size:12.5px;font-weight:800;line-height:1.25;text-align:left;word-break:keep-all}
.ppTg{position:relative;flex:none;width:56px;height:28px;border-radius:14px;background:#c9ccd3;box-shadow:inset 0 2px 4px rgba(0,0,0,.35);transition:background .18s;font-style:normal}
.ppTg b{position:absolute;top:0;bottom:0;display:flex;align-items:center;font-size:11px;font-weight:900;letter-spacing:.02em;color:#8d929c;right:8px;transition:.18s}
.ppTg u{position:absolute;top:2px;left:2px;width:24px;height:24px;border-radius:50%;background:linear-gradient(180deg,#fff,#e3e5ea);box-shadow:0 2px 4px rgba(0,0,0,.4);transition:left .18s}
.ppSw.on .ppTg{background:#22c55e}
.ppSw.on .ppTg b{right:auto;left:9px;color:rgba(0,40,10,.6)}
.ppSw.on .ppTg u{left:30px}
.ppGrid .btn.ppExit{background:var(--red);border-color:transparent;color:#fff;box-shadow:0 6px 18px -8px var(--red)}
.ppGrid .btn.ppExit:hover{filter:brightness(1.08);border-color:transparent}

/* 경기 기록 '다음'·'확인', 리그 '다음 경기' 버튼은 불투명도 100% (user req 2026-11-13) */
#pageBody #bsNext,#pageBody #bsDone,#pageBody #btnNext,#pageBody #pvGo{background:linear-gradient(180deg,color-mix(in srgb,var(--ui) 88%,#fff),var(--ui))}

/* PC 같은 넓은 화면: 타격/투구 버튼(+도루/견제)을 한 줄로 - 조작 영역이 세로로 커지지 않게 */
@media (min-width:900px){
  #batPanel .btn,#pitPanel .btn{flex:1 1 0}
}
/* 절전(달) 버튼이 마지막 버튼(도루/견제)을 가리지 않게 - 달 버튼이 보일 때만 오른쪽을 비워 둔다 */
#controls:has(.saverMoon:not([hidden])) .ctlRow{padding-right:44px;box-sizing:border-box}
/* 인게임 음소거 버튼은 일시정지 팝업의 음소거 스위치로만 쓴다 (user req 2026-11-13) */
#btnMute{display:none !important}

/* ===== 2026-11-14 요청 모음 ===== */
/* 전체 자동조합 · 조합하기(일반/유니크) 버튼은 불투명도 100% */
#pageBody #combineAll{background:linear-gradient(180deg,var(--acc2),var(--acc))}
#pageBody #go,#pageBody #uqGo{background:linear-gradient(180deg,color-mix(in srgb,var(--ui) 88%,#fff),var(--ui))}

/* 모바일: 타격 버튼(2단)과 투구 버튼(3단)이 번갈아 뜰 때 아래 검은 조작 영역 높이가 출렁이지 않게 - 두 패널 높이를 같게(3단 높이) 맞추고
   타격 버튼은 그 높이를 두 줄이 나눠 채운다 */
@media (max-width:899px){
  #batPanel,#pitPanel{min-height:141px}
  #batPanel{align-content:stretch}
  #batPanel .btn{min-height:0}
}

/* 인게임 배속·AUTO(꺼짐) 버튼이 잘 보이게: 어두운 바탕 + 밝은 테두리 + 굵은 흰 글자 */
.gTools .iconBtn:not(.on){background:rgba(6,12,26,.86);border:1.5px solid rgba(255,255,255,.62);color:#fff;font-weight:900;
  text-shadow:0 1px 2px rgba(0,0,0,.9);box-shadow:0 2px 8px rgba(0,0,0,.55)}
.gTools .iconBtn:not(.on):hover{border-color:#fff}
.gTools #btnSpeed{font-size:15px}
.gTools .autoBtn:not(.on){font-size:9px}

/* PC: 홈구장 선택 박스를 화면 세로 가운데로 (조금 내림) */
@media (min-width:900px) and (min-height:640px){
  #scCreate .scroll:has(#crPage2:not([hidden])){display:flex;flex-direction:column}
  #scCreate .scroll:has(#crPage2:not([hidden])) .wrap{flex:1 0 auto;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box}
}

/* PC: 경기 시작 방식 선택(일반/연속/마이플레이어) 크게 */
@media (min-width:900px){
  .pvPickRow{width:min(880px,100%);gap:18px}
  .pvPickRow .btn.hasIco,.pvPickRow .btn.hasIco.ghost{max-width:270px;padding:12px 12px 14px;gap:8px;border-radius:16px}
  .pvPickRow .btn.hasIco span{font-size:20px}
}
/* 상점 구매 버튼은 불투명도 100% (user req 2026-11-14) */
#pageBody .shopItemBuy .btn.primary{background:linear-gradient(180deg,var(--acc2),var(--acc))}
/* 상점: 수량 스테퍼는 왼쪽, 구매 버튼은 오른쪽 끝 (user req 2026-11-14) */
.shopItemBuy .btn{margin-left:auto}

/* 기록실 (user req 2026-11-14): 기록 표를 배경 위에서도 또렷하게 불투명하게 + 선수 줄은 눌러서 선수 정보를 볼 수 있다 */
#recTbl.tblWrap{background:#0E1830;border-color:var(--line2)}
#recTbl thead th{background:#18274A;color:#B4C3E2}
#recTbl tbody tr{cursor:pointer}
#recTbl tbody tr:hover{background:#18274A}
#recTbl tbody tr.me{background:color-mix(in srgb,var(--team) 22%,#0E1830)}
#recTbl tbody tr.me:hover{background:color-mix(in srgb,var(--team) 30%,#0E1830)}
#recTbl tbody tr:active{background:#1F3260}
#recTbl .mini{color:var(--txt);opacity:.85}

/* 선수 상세 헤더 (user req 2026-11-14): 우측 상단에 소속 팀 로고, 내 선수는 그 밑에 잠금 버튼 */
.pdHead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.pdHead .pdLeft{min-width:0;flex:1 1 auto}
.pdHead .pdSide{flex:none;display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:-8px;margin-bottom:10px}      /* 로고를 살짝 위로 (user req 2026-11-14) */
.pdHead .pdLogo{display:block;line-height:0}

/* 얼티밋 몬스터 승급 가능 느낌표 (user req 2026-11-14): 로비 타일(tileBadge)과 같은 빨간 원 - 선수 탭 · 선수 카드 */
.tabs button{position:relative}
.tabs button .tabBang{position:absolute;top:-7px;right:6px;width:18px;height:18px;border-radius:50%;background:var(--red);color:#fff;
  font-size:11px;font-weight:900;line-height:1;display:grid;place-items:center;box-shadow:0 0 0 2px var(--bg2),0 3px 8px -3px var(--red)}
.card .bangMark{position:absolute;top:34px;left:7px;z-index:5;width:20px;height:20px;border-radius:50%;background:var(--red);color:#fff;
  font-size:12px;font-weight:900;line-height:1;display:grid;place-items:center;box-shadow:0 0 0 2px rgba(6,11,22,.85),0 3px 8px -3px var(--red);pointer-events:none}

/* 영구 저장 코드 표시 (user req 2026-11-14) */
.syncShort{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:26px;font-weight:800;letter-spacing:.08em;text-align:center;
  padding:14px 8px;margin:4px 0 12px;border-radius:12px;background:#0E1830;border:1px solid var(--line2);color:var(--txt);user-select:all}

/* PC 버전: 타격/투구 버튼 번호 표시 (user req 2026-11-15) - 키보드 숫자키로 누를 수 있다 */
body.pcKeys #batPanel .btn[data-key]::before,body.pcKeys #pitPanel .btn[data-key]::before{content:attr(data-key);display:inline-grid;place-items:center;width:1.45em;height:1.45em;margin-right:.45em;border:1.5px solid currentColor;border-radius:50%;font-size:.78em;font-weight:900;line-height:1;vertical-align:.08em;opacity:.85}

/* 일반 스카우트 확률표 위 배너 (user req 2026-11-15) */
.scoutBanner{display:block;width:100%;height:auto;margin:12px 0 4px;border-radius:14px;pointer-events:none;user-select:none}

/* 선수단 확장 (user req 2026-11-15) */
.rosterCntRow{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.rosterPlus{width:24px;height:24px;border-radius:7px;border:1px solid rgba(140,190,255,.5);background:linear-gradient(180deg,#3A74E0,#2150B8);color:#fff;font-size:18px;font-weight:900;line-height:1;display:grid;place-items:center;padding:0 0 2px;cursor:pointer;box-shadow:0 4px 10px -5px #2F7BFF}
.rosterPlus:active{transform:translateY(1px)}
.rexpHead{display:flex;flex-direction:column;align-items:center;margin-bottom:4px}
.rexpHead h3{margin:2px 0 0}
.rexpIco{width:120px;height:120px;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(20,60,160,.5))}
.rexpBody{text-align:center}
.rexpBody p{margin:6px 0 10px}
.rexpArrow{display:flex;justify-content:center;align-items:baseline;gap:10px;font-size:26px;font-weight:900}
.rexpArrow span{color:var(--dim);font-size:20px}
.rexpArrow .up{color:#7FC1FF}
.rexpCnt{font-size:12.5px;color:var(--dim);font-weight:700;margin-bottom:12px}
.rexpCost{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);font-size:17px;margin-bottom:14px}
.rexpCost .itemIco{width:22px;height:22px}
.rexpCost.short b{color:var(--red)}
.rexpCost small{color:var(--red);font-size:11.5px;font-weight:800}

/* 뽑기 결과를 서버에 저장하는 동안 화면을 막는 로딩 (user req 2026-11-16) */
.cloudBusy{position:fixed;inset:0;z-index:95;display:grid;place-items:center;background:rgba(2,6,14,.55)}
.cloudBusyBox{display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px 26px;border-radius:14px;background:rgba(10,20,40,.92);color:#fff;font-weight:700}

/* 로비 설정: 음소거·배터리 절약 모드를 위아래로 (user req 2026-11-16) */
.ppGrid.ppStack{flex-direction:column;gap:8px}
.ppGrid.ppStack .ppSw{flex:none;width:100%}

/* 랭킹대전 + BP (user req 2026-11-16) */
.bpIco{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:9px;background:linear-gradient(180deg,#FFE27A,#E0A61C);color:#4A3200;font-size:10px;font-weight:900;letter-spacing:.3px;vertical-align:middle;box-shadow:0 1px 0 rgba(0,0,0,.35)}
.ldCand{display:flex;align-items:center;gap:12px;width:100%;margin:0 0 8px;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);color:inherit;text-align:left;cursor:pointer}
.ldCand:last-child{margin-bottom:0}
.ldCand:active{background:rgba(255,255,255,.12)}
.ldCand.off{opacity:.45}
.ldCand .ldLogo{flex:none;width:44px;height:44px;display:inline-block}
.ldCand .ldInfo{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.ldCand .ldInfo b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ldCand .ldTag{flex:none;padding:2px 7px;border-radius:8px;background:rgba(120,150,255,.22);border:1px solid rgba(120,150,255,.5);font-size:11px;font-weight:800}
