/* 화면 1 담당 화면별 스타일: 시작, 홈, 선수단, 선수 상세, 훈련, 영입 */

/* ---------- 입력 ---------- */
.inp { width: 100%; height: 54px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--track); color: var(--ink); font-size: 18px; font-weight: 700; outline: none;
  box-shadow: inset 0 0 0 2.5px var(--sec), inset 0 3px 6px rgba(0, 0, 0, .5); transition: box-shadow .15s; user-select: text; }
.inp:focus { box-shadow: inset 0 0 0 2.5px var(--hl), inset 0 3px 6px rgba(0, 0, 0, .5), 0 0 0 4px color-mix(in srgb, var(--hl) 18%, transparent); }
.inp::placeholder { color: var(--dim); }

/* ---------- 시작 ---------- */
.scr-start { padding: 0; min-height: 100%; }
.st-wrap { position: relative; min-height: 100dvh; padding: calc(28px + var(--safe-t)) 16px calc(28px + var(--safe-b)); display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.st-bg { opacity: .5; background: radial-gradient(80% 50% at 50% 20%, color-mix(in srgb, var(--acc) 35%, transparent), transparent 70%); }
.st-bg.img-on { opacity: .45; }
.st-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--panel2) 20%, transparent) 0%, color-mix(in srgb, var(--panel2) 85%, transparent) 55%, var(--bg) 80%); }
.st-hero { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 14px; min-height: 42vh; }
.st-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.st-logo b { font-size: 40px; font-weight: 900; letter-spacing: -1.5px; text-shadow: 0 4px 0 var(--lip), 0 0 30px color-mix(in srgb, var(--acc) 45%, transparent); }
.st-glove { width: 92px; height: 92px; border-radius: 46% 46% 40% 40%; background: radial-gradient(circle at 34% 28%, var(--acc-lt), var(--red) 48%, var(--red2) 100%);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .25), inset 0 6px 0 rgba(255, 255, 255, .25), 0 6px 0 var(--acclip), 0 18px 40px color-mix(in srgb, var(--acc) 45%, transparent); animation: gloveIn .8s cubic-bezier(.2, 1.5, .4, 1) both; position: relative; }
.st-glove::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: -16px; height: 22px; border-radius: 8px; background: linear-gradient(180deg, var(--ink), var(--mute)); box-shadow: 0 4px 0 var(--lip); }
@keyframes gloveIn { from { transform: translateY(-60px) rotate(-30deg) scale(.6); opacity: 0; } }
.st-hero p { margin: 0; max-width: 300px; color: var(--mute); font-size: 15px; }
.st-form { display: flex; flex-direction: column; gap: 10px; animation: rise .5s .2s both; }
.st-form label { font-weight: 800; font-size: 14px; }
.st-help { margin: 0 2px 6px; font-size: 13px; color: var(--mute); }
.st-help.bad { color: var(--danger-lt); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.st-head { position: relative; display: flex; gap: 12px; align-items: flex-start; }
.st-head b { display: block; font-size: 22px; letter-spacing: -.5px; }
.st-head span { display: block; color: var(--mute); font-size: 13.5px; margin-top: 2px; }
.st-head.center { justify-content: center; text-align: center; }
.gym-list { position: relative; display: flex; flex-direction: column; gap: 10px; }
.gym-tile { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; border-radius: 20px; background: var(--panel-fill); text-align: left;
  box-shadow: inset 0 0 0 2px var(--edge), inset 0 3px 0 var(--hi), 0 4px 0 var(--lip); animation: rise .4s calc(var(--i) * 40ms) both; transition: transform .1s; }
.gym-tile:active { transform: scale(.98); }
.gt-t { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gt-t b { font-size: 16.5px; }
.gt-t em { font-style: normal; font-size: 13px; color: var(--mute); }
.gt-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.gt-go { color: var(--dim); }
.gs { display: flex; flex-direction: column; gap: 12px; padding-bottom: 4px; }
.gs-top { display: flex; gap: 14px; align-items: center; }
.gs-top b { display: block; font-size: 21px; }
.gs-top span { color: var(--mute); font-size: 14px; }
.gs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gs-box { padding: 12px; border-radius: 18px; background: var(--track); box-shadow: inset 0 0 0 2px var(--edge); }
.gs-box h4 { display: flex; align-items: center; gap: 5px; margin: 0 0 6px; font-size: 14px; }
.gs-box h4 .ic { width: 18px; height: 18px; }
.gs-box.good h4 { color: var(--green); } .gs-box.bad h4 { color: var(--danger-lt); }
.gs-box p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink); }
.gs-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 12px; border-radius: 16px; background: var(--track); box-shadow: inset 0 0 0 2px var(--edge); font-size: 14px; }
.gs-k { font-size: 12px; font-weight: 800; color: var(--hl); min-width: 40px; }
.gs-row .muted { font-size: 12px; }

/* 카드 뒤집기 */
.flip { perspective: 900px; width: 46%; max-width: 190px; margin: 0 auto; }
.flip.big { width: 56%; max-width: 230px; }
.flip-in { position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); aspect-ratio: 512 / 720; }
.flip.on .flip-in { transform: rotateY(180deg); }
.flip-back, .flip-front { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-front { transform: rotateY(180deg); }

.flip-back { border-radius: 18px; background: repeating-linear-gradient(45deg, var(--panel) 0 10px, var(--panel2) 10px 20px); box-shadow: inset 0 0 0 3px var(--sec), inset 0 0 0 6px var(--panel2), 0 4px 0 var(--lip), 0 10px 20px rgba(0, 0, 0, .5); display: grid; place-items: center; }
.fb-mark { width: 46%; aspect-ratio: 1; border-radius: 46% 46% 40% 40%; background: radial-gradient(circle at 34% 28%, var(--acc-lt), var(--red) 48%, var(--red2)); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .25), 0 4px 0 var(--lip); }
.st-first { justify-content: center; }
.st-first-info { opacity: 0; transform: translateY(14px); transition: .45s; display: flex; flex-direction: column; gap: 6px; }
.st-first-info.on { opacity: 1; transform: none; }
.center { text-align: center; }

/* ---------- 홈 ---------- */
.home { display: flex; flex-direction: column; gap: 12px; }
.hm-star { --gc: var(--g-c); position: relative; display: block; width: 100%; height: 300px; border-radius: 26px; overflow: hidden; text-align: left;
  background: radial-gradient(90% 80% at 70% 30%, color-mix(in srgb, var(--gc) 40%, var(--edge)), var(--panel2) 75%);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--gc) 70%, var(--lip)), inset 0 0 0 5px rgba(0, 0, 0, .5), inset 0 6px 0 rgba(255, 255, 255, .1), 0 5px 0 var(--lip), 0 14px 28px rgba(0, 0, 0, .45); }
.hm-star.gr-b { --gc: var(--g-b); } .hm-star.gr-a { --gc: var(--g-a); } .hm-star.gr-s { --gc: var(--g-s); } .hm-star.gr-ss { --gc: var(--g-ss); }
.hm-bg.img-on { opacity: .55; }
.hm-ring { position: absolute; right: -40px; top: 10px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--hl) 18%, transparent), transparent 65%); }
.hm-stage { position: absolute; right: -4px; bottom: 0; width: 62%; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.hm-stage .sil { width: 100%; height: auto; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .35)); animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-1deg); } }
.hm-info { position: absolute; left: 16px; top: 16px; bottom: 16px; width: 52%; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.hm-ovr { display: flex; align-items: baseline; gap: 6px; }
.hm-ovr b { font-family: var(--f-num); font-size: 60px; line-height: .9; text-shadow: 0 3px 0 var(--lip); }
.hm-ovr i { font-family: var(--f-num); font-weight: 800; font-size: 26px; color: var(--gc); text-shadow: 0 2px 0 var(--lip); }
.hm-name { font-size: 21px; font-weight: 900; text-shadow: 0 2px 0 var(--lip); line-height: 1.2; }
.hm-sub { font-size: 12.5px; color: var(--mute); text-shadow: 0 1px 0 var(--lip); }
.hm-bars { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.hm-bars > span { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 6px; }
.hm-bars em { font-style: normal; font-size: 11.5px; color: var(--mute); font-weight: 700; }
.bar { display: block; height: 9px; border-radius: 5px; background: var(--track); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6); overflow: hidden; }
.bar b { display: block; height: 100%; border-radius: 5px; background: linear-gradient(180deg, var(--ok-lt), var(--ok2)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.bar.fat b { background: linear-gradient(180deg, var(--danger-lt), var(--danger)); }
.bar.en b { background: linear-gradient(180deg, var(--ok-lt), var(--ok)); }
.hm-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; }
.hm-tile { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 22px; background: var(--panel-fill); text-align: left;
  box-shadow: inset 0 0 0 2px var(--edge), inset 0 3px 0 var(--hi), 0 4px 0 var(--lip); }
.hm-tile.next:active { transform: translateY(2px); }
.ht-k { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--mute); }
.ht-k .ic, .ht-k .cur-svg svg { width: 18px; height: 18px; display: block; }
.hm-tile > b { font-family: var(--f-num); font-size: 34px; line-height: 1; letter-spacing: .5px; }
.hm-tile > b i { font-style: normal; font-size: 18px; color: var(--dim); }
.hm-tile.next > b { color: var(--hl); }
.ht-s { font-size: 11.5px; color: var(--dim); line-height: 1.3; }
.hm-tile .bar { margin: 3px 0; }
.hm-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.hm-acts .btn { min-height: 66px; font-size: 20px; }
.hm-acts .btn .ic { width: 26px; height: 26px; }
.coach { padding: 13px 14px; }
.coach-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.coach-h b { flex: 1; font-size: 15px; }
.coach-ic { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--hl) 16%, transparent); color: var(--hl); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--hl) 40%, transparent); }
.coach-ic .ic { width: 19px; height: 19px; }
.coach p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; padding-left: 40px; position: relative; }
.coach p::before { content: ''; position: absolute; left: 14px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--hl); }
.tasks { display: flex; flex-direction: column; gap: 8px; }
.task { display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 18px; background: var(--panel-fill); box-shadow: inset 0 0 0 2px var(--edge), 0 3px 0 var(--lip); text-align: left; transition: transform .1s; }
.task:active { transform: scale(.98); }
.tk-ck { width: 26px; height: 26px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--track); box-shadow: inset 0 0 0 2px var(--sec); }
.task.done .tk-ck { background: var(--green); color: var(--okink); box-shadow: 0 2px 0 var(--ok2); }
.tk-ck .ic { width: 18px; height: 18px; stroke-width: 3; }
.tk-t { flex: 1; font-weight: 700; font-size: 14.5px; }
.task.done .tk-t { color: var(--mute); text-decoration: line-through; text-decoration-thickness: 2px; }
.tk-n { font-family: var(--f-num); font-size: 18px; color: var(--gold); }
.tk-go { color: var(--dim); width: 18px; height: 18px; }
.hm-squad { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hm-squad::-webkit-scrollbar { display: none; }

.hm-more { flex: none; width: 108px; aspect-ratio: 512 / 720; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--track); box-shadow: inset 0 0 0 2px var(--edge); color: var(--mute); font-weight: 700; font-size: 13px; }

/* 불러오는 중 뼈대 */
.sk > div { border-radius: 22px; background: linear-gradient(90deg, var(--panel2) 0%, var(--panel) 40%, var(--panel2) 80%); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
.sk-hero { height: 300px; } .sk-row { height: 90px; margin-top: 12px; }
@keyframes skel { to { background-position: -200% 0; } }

/* ---------- 훈련 ---------- */
.train { display: flex; flex-direction: column; gap: 12px; }
.tr-pick { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 6px; scrollbar-width: none; }
.tr-pick::-webkit-scrollbar { display: none; }
.tp { --gc: var(--g-c); position: relative; flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 18px; background: var(--track); box-shadow: inset 0 0 0 2px var(--edge); text-align: left; transition: transform .1s; }
.tp.gr-b { --gc: var(--g-b); } .tp.gr-a { --gc: var(--g-a); } .tp.gr-s { --gc: var(--g-s); } .tp.gr-ss { --gc: var(--g-ss); }
.tp.on { background: linear-gradient(180deg, var(--edge), var(--panel)); box-shadow: inset 0 0 0 2.5px var(--gc), 0 3px 0 var(--lip); }
.tp:active { transform: scale(.96); }
.tp-face { width: 40px; height: 40px; border-radius: 13px; overflow: hidden; background: color-mix(in srgb, var(--gc) 30%, var(--panel2)); display: flex; align-items: flex-end; box-shadow: inset 0 0 0 2px var(--gc); }
.tp-face .sil { width: 100%; }
.tp-t b { display: block; font-size: 13.5px; white-space: nowrap; }
.tp-t em { font-style: normal; font-size: 11.5px; color: var(--mute); white-space: nowrap; }
.tp-warn { position: absolute; right: -2px; top: -4px; width: 20px; height: 20px; border-radius: 7px; background: var(--red); display: grid; place-items: center; box-shadow: 0 2px 0 var(--lip); }
.tp-warn .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.tr-status { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.ts-row { display: grid; grid-template-columns: 64px 1fr 52px; align-items: center; gap: 8px; }
.ts-k { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--mute); }
.ts-k .ic, .ts-k .cur-svg svg { width: 17px; height: 17px; display: block; }
.ts-v { font-family: var(--f-num); font-size: 21px; text-align: right; }
.ts-v i { font-style: normal; font-size: 13px; color: var(--dim); }
.ts-v.bad, .bad { color: var(--danger-lt); }
.ts-alert { display: flex; gap: 6px; align-items: flex-start; margin: 2px 0 0; padding: 9px 11px; border-radius: 14px; background: color-mix(in srgb, var(--danger) 14%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--danger) 45%, transparent); font-size: 13px; color: var(--danger-lt); }
.ts-alert .ic { width: 17px; height: 17px; flex: none; color: var(--danger-lt); margin-top: 1px; }
.ts-rest { align-self: flex-end; }
.ts-rest .ic { width: 17px; height: 17px; }
.advice2 { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; }
.adv-row p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
.adv-k { display: inline-block; padding: 3px 9px; border-radius: 9px; font-size: 11.5px; font-weight: 900; }
.adv-k.need { background: color-mix(in srgb, var(--acc) 20%, transparent); color: var(--acc-lt); }
.adv-k.vs { background: color-mix(in srgb, var(--hl) 20%, transparent); color: var(--hl-lt); }
.tr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tcard { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 10px 12px; border-radius: 22px; background: var(--panel-fill); text-align: left; overflow: hidden;
  box-shadow: inset 0 0 0 2px var(--edge), inset 0 3px 0 var(--hi), 0 5px 0 var(--lip); transition: transform .08s, box-shadow .08s; animation: rise .35s calc(var(--i) * 35ms) both; }
