:root {
  --bg: #12141c; --panel: #1c2030; --panel2: #252a3d; --line: #33395200; --text: #eef0f6; --sub: #9aa3b8; --gold: #ffc83d; --ok: #4fd18b; --bad: #ff6a6a;
  --N: #b9c0cc; --R: #5fb4ff; --U: #ff5a6e; --E: #c77dff; --L: #ffc83d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, "Malgun Gothic", sans-serif; font-size: 15px; }
button { font: inherit; color: inherit; background: var(--panel2); border: 1px solid #3a4160; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--gold); }
button:disabled { opacity: .45; cursor: default; }
button.main { background: #3b5bdb; border-color: #5c7cfa; font-weight: 700; }
button.gold { background: #8a6a12; border-color: var(--gold); font-weight: 700; }
input, select { font: inherit; color: inherit; background: var(--panel2); border: 1px solid #3a4160; border-radius: 8px; padding: 8px 10px; }
.stat small { color: var(--sub); }
main { max-width: 1000px; margin: 0 auto; padding: 16px; }
h2 { margin: 6px 0 12px; font-size: 19px; } h3 { margin: 18px 0 8px; font-size: 16px; color: var(--sub); }
.panel { background: var(--panel); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.muted { color: var(--sub); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.card { background: var(--panel2); border-radius: 10px; padding: 8px 10px 8px 58px; min-height: 64px; border-left: 5px solid var(--N); position: relative; cursor: pointer; user-select: none; overflow: hidden; }
.card .face { position: absolute; left: 4px; bottom: 0; width: 50px; height: 62px; object-fit: contain; object-position: bottom; }
.card .face.flip { transform: scaleX(-1); }
.card .face.nf { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--sub); background: #2e3550; border-radius: 8px; height: 44px; bottom: 10px; }
.card.sel { outline: 2px solid var(--gold); } .card.dim { opacity: .45; }
.card .nm { font-weight: 700; padding-right: 30px; } .card .meta { font-size: 12px; color: var(--sub); margin-top: 2px; }
.card .ov { position: absolute; right: 8px; top: 6px; font-weight: 800; font-size: 17px; }
.card .enh { color: var(--gold); font-weight: 800; }
.g-N { border-left-color: var(--N); } .g-R { border-left-color: var(--R); } .g-U { border-left-color: var(--U); } .g-E { border-left-color: var(--E); } .g-L { border-left-color: var(--L); }
.gt-N { color: var(--N); } .gt-R { color: var(--R); } .gt-U { color: var(--U); } .gt-E { color: var(--E); } .gt-L { color: var(--L); }
.star { color: var(--gold); letter-spacing: -2px; }
.tag { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 99px; background: #2e3550; color: var(--sub); }
.color { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: var(--panel2); border-radius: 8px; margin: 4px 0; cursor: pointer; }
.color.on { outline: 2px solid var(--gold); }
.grade { font-weight: 900; font-size: 18px; width: 26px; text-align: center; }
.big { font-size: 34px; font-weight: 900; text-align: center; margin: 8px 0; }
.win { color: var(--ok); } .loss { color: var(--bad); }
.bracket { display: flex; gap: 10px; overflow-x: auto; }
.bracket .rd { min-width: 180px; } .bracket .g { background: var(--panel2); border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; font-size: 13px; }
.bracket .g.mine { outline: 1px solid var(--gold); } .bracket .w { font-weight: 700; color: var(--ok); }
.slot { background: var(--panel2); border-radius: 10px; padding: 10px; text-align: center; }
.slot.sold { opacity: .35; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #2b3150; border: 1px solid var(--gold); padding: 10px 18px; border-radius: 10px; z-index: 20; max-width: 90vw; }
#modal { position: fixed; inset: 0; background: #000a; display: flex; align-items: center; justify-content: center; z-index: 15; padding: 16px; }
#modal[hidden] { display: none; }
#modal .box { background: var(--panel); border-radius: 14px; padding: 18px; max-width: 640px; width: 100%; max-height: 90vh; overflow: auto; }
.reveal .card { animation: pop .35s ease both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.pick3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.login { max-width: 360px; margin: 12vh auto; text-align: center; }
.start3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.start3 .panel { cursor: pointer; } .start3 .panel.on { outline: 2px solid var(--gold); }
@media (max-width: 560px) { main { padding: 10px; } .pick3 { grid-template-columns: 1fr; } }

/* 튜토리얼 안내 */
#guide { position: fixed; right: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px)); background: #24304f; border: 2px solid var(--gold); border-radius: 14px; padding: 12px 14px; z-index: 12; box-shadow: 0 8px 30px #0008; }
#guide .who { font-size: 12px; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
#guide-text { line-height: 1.5; } #guide-text b { color: var(--gold); }
#guide-btns { margin-top: 8px; justify-content: flex-end; } #guide-btns button { padding: 6px 12px; }
#guide .prog { font-size: 12px; color: var(--sub); }
nav button.pulse { border-color: var(--gold); box-shadow: 0 0 0 2px #ffc83d55; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px #ffc83d22; } }
main { padding-bottom: 160px; }

.card .meta.uq { color: #e7c86a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 영입판 「봉인된 밀서」 */
.seals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.seal { background: linear-gradient(160deg, #f1e3c2, #d9c08e); color: #3b2a12; border-radius: 10px; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; border: 3px solid #b08a4a; text-align: center; padding: 6px; }
.seal .wax { font-size: 30px; } .seal .muted { color: #5b4523; } .seal .small { font-size: 12px; }
.seal.g-R { border-color: var(--R); } .seal.g-U { border-color: var(--U); } .seal.g-E { border-color: var(--E); } .seal.g-L { border-color: var(--L); box-shadow: 0 0 12px var(--L); }
.seals .card { min-height: 120px; }
@media (max-width: 560px) { .seals { grid-template-columns: repeat(2, 1fr); } }
.seals .card { padding: 70px 6px 6px; text-align: center; border-left-width: 0; border-top: 5px solid var(--N); }
.seals .card.g-R { border-top-color: var(--R); } .seals .card.g-U { border-top-color: var(--U); } .seals .card.g-E { border-top-color: var(--E); } .seals .card.g-L { border-top-color: var(--L); }
.seals .card .face { left: 50%; transform: translateX(-50%); top: 4px; bottom: auto; width: 56px; height: 62px; }
.seals .card .face.flip { transform: translateX(-50%) scaleX(-1); }
.seals .card .nm { padding-right: 0; font-size: 13px; } .seals .card .meta { font-size: 11px; }
@media (max-width: 560px) { #guide { right: 8px; bottom: 8px; } .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }

/* 리그 순위표(2026-11-18) */
table.lg{width:100%;border-collapse:collapse;font-size:13px;margin:6px 0 14px}
table.lg th,table.lg td{padding:4px 3px;text-align:center;border-bottom:1px solid #ffffff18}
table.lg td:nth-child(2){text-align:left}
table.lg tr.po td:first-child{color:#f5c542;font-weight:700}
table.lg tr.me{background:#f5c54228}

/* 영입 등장 연출(2026-11-18) */
.figx{position:fixed;inset:0;z-index:90;background:#050913}
.figx iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.figbar{position:absolute;left:0;right:0;bottom:18px;display:flex;justify-content:center;align-items:center;gap:12px;z-index:2}
.figname{font-size:18px;font-weight:800;color:#fff;text-shadow:0 2px 6px #000}
.figname .new{background:#e0405a;border-radius:5px;padding:2px 8px;font-size:14px}

/* 밀서 명단(2026-11-18 「가려진 5개 중 누가 있는지 명단만 · 쪼는 맛」): 명단은 따로, 밀서는 가린 채 */
.roster { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; }
.roster > b { width: 100%; font-size: 13px; color: var(--muted, #9aa3b5); }
.roster .rs { display: inline-flex; align-items: center; gap: 4px; background: #ffffff10; border: 1px solid #ffffff22; border-radius: 16px; padding: 2px 10px 2px 2px; font-size: 13px; font-weight: 700; }
.roster .rs i { font-style: normal; color: #f5c542; font-size: 11px; }
.roster .rs .sface { width: 26px; height: 26px; object-fit: cover; object-position: top; border-radius: 50%; background: #ffffff18; }
.roster .rs .sface.flip { transform: scaleX(-1); }
.roster .rs.hot { border-color: #f5c542; box-shadow: 0 0 10px #f5c54266; }
.roster .rs.got { opacity: .45; }

/* 팩 뒤집기(2026-11-18): 카드 크기 모두 같게(2:3) · 뒷면·앞면 = 카드틀 그림(tools/make_card_backs.py) */
.flips { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.flips .fcard { position: relative; aspect-ratio: 2 / 3; perspective: 900px; cursor: pointer; }
.flips .fin, .flips .fback { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .55s cubic-bezier(.3,.7,.3,1); border-radius: 8px; }
.flips .fin { transform: rotateY(180deg); }
.flips .fback { overflow: hidden; }
.flips .fback img { width: 100%; height: 100%; display: block; }
.flips .fcard.on .fin { transform: rotateY(0); } .flips .fcard.on .fback { transform: rotateY(-180deg); }
.flips .fb-E .fback { box-shadow: 0 0 14px #c77dff; } .flips .fb-L .fback { box-shadow: 0 0 18px #ffc83d; }
.flips .fb-E .fback::after, .flips .fb-L .fback::after { content: ''; position: absolute; top: -50%; bottom: -50%; width: 40%; left: -60%;
  background: linear-gradient(90deg, transparent, #ffffffaa, transparent); transform: rotate(18deg); animation: fshine 1.8s ease-in-out infinite; }
@keyframes fshine { from { transform: translateX(0) rotate(18deg); } to { transform: translateX(420%) rotate(18deg); } }
.flips .fcard.on .fback::after { animation: none; }
.flips .fb-L.on .fin { box-shadow: 0 0 16px #ffc83d; } .flips .fb-E.on .fin { box-shadow: 0 0 12px #c77dff; }
/* 앞면: 카드틀(그림 칸 투명) 아래에 얼굴, 위·아래 양피지 칸에 글씨 */
.pf { position: absolute; inset: 0; container-type: inline-size; color: #3b2a12; }
.pf-art { position: absolute; left: 9%; right: 9%; top: 18.5%; bottom: 33%; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #fff8 0%, transparent 70%), linear-gradient(#2a3350, #12172a); }
.pf-art .face { position: static; width: 92%; height: 100%; object-fit: contain; object-position: bottom; transform: none; border: 0; background: none; }
.pf-art .face.flip { transform: scaleX(-1); }
.pf-art .face.nf { display: flex; align-items: center; justify-content: center; font-size: 30cqw; color: #fff; width: 100%; }
.pf-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pf-nm { position: absolute; left: 12%; right: 12%; top: 9.5%; height: 8%; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 900; line-height: 1; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; }
.pf-st { position: absolute; left: 30%; right: 30%; top: 64.8%; height: 5.8%; display: flex; align-items: center; justify-content: center; color: #b07a10; font-size: 8cqw; letter-spacing: -.05em; }
.pf-info { position: absolute; left: 12%; right: 12%; top: 72.5%; bottom: 11.5%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; font-size: 7.6cqw; line-height: 1.2; font-weight: 700; white-space: nowrap; overflow: hidden; }
.pf-info small { font-weight: 600; font-size: 7cqw; opacity: .8; }
.pf-info em { font-style: normal; font-weight: 900; color: #1d1408; }
.pf .gt-N { color: #6b5a40; } .pf .gt-R { color: #1d5fb0; } .pf .gt-U { color: #b3122f; } .pf .gt-E { color: #7a2fb8; } .pf .gt-L { color: #a8740a; }

/* 첫 화면(2026-11-18 「첫인상」) */
.start-hero { position: relative; margin: -12px -16px 14px; padding: 26px 16px 22px; text-align: center; overflow: hidden; border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, rgba(8,12,24,.25) 0%, rgba(8,12,24,.55) 55%, var(--bg) 100%), url(/art/ui/stadium.webp) center 35% / cover no-repeat; }
.hero-cards { position: relative; height: 210px; margin: 0 auto 6px; max-width: 520px; }
.hc { position: absolute; left: 50%; bottom: 0; width: 118px; aspect-ratio: 2 / 3; transform-origin: 50% 120%;
  transform: translateX(calc(-50% + var(--i) * 62px)) rotate(calc(var(--i) * 9deg)) translateY(calc(var(--i) * var(--i) * 5px)); filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
.hc:nth-child(3) { z-index: 3; width: 132px; } .hc:nth-child(2), .hc:nth-child(4) { z-index: 2; }
.hc-face { position: absolute; left: 9%; top: 18.5%; width: 82%; height: 48.5%; object-fit: cover; object-position: 50% 15%; background: linear-gradient(#3a2c08, #1a1405); }
.hc-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.hc span { position: absolute; left: 12%; right: 12%; top: 10%; font-size: 11px; font-weight: 900; color: #3b2a12; text-align: center; white-space: nowrap; overflow: hidden; }
.logo { margin: 4px 0 2px; font-size: clamp(30px, 7vw, 46px); font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff6d0 0%, #ffc83d 55%, #c98a10 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(255,200,61,.35)); }
.tagline { margin: 0; color: #e6e9f2; text-shadow: 0 1px 3px #000; font-size: 15px; }
.steps { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.steps span { padding: 5px 12px; border-radius: 16px; background: #ffffff10; color: var(--muted); font-size: 13px; font-weight: 700; }
.steps span.on { background: #ffc83d22; color: var(--gold); box-shadow: inset 0 0 0 1px #ffc83d88; }
.nations { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.nation { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--panel); border: 2px solid transparent;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .18s, border-color .18s, box-shadow .18s; }
.nation:hover { transform: translateY(-3px); }
.nation.on { border-color: var(--gold); box-shadow: 0 0 0 3px #ffc83d33, 0 10px 26px rgba(0,0,0,.5); transform: translateY(-4px); }
.n-faces { display: flex; justify-content: center; align-items: flex-end; height: 132px; padding-top: 10px;
  background: radial-gradient(circle at 50% 110%, color-mix(in srgb, var(--nc) 80%, #fff) 0%, color-mix(in srgb, var(--nc) 55%, #0b0f1a) 55%, #0b0f1a 100%); }
.nf { position: relative; width: 31%; margin: 0 -3%; text-align: center; }
.nf img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 10%; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.nf.main { width: 40%; z-index: 2; } .nf span { position: absolute; left: 0; right: 0; bottom: 2px; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px #000; }
.n-body { padding: 10px 14px 14px; } .n-body h3 { margin: 2px 0 6px; font-size: 21px; color: var(--text); }
.n-tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 10px; background: color-mix(in srgb, var(--nc) 40%, transparent); color: #fff; }
.n-col { font-size: 12.5px; color: var(--muted); } .n-col b { color: var(--text); font-weight: 700; }
.n-check { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #1d1408; font-weight: 900; display: none; align-items: center; justify-content: center; }
.nation.on .n-check { display: flex; }
.center { text-align: center; }
.found { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: linear-gradient(90deg, #2a2108, var(--panel) 45%); border: 1px solid #ffc83d33; }
.found-pack { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 0 12px #ffc83d88); animation: packBob 2.4s ease-in-out infinite; }
@keyframes packBob { 50% { transform: translateY(-5px) rotate(-3deg); } }
.found-in { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 4px; } .found-in label { font-size: 12px; color: var(--muted); font-weight: 700; } .found-in input { width: 100%; }
.found-go { padding: 14px 26px; font-size: 17px; font-weight: 900; border-radius: 12px; border: 0; color: #1d1408; cursor: pointer;
  background: linear-gradient(180deg, #ffe58a, #ffc83d 55%, #d99a12); box-shadow: 0 4px 0 #8a5f06, 0 0 18px #ffc83d66; }
.found-go:disabled { filter: grayscale(.8) brightness(.7); box-shadow: none; cursor: default; }
@media (max-width: 560px) { .hero-cards { height: 160px; } .hc { width: 88px; transform: translateX(calc(-50% + var(--i) * 44px)) rotate(calc(var(--i) * 9deg)) translateY(calc(var(--i) * var(--i) * 4px)); } .hc:nth-child(3) { width: 100px; } .hc span { font-size: 9px; } }

/* ── 2026-11-18 「큼직큼직하게 · 여백 줄이기」: 전체 크기 키움 ── */
body { font-size: 17px; }
main { max-width: 1180px; padding: 14px 18px 28px; }
h2 { font-size: 25px; margin: 4px 0 12px; } h3 { font-size: 18px; }
.muted { font-size: 14.5px; }
button { padding: 10px 18px; border-radius: 10px; }
nav { gap: 6px; padding: 10px 14px; } nav button { padding: 9px 16px; font-size: 16px; font-weight: 700; }
.panel { padding: 16px 18px; border-radius: 14px; }
.grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.card { min-height: 74px; padding: 10px 12px 10px 66px; } .card .face { width: 58px; height: 70px; }
/* 튜토리얼: 누를 곳 옆 말풍선 + 노란 선 + 빛 테두리 */
#guide { width: min(380px, calc(100vw - 20px)); font-size: 17px; transition: left .25s, top .25s; }
#guide.center { left: 50% !important; top: 50% !important; right: auto; bottom: auto; transform: translate(-50%, -50%); }
#guide:not(.center) { right: auto; bottom: auto; }
#guide.behind { opacity: 0; pointer-events: none; }
#tut-line { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 11; overflow: visible; }
#tut-line line { stroke: var(--gold); stroke-width: 4; stroke-dasharray: 9 7; filter: drop-shadow(0 0 4px #ffc83dcc); animation: tutDash .8s linear infinite; }
#tut-line circle { fill: var(--gold); filter: drop-shadow(0 0 6px #ffc83d); }
@keyframes tutDash { to { stroke-dashoffset: -16; } }
.tut-target { position: relative; z-index: 6; outline: 3px solid var(--gold) !important; outline-offset: 3px; border-radius: 10px; animation: tutRing 1.2s ease-in-out infinite; }
@keyframes tutRing { 50% { outline-color: #fff3c4; outline-offset: 6px; } }

/* ── 편성: 축구장 배치 + 팀컬러 진행(2026-11-18) ── */
.lineup-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 16px; align-items: start; margin-top: 12px; }
@media (max-width: 860px) { .lineup-wrap { grid-template-columns: 1fr; } }
.pitch { position: relative; display: flex; flex-direction: column; justify-content: space-around; gap: 6px; min-height: 560px; padding: 18px 10px; border-radius: 16px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #2f8a3e 0 56px, #2a7d38 56px 112px); box-shadow: inset 0 0 0 3px #ffffffaa, 0 8px 22px #0007; }
.pitch::before { content: ''; position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; transform: translate(-50%, -50%); border: 3px solid #ffffff99; border-radius: 50%; }
.pitch::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px solid #ffffff99; }
.prow { position: relative; z-index: 1; display: flex; justify-content: space-evenly; align-items: center; min-height: 104px; }
.prow[data-row="GK"] { background: linear-gradient(0deg, #ffffff22, transparent); border-radius: 0 0 10px 10px; }
.prow-l { position: absolute; left: 4px; top: 2px; font-size: 12px; font-weight: 800; color: #ffffffcc; text-shadow: 0 1px 2px #000; }
.tok { width: 86px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; user-select: none; }
.tk-face { position: relative; width: 66px; height: 66px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3a4570, #151a2c); border: 3px solid var(--N); box-shadow: 0 4px 8px #0008; overflow: visible; }
.tok.g-R .tk-face { border-color: var(--R); } .tok.g-U .tk-face { border-color: var(--U); } .tok.g-E .tk-face { border-color: var(--E); box-shadow: 0 0 10px var(--E); } .tok.g-L .tk-face { border-color: var(--L); box-shadow: 0 0 12px var(--L); }
.tk-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 50%; } .tk-face img.flip { transform: scaleX(-1); }
.tk-face em { position: absolute; right: -8px; bottom: -4px; font-style: normal; font-weight: 900; font-size: 14px; background: #10131e; border: 2px solid #ffffff55; border-radius: 10px; padding: 0 6px; }
.tok .tk-name { max-width: 100%; font-size: 13px; font-weight: 800; text-align: center; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #0c1713e6; border-radius: 4px; padding: 1px 5px; }
.tok.sel .tk-face { outline: 3px solid var(--lime); outline-offset: 2px; } .tok.sel .tk-name { background: var(--lime); color: #1a2111; }
.bench { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; border-radius: 14px; background: #1a2030; }
.crows { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.crow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel2); border: 2px solid transparent; cursor: pointer; }
.crow.on { border-color: var(--gold); background: #2c2a1c; } .crow.not { opacity: .8; cursor: default; }
.cr-l { display: flex; align-items: center; gap: 10px; } .cr-sub { font-size: 14px; color: var(--sub); margin-top: 2px; } .cr-sub b { color: #ffe7a3; font-weight: 700; }
.cr-g { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; background: #ffffff12; color: var(--sub); }
.cr-g.gr-C { background: #6b5a40; color: #fff; } .cr-g.gr-B { background: #1d5fb0; color: #fff; } .cr-g.gr-A { background: #7a2fb8; color: #fff; } .cr-g.gr-S { background: linear-gradient(135deg, #ffe58a, #d99a12); color: #1d1408; }
.cr-tag { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 8px; background: var(--gold); color: #1d1408; } .cr-tag.swap { background: #2f6fc8; color: #fff; }
.cr-list { flex: 0 0 auto; padding: 7px 12px; font-size: 14px; }
.clist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; max-height: 60vh; overflow-y: auto; }
.cl { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--panel2); border: 2px solid transparent; }
.cl img { width: 48px; height: 48px; object-fit: cover; object-position: 50% 15%; border-radius: 50%; background: #2e3550; }
.cl > div { flex: 1; min-width: 0; } .cl .star { color: var(--gold); font-size: 13px; }
.cl.st { border-color: var(--gold); } .cl.own { border-color: #4fd18b88; } .cl:not(.st):not(.own) { opacity: .75; }
.cl-tag { font-size: 12px; font-weight: 800; color: var(--gold); }
@media (max-width: 560px) { .pitch { min-height: 480px; } .tok { width: 66px; } .tk-face { width: 52px; height: 52px; } .tok .tk-name { font-size: 11.5px; } }

/* 편성: 대형·끌어놓기 */
.lu-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.forms { display: flex; flex-wrap: wrap; gap: 6px; }
.fm { padding: 7px 12px; font-weight: 900; font-size: 15px; border-radius: 10px; }
.fm.on { background: linear-gradient(180deg, #4ed17f, #23944d); border-color: #b9f5cf; color: #062b14; box-shadow: 0 0 12px #4ed17f77; }
.tok { touch-action: none; }
.tok.drop .tk-face, #ot .card.drop { outline: 4px dashed #fff; outline-offset: 3px; }
.tok.dragging, #ot .card.dragging { opacity: .35; }
.ghost { position: fixed; z-index: 30; pointer-events: none; transform: translate(-50%, -60%) scale(1.12); filter: drop-shadow(0 10px 16px #000a); }
.ghost.card { width: 200px; }
#ot .card { touch-action: none; }
.pitch { min-height: 620px; }
/* 팩 화면 크게 */
#modal .box.wide { max-width: min(1180px, 97vw); }
#modal .box.wide h2 { font-size: 26px; }
.flips { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
@media (min-width: 900px) { .flips { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 560px) { .flips { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
#flip-all { padding: 14px 34px; font-size: 18px; font-weight: 900; }

/* 자리 맞춤 줄 색(2026-11-19) */
.prow { transition: background .15s, box-shadow .15s; border-radius: 12px; }
.prow.fit { background: #4ed17f40; box-shadow: inset 0 0 0 3px #4ed17fcc; }
.prow.fit .prow-l::after { content: ' ✓ 내 자리'; color: #b9f5cf; }
.prow.nofit { background: #ff5a6e30; box-shadow: inset 0 0 0 2px #ff5a6e99; }
.prow.nofit .prow-l::after { content: ' −8%'; color: #ffb3bf; }
.prow.block { background: #00000055; } .prow.block .prow-l::after { content: ' ✕ 안 됨'; color: #ffb3bf; }
.swap-list { display: grid; gap: 6px; margin-bottom: 12px; }
.swap-player { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; width: 100%; min-height: 48px; text-align: left; }
.swap-player .muted { display: block; }
.swap-candidate { min-width: 0; display: flex; align-items: center; gap: 8px; }
.swap-candidate .face, .tk-face .nf { display: grid; place-items: center; border-radius: 50%; background: #182524; flex: none; }
.swap-candidate .face { width: 34px; height: 34px; object-fit: cover; object-position: 50% 20%; }
.swap-candidate .flip { transform: scaleX(-1); }
.swap-impact { color: var(--sub); }
.swap-impact b { color: var(--lime); }

/* ── 12칸 자유 배치(2026-11-19) ── */
.pitch12 { position: relative; width: 100%; aspect-ratio: 68 / 100; max-height: 760px; border-radius: 16px; overflow: hidden; touch-action: none;
  background: repeating-linear-gradient(180deg, #2f8a3e 0 6.25%, #2a7d38 6.25% 12.5%); box-shadow: inset 0 0 0 3px #ffffffaa, 0 8px 22px #0007; }
.p-center { position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid #ffffff88; border-radius: 50%; pointer-events: none; }
.pitch12::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px solid #ffffff88; pointer-events: none; }
.p-box { position: absolute; left: 25%; right: 25%; bottom: 0; height: 15%; border: 3px solid #ffffff88; border-bottom: 0; pointer-events: none; }
.cell12 { display: none; position: absolute; border: 1px dashed #ffffff42; flex-direction: column; justify-content: space-between; padding: 3px 5px; pointer-events: none; }
.show-aptitude .cell12 { display: flex; }
.cell12 .c-nm { font-size: 11px; font-weight: 800; color: #ffffffaa; text-shadow: 0 1px 2px #000; }
.cell12 .c-ap { align-self: flex-end; font-size: 18px; font-weight: 900; color: #fff; text-shadow: 0 1px 3px #000; }
.cell12.apt6 { background: #f59e0b88; } .cell12.apt5 { background: #a855f777; } .cell12.apt4 { background: #3b82f677; } .cell12.apt3 { background: #22c55e66; }
.cell12.apt2 { background: #a3a3a355; } .cell12.apt1 { background: #94a3b844; } .cell12.apt0 { background: #0f172a77; } .cell12.apX { background: #00000088; }
.pitch12 .tok { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.aptg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 360px; }
.aptg > div { border-radius: 8px; padding: 4px 6px; display: flex; justify-content: space-between; align-items: center; background: #ffffff10; }
.aptg small { font-size: 12px; color: #dfe4f0; } .aptg b { font-size: 16px; }
.aptg .apt6 { background: #f59e0b; color: #2a1d05; } .aptg .apt6 small { color: #2a1d05; } .aptg .apt5 { background: #a855f7aa; } .aptg .apt4 { background: #3b82f6aa; } .aptg .apt3 { background: #22c55e88; }
.aptg .apt2 { background: #a3a3a355; } .aptg .apt1 { background: #94a3b844; } .aptg .apt0 { opacity: .5; } .aptg .main { outline: 3px solid #fff; }
@media (max-width: 560px) { .cell12 .c-nm { font-size: 9px; } .cell12 .c-ap { font-size: 14px; } }
.cell12 .c-ap { font-size: 14px; } .cell12.apt0 .c-ap, .cell12.apX .c-ap { font-size: 12px; opacity: .55; } .cell12.apt6 .c-ap, .cell12.apt5 .c-ap { font-size: 20px; }

/* 편성 코스트(2026-11-19) */
.cost-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; border-radius: 14px; background: var(--panel); border: 2px solid #4ed17f66; }
.cb-track { flex: 1; min-width: 160px; height: 14px; border-radius: 8px; background: #ffffff14; overflow: hidden; }
.cb-track i { display: block; height: 100%; background: linear-gradient(90deg, #4ed17f, #23944d); }
.cb-num { font-size: 20px; color: #b9f5cf; }
.cost-bar.near { border-color: #ffc83d99; } .cost-bar.near .cb-track i { background: linear-gradient(90deg, #ffe58a, #ffc83d); } .cost-bar.near .cb-num { color: var(--gold); }
.cost-bar.over { border-color: #ff5a6e; } .cost-bar.over .cb-track i { background: linear-gradient(90deg, #ff8a9a, #ff5a6e); } .cost-bar.over .cb-num { color: #ff8a9a; }

/* 팀 세트·연계(2026-11-19) */
.sets-panel { margin-top: 12px; }
.setrow { padding: 8px 10px; border-radius: 10px; background: var(--panel2); margin-top: 6px; } .setrow.on { border: 2px solid #4ed17f; background: #1d3326; }
.sb { display: inline-block; font-weight: 900; color: #b9f5cf; background: #23944d55; border-radius: 8px; padding: 0 8px; } .sb.dim { color: var(--sub); background: #ffffff10; }
.near-h { margin-top: 10px; font-weight: 800; color: var(--gold); } .miss { color: #ffb3bf; }
.lk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; max-height: 62vh; overflow-y: auto; margin-top: 8px; }
.lk { padding: 10px 12px; border-radius: 12px; background: var(--panel2); display: flex; flex-direction: column; gap: 4px; } .lk.on { border: 2px solid #4ed17f; } .lk[hidden] { display: none; }
.lm { display: inline-block; padding: 1px 8px; border-radius: 8px; font-size: 14px; font-weight: 700; margin: 1px 0; }
.lm.xi { background: #ffc83d; color: #2a1d05; } .lm.day { background: #23944d; color: #fff; } .lm.own { background: #ffffff22; color: #fff; } .lm.none { background: #ffffff08; color: #8892a6; }

/* 승강제(2026-11-19) */
.ladder { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.rung { flex: 1; min-width: 92px; padding: 8px 10px; border-radius: 12px; background: var(--panel); border: 2px solid #ffffff14; text-align: center; }
.rung b { display: block; font-size: 18px; } .rung span { font-size: 12px; color: var(--sub); }
.rung.me { border-color: var(--gold); background: linear-gradient(180deg, #4a3a0c, #241c08); box-shadow: 0 0 14px #ffc83d55; } .rung.me span { color: var(--gold); font-weight: 800; }
.rung:first-child b { color: var(--gold); }
table.lg tr.up td { background: #4ed17f22; } table.lg tr.down td { background: #ff5a6e22; }
table.lg td.zn { font-weight: 900; font-size: 13px; white-space: nowrap; } table.lg tr.up td.zn { color: #4ed17f; } table.lg tr.down td.zn { color: #ff8a9a; }
.upc { color: #4ed17f; } .downc { color: #ff8a9a; }

/* 능력치 막대 · 경기 화면 크게(2026-11-19) */
.sbars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; margin: 6px 0; }
.sbar { display: grid; grid-template-columns: 62px 1fr 34px 46px; align-items: center; gap: 8px; font-size: 15px; }
.sbar .sk { font-weight: 800; color: var(--sub); }
.sbar .track { position: relative; height: 14px; border-radius: 7px; background: #ffffff10; overflow: hidden; }
.sbar .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; }
.sbar .track i.pot { background: repeating-linear-gradient(135deg, #ffc83d55 0 6px, #ffc83d30 6px 12px); }
.sbar b { text-align: right; font-size: 16px; } .sbar .pv { font-size: 13px; color: var(--gold); font-weight: 700; }
.potc { color: var(--gold); }
.card-growth { margin-top: 12px; }
.card-growth progress { display: block; width: 100%; height: 12px; margin-top: 4px; accent-color: var(--gold); }
.skill-marks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.skill-mark { padding: 4px 8px; border-radius: 6px; background: var(--panel2); color: var(--sub); }
.skill-mark.learned { color: var(--ok); }
.skill-equip { cursor: pointer; }
.skill-equip input { accent-color: var(--gold); }
.match-growth { margin: 10px auto; max-width: 560px; }
.match-growth summary { cursor: pointer; text-align: center; }

#modal .box.match { max-width: 96vw; width: 96vw; max-height: 98vh; padding: 12px 16px; }
#modal .box.match #rp-wrap { margin: 0 auto; }
.rp-actions { display: flex; justify-content: center; margin: 12px 0; }
.rp-actions button { min-width: 168px; min-height: 48px; }

/* 강화 화면(2026-11-19): 강화할 카드 / 재료 / 미리 보기 3칸 */
.enh-top { display: grid; grid-template-columns: minmax(220px, 300px) minmax(260px, 1fr) minmax(260px, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 900px) { .enh-top { grid-template-columns: 1fr; } }
.enh-slot { background: var(--panel); border-radius: 14px; padding: 12px; border: 2px solid #ffffff12; }
.enh-slot:first-child { border-color: var(--gold); box-shadow: 0 0 16px #ffc83d33; }
.enh-h { font-weight: 900; font-size: 17px; margin-bottom: 8px; color: var(--gold); }
.enh-slot .card { cursor: pointer; }
.enh-mlist { display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.enh-empty { border: 2px dashed #ffffff22; border-radius: 12px; padding: 22px 10px; text-align: center; }
.enh-m { display: flex; align-items: center; gap: 10px; background: var(--panel2); border-radius: 10px; padding: 4px 10px; cursor: pointer; border-left: 4px solid var(--N); }
.enh-m.g-R { border-left-color: var(--R); } .enh-m.g-U { border-left-color: var(--U); } .enh-m.g-E { border-left-color: var(--E); } .enh-m.g-L { border-left-color: var(--L); }
.enh-m img.face { width: 40px; height: 40px; object-fit: contain; } .enh-m img.face.flip { transform: scaleX(-1); }
.enh-m > div { flex: 1; } .enh-m .x { color: var(--sub); font-weight: 900; }
.enh-big { font-size: 40px; font-weight: 900; text-align: center; margin: 4px 0; } .enh-big span { color: var(--gold); }
.enh-chance { text-align: center; font-size: 24px; font-weight: 900; margin-bottom: 8px; } .enh-chance.hi { color: #4fd18b; } .enh-chance.mid { color: #ffc83d; } .enh-chance.lo { color: #ff6a6a; }
.enh-gauge { position: relative; height: 22px; border-radius: 11px; background: #ffffff12; overflow: hidden; margin-bottom: 8px; }
.enh-gauge i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3b5bdb, #4fd18b); }
.enh-gauge span { position: relative; display: block; text-align: center; font-weight: 800; line-height: 22px; font-size: 13px; }
#pv { min-height: 120px; }

/* 행상인·가방 그림(2026-11-19) */
.goods { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.good { position: relative; background: linear-gradient(180deg, var(--panel2), var(--panel)); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px solid #ffffff12; text-align: center; }
.good img { width: 128px; height: 128px; object-fit: cover; border-radius: 14px; }
.good .gname { font-size: 18px; } .good .gdesc { font-size: 13px; color: var(--sub); flex: 1; line-height: 1.45; }
.good button { width: 100%; font-size: 16px; }
.good.sold { opacity: .4; } .good.tutg { border-color: var(--gold); box-shadow: 0 0 18px #ffc83d55; }
.good.gbox-B { border-color: #ff5a6e66; } .good.gbox-A { border-color: #c77dff88; } .good.gbox-S { border-color: var(--gold); }
.gtag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #2a1d05; font-weight: 900; font-size: 12px; padding: 2px 10px; border-radius: 10px; white-space: nowrap; }

/* Student game shell */
:root {
  color-scheme: dark;
  --bg: #0d1314;
  --panel: #172122;
  --panel2: #202d2e;
  --line: #354646;
  --text: #f4f6ed;
  --sub: #b3c2bb;
  --gold: #f2cc79;
  --lime: #d9f570;
  --nav-width: 202px;
  --top-height: 68px;
}
body { font-family: "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; font-size: 15px; }
.ui-icon { width: 22px; height: 22px; display: inline-block; flex: none; vertical-align: middle; }
button:not(:disabled):focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--lime); outline-offset: 3px;
}
button { border-color: var(--line); background: #273636; border-radius: 8px; }
button:hover:not(:disabled) { border-color: #8ea696; }
button.main, button.gold { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; }
button.main { background: var(--lime); color: #182013; border-color: var(--lime); }
button.main:hover:not(:disabled) { background: #e7fb9a; border-color: #e7fb9a; }
button.gold { background: var(--gold); border-color: var(--gold); color: #2b2010; }
button.gold:hover:not(:disabled) { background: #ffe0a2; }
input, select { border-color: var(--line); }
#top {
  position: sticky; top: 0; z-index: 9; display: grid; align-items: center;
  grid-template-columns: var(--nav-width) minmax(0, 1fr) auto;
  gap: 0; min-height: var(--top-height); padding: 0 24px 0 0; background: #10191a;
  border-bottom: 1px solid #293b39;
}
#top .brand { display: flex; align-items: center; margin: 0; padding: 0 16px; gap: 10px; }
.b-logo {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px;
  border-radius: 10px; background: var(--lime); color: #172011; filter: none;
}
.b-logo .ui-icon { width: 26px; height: 26px; }
.b-name { background: none; color: var(--text); font-size: 18px; font-weight: 900; white-space: nowrap; }
.club-status { display: flex; align-items: center; gap: 9px; min-width: 0; padding-left: 22px; color: var(--sub); }
.club-status .ui-icon { width: 18px; height: 18px; color: #8aa092; }
.club-status b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wallet { display: flex; align-items: center; gap: 7px; }
#top .stat {
  display: flex; align-items: center; gap: 7px; padding: 7px 10px; font-size: 14px;
  background: #1a2727; border: 1px solid #334643; border-radius: 8px; white-space: nowrap;
}
.stat .ui-icon { width: 18px; height: 18px; color: var(--gold); }
.stat:last-child .ui-icon { color: var(--lime); }
#st-next:empty { display: none; }
#game-shell { min-height: calc(100vh - var(--top-height)); }
#tabs {
  position: sticky; z-index: 7; align-items: start; gap: 0; padding: 0; overflow: visible;
  background: #10191a; border: 0; box-shadow: none;
}
#tabs .nav-group { display: grid; gap: 3px; }
#tabs button {
  position: relative; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px;
  min-width: 0; min-height: 42px; padding: 8px 12px; background: transparent; border: 1px solid transparent;
  border-radius: 8px; color: #aabfb6; white-space: nowrap; transition: background .15s, color .15s;
}
#tabs button i { display: inline-flex; font-style: normal; line-height: 1; filter: none; }
#tabs button span { color: inherit; font-size: 14px; font-weight: 730; }
#tabs button:hover:not(.on) { background: #1a2525; color: #dcebe2; }
#tabs button.on {
  background: #283a2d; color: var(--lime); border-color: #43573b; box-shadow: inset 3px 0 var(--lime);
}
#tabs button #goal-badge {
  position: static; display: grid; min-width: 20px; height: 20px; margin-left: auto;
  place-items: center; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #282012; font-size: 11px; font-weight: 900;
}
#tabs button #goal-badge:empty { display: none; }
#view { width: 100%; max-width: 1280px; min-width: 0; padding: 24px 24px 100px; }
#view:not([data-screen]), #view[data-screen=""] { max-width: 1000px; }

@media (min-width: 1080px) {
  #game-shell:has(#tabs:not([hidden])) {
    display: grid; grid-template-columns: var(--nav-width) minmax(0, 1fr); align-items: start;
    background: linear-gradient(to right, #10191a 0 calc(var(--nav-width) - 1px), #293b39 calc(var(--nav-width) - 1px) var(--nav-width), transparent var(--nav-width));
  }
  #tabs { display: block; top: var(--top-height); margin-right: 1px; padding: 14px 12px; }
  #tabs .nav-group + .nav-group { border-top: 1px solid #293b39; margin-top: 9px; padding-top: 9px; }
}

/* Lobby and card collection */
.lobby { display: grid; grid-template-columns: minmax(0, 2.55fr) minmax(220px, 1fr); gap: 14px; }
.lobby-hero {
  position: relative; isolation: isolate; display: flex; min-height: clamp(290px, 32vw, 406px);
  align-items: flex-end; overflow: hidden; border: 1px solid #455c4c; border-radius: 12px;
  background: #202c27 url(/art/ui/stadium.webp) center 57% / cover no-repeat;
}
.lobby-hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, #0c1615f5 0%, #0c1615d4 27%, #0c16152b 66%, transparent),
              linear-gradient(0deg, #0b1514 0%, #0b15145e 28%, transparent 63%);
}
.lobby-copy { padding: clamp(18px, 3vw, 38px); min-width: 0; max-width: 100%; }
.lobby-club { display: flex; align-items: center; gap: 7px; color: var(--lime); font-size: 14px; font-weight: 800; }
.lobby-club .ui-icon { width: 19px; height: 19px; }
.lobby-copy h1 {
  margin: 7px 0 13px; font-size: clamp(35px, 5.15vw, 68px); line-height: 1.08;
  font-weight: 900; letter-spacing: -.067em; overflow-wrap: anywhere; text-shadow: 0 3px 18px #0b1313;
}
.lobby-portraits { position: absolute; z-index: -2; inset: 0 0 0 30%; pointer-events: none; }
.lobby-portraits img {
  position: absolute; right: 2%; bottom: -14%; width: 62%; height: 106%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 7px 13px #04110eaa);
}
.lobby-portraits img:first-child { z-index: 2; right: 15%; width: 70%; height: 116%; }
.lobby-portraits img:nth-child(2) { z-index: 1; right: 42%; height: 91%; opacity: .88; }
.lobby-portraits img:nth-child(3) { right: -10%; height: 99%; opacity: .88; }
.lobby-portraits .flip { transform: scaleX(-1); }
.lobby-colors, .lobby-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lobby-colors { margin-bottom: 13px; }
.lobby-colors span { padding: 4px 8px; background: #18241ce8; border: 1px solid #526647; border-radius: 5px; font-size: 12px; }
.lobby-colors b { color: var(--lime); }
.lobby-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px;
  font-size: 15px; font-weight: 850; padding: 8px 14px;
}
.lobby-actions button:not(.main) { background: #182525df; border-color: #7d9a8d; }
.lobby-actions .ui-icon, .section-heading .ui-icon { width: 18px; height: 18px; }
.lobby-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; min-width: 0; }
.lobby-module {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; text-align: left;
  width: 100%; min-height: 128px; padding: 16px; border-radius: 12px;
}
.lobby-module:disabled { opacity: 1; }
.daily-module { background: #372b20; border-color: #6b5335; }
.league-module { background: #1c2c36; border-color: #354f5a; }
.lobby-module:hover:not(:disabled) { border-color: var(--lime); }
.module-copy { display: grid; gap: 5px; max-width: 81%; }
.module-copy > span { color: var(--gold); font-size: 13px; font-weight: 800; }
.league-module .module-copy > span { color: #a9d6ec; }
.module-copy strong { font-size: clamp(19px, 2vw, 26px); font-weight: 900; line-height: 1.18; letter-spacing: -.045em; word-break: keep-all; }
.module-copy small { color: #ecede5; font-size: 12px; line-height: 1.4; }
.module-copy small .ui-icon { width: 15px; height: 15px; }
.daily-art, .league-module > .ui-icon { position: absolute; z-index: -1; right: -8px; width: 43%; }
.daily-art { filter: drop-shadow(0 8px 10px #0f0d0acc); transform: rotate(9deg); }
.daily-art img { display: block; width: 100%; clip-path: polygon(21.2% 7.7%, 79.3% 9.5%, 78% 34%, 77.5% 94.3%, 21.2% 90.5%, 23.2% 45%); }
.league-module > .ui-icon { height: auto; right: 4px; color: #8dc1d8; opacity: .22; }
.lobby-roster { margin-top: 22px; }
.section-heading, .screen-title, .panel-heading {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.section-heading { margin: 0 0 10px; }
.section-heading h2 { margin: 0; font-size: 21px; }
.section-heading button { display: inline-flex; align-items: center; gap: 4px; background: transparent; font-size: 13px; }
.screen-title { margin: 0 0 16px; }
.screen-title h1 { margin: 0; font-size: clamp(27px, 4vw, 40px); font-weight: 900; line-height: 1.12; letter-spacing: -.045em; }
.screen-counter { display: inline-flex; gap: 6px; align-items: center; color: var(--sub); font-size: 13px; font-weight: 800; }
.screen-counter .ui-icon { width: 17px; height: 17px; color: var(--gold); }
.roster-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.roster-tools #sum { margin-left: auto; color: var(--gold); font-weight: 800; }
.segmented { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid #31403c; border-radius: 9px; background: #111b1b; }
.segmented button { background: transparent; border-color: transparent; color: var(--sub); font-weight: 750; }
.segmented .on { background: #304133; color: var(--lime); }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 12px; }
.lobby-roster .roster-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.collection-card {
  min-width: 0; padding: 5px; background: #182322; border: 1px solid #354642; border-radius: 9px;
  color: var(--sub); text-align: left; box-shadow: 0 5px 12px #060b0a50; transition: border-color .15s, background .15s;
}
.collection-card:hover:not(:disabled) { border-color: var(--lime); background: #25342d; }
.collection-card.selected { outline: 2px solid var(--lime); outline-offset: 1px; }
.collection-card[aria-disabled="true"] { opacity: .62; }
.collection-art { display: block; position: relative; aspect-ratio: 2 / 3; }
.collection-status { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 1px; gap: 3px; min-height: 22px; font-size: 11px; }
.collection-status b { color: var(--text); }
.collection-status strong, .collection-up { color: var(--lime); }
.collection-up { font-size: 15px; line-height: 1; }

/* Competition, lineup and shop */
.match-modes, .cup-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.mode-stage, .cup-stage, .shop-feature { border: 1px solid #3e544a; border-radius: 12px; overflow: hidden; }
.mode-stage {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(14px, 2.3vw, 24px);
  background: linear-gradient(100deg, #10241df5, #152926ab), url(/art/ui/stadium.webp) center 60% / cover;
}
.mode-friendly { background: linear-gradient(100deg, #1b2c39, #1d303ad9), url(/art/ui/stadium.webp) center 50% / cover; border-color: #3c5361; }
.mode-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
.mode-head > .ui-icon { width: 36px; height: 36px; color: var(--lime); }
.mode-friendly .mode-head > .ui-icon { color: #a8d7eb; }
.mode-head span { display: inline-flex; align-items: center; gap: 5px; background: #0f191bb8; border: 1px solid #73908575; border-radius: 6px; padding: 4px 7px; font-size: 12px; }
.mode-head span .ui-icon { width: 15px; height: 15px; }
.mode-stage h2, .shop-copy h2 { margin: 10px 0 3px; font-size: 27px; font-weight: 900; letter-spacing: -.04em; }
.mode-stage > p, .shop-copy > p { margin: 0 0 14px; color: #d0ded6; }
.mode-fields { display: flex; align-items: end; gap: 8px; width: 100%; margin: auto 0 10px; }
.mode-fields label { display: grid; flex: 1; gap: 4px; min-width: 0; color: var(--sub); font-size: 12px; font-weight: 700; }
.mode-fields label select { width: 100%; min-height: 42px; background: #142221; font-size: 14px; }
.mode-stage > button { width: 100%; }
#frnote { display: block; margin-top: 8px; }
.tutorial-match { justify-content: space-between; border: 1px solid #8a754d; margin-bottom: 12px; }
.recent-matches { display: grid; gap: 5px; }
.recent-game {
  display: grid; grid-template-columns: minmax(64px, 1fr) minmax(0, 5fr) auto; align-items: center; gap: 8px;
  width: 100%; padding: 8px; text-align: start; background: #172322; border-color: #31423e;
}
.recent-type, .recent-play { color: var(--sub); font-size: 12px; }
.recent-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.recent-score span { min-width: 0; overflow-wrap: anywhere; }
.recent-score span:first-child { text-align: right; }
.recent-score b { white-space: nowrap; padding: 4px 8px; background: #0e1818; border: 1px solid #324743; border-radius: 5px; font-variant-numeric: tabular-nums; }
.recent-play { display: inline-flex; align-items: center; gap: 4px; }
.recent-play .ui-icon { width: 18px; height: 18px; color: var(--lime); }
.cup-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cup-stage {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(12px, 2vw, 22px);
  --cup-tone: #bdccc6; --cup-back: #293731; background: var(--cup-back);
}
.cup-B { --cup-tone: #b1d5f4; --cup-back: #223343; border-color: #49647c; }
.cup-A { --cup-tone: var(--gold); --cup-back: #3a3025; border-color: #6c573e; }
.cup-crest { padding: 9px; border: 1px solid currentColor; border-radius: 10px; color: var(--cup-tone); }
.cup-crest .ui-icon { width: 33px; height: 33px; }
.cup-stage h2 { margin: 10px 0 0; font-size: 25px; }
.cup-reward { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px; margin-top: 12px; background: #0e171b87; border-radius: 8px; }
.cup-reward img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.cup-reward span { display: block; color: var(--sub); font-size: 12px; }
.cup-stage > button { width: 100%; margin-top: auto; }
.shop-feature { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr); background: #1b2b24; }
.shop-art { display: grid; place-items: center; background: #263d31; }
.shop-art img { width: min(75%, 220px); border-radius: 12px; box-shadow: 0 8px 25px #06130e80; }
.shop-copy { padding: clamp(14px, 3.5vw, 38px); }
.screen-help { padding: 7px 10px; margin: 6px 0; color: var(--sub); font-size: 13px; }
.screen-help summary { cursor: pointer; color: var(--text); font-weight: 750; }
.screen-help p { margin: 7px 0; line-height: 1.5; }
.lu-top { justify-content: space-between; padding: 8px; background: #172322; border: 1px solid #344844; border-radius: 10px; }
.lu-top .forms { gap: 4px; }
.lu-top .fm { border-color: #43554d; border-radius: 6px; font-size: 13px; }
.lu-top .fm.on { background: #334d35; color: var(--lime); border-color: #69835b; box-shadow: none; }
.lu-top .cost-bar { flex: 1 1 220px; margin: 0; padding: 5px 7px; border-radius: 7px; border-width: 1px; font-size: 12px; }
.lu-top .cb-track { min-width: 40px; }
.pitch12 { border-radius: 11px; background: repeating-linear-gradient(180deg, #27654c 0 6.25%, #2c6e51 6.25% 12.5%); }
.pitch12::before {
  content: ""; position: absolute; left: 25%; right: 25%; top: 0; height: 15%;
  border: 3px solid #ffffff88; border-top: 0; pointer-events: none;
}
button.tok { padding: 0; border: 0; background: transparent; }
.tok .tk-face .nf { width: 100%; height: 100%; color: var(--text); }
.pitch12 .tok.sel, .pitch12 .tok:focus-visible { z-index: 3; }
.lineup-selection {
  position: sticky; top: calc(var(--top-height) + 8px); z-index: 6; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 6px 10px; padding: 8px 10px; margin-bottom: 8px;
  border: 1px solid #688360; border-left: 3px solid var(--lime); border-radius: 8px; background: #1b2a24;
  box-shadow: 0 5px 14px #0a100c90;
}
.lineup-selection-info { flex: 1 1 132px; min-width: 0; }
.lineup-selection-info strong { display: block; overflow-wrap: anywhere; }
.lineup-selection-info span { display: block; color: var(--sub); font-size: 12px; }
.lineup-selection-info span b { color: var(--lime); }
.lineup-selection-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.lineup-selection-actions button { min-height: 40px; padding: 4px 8px; font-size: 13px; }
.lineup-selection-actions button[aria-pressed="true"] { color: var(--lime); border-color: var(--lime); }
#lineup-clear { width: 35px; background: transparent; font-size: 19px; }
.lineup-move-hint { flex-basis: 100%; margin: 0; color: var(--sub); font-size: 12px; }
.league-next-fixture { display: flex; align-items: center; gap: 10px; padding: 12px; margin: 10px 0; border: 1px solid #4d6d61; border-radius: 9px; background: #203732; }
.league-next-fixture > .ui-icon { color: var(--lime); }
.league-next-fixture small, .league-next-fixture strong { display: block; }
.league-next-fixture > b { margin-left: auto; white-space: nowrap; }
.league-table { overflow-x: auto; }
.league-table .lg { min-width: 375px; }

/* Shared panels and player detail */
.panel { border: 1px solid #31433e; border-radius: 10px; }
.color, .slot, .crow, .enh-slot, .good { border-radius: 8px; }
.good { min-width: 0; }
.good img { width: min(100%, 128px); height: auto; aspect-ratio: 1; }
.inventory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 8px; margin-bottom: 18px; }
.inventory-grid > p { grid-column: 1 / -1; }
.inventory-item {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0;
  padding: 10px; border-radius: 8px; border: 1px solid #3c4e43; background: var(--panel);
}
.inventory-item img { width: min(100%, 92px); border-radius: 8px; align-self: center; }
.inventory-item small { color: #d3e5b2; }
.inventory-item button { width: 100%; margin-top: auto; }
.item-count { position: absolute; top: 6px; right: 6px; padding: 1px 6px; border-radius: 5px; background: #0c1616; color: var(--gold); font-weight: 800; }
.goal-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px; align-items: start; }
.goal-list .panel { margin: 0; padding: 12px; }
.goal-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 0; border-top: 1px solid #354541; }
.goal-progress { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--sub); }
.goal-progress progress { width: clamp(36px, 8vw, 90px); height: 9px; accent-color: var(--lime); }
.goal-reward { display: grid; gap: 3px; justify-items: end; flex: none; font-size: 13px; color: var(--gold); }
.goal-reward small { color: var(--sub); }
.goal-reward button { min-height: 34px; padding: 3px 10px; }
.player-header {
  position: relative; isolation: isolate; display: flex; align-items: center; min-height: 112px; gap: 8px;
  padding: 10px; border: 1px solid #43554c; border-left: 4px solid; border-radius: 9px; overflow: hidden;
  background: radial-gradient(ellipse at 16% 70%, #3c5549, #192625 65%);
}
.player-header.g-N { border-left-color: var(--N); } .player-header.g-R { border-left-color: var(--R); }
.player-header.g-U { border-left-color: var(--U); } .player-header.g-E { border-left-color: var(--E); }
.player-header.g-L { border-left-color: var(--L); } .player-header.g-M { border-left-color: var(--M); }
.player-header img { width: min(27%, 100px); max-height: 110px; object-fit: contain; }
.player-header img.flip { transform: scaleX(-1); }
.player-name { min-width: 0; flex: 1; }
.player-name h2 { margin: 2px 0; font-weight: 900; font-size: clamp(20px, 4vw, 28px); overflow-wrap: anywhere; }
.player-ovr { display: grid; text-align: center; border-left: 1px solid #43554c; padding-left: 9px; }
.player-ovr strong { color: var(--lime); font-size: 29px; line-height: 1; }
.player-ovr small { color: var(--sub); }
.player-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; position: sticky; top: 0; z-index: 1;
  margin-top: 8px; padding: 4px; border: 1px solid #354942; border-radius: 8px; background: #111e1c;
}
.player-tabs button { min-height: 42px; padding: 4px; background: transparent; border-color: transparent; color: var(--sub); font-weight: 800; }
.player-tabs button[aria-selected="true"] { color: var(--lime); background: #293c2c; border-color: #50664b; box-shadow: inset 0 -2px var(--lime); }
.player-pane { padding: 8px 0 2px; }
.player-pane h3:first-child, .player-pane .card-growth { margin-top: 2px; }
.player-pane > .gup { margin-top: 10px; }
.player-pane > .color { flex-wrap: wrap; gap: 5px; }
.player-pane .row { min-width: 0; }
.player-colors { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0 12px; padding: 0; list-style: none; }
.player-colors li { padding: 7px 10px; border: 1px solid #4d6356; border-radius: 7px; background: #23332d; }
.stat-legend { display: flex; gap: 10px; color: var(--sub); font-size: 12px; }
.player-skill-result:not(:empty) { display: grid; gap: 4px; padding: 9px; margin-top: 8px; border: 1px solid #40554b; border-radius: 7px; }
#modal .box { border: 1px solid #3c5148; }
#modal .box.player-detail { display: flex; flex-direction: column; overflow: hidden; padding: 14px; }
.player-detail #modal-body { min-height: 0; overflow-y: auto; padding-inline: 4px; }
.player-detail #modal-close { align-self: end; flex: none; min-height: 42px; margin: 8px 4px 0 0; }
.replay-hud {
  position: sticky; top: 0; z-index: 2; max-width: 670px; margin: 0 auto 8px; padding: 5px 8px 7px;
  border: 1px solid #3a5148; border-radius: 9px; background: #14201f; text-align: center;
}
.replay-summary { display: flex; justify-content: center; gap: 8px; align-items: center; font-size: 12px; color: var(--sub); }
#rp-clock { color: var(--lime); font-variant-numeric: tabular-nums; }
.replay-scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: stretch; margin-top: 5px; }
.replay-team { display: grid; align-content: center; gap: 2px; min-width: 0; padding: 4px 6px; border-radius: 5px; }
.replay-team strong { font-size: clamp(12px, 2vw, 17px); line-height: 1.15; overflow-wrap: anywhere; }
.replay-team small { font-size: 11px; line-height: 1; color: var(--sub); }
.home-team { background: #233b60; border-left: 3px solid #82aaff; }
.away-team { background: #502e2b; border-right: 3px solid #ff8a79; }
#rp-sc { align-content: center; padding: 2px clamp(7px, 2vw, 14px); background: #0b1515; border-radius: 5px; font-size: clamp(22px, 4vw, 30px); color: var(--lime); white-space: nowrap; font-variant-numeric: tabular-nums; }
#rp-pens { margin-top: 4px; font-size: 12px; color: var(--gold); font-weight: 800; }
.replay-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px 9px; margin-top: 6px; }
.replay-controls button { padding: 5px 10px; }
.match .screen-help { text-align: center; }
.replay-result { display: grid; justify-items: center; gap: 4px; margin-top: 10px; }
.replay-result strong { font-size: 24px; line-height: 1.15; }
.rp-actions { scroll-margin-top: 110px; }

@media (max-width: 1079px) {
  #top { grid-template-columns: auto minmax(0, 1fr) auto; padding-right: 12px; }
  .club-status { padding-left: 6px; }
  #tabs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); top: var(--top-height); border-bottom: 1px solid #293b39; padding: 4px 8px; }
  #tabs .nav-group { display: contents; }
  #tabs button { min-height: 48px; padding: 3px; flex-direction: column; justify-content: center; gap: 2px; }
  #tabs button span { font-size: 12px; }
  #tabs button.on { box-shadow: inset 0 -2px var(--lime); }
  #tabs button #goal-badge { position: absolute; top: 0; right: 2px; min-width: 13px; height: 16px; padding: 0 4px; }
  .lineup-selection { top: calc(var(--top-height) + 62px); }
}
@media (max-width: 760px) {
  :root { --top-height: 56px; }
  #top { position: static; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; padding-right: 8px; }
  #top .brand { padding-left: 8px; gap: 6px; }
  .b-logo { width: 28px; height: 28px; border-radius: 7px; }
  .b-logo .ui-icon { width: 21px; height: 21px; }
  .b-name { font-size: 15px; }
  .club-status { display: none; }
  #top .stat { padding: 5px 7px; font-size: 12px; gap: 4px; }
  .stat .ui-icon { width: 15px; height: 15px; }
  #top .stat:last-child:not(:has(#st-next:empty)) { display: grid; grid-template-columns: auto auto; gap: 1px 4px; }
  #st-next { grid-column: 2; font-size: 9px; line-height: 1; }
  #tabs { top: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #view { padding: 14px 12px 78px; }
  .lobby { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .lobby-hero { min-height: 280px; }
  .lobby-side { grid-template: 1fr / repeat(2, minmax(0, 1fr)); gap: 9px; }
  .lobby-module { min-height: 105px; padding: 10px; }
  .lobby-roster .roster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roster-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 7px; }
  .goods { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 7px; }
  .lobby-roster { margin-top: 15px; }
  .lineup-selection { position: fixed; inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px; margin: 0; z-index: 10; }
  #view:has(.lineup-selection:not([hidden])) { padding-bottom: 120px; }
}
@media (max-width: 520px) {
  .match-modes, .cup-cards { grid-template-columns: 1fr; }
  .recent-play > span { display: none; }
  .shop-feature { grid-template-columns: 1fr; }
  .shop-art { padding: 10px; }
  .shop-art img { width: 110px; }
  .sbars { grid-template-columns: minmax(0, 1fr); }
  .sbar { grid-template-columns: minmax(46px, auto) minmax(24px, 1fr) 28px 37px; gap: 5px; font-size: 13px; }
  .sbar b { font-size: 14px; }
  .sbar .pv { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-card, #tabs button { transition: none; }
}

/* 티켓 안내 · 영입판(2026-11-19) */
.tnote { margin: 8px 0; padding: 10px 14px; border-radius: 12px; background: #3a2a0a; border: 2px solid var(--gold); font-size: 16px; }
.seal.opened { opacity: .45; cursor: default; } .seal.tearing { animation: tear .5s ease-in forwards; }
@keyframes tear { 50% { transform: scale(1.12) rotate(-4deg); } 100% { transform: scale(.6) rotate(8deg); opacity: 0; } }

/* 등급 올리기(2026-11-19) */
.gup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--panel2); margin-bottom: 10px; border: 2px dashed #ffffff22; }
.gup.ready { border: 2px solid var(--gold); background: #3a2a0a; box-shadow: 0 0 14px #ffc83d44; }
.gup button { margin-left: auto; }

/* 신화(2026-11-19) */
:root { --M: #d6f1ff; }
.g-M { border-left-color: var(--M); } .gt-M { color: #9fe3ff; text-shadow: 0 0 8px #7fd0ff; font-weight: 900; }
.card.g-M { box-shadow: 0 0 16px #8fd8ff88; background: linear-gradient(135deg, #1d2a40, #2a1d40 50%, #1d3a3a); }
.tok.g-M .tk-face { border-color: var(--M); box-shadow: 0 0 14px #8fd8ff; }
.myths { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.myth { background: linear-gradient(180deg, var(--panel2), var(--panel)); border-radius: 16px; padding: 12px; border: 2px solid #ffffff14; display: flex; flex-direction: column; gap: 8px; }
.myth.ready { border-color: #9fe3ff; box-shadow: 0 0 18px #7fd0ff66; } .myth.done { border-color: var(--gold); }
.myth .mh { display: flex; gap: 10px; align-items: center; } .myth .mh img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: #0004; }
.myth .mh b { font-size: 19px; }
.mslots { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.ms { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 9px; background: #ffffff0a; font-size: 13px; border-left: 4px solid #ffffff22; }
.ms.empty { cursor: pointer; border: 1px dashed #ffffff33; border-left-width: 4px; } .ms.empty:hover { border-color: var(--gold); } .ms.empty b { color: var(--gold); }
.ms.got { background: #ffffff14; } .ms:first-child { grid-column: 1 / -1; }
.mbar { position: relative; height: 18px; border-radius: 9px; background: #ffffff12; overflow: hidden; } .mbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #7fd0ff, #c77dff); }
.mbar span { position: relative; display: block; text-align: center; font-size: 12px; font-weight: 800; line-height: 18px; }
.mdone { text-align: center; font-weight: 900; color: var(--gold); }