.tcard:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--edge), 0 2px 0 var(--lip); }
.tc-art { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 15px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--c) 85%, #fff), color-mix(in srgb, var(--c) 55%, var(--panel2)) 70%); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35), inset 0 3px 0 rgba(255, 255, 255, .18); }
.tc-art .art { z-index: 1; }
.tc-ic { position: relative; z-index: 0; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: rgba(0, 0, 0, .25); color: #fff; }
.tc-ic .ic { width: 32px; height: 32px; }
.tc-art .img-on + .tc-ic { display: none; }
.tc-name { font-size: 16px; font-weight: 900; }
.tc-gain { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; }
.tc-gain i { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 8px; background: var(--track); color: var(--mute); box-shadow: inset 0 0 0 1.5px var(--edge); }
.tc-cost { position: absolute; right: 16px; top: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 8px 0 4px; border-radius: 13px; background: color-mix(in srgb, var(--track) 85%, transparent); font-family: var(--f-num); font-size: 16px; box-shadow: 0 2px 0 var(--lip); }
.tc-cost .cur-svg svg, .tc-cost .cur-img { width: 18px; height: 18px; display: block; }
.tcard.poor .tc-cost { color: var(--acc-lt); }
.tcard.locked .tc-art, .tcard.locked .tc-name, .tcard.locked .tc-gain { filter: grayscale(1) brightness(.55); }
.tc-lock { position: absolute; left: 10px; right: 10px; top: 10px; aspect-ratio: 16 / 10; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; font-size: 12px; }
.tc-lock .ic { width: 26px; height: 26px; }
.cpick { display: flex; flex-direction: column; gap: 8px; }
.cp { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 18px; background: var(--track); box-shadow: inset 0 0 0 2px var(--edge), 0 3px 0 var(--lip); text-align: left; }
.cp:active { transform: translateY(2px); }
.cp-t { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.cp-t b { font-size: 15px; }
.cseq { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.cseq i { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 8px; background: var(--edge); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3); }
.cseq .p-jab { background: var(--cb2); } .cseq .p-cross { background: var(--acc2); } .cseq .p-hook { background: var(--hl2); } .cseq .p-upper { background: var(--g-s2); } .cseq .p-body { background: var(--ok2); }
.stars { display: inline-flex; gap: 1px; }
.stars i { width: 15px; height: 15px; color: var(--edge); }
.stars i.on { color: var(--gold); }
.stars .ic { width: 15px; height: 15px; fill: currentColor; stroke: none; }

/* 조작 화면 */
.mg { position: absolute; inset: 0; pointer-events: auto; display: flex; flex-direction: column; background: radial-gradient(90% 60% at 50% 30%, color-mix(in srgb, var(--c) 35%, var(--panel2)), var(--track) 80%); opacity: 0; transform: scale(1.04); transition: opacity .22s, transform .25s; max-width: 480px; margin: 0 auto; }
.mg.in { opacity: 1; transform: none; }
.mg.out { opacity: 0; }
.mg-top { display: flex; align-items: center; gap: 10px; padding: calc(14px + var(--safe-t)) 16px 8px; }
.mg-top > b { font-size: 20px; }
.mg-combo { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); }
.mg-x { margin-left: auto; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1); }
.mg-field { position: relative; flex: 1; overflow: hidden; touch-action: manipulation; }
.mg-field.shake { animation: shake .35s; }
@keyframes shake { 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
.mg-intro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; }
.mg-ic { width: 110px; height: 110px; border-radius: 34px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 70%, var(--lip)); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .2), 0 6px 0 var(--lip); animation: bob 2s ease-in-out infinite; }
.mg-ic .ic { width: 60px; height: 60px; color: #fff; }
.mg-intro p { margin: 0; font-size: 16px; line-height: 1.55; max-width: 300px; }
.mg-q { display: flex; gap: 6px; }
.mg-q span { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 10px; background: rgba(0, 0, 0, .35); color: var(--mute); }
.mg-q span:nth-child(2) { color: var(--ok-lt); } .mg-q span:nth-child(3) { color: var(--gold-lt); }
.mg-bot { display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(18px + var(--safe-b)); }
.mg-bot .btn.big { flex: 1; }
.mg-score { flex: 1; display: flex; align-items: baseline; gap: 6px; }
.mg-score span { font-size: 13px; color: var(--mute); font-weight: 700; }
.mg-score b { font-family: var(--f-num); font-size: 34px; }
.mg-score i { font-style: normal; color: var(--dim); }
.mg-stamp { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) rotate(-8deg); z-index: 5; padding: 14px 30px; border-radius: 22px; text-align: center; animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1) both;
  background: var(--panel-fill); box-shadow: inset 0 0 0 4px var(--dim), 0 8px 0 var(--lip), 0 20px 40px rgba(0, 0, 0, .6); }
.mg-stamp b { display: block; font-size: 44px; font-weight: 900; letter-spacing: -1px; }
.mg-stamp span { font-size: 13px; color: var(--mute); font-weight: 700; }
.mg-stamp.q-good { background: var(--okink); box-shadow: inset 0 0 0 4px var(--green), 0 8px 0 var(--lip), 0 0 40px color-mix(in srgb, var(--ok) 35%, transparent); }
.mg-stamp.q-good b { color: var(--green); }
.mg-stamp.q-perfect { background: var(--goldink); box-shadow: inset 0 0 0 4px var(--gold), 0 8px 0 var(--lip), 0 0 60px color-mix(in srgb, var(--gold) 60%, transparent); }
.mg-stamp.q-perfect b { color: var(--gold-lt); }
@keyframes stamp { from { transform: translate(-50%, -50%) rotate(-8deg) scale(2.4); opacity: 0; } }
.hitfx { position: absolute; z-index: 4; transform: translate(-50%, -50%); font-weight: 900; font-size: 22px; pointer-events: none; text-shadow: 0 3px 0 var(--lip); animation: hitUp .7s ease-out forwards; }
.hitfx.perfect { color: var(--gold-lt); font-size: 28px; } .hitfx.good { color: var(--green); } .hitfx.ok { color: var(--ink); } .hitfx.miss { color: var(--acc-lt); }
@keyframes hitUp { from { transform: translate(-50%, -30%) scale(.7); opacity: 0; } 25% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } to { transform: translate(-50%, -140%) scale(1); opacity: 0; } }
.gg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 20px; }
.gg-bag { position: relative; width: 120px; height: 200px; display: flex; justify-content: center; }
.bag-body { width: 110px; height: 190px; border-radius: 40px; background: linear-gradient(90deg, var(--acc2), var(--acc2) 40%, var(--acc2)); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .25), inset 0 8px 0 rgba(255, 255, 255, .12), 0 6px 0 var(--lip); position: relative; }
.bag-body::before { content: ''; position: absolute; left: 50%; top: -60px; width: 4px; height: 60px; background: var(--dim); transform: translateX(-50%); }
.bag-body::after { content: ''; position: absolute; left: 8px; right: 8px; top: 40%; height: 16px; border-radius: 8px; background: rgba(0, 0, 0, .25); }
.gg-bag.hit .bag-body { animation: bagHit .5s cubic-bezier(.2, 1.4, .5, 1); }
@keyframes bagHit { 30% { transform: rotate(calc(var(--pow, .5) * 14deg)) translateX(calc(var(--pow, .5) * 14px)); } }
.gg-track { position: relative; width: 100%; max-width: 340px; height: 30px; border-radius: 15px; background: linear-gradient(90deg, var(--acclip), var(--gold2) 50%, var(--acclip)); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .6), 0 0 0 3px var(--lip); }
.gg-zone { position: absolute; top: 3px; bottom: 3px; border-radius: 12px; background: linear-gradient(180deg, var(--gold-lt), var(--gold)); box-shadow: 0 0 16px color-mix(in srgb, var(--gold) 60%, transparent); }
.gg-best { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; background: #fff; border-radius: 2px; }
.gg-needle { position: absolute; top: -10px; bottom: -10px; width: 8px; margin-left: -4px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 2px var(--lip), 0 0 12px rgba(255, 255, 255, .8); }
.gg-left { font-size: 14px; color: var(--mute); font-weight: 700; }
.gg-hit, .rh-hit, .pc-hit { width: 100%; max-width: 340px; height: 84px; border-radius: 26px; font-size: 24px; font-weight: 900; color: #fff; background: linear-gradient(180deg, var(--acc), var(--acc2)); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .3), 0 7px 0 var(--acc2); flex: none; }
.gg-hit:active, .rh-hit:active, .pc-hit:active { transform: translateY(5px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .3), 0 2px 0 var(--acc2); }
.rh { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 0 20px 20px; }
.rh-lane { position: relative; flex: 1; width: 120px; border-radius: 0 0 30px 30px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .05)); box-shadow: inset 2px 0 0 rgba(255, 255, 255, .06), inset -2px 0 0 rgba(255, 255, 255, .06); }
.rh-note { position: absolute; left: 50%; top: 0; width: 64px; height: 22px; margin: -11px 0 0 -32px; border-radius: 11px; background: linear-gradient(180deg, var(--dia-lt), var(--cb)); box-shadow: 0 3px 0 var(--cb2), 0 0 14px color-mix(in srgb, var(--cb) 50%, transparent); }
.rh-note.hit { visibility: hidden; } .rh-note.miss { background: var(--acc2); box-shadow: none; opacity: .4 !important; }
.rh-line { position: absolute; left: 20%; right: 20%; top: calc((100% - 104px) * .82); height: 6px; border-radius: 3px; background: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, .8); }
.rh-ball { position: absolute; right: 10%; top: 22%; width: 70px; height: 90px; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 35% 30%, var(--gold-lt), var(--gold2) 60%, var(--sec)); box-shadow: 0 6px 0 var(--lip); }
.rh-ball.hit { animation: ballHit .25s; }
@keyframes ballHit { 40% { transform: translateY(-14px) rotate(8deg) scale(.95); } }
.pc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 20px; }
.pc-ring, .pc-shrink { position: absolute; left: 50%; top: 38%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; }
.pc-ring { box-shadow: inset 0 0 0 10px var(--green), 0 0 24px color-mix(in srgb, var(--ok) 40%, transparent); scale: 1.2; }
.pc-shrink { box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .85); }
.pc-n { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font-family: var(--f-num); font-size: 64px; }
.mt { position: absolute; inset: 0; }
.mitt { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s cubic-bezier(.2, 1.4, .4, 1); touch-action: none; }
.mitt.on { opacity: 1; transform: none; }
.mitt-pad { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 900; color: var(--acclip);
  background: radial-gradient(circle at 40% 35%, #fff 0 18%, var(--hl-lt) 19% 30%, var(--acc) 31% 100%); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .25), 0 5px 0 var(--lip); }
.mitt-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 4px #fff; pointer-events: none; }
.mitt.hit { animation: mittHit .3s forwards; } .mitt.miss { opacity: .25; }
@keyframes mittHit { to { transform: scale(1.4); opacity: 0; } }
.rc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 10px 16px 16px; gap: 14px; }
.rc-opp { position: relative; width: 180px; height: 170px; margin-top: 10px; }
.rc-head { position: absolute; left: 50%; top: 10px; width: 80px; height: 96px; margin-left: -40px; border-radius: 45%; background: radial-gradient(circle at 40% 35%, var(--gold-lt), var(--gold2)); box-shadow: 0 5px 0 var(--lip); }
.rc-gl { position: absolute; top: 80px; width: 70px; height: 64px; border-radius: 45%; background: radial-gradient(circle at 35% 30%, var(--cb), var(--cb2)); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .3), 0 5px 0 var(--lip); transition: transform .18s cubic-bezier(.2, 1.6, .4, 1); }
.rc-gl.l { left: 0; } .rc-gl.r { right: 0; }
.rc-opp.go-right .rc-gl.l { transform: translate(50px, -10px) scale(1.5); }
.rc-opp.go-left .rc-gl.r { transform: translate(-50px, -10px) scale(1.5); }
.rc-opp.go-in .rc-gl.r { transform: translate(-40px, -40px) scale(1.7); }
.rc-opp.go-in .rc-gl.l { transform: translateY(-10px); }
.rc-cue { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 64px; }
.rc-cue > b { font-size: 24px; font-weight: 900; text-shadow: 0 3px 0 var(--lip); min-height: 34px; }
.rc-timer { width: 70%; height: 10px; border-radius: 5px; background: rgba(0, 0, 0, .5); overflow: hidden; }
.rc-timer b { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); }
.rc-btns { margin-top: auto; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rc-b { min-height: 92px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 900; font-size: 14px;
  background: linear-gradient(180deg, var(--sec), var(--panel)); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .14), 0 6px 0 var(--lip); touch-action: none; }
.rc-b:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .14), 0 2px 0 var(--lip); }
.rc-b .ic { width: 30px; height: 30px; }
.tres { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; }
.trs-head { display: flex; align-items: center; gap: 12px; }
.trs-head > div { flex: 1; }
.trs-head > div b { display: block; font-size: 18px; }
.trs-head > div span { font-size: 12.5px; color: var(--mute); }
.trs-stamp { flex: none; width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; font-weight: 900; font-size: 18px; background: var(--panel-fill); box-shadow: inset 0 0 0 3px var(--dim), 0 4px 0 var(--lip); transform: rotate(-6deg); }
.q-good .trs-stamp { background: var(--okink); color: var(--green); box-shadow: inset 0 0 0 3px var(--green), 0 4px 0 var(--lip); }
.q-perfect .trs-stamp { background: var(--goldink); color: var(--gold-lt); box-shadow: inset 0 0 0 3px var(--gold), 0 4px 0 var(--lip), 0 0 24px color-mix(in srgb, var(--gold) 50%, transparent); }
.trs-ovr { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.trs-ovr em { font-style: normal; font-size: 11px; color: var(--mute); }
.trs-ovr b { font-family: var(--f-num); font-size: 34px; }
.trs-ovr i { font-style: normal; font-family: var(--f-num); color: var(--green); font-size: 16px; }
.trs-stats { padding: 8px 12px; border-radius: 18px; background: var(--track); box-shadow: inset 0 0 0 2px var(--edge); }
.trs-stats .sbar { grid-template-columns: 46px 1fr 30px 26px 26px; }
.sb-plus { font-family: var(--f-num); color: var(--green); font-size: 17px; text-align: right; animation: plusPop .5s .3s both; }
@keyframes plusPop { from { transform: scale(2); opacity: 0; } }
.trs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rg { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 14px; background: var(--track); box-shadow: inset 0 0 0 2px var(--edge); animation: rise .35s both; }
.rg.wide { grid-column: span 3; flex-direction: row; justify-content: space-between; padding: 9px 12px; }
.rg.hot { box-shadow: inset 0 0 0 2px var(--hl), 0 0 14px color-mix(in srgb, var(--hl) 30%, transparent); }
.rg em { font-style: normal; font-size: 12px; color: var(--mute); font-weight: 700; }
.rg b { font-family: var(--f-num); font-size: 20px; }
.rg.wide b { font-family: inherit; font-size: 14px; }
.rg > i { font-style: normal; font-family: var(--f-num); color: var(--green); font-size: 16px; }
.trs-foot { display: flex; justify-content: space-around; font-size: 13px; color: var(--mute); }
.trs-foot b { font-family: var(--f-num); font-size: 18px; color: var(--ink); margin-left: 3px; }

/* ---------- 영입 ---------- */
.rec { display: flex; flex-direction: column; gap: 12px; }
.rec-banner { position: relative; height: 230px; border-radius: 26px; overflow: hidden; background: radial-gradient(80% 90% at 70% 40%, var(--g-s2) 0%, var(--g-s2) 50%, var(--panel2) 100%);
  box-shadow: inset 0 0 0 3px var(--g-s), inset 0 0 0 5px rgba(0, 0, 0, .5), inset 0 6px 0 rgba(255, 255, 255, .12), 0 5px 0 var(--lip), 0 14px 28px rgba(0, 0, 0, .45); }
.rb-bg.img-on { opacity: .7; }
.rb-glow { position: absolute; right: 10%; top: 10%; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--hl) 45%, transparent), transparent 65%); animation: glowP 3s ease-in-out infinite; }
@keyframes glowP { 50% { transform: scale(1.12); opacity: .75; } }
.rb-cards { position: absolute; right: 26px; top: 26px; width: 150px; height: 170px; }
.rbc { position: absolute; width: 92px; aspect-ratio: 512 / 720; border-radius: 12px; background: repeating-linear-gradient(45deg, var(--panel) 0 8px, var(--panel2) 8px 16px); box-shadow: inset 0 0 0 3px var(--hl), inset 0 0 0 5px var(--panel2), 0 6px 14px rgba(0, 0, 0, .5); }
.rbc.c1 { left: 0; top: 22px; transform: rotate(-14deg); }
.rbc.c2 { left: 30px; top: 6px; transform: rotate(-2deg); z-index: 2; box-shadow: inset 0 0 0 3px var(--hl-lt), inset 0 0 0 5px var(--panel2), 0 0 26px color-mix(in srgb, var(--hl) 60%, transparent); animation: floatC 2.4s ease-in-out infinite; }
.rbc.c3 { left: 60px; top: 24px; transform: rotate(12deg); }
@keyframes floatC { 50% { transform: rotate(-2deg) translateY(-8px); } }
.rb-t { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 3; }
.rb-t b { display: block; font-size: 28px; font-weight: 900; letter-spacing: -.8px; text-shadow: 0 3px 0 var(--lip); }
.rb-t span { display: block; max-width: 56%; font-size: 13px; color: var(--g-s-lt); text-shadow: 0 1px 0 var(--lip); }
.pity { padding: 12px 14px; }
.pity-h { display: flex; justify-content: space-between; align-items: baseline; }
.pity-h > b { font-size: 14.5px; }
.pity-h span { font-size: 13px; color: var(--mute); }
.pity-h span b { font-family: var(--f-num); font-size: 26px; color: var(--g-s); margin-right: 2px; }
.pity-bar { height: 12px; margin: 8px 0 6px; }
.pity-bar b { background: linear-gradient(90deg, var(--g-s), var(--g-s)); box-shadow: 0 0 10px color-mix(in srgb, var(--g-s) 60%, transparent); }
.pity-s { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }
.rates { display: flex; gap: 6px; align-items: stretch; cursor: pointer; }
.rt { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 7px 2px; border-radius: 14px; background: var(--track); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gc) 60%, var(--lip)); }
.rt b { font-family: var(--f-num); font-style: italic; font-size: 19px; color: var(--gc); line-height: 1.1; }
.rt i { font-style: normal; font-family: var(--f-num); font-size: 15px; }
.rt-more { flex: none; width: 38px; display: grid; place-items: center; border-radius: 14px; background: var(--track); box-shadow: inset 0 0 0 2px var(--edge); color: var(--mute); }
.pull-btns { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; }
.pull-btns .btn { min-height: 84px; flex-direction: column; gap: 4px; border-radius: 22px; }
.pb-t { font-size: 17px; }
.pb-c { display: flex; align-items: center; gap: 4px; font-family: var(--f-num); font-size: 20px; }
.pb-c .cur-svg svg, .pb-c .cur-img { width: 22px; height: 22px; display: block; }
.pb-c em { font-family: 'Noto Sans KR', sans-serif; font-style: normal; font-size: 11px; font-weight: 700; opacity: .85; margin-left: 4px; }
.gympull { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.gp-t { flex: 1; min-width: 0; }
.gp-t b { display: block; font-size: 15px; }
.gp-t span { font-size: 12px; color: var(--mute); line-height: 1.35; display: block; }
.rec-note { margin: 0 4px; font-size: 12px; color: var(--dim); text-align: center; }
.gchip { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 26px; padding: 0 8px; border-radius: 9px; font-family: var(--f-num); font-style: italic; font-weight: 800; font-size: 16px; color: var(--panel2); background: var(--gc); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 2px 0 var(--lip); }
.rtable { width: 100%; border-collapse: separate; border-spacing: 0 6px; text-align: center; font-size: 14px; }
.rtable th { font-size: 12px; color: var(--mute); font-weight: 700; }
.rtable td { padding: 8px 4px; background: var(--track); font-family: var(--f-num); font-size: 18px; }
.rtable td:first-child { border-radius: 14px 0 0 14px; } .rtable td:last-child { border-radius: 0 14px 14px 0; }
.rrules { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 6px; padding: 12px 14px; border-radius: 18px; background: var(--track); box-shadow: inset 0 0 0 2px var(--edge); }
.rrules p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--mute); }

/* 뽑기 연출(가로 화면 전체). 열리는 동안은 카드만 가운데, 다 열리면 세 칸 결과판: 카드 | 프로필 | 방사형 능력치와 확인 단추 */
.pr { position: absolute; inset: 0; pointer-events: auto; display: flex; flex-direction: column; overflow: hidden;
  padding: calc(10px + var(--safe-t)) calc(14px + var(--safe-r)) calc(10px + var(--safe-b)) calc(14px + var(--safe-l));
  background: radial-gradient(90% 80% at 50% 40%, var(--g-s2), var(--track) 75%); opacity: 0; transition: opacity .3s; }

/* 카드 크기: 한 장은 높이에 맞춰 크게, 열 장은 5x2 */
.pr { --ch: min(300px, calc(100vh - 96px)); }

@keyframes dropIn { from { transform: translateY(-60px) rotate(-8deg); opacity: 0; } }

.pf .flip-back { border-radius: 12px; }
.fb-glow { position: absolute; inset: -6px; border-radius: 16px; opacity: 0; transition: opacity .3s; }
.pf.pre.gr-a .fb-glow { opacity: 1; box-shadow: 0 0 22px 4px color-mix(in srgb, var(--g-a) 80%, transparent); }
.pf.pre.gr-s .fb-glow { opacity: 1; box-shadow: 0 0 30px 8px color-mix(in srgb, var(--g-s) 90%, transparent); }
.pf.pre.gr-ss .fb-glow { opacity: 1; box-shadow: 0 0 40px 12px var(--g-ss); }
.pf.pre.gr-s .flip-in, .pf.pre.gr-ss .flip-in { animation: wobble .6s ease-in-out; }
@keyframes wobble { 25% { transform: rotate(-5deg) scale(1.06); } 75% { transform: rotate(5deg) scale(1.06); } }
.pf.on.gr-s .flip-front, .pf.on.gr-ss .flip-front { animation: popGlow 1s ease-out; }
@keyframes popGlow { from { filter: brightness(2.2); transform: rotateY(180deg) scale(1.15); } }

@keyframes profIn { from { opacity: 0; transform: translateX(18px); } }

.pi-caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cap { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 14px; background: var(--track); box-shadow: inset 0 0 0 2px var(--edge); }
.cap em { font-style: normal; font-size: 11.5px; color: var(--mute); font-weight: 700; }
.cap b { font-family: var(--f-num); font-size: 26px; line-height: 1.05; }
.cap i { font-style: normal; font-size: 11px; color: var(--dim); display: inline-flex; align-items: center; gap: 3px; }
.cap.md i { color: var(--ok-lt); } .cap.hi i { color: var(--hl-lt); font-weight: 800; }
.cap-up { display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 6px solid var(--hl-lt); }
.cap.hi { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--hl) 60%, transparent); }

.sl { flex: none; display: flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 16px; background: linear-gradient(180deg, var(--hlink), var(--hlink)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--hl) 50%, transparent), 0 3px 0 var(--lip); text-align: left; }
.sl > .ic { width: 20px; height: 20px; color: var(--hl); }
.sl em { display: block; font-style: normal; font-size: 10.5px; color: var(--hl-lt); font-weight: 700; }
.sl b { display: block; font-size: 13px; white-space: nowrap; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--track); box-shadow: inset 0 0 0 2px var(--panel); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; min-height: 36px; padding: 0 12px; border-radius: 12px; font-size: 13px; font-weight: 800; color: var(--mute); white-space: nowrap; transition: background .15s, color .15s; }
.seg button.on { background: linear-gradient(180deg, var(--sec), var(--edge)); color: var(--ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 2px 0 var(--lip); }

.sq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.lpick { display: flex; flex-direction: column; gap: 8px; }
.lp { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 18px; background: var(--track); box-shadow: inset 0 0 0 2px var(--edge), 0 3px 0 var(--lip); text-align: left; }
.lp.on { box-shadow: inset 0 0 0 2.5px var(--hl), 0 3px 0 var(--lip); }
.lp .tp-face { --gc: var(--g-c); width: 44px; height: 44px; }
.lp .tp-face.gr-b { --gc: var(--g-b); } .lp .tp-face.gr-a { --gc: var(--g-a); } .lp .tp-face.gr-s { --gc: var(--g-s); } .lp .tp-face.gr-ss { --gc: var(--g-ss); }
.lp-t { flex: 1; }
.lp-t b { display: block; font-size: 15px; }
.lp-t em { font-style: normal; font-size: 12px; color: var(--mute); }
.lp-o { font-family: var(--f-num); font-size: 26px; }
.lp-c { color: var(--gold); }

.bd-face { position: absolute; right: -6px; bottom: 0; width: 56%; }
.bd-face .sil { width: 100%; display: block; }

.bd-crown { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 2px 8px 2px 5px; border-radius: 8px; background: var(--gold); color: var(--goldink); font-size: 11.5px; font-weight: 900; letter-spacing: 0; vertical-align: 4px; text-shadow: none; }
.bd-crown .ic { width: 13px; height: 13px; }
.bd-gym { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.bd-rec { font-size: 13px; color: var(--mute); margin-top: auto; }
.bd-rec b { font-family: var(--f-num); font-size: 20px; color: var(--ink); }
.bd-rec em { font-style: normal; color: var(--hl); font-weight: 800; margin-left: 4px; }
.bd-tier { align-self: flex-start; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 800; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gc) 60%, var(--lip)); }
.bd-note { margin: 8px 4px 0; font-size: 12.5px; color: var(--mute); line-height: 1.45; }
.bd-stats { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* 방사형 능력치 그래프(BX.ui.radar). 축 선은 가늘어도 되고 바깥은 판 규칙을 따른다 */
.rdr { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.radar { width: 100%; max-width: var(--rd-w, 240px); height: auto; display: block; overflow: visible; }
.rd-ring { fill: none; stroke: color-mix(in srgb, var(--ink) 8%, transparent); stroke-width: 1.5; }
.rd-ring.out { fill: color-mix(in srgb, var(--track) 70%, transparent); stroke: color-mix(in srgb, var(--ink) 18%, transparent); stroke-width: 2.5; }
.rd-spoke { stroke: color-mix(in srgb, var(--ink) 9%, transparent); stroke-width: 1.2; }
.rd-cap { fill: color-mix(in srgb, var(--ink) 6%, transparent); stroke: color-mix(in srgb, var(--ink) 70%, transparent); stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; }
.rd-cur { fill: color-mix(in srgb, var(--hl) 38%, transparent); stroke: var(--hl); stroke-width: 3; stroke-linejoin: round; }
.rd-cmp { fill: color-mix(in srgb, var(--cb) 26%, transparent); stroke: var(--cb); stroke-width: 2.5; stroke-linejoin: round; }
.has-cmp .rd-cur { fill: color-mix(in srgb, var(--hl) 26%, transparent); }
.rd-dot { fill: var(--hl); stroke: var(--lip); stroke-width: 1.5; }
.rdr.anim .rd-cur, .rdr.anim .rd-cap, .rdr.anim .rd-cmp, .rdr.anim .rd-dot { animation: radarIn .55s cubic-bezier(.2, 1.1, .3, 1) both; }
.rdr.anim .rd-cap { animation-delay: .08s; } .rdr.anim .rd-cur, .rdr.anim .rd-dot { animation-delay: .16s; }
@keyframes radarIn { from { transform: scale(0); opacity: 0; } }
.radar text { fill: var(--ink); }
.rl-n { font-size: 12px; font-weight: 700; fill: var(--mute); }
.rl-v { font-size: 16px; font-weight: 800; font-family: var(--f-num); }
.rl-c { font-size: 12.5px; font-weight: 700; font-family: var(--f-num); fill: var(--mute); }
.rl-o { font-size: 14px; font-weight: 800; font-family: var(--f-num); fill: var(--cb); }
.rd-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 12px; font-weight: 700; color: var(--mute); }
.rd-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rd-legend i { width: 18px; height: 12px; border-radius: 4px; }
.lg-cur { background: color-mix(in srgb, var(--hl) 45%, transparent); box-shadow: inset 0 0 0 2.5px var(--hl); }
.lg-cap { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 70%, transparent); background: repeating-linear-gradient(90deg, transparent 0 3px, color-mix(in srgb, var(--ink) 18%, transparent) 3px 6px); }
.lg-cmp { background: color-mix(in srgb, var(--cb) 35%, transparent); box-shadow: inset 0 0 0 2.5px var(--cb); }
.bd-bars { width: 100%; }
.bd-cond { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding: 12px 14px; border-radius: 20px; background: var(--track); box-shadow: inset 0 0 0 2px var(--panel); }
.bd-cond > span { display: grid; grid-template-columns: 50px 1fr 30px; align-items: center; gap: 8px; font-size: 13px; }
.bd-cond em { font-style: normal; color: var(--mute); font-weight: 700; }
.bd-cond > span > b { font-family: var(--f-num); font-size: 18px; text-align: right; }
.bd-cond .bd-inj { display: flex; gap: 6px; color: var(--danger-lt); font-weight: 800; }
.bd-cond .bd-inj .ic { width: 17px; height: 17px; }
.mast-bar { position: relative; height: 16px; margin: 22px 4px 8px; border-radius: 8px; background: var(--track); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6); }
.mast-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(180deg, var(--hl-lt), var(--hl2)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4); }
.mk { position: absolute; top: -22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--mute); }
.mk::after { content: ''; width: 3px; height: 22px; background: rgba(255, 255, 255, .5); border-radius: 2px; margin-top: 1px; }
.mk b { font-family: var(--f-num); font-size: 12px; line-height: 1; }
.mk em { display: none; }
.mast-v { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; }
.mast-v b { font-family: var(--f-num); font-size: 30px; color: var(--hl); }
.mast-k { display: flex; gap: 14px; margin-top: 6px; font-size: 12px; color: var(--mute); }
.mast-k b { font-family: var(--f-num); color: var(--ink); font-size: 14px; }
.bchips.big b.sm { font-size: 16px; line-height: 2; }
.mast-v span { font-size: 12.5px; color: var(--mute); }
.bd-sig { display: flex; align-items: center; gap: 12px; }
.sig-ic { width: 50px; height: 50px; flex: none; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(180deg, var(--hl-lt), var(--hl)); color: var(--hlink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 3px 0 var(--hl2); }
.bd-sig.locked .sig-ic { background: var(--panel-fill); color: var(--dim); box-shadow: inset 0 0 0 2px var(--edge); }
.bd-sig b { display: block; font-size: 16px; }
.bd-sig span { font-size: 12.5px; color: var(--mute); display: flex; align-items: center; gap: 6px; }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.slot { position: relative; min-height: 58px; padding: 8px 12px; border-radius: 16px; display: flex; flex-direction: column; justify-content: center; gap: 3px; text-align: left;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 8px, transparent 8px 16px), var(--track); box-shadow: inset 0 0 0 2px var(--panel); color: var(--dim); font-size: 12.5px; font-weight: 700; }
.slot.on { background: linear-gradient(180deg, var(--panel), var(--panel2)); box-shadow: inset 0 0 0 2.5px var(--hl), 0 3px 0 var(--lip); color: var(--ink); }
.slot.on b { font-size: 14px; }
.sl-x { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(0, 0, 0, .4); }
.sl-x .ic { width: 13px; height: 13px; }
.combos { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.cb { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--panel-fill); box-shadow: inset 0 0 0 2px var(--edge), 0 3px 0 var(--lip); text-align: left; }
.cb.eq { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--hl) 55%, transparent), 0 3px 0 var(--lip); }
.cb.locked { opacity: .55; }
.cb-t { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.cb-t b { font-size: 14.5px; }
.cb-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.cb-r em { font-style: normal; font-size: 11.5px; color: var(--mute); font-weight: 700; }
.cb.eq .cb-r em { color: var(--hl); }
.cb-r > .ic { width: 18px; height: 18px; color: var(--dim); }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.sk1 { display: grid; grid-template-columns: 64px 1fr 26px; align-items: center; gap: 6px; font-size: 12.5px; }
.sk1 em { font-style: normal; color: var(--mute); font-weight: 700; white-space: nowrap; }
.sk1 > b { font-family: var(--f-num); font-size: 16px; text-align: right; }
.bar.sk { height: 7px; }
.bar.sk b { background: linear-gradient(180deg, var(--dia-lt), var(--cb)); }
.seg.tac button { min-height: 42px; }

.bd-acts .btn .ic, .bd-acts2 .btn .ic { width: 20px; height: 20px; }
.bd-acts2 { display: flex; justify-content: space-between; margin-top: 14px; }
.btn.danger { color: var(--danger-lt); }

/* ---------- 다음 목표, 성장 기록, 경기 효과, 코치 한마디, 3D 칸 ---------- */
.goals { padding: 12px 14px; }

.gl-h { display: flex; justify-content: space-between; align-items: baseline; }
.gl-h > b { font-size: 15px; }
.gl-h span { font-size: 13px; color: var(--mute); }
.gl-h span b { font-family: var(--f-num); font-size: 24px; color: var(--hl); margin-right: 2px; }
.gl-pips { display: flex; gap: 6px; margin: 8px 0 6px; }
.gl-pips i { flex: 1; height: 12px; border-radius: 6px; background: var(--track); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6); }
.gl-pips i.on { background: linear-gradient(180deg, var(--hl-lt), var(--hl2)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 0 10px color-mix(in srgb, var(--hl) 40%, transparent); }
.gl-sub { margin: 0 0 4px; font-size: 12.5px; color: var(--mute); }
.gl-l { position: relative; margin: 5px 0 0; padding-left: 14px; font-size: 13.5px; line-height: 1.45; }
.gl-l::before { content: ''; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--red); }
.gs-intro { margin: 0; padding: 0 2px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.pi-tip { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 18px; background: color-mix(in srgb, var(--hl) 10%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--hl) 35%, transparent); }
.pi-tip p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.pi-tip .coach-ic { flex: none; }
.pdet .pi-tip { margin-top: 10px; }
/* 성장 이정표: 효과 문장 위에 크게 */
.trs-ms { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.ms1 { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(180deg, var(--panel), var(--panel2)); box-shadow: inset 0 0 0 2px var(--hl), 0 3px 0 var(--lip), 0 0 18px color-mix(in srgb, var(--hl) 25%, transparent); animation: stamp .5s .2s cubic-bezier(.2, 1.4, .4, 1) both; }
.ms1 > .ic { width: 26px; height: 26px; flex: none; color: var(--hl); fill: var(--hl); stroke: none; }
.ms1 p { flex: 1; margin: 0; font-size: 14.5px; font-weight: 800; line-height: 1.4; }
.ms1 em { flex: none; font-style: normal; font-size: 12px; font-weight: 800; color: var(--hl-lt); }
.trs-fx { text-align: left; padding: 10px 12px; border-radius: 16px; background: color-mix(in srgb, var(--ok) 10%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ok) 40%, transparent); animation: rise .4s .4s both; }
.trs-fx b { display: block; font-size: 12.5px; color: var(--ok-lt); margin-bottom: 2px; }
.trs-fx p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; }
.growth { display: flex; flex-direction: column; gap: 12px; }
.gr-ovr { display: flex; align-items: center; gap: 10px; }
.gr-ovr > span { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.gr-ovr em { font-style: normal; font-size: 11px; color: var(--mute); margin-bottom: 3px; }
.gr-ovr b { font-family: var(--f-num); font-size: 34px; }
.gr-ovr > i .ic { width: 22px; height: 22px; color: var(--dim); }
.gr-ovr .gr-d { margin-left: auto; font-family: var(--f-num); font-size: 26px; color: var(--green); }
.gr-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.gr-stats > span { display: flex; align-items: center; gap: 4px; padding: 6px 9px; border-radius: 12px; background: var(--track); box-shadow: inset 0 0 0 2px var(--panel); font-size: 12px; }
.gr-stats em { font-style: normal; color: var(--mute); font-weight: 700; flex: 1; white-space: nowrap; }
.gr-stats b { font-family: var(--f-num); font-size: 16px; }
.gr-stats i .ic { width: 12px; height: 12px; color: var(--dim); }
.gr-stats u { text-decoration: none; font-family: var(--f-num); color: var(--green); font-size: 14px; margin-left: 2px; }
.gr-sub > b { display: block; font-size: 13.5px; margin-bottom: 6px; }
.gr-sub .muted, .gr-none { margin: 0; font-size: 13px; }
.gr-t { display: grid; grid-template-columns: 52px auto auto 1fr; align-items: center; gap: 6px; padding: 6px 0; font-size: 12.5px; }
.gr-t + .gr-t { box-shadow: 0 -2px 0 var(--panel); }
.gr-t em { font-style: normal; color: var(--dim); }
.gr-t > i { font-style: normal; font-weight: 800; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--panel-fill); color: var(--mute); }
.gr-t > i.q-good { background: var(--okink); color: var(--green); } .gr-t > i.q-perfect { background: var(--hlink); color: var(--hl-lt); }
.gr-t > span { color: var(--mute); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-rec { margin: 0; font-size: 13.5px; }
.gr-ms { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.gm { font-style: normal; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.gm.w { background: var(--green); color: var(--okink); } .gm.l { background: var(--red); color: #fff; } .gm.d { background: var(--sec); }
.shadow3d { position: absolute; inset: 0; z-index: 1; -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--lip) 22%); mask-image: linear-gradient(90deg, transparent 0, var(--lip) 22%); }
.bd-info, .hm-info { z-index: 3; }
.bd-info .hm-name, .hm-info .hm-name { text-shadow: 0 2px 0 var(--lip), 0 0 10px rgba(0, 0, 0, .8); }
.has-3d > .face, .has-3d > .sil { visibility: hidden; }
.bd-face { height: 100%; top: 0; }
.bd-face > .face { position: absolute; bottom: 0; left: 0; right: 0; }
/* 초보자 안내 */
.guide { position: fixed; inset: 0; z-index: 55; pointer-events: none; }
.gd-ring { position: fixed; border-radius: 20px; box-shadow: 0 0 0 4px var(--hl), 0 0 0 9999px color-mix(in srgb, var(--lip) 55%, transparent), 0 0 26px 6px color-mix(in srgb, var(--hl) 70%, transparent); animation: gdPulse 1.2s ease-in-out infinite; }
@keyframes gdPulse { 50% { box-shadow: 0 0 0 7px var(--hl), 0 0 0 9999px color-mix(in srgb, var(--lip) 55%, transparent), 0 0 34px 10px color-mix(in srgb, var(--hl) 90%, transparent); } }
.guide.light .gd-ring { animation: gdPulseL 1.2s ease-in-out infinite; box-shadow: 0 0 0 4px var(--hl), 0 0 26px 6px color-mix(in srgb, var(--hl) 70%, transparent); }
@keyframes gdPulseL { 50% { box-shadow: 0 0 0 7px var(--hl), 0 0 34px 10px color-mix(in srgb, var(--hl) 90%, transparent); } }
.gd-finger { position: fixed; width: 44px; height: 52px; animation: gdTap 1s ease-in-out infinite; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .5)); }
.gd-finger svg { width: 100%; height: 100%; }
@keyframes gdTap { 50% { transform: translate(4px, 10px) scale(.92); } }
.gd-box { position: fixed; left: 16px; right: 16px; max-width: 448px; margin: 0 auto; padding: 14px 16px 12px; border-radius: 20px; background: linear-gradient(180deg, var(--panel), var(--panel2)); box-shadow: inset 0 0 0 2.5px var(--hl), 0 6px 0 var(--lip), 0 14px 30px rgba(0, 0, 0, .6); pointer-events: auto; animation: rise .3s both; }
.gd-box b { font-family: var(--f-num); color: var(--hl); font-size: 15px; }
.gd-box p { margin: 2px 0 8px; font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.gd-skip { font-size: 12.5px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
/* 과제 받기, 교본·체급 고르기 */
.tk-t em { display: block; font-style: normal; font-size: 11.5px; color: var(--mute); font-weight: 500; }
.task.ready { box-shadow: inset 0 0 0 2.5px var(--gold), 0 3px 0 var(--lip), 0 0 16px color-mix(in srgb, var(--gold) 25%, transparent); }
.tk-claim { padding: 5px 12px; border-radius: 11px; font-weight: 900; font-size: 13px; color: var(--goldink); background: linear-gradient(180deg, var(--gold-lt), var(--gold)); box-shadow: 0 2px 0 var(--gold2); animation: gdPulseS 1.2s ease-in-out infinite; }
@keyframes gdPulseS { 50% { transform: scale(1.06); } }
.task.more { justify-content: space-between; color: var(--mute); }
.mpick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.mp { display: flex; flex-direction: column; align-items: center; padding: 8px 2px; border-radius: 14px; background: var(--track); box-shadow: inset 0 0 0 2px var(--edge), 0 3px 0 var(--lip); }
.mp:active { transform: translateY(2px); }
.mp[disabled] { opacity: .4; }
.mp em { font-style: normal; font-size: 11.5px; color: var(--mute); font-weight: 700; }
.mp b { font-family: var(--f-num); font-size: 24px; line-height: 1.1; }
.mp i { font-style: normal; font-size: 10.5px; color: var(--dim); }
.wpick { display: flex; flex-direction: column; gap: 10px; }

.bd-acts2 { flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.hm-stage .face { animation: bob 2.6s ease-in-out infinite; }
/* 선수 초상: 그림(face-NN.png)이 오면 SVG 대신 그림 */
.face { position: relative; display: block; width: 100%; line-height: 0; }
.face.img-on { background: var(--img) center 100% / contain no-repeat; }
.face.img-on > .sil { visibility: hidden; }
/* 초상 그림은 네모 바탕이 있어 모서리를 둥글리고 아래를 흐려 카드 바탕에 녹인다 */
.hm-stage .face.img-on, .bd-face .face.img-on { -webkit-mask-image: radial-gradient(ellipse 62% 78% at 50% 40%, var(--lip) 58%, transparent 82%) !important; mask-image: radial-gradient(ellipse 62% 78% at 50% 40%, var(--lip) 58%, transparent 82%) !important; }
.bc-face .face.img-on, .hm-stage .face.img-on, .bd-face .face.img-on { border-radius: 14px; background-size: cover; background-position: center 18%; -webkit-mask-image: linear-gradient(180deg, var(--lip) 72%, transparent); mask-image: linear-gradient(180deg, var(--lip) 72%, transparent); }
.tp-face .face, .lp .tp-face .face { height: 100%; }
.tp-face .face.img-on { background-size: cover; background-position: center 20%; }
.ht-k .cur-img, .ts-k .cur-img { width: 18px; height: 18px; }
.pb-c .cur-img, .tc-cost .cur-img { width: 22px; height: 22px; }

/* ---------- 기력 모자람 안내(훈련) ---------- */
.lowe { padding: 12px 14px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ok-lt) 35%, transparent), 0 4px 0 var(--lip); }
.lowe > b { font-size: 15px; }
.lowe p { margin: 3px 0 10px; font-size: 13px; color: var(--mute); }
.lowe-b { display: flex; gap: 8px; }
.lowe-b .btn { flex: 1; }
/* 훈련 카드 아래 줄: 훈련 골드와 시설·코치 성장 배수 */
.tc-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 22px; }
.tc-gold { display: inline-flex; align-items: center; gap: 3px; font-family: var(--f-num); font-size: 15px; color: var(--gold-lt); }
.tc-gold .cur-img, .tc-gold .cur-svg svg { width: 16px; height: 16px; }
.tc-boost { font-size: 11px; font-weight: 900; padding: 2px 7px; border-radius: 8px; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok-lt); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 50%, transparent); }
/* 특성 */
.traits { display: flex; flex-direction: column; gap: 6px; }
.traits.compact { flex-direction: row; flex-wrap: wrap; }
.trait { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 16px; background: linear-gradient(180deg, var(--edge), var(--panel)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--g-s) 55%, transparent), 0 3px 0 var(--lip); }
.trait b { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--g-s-lt); }
.trait b .ic { width: 16px; height: 16px; color: var(--g-s); }
.trait em { font-style: normal; font-size: 12.5px; color: var(--mute); }
.pr-one .traits, .pdet .traits { margin: 2px 0; }
/* 교본 결제 고르기 */
.man-pay { margin-bottom: 10px; }
.man-pay button em { font-style: normal; font-size: 11px; color: var(--dim); margin-left: 4px; }
.man-pay button[disabled] { opacity: .4; }

/* ---------- 체육관 키우기 ---------- */
.gymup-entry { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; overflow: hidden; text-align: left; min-height: 82px; }
.gymup-entry .gu-bg.img-on { opacity: .45; }
.gymup-entry::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--panel2) 95%, transparent) 30%, color-mix(in srgb, var(--panel2) 50%, transparent)); }
.gu-t { position: relative; flex: 1; display: flex; flex-direction: column; }
.gu-t em { font-style: normal; font-size: 11.5px; color: var(--mute); font-weight: 700; }
.gu-t b { font-size: 19px; }
.gu-t span { font-size: 12px; color: var(--mute); }
.gymup-entry .btn { position: relative; pointer-events: none; }
.gymup { display: flex; flex-direction: column; gap: 12px; }
.gu-hero { position: relative; height: 230px; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow: inset 0 0 0 3px var(--sec), inset 0 6px 0 rgba(255, 255, 255, .08), 0 5px 0 var(--lip), 0 14px 28px rgba(0, 0, 0, .45); }
.gu-hero .gu-bg.img-on { opacity: .75; }
.gu-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--track) 10%, transparent) 30%, color-mix(in srgb, var(--track) 85%, transparent)); pointer-events: none; }
.gu-floor { position: absolute; left: 12px; right: 12px; bottom: 82px; z-index: 2; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
/* 0단계: 흐린 점선 윤곽만. 올리면 색이 켜지고 빛난다 */
.gf { position: relative; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 0, 0, .28); color: color-mix(in srgb, var(--ink) 38%, transparent); outline: 2px dashed color-mix(in srgb, var(--ink) 28%, transparent); outline-offset: -3px; }
.gf u { position: absolute; left: -4px; right: -4px; top: 100%; margin-top: 3px; text-decoration: none; font-size: 9px; font-weight: 700; text-align: center; white-space: nowrap; color: color-mix(in srgb, var(--ink) 45%, transparent); text-shadow: 0 1px 0 var(--lip); }
.gf.on u { color: #fff; }
.gf.on { outline: none; transform: translateY(-3px); }
.gf .ic { width: 60%; height: 60%; }
.gf.on { background: radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--c) 80%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 60%, var(--lip))); color: #fff; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .3), 0 3px 0 var(--lip), 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); }
.gf i { position: absolute; right: -3px; bottom: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; font-style: normal; font-family: var(--f-num); font-size: 13px; line-height: 18px; text-align: center; background: var(--hl); color: var(--hlink); box-shadow: 0 2px 0 var(--lip); }
.gu-info { position: absolute; left: 14px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 10px; }
.gu-info em { display: block; font-style: normal; font-size: 12px; color: var(--mute); }
.gu-info b { display: block; font-size: 22px; text-shadow: 0 2px 0 var(--lip); }
.gu-grade { padding: 12px 14px; }
.gu-bar { height: 12px; margin: 8px 0 10px; }
.gu-bar b { background: linear-gradient(180deg, var(--hl-lt), var(--hl2)); }
.gu-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.gu-steps span { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 2px; border-radius: 12px; background: var(--track); box-shadow: inset 0 0 0 2px var(--panel); }
.gu-steps b { font-size: 11px; line-height: 1.25; word-break: keep-all; }
.gu-steps em { font-style: normal; font-size: 10px; color: var(--dim); white-space: nowrap; line-height: 1.3; }
.gu-steps b + em { margin-top: 3px; }
.gu-steps .done { opacity: .6; }
.gu-steps .cur { background: linear-gradient(180deg, var(--panel), var(--panel2)); box-shadow: inset 0 0 0 2px var(--hl); }
.fac-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fac { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 20px; background: var(--panel-fill); box-shadow: inset 0 0 0 2px var(--edge), inset 0 3px 0 var(--hi), 0 4px 0 var(--lip); animation: rise .35s calc(var(--i) * 35ms) both; }
.fac-h { display: flex; align-items: center; gap: 8px; }
.fac-h b { flex: 1; font-size: 14.5px; }
.fac-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 75%, var(--lip)); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); }
.fac-ic .ic { width: 20px; height: 20px; }
.fac-lv { font-family: var(--f-num); font-size: 22px; }
.fac-lv i { font-style: normal; font-size: 13px; color: var(--dim); }
.fac-pips { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.fac-pips i { height: 6px; border-radius: 3px; background: var(--track); }
.fac-pips i.on { background: var(--c); box-shadow: 0 0 6px color-mix(in srgb, var(--c) 60%, transparent); }
.fac-now { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink); min-height: 34px; }
.fac-next { margin: 0; font-size: 11.5px; line-height: 1.35; color: var(--dim); }
.fac .btn { margin-top: auto; }
.fac .btn .cur-img, .fac .btn .cur-svg svg { width: 18px; height: 18px; }
.coach-list { display: flex; flex-direction: column; gap: 8px; }
.coach-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 18px; background: var(--panel-fill); box-shadow: inset 0 0 0 2px var(--edge), 0 3px 0 var(--lip); }
.coach-row.hired { box-shadow: inset 0 0 0 2.5px var(--hl), 0 3px 0 var(--lip); }
.cr-face { width: 46px; height: 46px; flex: none; border-radius: 14px; overflow: hidden; background: var(--panel-fill); display: flex; align-items: flex-end; }
.cr-face .face { width: 100%; }
.cr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cr-t b { font-size: 14.5px; }
.cr-t em { font-style: normal; font-size: 11.5px; color: var(--mute); }
.cr-w { font-size: 11px; font-weight: 700; opacity: .8; margin-right: 2px; }
.coach-sp { display: flex; align-items: baseline; gap: 8px; margin: 10px 4px 6px; }
.coach-sp b { font-size: 14px; }
.coach-sp span { font-size: 12px; }
.gu-none { margin: 0 4px; font-size: 13px; }
.gu-cele { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 4px 4px; text-align: center; }
.gu-cele-ic { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(180deg, var(--hl-lt), var(--hl)); color: var(--hlink); box-shadow: 0 5px 0 var(--hl2), 0 0 30px color-mix(in srgb, var(--hl) 60%, transparent); }
.gu-cele-ic .ic { width: 40px; height: 40px; }
.gu-cele b { font-size: 24px; }
.gu-cele p { margin: 0 0 8px; color: var(--mute); font-size: 14px; }

/* ---------- 선수 상세: 동작 보기, 성장 그래프, 은퇴 ---------- */
.bd-moves { display: flex; align-items: center; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.bd-moves::-webkit-scrollbar { display: none; }
.bdm-k { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--mute); }
.bdm-k .ic { width: 16px; height: 16px; color: var(--hl); }
.bdm { flex: none; min-height: 40px; padding: 0 12px; border-radius: 13px; font-size: 13px; font-weight: 800; background: var(--track); box-shadow: inset 0 0 0 2px var(--edge), 0 3px 0 var(--lip); white-space: nowrap; }
.bdm:active { transform: translateY(2px); }
.bdm.on { background: linear-gradient(180deg, var(--panel), var(--panel2)); box-shadow: inset 0 0 0 2px var(--hl), 0 3px 0 var(--lip); color: var(--hl-lt); }
.bdm.sig { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--g-s) 60%, transparent), 0 3px 0 var(--lip); color: var(--g-s-lt); }
.bd-retire-alert { margin-top: 10px; }
.wc-req { display: flex; align-items: center; gap: 6px; color: var(--hl-lt); }
.wc-req .ic { width: 16px; height: 16px; flex: none; }
.bd-retire { margin-top: 14px; color: var(--hl-lt); }
.bd-retire .ic { width: 20px; height: 20px; }
.bd-retire-n { text-align: center; margin-top: 14px; }
.wpick .eso.on { box-shadow: inset 0 0 0 2.5px var(--hl), 0 4px 0 var(--lip); }
.gr-spark { position: relative; border-radius: 14px; background: var(--track); box-shadow: inset 0 0 0 2px var(--panel); padding: 8px 10px 4px; }
.gr-spark svg { width: 100%; height: 70px; display: block; }
.sp-line { fill: none; stroke: var(--hl); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.sp-fill { fill: color-mix(in srgb, var(--hl) 14%, transparent); }
.sp-dot { fill: var(--hl-lt); stroke: var(--hlink); stroke-width: 2; }
.gr-spark > span { position: absolute; left: 12px; top: 8px; display: flex; flex-direction: column; line-height: 1.2; }
.gr-spark em { font-style: normal; font-size: 11px; color: var(--mute); }
.gr-spark b { font-family: var(--f-num); font-size: 17px; }
.ret { display: flex; flex-direction: column; gap: 12px; }
.ret-top { display: flex; gap: 12px; align-items: center; }
.ret-face { width: 64px; height: 64px; flex: none; border-radius: 18px; overflow: hidden; background: var(--panel-fill); display: flex; align-items: flex-end; filter: sepia(.5); }
.ret-face .face { width: 100%; }
.ret-top b { display: block; font-size: 19px; }
.ret-top span { font-size: 13px; color: var(--mute); }
.ret-rec { display: flex; gap: 6px; }
.ret-rec > span { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 2px; border-radius: 14px; background: var(--track); box-shadow: inset 0 0 0 2px var(--edge); }
.ret-rec b { font-family: var(--f-num); font-size: 26px; line-height: 1; }
.ret-rec em { font-style: normal; font-size: 11.5px; color: var(--mute); }
.ret-rec .belt { box-shadow: inset 0 0 0 2px var(--gold); }
.rshow { position: absolute; inset: 0; pointer-events: auto; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px;
  background: radial-gradient(80% 60% at 50% 35%, var(--edge), var(--track) 75%); opacity: 0; transition: opacity .4s; text-align: center; }
.rshow.in { opacity: 1; } .rshow.out { opacity: 0; }
.rs-face { width: 200px; height: 220px; border-radius: 26px; overflow: hidden; display: flex; align-items: flex-end; background: var(--panel-fill); box-shadow: 0 0 0 5px var(--sec), 0 10px 0 var(--lip); transition: filter 1.2s; }
.rs-face .face { width: 100%; height: 100%; }
.rs-face .face.img-on { background-size: cover; background-position: center 18%; }
.rshow.fade .rs-face { filter: sepia(.85) contrast(.9) brightness(.92); }
.rs-stamp { margin-top: -40px; padding: 6px 22px; border-radius: 14px; font-size: 30px; font-weight: 900; color: var(--hl-lt); background: var(--hlink); box-shadow: inset 0 0 0 3px var(--hl), 0 6px 0 var(--lip); transform: rotate(-8deg) scale(2); opacity: 0; transition: transform .35s cubic-bezier(.2, 1.6, .4, 1), opacity .2s; }
.rshow.st .rs-stamp { transform: rotate(-8deg); opacity: 1; }
.rs-name { font-size: 24px; }
.rs-rec { display: flex; gap: 18px; font-size: 14px; color: var(--mute); }
.rs-rec b { font-family: var(--f-num); font-size: 34px; color: var(--ink); margin-right: 2px; }
.rs-hall { margin: 0; color: var(--hl-lt); font-weight: 800; }
.rs-coach { display: flex; flex-direction: column; gap: 2px; padding: 12px 22px; border-radius: 20px; background: var(--panel-fill); box-shadow: inset 0 0 0 2px var(--hl), 0 5px 0 var(--lip); opacity: 0; transform: translateY(14px); transition: .45s; }
.rshow.co .rs-coach { opacity: 1; transform: none; }
.rs-coach em { font-style: normal; font-size: 12.5px; color: var(--mute); }
.rs-coach b { font-size: 18px; }
.rs-ok { margin-top: 10px; min-width: 220px; }
.coach-row.former { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--hl) 50%, transparent), 0 3px 0 var(--lip); background: linear-gradient(180deg, var(--panel), var(--panel2)); }
/* 별과 선수 시절 기록: 이름보다 작게, 기록은 한 덩어리로(줄이 바뀌어도 "22승"이 갈라지지 않게) */
.cr-s { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 12.5px; line-height: 1.35; }
.cr-rec { font-style: normal; font-weight: 700; color: var(--ink); white-space: nowrap; }
.cr-tag { font-style: normal; margin-left: 6px; padding: 1px 7px; border-radius: 8px; font-size: 10.5px; font-weight: 900; background: var(--hl); color: var(--hlink); vertical-align: 2px; }
.cr-face .face.img-on, .ret-face .face.img-on { background-size: cover; background-position: center 15%; }
.cr-face .face, .ret-face .face { height: 100%; }

/* ---------- 홈: 내 선수들 ---------- */
.roster { display: flex; flex-direction: column; gap: 8px; }
.ro-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 20px; text-align: left; background: linear-gradient(180deg, var(--acclip), var(--acclip)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--acc) 55%, transparent), 0 4px 0 var(--lip); }
.ro-top.done { background: linear-gradient(180deg, var(--okink), var(--okink)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ok) 45%, transparent), 0 4px 0 var(--lip); }
.ro-top-n { flex: none; min-width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(0, 0, 0, .35); font-size: 13px; color: var(--mute); }
.ro-top-n b { font-family: var(--f-num); font-size: 28px; color: var(--ink); line-height: 1; }
.ro-top-n .ic { width: 26px; height: 26px; color: var(--green); }
.ro-top-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ro-top-t b { font-size: 15px; }
.ro-top-t em { font-style: normal; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-top .btn { pointer-events: none; }
.ro-top .btn .ic { width: 18px; height: 18px; }
.ro { --gc: var(--g-c); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 8px; border-radius: 20px; background: var(--panel-fill); box-shadow: inset 0 0 0 2px var(--edge), 0 3px 0 var(--lip); cursor: pointer; }
.ro.gr-b { --gc: var(--g-b); } .ro.gr-a { --gc: var(--g-a); } .ro.gr-s { --gc: var(--g-s); } .ro.gr-ss { --gc: var(--g-ss); }
.ro:active { transform: scale(.985); }
.ro-face { width: 54px; height: 54px; flex: none; border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--gc) 30%, var(--panel2)); box-shadow: inset 0 0 0 2.5px var(--gc); display: flex; align-items: flex-end; }
.ro-face .face { width: 100%; height: 100%; }
.ro-face .face.img-on { background-size: cover; background-position: center 15%; }
.ro-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ro-t em { font-style: normal; font-size: 11.5px; color: var(--mute); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-t b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-t span { font-size: 12px; color: var(--hl-lt); }
.ro-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ro-ovr { font-family: var(--f-num); font-size: 26px; line-height: 1; }
.ro-st { font-style: normal; font-size: 10.5px; font-weight: 900; padding: 2px 7px; border-radius: 8px; background: var(--panel-fill); color: var(--mute); white-space: nowrap; }
.ro-st.ok { background: var(--okink); color: var(--green); } .ro-st.warn { background: var(--hlink); color: var(--hl-lt); } .ro-st.bad { background: var(--acclip); color: var(--acc-lt); }
.ro-go { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, var(--acc), var(--acc2)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 3px 0 var(--acc2); }
.ro-go:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 1px 0 var(--acc2); }
.ro-go .ic { width: 22px; height: 22px; }

/* ---------- 세계 랭킹 목표, 두 번째 선수 안내, 체육관 등급 그림 ---------- */
.goals.ranked { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--hl) 50%, transparent), inset 0 3px 0 var(--hi), 0 4px 0 var(--lip); }
.goals.ranked .gl-h span { display: inline-flex; align-items: center; gap: 4px; color: var(--hl-lt); font-weight: 800; }
.goals.ranked .gl-h .ic { width: 18px; height: 18px; }
.goals.ranked .gl-sub { margin-top: 6px; }
.cr-face { position: relative; }
.cr-art { z-index: 2; border-radius: inherit; }
.cr-art.img-on { background-size: cover; background-position: center 15%; }
.tasks + .ro-hint, .ro-hint { margin-bottom: 8px; }
.ro-hint { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: color-mix(in srgb, var(--hl) 10%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--hl) 40%, transparent); }
.ro-hint p { flex: 1; margin: 0; font-size: 13px; line-height: 1.45; }
.ro-hint .coach-ic { flex: none; }
.scr-gym { position: relative; }
.home-bg { position: absolute !important; left: 0; right: 0; top: 0; height: 560px; opacity: 0; z-index: 0; }
.home-bg.img-on { opacity: .22; -webkit-mask-image: linear-gradient(180deg, var(--lip) 40%, transparent); mask-image: linear-gradient(180deg, var(--lip) 40%, transparent); }
.scr-gym .home { position: relative; z-index: 1; }
.gu-old { z-index: 1; transition: opacity 1.2s ease, transform 1.4s ease; }
.gu-old.go { opacity: 0; transform: scale(1.06); }
.gu-grow .gu-bg:not(.gu-old) { animation: guZoom 1.4s ease-out; }
@keyframes guZoom { from { transform: scale(.94); filter: brightness(1.6); } }
/* 시설 아이콘 그림: 있으면 선 아이콘 대신. 0단계는 흐리게, 올리면 또렷하게 */
.gf, .fac-ic { position: relative; }
.fac-img { z-index: 1; }
.fac-img.img-on { background-size: 82% auto; background-position: center; background-repeat: no-repeat; }
.fac-img.img-on ~ .ic { visibility: hidden; }
.gf .fac-img.img-on { filter: grayscale(1) brightness(.55); opacity: .7; }
.gf.on .fac-img.img-on { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .5)); opacity: 1; }
.fac-ic .fac-img.img-on { background-size: 90% auto; }
.sb-plus.frac { color: var(--dia-lt); font-size: 13px; }
.trs-pk { margin: 2px 0 0; font-size: 11px; color: var(--dim); text-align: right; }
.trs-note { display: flex; gap: 6px; align-items: flex-start; margin: 0; padding: 8px 10px; border-radius: 12px; background: var(--track); box-shadow: inset 0 0 0 2px var(--edge); font-size: 12.5px; color: var(--mute); text-align: left; }
.trs-note .ic { width: 16px; height: 16px; flex: none; color: var(--hl); }
/* 오늘의 추천 훈련 */
.trrec { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; overflow: hidden; box-shadow: inset 0 0 0 2.5px color-mix(in srgb, var(--c, var(--acc)) 80%, #fff 0%), 0 4px 0 var(--lip), 0 0 22px color-mix(in srgb, var(--c, var(--acc)) 30%, transparent); }
.trrec.rest { --c: var(--dia2); }
.rec-img { opacity: .28; }
.rec-img.img-on { -webkit-mask-image: linear-gradient(90deg, transparent 20%, var(--lip)); mask-image: linear-gradient(90deg, transparent 20%, var(--lip)); }
.rec-t { position: relative; flex: 1; min-width: 0; }
.rec-t em { font-style: normal; font-size: 12px; font-weight: 900; color: var(--hl-lt); }
.rec-t b { display: block; font-size: 22px; line-height: 1.2; }
.rec-t p { margin: 2px 0 0; font-size: 13px; color: var(--ink); line-height: 1.4; }
.trrec .btn { position: relative; flex: none; }
.trrec .btn .ic { width: 18px; height: 18px; }
.tcard.rec { box-shadow: inset 0 0 0 2.5px var(--hl-lt), 0 5px 0 var(--lip), 0 0 16px color-mix(in srgb, var(--hl) 35%, transparent); padding: 10px 10px 12px; }
.tcard.rec::after { content: '추천'; position: absolute; left: 16px; top: 16px; z-index: 3; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 900; background: var(--hl); color: var(--hlink); box-shadow: 0 2px 0 var(--lip); }
.tc-now { display: flex; flex-direction: column; gap: 3px; width: 100%; }
.tcn { display: grid; grid-template-columns: 38px 1fr 30px; align-items: center; gap: 5px; font-size: 11px; }
.tcn em { font-style: normal; color: var(--mute); font-weight: 700; }
.tcn-bar { display: block; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.tcn-bar b { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--ok-lt), var(--ok2)); }
.tcn-bar b.low { background: linear-gradient(90deg, var(--danger-lt), var(--danger)); }
.tcn u { text-decoration: none; font-family: var(--f-num); font-size: 13px; text-align: right; }
.bd-balance { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; padding: 9px 11px; border-radius: 14px; background: color-mix(in srgb, var(--hl) 10%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--hl) 40%, transparent); font-size: 13px; line-height: 1.45; width: 100%; }
.bd-balance .ic { width: 17px; height: 17px; flex: none; color: var(--hl); margin-top: 1px; }

/* ================= 가로 배치(docs/UI-LANDSCAPE.md) ================= */
/* ---------- 홈: 왼쪽 무대, 오른쪽 정보와 행동 ---------- */
.scr-gym.fit > .home { height: 100%; }
.home.ls-split { gap: var(--gap); }
.home.sk.ls-split > div { height: 100%; }
.hm-left { overflow: hidden; }
.hm-left .hm-star { flex: 1; height: auto; min-height: 0; }
.hm-left .hm-ring { left: 50%; right: auto; top: 50%; width: 120%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); }
.hm-left .hm-stage { right: 0; left: 0; width: 100%; }
.hm-left .hm-stage .sil { width: 78%; }
.hm-left .shadow3d { -webkit-mask-image: none; mask-image: none; }
.hm-left .hm-info { left: 14px; right: 14px; top: 12px; bottom: 12px; width: auto; pointer-events: none; }
.hm-left .hm-ovr b { font-size: 52px; }
.hm-left .hm-name { font-size: 19px; max-width: 70%; }
.hm-left .hm-sub { max-width: 70%; }
.hm-left .hm-bars { padding: 10px 12px; margin: auto -14px -12px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--lip) 85%, transparent) 40%); }
.hm-right .ls-scroll { gap: 10px; }
.hm-right .sec-h { margin: 6px 4px 0; }
.hm-right .panel + .panel { margin-top: 0; }
.hm-right .hm-squad { margin: 0; padding: 2px 2px 6px; }
.hm-right .hm-squad .bcard, .hm-right .hm-more { width: 96px; }
.hm-right .hm-tile > b { font-size: 28px; }
.hm-acts.ls-bar .btn { min-height: 56px; font-size: 18px; }
.home-bg { height: 100% !important; }
.home-bg.img-on { -webkit-mask-image: linear-gradient(90deg, transparent 30%, var(--lip) 70%); mask-image: linear-gradient(90deg, transparent 30%, var(--lip) 70%); opacity: .14; }

/* ---------- 영입: 왼쪽 배너와 천장, 오른쪽 확률·체육관 추천·영입 단추 ---------- */
.scr-recruit.fit > .rec { height: 100%; }
.rec.ls-split { gap: var(--gap); }
.rec-left { overflow: hidden; }
.rec-left .rec-banner { flex: 1; height: auto; min-height: 0; }
.rec-left .rb-cards { top: 50%; transform: translateY(-62%); }
.rec-left .rb-t span { max-width: 62%; }
.rec-right .ls-scroll { gap: 10px; }
.rec-right .pull-btns { display: flex; }
.rec-right .pull-btns .btn { min-height: 74px; }
.rec-right .pull-btns .pull10 { flex: 1.25; }
@media (max-height: 380px) { .rec-left .pity { padding: 9px 12px; } .rec-right .pull-btns .btn { min-height: 64px; } }

/* ---------- 선수단: 왼쪽 인원과 체급 대표, 오른쪽 보기 기준·체급·정렬·카드 격자 ---------- */
.scr-squad.fit > .squad { height: 100%; gap: var(--gap); }

.sl-o { flex: none; font-family: var(--f-num); font-size: 20px !important; }

/* ---------- 선수 상세: 왼쪽 무대 칸(3D와 이름), 오른쪽 탭 칸 ---------- */
.scr-boxer.fit > .bdet { height: 100%; gap: var(--gap); }

.bd-statrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; }

.bd-capsum { margin: 6px 0 0; font-size: 12px; color: var(--mute); }
.bd-capsum b { font-family: var(--f-num); font-size: 15px; color: var(--ink); }

@media (max-width: 760px) { .bd-statrow { grid-template-columns: 1fr; justify-items: center; } }

/* ---------- 훈련: 왼쪽 선수 고르기와 기력·피로, 오른쪽 추천과 훈련 카드 ---------- */
.scr-train.fit > .train { height: 100%; gap: var(--gap); }
.tr-left { gap: 8px; }
.tr-left .tr-pick { flex: 1 1 auto; min-height: 0; flex-direction: column; overflow-x: hidden; overflow-y: auto; margin: 0; padding: 2px 2px 6px; }
.tr-left .tp { width: 100%; min-height: 52px; }
.tr-left .tp-t { min-width: 0; }
.tr-left .tp-t b, .tr-left .tp-t em { overflow: hidden; text-overflow: ellipsis; display: block; }
.tr-left .tr-status { flex: none; padding: 10px 12px; gap: 6px; }
.tr-left .ts-rest { width: 100%; }
.tr-left .lowe { flex: none; }
.tr-right .ls-scroll { gap: 10px; }
.tr-right .tr-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tr-right .panel + .panel { margin-top: 0; }

/* ---------- 체육관 키우기: 왼쪽 그림과 등급, 오른쪽 시설·코치 탭 ---------- */
.scr-gymup.fit > .gymup { height: 100%; gap: var(--gap); }
.gu-left { gap: 10px; }
.gu-left .gu-hero { flex: 1 1 auto; min-height: 150px; height: auto; }
.gu-left .gu-info { top: 12px; bottom: auto; }
.gu-left .gu-floor { bottom: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 8px; }
.gu-left .gf { aspect-ratio: auto; height: 40px; }
.gu-left .gf u { font-size: 11px; margin-top: 2px; }
/* 짓지 않은 시설: 점선 대신 두께 있는 흐린 테두리 */
.gf { outline: none; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--ink) 14%, transparent); }
.gu-left .gu-grade { flex: none; padding: 10px 12px; }
.gu-left .gu-steps b { font-size: 11px; } .gu-left .gu-steps em { font-size: 10.5px; }
.gu-right { gap: 8px; }
.gu-right .ls-scroll { gap: 10px; }
.gu-pane[hidden] { display: none; }
.gu-pane { display: flex; flex-direction: column; gap: 10px; }
.gu-pane > .sec-h:first-child { margin-top: 2px; }
.gu-right .fac-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.bd-nums { display: flex; flex-direction: column; gap: 1px; padding-top: 2px; }
.bd-nums .rd-legend { justify-content: flex-start; margin-bottom: 4px; }
.bn { display: grid; grid-template-columns: 52px 30px 1fr; align-items: baseline; gap: 4px; min-height: 19px; }
.bn em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--mute); }
.bn b { font-family: var(--f-num); font-size: 17px; text-align: right; }
.bn i { font-style: normal; font-family: var(--f-num); font-size: 13px; color: var(--mute); }

/* ---------- 시작: 이름(왼쪽 로고, 오른쪽 입력), 체육관 고르기(두 줄 격자), 첫 선수(왼쪽 카드, 오른쪽 정보와 단추) ---------- */
.st-wrap { min-height: 100dvh; padding: calc(14px + var(--safe-t)) calc(20px + var(--safe-r)) calc(14px + var(--safe-b)) calc(20px + var(--safe-l)); }
.st-wrap:not(.st-pick):not(.st-first) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; height: 100dvh; }
.st-wrap:not(.st-pick):not(.st-first) .st-hero { min-height: 0; }
.st-wrap .st-glove { width: 76px; height: 76px; }
.st-wrap .st-logo b { font-size: 36px; }
.st-pick .gym-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.st-pick .gym-tile { min-height: 76px; }
.gs > [data-join] { position: sticky; bottom: 0; z-index: 2; margin-top: 4px; }
.gs { display: flex; flex-direction: column; gap: 10px; }
.st-first { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "head head" "card info" "card go"; align-items: center; column-gap: 28px; row-gap: 10px; height: 100dvh; align-content: center; }
.st-first .st-head { grid-area: head; }
.st-first .flip { grid-area: card; width: calc((100dvh - 120px) * .711); max-width: 220px; margin: 0; }
.st-first .st-first-info { grid-area: info; align-self: end; }
.st-first [data-go] { grid-area: go; align-self: start; max-width: 360px; justify-self: end; }

/* ---------- 은퇴 연출: 왼쪽 빛바랜 초상, 오른쪽 전적과 코치 카드, 확인은 오른쪽 아래 ---------- */
.rshow { max-width: none; display: grid; grid-template-columns: auto minmax(0, 360px); grid-template-areas: "face name" "face rec" "face hall" "face coach" "face ok"; justify-content: center; align-content: center; column-gap: 32px; row-gap: 8px;
  padding: calc(14px + var(--safe-t)) calc(24px + var(--safe-r)) calc(14px + var(--safe-b)) calc(24px + var(--safe-l)); }
.rshow .rs-face { grid-area: face; width: min(220px, calc((100vh - 60px) * .9)); height: min(240px, calc(100vh - 60px)); align-self: center; }
.rshow .rs-stamp { grid-area: face; align-self: end; justify-self: center; margin: 0 0 18px; }
.rshow .rs-name { grid-area: name; }
.rshow .rs-rec { grid-area: rec; }
.rshow .rs-hall { grid-area: hall; }
.rshow .rs-coach { grid-area: coach; justify-self: start; }
.rshow .rs-ok { grid-area: ok; justify-self: end; margin-top: 4px; }

/* 3D 칸의 동작 이름표는 이름·전적 글자와 겹치지 않게 오른쪽 위로 */
.bdet .m3d-shcap, .hm-left .m3d-shcap { left: auto; right: 10px; top: 10px; bottom: auto; }

/* 프로필 머리: 이름 줄을 맨 위 한 줄로, 그 아래 지금·잠재 상자(좁은 화면에서도 이름이 세로로 쪼개지지 않게) */
.pp-head { flex-wrap: wrap; row-gap: 6px; }

/* 선수 상세 무대(밤 경기장 2차): 등급 색이 번진 뜬 판 위에 초상이 주인공. 종합은 왼쪽 위 크게, 이름·딱지는 아래 띠. 3D는 동작 단추를 누르면 */
.bdet .bd-hero { background: none; }

.bd-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.bd-chips .chip { font-style: normal; }

.tb-title small { font: 700 12px/1 var(--f-body); color: var(--mute); margin-left: 8px; letter-spacing: 0; }
.hm-acts.ls-bar .btn.pri { flex: 1.6; }

/* 배경 그림(체육관·영입 장면)은 갈색 톤이라 밤 경기장 바탕에 맞게 채도와 밝기를 낮춘다. 선수 초상에는 쓰지 않는다 */
.rb-bg.img-on, .pr-bg.img-on, .home-bg.img-on, .hm-bg.img-on, .gu-bg.img-on, .st-bg.img-on, .rec-img.img-on, .tc-img.img-on { filter: saturate(.45) brightness(.82) contrast(1.05); }

/* ---------- 선수 상세 개편: 왼쪽 누구인가, 오른쪽 탭마다 한 목적 ---------- */
.bdet .bd-info { padding: 12px 14px 14px; }

.bd-mbar { height: 8px; }

/* 영입 결과 프로필(개편): 큰 숫자 둘, 스타일 한 줄, 핵심 셋, 더 보기 */
.pr.done .pr-prof { gap: 12px; padding: 14px 16px; justify-content: flex-start; }

.kv b { overflow-wrap: normal; }

.hm-sub { display: flex; align-items: center; gap: 8px; }
.hm-tier { padding: 1px 8px; border-radius: 10px; font-size: var(--fs-cap); font-weight: 800; background: color-mix(in srgb, var(--ink) 10%, transparent); }

/* 경기 상대 비교: 내 선수는 늘 홍 코너(빨강), 상대는 청 코너(파랑) */
.rdr.corners .rd-cur { fill: color-mix(in srgb, var(--cr) 30%, transparent); stroke: var(--cr); }
.rdr.corners .rd-dot { fill: var(--cr); }
.rdr.corners .lg-cur { background: color-mix(in srgb, var(--cr) 40%, transparent); box-shadow: inset 0 0 0 2.5px var(--cr); }
.rdr.corners .rd-cmp { stroke: var(--cb); fill: color-mix(in srgb, var(--cb) 26%, transparent); }

/* ================= UI 개편 2차: 선수 카드, 선수단, 선수 상세, 영입 결과(uilead, 2026-11-19) =================
   대표: "피파 같이해", "잠재력은 그냥 등급으로 표현하면 될거 같은데", "글씨도 버튼 아래로 막 내려가고 이상하잖아".
   카드가 주인공, 큰 종합 숫자와 등급 딱지, 화면당 정보는 적게, 한 화면 한 행동. 잠재력 숫자는 어디에도 쓰지 않는다.
   옛 클래스(.bcard, .squad, .bdet, .pr)와 섞이지 않게 새 이름(.pcard, .sq2, .pd, .rv)만 쓴다 */

/* ---------- 선수 카드(.pcard): 글자 크기는 카드 폭(cqw)을 따른다 ---------- */
.pcard { --gc: var(--g-c); position: relative; display: block; width: 100%; aspect-ratio: .72; padding: 0; border: 0; background: none; text-align: left; color: var(--ink);
  container-type: inline-size; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s; }
.pcard:active { transform: translateY(2px) scale(.985); }
.pc-in { position: absolute; inset: 0; }
.pc-frame { position: absolute; left: 0; right: 0; top: 7%; bottom: 0; border-radius: 9cqw; border: 3px solid transparent;
  background: radial-gradient(85% 55% at 50% 30%, color-mix(in srgb, var(--gc) 34%, var(--s2a)), var(--s1b) 78%) padding-box,
    linear-gradient(165deg, color-mix(in srgb, var(--gc) 85%, #fff), color-mix(in srgb, var(--gc) 50%, #000) 55%, color-mix(in srgb, var(--gc) 85%, #fff)) border-box;
  box-shadow: 0 4px 0 var(--lip), 0 14px 22px -10px var(--shc), 0 0 24px -10px color-mix(in srgb, var(--gc) 70%, transparent); }
/* 은은한 점 무늬(등급 색) */
.pc-frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(color-mix(in srgb, var(--gc) 26%, transparent) 1px, transparent 1.6px); background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); pointer-events: none; }
.pc-face { position: absolute; left: 3px; right: 3px; top: calc(7% + 3px); bottom: 20%; overflow: hidden; border-radius: calc(9cqw - 3px) calc(9cqw - 3px) 0 0; }
.pc-face .face { position: absolute; inset: 0; height: 100%; width: 100%; }
.pc-face .face.img-on { background-size: cover; background-position: center 14%; -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 100%); mask-image: linear-gradient(180deg, #000 68%, transparent 100%); border-radius: 0; }
.pc-face .face .sil { position: absolute; left: 10%; right: 10%; bottom: 0; width: 80%; }
/* 바탕 없는 초상: 머리가 카드 틀 위로 나온다 */
.pc-face:has(.face.cut) { top: 0; left: 0; right: 0; overflow: visible; border-radius: 0; }
.pc-face .face.cut { background-size: auto 100%; background-position: center bottom; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }
.pc-grade { position: absolute; left: 6cqw; top: calc(7% + 6cqw); z-index: 2; display: grid; place-items: center; min-width: max(26px, 19cqw); height: max(22px, 16cqw); padding: 0 3cqw; border-radius: max(7px, 5cqw);
  font: 800 max(15px, 12.5cqw)/1 var(--f-num); color: var(--grink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--gc) 55%, #fff), var(--gc) 52%, color-mix(in srgb, var(--gc) 78%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 0 color-mix(in srgb, var(--gc) 30%, #000), 0 4px 10px rgba(0, 0, 0, .35); }
.pc-lead { position: absolute; right: 5cqw; top: calc(7% + 6cqw); z-index: 2; display: inline-grid; place-items: center; width: max(22px, 14cqw); height: max(22px, 14cqw); padding: 0;
  border-radius: 50%; font-size: 0; white-space: nowrap; color: var(--goldink); background: linear-gradient(180deg, var(--gold-lt), var(--gold)); box-shadow: 0 2px 0 var(--goldlip); }
.pc-lead .ic { width: 62%; height: 62%; }
.pc-st { position: absolute; right: 5cqw; bottom: calc(20% + 4cqw); z-index: 2; height: max(22px, 13cqw); display: inline-flex; align-items: center; padding: 0 max(6px, 3.5cqw); border-radius: 999px;
  font-size: clamp(12px, 7.5cqw, 13px); font-weight: 800; white-space: nowrap; color: var(--ink); background: color-mix(in srgb, var(--lip) 75%, transparent); box-shadow: inset 0 0 0 2px var(--edge); }
.pc-st.inj { color: #fff; background: color-mix(in srgb, var(--danger) 70%, #000); box-shadow: none; }
.pc-foot { position: absolute; left: 3px; right: 3px; bottom: 3px; z-index: 1; display: flex; align-items: flex-end; gap: 3cqw; padding: 10cqw 6cqw 5cqw;
  border-radius: 0 0 calc(9cqw - 3px) calc(9cqw - 3px); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--s1b) 92%, transparent) 38%, var(--s1b)); }
.pc-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pc-name { display: block; font-family: var(--f-disp); font-weight: 400; font-size: clamp(12px, 10.5cqw, 21px); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.pc-meta { display: block; font-style: normal; font-size: clamp(12px, 7.5cqw, 14px); font-weight: 700; line-height: 1.2; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-ovr { flex: none; font: 800 clamp(22px, 25cqw, 54px)/.82 var(--f-num); letter-spacing: -.5px; color: var(--ink); text-shadow: 0 2px 0 rgba(0, 0, 0, .45), 0 0 12px rgba(0, 0, 0, .4); }
/* 아주 작은 카드(폭 110px 아래): 체급 줄을 빼고 이름과 숫자만 */
@container (max-width: 110px) { .pc-meta { display: none; } .pc-foot { padding-top: 8cqw; justify-content: flex-end; } }
/* 10연 결과처럼 더 작은 카드(폭 100px 아래): 이름은 옆 요약에 크게 나오므로 카드에는 등급과 종합만 */
@container (max-width: 100px) { .pc-id { display: none; } }
.pcard.gr-s .pc-frame, .pcard.gr-ss .pc-frame { overflow: hidden; }
.pcard.gr-s .pc-frame::before, .pcard.gr-ss .pc-frame::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 48%, transparent 60%); background-size: 260% 100%; animation: shine 3.4s ease-in-out infinite; }
.flip-front .pcard { height: 100%; aspect-ratio: auto; }
.hm-squad .pcard { flex: none; width: 104px; scroll-snap-align: start; }

/* ---------- 선수단(.sq2): 위 줄 하나와 큰 카드 한 줄 ---------- */
.sq2 { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.sq2-bar { flex: none; display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 0; }
.sq2-wc { flex: 1 1 auto; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent); }
.sq2-wc::-webkit-scrollbar, .sq2-row::-webkit-scrollbar { display: none; }
.sq2-wc button { position: relative; flex: none; height: 40px; padding: 0 14px; border-radius: 13px; font-size: 14px; font-weight: 800; white-space: nowrap; color: var(--mute); background: var(--well); box-shadow: var(--well-sh); }
.sq2-wc button:last-child { margin-right: 16px; }
.sq2-wc button.on { color: var(--selink); background: var(--sel); box-shadow: inset 0 1.5px 0 #fff, 0 3px 0 var(--lip); }
.sq2-sort, .sq2-cnt { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 13px; white-space: nowrap; font-size: 14px; font-weight: 800; color: var(--ink);
  background: var(--btn-fill); box-shadow: var(--sec-sh); }
.sq2-sort .ic { width: 17px; height: 17px; color: var(--mute); }
.sq2-cnt { gap: 1px; padding: 0 8px 0 12px; }
.sq2-cnt b { font-size: 19px; } .sq2-cnt i { font-style: normal; font-size: 15px; color: var(--mute); }
.sq2-cnt .ic { width: 16px; height: 16px; margin-left: 6px; color: var(--mute); }
.sq2-cnt.full b { color: var(--danger); }
.sq2-sort::after, .sq2-cnt::after, .sq2-wc button::after { content: ''; position: absolute; top: -2px; bottom: -2px; left: 0; right: 0; }
.sq2-rec { flex: none; min-width: 76px; height: 40px; min-height: 40px; }
.sq2-rec::after { content: ''; position: absolute; top: -2px; bottom: -2px; left: 0; right: 0; }
.sq2-row { flex: 1 1 auto; min-height: 0; display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 4px 10px; margin: 0 -4px; overscroll-behavior-x: contain; }
.sq2-it { flex: none; height: 100%; aspect-ratio: .72; scroll-snap-align: start; animation: rise .35s calc(min(var(--i, 0), 8) * 40ms) both; }
.sq2-it .pcard { height: 100%; width: 100%; aspect-ratio: auto; }
.sq2-empty { height: calc(100% - 7%); margin-top: 7%; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 20px; color: var(--mute);
  background: var(--well); box-shadow: var(--well-sh); }
.sq2-empty .ic { width: 34px; height: 34px; padding: 6px; border-radius: 50%; color: var(--ink); background: var(--btn-fill); box-shadow: var(--sec-sh); }
.sq2-empty b { font-size: 15px; color: var(--ink); } .sq2-empty em { font-style: normal; font-size: 12.5px; }
.sq2-sorts { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.sq2-sorts button { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 16px; border-radius: 14px; font-size: 15px; font-weight: 800; color: var(--ink); background: var(--surf-2); box-shadow: inset 0 1.5px 0 var(--hi2), 0 3px 0 var(--lip); }
.sq2-sorts button.on { color: var(--selink); background: var(--sel); }
.sq2-sorts .ic { width: 20px; height: 20px; }
.modal.narrow { width: min(420px, 100%); }

/* ---------- 선수 상세(.pd): 왼쪽 무대, 오른쪽 탭 셋과 훈련 ---------- */
.pd { height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: var(--gap); }
.pd-stage { --gc: var(--g-c); position: relative; min-height: 0; overflow: hidden; border-radius: var(--r-panel); border: var(--rim) solid transparent;
  background: radial-gradient(70% 60% at 62% 38%, color-mix(in srgb, var(--gc) 32%, transparent), transparent 70%) padding-box, var(--surf-2) padding-box,
    linear-gradient(170deg, color-mix(in srgb, var(--gc) 70%, var(--rimhi)), var(--rimlo) 70%) border-box; box-shadow: var(--sh-2); }
.pd-glow { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(color-mix(in srgb, var(--gc) 20%, transparent) 1px, transparent 1.6px); background-size: 7px 7px;
  -webkit-mask-image: radial-gradient(60% 60% at 62% 40%, #000, transparent); mask-image: radial-gradient(60% 60% at 62% 40%, #000, transparent); }
.pd-face { position: absolute; right: -2%; top: 4%; bottom: 0; width: 80%; }
.pd-face .face { position: absolute; inset: 0; height: 100%; width: 100%; }
.pd-face .face.img-on { background-size: cover; background-position: center 18%; border-radius: 0;
  -webkit-mask-image: radial-gradient(75% 85% at 50% 40%, #000 55%, transparent 80%) !important; mask-image: radial-gradient(75% 85% at 50% 40%, #000 55%, transparent 80%) !important; }
.pd-face .face.cut { background-size: auto 100%; background-position: center bottom; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent) !important; mask-image: linear-gradient(180deg, #000 78%, transparent) !important; }
.pd-face .face .sil { position: absolute; left: 6%; right: 6%; bottom: 0; width: 88%; }
.pd-stage.show3d .pd-face .face { opacity: 0; }
.pd-top { position: absolute; left: 14px; top: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pd-ovr { display: flex; flex-direction: column; align-items: flex-start; }
.pd-ovr b { font-size: 64px; line-height: .82; font-weight: 800; text-shadow: 0 3px 0 rgba(0, 0, 0, .45), 0 0 18px rgba(0, 0, 0, .45); }
.pd-ovr em, .pd-grade em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--mute); white-space: nowrap; }
.pd-grade { display: flex; align-items: center; gap: 6px; }
.pd-grade .gchip { --gc: inherit; height: 30px; min-width: 38px; font-size: 21px; border-radius: 10px; }
.pd-lead { position: absolute; right: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 900; white-space: nowrap;
  color: var(--goldink); background: linear-gradient(180deg, var(--gold-lt), var(--gold)); box-shadow: 0 2px 0 var(--goldlip); }
.pd-lead .ic { width: 14px; height: 14px; }
.pd-id { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 3px; padding: 36px 14px 12px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--s2b) 90%, transparent) 45%, var(--s2b)); }
/* 선수 이름은 잘리면 안 된다: 두 줄까지 낱말 단위로 꺾고 긴 이름은 글자를 줄인다 */
.pd-name { font-family: var(--f-disp); font-weight: 400; font-size: 24px; line-height: 1.15; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.pd-name.long { font-size: 20px; }
.pd-meta { font-size: 13px; font-weight: 700; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-right { min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 12px; }
.pd-head { flex: none; display: flex; align-items: center; gap: 8px; min-width: 0; }
.pd-tabs { flex: 1 1 auto; min-width: 0; }
.pd-tabs button { font-size: 14.5px; white-space: nowrap; }
.pd-more { flex: none; white-space: nowrap; min-width: 76px; }
.pd-scroll { flex: 1 1 auto; min-height: 0; }
.pd-scroll.t-stats { overflow: hidden; padding-bottom: 8px; }
.pd-stats { flex: 1 1 auto !important; min-height: 0; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 36%); gap: 12px; align-items: center; }
.pd-radar { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pd-m { display: flex; flex-direction: column; gap: 5px; }
.pd-m span { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.pd-m em { font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--mute); white-space: nowrap; }
.pd-m b { font-size: 21px; line-height: 1; }
.pd-m .bar { display: block; height: 8px; border-radius: 4px; overflow: hidden; }
.pd-m .bar b { display: block; height: 100%; border-radius: 4px; background: linear-gradient(180deg, var(--ok-lt), var(--ok)); }
.pd-m .bar b.tired { background: linear-gradient(180deg, var(--sechi), var(--stat)); }
.pd-m .bar b.low { background: linear-gradient(180deg, var(--danger-lt), var(--danger)); }
.pd-inj { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--danger-lt); }
.pd-inj .ic { width: 16px; height: 16px; flex: none; }
.pd-rec { display: flex; flex-direction: column; gap: 2px; }
.pd-rec em { font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--mute); }
.pd-rec b { font-size: 16px; font-weight: 800; white-space: nowrap; }
.pd-bar { flex: none; display: flex; justify-content: flex-end; }
.pd-bar .btn { flex: 0 0 42%; min-width: 160px; white-space: nowrap; }
/* 능력 탭: 그래프가 칸 높이 전체를 쓰고, 훈련 단추는 오른쪽 칸 아래(다른 탭과 같은 자리) */
.pd-stats .pd-side { align-self: stretch; }
.pd-side .pd-train { margin-top: auto; width: 100%; }
.pd-grade em, .pd-ovr em { text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
/* 낮은 화면: 오른쪽 칸을 줄여 그래프와 훈련 단추가 다 보이게 */
@media (max-height: 400px) { .pd-side { gap: 8px; } .pd-m b { font-size: 18px; } .pd-rec { display: none; } .pd-side .pd-train { min-height: 50px; font-size: 16px; } .pd-right { padding: 8px 10px 10px; gap: 8px; } }
.pm-list { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.pm-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: 14px; text-align: left; color: var(--ink); background: var(--surf-2); box-shadow: inset 0 1.5px 0 var(--hi2), 0 3px 0 var(--lip); }
.pm-row > .ic { flex: none; width: 22px; height: 22px; color: var(--mute); }
.pm-row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pm-row b { font-size: 15px; font-weight: 800; }
.pm-row em { font-style: normal; font-size: 12.5px; color: var(--mute); }
.pm-row.danger b, .pm-row.danger > .ic { color: var(--danger-lt); }
.pm-row[disabled] { opacity: .55; }

/* ---------- 영입 결과(.rv) ---------- */
.rv { position: absolute; inset: 0; pointer-events: auto; overflow: hidden; display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "cards" "bot";
  padding: calc(10px + var(--safe-t)) calc(14px + var(--safe-r)) calc(10px + var(--safe-b)) calc(14px + var(--safe-l));
  background: radial-gradient(80% 80% at 50% 40%, var(--bg2), var(--bg) 75%); opacity: 0; transition: opacity .3s;
  --cw: min(116px, calc((100vh - 112px) / 2 * .72)); }
.rv.in { opacity: 1; } .rv.out { opacity: 0; }
.rv-bg { position: absolute; inset: 0; z-index: 0; }
.rv-bg.img-on { opacity: .22; background: var(--img) center / cover no-repeat; filter: saturate(.6); }
.rv > :not(.rv-bg):not(.rv-beam) { position: relative; z-index: 1; }
.rv-beam { position: absolute; left: 50%; top: -10%; width: 40%; height: 120%; transform: translateX(-50%); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 0; }
.rv.flash-s .rv-beam { opacity: 1; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--g-s) 55%, transparent), transparent); }
.rv.flash-ss .rv-beam { opacity: 1; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--g-ss) 60%, transparent), transparent); }
.rv.shake { animation: shake .45s; }
.rv-cards { grid-area: cards; min-height: 0; display: flex; align-items: center; justify-content: center; }
.rv-grid { display: grid; grid-template-columns: repeat(5, var(--cw)); gap: 8px; }
.rv.one .rv-grid { grid-template-columns: auto; }
.rv .pf { width: var(--cw); max-width: none; margin: 0; cursor: pointer; transition: transform .2s; animation: dropIn .45s calc(var(--i) * 70ms) cubic-bezier(.2, 1.3, .4, 1) both; }
.rv .flip-in { aspect-ratio: .72; }
.rv .flip-back { border-radius: 9cqw; }
.rv .pf { container-type: inline-size; }
.rv.one { --cw: min(240px, calc((100vh - 110px) * .72)); }
.rv-chart, .rv-info { display: none; }
.rv-bot { grid-area: bot; align-self: end; display: flex; justify-content: flex-end; gap: 10px; }
.rv-bot .btn[hidden], .rv-cmp[hidden] { display: none; }
.rv-all { min-width: 140px; white-space: nowrap; }
/* 다 열린 뒤 */
.rv.done .rv-chart, .rv.done .rv-info { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-radius: var(--r-panel); border: var(--rim) solid transparent;
  background: var(--top-light) padding-box, var(--surf-1) padding-box, var(--rim-grad) border-box; box-shadow: var(--sh-1); animation: profIn .45s .05s cubic-bezier(.2, 1, .3, 1) both; }
.rv.one.done { --cw: min(250px, calc((100vh - 24px) * .72), 30vw); grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "cards chart info" "cards chart bot"; }
.rv.ten.done { --cw: min(calc((100vh - 52px) / 2 * .72), calc((100vw - 340px) / 5 - 7px)); grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "cards info" "cards chart" "cards bot"; }
.rv.ten.done .rv-grid { gap: 7px; }
.rv.ten.done .pf.sel { transform: translateY(-5px); }
.rv.ten.done .pf.sel .flip-front .pc-frame { box-shadow: 0 0 0 3px var(--sel), 0 0 18px color-mix(in srgb, var(--sel) 55%, transparent); }
.rv-chart { grid-area: chart; position: relative; padding: 6px; }
.rv-info { grid-area: info; }
.rv-rd { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rv-bot .rv-cmp { flex: 0 0 auto !important; min-height: 58px; padding: 0 16px; white-space: nowrap; }
.rv-cmp.on { color: var(--selink); background: var(--sel); }
.rv-info { gap: 6px; padding: 12px 14px; overflow-y: auto; scrollbar-width: none; }
.rv-info::-webkit-scrollbar { display: none; }
.rv-name { font-family: var(--f-disp); font-weight: 400; font-size: 24px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-meta { font-size: 13px; font-weight: 700; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-gym { display: flex; flex-direction: column; gap: 2px; padding: 8px 0 2px; }
.rv-gym b { font-size: 14px; font-weight: 800; }
.rv-gym span { font-size: 13px; color: var(--mute); line-height: 1.4; }
.rv-info .kv { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 4px; }
.rv-more { align-self: flex-start; white-space: nowrap; }
/* 1회 결과 정보판: 이름 묶음, 체육관, 핵심 셋, 더 보기가 위에서 아래로 고르게 */
.rv.one.done .rv-info { justify-content: space-between; padding: 14px 16px; }
.rv.one.done .rv-info .rv-gym { padding: 0; }
.rv-nums { display: flex; align-items: center; gap: 6px; }
.rv-nums b { font-size: 40px; line-height: .85; font-weight: 800; }
.rv-nums em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--mute); margin-right: 8px; }
.rv-nums .gchip { height: 28px; min-width: 34px; font-size: 19px; }
.rv.ten.done .rv-info { flex-direction: column; }
.rv.ten.done .rv-gym, .rv.ten.done .rv-more { display: none; }
.rv.done .rv-bot .btn { flex: 1; }
.rv-ok { white-space: nowrap; }
/* 낮은 화면(높이 400 아래): 10연 요약은 이름과 숫자만 */
@media (max-height: 400px) { .rv.ten.done .rv-meta { display: none; } .rv.ten.done .rv-info { padding: 8px 12px; gap: 4px; } .rv-name { font-size: 21px; } }

/* ---------- 홈 대표 선수 무대(UI 개편 2차): 선수 상세 무대와 같은 글자 배치. 컨디션·피로 막대는 선수 정보로 옮겼다 ---------- */
.hm-left .hm-info.hs-info { left: 0; right: 0; top: 0; bottom: 0; display: block; }
.hs-info .pd-top { left: 14px; top: 12px; }
.hs-info .pd-ovr b { font-size: 56px; }
.hs-info .pd-id { padding-top: 44px; }
/* 글자 하한: 이름표 11px, 숫자 끊김 없음 */
.sq-leaders .sl em { font-size: 11.5px; }
.gu-left .gu-steps em, .mp i { font-size: 11px; }
.pb-c, .pb-c b { white-space: nowrap; }
.pb-c { white-space: normal; flex-wrap: wrap; justify-content: center; row-gap: 0; }
.rec-right .pull-btns .btn { min-width: 0; }

/* ---------- 홈(.hm2, UI 개편 2차): 왼쪽 큰 초상 장면, 오른쪽 다음 경기·승격 진행·바로 가기·주 단추 ---------- */
.hm2 { height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 52%) minmax(0, 1fr); gap: var(--gap); }
.hm2-stage { --gc: var(--g-c); position: relative; min-height: 0; overflow: hidden; display: block; text-align: left; color: var(--ink); border-radius: var(--r-panel); border: var(--rim) solid transparent;
  background: var(--surf-2) padding-box, linear-gradient(170deg, color-mix(in srgb, var(--gc) 70%, var(--rimhi)), var(--rimlo) 70%) border-box; box-shadow: var(--sh-2); }
.hm2-bg { position: absolute; inset: 0; }
.hm2-bg.img-on { background: var(--img) center / cover no-repeat; filter: saturate(.55) brightness(.55); }
.hm2-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--s2b) 85%, transparent), transparent 55%), linear-gradient(0deg, var(--s2b), transparent 40%); }
.hm2-glow { position: absolute; right: -10%; top: 0; width: 85%; height: 110%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gc) 42%, transparent), transparent 80%); pointer-events: none; }
.hm2-face { position: absolute; right: -4%; top: 3%; bottom: 0; width: 74%; }
.hm2-face .face { position: absolute; inset: 0; height: 100%; width: 100%; }
.hm2-face .face.img-on { background-size: cover; background-position: center 15%; -webkit-mask-image: radial-gradient(75% 85% at 50% 40%, #000 55%, transparent 80%); mask-image: radial-gradient(75% 85% at 50% 40%, #000 55%, transparent 80%); }
.hm2-face .face.cut { background-size: auto 100%; background-position: center bottom; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent);
  filter: drop-shadow(0 0 2px color-mix(in srgb, var(--gc) 80%, #fff)) drop-shadow(-10px 8px 16px rgba(0, 0, 0, .55)); }
.hm2-face .face .sil { position: absolute; left: 8%; width: 84%; bottom: 0; }
.hm2-stage .pd-top { position: absolute; left: 14px; top: 12px; z-index: 2; }
.hm2-stage .pd-ovr b { font-size: 58px; }
.hm2-stage .pd-id { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 14px 12px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--s2b) 88%, transparent) 50%); }
.hm2-right { min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.hm2-card { position: relative; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 10px 16px; text-align: left; color: var(--ink); border-radius: var(--r-panel);
  border: var(--rim) solid transparent; background: var(--top-light) padding-box, var(--surf-1) padding-box, var(--rim-grad) border-box; box-shadow: var(--sh-1); }
.hm2-k { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hm2-k > .ic { flex: none; width: 20px; height: 20px; color: var(--mute); }
.hm2-k > b { flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm2-k > em { flex: none; font-style: normal; font-size: 13px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.hm2-left b { font-size: 24px; color: var(--stat); margin-right: 2px; }
.hm2-cd { font-size: 40px; line-height: 1; color: var(--ink); }
.hm2-pips { display: flex; gap: 6px; }
.hm2-pips i { flex: 1; height: 10px; border-radius: 5px; background: var(--well); box-shadow: var(--well-sh); }
.hm2-pips i.on { background: linear-gradient(180deg, var(--sechi), var(--stat)); box-shadow: none; }
.hm2-links { flex: none; display: flex; gap: 10px; }
.hm2-link { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border-radius: 14px; color: var(--ink); background: var(--surf-2); box-shadow: inset 0 1.5px 0 var(--hi2), 0 3px 0 var(--lip); }
.hm2-link > .ic { flex: none; width: 18px; height: 18px; color: var(--mute); }
.hm2-link > span { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.hm2-link > b { flex: none; font-size: 16px; color: var(--mute); white-space: nowrap; }
.hm2-link.ready::after { content: ''; position: absolute; right: 6px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 2px var(--s2a); }
.hm2-acts { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 10px; }
.hm2-acts .btn { min-width: 0; }
@media (max-height: 400px) { .hm2-right { gap: 8px; } .hm2-cd { font-size: 34px; } .hm2-card { gap: 6px; padding: 8px 14px; } .hm2-acts .btn.big { min-height: 52px; } .hm2-stage .pd-ovr b { font-size: 50px; } }
.pp-tip { font-size: 14px; line-height: 1.5; color: var(--mute); }
/* 바탕 없는 초상은 칸 폭에 잘려 세로 끊김이 생기지 않게 무대 전체 폭에 놓고 오른쪽으로 민다 */
.pd-face:has(.face.cut), .hm2-face:has(.face.cut) { left: 0; right: 0; width: auto; }
.pd-face .face.cut { background-position: 78% bottom; }
.hm2-face .face.cut { background-position: 80% bottom; }
/* 홈 무대가 살아 있게(UI 개편 3차): 선수 숨쉬기, 뒤 빛 느린 번짐, 먼지 몇 점. transform·opacity만 */
.hm2-face { transform-origin: 60% 100%; animation: breathe 4.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(-.6%) scale(1.008); } }
.hm2-glow { animation: glowPulse 6s ease-in-out infinite; }
@keyframes glowPulse { 50% { opacity: .65; transform: scale(1.05); } }
.hm2-dust { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hm2-dust i { position: absolute; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: color-mix(in srgb, var(--gc) 40%, #fff); opacity: 0; animation: dust 9s linear infinite; }
.hm2-dust i:nth-child(1) { left: 18%; animation-delay: 0s; } .hm2-dust i:nth-child(2) { left: 34%; animation-delay: 1.4s; width: 3px; height: 3px; }
.hm2-dust i:nth-child(3) { left: 52%; animation-delay: 2.9s; } .hm2-dust i:nth-child(4) { left: 66%; animation-delay: 4.1s; width: 3px; height: 3px; }
.hm2-dust i:nth-child(5) { left: 78%; animation-delay: 5.6s; } .hm2-dust i:nth-child(6) { left: 88%; animation-delay: 7s; width: 2px; height: 2px; } .hm2-dust i:nth-child(7) { left: 44%; animation-delay: 8.2s; width: 2px; height: 2px; }
@keyframes dust { 0% { opacity: 0; transform: translate(0, 0); } 12% { opacity: .5; } 80% { opacity: .35; } 100% { opacity: 0; transform: translate(26px, -330px); } }
.hm2-card .hm2-cd { display: inline-block; }

/* ---------- 영입 봉투(UI 개편 3차): 떨림, 새는 빛 색으로 등급 예고, 열리며 화면 번쩍, 카드가 떨어진다 ---------- */
.rv-pack { position: absolute; inset: 0; z-index: 5; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; cursor: pointer; }
.rv.packing .rv-pack { display: flex; }
.rv.packing .rv-cards, .rv.packing .rv-bot .rv-ok { visibility: hidden; }
.rv { --leak: var(--g-c); }
.rv.leak-b { --leak: var(--g-b); } .rv.leak-a { --leak: var(--g-a); } .rv.leak-s { --leak: var(--g-s); } .rv.leak-ss { --leak: var(--g-ss); }
.rp-glow { position: absolute; left: 50%; top: 46%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--leak) 55%, transparent), transparent 72%); opacity: .35; transform: scale(.7); animation: leakGlow 1.1s ease-in-out infinite alternate; }
@keyframes leakGlow { to { opacity: .8; transform: scale(1); } }
.rp-case { position: relative; width: 170px; height: 230px; border-radius: 26px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(160deg, var(--sechi), var(--sec2) 60%, var(--rimlo)); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .16), inset 0 -6px 0 rgba(0, 0, 0, .3), 0 0 0 4px color-mix(in srgb, var(--leak) 70%, var(--rimhi)), 0 8px 0 var(--lip), 0 24px 40px -10px var(--shc), 0 0 44px -6px var(--leak);
  animation: mvPop var(--t-slow) var(--ease-back) both; }
.rp-case::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 10px, transparent 10px 20px); }
/* 틈으로 새는 빛: 뚜껑 이음선 */
.rp-lid { position: absolute; left: 0; right: 0; top: 38%; height: 6px; background: var(--leak); box-shadow: 0 0 16px 4px color-mix(in srgb, var(--leak) 80%, transparent); opacity: .85; }
.rp-seal { position: relative; z-index: 1; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: linear-gradient(180deg, var(--acchi), var(--acc2)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 4px 0 var(--acclip); }
.rp-seal .ic { width: 38px; height: 38px; }
.rp-case b { position: absolute; z-index: 1; bottom: 16px; font: 800 30px/1 var(--f-num); color: var(--ink); text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.rp-hint { position: relative; font-style: normal; font-size: 14px; font-weight: 700; color: var(--mute); animation: fadeIn .4s .8s both; }
.rv.shake2 .rp-case { animation: packShake .5s ease-in-out infinite; }
.rv.leak-s.shake2 .rp-case, .rv.leak-ss.shake2 .rp-case { animation-duration: .3s; }
@keyframes packShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg) translateY(-2px); } 75% { transform: rotate(3deg) translateY(-2px); } }
.rv.pack-open .rp-case { animation: packOpen .55s var(--ease-in) forwards; }
.rv.pack-open .rp-glow { animation: none; opacity: 1; transform: scale(2.4); transition: transform .5s var(--ease-out), opacity .6s .3s; }
.rv.pack-open .rp-hint { opacity: 0; }
@keyframes packOpen { 40% { transform: scale(1.12) rotate(-2deg); } 100% { transform: scale(1.6); opacity: 0; } }
.rv-flash { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; background: radial-gradient(60% 70% at 50% 46%, #fff, color-mix(in srgb, var(--leak) 70%, transparent) 60%, transparent); }
.rv.pack-open .rv-flash { animation: packFlash .7s .25s ease-out both; }
.rv.leak-s.pack-open .rv-flash, .rv.leak-ss.pack-open .rv-flash { animation-duration: 1.1s; }
@keyframes packFlash { 0% { opacity: 0; } 25% { opacity: .95; } 100% { opacity: 0; } }
/* 카드 앞면이 열릴 때 등급 색 고리가 한 번 퍼진다 */
.rv .pf.on .flip-front::after { content: ''; position: absolute; inset: -6px; border-radius: 9cqw; pointer-events: none; box-shadow: 0 0 0 3px var(--gc, var(--g-c)), 0 0 26px 6px color-mix(in srgb, var(--gc, var(--g-c)) 70%, transparent);
  opacity: 0; animation: cardRing .8s ease-out; }
.rv .pf.gr-b { --gc: var(--g-b); } .rv .pf.gr-a { --gc: var(--g-a); } .rv .pf.gr-s { --gc: var(--g-s); } .rv .pf.gr-ss { --gc: var(--g-ss); }
@keyframes cardRing { 0% { opacity: 1; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.12); } }
.rv > .rv-pack.rv-pack, .rv > .rv-flash.rv-flash { position: absolute; }
/* 카드 뒷면: 봉투와 같은 판, 가운데 체육관 도장 */
.rv .flip-back { background: linear-gradient(160deg, var(--sechi), var(--sec2) 60%, var(--rimlo)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14), 0 0 0 3px var(--rimhi), 0 4px 0 var(--lip); overflow: hidden; }
.rv .flip-back::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 8px, transparent 8px 16px); }
.rv .fb-mark { position: relative; width: 38%; border-radius: 50%; background: linear-gradient(180deg, var(--acchi), var(--acc2)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 3px 0 var(--acclip); }
/* 오픈소스 라이선스 창 */
.oss { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.oss-i { border-radius: 14px; background: var(--surf-2); box-shadow: inset 0 1.5px 0 var(--hi2), 0 3px 0 var(--lip); padding: 10px 14px; }
.oss-i summary { display: flex; flex-direction: column; gap: 2px; cursor: pointer; list-style: none; min-height: 40px; justify-content: center; }
.oss-i summary::-webkit-details-marker { display: none; }
.oss-i summary b { font-size: 15px; font-weight: 800; }
.oss-i summary em { font-style: normal; font-size: 12.5px; color: var(--mute); }
.oss-u { display: block; margin-top: 6px; font-size: 12.5px; color: var(--stat); overflow-wrap: anywhere; }
.oss-i pre { margin: 8px 0 0; white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; font: 12px/1.5 var(--f-body); color: var(--mute); }
