: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); }
.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; }

/* 팩 카드 덮개 · 모든 등급에 같은 포장 그림을 쓴다. */
.flips { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.flips .fcard { position: relative; aspect-ratio: 2 / 3; border-radius: 8px; }
.flips .fcard:not(.on) { overflow: hidden; cursor: grab; touch-action: none; user-select: none; }
.flips .fcard.on { cursor: pointer; }
.flips .fin { position: absolute; inset: 0; border-radius: 8px; pointer-events: none; }
.flips .packet-cover {
  position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; overflow: hidden; border-radius: inherit;
  border: 1px solid #c8a67a; background: radial-gradient(ellipse at 60% 25%, #91714e, #4d3928 66%, #33271e);
  box-shadow: inset 0 0 0 3px #32251adb, inset 0 0 0 4px #a5805c, 0 3px 5px #0d0906ad;
  transform: translateY(var(--pack-pull, 0px)); transition: transform .21s cubic-bezier(.18,.82,.28,1), opacity .2s ease-out; pointer-events: none;
}
.pack-open .pack-foil { aspect-ratio: 1; height: auto; clip-path: polygon(21.5% 8%, 79.8% 8.9%, 77% 32%, 77% 71%, 78.6% 95.2%, 21% 90.2%, 22.8% 67%, 22.8% 31%); user-select: none; }
.flips .packet-cover img { width: 121%; max-width: none; }
.packet-grip { position: absolute; width: 9px; height: 9px; top: 9px; left: calc(50% - 4.5px); border: solid #ffdfab; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.flips .fcard.pulling { cursor: grabbing; }
.flips .fcard.pulling .packet-cover { transition: none; will-change: transform; }
.flips .fcard.unsealing .packet-cover { transform: translateY(103%); opacity: .72; }
.flips .fcard.on .packet-cover { visibility: hidden; }
.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.4fr) minmax(300px, 1fr); gap: 14px; align-items: start; margin-top: 12px; }
.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 { outline: 3px solid var(--lime); outline-offset: 3px; }
.tok.drop-denied .tk-face { outline: 3px solid var(--bad); outline-offset: 3px; }
.tok.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); }
.drag-caption {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: max-content; max-width: 185px;
  padding: 4px 7px; border-radius: 5px; background: #111b1b; color: var(--text); font-size: 11px; line-height: 1.25; text-align: center;
}
body:has(.lineup-dragging) #guide, body:has(.lineup-dragging) #tut-line { opacity: .22; pointer-events: none; }
body:has(.lineup-dragging) #lineup-dock { pointer-events: 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: pan-y;
  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: 54px minmax(28px, 1fr) 67px 46px; align-items: center; gap: 6px; font-size: 14px; }
.sbar .sk { font-weight: 800; color: var(--sub); }
.sbar .sk[data-role="attack"] { color: #ffad69; }
.sbar .sk[data-role="midfield"] { color: #79dfaa; }
.sbar .sk[data-role="defense"] { color: #83bfff; }
.sbar .track { position: relative; height: 14px; border-radius: 7px; background: #ffffff10; overflow: hidden; }
.stat-stack { position: absolute; inset: 0; display: flex; align-items: stretch; }
.stat-stack i { flex: none; }
.stat-base { background: #69aef0; }
.stat-grade { background: #efc06a; }
.stat-level { background: #71d7a0; }
.stat-enhancement { background: #c08bea; }
.stat-job { background: #45cabc; }
.stat-study { background: #f9a86b; }
.stat-honors { background: #e889de; }
.honors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-block: 18px; }
.honors-panel h2 { margin-top: 0; }
.honors-panel ul, .honors-panel ol, .event-record ul { list-style: none; padding: 0; margin: 0; }
.honors-panel li, .event-record li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #ffffff16; }
.honors-panel .my-mvp { color: #dbf98c; font-size: 1.08rem; padding: 10px; background: #b7ff3a16; border-radius: 8px; }
.honors-prize { margin-bottom: 0; color: #ffd885; }
.honor-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.honor-badges span { padding: 6px 10px; border: 1px solid #d1a468; border-radius: 8px; color: #ffdb8e; background: #d1a46818; }
.honor-badges small { margin-left: 5px; color: #edf0dc; }
.player-bio { margin: 6px 0 10px; padding: 7px 14px; border-left: 3px solid #75c5ff; background: #75c5ff0d; }
.player-bio summary { width: fit-content; color: #b7deff; cursor: pointer; }
.player-bio p { margin: 8px 0 6px; overflow-wrap: anywhere; }
.player-bio a { color: #9ed9ff; margin-right: 12px; }
.bio-line { min-width: 0; max-width: 100%; margin: 3px 0; color: #b7deff; font-size: .85rem; font-weight: 500; }
.bio-line summary { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.bio-line summary::-webkit-details-marker { display: none; }
.bio-line summary:hover, .bio-line summary:focus-visible { color: #e4f3ff; text-decoration: underline; }
.bio-line[open] summary { white-space: normal; overflow-wrap: anywhere; }
.flip-slot { min-width: 0; }
.flip-slot > .bio-line { display: none; text-align: center; }
.flip-slot:has(> .fcard.on) > .bio-line { display: block; }
.roster .rs, .rs-body { min-width: 0; max-width: 100%; }
.rs-body { overflow-wrap: anywhere; }
.records-panes { display: flex; flex-wrap: wrap; margin-block: 12px 20px; }
.records-scope { margin-top: 15px; }
.event-record summary { cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; }
.event-record summary span { color: #ffd885; }
.playoff-offer { position: fixed; right: 16px; bottom: 22px; width: min(92vw, 320px); z-index: 110; padding: 18px; box-shadow: 0 10px 35px #0009; border-color: #d1a468; }
.playoff-offer p { margin-block: 8px 13px; }
.pack-open { position: relative; }
.pack-actions { margin-top: 12px; justify-content: center; }
#flip-hint { min-height: 1.5em; }
.flips .fcard { width: 100%; border: 0; padding: 0; background: none; min-width: 0; }
.flips .fcard:focus-visible, .pack-wrapper:focus-visible { outline: 2px solid #e1ff84; outline-offset: 4px; }
.laid-flips .fcard { animation: lay-card .25s ease-out var(--lay-delay) both; }
.solo-flip { position: relative; display: grid; width: min(220px, 65vw); grid-template-columns: minmax(0, 1fr); margin: auto; }
.pack-open.await-tear { overflow: hidden; border-radius: 8px; }
.pack-open.await-tear .solo-flip { visibility: hidden; }
.pack-wrapper { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; background: transparent; cursor: grab; touch-action: none; user-select: none; overflow: hidden; }
.pack-wrapper img { display: block; width: min(296px, 82vw); pointer-events: none; transform: translateY(var(--pack-pull, 0px)); transition: transform .21s cubic-bezier(.18,.82,.28,1), opacity .22s ease; }
.pack-wrapper.pulling { cursor: grabbing; }
.pack-wrapper.pulling img { transition: none; will-change: transform; }
.pack-wrapper.tearing img { transform: translateY(55%); opacity: 0; }
@keyframes lay-card { from { opacity: 0; transform: translateY(-18px) scale(1.05) rotate(-3deg); } to { opacity: 1; transform: none; } }
@media (max-width: 460px) {
  #flip-hint { min-height: 2.75em; }
  #modal-body:has(> .pack-open) { display: flex; flex-direction: column; }
  #modal-body > .pack-open { order: 1; }
  .pack-actions { justify-content: start; margin: 0 0 10px; }
  #flip-all { padding: 8px 17px; font-size: 15px; }
  .pack-open.await-tear ~ .pack-actions { display: none; }
}
@media (prefers-reduced-motion: reduce) { .laid-flips .fcard { animation: none; } .flips .packet-cover, .pack-wrapper img { transition: none; } }
.stat-value { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat-lv10 { color: var(--sub); }
.stat-tier { font-size: 11px; font-weight: 750; }
.sbar b { text-align: right; font-size: 16px; }
.stat-levels { margin-left: 4px; }
.stat-help { margin: 5px 0 0; }
.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-free { width: 100%; margin: 10px 0 5px; }
.enh-gauge-guide { margin: -4px 0 10px; }
.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-grade-card, .enh-m {
  --enh-badge-bg: #3b4a4c;
  --enh-badge-fg: #eef2f3;
}
.enh-grade-card.g-R, .enh-m.g-R {
  background: #1c3853;
  --enh-badge-bg: #385c80;
  --enh-badge-fg: #edf7ff;
}
.enh-grade-card.g-U, .enh-m.g-U {
  background: #492a34;
  --enh-badge-bg: #754052;
  --enh-badge-fg: #fff0f1;
}
.enh-grade-card.g-E { --enh-badge-bg: #553a6b; --enh-badge-fg: #f3e9ff; }
.enh-grade-card.g-L { --enh-badge-bg: #63502d; --enh-badge-fg: #fff4ce; }
.enh-grade-card.g-M { --enh-badge-bg: #2c4e66; --enh-badge-fg: #e8f5ff; }
.enh-grade-card .ov {
  position: static; float: right; display: grid; justify-items: end; gap: 4px;
  margin: 0 0 4px 7px; text-align: right; line-height: 1.06;
  font-variant-numeric: tabular-nums;
}
.enh-grade-card .nm { padding-right: 0; word-break: keep-all; overflow-wrap: anywhere; }
.enh-grade-badge {
  padding: 3px 5px; border-radius: 4px; white-space: nowrap;
  background: var(--enh-badge-bg); color: var(--enh-badge-fg);
  font-size: 13px; font-weight: 800; line-height: 1.18;
}
.enh-m.g-R .gt-R, .enh-m.g-U .gt-U { color: var(--enh-badge-fg); font-weight: 800; }
.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; }
.collection-honor { display: block; margin: 3px 4px 1px; color: #ffda8b; font-size: 11px; }

/* 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-intro {
  display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding: clamp(18px, 4vw, 40px); margin: 0 0 16px; border: 1px solid #55634b; border-radius: 16px;
  background: linear-gradient(90deg, #111b18, #14211ddb 45%, #14211d50), url('/art/ui/stadium.webp') center 53% / cover;
}
.cup-intro h1 { margin: 0 0 6px; font-size: clamp(28px, 5vw, 49px); line-height: 1.08; }
.cup-intro p { margin: 0; display: flex; align-items: center; gap: 6px; color: #cbd8d0; }
.cup-intro p b { color: var(--lime); }
.cup-intro .ui-icon { width: 19px; height: 19px; }
.cup-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cup-tone-C { --cup-tone: #efb686; --cup-deep: #925435; --cup-glint: #ffd5ad; }
.cup-tone-B { --cup-tone: #cbdfef; --cup-deep: #657b92; --cup-glint: #f0f8ff; }
.cup-tone-A { --cup-tone: #ffce65; --cup-deep: #ad6a21; --cup-glint: #fff1a2; }
.cup-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr auto;
  min-width: 0; padding: clamp(14px, 2vw, 24px); gap: 6px 12px;
  background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--cup-tone), transparent 80%), transparent 65%), #151e1f;
  border-color: color-mix(in srgb, var(--cup-tone) 44%, #233332);
}
.cup-stage h2 { grid-area: 1 / 1; align-self: end; margin: 0; font-size: clamp(21px, 3vw, 32px); color: var(--cup-tone); }
.cup-entry-info { grid-area: 2 / 1; margin: 0; color: #b7c6bf; }
.cup-stage .cup-trophy { grid-area: 1 / 2 / 3 / 3; align-self: center; }
.cup-stage > button { grid-column: 1 / -1; min-height: 44px; width: 100%; }
.cup-entry-rewards {
  grid-column: 1 / -1; margin: 6px 0 8px; padding: 10px; border: 1px solid #ffffff12; border-radius: 9px; background: #080e1080;
}
.cup-entry-rewards > b { color: var(--cup-glint); }
.cup-entry-rewards p { margin: 6px 0; font-size: .84rem; }
.cup-entry-rewards small, .cup-entry-rewards p span { color: #b7c6bf; }
.cup-trophy { width: clamp(62px, 9vw, 100px); aspect-ratio: 1; position: relative; }
.cup-trophy span {
  position: absolute; inset: 15% 22% 39%; z-index: 1; border-radius: 12% 12% 47% 47%;
  background: linear-gradient(110deg, var(--cup-deep) 5%, var(--cup-tone) 34%, var(--cup-glint) 45%, var(--cup-tone) 63%, var(--cup-deep) 95%);
  border-top: 3px solid var(--cup-glint); box-shadow: inset 0 -6px 10px #0003;
}
.cup-trophy::before, .cup-trophy::after {
  content: ''; position: absolute; top: 20%; width: 29%; height: 28%;
  border: 5px solid var(--cup-tone); box-shadow: inset 0 0 0 1px var(--cup-deep), 0 1px 1px #0007;
}
.cup-trophy::before { left: 7%; border-radius: 20% 4% 24% 80%; }
.cup-trophy::after { right: 7%; border-radius: 4% 20% 80% 24%; }
.cup-trophy i {
  position: absolute; left: 28%; right: 28%; top: 60%; bottom: 10%;
  background: linear-gradient(100deg, var(--cup-deep), var(--cup-glint), var(--cup-deep));
  clip-path: polygon(34% 0, 66% 0, 66% 48%, 100% 68%, 100% 98%, 0 98%, 0 68%, 34% 48%);
}
.cup-awards { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0; list-style: none; }
.cup-awards li { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; background: #f2f6ed0a; border: 1px solid #f2f6ed1c; border-radius: 7px; padding: 4px 7px; font-size: .83rem; }
.cup-awards img { width: 25px; height: 25px; object-fit: contain; border-radius: 3px; }
.cup-awards .ui-icon { color: var(--cup-tone); width: 18px; height: 18px; }
.cup-presentation { min-width: 0; }
.cup-banner {
  position: relative; display: flex; align-items: center; gap: clamp(7px, 2vw, 23px); padding: 8px clamp(11px, 3vw, 24px);
  min-height: 88px; margin-bottom: 12px; border: 1px solid color-mix(in srgb, var(--cup-tone) 45%, #233332); border-radius: 12px;
  background: radial-gradient(ellipse at 14% 40%, color-mix(in srgb, var(--cup-tone), transparent 76%), transparent 70%), #152020;
}
.cup-banner .cup-trophy { flex: 0 0 auto; }
.cup-banner.champion .cup-trophy { width: clamp(85px, 13vw, 144px); animation: cup-glint .7s ease-out; }
.cup-banner.champion::after {
  content: '✦'; color: var(--cup-glint); position: absolute; inset: 12% auto auto clamp(74px, 13vw, 144px);
  font-size: 18px; animation: cup-glint 1s .2s ease-out both;
}
@keyframes cup-glint { 0% { opacity: .2; transform: scale(.82); } 50% { opacity: 1; transform: scale(1.07); } 100% { opacity: 1; transform: scale(1); } }
.cup-banner p { margin: 0 0 3px; color: var(--cup-tone); font-weight: 800; }
#modal .cup-result-modal .cup-banner h2 { margin: 0; font-size: clamp(18px, 3.8vw, 32px); overflow-wrap: anywhere; }
.cup-medal {
  flex: none; margin-left: auto; padding: 4px 9px; color: var(--cup-glint);
  border: 1px solid currentColor; border-radius: 5px; font-size: .82rem; white-space: nowrap;
}
.cup-result-awards { margin: 0 0 14px; padding: 10px; border-radius: 9px; background: #ffffff09; }
.cup-result-awards h3, .cup-result-awards p { margin: 2px 0 8px; }
.cup-result-awards button, .cup-actions button { min-height: 42px; }
.cup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.cup-bracket-scroll { overflow-x: auto; border-radius: 8px; scrollbar-color: #718579 #182222; }
.cup-bracket-grid {
  --cup-link-gap: 28px; --cup-link: #5f736c; --cup-path: #ffce65; --cup-mine: #dbf779;
  display: grid; grid-template-columns: repeat(var(--cup-rounds), minmax(0, 1fr)); gap: var(--cup-link-gap);
  min-width: calc(var(--cup-rounds) * 157px + (var(--cup-rounds) - 1) * var(--cup-link-gap));
  padding: 0 3px 7px;
}
.cup-round h3 { margin: 0 0 6px; font-size: .87rem; color: #a6b7ae; }
.cup-round.current h3 { color: var(--cup-glint); }
.cup-round-games {
  display: grid; grid-template-rows: repeat(var(--cup-games), 1fr); min-height: calc(var(--cup-matches) * 96px);
}
.cup-slot { position: relative; display: grid; align-items: center; padding: 4px 0; }
.cup-slot::before, .cup-slot::after { content: ''; position: absolute; height: 50%; pointer-events: none; }
.cup-round:not(:last-child) .cup-slot::after {
  border: 1px solid var(--cup-link); border-left: 0; width: calc(var(--cup-link-gap) / 2);
  left: 100%; top: 50%; border-bottom: 0;
}
.cup-round:not(:last-child) .cup-slot:nth-child(even)::after { top: 0; border-top: 0; border-bottom: 1px solid var(--cup-link); }
.cup-round:not(:first-child) .cup-slot::before {
  border-top: 1px solid var(--cup-link); width: calc(var(--cup-link-gap) / 2); right: 100%; top: 50%;
}
.cup-round:not(:last-child) .cup-slot.advanced::after { border-color: var(--cup-path); }
.cup-round:not(:first-child) .cup-slot:has(.cup-match-card:not(.waiting))::before { border-color: var(--cup-path); }
.cup-match-card { min-width: 0; border: 1px solid #42574e; border-radius: 8px; background: #172323; }
.cup-match-card.waiting { border-style: dashed; }
.cup-slot.mine .cup-match-card { border-color: var(--cup-mine); }
.cup-match-card.cup-unveil { animation: cup-unveil .34s var(--cup-delay) both; }
@keyframes cup-unveil { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.cup-team { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; min-height: 29px; align-items: center; gap: 6px; padding: 3px 6px; font-size: .82rem; }
.cup-team + .cup-team { border-top: 1px solid #ffffff13; }
.cup-team.advanced { background: #ffce6514; color: var(--cup-path); }
.cup-team.my-team .cup-team-name { font-weight: 800; color: var(--cup-mine); }
.cup-team-crest { display: grid; place-items: center; width: 25px; height: 26px; color: hsl(var(--club-hue) 88% 85%); }
.cup-team-crest svg { width: 24px; height: 100%; }
.cup-team-crest .cup-shield { fill: hsl(var(--club-hue) 43% 26%); stroke: hsl(var(--club-hue) 57% 54%); }
.cup-team-crest.empty { background: #ffffff10; border-radius: 5px; }
.cup-team-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cup-team-name small { margin-left: 5px; opacity: .8; }
.cup-score { font-variant-numeric: tabular-nums; font-weight: 900; }
.cup-match-card footer { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 5px 3px; font-size: .72rem; }
.cup-match-card footer button { padding: 3px 5px; min-height: 29px; margin-left: auto; white-space: nowrap; font-size: .73rem; }
.cup-legend { margin: 6px 0; color: #b5c5bc; font-size: .8rem; }
.cup-legend i { display: inline-block; width: 8px; height: 8px; margin: 0 2px 1px 5px; border-radius: 50%; background: #dbf779; }
.cup-legend i + i { background: #ffce65; }
.cup-scroll-hint { margin: 5px 0; color: #b5c5bc; font-size: .78rem; }
.cup-record > div { display: flex; align-items: center; gap: 7px; }
.cup-record h2 { margin: 0 0 3px; font-size: 1.15rem; }
.cup-record > strong { margin-right: 12px; }
.cup-record > span { color: var(--sub); }
@media (max-width: 540px) {
  .cup-bracket-grid { --cup-link-gap: 23px; }
  .cup-banner .cup-trophy { width: 65px; }
  .cup-banner.champion .cup-trophy { width: 80px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  #modal .box.cup-result-modal { max-height: 98dvh; padding: 7px 12px; }
  .cup-banner { min-height: 53px; margin-bottom: 6px; padding: 2px 9px; }
  .cup-banner .cup-trophy { width: 50px; }
  .cup-banner.champion .cup-trophy { width: 64px; }
  #modal .cup-result-modal .cup-banner h2 { font-size: 20px; }
  .cup-actions { margin-bottom: 8px; }
  .cup-actions button { min-height: 34px; padding-block: 5px; }
  .cup-round-games { min-height: calc(var(--cup-matches) * 62px); }
  .cup-team { min-height: 23px; padding-block: 2px; }
  .cup-team-crest { height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cup-banner.champion .cup-trophy, .cup-banner.champion::after, .cup-match-card.cup-unveil { animation: none; }
}
.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.compared, .pitch12 .tok:focus-visible { z-index: 3; }
.tok.compared .tk-face { outline: 3px solid #83bcff; outline-offset: 2px; }
.tok.compared .tk-name { color: #101e30; background: #a2cbff; }
.pitch-apt {
  position: absolute; top: -3px; left: -4px; min-width: 19px; padding: 1px 3px; border: 1px solid #0b1917;
  border-radius: 5px; font-size: 11px; line-height: 1.25; text-align: center; background: #264139; color: #f2f6eb;
}
.pitch-apt.fit-0 { font-size: 9px; }
.pitch-apt.fit-6 { background: #dbf581; color: #162016; }
.pitch-apt.fit-5 { background: #a7dbaf; color: #11251b; }
.pitch-apt.fit-4 { background: #aad0fc; color: #132847; }
.pitch-apt.fit-3 { background: #f3ce88; color: #342613; }
.pitch-apt:is(.fit-2, .fit-1, .fit-0) { background: #503530; color: #ffd0c0; }
.lineup-inspector {
  --lineup-sticky-top: calc(var(--top-height) + 8px);
  position: sticky; top: var(--lineup-sticky-top); max-height: calc(100dvh - var(--lineup-sticky-top) - 10px);
  min-width: 0; overflow-y: auto; scrollbar-width: thin;
}
.lineup-tabs { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 7px; }
.lineup-inspector .panel { padding: 12px; }
#lineup-empty { margin: 0; }
.lineup-reference { margin: 0 0 7px; color: var(--sub); font-size: 12px; }
.lineup-reference b { color: var(--text); }
.lineup-compare { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 8px; font-size: 13px; }
.lineup-compare thead td, .lineup-compare tbody th { width: 20%; color: var(--sub); font-weight: 650; text-align: left; }
.lineup-compare th, .lineup-compare td { border-bottom: 1px solid #324640; padding: 4px 5px; }
.lineup-compare thead th { vertical-align: top; }
.lineup-compare tbody td { text-align: center; font-variant-numeric: tabular-nums; }
.lineup-person { display: flex; align-items: center; gap: 5px; min-width: 0; text-align: left; }
.lineup-person strong, .lineup-person small { display: block; overflow-wrap: anywhere; }
.lineup-person small { color: var(--sub); font-size: 11px; font-weight: 550; }
.lineup-person .face { display: grid; place-items: center; width: 34px; height: 34px; flex: none; object-fit: cover; object-position: top; border-radius: 50%; background: #21352e; }
.lineup-person .flip { transform: scaleX(-1); }
.lineup-compare.paired thead th:nth-child(2) { border-top: 2px solid var(--lime); }
.lineup-compare.paired thead th:nth-child(3) { border-top: 2px solid #83bcff; }
.lineup-fit { font-weight: 800; }
.lineup-fit:is(.fit-6, .fit-5) { color: #bff585; }
.lineup-fit.fit-4 { color: #a9d0ff; }
.lineup-fit.fit-3 { color: var(--gold); }
.lineup-fit:is(.fit-2, .fit-1, .fit-0, .fit--1) { color: #ffa99c; }
.lineup-selection-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 9px; }
.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-move-hint, #lineup-feedback { margin: 0 0 8px; font-size: 12px; }
#lineup-feedback, .swap-player .swap-reason { color: #ffc1b7; }
.swap-player .swap-reason { flex-basis: 100%; }
.swap-unavailable { border-color: #6b423c; }
#lineup-dock { display: none; }
.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(4, 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); }
.career-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.career-option { display: grid; align-content: start; gap: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 12px; }
.career-option.chosen { border-color: var(--lime); }
.career-option h4, .career-option p { margin: 0; }
.career-option small { color: var(--lime); }
.career-skill { color: #6dded1; }
.squad-filters {
  display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 0 0 16px; padding: 12px;
  border: 1px solid #394d46; border-radius: 12px; background: #162322;
}
.squad-filters label { display: grid; gap: 4px; min-width: 0; flex: 0 1 195px; color: #c5d4c9; font-size: .81rem; font-weight: 750; }
.squad-filters select { min-width: 0; min-height: 42px; width: 100%; color: var(--text); font-weight: 650; }
.squad-filters button { min-height: 42px; }
.squad-filters > span { align-self: center; }
.study-atlas { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(250px, 1fr); gap: 14px; margin-bottom: 18px; }
.study-map {
  align-self: start; position: relative; min-width: 0; aspect-ratio: 3 / 2;
  border: 1px solid #64867a; border-radius: 15px; overflow: hidden; isolation: isolate;
  background: #173c3e url('/art/ui/study-atlas.webp') center / cover no-repeat;
}
.study-map::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #0d1e25b8, transparent 28%, transparent 78%, #0d1e2536); }
.study-map-caption {
  position: absolute; left: 12px; bottom: 9px; display: flex; align-items: center; gap: 6px;
  margin: 0; padding: 5px 10px; color: #e4eadd; background: #0b191ddd; border-radius: 6px; font-size: .8rem;
}
.study-map-caption .ui-icon { width: 16px; height: 16px; }
.study-pin {
  position: absolute; left: var(--pin-x); top: var(--pin-y); translate: -50% -50%;
  display: grid; justify-items: center; gap: 3px; width: max-content; min-width: 57px; padding: 3px 7px;
  border: 1px solid transparent; color: #f5f6f0; background: #112522bd; border-radius: 9px; line-height: 1;
}
.study-pin.locked { background: #142025df; }
.study-pin[aria-pressed="true"] { border-color: #d9ff79; background: #172a20; box-shadow: 0 0 0 2px #101b19ae; }
.study-pin:focus-visible { z-index: 1; outline: 2px solid #fff; outline-offset: 2px; }
.study-pin > span:last-child { padding: 2px 1px 3px; font-size: clamp(.7rem, 1.2vw, .95rem); font-weight: 850; white-space: nowrap; }
.study-pin-mark {
  display: grid; place-items: center; width: 33px; height: 34px; color: #e2fc97;
  background: #27402e; border: 1px solid currentColor; border-radius: 50%;
}
.study-pin.locked .study-pin-mark { color: #d3dcd9; background: #2c3739; }
.study-pin-mark .ui-icon { width: 19px; height: 19px; }
.study-site { min-width: 0; margin: 0; padding: clamp(13px, 2vw, 24px); background: radial-gradient(ellipse at top right,#2e443338,transparent 70%), #162222; }
.study-site-head { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.study-site-head h2, .study-site-head p, .study-log h2 { margin: 0; }
.study-site-head p { margin-top: 3px; color: #b3c9c2; }
.study-site-icon { display: grid; place-items: center; color: var(--lime); width: 46px; height: 46px; border-radius: 10px; background: #2d4134; }
.study-site-icon .ui-icon { width: 26px; height: 26px; }
.study-benefits, .study-unlock { padding: 10px 12px; border-radius: 8px; border: 1px solid #5f78645e; background: #10201b; margin: 0 0 12px; }
.study-benefits p, .study-unlock p { margin: 5px 0; line-height: 1.5; }
.study-benefits dl { margin: 5px 0 0; display: grid; gap: 6px; }
.study-benefits dl > div { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 6px; }
.study-benefits dt { color: #a7c2b8; }
.study-benefits dd { margin: 0; }
.study-unlock { border-color: #b592564f; background: #30291b; }
.study-unlock strong { display: flex; align-items: center; gap: 5px; color: #ffda92; }
.study-unlock .ui-icon { width: 17px; height: 17px; }
.study-unlock small, .study-ready { color: #bdd0c8; }
.study-site button { min-height: 44px; }
.study-ready, .study-expire { margin: 9px 0; }
.study-expire { color: #ffda92; }
.study-log-player { display: flex; align-items: center; gap: 8px; }
.study-log-player img { width: 34px; height: 34px; object-fit: contain; border-radius: 5px; background: #1c2d2a; }
@media (max-width: 900px) { .study-atlas { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 540px) {
  .squad-filters label { flex: 1 1 130px; }
  .study-pin { min-width: 47px; padding: 2px 3px; gap: 1px; }
  .study-pin-mark { width: 27px; height: 27px; }
  .study-pin-mark .ui-icon { width: 16px; height: 16px; }
  .study-map-caption { left: 7px; bottom: 6px; padding: 3px 6px; font-size: .69rem; }
}
.study-select { display: grid; gap: 6px; }
.study-choices { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0; border: 1px solid var(--line); border-radius: 8px; }
.study-history .color { margin: 6px 0; }
.duty-list { display: grid; gap: 8px; margin-bottom: 12px; }
.duty-list label { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); align-items: center; gap: 8px; }
.duty-list small { display: block; }
.duty-inactive { opacity: .66; }
.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; flex-wrap: wrap; gap: 3px 10px; color: var(--sub); font-size: 12px; }
.stat-legend span { display: inline-flex; align-items: center; gap: 4px; }
.stat-legend i { width: 9px; height: 9px; border-radius: 2px; }
.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; }
/* 2026-11-22 선생님 「탭 넘길 때마다 창 크기가 달라져 어지러움」: 선수 창은 위에 붙여서 그림·탭은 제자리, 아래 내용만 길어졌다 줄었다 */
#modal:has(> .box.player-detail) { align-items: flex-start; padding-top: max(16px, 4vh); }
@media (max-width: 700px) { #modal:has(> .box.player-detail) { padding-top: 6px; } }
.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-inspector { --lineup-sticky-top: calc(var(--top-height) + 61px); }
  .lineup-wrap .tok { width: 68px; }
  .lineup-wrap .tk-face { width: 52px; height: 52px; }
}
@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-wrap { grid-template-columns: minmax(0, 1fr); }
  .lineup-wrap .pitch-col { display: contents; }
  .lineup-inspector { position: static; max-height: none; overflow: visible; grid-row: 2; scroll-margin-top: 112px; }
  .lineup-tabs { position: static; }
  #lineup-dock {
    display: flex; gap: 6px; position: fixed; inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px;
    z-index: 13; padding: 6px; border: 1px solid #688360; border-radius: 8px; background: #172623;
  }
  #lineup-jump { flex: 1; min-width: 0; }
  #view:has(#lineup-dock:not([hidden])) { padding-bottom: 132px; }
}
@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: 45px minmax(24px, 1fr) 58px 43px; gap: 5px; font-size: 13px; }
  .sbar b { font-size: 14px; }
  .stat-tier { font-size: 10px; }
}
@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; }
.ms.empty { text-align: left; min-width: 0; }
.ms.empty span { overflow-wrap: anywhere; }
.ms.got { justify-content: flex-start; }
.ms.got img { flex: 0 0 27px; width: 27px; height: 29px; object-fit: contain; border-radius: 5px; background: #0003; }
.ms.got span { min-width: 0; overflow-wrap: anywhere; }
.ms.got b { margin-left: auto; white-space: nowrap; }
#modal .box.myth-picker { max-width: min(900px, 100%); }
.myth-picker h2 { overflow-wrap: anywhere; }
.myth-picker h3 { margin: 10px 0 5px; color: var(--text); }
.myth-picker h3 small { margin-left: 5px; color: var(--sub); }
.myth-candidates { margin: 12px 0; }
.myth-candidates summary { cursor: pointer; font-weight: 800; color: var(--gold); padding: 7px 0; }
.myth-candidates ul { list-style: none; padding: 0; margin: 7px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 6px; }
.myth-candidates li { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 6px 7px; background: var(--panel2); border-radius: 7px; }
.myth-candidates li img { flex: 0 0 35px; width: 35px; height: 35px; object-fit: contain; border-radius: 5px; background: #0003; }
.myth-candidates li span { min-width: 0; overflow-wrap: anywhere; }
.myth-candidates li small { display: block; color: var(--sub); }
.myth-candidate-status { flex: none; margin-left: auto; white-space: nowrap; font-size: 12px; color: var(--sub); }
.myth-candidate-status.win { color: var(--ok); }
.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); }

/* 기록실(2026-11-20) */
.rsec { margin-top: 18px; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rboard { background: var(--panel); border-radius: 14px; padding: 10px 12px; border: 1px solid #ffffff12; }
.rboard h3 { margin: 0 0 6px; font-size: 16px; }
.rboard ol { list-style: none; margin: 0; padding: 0; }
.rboard li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; }
.rboard li.me { background: #ffc83d22; outline: 1px solid #ffc83d66; }
.rboard .rk { width: 26px; text-align: center; font-weight: 900; } .rboard .rw { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rboard .hot { color: #ff8a3a; font-weight: 900; font-size: 12px; }
.rme { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 10px; }
.rme > div { background: var(--panel); border-radius: 14px; padding: 12px; text-align: center; } .rme b { display: block; font-size: 24px; } .rme span { font-size: 12px; color: var(--sub); }

/* 모바일(2026-11-21 선생님 「모바일 화면용 최적화」) */
@media (max-width: 1079px) and (min-width: 761px) { #tabs { grid-template-columns: repeat(15, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  /* 메뉴: 3줄 → 가로로 미는 한 줄(위에 붙어 있음) */
  #tabs { display: flex !important; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; gap: 2px; padding: 4px 6px; -webkit-overflow-scrolling: touch; }
  #tabs::-webkit-scrollbar { display: none; }
  #tabs .nav-group { display: contents; }
  #tabs button { flex: 0 0 58px; min-height: 50px; }
  #tabs button span { font-size: 11px; }
  /* 안내 말풍선: 작게 */
  #guide { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 9px 11px; font-size: 14px; }
  #guide-text { line-height: 1.4; } #guide-btns button { padding: 5px 9px; font-size: 13px; }
  /* 표·창 */
  table.lg { display: block; overflow-x: auto; font-size: 13px; } table.lg td, table.lg th { padding: 4px 5px; }
  #modal { padding: 6px; } #modal .box { padding: 12px; max-height: 94vh; }
  #modal .box.wide { max-width: 100vw; }
  .sbars { grid-template-columns: 1fr; } .sbar { grid-template-columns: 54px 1fr 30px 40px; font-size: 14px; }
  .enh-top { grid-template-columns: 1fr; } .enh-big { font-size: 32px; }
  .myths, .rgrid, .lk-list { grid-template-columns: 1fr; }
  .mslots { grid-template-columns: 1fr 1fr; } .ms { font-size: 12px; }
  .rme { grid-template-columns: repeat(3, 1fr); } .rme b { font-size: 18px; }
  .gform { grid-template-columns: 64px 1fr; }
  .flips { gap: 6px; }
}

@media (max-width: 760px) { .sbar { grid-template-columns: 50px minmax(20px, 1fr) auto auto !important; gap: 4px !important; font-size: 12.5px !important; } .sbar > * { white-space: nowrap; } }
@media (max-height: 500px) and (orientation: landscape) {
  .replay-hud { padding: 2px 6px !important; gap: 2px !important; } .replay-hud > *:not(.replay-scoreboard) { font-size: 11px; }
  .replay-scoreboard { min-height: 0 !important; } .replay-scoreboard * { font-size: 13px !important; line-height: 1.1 !important; } .replay-scoreboard b#rp-sc { font-size: 20px !important; }
}

/* 경기 큰 글씨(2026-11-21 선생님 「골 넣은 선수 GOAL!! 가운데 크게 · 도움까지」「전반 끝·후반 시작 명확히」) */
#rp-wrap { position: relative; }
.rp-big { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; animation: rpbig .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.rp-big[hidden] { display: none; }
.rp-big strong { font-size: clamp(38px, 9vw, 96px); font-weight: 900; letter-spacing: 2px; color: #fff; -webkit-text-stroke: 3px #0b0a12; paint-order: stroke fill; text-shadow: 0 6px 0 #0008, 0 0 30px #fff6; line-height: 1.05; }
.rp-big p { margin: 8px 0 0; padding: 8px 18px; border-radius: 12px; background: #0b0a12cc; color: #fff; font-size: clamp(16px, 2.6vw, 26px); line-height: 1.45; }
.rp-big p span { color: #b9c3d6; font-size: .8em; }
.rp-big.goal strong { color: #ffd84a; font-style: italic; }
.rp-big.goal.ga p { border: 2px solid #8fb6ff; } .rp-big.goal.gb p { border: 2px solid #ff9b8a; }
.rp-big.half { background: #0b0a1299; }
.rp-big.half strong { color: #ffe9a8; }
@keyframes rpbig { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: scale(1); } }

/* 선수 등장 뒤: 카드 오른쪽 · 정보 왼쪽(2026-11-21 · 기존 게임과 같은 방식) */
.figx iframe { left: -30vw; width: 160vw; transition: transform .7s cubic-bezier(.3, .8, .3, 1); }
.figx.side iframe { transform: translateX(30vw); }
.figx.side .figbar { left: auto; right: 20px; bottom: 20px; }
.figside { position: absolute; z-index: 2; left: max(2vw, calc(50vw - 660px)); top: 50%; transform: translateY(-50%); width: min(50vw, 640px); max-height: 88vh; overflow: auto; background: var(--panel); border: 1px solid #3c5148; border-radius: 16px; padding: 16px 18px; color: #fff; animation: figin .45s .25s both; }
.figside .fs-head { position: relative; padding-right: 70px; }
.figside .fs-head h2 { margin: 4px 0; font-size: 30px; }
.figside .fs-head .new { background: #e0405a; border-radius: 5px; padding: 1px 7px; font-size: 13px; }
.figside .fs-ovr { position: absolute; right: 0; top: 0; text-align: center; } .figside .fs-ovr small { display: block; font-size: 12px; color: var(--sub); } .figside .fs-ovr b { font-size: 34px; }
.figside .fs-title { margin: 8px 0 0; font-size: 17px; color: #ffe9a8; } .figside .fs-skill { margin: 6px 0 0; font-size: 16px; } .figside .fs-skill b { color: #ffd84a; }
.figside h3 { margin: 12px 0 6px; }
@keyframes figin { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 760px) {
  .figx.side iframe { transform: none; }
  .figside { left: 8px; right: 8px; width: auto; top: auto; bottom: 74px; transform: none; max-height: 52vh; padding: 12px; }
  .figside .fs-head h2 { font-size: 22px; }
  .figx.side .figbar { left: 0; right: 0; bottom: 16px; }
}

/* 영입판 등급 표시(2026-11-21) */
.rchance { margin: 6px 0 8px; padding: 10px 14px; border-radius: 12px; background: #ffffff0d; border: 1px solid #ffffff22; font-size: 18px; font-weight: 800; text-align: center; }
.rchance span { display: block; font-size: 13px; font-weight: 500; color: var(--sub); margin-top: 2px; }
.rchance.g-E { border-color: #c77dff; background: #c77dff1c; } .rchance.g-L { border-color: #ffc83d; background: #ffc83d1f; box-shadow: 0 0 18px #ffc83d55; } .rchance.g-U { border-color: #ff6b7a; background: #ff6b7a14; } .rchance.g-R { border-color: #5aa8ff; background: #5aa8ff14; }
.roster .rs .rg { font-style: normal; font-size: 11px; font-weight: 900; padding: 1px 6px; border-radius: 8px; background: #ffffff22; }
.roster .rs .rg.gb-N { background: #8a8f9a; color: #fff; } .roster .rs .rg.gb-R { background: #3d7fe0; color: #fff; } .roster .rs .rg.gb-U { background: #d6384b; color: #fff; } .roster .rs .rg.gb-E { background: #8e44d9; color: #fff; } .roster .rs .rg.gb-L { background: #f0b623; color: #1b1300; } .roster .rs .rg.gb-M { background: linear-gradient(90deg, #7cf, #c8f, #fd6); color: #1b1300; }
.roster .rs.hot.g-E { border-color: #c77dff; box-shadow: 0 0 10px #c77dff66; } .roster .rs.hot.g-L { border-color: #ffc83d; box-shadow: 0 0 12px #ffc83d88; } .roster .rs.hot.g-U { border-color: #ff6b7a; box-shadow: 0 0 10px #ff6b7a55; } .roster .rs.hot.g-R { border-color: #5aa8ff; }

/* 편성 화면 손질(2026-11-21 선생님) */
.tok .tk-pos { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 800; line-height: 1.2; padding: 0 5px; border-radius: 6px; white-space: nowrap; }
.tok .tk-pos.pos-FW { background: #d6384b33; color: #ff9aa5; } .tok .tk-pos.pos-MF { background: #3fbf6a33; color: #8ee6a9; } .tok .tk-pos.pos-DF { background: #3d7fe033; color: #9cc3ff; } .tok .tk-pos.pos-GK { background: #f0b62333; color: #ffd76a; }
.lineup-compare i.cmp-up { font-style: normal; color: #3fd16a; font-size: .8em; margin-left: 3px; } .lineup-compare i.cmp-dn { font-style: normal; color: #ff5b5b; font-size: .8em; margin-left: 3px; }
.lineup-compare tr.key th { color: #ffe9a8; }
.swap-candidate .star { font-size: 11px; }

/* EX 스킬(2026-11-21) */
.exrow { align-items: center; } .exrow.off { opacity: .6; } .exrow.ready { outline: 2px solid #ffd84a; background: #ffd84a14; } .exrow.on b { color: #ffd84a; }

.ex-now { margin: 12px 0 0; padding: 12px; border: 2px solid #ffd84a; border-radius: 12px; background: #ffd84a14; text-align: center; font-size: 17px; }

/* 실시간 친선 띠(2026-11-21) */
#live-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 95; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); padding: 12px 16px; border-radius: 16px; background: #14202a; border: 2px solid #ffd84a; box-shadow: 0 8px 30px #000a; font-size: 16px; animation: lvin .35s ease both; }
#live-bar[hidden] { display: none; }
#live-bar small { color: var(--sub); margin-left: 4px; }
@keyframes lvin { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 760px) { #live-bar { flex-wrap: wrap; font-size: 14px; bottom: 8px; } }

/* 수업 대회(2026-11-21) */
.evpanel { border: 2px solid #ffd84a66; margin-bottom: 14px; }
.evpanel .evnow { font-size: 18px; font-weight: 800; color: #ffd84a; }
.evpanel .evp { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 4px 8px; background: #ffffff0b; border-radius: 8px; margin: 3px 0; } .evpanel .evp span:last-child { text-align: right; } .evpanel .evp .w { color: #3fd16a; font-weight: 900; }
.evpanel .evgroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.evpanel table.evt tr.me td { background: #ffd84a1c; } .evpanel b.me { color: #ffd84a; }
.evpanel .evpod { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; } .evpanel .evpod > div { background: #ffffff10; border-radius: 14px; padding: 12px; } .evpanel .evpod b { display: block; font-size: 34px; } .evpanel .evpod .p1 { border: 2px solid #ffd84a; }

/* 새 스킬 알림(2026-11-21) */
#skpop { position: fixed; inset: 0; z-index: 97; background: #000b; display: flex; align-items: center; justify-content: center; padding: 16px; animation: figin .3s both; }
#skpop .skbox { background: var(--panel); border: 3px solid #ffd84a; border-radius: 18px; padding: 20px; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 0 40px #ffd84a55; text-align: center; }
#skpop .skt { font-size: 28px; font-weight: 900; color: #ffd84a; margin-bottom: 12px; animation: rpbig .5s cubic-bezier(.2, 1.4, .4, 1) both; }
#skpop .skrow { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; text-align: left; background: #ffffff0d; border-radius: 12px; padding: 8px 10px; margin: 6px 0; }
#skpop .skrow img { width: 56px; height: 56px; object-fit: cover; object-position: top; border-radius: 10px; } #skpop .skrow img.flip { transform: scaleX(-1); }
#skpop .sknew { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 10px; background: #ffd84a26; color: #ffe9a8; font-weight: 800; font-size: 17px; }
#skpop .skbox { overflow-x: hidden; } #skpop .skrow > div { min-width: 0; }

/* 의견 보내기(2026-11-21) */
.fbform textarea { width: 100%; box-sizing: border-box; margin: 8px 0; padding: 10px; border-radius: 10px; background: #0b1110; color: #fff; border: 1px solid #ffffff2a; font: inherit; font-size: 16px; }
.fbitem .fbtx { white-space: pre-wrap; margin: 6px 0; } .fbitem .fbre { background: #ffd84a14; border-left: 3px solid #ffd84a; padding: 8px 10px; border-radius: 8px; white-space: pre-wrap; }
.fbitem.newr { outline: 2px solid #ffd84a; }
#fb-badge:empty { display: none; }
#tabs button #fb-badge { margin-left: auto; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #ff5b5b; color: #fff; font-size: 11px; text-align: center; }

/* 똑똑한 선발(2026-11-21) */
.sm-pow { font-size: 20px; margin: 8px 0; } .sm-warn { background: #ffd84a1c; border-left: 3px solid #ffd84a; padding: 8px 10px; border-radius: 8px; } .sm-l { margin: 4px 0 8px; padding-left: 20px; } .sm-l li { margin: 3px 0; }

.sm-modes button { display: flex; flex-direction: column; align-items: flex-start; flex: 1; text-align: left; padding: 8px 12px; } .sm-modes button small { font-weight: 500; font-size: 12px; opacity: .85; } .sm-bon { background: #ffffff0d; border-radius: 8px; padding: 6px 10px; }

/* 학생 알림(2026-11-21) */
#ntpop { position: fixed; inset: 0; z-index: 98; background: #000c; display: flex; align-items: center; justify-content: center; padding: 16px; }
#ntpop .ntbox { background: var(--panel); border: 3px solid #5aa8ff; border-radius: 18px; padding: 20px; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; }
#ntpop .ntt { font-size: 26px; font-weight: 900; margin-bottom: 10px; } #ntpop .ntitem { background: #ffffff0d; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; } #ntpop .ntitem p { white-space: pre-wrap; margin: 6px 0 0; line-height: 1.5; }

/* 가로 휴대폰 경기 화면(2026-11-21 「가로로 하니 더 작아졌다」): 경기장은 왼쪽에 화면 높이 끝까지, 점수판·속도 단추는 오른쪽 칸 */
@media (max-height: 500px) and (orientation: landscape) {
  #modal:has(.box.match) { padding: 0; }
  #modal .box.match { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; padding: 6px 8px; box-sizing: border-box; }
  #modal .box.match #modal-body { display: grid; grid-template-columns: auto 160px; gap: 6px 10px; align-items: start; }
  #modal .box.match #rp-wrap { grid-column: 1; grid-row: 1 / span 8; margin: 0; }
  #modal .box.match #modal-body > :not(#rp-wrap) { grid-column: 2; min-width: 0; }
  #modal .box.match .replay-scoreboard { grid-template-columns: 1fr; text-align: center; }
  #modal .box.match .replay-controls { flex-direction: column; align-items: stretch; } #modal .box.match .replay-controls .segmented { display: grid; grid-template-columns: 1fr 1fr; }
  #modal .box.match .rp-rotate { display: none; }
  #modal .box.match #modal-close { position: fixed; right: 8px; top: 6px; padding: 3px 12px; z-index: 3; }
  #modal .box.match .replay-hud { margin-top: 32px; }
}
@media (orientation: landscape) { .rp-rotate { display: none; } }

/* 2026-11-21 ✨ 빛나는 밀서(영입 유니크 천장) */
.seal.glow { border-color: #ffd84a !important; box-shadow: 0 0 0 2px #ffd84a, 0 0 18px #ffd84a99; animation: sealGlow 1.6s ease-in-out infinite; }
@keyframes sealGlow { 50% { box-shadow: 0 0 0 2px #fff2a8, 0 0 28px #ffd84acc; } }

/* 📜 패치 노트(2026-11-21) */
.patch-row { display: flex; justify-content: flex-end; margin-top: 10px; } .patch-btn { font-weight: 800; }
.patch-dot { background: #ff5a5a; color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }
.patch-note { margin-bottom: 8px; } .patch-note summary { cursor: pointer; } .patch-body { white-space: pre-wrap; line-height: 1.6; margin: 8px 0 0; }

/* 위인 도감 */
#view[data-screen="dex"] { max-width: 1510px; container-type: inline-size; }
.dex-hero {
  position: relative; min-height: clamp(230px, 29cqw, 360px); display: grid; align-items: center;
  overflow: hidden; border: 1px solid #d9b472; border-radius: 20px;
  background: #f9e6ba; box-shadow: 0 16px 36px #00100d42;
}
.dex-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dex-hero-copy { position: relative; color: #182e2a; padding: 24px 0 24px clamp(25px, 4.7cqw, 70px); width: max-content; max-width: 100%; }
.dex-hero h1 { font-size: clamp(41px, 6.2cqw, 86px); line-height: 1.07; font-weight: 950; letter-spacing: -.075em; margin: 0 0 18px; }
.dex-hero-stats { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; font-weight: 820; color: #38544a; font-size: clamp(14px, 2cqw, 21px); }
.dex-hero-stats b { color: #183e32; font-size: clamp(30px, 4.5cqw, 56px); line-height: 1; margin-left: 4px; }
.dex-hero-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: #345649; }
.dex-hero-progress progress { flex: 1; width: 0; height: 8px; appearance: none; border: 0; border-radius: 99px; background: #5a613343; overflow: hidden; }
.dex-hero-progress progress::-webkit-progress-bar { background: #5a613343; }
.dex-hero-progress progress::-webkit-progress-value { background: #426550; }
.dex-hero-progress progress::-moz-progress-bar { background: #426550; }
.dex-tools { display: flex; gap: 12px; align-items: center; margin: 18px 0 14px; }
.dex-kinds { flex: none; }
.dex-kinds button { min-width: 72px; min-height: 42px; }
.dex-search { min-width: 150px; flex: 1; display: flex; gap: 8px; align-items: center; padding: 0 12px; border: 1px solid #38524c; border-radius: 10px; background: #1a2827; }
.dex-search:focus-within { border-color: #f5ca77; }
.dex-search svg { width: 20px; flex: none; fill: none; stroke: #b2cbc0; stroke-width: 1.7; stroke-linecap: round; }
#dex-find { min-width: 0; width: 100%; min-height: 46px; background: transparent; padding: 4px 0; border: 0; }
#dex-find:focus { outline: 0; }
#dex-find::placeholder { color: #a5bdb1; }
.dex-owned { cursor: pointer; display: flex; align-items: center; gap: 7px; color: #d1e2d7; white-space: nowrap; min-height: 44px; padding: 0 10px; font-weight: 700; font-size: 13px; }
.dex-owned input { width: 17px; height: 17px; margin: 0; accent-color: var(--lime); }
.dex-era-tools { display: flex; gap: 14px; margin: 0 0 20px; }
.dex-era-tools label {
  display: grid; grid-template-columns: auto minmax(115px, 175px); align-items: center; gap: 9px;
  min-width: 0; font-size: 13px; font-weight: 750; color: #c3d7cc;
}
.dex-era-tools select { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #38524c; border-radius: 9px; background: #182623; font-weight: 700; }
.dex-era-tools select:focus-visible { outline: 2px solid #f5ca77; outline-offset: 2px; }
.dex-index-head { display: flex; align-items: baseline; gap: 11px; margin: 0 0 12px; }
.dex-index-head h2 { margin: 0; font-size: clamp(19px, 2.25cqw, 30px); font-weight: 850; }
.dex-index-head span { color: #b0c4b5; font-size: 13px; font-weight: 730; }
.dex-region-section + .dex-region-section { margin-top: 24px; }
.dex-region-section h3 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px;
  color: #f3deb1; font-size: clamp(16px, 1.75cqw, 23px); font-weight: 820;
}
.dex-region-section h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #5f5d42, transparent); }
.dex-region-section h3 small { color: #b9cbbf; font-size: 12px; font-weight: 650; }
.dex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.dex-card {
  --dex-hue: 163;
  --dex-accent: hsl(var(--dex-hue) 55% 78%);
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between;
  min-width: 0; min-height: 174px; overflow: hidden; padding: 14px; text-align: left; border-radius: 14px;
  border: 1px solid hsl(var(--dex-hue) 37% 48%);
  background:
    radial-gradient(ellipse at 86% 32%, hsl(var(--dex-hue) 61% 49%), transparent 70%),
    linear-gradient(108deg, hsl(var(--dex-hue) 33% 18%), hsl(var(--dex-hue) 33% 29%));
  box-shadow: 0 8px 18px #0003, inset 0 1px #ffffff25;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.dex-card:hover, .dex-card:focus-visible { border-color: #ffd58a; box-shadow: 0 9px 23px #0006, inset 0 1px #ffffff35; transform: translateY(-2px); }
.dex-card-art { position: absolute; z-index: -1; top: 0; right: 0; bottom: 24px; width: 57%; pointer-events: none; }
.dex-card-art::before { content: ""; position: absolute; inset: 11% 6% 0 12%; border: 1px solid #fff3; border-radius: 50%; box-shadow: 0 0 0 10px #fff1, inset 0 0 22px #fff1; }
.dex-card-art img { position: absolute; right: 4%; bottom: -9%; height: 113%; width: 78%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 5px 6px #080e1599); }
.dex-card-art img + img { z-index: -1; right: 37%; height: 91%; width: 72%; opacity: .79; }
.dex-card::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, hsl(var(--dex-hue) 36% 16% / .86), transparent 67%), linear-gradient(0deg, #0c1616 4%, #0c161600 49%); }
.dex-card-title { display: grid; align-content: start; gap: 8px; max-width: 63%; }
.dex-card-meta { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.dex-card-meta small { color: var(--dex-accent); font-size: 12px; font-weight: 800; text-shadow: 0 1px 3px #091b17; }
.dex-card-title .cup-team-crest { width: 30px; height: 32px; }
.dex-card-title .cup-team-crest svg { width: 30px; }
.dex-card-title strong { color: #fff8ec; font-size: clamp(17px, 2cqw, 25px); font-weight: 850; line-height: 1.16; overflow-wrap: anywhere; word-break: keep-all; text-shadow: 0 2px 5px #020b09c0; }
.dex-card-bottom { width: 100%; display: grid; align-items: center; grid-template-columns: auto minmax(18px, 1fr) auto; gap: 11px; margin-top: 12px; }
.dex-card-count { color: #d7e0da; white-space: nowrap; font-size: 13px; }
.dex-card-count b { color: #fff8ec; font-size: 19px; }
.dex-bar { display: block; height: 5px; border-radius: 99px; background: #ffffff2e; overflow: hidden; }
.dex-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--dex-accent), #ffdfa0); }
.dex-card-arrow { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #ffffff41; border-radius: 50%; background: #0b191b75; color: #fff4d7; font: 23px/1 system-ui; }
.dex-empty { grid-column: 1/-1; margin: 0; padding: 28px; text-align: center; border: 1px dashed #45635a; border-radius: 12px; color: #c5d8ce; }
@container (max-width: 790px) {
  .dex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 550px) {
  .dex-hero { min-height: 190px; border-radius: 14px; }
  .dex-hero-art { object-position: 59% center; }
  .dex-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #ffebc4 6%, #ffebc4dc 35%, #ffebc400 73%); }
  .dex-hero-copy { padding-left: 18px; z-index: 1; }
  .dex-hero h1 { margin-bottom: 13px; font-size: clamp(29px, 8.7cqw, 44px); }
  .dex-hero-stats { font-size: 13px; gap: 5px; }
  .dex-hero-stats b { font-size: 28px; margin-left: 0; }
  .dex-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 13px 0 10px; }
  .dex-kinds { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dex-kinds button { min-width: 0; }
  .dex-search { min-width: 0; }
  .dex-owned { padding-inline: 2px; }
  .dex-era-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 15px; }
  .dex-era-tools label { grid-template-columns: auto minmax(0, 1fr); gap: 5px; white-space: nowrap; }
  .dex-era-tools select { padding-inline: 5px; }
  .dex-region-section + .dex-region-section { margin-top: 18px; }
  .dex-grid { gap: 8px; }
  .dex-card { min-height: 150px; padding: 9px; }
  .dex-card-title { max-width: 78%; gap: 6px; }
  .dex-card-title strong { font-size: 15px; }
  .dex-card-title .cup-team-crest { width: 24px; height: 26px; }
  .dex-card-title .cup-team-crest svg { width: 24px; }
  .dex-card-meta small { font-size: 10px; }
  .dex-card-art { width: 68%; }
  .dex-card-bottom { gap: 6px; }
  .dex-card-count { font-size: 11px; }
  .dex-card-count b { font-size: 16px; }
  .dex-card-arrow { width: 21px; height: 21px; font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .dex-card { transition: none; } }
.cl-hint { font-size: 12px; color: #9fd3ff; margin-top: 2px; } .clist .cl:not(.own):not(.st) { opacity: .62; } .clist .cl:not(.own):not(.st):hover { opacity: 1; }
#modal .box.dex-detail { max-width: 940px; }
.dex-detail-head { display: flex; align-items: center; gap: 14px; padding: 15px 18px; color: #243a32; background: linear-gradient(115deg, #ffedbd, #c8e7d2); border-radius: 11px; }
.dex-detail-head .cup-team-crest { width: 43px; height: 46px; flex: none; }
.dex-detail-head .cup-team-crest svg { width: 43px; }
.dex-detail-head h2 { margin: 0; font-size: clamp(22px, 4vw, 33px); line-height: 1.15; letter-spacing: -.04em; overflow-wrap: anywhere; }
.dex-detail-head p { margin: 5px 0 0; }
.dex-detail details { margin: 12px 0; color: #d8e7dc; font-size: 13px; }
.dex-detail summary { cursor: pointer; width: max-content; max-width: 100%; }
.dex-detail .clist { grid-template-columns: repeat(auto-fit, minmax(min(100%, 355px), 1fr)); }
.dex-detail .cl { background: #223533; border: 1px solid #3c5852; border-radius: 10px; }
.dex-detail .cl:not(.own):not(.st) { opacity: 1; }
.dex-detail .cl.st, .dex-detail .cl.own { background: #304637; border-color: #7f9660; }
.dex-detail .cl:not(.own):not(.st) .cl-tag { color: #bfcec6; }
.dex-detail .cl > div { min-width: 0; overflow-wrap: anywhere; }
.dex-detail .cl img { background: #2e4141; }
.dex-detail #modal-close { margin-top: 12px; }
.quiz-panel { max-width: 920px; margin-inline: auto; }
.quiz-round { justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.quiz-passage, .quiz-hint { white-space: pre-wrap; overflow-wrap: anywhere; margin: .85rem 0; padding: .9rem 1rem; border-radius: .75rem; background: #172c39; line-height: 1.65; }
.quiz-hint { background: #2c351e; color: #eef8cb; }
.quiz-choices { display: grid; gap: .55rem; }
.quiz-choices button { text-align: left; overflow-wrap: anywhere; min-height: 44px; }
.quiz-choices span { color: #b8dcff; }
/* 🤖 2026-11-26 퀴즈 글자 그림(canvas) */
canvas.qtx { display: block; width: 100%; -webkit-user-select: none; user-select: none; }
.quiz-choices button { display: flex; gap: .45rem; align-items: center; }
.quiz-choices button canvas.qtx { flex: 1; min-width: 0; }
.quiz-choices button:disabled { opacity: .75; }
.quiz-hint canvas.qtx { margin-top: .25rem; }
.quiz-actions { margin: .8rem 0; flex-wrap: wrap; }
.quiz-actions input { flex: 1 1 12rem; min-width: 0; }
.quiz-report { margin-top: 1rem; }
.quiz-report textarea { display: block; max-width: 100%; width: 32rem; min-height: 4rem; margin: .5rem 0; }
.quiz-results { padding: 1.2rem; text-align: center; background: #253c26; border: 1px solid #7aa958; border-radius: 12px; }
.quiz-results strong { font-size: clamp(1rem,4vw,1.6rem); }

/* 2026-11-21 🔒 잠금 · ⭐ 위시 · 🧹 선수단 정리 */
.card-flags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; } .card-flags button { font-size: 13px; padding: 3px 10px; } .card-flags button.on { border-color: #ffd84a; color: #ffd84a; }
/* 🔒 잠금 단추(2026-12-02 「잠김과 풀림 그림이 같아서 헷갈려」): 잠김 = 진한 빨강 + 🔒 · 안 잠김 = 회색(자물쇠 없음) · 작은 글씨 = 누르면 어떻게 되는지 */
.card-flags .lock-btn { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 800; }
.card-flags .lock-btn small { font-weight: 500; font-size: 11.5px; opacity: .85; }
.card-flags .lock-btn.is-locked { background: #5a1e1e; border-color: #ff8a7a; color: #ffe0da; }
.card-flags .lock-btn.is-open { background: #26313b; border-color: #56657a; color: #b9c6d3; }
/* 🧬 계승 창 막힘 안내(2026-12-02): 한 가지 이유만 크게 · 잠김이면 그 자리 풀기 단추 */
.iw-block { margin: 10px 0 4px; padding: 10px 14px; border-radius: 10px; display: grid; gap: 8px; background: #3a2a14; border: 1px solid #ffd38a66; color: #ffe8c2; }
.iw-block p { margin: 0; line-height: 1.5; } .iw-block small { color: #e8d3b0; }
.iw-block.lock { background: #4a1f1f; border-color: #ff8a7a88; color: #ffd6d0; } .iw-block.dk { background: #2c2a3a; border-color: #b6a8ff66; color: #e2dcff; }
.iw-block button { justify-self: start; }
.iw-tag.lk { background: #4a1f1f; color: #ffb4a8; }
.cl-wish { margin-left: 6px; font-size: 18px; padding: 2px 8px; background: transparent; border: 1px solid #ffffff22; border-radius: 8px; } .cl-wish.on { border-color: #ffd84a; }
.rchance.wishbox { border-color: #ffd84a; background: #ffd84a1a; }
.roster-warn { border: 2px solid #ffb84a; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .roster-warn button { margin-left: auto; }
#rc-grid .card.sel { outline: 3px solid #ff5a6e; }

/* ⏳ 유효기간(2026-11-21) */
.exp-tag { display: inline-block; font-size: 12px; color: #ffd84a; background: #ffd84a14; border-radius: 6px; padding: 1px 6px; margin: 2px 0; } .exp-tag.soon { color: #ff8a8a; background: #ff5a5a1f; }

/* 2026-11-21 알림 한 장씩 넘기기 */
#ntpop .ntpage { font-size: 15px; font-weight: 700; color: var(--muted, #9aa); margin-left: 8px; }
#ntpop .ntnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; } #ntpop .ntnav button { min-width: 110px; font-size: 17px; padding: 10px 16px; }

/* ⚡ 하이라이트(2026-11-21) */
#rp-hl { margin-left: 8px; } #rp-hl.on { background: #ffd84a; color: #1a1a1a; border-color: #ffd84a; font-weight: 700; }
.hl-btn { color: #ffd84a; } .recent-hl { justify-self: end; margin-top: -2px; font-size: 13px; padding: 4px 10px; }

/* 🤝 도전장(2026-11-21) */
.duel-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; margin: 4px 0 8px; }
.duel-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 560px) { .duel-cards { grid-template-columns: 1fr; } }
.duel-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 10px; border-radius: 10px; border: 2px solid #ffffff22; background: #ffffff0a; min-height: 0; }
.duel-card .duel-tag { font-size: 13px; font-weight: 700; }
.duel-card .duel-name { font-size: 16px; }
.duel-card small { color: var(--muted, #9aa); }
.duel-card .duel-pts { font-size: 12px; margin-top: 2px; }
.duel-strong { border-color: #ff6b6b88; } .duel-similar { border-color: #ffd84a88; } .duel-weak { border-color: #5fd38d88; }
.duel-card:hover:not(:disabled) { background: #ffffff16; }
.duel-foot { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.duel-foot button { align-self: flex-start; }
.live-box { margin-top: 10px; } .live-box summary { cursor: pointer; font-size: 14px; color: #ffd84a; }
.rp-big.cut { background: #05040ae6; animation: rpcut .35s ease both; } .rp-big.cut strong { color: #ffe9a8; font-style: normal; } @keyframes rpcut { from { opacity: 0; } to { opacity: 1; } }
.tk-info { font-size: 13px; line-height: 1.55; margin: 6px 0 8px; } .tk-info b { color: var(--fg, #fff); }

/* ⚽ 작은 경기 막대(2026-11-21 학생 의견 · 경기 중 다른 화면) */
#mini-host { position: fixed; left: -10000px; top: 0; width: 440px; pointer-events: none; }
#mini-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 900; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px);
  padding: 8px 10px 8px 14px; border-radius: 999px; background: #10261b; color: #e8f5ec; border: 1px solid #3d8a5c; box-shadow: 0 6px 22px rgba(0,0,0,.45); font-size: 14px; }
#mini-bar[hidden] { display: none; }
#mini-bar .mb-icon { font-size: 18px; }
#mini-bar b { font-size: 17px; letter-spacing: .5px; }
#mini-bar .mb-teams { color: #a9c7b4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }
#mini-bar button { border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
#mini-bar.goal { animation: mbGoal 1.2s ease-out; }
#mini-bar.done { border-color: #e0b84a; background: #2a2410; }
@keyframes mbGoal { 0% { box-shadow: 0 0 0 0 rgba(255,214,90,.9); } 100% { box-shadow: 0 0 0 18px rgba(255,214,90,0); } }
@media (max-width: 520px) { #mini-bar .mb-teams { display: none; } }

/* 🧪 미니 리그 홈 알림(2026-11-21) */
.mini-banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin: 0 0 12px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(100deg, #3a2a08, #1d3a2a); border: 2px solid var(--gold); box-shadow: 0 0 0 0 rgba(255,200,61,.6); animation: mbnPulse 2.4s ease-out infinite; }
.mini-banner .mbn-ic { font-size: 30px; }
.mini-banner b { display: block; font-size: 18px; color: var(--gold); }
.mini-banner small { display: block; color: var(--text); margin-top: 3px; line-height: 1.45; }
.mini-banner .mbn-go { margin-left: auto; white-space: nowrap; font-weight: 700; color: var(--gold); }
@keyframes mbnPulse { 0% { box-shadow: 0 0 0 0 rgba(255,200,61,.55); } 70% { box-shadow: 0 0 0 12px rgba(255,200,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,200,61,0); } }

/* ⚔️ 컵 전투력(2026-11-21 학생 의견) */
.cup-pow { margin: 6px 0 8px; font-size: 13px; line-height: 1.5; color: var(--sub); }
.cup-pow b { color: var(--text); }
.cup-team-pow { display: block; color: var(--gold); font-size: 11px; font-weight: 600; }
.cup-win { text-align: center; font-size: 12px; color: var(--sub); }
.cup-win b { color: var(--gold); }

/* ⬆ 등급 올리기 재료 고르기 · 🧬 계승(2026-11-21) */
.gup-mats { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.gup-mat { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--panel2); border: 1px solid #3a4160; cursor: pointer; font-size: 13px; }
.gup-mat:has(input:checked) { border-color: var(--gold); }
.gup-pv { margin: 6px 0; }
.gup.inherit { border-left: 3px solid #b48cff; }

/* 🎰 오늘의 추첨 선수 · 🎲 주사위(2026-11-21) */
.lot-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin: 0 0 12px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(100deg, #2a1745, #17283f); border: 1px solid #7d5cc9; }
.lot-card.new { border: 2px solid var(--gold); }
.lot-card .lot-ic { font-size: 30px; }
.lot-card .lot-main { display: flex; flex-direction: column; gap: 2px; }
.lot-card .lot-main b { font-size: 17px; }
.lot-card small { color: var(--sub); }
.lot-card .lot-go { margin-left: auto; font-size: 24px; color: var(--gold); }
.lot-box { max-width: 640px; }
.lot-slot { text-align: center; }
.lot-reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0; }
.lot-reel { background: #0e1220; border: 2px solid #3a4160; border-radius: 10px; padding: 10px 4px; min-height: 64px; display: flex; flex-direction: column; justify-content: center; }
.lot-reel small { color: var(--sub); font-size: 11px; }
.lot-reel b { font-size: 15px; margin-top: 4px; word-break: keep-all; }
.lot-reel.stop { border-color: var(--gold); animation: lotPop .35s ease-out; }
.lot-reel.stop b { color: var(--gold); }
@keyframes lotPop { 0% { transform: scale(1.18); } 100% { transform: scale(1); } }
.lot-player { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--panel2); margin: 8px 0; text-align: left; }
.lot-player img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.lot-player.big img { width: 84px; height: 84px; }
.lot-player div { display: flex; flex-direction: column; gap: 3px; }
.lot-player strong { font-size: 20px; }
.lot-player small { color: var(--sub); }
.lot-use { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.lot-last { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; font-size: 13px; }
.lot-last span { background: var(--panel2); border-radius: 6px; padding: 3px 8px; }
.lot-win { width: 100%; padding: 10px; border-radius: 10px; background: #3a2a08; border: 2px solid var(--gold); font-size: 16px; }
.lot-earn ul { margin: 6px 0; padding-left: 18px; }
.lot-earn li.done { color: var(--ok); }
.lot-yday { font-size: 13px; color: var(--sub); }
.lot-dice { margin-top: 12px; padding-top: 10px; border-top: 1px solid #333a52; }
.dice-mine b, .dice-big { font-size: 34px; font-weight: 800; letter-spacing: 2px; color: var(--gold); }
.dice-big { text-align: center; margin: 6px 0; }
.dice-big.stop { animation: lotPop .4s ease-out; }
.dice-got { text-align: center; color: var(--gold); font-weight: 700; }
.dice-list { list-style: none; padding: 0; margin: 8px 0; max-height: 260px; overflow: auto; }
.dice-list li { display: grid; grid-template-columns: 42px 44px 1fr auto; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 6px; }
.dice-list li.me { background: #2a2410; }
.dice-list li b { color: var(--gold); font-size: 17px; }
@media (max-width: 520px) { .lot-reel b { font-size: 12px; } }

/* 🔎 도감 위인 찾기(2026-11-22) */
.dex-who { display: grid; gap: 6px; margin: 6px 0 12px; }
.dex-who-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--panel2); }
.dex-who-row.own { border-left: 3px solid var(--ok); }
.dex-who-colors { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }

/* 🎁 선물함 · 📢 전광판(2026-11-22) */
.gift-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin: 0 0 12px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(100deg, #3d1a24, #2a1f10); border: 2px solid #ff8fa3; animation: mbnPulse 2.4s ease-out infinite; }
.gift-card .lot-main b { font-size: 17px; color: #ffc2cd; }
.gift-box { max-width: 560px; }
.gift-list { display: grid; gap: 8px; margin: 10px 0; }
.gift { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel2); border: 1px solid #5a3a48; transition: transform .45s, opacity .45s; }
.gift.opened { opacity: .65; }
.gift.unwrap { transform: scale(1.06) rotate(-2deg); opacity: .2; }
.gift-ic { font-size: 28px; }
.gift-main { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.gift-main small { color: var(--sub); }
#ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; height: 32px; overflow: hidden; background: #1a1206; border-top: 1px solid var(--gold); color: #ffe7a8; font-size: 14px; display: flex; align-items: center; cursor: pointer; }
#ticker[hidden] { display: none; }
#ticker .ticker-move { display: inline-flex; gap: 22px; white-space: nowrap; padding-left: 100%; animation: tickerMove var(--tk, 20s) linear infinite; will-change: transform; }
#ticker i { color: var(--gold); font-style: normal; }
#ticker .mine { color: #ffb3c1; font-weight: 700; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body.has-ticker { padding-bottom: 34px; }
body.has-ticker #mini-bar { bottom: 46px; }
.board-pop { text-align: center; }
.board-pop p { font-size: 17px; margin: 10px 0; }
.board-pop p.mine { color: #ffb3c1; font-weight: 700; }
.gift-card .lot-ic { font-size: 30px; } .gift-card .lot-main { display: flex; flex-direction: column; gap: 2px; } .gift-card small { color: var(--sub); } .gift-card .lot-go { margin-left: auto; font-size: 24px; color: #ff8fa3; }

/* ⭐ 팩 열기 ★5 금빛 등장 · ★4 별 반짝임(2026-11-22) */
.pack-open { position: relative; }
.flips .fcard.star5::after { content: ''; position: absolute; inset: -4px; border-radius: 10px; pointer-events: none; box-shadow: 0 0 18px 6px rgba(255, 205, 60, .85); animation: star5Glow 1.6s ease-out 1 forwards; }
@keyframes star5Glow { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: .55; } }
.star5-pop { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 5; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 26px; border-radius: 16px; background: radial-gradient(circle, rgba(60, 40, 5, .92), rgba(20, 14, 2, .85)); border: 2px solid #ffcf3d; color: #ffe08a; text-shadow: 0 0 12px rgba(255, 200, 60, .9); animation: star5Pop 1.5s ease-out forwards; }
.star5-pop b { font-size: 44px; letter-spacing: 2px; }
.star5-pop span { font-size: 20px; font-weight: 800; color: #fff3c4; }
@keyframes star5Pop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); } 30% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -58%) scale(1); } }
.flips .fcard.star4::before { content: '★'; position: absolute; right: 6px; top: 4px; z-index: 3; font-size: 22px; color: #ffd24a; text-shadow: 0 0 10px rgba(255, 210, 74, .95); pointer-events: none; animation: star4Twinkle 1.4s ease-out 2; }
@keyframes star4Twinkle { 0% { opacity: 0; transform: scale(.3) rotate(-30deg); } 35% { opacity: 1; transform: scale(1.35) rotate(10deg); } 70% { opacity: 1; transform: scale(1) rotate(0); } 100% { opacity: .85; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .star5-pop, .flips .fcard.star4::before, .flips .fcard.star5::after { animation: none; } }

/* 🏅 랭킹전 나 기준 5단계(2026-11-22) */
.duel-card.duel-best { border-color: #c9c9d988; background: linear-gradient(160deg, #2a2a33, #15151b); } .duel-worst { border-color: #aab4c488; opacity: .92; }
.duel-low { display: block; color: var(--sub); font-size: 11px; }
.duel-basis { display: block; font-size: 12px; color: var(--sub); } .duel-basis b { color: var(--gold); }

#duel-rank { margin-right: 6px; }

/* 🗂 덱 3개(2026-11-22) */
.deck-bar { display: flex; gap: 6px; margin: 0 0 10px; flex-wrap: wrap; }
.deck-tab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 10px; text-align: left; }
.deck-tab b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.deck-tab small { font-size: 11px; opacity: .75; }
.deck-tab.on { border-color: var(--accent, #d9f26b); box-shadow: inset 0 0 0 1px var(--accent, #d9f26b); }
.deck-tab.on small { opacity: 1; color: var(--accent, #d9f26b); }
.deck-rename { flex: 0 0 auto; padding: 6px 10px; }
#deck-name { width: 100%; font-size: 16px; padding: 8px; }

/* 2026-11-22 영입·알림·창이 떠 있을 때는 아래 전광판을 숨김(확인 단추·능력치가 가려졌음) */
body:has(.figx) #ticker, body:has(#modal:not([hidden])) #ticker, body:has(#skpop) #ticker, body:has(#ntpop) #ticker { display: none; }
@media (max-width: 760px) { .figside { max-height: 50svh; } }

/* 2026-11-22 선생님: 홈 내 전투력 · 랭킹전 칸 누르면 바로 · 추첨 당첨자 · 내 주사위 크게 · 컵 내 전투력 */
.lobby-pow { margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: #0b0f0acc; border: 1px solid #ffd66b55; color: #ffe39a; font-size: 14px; font-weight: 900; white-space: nowrap; }
.lobby-pow em { font-style: normal; font-variant-numeric: tabular-nums; }
.home-side-ranked.clickable { cursor: pointer; transition: border-color .15s, transform .15s; }
.home-side-ranked.clickable:hover, .home-side-ranked.clickable:focus-visible { border-color: var(--lime); transform: translateY(-1px); }
.mode-friendly.mode-focus { outline: 3px solid var(--lime); outline-offset: 3px; }
.lot-winner { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: #ffd66b22; border: 1px solid #ffd66b77; color: #ffe39a; font-size: 14px; font-weight: 800; }
.lot-winner b { font-size: 15px; color: #fff3c4; }
.lot-mine { display: flex; align-items: center; gap: 14px; margin-top: 6px; color: var(--sub); font-size: 13px; flex-wrap: wrap; }
.lot-mine b { color: var(--text); }
.lot-dice-big { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 10px; background: #ffffff10; color: var(--text); font-weight: 800; }
.lot-dice-big b { font-size: 24px; line-height: 1.1; color: #ffe39a; font-variant-numeric: tabular-nums; }
.lot-dice-big small { font-size: 11px; color: var(--sub); }
.cup-mypow b { color: #ffe39a; }
/* 2026-11-22 새 스킬 딱지와 잠금 해제 알림 */
.collection-card { position: relative; }
.collection-newskill { position: absolute; top: 7px; right: 7px; z-index: 3; padding: 3px 8px; max-width: calc(100% - 14px); border: 1px solid #adede4; border-radius: 7px; background: linear-gradient(#adf7e0, #55bba5); color: #103129; font-size: clamp(10px, 2.3vw, 13px); line-height: 1.25; font-weight: 900; box-shadow: 0 2px 7px #000b; pointer-events: none; animation: reward-badge-in .55s ease-out both; }
.collection-newskill.open { border-color: #ffe7a1; background: linear-gradient(#ffebac, #efb557); color: #3b250e; }
.collection-newskill > span { display: inline-block; }
#skpop .sk-unlock { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: clamp(19px, 4.2vw, 28px); }
.sk-unlock-icon { position: relative; flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; border: 1px solid #e8bb65; background: radial-gradient(circle at 40% 20%, #70501f, #32230e); }
.sk-unlock-icon span { grid-area: 1 / 1; }
.sk-unlock-icon span:first-child { opacity: 0; animation: reward-lock-out .75s both; }
.sk-unlock-icon span:nth-child(2) { animation: reward-lock-in .85s both; }
.sk-unlock-icon i { position: absolute; right: -5px; bottom: -3px; opacity: 0; font: normal 16px/1 sans-serif; animation: reward-key .95s both; }

/* 스킬 룰렛과 딱 맞는 전직. 움직이는 부분은 릴, 작은 빛, 색종이로 한정. */
.skill-pending, .skill-points { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; padding: 10px 12px; border-radius: 12px; border: 1px solid #ffd66b77; background: #ffd66b14; }
.skill-pending button { margin-left: auto; }
.reward-dialog { --reward-gold: #ffdfa0; --reward-edge: #a78349; --reward-mint: #9ee9d1; }
#modal .box.reward-dialog { max-width: 850px; max-height: 93dvh; padding: clamp(12px, 2.3vw, 24px); border-color: #537368; background: #14231f; }
.reward-dialog #modal-close { margin-top: 12px; }
.reward-dialog :focus-visible { outline: 2px solid #ffe5a2; outline-offset: 2px; }
.reward-header { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.reward-header > div { min-width: 0; }
.reward-header h2 { margin: 0; font-size: clamp(22px, 4.8vw, 32px); line-height: 1.15; }
.reward-header p { margin: 4px 0 0; color: var(--sub); overflow-wrap: anywhere; }
.reward-medal { display: grid; place-items: center; flex: none; width: 49px; height: 49px; font-size: 25px; border-radius: 13px; color: var(--reward-gold); border: 1px solid var(--reward-edge); background: radial-gradient(ellipse at 40% 0, #765837, #2e2417); box-shadow: inset 0 1px #ffebaa55, 0 3px 7px #0005; }
.reward-machine { position: relative; min-width: 0; padding: clamp(10px, 2.7vw, 20px); border: 1px solid #98804e; border-radius: 15px; background: radial-gradient(ellipse at 50% -20%, #426a59, transparent 71%), linear-gradient(170deg, #253b32, #142522 60%, #14201d); box-shadow: inset 0 0 0 3px #0004, inset 0 4px #fff1, 0 5px 10px #06130d8c; }
.reward-window { --reel-step: 72px; position: relative; min-width: 0; padding-inline: 8px; border: 1px solid #a8874e; border-radius: 9px; background: #0c1916; box-shadow: 0 1px #ffdea252, inset 0 1px 7px #000; }
.reward-window::before, .reward-window::after { content: ''; position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); border-block: 6px solid transparent; }
.reward-window::before { left: 0; border-left: 6px solid var(--reward-gold); }
.reward-window::after { right: 0; border-right: 6px solid var(--reward-gold); }
.reward-clip { position: relative; height: var(--reel-step); overflow: hidden; }
.reward-clip::after { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(#050d0bc9, transparent 21% 79%, #050d0bc9); pointer-events: none; }
.reward-track { display: grid; }
.reward-symbol { display: flex; align-items: center; justify-content: center; gap: 5px; height: var(--reel-step); margin: 0; padding: 3px 2px; background: linear-gradient(180deg, #253c34, #304f43 40%, #253b34); color: #f4f9f2; text-align: center; line-height: 1.15; font-size: clamp(16px, 3.6vw, 24px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.reward-symbol.symbol-gold { color: #fff2c2; background: linear-gradient(180deg, #44331a, #7c5a2b 42%, #523717); box-shadow: inset 0 0 0 1px #f8c97766; }
.reward-symbol.symbol-gold > span { color: #ffe085; text-shadow: 0 0 7px #f6c954; }
.reward-symbol small { color: inherit; font-size: .6em; flex: none; }
.rolling .reward-track { will-change: transform; }
.settled .reward-window { animation: reward-stop .32s ease-out both; }
.skw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.skw .reward-header { grid-column: 1 / -1; margin: 0; }
.skw-count { display: inline-block; margin-left: 4px; padding: 2px 7px; font-size: 12px; color: var(--reward-mint); border-radius: 6px; border: 1px solid #659e8d; background: #23453c; }
.skw-wheel { align-self: start; text-align: center; }
.skw-target { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px 7px; min-height: 34px; margin-bottom: 8px; color: #d1e5db; font-size: 13px; }
.skw-target b { color: #edf8f0; }
.skw-target em { border: 1px solid #a5834a; border-radius: 5px; padding: 2px 5px; color: var(--reward-gold); font-style: normal; font-weight: 800; }
.skw-target .skw-choose { padding: 2px 5px; border: 0; background: transparent; color: var(--reward-mint); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.skw-wheel.need { border-color: #f4cd83; background: radial-gradient(ellipse at 50% 0, #694e28, #2e2819 70%); }
.skw-wheel.got { border-color: #71bda6; }
.skw-result { position: relative; display: grid; align-content: center; min-height: 65px; margin: 4px 0; overflow: hidden; color: #e6eee7; font-size: 14px; }
.skw-result > strong { color: var(--reward-mint); font-size: 22px; }
.skw-wheel.need .skw-result > strong { color: var(--reward-gold); font-size: clamp(25px, 5vw, 33px); animation: reward-impact .45s both; }
.skw-acts, .cslot-acts { justify-content: center; gap: 7px; }
.skw-acts button, .cslot-acts button { min-height: 44px; }
.skw-acts .main, .cslot-acts .main { min-width: 126px; padding-inline: 20px; border: 1px solid #ffebaa; color: #2c1b09; background: linear-gradient(#ffe3a3, #e8af58); box-shadow: inset 0 1px #fff7, 0 3px #805521; font-weight: 900; }
.skw-plan h3 { margin: 0 0 3px; }
.skw-plan p { margin: 0 0 8px; font-size: 13px; }
.skw-jobs { display: grid; gap: 7px; }
.skw-job { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; padding: 9px 11px; border: 1px solid #3b5a4f; border-radius: 9px; background: #22382f; }
.skw-job.on { border-color: #89c6ad; background: #2b4b3e; box-shadow: inset 3px 0 #89c6ad; }
.skw-job em { font-style: normal; color: var(--reward-gold); font-weight: 800; }
.skw-job small, .skw-job .muted { font-size: 12px; }
.cslot-reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(5px, 1.6vw, 12px); }
.cslot-reel { min-width: 0; padding: clamp(3px, 1.3vw, 10px); border: 1px solid #4c6c60; border-radius: 10px; background: linear-gradient(#15241f, #253b31); }
.cslot-reel h3 { display: grid; min-height: 34px; place-items: center; margin: 0 0 5px; color: #d7e8dc; font-size: clamp(10px, 2.5vw, 15px); line-height: 1.15; text-align: center; word-break: keep-all; }
.cslot-reel .reward-symbol b { white-space: nowrap; }
.cslot-reel.lv2 { border-color: #7eb8ca; background: linear-gradient(#182c31, #284650); }
.cslot-reel.lv3 { border-color: #e7bc73; background: linear-gradient(#3e2f18, #6c4c22); }
.cslot-title { position: relative; isolation: isolate; display: grid; align-content: center; min-height: 72px; margin: 8px 0 0; padding: 7px 3px; overflow: hidden; text-align: center; color: #e7f2e7; }
.cslot-title strong { font-size: clamp(19px, 4.1vw, 27px); line-height: 1.25; }
.cslot-title small { display: block; margin-top: 4px; font-size: 12px; color: #d6e3da; }
.cslot:is(.s6, .s7, .s8, .s9) .cslot-title strong { font-size: clamp(22px, 5vw, 34px); color: var(--reward-gold); animation: reward-impact .48s both; }
.cslot.s9 .cslot-title strong { font-size: clamp(25px, 6vw, 42px); }
.cslot.s9 .cslot-cabinet { border-color: #f8d28d; }
.cslot-trumpet { display: inline-block; margin-inline: .13em; font-size: .62em; }
.cslot-trumpet:last-child { transform: scaleX(-1); }
.cslot:is(.s6, .s7, .s8, .s9).revealed .cslot-title::before { content: ''; position: absolute; z-index: -1; inset: 0; background: repeating-conic-gradient(from 6deg at 50% 70%, #ffc45b38 0deg 9deg, transparent 10deg 24deg); mask-image: radial-gradient(ellipse at center, #000 12%, transparent 73%); opacity: 0; animation: reward-beams 1.2s ease-out both; }
.cslot-points { border: 1px solid #43665a; border-radius: 12px; margin-top: 12px; padding: 12px; background: #1e332c; }
.cslot-points h3, .cslot-points p { margin: 0 0 7px; }
.cslot-points .color { gap: 6px 10px; }
.cslot-points .color button { min-height: 40px; padding: 3px 10px; }
.cslot-acts { margin-top: 14px; }
.reward-sparks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.reward-sparks i { position: absolute; left: var(--x); top: var(--y); width: 6px; height: 9px; background: #ffdf82; opacity: 0; border-radius: 1px; animation: reward-spark .92s var(--wait) ease-out both; }
.reward-sparks i:nth-child(3n) { background: #a7e7d3; }
.reward-sparks i:nth-child(3n + 1) { background: #ffab91; }
.cslot.s3 .reward-sparks i { width: 4px; height: 4px; }
.cslot-jackpot { position: fixed; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(ellipse at center, transparent 24%, #f9c66c61); animation: reward-screen 1.65s both; }
.cslot-jackpot .reward-sparks i { width: 8px; height: 15px; animation-name: reward-confetti; animation-duration: 1.16s; }
#ntpop .nt-career-jackpot .nt-hero { background: radial-gradient(ellipse at 50% 0, #634b27, #281f15 80%); }
#ntpop .nt-career-jackpot .nt-emblem { border-color: #ebc47b; box-shadow: 0 0 18px #e6b25b50; }
@keyframes reward-badge-in { 0% { transform: scale(.88); } 65% { transform: scale(1.045); } }
@keyframes reward-lock-out { 0%, 54% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes reward-lock-in { 0%, 54% { opacity: 0; } 55% { opacity: 1; transform: translateY(2px); } 78% { transform: translateY(-2px); } }
@keyframes reward-key { 0% { transform: translate(8px, 5px) rotate(-30deg); opacity: 0; } 28%, 58% { opacity: 1; } 58% { transform: translate(-6px, -7px) rotate(65deg); } 100% { opacity: 0; transform: translate(-8px, -9px) rotate(75deg); } }
@keyframes reward-stop { 0% { transform: translateY(-1px); } 31% { transform: translateY(3px); } 59% { transform: translateY(-1px); } }
@keyframes reward-impact { from { transform: translateY(6px) scale(.93); opacity: .55; } 65% { transform: translateY(-1px) scale(1.03); } }
@keyframes reward-beams { 16% { opacity: .88; } 100% { opacity: .34; transform: scale(1.15); } }
@keyframes reward-spark { 22% { opacity: .95; } 100% { opacity: 0; transform: translateY(-27px) rotate(var(--turn)); } }
@keyframes reward-confetti { from { transform: translateY(-28vh) rotate(0); } 20%, 62% { opacity: .9; } to { opacity: 0; transform: translateY(29vh) rotate(var(--turn)); } }
@keyframes reward-screen { 0%, 100% { opacity: 0; } 17%, 58% { opacity: 1; } }
@media (max-width: 620px) {
  .skw { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cslot-cabinet .reward-window { --reel-step: 62px; padding-inline: 3px; }
  .cslot-cabinet .reward-window::before, .cslot-cabinet .reward-window::after { border-block-width: 4px; border-inline-width: 3px; }
  .cslot-reel .reward-symbol { gap: 2px; font-size: clamp(12px, 4vw, 20px); }
  .cslot-reel .reward-symbol > span { font-size: .65em; }
  #skpop .skrow:has([data-o]) { grid-template-columns: 38px minmax(0, 1fr); }
  #skpop .skrow:has([data-o]) img { width: 38px; height: 38px; }
  #skpop .skrow [data-o] { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .reward-dialog *, .reward-dialog *::before, .reward-dialog *::after, .collection-newskill,
  #skpop .sk-unlock, .sk-unlock-icon *, .cslot-jackpot { animation: none !important; }
}
.career-option.hope { border-color: var(--lime); }
.career-option .perfect { color: #ffe39a; }

/* 🥂 아이보리 샴페인(2026-11-22 선생님 선택 · Codex 시안 allstar-roulette-art-preview 「제목」을 옮김): 청동 틀·릴 깊이·잭팟 빛줄기·보상 세 칸·샴페인 제목 */
.reward-dialog .reward-machine::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 9px solid transparent;
  border-image: url('/art/roulette/cabinet-frame.webp') 44 / 16px stretch;
  pointer-events: none;
}
.reward-dialog .reward-machine {
  background-image: linear-gradient(145deg, #355648bc, #122522f2 70%), url('/art/roulette/bronze-surface.webp');
  background-size: cover;
}
.reward-dialog .skw-wheel.need {
  background-image: radial-gradient(ellipse at 48% -12%, #6a4b27a3, #281d10eb 68%), url('/art/roulette/bronze-surface.webp');
}
.reward-dialog .cslot-reel {
  background-image: linear-gradient(#172c26b8, #14251fd9), url('/art/roulette/bronze-surface.webp');
  background-size: cover;
}
.reward-dialog .cslot-reel.lv2 {
  background-image: linear-gradient(#1d3740b9, #142830db), url('/art/roulette/bronze-surface.webp');
}
.reward-dialog .cslot-reel.lv3 {
  background-image: linear-gradient(#694b27a1, #30200ebd), url('/art/roulette/bronze-surface.webp');
}
.reward-dialog .reward-window {
  border-color: #835d38;
  box-shadow: 0 2px 0 #b9864888, 0 -1px 0 #fff2bc5e, 0 4px 8px #0008, inset 0 0 5px #000;
}
.reward-dialog .reward-window::before { border-left-color: #f2d398; }
.reward-dialog .reward-window::after { border-right-color: #f2d398; }
.reward-dialog .reward-clip::after {
  background: url('/art/roulette/reel-depth.webp') center / 100% 100% no-repeat;
}
.reward-dialog .reward-symbol.symbol-gold {
  background: linear-gradient(0deg, #38220cde, #63431b80 48%, #3b270dd9), url('/art/roulette/bronze-surface.webp') center 55% / 145% auto;
}
.reward-dialog .cslot.s9.revealed .cslot-cabinet::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 12px;
  pointer-events: none;
  background: url('/art/roulette/jackpot-rays.webp') center 48% / cover no-repeat;
  mask-image: linear-gradient(#000a, #000 25% 78%, #000b);
  mix-blend-mode: screen;
  animation: preview-jackpot-title 1.35s ease-out both;
}
.reward-dialog .cslot-reels, .reward-dialog .cslot-title { position: relative; z-index: 1; }
.reward-dialog .cslot.s9.revealed .cslot-title::before { content: none; }
.reward-dialog .cslot-champagne {
  position: relative;
  display: inline-block;
  color: #fff6e2;
  -webkit-text-stroke: clamp(2px, .45vw, 3.5px) #132b25;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #0c211b, 0 5px 9px #081410cd;
}
.reward-dialog .cslot-champagne::before,
.reward-dialog .cslot-champagne::after {
  content: attr(data-lettering) / '';
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 0;
  text-shadow: none;
  background-clip: text;
  pointer-events: none;
}
.reward-dialog .cslot-champagne::before {
  background-image: linear-gradient(#fffefb 18%, #fff8e9 48%, #f8e8c4 69%, #e9c583 94%);
}
.reward-dialog .cslot-champagne::after {
  background-image: linear-gradient(113deg, transparent 42%, #ffe7a6b3 47%, #fffefc 50%, #fffdf8 52%, transparent 59%);
  background-size: 275% 100%;
  background-position: 100% 50%;
  opacity: 0;
  animation: preview-title-sweep .88s .24s ease-in-out 1 both;
}
.reward-dialog .cslot-champagne > i {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  animation: preview-title-glint .88s .24s ease-in-out 1 both;
}
.reward-dialog .cslot-champagne > i::before {
  content: '';
  position: absolute;
  top: 17%;
  left: 0;
  width: .37em;
  height: .37em;
  background: radial-gradient(circle, #fff 18%, #fff0bd 40%, #ffedac99 74%);
  clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 61%, 50% 100%, 40% 61%, 0 50%, 40% 39%);
}
@keyframes preview-title-sweep {
  from { background-position: 100% 50%; opacity: 0; }
  13%, 87% { opacity: 1; }
  to { background-position: 0 50%; opacity: 0; }
}
@keyframes preview-title-glint {
  from { transform: translateX(-7%); opacity: 0; }
  22%, 78% { opacity: .93; }
  to { transform: translateX(103%); opacity: 0; }
}
#modal:has(.cslot-reward-summary) .reward-dialog { position: relative; z-index: 4; }
.reward-dialog .cslot-reward-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(4px, 1.1vw, 9px);
  width: min(100%, 510px);
  margin: 8px auto 0;
  padding: 0;
  list-style: none;
}
.reward-dialog .cslot-reward-summary li {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 3px;
  padding: 5px 3px 6px;
  border: 1px solid #af925f;
  border-radius: 7px;
  background: #101b17;
  box-shadow: 0 2px 5px #070c09b3, inset 0 1px #f7d59119;
}
.reward-dialog .cslot-reward-summary span {
  color: #e2ece5;
  font-size: clamp(11px, 2vw, 14px);
  font-weight: 700;
  line-height: 1.2;
  word-break: keep-all;
}
.reward-dialog .cslot-reward-summary b {
  color: #ffdfa0;
  font-size: clamp(20px, 4vw, 28px);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  white-space: nowrap;
}
.cslot-jackpot::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .58;
  background: url('/art/roulette/jackpot-rays.webp') center / cover no-repeat;
  mask-image: radial-gradient(ellipse at center, transparent 32%, #0007 66%, #000);
  mix-blend-mode: screen;
}
@keyframes preview-jackpot-title {
  from { opacity: .25; transform: scale(.86); }
  28% { opacity: .79; }
  to { opacity: .47; transform: scale(1.05); }
}
@media (max-width: 620px) {
  .reward-dialog .reward-machine::before { border-image-width: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .reward-dialog .cslot.s9.revealed .cslot-cabinet::after { opacity: .44; }
}
/* 2026-11-22 티켓 경기 상대 = 무작위 */
.tk-random { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 12px; border-radius: 9px; border: 1px dashed #ffd66b88; background: #ffd66b12; color: #ffe39a; font-weight: 800; }

/* 🎓 유학 개편(2026-11-22 선생님): 보낼 선수 목록·필터 · 유학지 칸 · 미리 보기 · 확인 창 · 돌아올 때 10칸 룰렛 */
#study-badge:empty { display: none; }
#tabs button #study-badge { margin-left: auto; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #282012; font-size: 11px; font-weight: 900; text-align: center; }
.study-back-banner { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; width: 100%; margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid #f2c14e; background: linear-gradient(90deg, #3a2f14, #1f2a1e); color: #ffe7a6; font-size: 1.05rem; font-weight: 800; animation: study-glow 1.6s ease-in-out infinite alternate; }
.study-back-banner span { padding: 4px 10px; border-radius: 999px; background: #f2c14e; color: #2a2008; }
@keyframes study-glow { from { box-shadow: 0 0 0 #f2c14e00; } to { box-shadow: 0 0 18px #f2c14e66; } }
.study-pick { margin-bottom: 18px; }
.study-pick-head h2 { margin: 0; } .study-pick-head p { margin: 4px 0 10px; }
.study-filters { display: grid; gap: 6px; margin-bottom: 12px; }
.study-filters > div { display: flex; flex-wrap: wrap; gap: 6px; }
.study-chip { min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 1px solid #3c5148; background: #142220; color: var(--sub); font-weight: 700; }
.study-chip[aria-pressed="true"] { border-color: var(--lime); background: #26371f; color: #f2ffd8; }
.study-slot { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; padding: 10px; border-radius: 10px; border: 2px solid #4f6a5c; background: #10201b; }
.study-slot.empty { justify-content: center; min-height: 110px; text-align: center; line-height: 1.6; border-style: dashed; color: #b3c9c2; }
.study-slot-art { flex: none; width: 74px; overflow: hidden; border-radius: 6px; }
.study-slot-info { display: grid; gap: 5px; min-width: 0; }
.study-slot-info > b { font-size: 1.15rem; }
.study-slot-info em { color: #ffcf7a; font-style: normal; font-weight: 800; }
.study-slot-info .row { display: flex; gap: 6px; flex-wrap: wrap; }
.study-slot-info button { min-height: 36px !important; padding: 4px 10px; }
.study-preview { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
.study-preview li { display: grid; grid-template-columns: 4.5em 2.4em 1.2em 2.4em auto; align-items: center; gap: 4px; }
.study-preview li span { color: #b3c9c2; } .study-preview li i { color: #7f958d; font-style: normal; text-align: center; }
.study-preview .ok { color: #7dffa8; } .study-preview .gr { color: #ffd76a; font-weight: 800; }
.study-confirm h2 { text-align: center; margin-top: 0; }
.study-confirm-note { padding: 10px 12px; border-radius: 8px; background: #1f2f39; line-height: 1.55; }
.study-confirm-note.warn { background: #3a2a14; color: #ffd9a0; } .study-confirm-note.ok { background: #18301f; }
.srl { text-align: center; }
.srl .reward-header { text-align: left; }
.srl-stage { position: relative; width: min(300px, 78vw); margin: 10px auto 4px; aspect-ratio: 1; }
.srl-disc { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 6px 18px #0009; will-change: transform; }
.srl-t { fill: #13201b; font-size: 12px; font-weight: 900; } .srl-t.failed { fill: #e6ecef; }
.srl-needle { position: absolute; z-index: 2; left: 50%; top: -6px; width: 0; height: 0; transform: translateX(-50%); border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 28px solid #fff; filter: drop-shadow(0 2px 3px #000a); transition: transform .06s; }
.srl-stage.tk .srl-needle { transform: translateX(-50%) rotate(-9deg); }
.srl-hub { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; pointer-events: none; }
.srl-drum { min-height: 1.6em; margin: 6px 0; font-size: 1.2rem; font-weight: 900; color: #ffe7a6; }
.srl-drum.on { animation: srl-drum .14s linear infinite alternate; }
@keyframes srl-drum { from { opacity: .55; text-shadow: none; } to { opacity: 1; text-shadow: 0 0 12px #ffd84a; } }   /* 2026-11-23 선생님 「룰렛 돌리는데 화면이 흔들려」: 좌우로 떨던 글자 → 깜빡이는 빛 */
.srl-result { position: relative; margin: 6px auto 0; max-width: 360px; padding: 12px; border-radius: 12px; overflow: hidden; }
.srl-result.great { background: radial-gradient(circle at 50% 0, #6b5317, #241d0d 70%); border: 1px solid #f2c14e; }
.srl-result.normal { background: radial-gradient(circle at 50% 0, #1f5a36, #12221b 70%); border: 1px solid #4fd18b; }
.srl-result.failed { background: #1c2228; border: 1px solid #4a5560; }
.srl-win { margin: 0 0 6px; font-size: 2rem; animation: srl-pop .55s cubic-bezier(.2,1.6,.4,1) both; }
.srl-result.great .srl-win { color: #ffd76a; text-shadow: 0 0 16px #f2c14ecc; font-size: 2.3rem; }
.srl-result.normal .srl-win { color: #8dffb4; }
@keyframes srl-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.srl-fail { margin: 0 0 6px; font-size: 2rem; color: #aeb8c2; letter-spacing: .1em; }
.srl-fail span { display: inline-block; opacity: 0; animation: srl-drop .7s ease-in var(--d) forwards; }
@keyframes srl-drop { from { transform: translateY(-30px); opacity: 0; } 70% { opacity: 1; } to { transform: translateY(0); opacity: 1; } }
.srl-lines { justify-content: center; } .srl-lines li { opacity: 0; animation: srl-pop .45s ease-out var(--d) forwards; }
.srl-lines em { color: #ffd76a; font-style: normal; font-weight: 900; }
.srl-talent { margin: 8px 0 0; color: #ffe7a6; font-weight: 800; }
.srl-confetti { position: absolute; inset: 0; pointer-events: none; }
.srl-confetti i { position: absolute; left: calc(var(--i) * 3.8%); top: -10px; width: 6px; height: 10px; border-radius: 1px; background: #ffd76a; animation: srl-fall 1.6s ease-in calc(var(--i) * 45ms) forwards; }
.srl-confetti i:nth-child(3n) { background: #ff8fa3; } .srl-confetti i:nth-child(3n+1) { background: #8dffb4; width: 4px; }
@keyframes srl-fall { to { transform: translateY(260px) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .srl-drum.on, .study-back-banner, .srl-confetti i { animation: none; } }

/* 👀 상대 팀 보기(2026-11-23) */
.lg-team { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: inherit; text-align: left; cursor: pointer; min-height: 0; }
.lg-team:hover, .lg-team:focus-visible { color: var(--lime); text-decoration: underline; }
.tv-head h2 { margin: 0 0 4px; } .tv-head p { margin: 0 0 10px; color: #c9d8d2; }
.tv-pitch { position: relative; aspect-ratio: 4 / 5; max-height: 62vh; margin: 0 auto 12px; border-radius: 12px; border: 2px solid #ffffff55;
  background: repeating-linear-gradient(0deg, #2f6b3c 0 10%, #2a6136 10% 20%); box-shadow: inset 0 0 0 2px #ffffff22; }
.tv-pitch::before { content: ''; position: absolute; left: 30%; right: 30%; bottom: 0; height: 14%; border: 2px solid #ffffff55; border-bottom: 0; }
.tv-pitch::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid #ffffff33; }
.tv-p { position: absolute; z-index: 1; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 1px; width: 76px; min-height: 0; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.tv-face { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid #ffffffaa; background: #142220; }
.tv-p.g-R .tv-face { border-color: #5fb4ff; } .tv-p.g-U .tv-face { border-color: #ff6b7d; } .tv-p.g-E .tv-face { border-color: #c77dff; } .tv-p.g-L .tv-face, .tv-p.g-M .tv-face { border-color: #f2c14e; }
.tv-face img { width: 100%; height: 100%; object-fit: cover; object-position: top; } .tv-face img.flip { transform: scaleX(-1); }
.tv-p b { max-width: 76px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; text-shadow: 0 1px 2px #000; }
.tv-p small { font-size: 10px; padding: 0 4px; border-radius: 6px; background: #000a; }
.tv-p:hover .tv-face, .tv-p:focus-visible .tv-face { outline: 2px solid var(--lime); }
@media (max-width: 600px) { .tv-p { width: 58px; } .tv-face { width: 34px; height: 34px; } .tv-p b { font-size: 10px; max-width: 58px; } }

/* 💬 채팅(2026-11-23) */
.chat-rules { margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid #f2c14e88; background: #2c2614; color: #ffe7a6; }
.chat-rules ul { margin: 6px 0 0; padding-left: 20px; line-height: 1.6; }
.chat-state { padding: 8px 12px; border-radius: 8px; background: #3a1f22; color: #ffc2c8; }
.chat-box { display: flex; flex-direction: column; gap: 6px; height: min(56vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 10px; border-radius: 12px; border: 1px solid #354642; background: #111b19; }
.chat-m { align-self: flex-start; max-width: min(80%, 560px); padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: #1f2f2b; line-height: 1.45; overflow-wrap: anywhere; }
.chat-m b { display: block; font-size: 12px; color: #9fd8bd; }
.chat-m small, .chat-sys small { margin-left: 6px; font-size: 11px; color: #7f958d; }
.chat-m.mine { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: #2b4a2a; }
.chat-m.mine b { color: #d9ff79; }
.chat-sys { align-self: flex-end; max-width: min(85%, 560px); padding: 6px 10px; border-radius: 10px; border: 1px dashed #ff8f9c; background: #3a1f22; color: #ffc2c8; font-size: 14px; }
.chat-form { display: flex; gap: 8px; margin-top: 8px; }
.chat-form input { flex: 1; min-width: 0; min-height: 44px; }

/* ⬆ 등급 올리기 · 🧬 계승 설명(2026-11-23) */
.gup-say { margin: 6px 0; line-height: 1.55; }
.gup-hint { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; border: 1px dashed #5f7864; color: #c9d8d2; line-height: 1.5; }

/* 전담 지정 도움말(2026-11-23) */
.duty-help { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: #2c2614; color: #ffe7a6; line-height: 1.55; }
.duty-help small { color: #d9cfa8; }
#duties-smart { margin: 0 0 10px; min-height: 40px; }

/* 강화 정렬(2026-11-23) */
.enh-mat-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.enh-mat-head h3, .enh-mat-head p { margin: 6px 0; }
.enh-sort { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
.enh-sort select { min-height: 38px; }
.cup-boards-note { flex-basis: 100%; margin: 0 0 6px; padding: 8px 12px; border-radius: 8px; background: #2c2614; color: #ffe7a6; text-align: center; }

/* 🎯 희망 직업·직업 추천(2026-11-23) */
.career-guide { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: #2c2614; color: #ffe7a6; line-height: 1.55; } .career-guide small { color: #d9cfa8; }
.career-hope { margin: 4px 0 6px; min-height: 34px; padding: 4px 10px; border-radius: 999px; border: 1px solid #f2c14e88; background: #2c2614; color: #ffe7a6; font-weight: 700; } .career-hope.on { background: #f2c14e; color: #2a2008; }
.statpick { padding: 1px 6px; border-radius: 6px; background: #1f3a5a; color: #bfe0ff; }
.skill-hope { margin: 6px 0 10px; padding: 8px 12px; border-radius: 8px; background: #2c2614; color: #ffe7a6; } .skill-hope button { margin-left: 6px; min-height: 32px; }

/* 📩 귓속말 · 💬 채팅 전광판(2026-11-23) */
.chat-online { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid #3c5148; background: #142220; }
.chat-online header { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.chat-on-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-on { min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 1px solid #4fd18b88; background: #18301f; color: #d9ffe6; font-weight: 700; }
.chat-on:hover:not(:disabled) { background: #26371f; border-color: var(--lime); }
.chat-on.off { opacity: .45; }
.dm-box h2 { margin-top: 0; text-align: center; }
.dm-from { text-align: center; font-size: 1.15rem; margin: 0 0 6px; }
.dm-text { margin: 0 auto 10px; max-width: 460px; padding: 14px 16px; border-radius: 14px; background: #24402b; font-size: 1.2rem; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.dm-note { margin: 6px 0 10px; padding: 6px 10px; border-radius: 8px; background: #2c2614; color: #ffe7a6; font-size: 13px; text-align: center; }
#chat-ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 801; height: 30px; overflow: hidden; display: flex; align-items: center; background: #0f2418; border-top: 1px solid #4fd18b; color: #d9ffe6; font-size: 14px; cursor: pointer; }
body.has-ticker #chat-ticker { bottom: 32px; }
#chat-ticker[hidden] { display: none; }
#chat-ticker .ct-move { display: inline-flex; gap: 22px; white-space: nowrap; padding-left: 100%; animation: ctMove var(--ct, 12s) linear 1 forwards; will-change: transform; }
#chat-ticker i { color: #4fd18b; font-style: normal; }
@keyframes ctMove { from { transform: translateX(0); } to { transform: translateX(-100%); } }
body:has(#rp-cv) #chat-ticker { display: none; }

/* 🃏 유학 결과 카드(2026-11-23) */
.study-card-res h2 { text-align: center; margin: 0 0 12px; }
.study-card-res.great h2 { color: #f2c14e; text-shadow: 0 0 14px rgba(242, 193, 78, .45); }
.study-card-res .scr-body { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; }
.study-card-res .scr-art { width: 170px; flex: 0 0 auto; border-radius: 12px; overflow: hidden; }
.study-card-res.great .scr-art { box-shadow: 0 0 0 2px #f2c14e, 0 0 26px rgba(242, 193, 78, .55); }
.study-card-res .scr-info { min-width: 220px; flex: 1 1 240px; max-width: 360px; }
.study-card-res .scr-name { display: block; font-size: 1.25rem; }
.study-card-res .scr-lines { margin-top: 10px; }
/* 2026-11-25 전체 능력치 · 오른 칸 강조 · 합계 */
.study-card-res .scr-info { max-width: 400px; }
.study-card-res .scr-lines li { padding: 1px 6px; border-radius: 6px; }
.study-card-res .scr-lines li:not(.up):not(.sum) b { color: #9fb3ad; font-weight: 600; }
.study-card-res .scr-lines li.up { background: rgba(125, 255, 168, .1); }
.study-card-res .scr-lines li.sum { margin-top: 4px; padding-top: 5px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 1.1em; }
.study-card-res .scr-lines li.sum span { color: #fff; font-weight: 800; }

/* ⚡ 실시간 친선 칸(2026-11-23 선생님 「더 잘 보이게 크게」) */
.mode-stage.mode-live { border-color: #f2c14e; }
.mode-live .live-hint { margin: 2px 0 8px; }
.mode-live #frlive { font-size: 1.1rem; padding: 12px; }
.match-modes > .mode-live { grid-column: 1 / -1; }

/* 🏫 홈 반 대항전(2026-11-23 · 무료 팩 받은 뒤 그 칸) */
.home-cls-mod { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px; text-align: left; }
.home-cls-mod .hcm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.home-cls-mod .hcm-head > b { font-size: 1.15rem; color: #ffd84a; }
.hcm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hcm-list li { display: grid; grid-template-columns: 2em 4.6em 1fr auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.hcm-list li.me { background: rgba(127, 214, 162, .16); outline: 1px solid #7fd6a2; }
.hcm-list li.hcm-gap { display: block; text-align: center; background: none; padding: 0; color: #8aa; }
.hcm-rk { text-align: center; font-weight: 700; }
.hcm-wdl { color: #cfe; font-size: .92em; }
.hcm-pts small { color: #9bb; }
.lobby-cls { align-self: flex-start; margin: 4px 0 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid #7fd6a2; background: rgba(20, 40, 32, .75); color: #e8fff2; font-size: .95rem; cursor: pointer; }
.lobby-cls small { color: #ffd84a; margin-left: 4px; }
@media (max-width: 600px) { .hcm-list li { grid-template-columns: 1.8em 4.2em 1fr; } .hcm-pts { grid-column: 2 / -1; } }

/* 🎓 유학 안내(2026-11-23) */
.study-slot-cta { width: 100%; font: inherit; cursor: pointer; background: rgba(127, 214, 162, .08); border: 2px dashed #7fd6a2; color: #e8fff2; font-size: 1.05rem; animation: study-cta 1.8s ease-in-out infinite; }
.study-slot-cta small { display: block; font-size: .8rem; color: #9bb; margin-top: 4px; }
@keyframes study-cta { 50% { border-color: #ffd84a; } }
@media (prefers-reduced-motion: reduce) { .study-slot-cta { animation: none; } }
.study-pick-hint { color: #ffd84a; margin: 4px 0 0; }
.study-slot.study-slot-cta { display: block; text-align: center; padding: 16px 12px; }

/* 🎲 주사위 안 던짐 알림(2026-11-23) */
.dice-nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; width: 100%; margin: 0 0 12px; padding: 12px 16px; border-radius: 14px; border: 2px solid #ffd84a; background: linear-gradient(90deg, rgba(255, 216, 74, .18), rgba(255, 216, 74, .05)); color: #fff6cf; font: inherit; font-size: 1.05rem; text-align: left; cursor: pointer; animation: dice-nudge 1.6s ease-in-out infinite; }
.dice-nudge span { font-size: .85rem; color: #e9dca0; }
@keyframes dice-nudge { 50% { box-shadow: 0 0 18px rgba(255, 216, 74, .45); } }
@media (prefers-reduced-motion: reduce) { .dice-nudge { animation: none; } }
.lot-dice-big small { color: #ffd84a; font-weight: 700; }

/* 🏫 반 대항전 2학년·전체 · 자세히(2026-11-23) */
.hcm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hcm-two h4 { margin: 0 0 4px; font-size: .9rem; color: #9fdcbc; }
.hcm-two .hcm-list li { grid-template-columns: 1.8em 1fr auto; padding: 5px 8px; }
.cls-boards .cls-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cls-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cls-two h3 { margin: 4px 0; font-size: 1rem; color: #9fdcbc; }
.cls-two li.me, .cls-table tr.me { background: rgba(127, 214, 162, .16); }
.cls-detail h3 { margin: 16px 0 6px; }
.cls-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cls-table th, .cls-table td { padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: center; white-space: nowrap; }
.cls-table th[scope="row"] { text-align: left; }
.cls-people { margin: 6px 0; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.cls-people summary { cursor: pointer; padding: 4px 0; }
@media (max-width: 600px) { .cls-two, .hcm-two { grid-template-columns: 1fr; } }
.cls-detail .table-wrap { overflow-x: auto; }

/* 💪 신화 능력치(2026-11-23) */
.myth .mh-btn { width: 100%; font: inherit; color: inherit; text-align: left; background: none; border: 1px solid transparent; border-radius: 12px; padding: 4px; cursor: pointer; }
.myth .mh-btn:hover, .myth .mh-btn:focus-visible { border-color: #ffd84a; background: rgba(255, 216, 74, .06); }
.mh-stat-hint { display: block; color: #ffd84a; font-size: .78rem; margin-top: 2px; }
.myth-stat .mst-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.myth-stat .mst-head img { width: 84px; height: 84px; object-fit: contain; border-radius: 14px; background: #0004; box-shadow: 0 0 0 2px #ffd84a, 0 0 22px rgba(255, 216, 74, .4); }
.myth-stat h2 { margin: 0 0 4px; }
.mst-table td, .mst-table th { text-align: center; }
.mst-table th[scope="row"] { text-align: left; }
.mst-goal { text-align: center; font-size: 1.05rem; margin-top: 10px; color: #ffd84a; }
/* 💪 신화 능력치 색(2026-11-23 「한눈에 들어오게」) */
.mst-tier { display: inline-block; padding: 2px 8px; border: 1px solid; border-radius: 999px; font-size: .85rem; background: rgba(0, 0, 0, .25); }
.mst-val { font-weight: 800; font-size: 1.05rem; }
.mst-bar { display: block; height: 6px; margin: 4px auto 0; max-width: 140px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mst-bar i { display: block; height: 100%; border-radius: 4px; }
.mst-main { color: #ffd84a; font-size: .75rem; }
.mst-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; margin: 8px 0 0; font-size: .82rem; color: #b9c7c2; }
.mst-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* 📅 출석판(2026-11-23 · 꾸밈 v2) — 움직이는 것은 transform·opacity만 */
.attend-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin: 0 0 12px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(100deg, #10253a, #1b1838 60%, #2a1d10); border: 2px solid #4a6a80; color: inherit; cursor: pointer; }
.attend-card.ready { border-color: #6fd3ff; animation: mbnPulse 2.4s ease-out infinite; }
.attend-card .lot-ic { font-size: 30px; } .attend-card .lot-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.attend-card .lot-main b { font-size: 17px; color: #bfeaff; } .attend-card .lot-main b em { font-style: normal; font-size: 14px; color: #ffd84a; margin-left: 6px; }
.attend-card small { color: var(--sub); } .attend-card .lot-go { margin-left: auto; font-size: 24px; color: #6fd3ff; }

.box.att-modal { max-width: 720px; padding: 0; overflow-x: hidden; background: #0f1722; }
.att { position: relative; padding: 0 0 18px; }
.att-hero { display: flex; gap: 16px; align-items: center; padding: 20px 22px 16px; background: radial-gradient(120% 140% at 0% 0%, #2c4f7a 0%, #1a2440 45%, #131a2c 100%); border-bottom: 1px solid #2a3a55; }
.att-month { flex: none; width: 74px; height: 80px; border-radius: 12px; background: #fff8ea; color: #c0392b; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 6px 0 #c9b48a, 0 8px 18px rgba(0, 0, 0, .45); position: relative; }
.att-month::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 18px; border-radius: 12px 12px 0 0; background: #e74c3c; }
.att-month b { font-size: 36px; line-height: 1; margin-top: 12px; font-weight: 900; } .att-month small { color: #7a5a3a; font-weight: 700; }
.att-head { flex: 1; min-width: 0; }
.att-head h2 { margin: 0; font-size: 22px; letter-spacing: .5px; color: #fff; }
.att-head p { margin: 4px 0 12px; color: #c9dcf0; } .att-head p b { color: #ffd84a; font-size: 1.15em; }
.att-bar { position: relative; height: 12px; border-radius: 8px; background: #0b1220; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); margin-right: 14px; }
.att-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, #3fb8ff, #7ef0c4); transition: width .6s; }
.att-pin { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: #241a3a; border: 2px solid #c77dff; }
.att-pin.pin-L { background: #3a2a08; border-color: #ffc83d; }
.att-pin.got { box-shadow: 0 0 10px #fff; }
.att-count { display: block; margin-top: 10px; color: #8fa6bd; }

.att-grid { list-style: none; margin: 16px 18px 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.att-cell { position: relative; min-height: 128px; padding: 22px 6px 10px; border-radius: 14px; background: linear-gradient(180deg, #1d2a3e, #162131); border: 1px solid #2f4460; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; overflow: hidden; }
.att-no { position: absolute; top: 6px; left: 8px; font-size: 13px; font-weight: 800; color: #8fb3d6; } .att-no small { font-size: 10px; font-weight: 400; margin-left: 1px; color: #6b829b; }
.att-art { width: 58px; height: 58px; display: grid; place-items: center; }
.att-art img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; box-shadow: 0 3px 8px rgba(0, 0, 0, .45); }
.att-art img.epic, .att-win-card img.epic { filter: hue-rotate(135deg) saturate(1.2); }
.att-coin { font-size: 42px; line-height: 1; }
.att-name { font-size: 12.5px; line-height: 1.25; color: #e8f0f8; word-break: keep-all; }
.att-cell.done { background: linear-gradient(180deg, #1a2230, #141b26); }
.att-cell.done .att-art, .att-cell.done .att-name { opacity: .38; }
.att-seal { position: absolute; left: 50%; top: 48%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; border: 3px solid #e0393e; display: grid; place-items: center; transform: rotate(-16deg); background: radial-gradient(circle, rgba(224, 57, 62, .18), rgba(224, 57, 62, .05)); box-shadow: inset 0 0 0 3px rgba(224, 57, 62, .35); }
.att-seal b { color: #ff4d52; font-size: 17px; font-weight: 900; letter-spacing: 2px; }
.att-cell.just .att-seal { animation: attSeal .5s cubic-bezier(.2, 1.5, .4, 1) 1 both; }
.att-cell.just { animation: attShake .35s .32s 1; }
@keyframes attSeal { 0% { transform: scale(2.6) rotate(-30deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(-16deg); opacity: 1; } }
@keyframes attShake { 0%, 100% { transform: none; } 30% { transform: translateY(3px); } 60% { transform: translateY(-1px); } }
.att-cell.now { border: 2px solid #6fd3ff; background: linear-gradient(180deg, #1d3550, #17283c); box-shadow: 0 0 0 3px rgba(111, 211, 255, .18); }
.att-today { position: absolute; top: 6px; right: 6px; padding: 1px 7px; border-radius: 10px; background: #6fd3ff; color: #08202e; font-size: 11px; font-weight: 800; animation: attBob 1.2s ease-in-out infinite; }
@keyframes attBob { 50% { transform: translateY(-3px); } }
.att-cell.big .att-today { top: auto; bottom: 8px; right: auto; left: 10px; }
.att-cell.big { grid-column: span 2; flex-direction: row; justify-content: center; gap: 12px; padding: 26px 12px 12px; border-width: 2px; }
.att-cell.big .att-art, .att-cell.big .att-art img { width: 78px; height: 78px; }
.att-cell.big .att-name { font-size: 15px; font-weight: 800; text-align: left; max-width: 9em; }
.att-cell.big-E { border-color: #c77dff; background: linear-gradient(140deg, #3a1f5c, #1d1433 70%); box-shadow: 0 0 18px rgba(199, 125, 255, .4); }
.att-cell.big-E .att-name { color: #e6c8ff; }
.att-cell.big-L { border-color: #ffc83d; background: linear-gradient(140deg, #5a4010, #2a1d08 70%); box-shadow: 0 0 22px rgba(255, 200, 61, .5); }
.att-cell.big-L .att-name { color: #ffe9a8; }
.att-cell.big::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent); transform: translateX(-120%); animation: attShine 3.2s ease-in-out infinite; pointer-events: none; }
.att-cell.big.done::after { display: none; }
@keyframes attShine { 60%, 100% { transform: translateX(320%); } }
.att-ribbon { position: absolute; top: 0; right: 0; padding: 3px 10px 3px 12px; border-radius: 0 12px 0 12px; font-size: 11.5px; font-weight: 800; color: #fff; background: #8e44d6; }
.big-L .att-ribbon { background: #d39a12; color: #2a1d08; }
.att-rule { margin: 8px 18px 12px; text-align: center; font-size: 12.5px; color: #7f94aa; }
.att-go { display: block; width: calc(100% - 36px); margin: 0 18px; padding: 15px; border: 0; border-radius: 14px; font-size: 19px; font-weight: 900; color: #3a0a0c; background: linear-gradient(180deg, #ff8a7a, #e0393e); box-shadow: 0 5px 0 #8e1f23, 0 8px 18px rgba(224, 57, 62, .35); cursor: pointer; }
.att-go:active { transform: translateY(4px); box-shadow: 0 1px 0 #8e1f23; }
.att-go:disabled { opacity: .6; }
.att-done { text-align: center; color: #9fe6b0; margin: 4px 18px 0; font-weight: 700; }
.att-win { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(5, 8, 14, .82); animation: attFade .3s 1; }
@keyframes attFade { from { opacity: 0; } }
.att-win-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 30px 20px; border-radius: 18px; background: #1d1433; border: 2px solid #c77dff; text-align: center; overflow: hidden; animation: attPop .5s cubic-bezier(.2, 1.5, .4, 1) 1; }
.win-L .att-win-card { background: #2a1d08; border-color: #ffc83d; }
.att-win-card img { width: 120px; height: 120px; border-radius: 14px; position: relative; }
.att-win-card .att-coin { font-size: 80px; position: relative; }
.att-win-card b { position: relative; font-size: 20px; color: #fff; } .att-win-card small { position: relative; color: #c9b8e8; }
.att-win-card > div { position: relative; display: flex; gap: 8px; margin-top: 6px; }
.att-win-rays { position: absolute; left: 50%; top: 40%; width: 420px; height: 420px; margin: -210px 0 0 -210px; background: repeating-conic-gradient(rgba(199, 125, 255, .22) 0 10deg, transparent 10deg 20deg); border-radius: 50%; animation: attSpin 9s linear infinite; }
.win-L .att-win-rays { background: repeating-conic-gradient(rgba(255, 200, 61, .25) 0 10deg, transparent 10deg 20deg); }
@keyframes attSpin { to { transform: rotate(360deg); } }
@keyframes attPop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (max-width: 520px) {
  .att-hero { padding: 16px 14px 14px; gap: 12px; } .att-month { width: 60px; height: 66px; } .att-month b { font-size: 28px; }
  .att-head h2 { font-size: 18px; }
  .att-grid { margin: 12px 10px 4px; grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .att-cell { min-height: 112px; } .att-art, .att-art img { width: 48px; height: 48px; } .att-name { font-size: 11.5px; }
  .att-cell.big { grid-column: span 3; }
  .att-go { width: calc(100% - 20px); margin: 0 10px; }
}

.att-art { position: relative; } .att-art img.att-more { position: absolute; right: -10px; bottom: -6px; width: 34px; height: 34px; border-radius: 8px; border: 2px solid #162131; }

/* 🎡 랭킹전 룰렛(2026-11-23) */
.wheel-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin: 0 0 12px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(100deg, #2a1a0c, #1c2330 60%, #10253a); border: 2px solid #7a6440; color: inherit; cursor: pointer; }
.wheel-card.ready { border-color: #ffc83d; animation: mbnPulse 2.4s ease-out infinite; }
.wheel-card .lot-ic { font-size: 30px; } .wheel-card .lot-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wheel-card .lot-main > b { font-size: 17px; color: #ffe39a; } .wheel-card small { color: var(--sub); } .wheel-card small b { color: #ffd84a; }
.wheel-card .lot-go { margin-left: auto; font-size: 24px; color: #ffc83d; }
.wh { position: relative; text-align: center; }
.wh-head { display: flex; align-items: center; gap: 12px; text-align: left; }
.wh-ic { font-size: 38px; } .wh-head h2 { margin: 0; } .wh-head p { margin: 2px 0 0; color: #c9dcf0; } .wh-head p b { color: #ffd84a; font-size: 1.15em; }
.wh-stage { width: min(330px, 80vw); }
.wh-disc { box-shadow: 0 0 0 6px #2a2216, 0 0 0 9px #c8a24a, 0 10px 26px #000a; }
.wh-q { fill: #fff; font-size: 11px; font-weight: 900; paint-order: stroke; stroke: #0008; stroke-width: 2.5px; }
.wh-star { fill: #fff6c8; font-size: 10px; }
.wh-list { margin: 12px auto 0; max-width: 420px; text-align: left; }
.wh-list summary { cursor: pointer; color: #9fb4c8; text-align: center; }
.wh-list ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.wh-list li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; background: var(--panel2); font-size: 13px; }
.wh-list li img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; } .wh-list li .att-coin { font-size: 24px; }
.wh-list li.big { border: 1px solid #ffc83d; background: linear-gradient(100deg, #3a2a08, #2a1d40); }
.wh-list li b { margin-left: auto; font-size: 11px; color: #ffd84a; }
.wh-rule { font-size: 12px; margin: 10px 0 0; }
.wh-jack { position: relative; margin: 0; font-size: 26px; color: #ffe27a; }
.att-win.win-n .att-win-card { background: #172433; border-color: #6fd3ff; }

.wh-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 3px 0 1px; } .wh-steps i { font-style: normal; font-size: 12.5px; padding: 2px 8px; border-radius: 10px; background: #26324a; color: #c9dcf0; } .wh-steps i b { color: #fff; } .wh-steps i.big { background: linear-gradient(90deg, #6b3a0c, #8a5a12); color: #ffe7a6; } .wh-steps i.big b { color: #ffd84a; } .wh-steps i.got { outline: 2px solid #7ef0c4; } .wh-steps i.got::before { content: '✅ '; }

/* 📝 큰 점수 차 문자 중계(2026-11-23) */
.rp-big.ticker { background: #0b0a12d9; }
.rp-big.ticker strong { font-size: clamp(26px, 5vw, 48px); }
.rp-big.ticker p { display: flex; flex-direction: column; gap: 4px; max-height: 70%; overflow: hidden; font-size: clamp(13px, 2vw, 19px); text-align: left; }
.rp-big .tk { display: block; opacity: 0; animation: tkIn .35s ease-out var(--d) forwards; }
.rp-big .tk em { font-style: normal; color: #9fe6ff; margin-right: 4px; } .rp-big .tk i { font-style: normal; color: #ffd84a; font-weight: 900; margin-left: 6px; }
.rp-big .tk-a b { color: #bcd4ff; } .rp-big .tk-b b { color: #ffc2b8; } .rp-big .tk-end { color: #ffe7a6; font-weight: 800; text-align: center; }
@keyframes tkIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

/* 🛡 강화 보호권(2026-11-23) */
.protect-ask { text-align: center; max-width: 420px; margin: 0 auto; } .pa-ic { font-size: 56px; line-height: 1; animation: attPop .5s cubic-bezier(.2, 1.5, .4, 1) 1; }
.protect-ask h2 { margin: 6px 0 2px; } .protect-ask .big { font-size: 28px; font-weight: 900; margin: 4px 0; }
.protect-ok { text-align: center; margin: 6px auto; padding: 8px 12px; max-width: 380px; border-radius: 12px; background: linear-gradient(100deg, #12324a, #1d3a2a); border: 2px solid #7ef0c4; color: #c8ffe6; font-weight: 800; font-size: 17px; animation: attPop .5s cubic-bezier(.2, 1.5, .4, 1) 1; }

/* 📊 스킬 열기 창 능력치 미리 보기(2026-11-23) */
.skw-left { align-self: start; display: grid; gap: 12px; min-width: 0; }
.skw-stats { padding: 12px 14px; border-radius: 14px; background: #15261f; border: 1px solid #2f4a40; }
.skw-stats h4 { margin: 0 0 8px; font-size: 14px; color: #edf8f0; } .skw-stats h4 span { font-weight: 400; color: #9fbcb0; font-size: 12.5px; } .skw-stats h4 b { color: var(--reward-gold, #f2c14e); }
.skw-sbars { display: grid; gap: 5px; }
.skw-sb { display: grid; grid-template-columns: 52px 1fr 30px 76px; align-items: center; gap: 6px; font-size: 12.5px; }
.skw-sb .sk { color: #cfe0d8; } .skw-sb .track { position: relative; height: 9px; border-radius: 5px; background: #0d1813; overflow: hidden; }
.skw-sb .track i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 5px; } .skw-sb .track i.plus { background: #7ef0c4; border-radius: 0 5px 5px 0; animation: skwPlus .5s ease-out both; }
@keyframes skwPlus { from { opacity: 0; transform: scaleX(.2); transform-origin: left; } }
.skw-sb .val { text-align: right; font-weight: 800; } .skw-sb .dlt { color: #7ef0c4; font-weight: 800; white-space: nowrap; }
.skw-sb.up { background: #1d3a2e; border-radius: 6px; }
.skw-stats p { margin: 8px 0 0; font-size: 12px; }

/* 🚀 도약 강화권(2026-11-23) */
.enh-leap { width: 100%; margin-top: 8px; padding: 10px; border-radius: 12px; border: 2px solid #c77dff; background: linear-gradient(100deg, #3a1f5c, #1d2f4a); color: #f0e0ff; font-weight: 800; font-size: 16px; cursor: pointer; } .enh-leap small { display: block; font-weight: 400; font-size: 12px; color: #cdb8e8; } .enh-leap:disabled { opacity: .5; }

/* 오늘 줄(출석판 · 랭킹전 룰렛) = 홈 맨 위(2026-11-23) */
.today-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin: 0 0 12px; }
.today-row > button { margin: 0; padding: 9px 14px; }
.today-row .lot-ic { font-size: 26px; } .today-row .lot-main > b { font-size: 16px; }

/* 🔥 강화 연출(2026-11-23) — +1~+6 짧게(ed-tlo) · +7 금 · +8 붉은 금 · +9 보라 · +10 무지개 · transform·opacity만 움직임 */
.ed { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; overflow: hidden; --c1: #ffd76a; --c2: #ff9f43; --charge: 0; animation: edIn .3s ease-out both; cursor: default; }
.ed.out { animation: edOut .26s ease-in both; }
@keyframes edIn { from { opacity: 0; } } @keyframes edOut { to { opacity: 0; } }
.ed-t8 { --c1: #ffb04a; --c2: #ff4d52; } .ed-t9 { --c1: #e0a6ff; --c2: #7a3cff; } .ed-t10 { --c1: #fff3a0; --c2: #ff5ac8; }
.ed-tlo { --c1: #9fe6ff; --c2: #4f9dff; }
.ed-bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, #1a1630 0%, #07060d 70%); opacity: .93; }
.ed-tlo .ed-bg { opacity: .78; }
.ed-rays { position: absolute; left: 50%; top: 45%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--c1) 22%, transparent) 0 6deg, transparent 6deg 18deg); opacity: 0; transform: scale(.6) rotate(0); transition: opacity .6s; animation: edSpin 14s linear infinite; }
.ed-t10 .ed-rays { background: repeating-conic-gradient(#ff5a5a33 0 5deg, transparent 5deg 12deg, #ffd84a33 12deg 17deg, transparent 17deg 24deg, #5affb033 24deg 29deg, transparent 29deg 36deg, #5ab4ff33 36deg 41deg, transparent 41deg 48deg, #c45aff33 48deg 53deg, transparent 53deg 60deg); }
.ed.beat .ed-rays { opacity: calc(.25 + var(--charge) * .5); }
.ed.win .ed-rays { opacity: 1; animation-duration: 5s; }
.ed.lose .ed-rays, .ed.keep .ed-rays { opacity: 0; }
@keyframes edSpin { to { transform: scale(1) rotate(360deg); } }
.ed-ring { position: absolute; left: 50%; top: 45%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; border: 3px solid var(--c1); box-shadow: 0 0 30px var(--c1), inset 0 0 30px var(--c2); opacity: 0; transform: scale(1.6); }
.ed.beat .ed-ring { animation: edRing .5s ease-out 1; }
@keyframes edRing { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.7); } }
.ed-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 16px; }
.ed-top { margin: 0; color: #cfd6f0; font-size: 18px; } .ed-top b { color: var(--c1); font-size: 1.25em; }
.ed-card { position: relative; width: 170px; transform: scale(.9); transition: transform .4s; }
.ed-tlo .ed-card { width: 130px; }
.ed-card .collection-art { display: block; width: 100%; border-radius: 14px; box-shadow: 0 0 calc(10px + var(--charge) * 40px) var(--c1); }
.ed.beat .ed-card { animation: edBeat .42s ease-out 1; }
@keyframes edBeat { 0% { transform: scale(.9); } 30% { transform: scale(1.04); } 100% { transform: scale(.92); } }
.ed.win .ed-card { animation: edWin .7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes edWin { 0% { transform: scale(.9); } 50% { transform: scale(1.14); } 100% { transform: scale(1.02); } }
.ed.lose .ed-card { animation: edShake .5s ease-in-out 1 both; }
.ed.lose .ed-card .collection-art { opacity: .55; box-shadow: none; }
@keyframes edShake { 0%, 100% { transform: translateX(0) scale(.9); } 20% { transform: translateX(-10px) scale(.9); } 40% { transform: translateX(9px) scale(.9); } 60% { transform: translateX(-6px) scale(.9); } 80% { transform: translateX(4px) scale(.9); } }
.ed-crack { position: absolute; inset: 0; opacity: 0; background: linear-gradient(115deg, transparent 46%, #fff 47%, transparent 48.5%), linear-gradient(62deg, transparent 54%, #fffc 55%, transparent 56%), linear-gradient(160deg, transparent 38%, #fffa 39%, transparent 40%); border-radius: 14px; }
.ed.lose .ed-crack { animation: edCrack .25s .15s ease-out both; }
@keyframes edCrack { from { opacity: 0; transform: scale(1.2); } to { opacity: .9; transform: scale(1); } }
.ed-beat { min-height: 1.4em; margin: 0; font-size: 26px; font-weight: 900; color: var(--c1); letter-spacing: 2px; }
.ed.beat .ed-beat { animation: edWord .42s ease-out 1; }
@keyframes edWord { 0% { transform: scale(1.35); opacity: .4; } 100% { transform: scale(1); opacity: 1; } }
.ed-big { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ed-big strong { font-size: clamp(42px, 9vw, 86px); font-weight: 900; color: #fff; -webkit-text-stroke: 3px #120c1e; paint-order: stroke fill; text-shadow: 0 0 26px var(--c1); animation: edBig .55s cubic-bezier(.2, 1.6, .4, 1) both; }
.ed-tlo .ed-big strong { font-size: clamp(34px, 7vw, 60px); }
.ed-big > span { font-size: 34px; font-weight: 900; color: var(--c1); animation: edBig .55s .1s cubic-bezier(.2, 1.6, .4, 1) both; }
.ed.lose .ed-big > span, .ed.keep .ed-big > span { font-size: 20px; color: #aab3c6; }
.ed.keep .ed-big strong { text-shadow: 0 0 18px #7ef0c4; }
@keyframes edBig { from { transform: scale(2.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ed-fail { color: #aeb8c2 !important; text-shadow: none !important; } .ed-fail em { display: inline-block; font-style: normal; opacity: 0; animation: srl-drop .7s ease-in var(--d) forwards; }
.ed-big .enh-lines { margin: 6px 0 0; padding: 8px 14px; border-radius: 12px; background: #0b0a12cc; font-size: 17px; }
.ed-sparks { position: absolute; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; }
.ed-sparks i { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 10px var(--c2); opacity: 0; transform: rotate(var(--a)) translateY(0); }
.ed.win .ed-sparks i { animation: edSpark 1.2s var(--d) cubic-bezier(.1, .7, .3, 1) both; }
.ed-tlo.win .ed-sparks i:nth-child(2n) { display: none; }
@keyframes edSpark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1.4); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-46vmin) scale(.4); } }
.ed.win.crit .ed-sparks i { animation-duration: 1.6s; }
.ed-skip { position: absolute; right: 16px; bottom: 16px; padding: 8px 14px; border-radius: 10px; border: 1px solid #ffffff33; background: #ffffff14; color: #dfe6f5; font-size: 14px; }
.enh-gain { max-width: 380px; margin: 8px auto; padding: 10px 14px; border-radius: 12px; background: #13261e; border: 1px solid #2f5a48; }
.enh-gain h4 { margin: 0 0 6px; color: #c8ffe6; text-align: center; }
.enh-lines { justify-content: center; }
.enh-lines li em { color: #7ef0c4; font-style: normal; font-weight: 900; }
@media (prefers-reduced-motion: reduce) { .ed *, .ed { animation-duration: .01ms !important; } }
.ed.win .ed-card { width: 130px; } .ed-tlo.win .ed-card { width: 110px; }
.ed.win .ed-beat { display: none; }
@media (max-height: 640px) { .ed-card { width: 120px; } .ed.win .ed-card { width: 96px; } .ed-big strong { font-size: 44px; } .ed-big > span { font-size: 26px; } }

/* 🧹 선수단 정리: 위에 붙는 줄 · 필터 · 일괄 고르기(2026-11-23) */
.rc-bar { position: sticky; top: -1px; z-index: 3; display: grid; gap: 8px; margin: 8px 0 10px; padding: 10px 12px; border-radius: 12px; background: #14202b; border: 1px solid #2c3f52; box-shadow: 0 6px 14px #0008; }
.rc-flt, .rc-picks, .rc-go { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rc-flt button { padding: 5px 11px; border-radius: 999px; font-size: 13px; } .rc-flt button.on { outline: 2px solid #7ef0c4; background: #1d3a2e; }
.rc-picks button { padding: 6px 10px; font-size: 13px; }
.rc-go #rc-sum { flex: 1; min-width: 180px; } .rc-go #rc-sum b { color: #ffd84a; }
.rc-go #rc-sell { font-size: 15px; padding: 8px 16px; }
#rc-grid .card[hidden] { display: none; }

/* 🎯 경기마다 나갈 덱(2026-11-23) */
.deck-use { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.deck-use .du { display: flex; flex-direction: column; gap: 3px; padding: 7px 10px; border-radius: 10px; background: var(--panel2); border: 1px solid #2f4460; font-size: 13px; }
.deck-use .du > span { color: #c9dcf0; font-weight: 700; } .deck-use select { width: 100%; padding: 5px; }
.deck-use .du.bad { border-color: #ff9b8a; } .deck-use .du small { color: #ffb3a6; }

/* 🏠 홈 정리(2026-11-23 선생님): 오늘 줄(출석·룰렛·무료 팩) · 오른쪽 위 랭킹전 · 아래 우리 반 기여도 1위 · 반 대항전 하나 */
.daily-chip { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 9px 14px; border-radius: 14px; background: linear-gradient(100deg, #3a2a10, #1d2a1a); border: 2px solid #ffc83d; color: inherit; cursor: pointer; animation: mbnPulse 2.4s ease-out infinite; }
.daily-chip .lot-ic { font-size: 26px; } .daily-chip .lot-main { display: flex; flex-direction: column; gap: 2px; } .daily-chip .lot-main b { font-size: 16px; color: #ffe39a; } .daily-chip small { color: var(--sub); } .daily-chip .lot-go { margin-left: auto; font-size: 24px; color: #ffc83d; }
.today-row:empty { display: none; }
.hsc-two { display: grid; gap: 10px; }
.hsc-row { padding: 8px 10px; border-radius: 10px; background: #ffffff0a; }
.hsc-row > small { color: #9fbcb0; font-weight: 700; } .hsc-row p { margin: 3px 0 0; } .hsc-row p b { font-size: 17px; color: #ffe39a; } .hsc-row p span { color: #c9d6d0; font-size: 13px; margin-left: 4px; } .hsc-row em { font-style: normal; font-size: 12px; padding: 1px 6px; border-radius: 8px; background: #7ef0c4; color: #08202e; font-weight: 800; }
.hcm-wdl { color: #9fb4c8; font-size: 12px; margin-left: auto; margin-right: 6px; white-space: nowrap; }
/* 반 대항전 칸 넓게 · 추첨 칸 작게(2026-11-23) */
.lobby-utility { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) !important; align-items: stretch; }
.lobby-utility .lot-home-slot .lobby-module { min-height: 0 !important; height: 100%; }
.home-cls-mod { padding: 14px 18px; }
.hcm-two .hcm-list li { grid-template-columns: 1.8em auto 1fr auto; }
.hcm-two .hcm-list li .hcm-wdl { text-align: right; margin: 0; }
.hcm-pts { white-space: nowrap; }
@media (max-width: 760px) { .lobby-utility { grid-template-columns: 1fr !important; } }
label.sk-full { opacity: .55; }
/* 🔥 +8·+9·+10 점점 웅장하게(2026-11-23): 흔들림 · 이중 고리 · 큰 글자 · 섬광 */
.ed-t8.beat .ed-stage { animation: edQuake .3s ease-out 1; }
.ed-t9.beat .ed-stage { animation: edQuake2 .36s ease-out 1; }
.ed-t10.beat .ed-stage { animation: edQuake3 .4s ease-out 1; }
@keyframes edQuake { 25% { transform: translate(-3px, 2px); } 50% { transform: translate(3px, -2px); } 75% { transform: translate(-2px, 1px); } }
@keyframes edQuake2 { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(6px, -4px); } 60% { transform: translate(-4px, 3px); } 80% { transform: translate(3px, -2px); } }
@keyframes edQuake3 { 15% { transform: translate(-9px, 5px) rotate(-.6deg); } 35% { transform: translate(9px, -6px) rotate(.6deg); } 55% { transform: translate(-7px, 4px); } 75% { transform: translate(5px, -3px); } }
.ed-t9 .ed-ring, .ed-t10 .ed-ring { border-width: 5px; }
.ed-t10.beat .ed-ring { animation-duration: .7s; }
.ed-t9.win .ed-big strong { font-size: clamp(50px, 10vw, 100px); } .ed-t10.win .ed-big strong { font-size: clamp(58px, 12vw, 120px); }
.ed-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.ed-t9.win .ed-flash { animation: edFlash .55s ease-out 1; } .ed-t10.win .ed-flash { animation: edFlash2 .9s ease-out 1; }
@keyframes edFlash { 0% { opacity: .75; } 100% { opacity: 0; } }
@keyframes edFlash2 { 0% { opacity: .9; } 30% { opacity: .1; } 45% { opacity: .7; } 100% { opacity: 0; } }
.ed-t10.win .ed-sparks i { width: 11px; height: 11px; }
.ed-t10.win .ed-sparks i:nth-child(5n) { background: #5affb0; } .ed-t10.win .ed-sparks i:nth-child(5n+1) { background: #5ab4ff; } .ed-t10.win .ed-sparks i:nth-child(5n+2) { background: #ff5ac8; }

.mr-reroll { margin-left: auto; display: flex; flex-direction: column; align-items: center; padding: 6px 14px; line-height: 1.2; } .mr-reroll small { font-size: 11px; opacity: .85; }

/* 🎡 룰렛 칸 넓게 + 랭킹전 바로가기(2026-11-23) */
.wheel-card.wide { cursor: default; align-items: center; }
.wheel-card.wide .lot-main { flex: 1; }
.wh-bar { position: relative; display: block; height: 6px; margin-top: 5px; border-radius: 4px; background: #0b1220; max-width: 320px; }
.wh-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #ffc83d, #ff8a3d); }
.wh-bar em { position: absolute; top: -3px; width: 2px; height: 12px; background: #fff8; }
.wh-btns { display: flex; flex-direction: column; gap: 6px; margin-left: auto; }
.wh-btns button { white-space: nowrap; padding: 8px 14px; font-size: 14px; }
.today-row { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.today-row .wheel-card.wide { grid-column: span 2; }
@media (max-width: 700px) { .today-row .wheel-card.wide { grid-column: auto; flex-wrap: wrap; } .wh-btns { flex-direction: row; width: 100%; } .wh-btns button { flex: 1; } }
@media (min-width: 900px) { .today-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .today-row .wheel-card.wide { grid-column: span 2; } .today-row:not(:has(.daily-chip)) .wheel-card.wide { grid-column: span 3; } }

/* 🎴 1장 팩(2026-11-23 선생님 「팩 아래에 카드가 없어 · 드래그로 쪼는 맛」): 팩 아래에 그 카드의 등급 뒷면 · 팩을 끌면 뒷면이 보임 · 뜯으면 뒷면이 뒤집혀 앞면(한 번만 움직임) */
.pack-open.await-tear .solo-flip { visibility: visible; }
.solo-flip .solo-back { position: absolute; z-index: 1; inset: 0; border-radius: 8px; overflow: hidden; pointer-events: none; transform-origin: 50% 50%; }
.solo-flip .solo-back img { width: 100%; height: 100%; object-fit: cover; display: block; }
.solo-flip .sb-U { box-shadow: 0 0 14px #ff5d73aa; } .solo-flip .sb-E { box-shadow: 0 0 18px #c77dffcc; animation: sbGlow 1.4s ease-in-out infinite; }
.solo-flip .sb-L, .solo-flip .sb-M { box-shadow: 0 0 24px #ffd84a; animation: sbGlow 1s ease-in-out infinite; }
@keyframes sbGlow { 50% { box-shadow: 0 0 34px #fff3a0; } }
.solo-flip .fcard.on .solo-back { animation: sbFlip .32s ease-in forwards; }
@keyframes sbFlip { to { transform: scaleX(0); opacity: 0; visibility: hidden; } }
.solo-flip .fcard.on .fin { animation: sbFace .34s .26s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes sbFace { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pack-open.pack-single .pack-wrapper { background: transparent; }
.pack-open.pack-single .pack-wrapper { z-index: 5; }
.pack-open.pack-single.await-tear .solo-flip { width: min(172px, 48vw); transition: width .25s; }   /* 2026-11-23 선생님 「위인팩·합성 드래그하면 안의 카드가 너무 작아」: 124 → 172(팩 봉지 폭) */
.pack-open.pack-single.await-tear { display: grid; place-items: center; min-height: 300px; }

/* 🏠 홈 2026-11-23 저녁: 맨 위 줄 = 출석 · 룰렛 · 오늘의 추첨 · 주사위(+무료 팩) / 아래 = 반 대항전 한 줄(리그·랭킹전 × 학년·전체) */
@media (min-width: 900px) { .today-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1.2fr) minmax(0, .85fr); } .today-row .wheel-card.wide, .today-row:not(:has(.daily-chip)) .wheel-card.wide { grid-column: auto; } .today-row .daily-chip { grid-column: 1 / -1; } }
.today-row .wheel-card.wide { flex-wrap: wrap; } .today-row .wheel-card.wide .wh-btns { flex-direction: row; width: 100%; } .today-row .wheel-card.wide .wh-btns button { flex: 1; padding: 7px 8px; font-size: 13px; }
.today-row .lot-home-slot { min-width: 0; } .today-row .lot-home-slot > * { height: 100%; }
.today-row .lot-card { min-height: 0 !important; padding: 10px 12px !important; gap: 10px; border-radius: 14px; }
.today-row .lot-card .lot-art { width: 64px !important; height: 64px !important; flex: none; }
.today-row .lot-card .lot-name { font-size: 20px !important; }
.today-row .lot-card .lot-home-arrow { display: none; }
.dice-card { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; background: linear-gradient(120deg, #1b2a3a, #172033); border: 2px solid #3d5470; color: inherit; cursor: pointer; }
.dice-card.ready { border-color: #7ef0c4; animation: mbnPulse 2.4s ease-out infinite; }
.dice-card .lot-ic { font-size: 28px; } .dice-card .lot-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .dice-card .lot-main b { font-size: 16px; color: #d9f7ea; } .dice-card .lot-main b em { font-style: normal; font-size: 22px; color: #ffd84a; margin-left: 4px; } .dice-card small { color: var(--sub); } .dice-card .lot-go { margin-left: auto; font-size: 22px; color: #7ef0c4; }
.lobby-utility { display: block !important; }
.cls-wide { padding: 14px 18px; border-radius: 16px; background: linear-gradient(180deg, #16241f, #121b18); border: 1px solid #2e4a3f; }
.clsw-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; } .clsw-head h2 { margin: 0; font-size: 1.25rem; color: #ffd84a; } .clsw-head h2 small { font-size: .7em; margin-left: 6px; }
.clsw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cw-col { padding: 10px 12px; border-radius: 12px; background: #ffffff08; border: 1px solid #ffffff10; min-width: 0; }
.cw-col.cw-rnk { background: #1b2233; border-color: #2c3a58; }
.cw-col h3 { margin: 0 0 8px; font-size: .95rem; color: #bfe9d3; } .cw-rnk h3 { color: #c9d8ff; }
.cw-col ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.cw-col li { display: grid; grid-template-columns: 1.7em minmax(2.6em, auto) 1fr auto; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 9px; background: #ffffff0a; font-size: 13.5px; }
.cw-col li.me { background: #7fd6a233; outline: 1px solid #7fd6a2; }
.cw-col li.cw-gap { display: block; text-align: center; background: none; padding: 0; color: #8aa; }
.cw-rk { text-align: center; } .cw-wdl { color: #9fb4c8; font-size: 12px; text-align: right; white-space: nowrap; } .cw-pts { font-weight: 900; color: #ffe39a; white-space: nowrap; } .cw-pts small { font-size: 11px; font-weight: 400; color: #c9b88a; margin-left: 1px; }
.cw-note { margin: 10px 0 0; }
@media (max-width: 1100px) { .clsw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .clsw-grid { grid-template-columns: 1fr; } }
.lot-next { margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: #1d3a2e; color: #c8ffe6; font-weight: 800; text-align: center; }
.lot-new { font-style: normal; font-size: 11px; padding: 1px 6px; margin-left: 4px; border-radius: 8px; background: #ff5d73; color: #fff; vertical-align: middle; font-weight: 800; }

/* 📜 추첨 지난 회차(2026-11-23) */
.lot-hist { margin-top: 14px; padding-top: 10px; border-top: 1px solid #ffffff14; }
.lot-hist h3 { margin: 0 0 8px; font-size: 1rem; } .lot-hist ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.lot-hist li { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: #ffffff0a; font-size: 14px; }
.lh-n { color: #c9d6e0; white-space: nowrap; } .lh-n b { color: #ffd84a; font-size: 1.1em; } .lh-w { text-align: right; color: #c8ffe6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dice-only h2 small { font-size: .6em; margin-left: 6px; }
@media (max-width: 520px) { .lot-hist li { grid-template-columns: 1fr auto; } .lh-w { grid-column: 1 / -1; text-align: left; } }

/* 🧩 추첨 선수 나와의 관계(2026-11-23) */
.lot-player.big[role=button] { cursor: pointer; } .lot-player.big[role=button]:hover { outline: 2px solid #ffd84a66; }
.lot-rel { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #ffffff08; border: 1px solid #ffffff12; }
.lot-rel h3 { margin: 0 0 8px; font-size: 1rem; } .lot-rel h3 small { font-size: .75em; margin-left: 6px; }
.lr-row { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; align-items: start; margin: 6px 0; }
.lr-k { color: #c9d6e0; font-weight: 700; font-size: 13px; padding-top: 3px; } .lr-v { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.lr-c { padding: 3px 9px; border-radius: 999px; background: #26324a; font-size: 13px; } .lr-c.eq { background: #1d4a33; outline: 1px solid #7ef0c4; } .lr-c.av { background: #23402f; } .lr-c b { font-size: 11px; color: #c8ffe6; margin-left: 2px; }
.lr-link { width: 100%; padding: 6px 9px; border-radius: 10px; background: #ffffff0a; font-size: 13px; } .lr-link small { color: #9fb4c8; } .lr-link span { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; } .lr-link i { font-style: normal; color: #9fb4c8; } .lr-link i.own { color: #c8ffe6; }
.lr-link.full { outline: 1px solid #ffd84a; background: #3a2a0855; } .lr-link.part { outline: 1px solid #7ef0c455; } .lr-link em { display: block; font-style: normal; color: #ffd84a; font-weight: 800; margin-top: 2px; }

.lot-rel-mini { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; } .lot-rel-mini i { font-style: normal; font-size: 14px; padding: 1px 8px; border-radius: 999px; background: #ffffff1a; }

/* 🧩 네 가지 ✅/⬜(2026-11-23) */
.lot-rel-mini { display: grid !important; grid-template-columns: repeat(4, auto); gap: 4px !important; justify-content: start; }
.lot-rel-mini i { display: inline-flex; flex-direction: column; align-items: center; padding: 2px 7px !important; border-radius: 9px !important; line-height: 1.1; }
.lot-rel-mini i b { font-size: 12px; } .lot-rel-mini i small { font-size: 9.5px; color: #c9d6e0; }
.lot-rel-mini i.on { background: #1d4a33 !important; outline: 1px solid #7ef0c4; } .lot-rel-mini i.off { opacity: .45; }
.lr-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.lr4 { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #ffffff08; border: 1px solid #ffffff12; }
.lr4-ic { grid-row: 1 / 3; font-size: 26px; text-align: center; } .lr4 b { font-size: 14px; } .lr4 b em { font-style: normal; font-size: 12px; color: #ffd84a; margin-left: 4px; } .lr4 small { color: #c9d6e0; font-size: 12px; line-height: 1.35; }
.lr4.on { background: #173a2b; border-color: #7ef0c4; } .lr4.on b { color: #c8ffe6; } .lr4.off { opacity: .6; }
@media (max-width: 520px) { .lr-4 { grid-template-columns: 1fr; } }

/* 🎉 추첨 당첨 알림: 선수 얼굴 · 등급·별·문명권·나라 · 한 줄 역사(2026-11-23) */
.nt-emblem.nt-face { width: 96px !important; height: 96px !important; padding: 0 !important; overflow: hidden; border-radius: 18px; }
.nt-emblem.nt-face img { width: 100%; height: 100%; object-fit: cover; }
.nt-emblem.nt-face.g-L { box-shadow: 0 0 22px #ffd84a; } .nt-emblem.nt-face.g-E { box-shadow: 0 0 18px #c77dff; } .nt-emblem.nt-face.g-U { box-shadow: 0 0 14px #ff5d73; }
.nt-lot-line { margin: 4px 0 0; color: #f2dcc2; font-size: 14px; text-align: center; } .nt-lot-name { margin: 2px 0 0; font-size: 20px; font-weight: 900; color: #fff; text-align: center; }
.nt-bio { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #ffffff10; color: #f5e6d3; font-size: 14px; line-height: 1.5; }

/* 🧪 합성(2026-11-23) */
.fuse-open { margin-left: auto; display: inline-flex; flex-direction: column; align-items: center; padding: 6px 14px; line-height: 1.2; } .fuse-open small { font-size: 11px; opacity: .85; }
.fuse h2 small { font-size: .6em; margin-left: 6px; } .fuse-rule { margin: 4px 0 10px; }
.fuse-tabs { display: flex; gap: 6px; margin-bottom: 8px; } .fuse-tabs button { padding: 6px 14px; border-radius: 999px; } .fuse-tabs button.on { outline: 2px solid #7ef0c4; background: #1d3a2e; }
.fuse-bar { position: sticky; top: -1px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 8px; border-radius: 12px; background: #14202b; border: 1px solid #2c3f52; }
.fuse-slots { display: flex; gap: 4px; margin-right: auto; } .fuse-slots i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 2px dashed #3d5470; font-style: normal; color: #6b829b; } .fuse-slots i.on { border: 2px solid #7ef0c4; background: #1d3a2e; color: #c8ffe6; font-weight: 900; }
#fuse-go { font-size: 16px; padding: 8px 18px; }

/* 💥 추첨 대박(2026-11-23) */
.jackpot-top { display: grid; gap: 4px; margin: 0 0 10px; }
.jackpot-top span { display: block; padding: 8px 14px; border-radius: 12px; background: linear-gradient(90deg, #6b4a0c, #3a2a08 60%, #6b4a0c); border: 2px solid #ffd84a; color: #fff3c0; font-weight: 800; text-align: center; box-shadow: 0 0 14px #ffd84a55; }
.lot-jackpot { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 6px 0; padding: 12px; border-radius: 14px; background: radial-gradient(circle at 50% 0, #7a5a10, #2a1d08 70%); border: 2px solid #ffd84a; animation: attPop .5s cubic-bezier(.2, 1.5, .4, 1) 1; }
.lot-jackpot b { font-size: 28px; color: #ffe27a; } .lot-jackpot span { color: #fff; font-weight: 800; } .lot-jackpot small { color: #f5e6c8; }
.lot-last span.jp { color: #ffd84a; font-weight: 900; }

/* 🍀 행운 상자(2026-11-23) */
.lot-luck { margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: #1d3a2e; color: #c8ffe6; font-size: 13px; text-align: center; }
.luck { text-align: center; } .luck h2 small { font-size: .6em; margin-left: 6px; }
.luck-stage { position: relative; display: grid; place-items: center; gap: 8px; min-height: 200px; margin: 8px 0; border-radius: 16px; background: radial-gradient(circle at 50% 40%, #233a2c, #121b18 70%); overflow: hidden; }
.luck-box { font-size: 96px; cursor: pointer; display: inline-block; }
.luck-stage.shaking .luck-box { animation: luckShake .9s ease-in-out 1; }
@keyframes luckShake { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-12deg) scale(1.05); } 30% { transform: rotate(12deg) scale(1.08); } 45% { transform: rotate(-14deg) scale(1.1); } 60% { transform: rotate(14deg) scale(1.12); } 80% { transform: scale(1.25); } }
.luck-stage.done .luck-box, .luck-stage.jp .luck-box { font-size: 48px; opacity: .6; }
.luck-hint { color: #9fe6b0; } .luck-got { font-size: 30px; font-weight: 900; color: #ffe39a; animation: attPop .5s cubic-bezier(.2, 1.5, .4, 1) 1; }
.luck-stage.jp { background: radial-gradient(circle at 50% 40%, #8a6a10, #2a1d08 70%); box-shadow: inset 0 0 40px #ffd84a88; }
.luck-jp { display: flex; flex-direction: column; align-items: center; gap: 2px; animation: attPop .6s cubic-bezier(.2, 1.6, .4, 1) 1; } .luck-jp b { font-size: 44px; color: #fff3a0; text-shadow: 0 0 20px #ffd84a; } .luck-jp span { font-size: 24px; font-weight: 900; color: #fff; } .luck-jp small { color: #f5e6c8; }

/* 🧪 합성 연출(2026-11-23): 5장 슉슉 → 휘리릭 → 짜잔 뒷면 */
.fuse-fx { position: fixed; inset: 0; z-index: 9999; pointer-events: none; perspective: 900px; overflow: hidden; }
.fuse-fx .fuse-clone { position: fixed; margin: 0; transform-origin: 50% 50%; box-shadow: 0 6px 24px #000a; backface-visibility: visible; }
.fuse-flash { position: fixed; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, #fff 0, #bff6ff 30%, #7ef0c400 70%); }
.fuse-fx.up .fuse-flash { background: radial-gradient(circle, #fff 0, #ffe9a0 30%, #ffd84a00 70%); }
.pack-open.no-pack { display: grid; place-items: center; min-height: 300px; }
.pack-open.no-pack .solo-flip { animation: fuseBorn .6s cubic-bezier(.2, 1.5, .4, 1) both; }
.pack-open.no-pack .fcard:not(.on) { cursor: pointer; }
@keyframes fuseBorn { 0% { transform: scale(.3) rotate(-8deg); opacity: 0; filter: brightness(3); } 60% { transform: scale(1.08); opacity: 1; filter: brightness(1.4); } 100% { transform: none; filter: none; } }

/* 📍 스킬 창 적성 자리(2026-11-23) */
.skw-apt { margin-top: 10px; padding-top: 8px; border-top: 1px solid #ffffff14; }
.skw-apt h5 { margin: 0 0 4px; font-size: 14px; } .skw-apt h5 .muted { font-weight: 400; font-size: 12px; }
.skw-apt p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; }
.skw-apt .apt-s { color: #fbbf24; } .skw-apt .apt-a { color: #c084fc; }
.skw-apt .aptg { max-width: none; gap: 3px; } .skw-apt .aptg > div { padding: 2px 6px; } .skw-apt .aptg small { font-size: 11px; } .skw-apt .aptg b { font-size: 13px; }

/* 🎰 슬롯머신(2026-11-23 밤) */
.slot-box { max-width: 520px; } .slotm { text-align: center; } .slotm h2 small { font-size: .55em; margin-left: 6px; }
.slot-times { display: flex; justify-content: center; gap: 6px; margin: 4px 0 10px; flex-wrap: wrap; }
.slot-times span { padding: 3px 10px; border-radius: 999px; background: #ffffff10; font-size: 13px; color: #b9c4d6; }
.slot-times span.now { background: #f59e0b; color: #2a1d05; font-weight: 800; } .slot-times span.used { opacity: .6; }
.slot-machine { position: relative; margin: 0 auto 10px; padding: 18px 16px; max-width: 330px; border-radius: 22px; background: linear-gradient(#7a1f1f, #3d0d0d); border: 4px solid #e8b84a; box-shadow: 0 0 0 3px #3d0d0d, 0 10px 30px #000a, inset 0 2px 0 #ffffff30; }
.slot-machine.jp { animation: slotJp 1s ease-in-out 3; } @keyframes slotJp { 50% { box-shadow: 0 0 0 3px #3d0d0d, 0 0 60px #ffd84a, inset 0 2px 0 #ffffff30; } }
.slot-lights { height: 8px; margin: -8px 6px 10px; border-radius: 4px; background: repeating-linear-gradient(90deg, #ffe08a 0 8px, transparent 8px 16px); opacity: .8; }
.slot-reels { display: flex; gap: 8px; justify-content: center; }
.slot-reel { width: 84px; height: 76px; overflow: hidden; border-radius: 10px; background: linear-gradient(#fff, #e8e3d6 45%, #fff); box-shadow: inset 0 6px 10px #0005, inset 0 -6px 10px #0005; }
.slot-strip { will-change: transform; } .slot-strip i { display: block; height: 76px; line-height: 76px; font-size: 44px; font-style: normal; }
.slot-line { position: absolute; left: 10px; right: 10px; top: 50%; margin-top: 4px; height: 2px; background: #ff4d4d88; pointer-events: none; }
.slot-result { min-height: 52px; margin: 4px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #cbd5e1; }
.slot-result b { font-size: 20px; } .slot-result.miss b { color: #9aa7b8; } .slot-result.small b { color: #9fe6b0; } .slot-result.mid b { color: #7cc4ff; } .slot-result.big b { color: #e9a6ff; font-size: 24px; }
.slot-result.jp b { color: #ffe08a; font-size: 30px; text-shadow: 0 0 18px #ffd84a; animation: attPop .6s cubic-bezier(.2, 1.6, .4, 1) 1; }
.slot-pay { margin-top: 6px; text-align: left; } .slot-pay table { width: 100%; border-collapse: collapse; font-size: 13px; } .slot-pay td { padding: 3px 6px; border-bottom: 1px solid #ffffff10; } .slot-pay td:first-child { white-space: nowrap; font-size: 16px; }

/* 🗂 다른 덱에 든 카드(2026-11-24) */
.held-box { margin-top: 10px; } .held-box summary { cursor: pointer; color: #9fb4c8; font-size: 13px; }
.held-grid { margin-top: 6px; } .held-grid .card { opacity: .45; filter: grayscale(.6); cursor: not-allowed; position: relative; }
.grid > .held-box { grid-column: 1 / -1; }

/* 📍 자리 점수(2026-11-24) */
.card .ov .ps { display: block; font-size: 10px; font-weight: 800; line-height: 1.1; opacity: .9; color: #ffe39a; }

/* 👀 영입판 명단 선수 누르면 능력치(2026-11-24) */
.roster .rs-click { cursor: pointer; } .roster .rs-click:hover { outline: 2px solid #7cc4ff88; }

/* ⚖️ 획득 화면 비교(2026-11-24) */
.cmp { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #0d1620; border: 1px solid #2b3d52; }
.cmp h3 { margin: 0 0 6px; font-size: 15px; } .cmp h3 small { font-weight: 400; margin-left: 4px; }
.cmp-verdict { margin: 0 0 8px; padding: 6px 10px; border-radius: 10px; background: #ffffff0d; font-size: 14px; }
.cmp-verdict.up { background: #123d2a; color: #b8ffd8; } .cmp-verdict.down { background: #3d1b1b; color: #ffc8c8; }
.cmp-up { color: #4ade80; } .cmp-down { color: #ff7a7a; }
.cmp-score { display: flex; justify-content: center; align-items: baseline; gap: 10px; margin-bottom: 6px; font-size: 13px; color: #b9c4d6; }
.cmp-score b { font-size: 22px; } .cmp-new-l b { color: #ffd84a; } .cmp-old-l b { color: #9fb4c8; }
.cmp-row { display: grid; grid-template-columns: 52px 1fr 64px 40px; align-items: center; gap: 6px; font-size: 13px; margin: 2px 0; }
.cmp-bars { position: relative; height: 14px; border-radius: 7px; background: #ffffff10; overflow: hidden; }
.cmp-bars i { position: absolute; left: 0; border-radius: 7px; } .cmp-new { top: 0; height: 8px; background: linear-gradient(90deg, #ffb020, #ffd84a); } .cmp-old { bottom: 0; height: 5px; background: #7f93a8; }
.cmp-v { text-align: right; font-weight: 800; } .cmp-v small { color: #8ea2b6; font-weight: 400; margin-left: 2px; } .cmp-d { font-weight: 900; text-align: right; }
.cmp-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; } .cmp-chips button { padding: 3px 8px; font-size: 12px; border-radius: 999px; } .cmp-chips button.on { outline: 2px solid #ffd84a; }

.cmp-rank { margin: 0 0 6px; font-size: 14px; } .cmp-rank span { white-space: nowrap; }
.cmp-tog { display: flex; gap: 4px; margin-bottom: 6px; } .cmp-tog button { padding: 3px 10px; font-size: 12px; border-radius: 999px; } .cmp-tog button.on { background: #ffd84a; color: #2a1d05; font-weight: 800; }

/* 🎓 전직 가능(2026-11-24) */
.job-ready { margin-top: 4px; color: #ffe08a; font-size: 13px; }
.collection-newskill.job { background: linear-gradient(90deg, #f59e0b, #ffd84a); color: #2a1d05; }

/* 📱 폰에서 글씨가 제멋대로 커지는 것(브라우저 글씨 자동 키움) 막기 — 2026-11-24 추첨 선수 칸 글씨가 화면을 다 덮음 */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* 🎰 추첨 선수 칸 정리(2026-11-24 선생님 「글자가 너무 커 · 줄도 넘어가」): 줄마다 한 가지 · 크기 고정 */
.lot-player .lp-txt { min-width: 0; gap: 4px; line-height: 1.35; word-break: keep-all; }
.lot-player .lp-tag { font-size: 12px; color: var(--sub); }
.lot-player.big strong { font-size: 19px; line-height: 1.25; }
.lot-player .lp-line { font-size: 13px; color: var(--sub); } .lot-player .lp-line b { color: var(--text); }
.lot-player .lp-hint { align-self: flex-start; margin-top: 2px; padding: 2px 8px; border-radius: 999px; background: #ffd84a22; color: #ffd84a; font-size: 12px; }
@media (max-width: 520px) { .lot-player.big img { width: 64px; height: 64px; flex: none; } .lot-player.big strong { font-size: 17px; } }

/* 🏷 스킬 단계 딱지(2026-11-24): 초급 회색 · 중급 파랑 ◆ · 상급 금색 ★ */
.tier { display: inline-block; margin-right: 4px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 800; line-height: 17px; vertical-align: 1px; white-space: nowrap; font-style: normal; }
.tier.t1 { background: #3a4152; color: #c3cad6; }
.tier.t2 { background: #1f5fd1; color: #e8f0ff; }
.tier.t3 { background: linear-gradient(90deg, #f59e0b, #ffd84a); color: #2a1d05; box-shadow: 0 0 6px #ffc83d88; }
.reward-symbol .tier { margin: 0 0 2px; }
.reward-symbol.sym-t3 b { color: #ffd84a; }

/* 🏆 기록실 최강(2026-11-24) */
.best-sel { flex-wrap: wrap; gap: 6px; align-items: center; } .best-gap { width: 10px; }
.best-rw { display: flex; align-items: center; gap: 8px; min-width: 0; }
.best-face { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.best-p { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; } .best-p b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .best-p small { font-size: 12px; }
.best-mine { border-top: 1px dashed #ffffff33; margin-top: 4px; padding-top: 4px; }

/* 🎨 선수 정보 팀컬러(2026-11-24) */
.pc-list { display: grid; gap: 8px; }
.pc-row { padding: 10px 12px; border-radius: 12px; background: var(--panel2); }
.pc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: baseline; } .pc-now { font-size: 13px; } .pc-cur { color: #ffd84a; }
.pc-bands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 4px; }
.pc-b { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 10px; background: #ffffff0a; border: 1px solid #ffffff14; line-height: 1.2; }
.pc-b i { font-style: normal; font-weight: 900; font-size: 13px; color: var(--sub); } .pc-b b { font-size: 18px; } .pc-b small { font-size: 11px; color: var(--sub); text-align: center; }
.pc-b.got { background: #123d2a; border-color: #4ade8066; } .pc-b.got i, .pc-b.got b { color: #b8ffd8; }
.pc-b.next { border-color: #ffd84a; box-shadow: 0 0 8px #ffd84a44; } .pc-b.next small { color: #ffd84a; }
.pc-more summary { cursor: pointer; font-size: 13px; margin-top: 4px; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.pc-chip { padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #ffffff10; } .pc-chip small { color: var(--sub); }
.pc-chip.st { background: #ffd84a; color: #2a1d05; font-weight: 800; } .pc-chip.st small { color: #5a4310; }
.pc-chip.own { background: #1f5fd1; color: #e8f0ff; } .pc-chip.own small { color: #c8d8ff; }
.pc-chip.none { opacity: .55; }

/* 🏆 리그 순위표 포스트시즌 표시(2026-11-24) — 승격·강등 대신 */
table.lg tr.ps-top td { background: #ffd84a1f; } table.lg tr.ps-top td.zn { color: #ffd84a; }
table.lg tr.ps-po td { background: #4ea3ff1a; } table.lg tr.ps-po td.zn { color: #8cc4ff; }
.ps-key { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; margin-right: 4px; }
.ps-key.top { background: #ffd84a26; color: #ffd84a; } .ps-key.po { background: #4ea3ff22; color: #8cc4ff; }

/* 🎴 1장 팩 끌 때 카드 양옆이 봉지 밖으로 삐져나옴(2026-11-24 선생님): 봉지 몸통 폭 = 팩 그림의 약 57%(296px → 168px · 폰 82vw → 46.5vw) → 카드를 그보다 살짝 좁게 */
.pack-open.pack-single.await-tear .solo-flip { width: min(158px, 44vw); }

/* 🎫 추첨 쓰기 단추를 선수 바로 아래(2026-11-24) · 나와의 관계가 늦게 불려도 위 단추가 안 움직이게 */
.lot-use-top { margin: 4px 0 8px; }
.lot-rel { min-height: 40px; }

/* 📊 전직 탭 내 능력치·자리(2026-11-24) — 넓으면 오른쪽에 붙어 있고, 폰이면 위에 */
.career-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.career-side { padding: 10px 12px; border-radius: 12px; background: #0d1620; border: 1px solid #2b3d52; }
.career-side h4 { margin: 0 0 6px; font-size: 14px; }
@media (min-width: 860px) { .career-wrap { grid-template-columns: minmax(0, 1fr) 320px; } .career-side { order: 2; position: sticky; top: 0; align-self: start; } .career-main { order: 1; } }
.career-option[data-job] { cursor: pointer; } .career-option.peek { outline: 2px solid #7cc4ff88; }
.pos-chip { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 11px; background: #ffffff14; vertical-align: 1px; }

/* 📊 전직 탭: 선수 창 폭에 맞춰(창이 좁아서 화면 폭 기준이 아니라 창 폭 기준) — 440px 넘으면 두 칸 · 좁으면 위에 · 12칸 적성은 넓을 때만 */
.career-wrap { display: block; container-type: inline-size; }
.career-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.career-side .aptg { display: none; }
@container (min-width: 440px) { .career-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .career-side { order: 2; position: sticky; top: 0; align-self: start; } .career-main { order: 1; } }
@container (min-width: 760px) { .career-grid { grid-template-columns: minmax(0, 1fr) 320px; } .career-side .aptg { display: grid; } }

/* 📊 능력치별 최고(2026-11-24) */
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.st-chip { padding: 4px 12px; border-radius: 999px; font-size: 13px; } .st-chip.on { background: #ffd84a; color: #2a1d05; font-weight: 800; }
.st-more { padding: 4px 10px; border-radius: 999px; font-size: 12px; background: transparent; border: 1px dashed #ffffff40; }
.st-one .best-board { max-width: 560px; }

/* ⏳ 유학 3일 안내 · 남은 시간 크게(2026-11-24) */
.study-3day { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: #2a2210; border: 1px solid #ffd84a66; text-align: center; font-size: 17px; color: #ffe9a8; }
.study-3day b { color: #ffd84a; font-size: 20px; } .study-3day small { color: #d9c690; font-size: 13px; }
.study-left { display: inline-block; margin: 2px 0; font-size: 18px; font-weight: 900; color: #ffd84a; }

/* 🍀 천장 남은 장수(2026-11-24) */
.pity-line { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pity-chip { padding: 2px 10px; border-radius: 999px; font-size: 13px; background: #ffffff10; } .pity-chip b { font-size: 15px; }
.pity-chip.g-U { color: #ff8a9a; } .pity-chip.g-E { color: #d9a8ff; } .pity-chip.g-L { color: #ffd84a; }

/* 🎫 한 번 더권 단추 크게(2026-11-24) */
.it-more-big { flex: 1 1 100%; padding: 12px 14px; font-size: 16px; font-weight: 800; border-radius: 12px; background: linear-gradient(90deg, #2a2210, #3a2f12); border: 1px solid #ffd84a88; color: #ffe9a8; }
.it-more-big small { display: block; font-weight: 400; font-size: 12px; color: #d9c690; margin-top: 2px; }
.it-more-big.on { background: #123d2a; border-color: #4ade80; color: #b8ffd8; }
.it-more-big:disabled:not(.on) { opacity: .45; }

/* 🔎 편성 필터(2026-11-24) */
.lu-filter { margin: 8px 0 4px; display: grid; gap: 6px; }
.luf-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .luf-row.sub { padding-left: 10px; border-left: 2px solid #ffffff22; }
.luf-chip { padding: 3px 10px; border-radius: 999px; font-size: 12px; } .luf-chip small { color: var(--sub); margin-left: 2px; } .luf-chip.on { background: #ffd84a; color: #2a1d05; font-weight: 800; } .luf-chip.on small { color: #5a4310; }
.luf-kind { font-size: 11px; color: var(--sub); margin-left: 4px; }
.luf-q { width: 100%; max-width: 280px; padding: 6px 10px; border-radius: 10px; }
.tok.luf-hit { outline: 3px solid #ffd84a; outline-offset: 2px; border-radius: 12px; }

/* ✅ 가운데 확인 창 · 🔢 수량(2026-11-24) */
.ask-back { position: fixed; inset: 0; z-index: 9999; background: #000a; display: grid; place-items: center; padding: 16px; }
.ask-box { width: min(380px, 100%); padding: 18px 18px 14px; border-radius: 16px; background: var(--panel); border: 1px solid #ffffff22; box-shadow: 0 10px 40px #000c; text-align: center; }
.ask-box h3 { margin: 0 0 8px; } .ask-box p { margin: 0 0 14px; line-height: 1.5; } .ask-box .row { justify-content: center; gap: 8px; }
.qty-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.qty-row { display: inline-flex; align-items: center; gap: 4px; } .qty-row input { width: 64px; text-align: center; padding: 4px; } .qty-row button { width: 30px; padding: 4px 0; }
.qty-quick { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; } .qty-quick button { padding: 2px 10px; border-radius: 999px; font-size: 12px; }

/* ✔ 필요 스킬 가짐/없음 · 🎁 상자 결과(2026-11-24) */
.sk-have { color: #b8ffd8; font-weight: 700; } .sk-miss { opacity: .55; } .sk-miss small { font-size: 11px; color: #ff9aa8; margin-left: 2px; }
em.sk-have, em.sk-miss { font-style: normal; }
.box-got { text-align: center; padding: 6px 4px 2px; }
.bg-from { margin: 0 0 10px; color: var(--sub); font-size: 14px; }
.bg-card { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; min-width: 220px; max-width: 320px; padding: 18px 20px 14px; border-radius: 18px; background: radial-gradient(circle at 50% 30%, #ffffff14, #0000 60%), var(--panel2); border: 2px solid #ffffff22; animation: bgPop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes bgPop { from { transform: scale(.6); opacity: 0; } }
.bg-art img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 6px 14px #0008); } .bg-ico { font-size: 72px; }
.bg-tier { padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 900; background: #00000055; }
.bg-name { font-size: 22px; } .bg-name span { color: var(--sub); font-size: 18px; }
.bg-desc { margin: 0; font-size: 13px; color: var(--sub); line-height: 1.45; }
.box-got.g-R .bg-card { border-color: #5fb4ff; box-shadow: 0 0 18px #5fb4ff55; } .box-got.g-U .bg-card { border-color: #ff5a6e; box-shadow: 0 0 20px #ff5a6e66; }
.box-got.g-E .bg-card { border-color: #c77dff; box-shadow: 0 0 24px #c77dff77; } .box-got.g-L .bg-card { border-color: #ffc83d; box-shadow: 0 0 30px #ffc83d99; }

/* 📊 개별 능력 표(2026-11-24) */
.st-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #ffffff18; }
.st-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 13px; }
.st-table th, .st-table td { padding: 6px 8px; border-bottom: 1px solid #ffffff10; text-align: left; vertical-align: middle; }
.st-table thead th { background: #ffffff0a; font-size: 12px; color: var(--sub); }
.st-table tbody th { width: 64px; color: #ffd84a; font-weight: 800; white-space: nowrap; }
.st-table td { white-space: nowrap; } .st-table td > * { vertical-align: middle; }
.st-face { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; margin-right: 6px; }
.st-who { display: inline-flex; flex-direction: column; line-height: 1.15; max-width: 120px; } .st-who b { overflow: hidden; text-overflow: ellipsis; } .st-who small { color: var(--sub); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.st-table em { font-style: normal; font-weight: 900; margin-left: 6px; color: #ffd84a; }
.st-table td.me { background: #ffd84a14; } .st-mine { text-align: center; }

/* 🎁 오늘의 활동 보상 막대(2026-11-24) */
.quest-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0; padding: 8px 10px; border-radius: 12px; background: #2a2210; border: 1px solid #ffd84a55; }
.quest-bar > b { color: #ffe9a8; font-size: 14px; }
.qb-cells { display: inline-flex; gap: 3px; } .qb-c { width: 18px; height: 18px; border-radius: 5px; background: #ffffff14; display: grid; place-items: center; font-size: 11px; font-style: normal; }
.qb-c.done { background: #ffd84a; } .qb-c.big { outline: 1px solid #ffd84a; } .qb-c.big.done { background: #ff9f43; }
.quest-got { margin: 6px 0 0; color: #ffe9a8; }

/* ⬆ 등급 올리기: 못 쓰는 같은 카드(2026-11-24) */
.gup-blocked { display: grid; gap: 2px; margin: 6px 0; padding: 6px 10px; border-radius: 10px; background: #3d1b1b55; border: 1px dashed #ff7a7a55; font-size: 13px; }
.gup-blocked b { color: #ffb4b4; }

.quest-got.big { font-size: 16px; color: #ffd84a; }

/* ▲▼ 순위 오르내림(2026-11-24) */
.mv { font-style: normal; font-size: 11px; font-weight: 900; margin-left: 4px; padding: 0 4px; border-radius: 6px; white-space: nowrap; vertical-align: 1px; }
.mv.up { color: #4ade80; background: #4ade8022; } .mv.down { color: #ff7a7a; background: #ff7a7a22; } .mv.new { color: #ffd84a; background: #ffd84a22; }

/* 🍀 행운 상자 나온 것 목록(2026-11-24) */
.luck-sum { text-align: center; margin: 4px 0; } .luck-sum b { color: #ffe39a; }
.luck-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 10px; }
.luck-list span { padding: 3px 9px; border-radius: 999px; background: #ffffff12; border: 1px solid #ffffff22; font-size: 13px; } .luck-list b { color: #ffe39a; }

/* ⬆ 조합 · 🧬 계승 바로가기(2026-11-24) */
.sq-acts { margin-left: auto; display: inline-flex; gap: 6px; } .sq-acts + .fuse-open { margin-left: 6px; }
.sq-act { display: inline-flex; flex-direction: column; align-items: center; padding: 6px 12px; line-height: 1.2; opacity: .75; } .sq-act small { font-size: 11px; opacity: .85; }
.sq-act.on { opacity: 1; background: #2c4a35; border-color: #4ade80; color: #eaffef; } .sq-act.on b { color: #ffe39a; }
.uplist h2 small { font-size: .55em; margin-left: 6px; }
.ul-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; margin: 8px 0; }
.ul-row { display: flex; align-items: center; gap: 10px; text-align: left; padding: 6px 10px; width: 100%; }
.ul-face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #0004; flex: none; }
.ul-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; } .ul-txt small { opacity: .85; }
.ul-row em { font-style: normal; font-weight: 900; color: #ffe39a; white-space: nowrap; }
.ul-none { text-align: center; font-size: 18px; font-weight: 800; margin: 20px 0 6px; }
@media (max-width: 600px) { .screen-title:has(.sq-acts) { flex-wrap: wrap; } .sq-acts { margin-left: 0; order: 3; width: 100%; } .sq-acts .sq-act { flex: 1; } .sq-acts + .fuse-open { margin-left: auto; } }

/* 🎁 깜짝 선물 시간(2026-11-24) · 모든 창보다 위 */
.sur-pop { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; background: #000b; animation: surIn .3s ease-out 1; }
@keyframes surIn { from { opacity: 0; } to { opacity: 1; } }
.sur-box { position: relative; width: min(92vw, 420px); padding: 22px 18px 18px; border-radius: 22px; text-align: center; background: linear-gradient(160deg, #3a2a08, #17120a 70%); border: 2px solid #ffd84a; box-shadow: 0 0 0 4px #ffd84a33, 0 20px 60px #000c; overflow: hidden; }
.sur-rays { position: absolute; inset: -60%; background: repeating-conic-gradient(#ffd84a14 0 10deg, transparent 10deg 20deg); animation: surSpin 12s linear infinite; pointer-events: none; }
@keyframes surSpin { to { transform: rotate(360deg); } }
.sur-box > *:not(.sur-rays) { position: relative; }
.sur-box h2 { margin: 0; font-size: 28px; color: #fff3a0; text-shadow: 0 0 16px #ffd84a; }
.sur-sub { margin: 4px 0 12px; color: #f5e6c8; }
.sur-reel { margin: 0 auto; width: 100%; min-height: 110px; display: grid; place-items: center; border-radius: 16px; background: #0007; border: 1px solid #ffd84a55; }
.sur-item { display: flex; flex-direction: column; align-items: center; gap: 4px; } .sur-item b { font-size: 22px; color: #fff; } .sur-ic { font-size: 44px; line-height: 1; } .sur-item img { width: 72px; height: 72px; object-fit: contain; }
.sur-pop.open .sur-item { animation: attPop .6s cubic-bezier(.2, 1.6, .4, 1) 1; } .sur-pop.open .sur-reel { background: radial-gradient(circle, #ffd84a44, #0007 70%); border-color: #ffd84a; }
.sur-count { margin-top: 10px; color: #f5e6c8; font-size: 15px; } .sur-count b { color: #ffd84a; font-size: 22px; }
.sur-res { margin-top: 6px; font-size: 18px; font-weight: 900; color: #9ff0b0; min-height: 1.4em; } .sur-miss { color: #ffb4b4; }
.sur-x { margin-top: 10px; }
.sur-home { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: linear-gradient(90deg, #3a2a0866, #17120a33); border: 1px solid #ffd84a44; font-size: 13px; }
.sur-h { color: #ffd84a; } .sur-log { padding: 2px 8px; border-radius: 999px; background: #ffffff10; } .sur-log.got { border: 1px solid #4ade8066; } .sur-log.miss { border: 1px solid #ff7a7a55; opacity: .9; }

/* 🎫 깜짝 뽑기판(2026-11-24) · 모든 창보다 위 */
.sb-pop { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 10px; background: #000c; animation: surIn .3s ease-out 1; }
.sb-pop.fade { opacity: 0; pointer-events: none; transition: opacity .6s; }
.sb-box { width: min(96vw, 620px); max-height: 94vh; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 20px; background: linear-gradient(170deg, #f7e7bf, #e9d29a); color: #3a2a12; border: 3px solid #b8892c; box-shadow: 0 20px 60px #000c; }
.sb-pop.win .sb-box { box-shadow: 0 0 0 4px #ffd84a, 0 0 60px #ffd84a, 0 20px 60px #000c; }
.sb-head { display: flex; align-items: center; gap: 10px; } .sb-head h2 { margin: 0; font-size: 24px; color: #8a1d1d; } .sb-time { font-weight: 800; } .sb-time b { color: #c0392b; font-size: 20px; } .sb-x { margin-left: auto; }
.sb-prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.sbp { display: flex; flex-direction: column; padding: 4px 6px; border-radius: 8px; background: #fff8; border: 1px solid #b8892c66; font-size: 12px; line-height: 1.25; } .sbp b { font-size: 13px; } .sbp em { font-style: normal; color: #7a5a20; }
.sbp.r1 { background: #ffe58a; border-color: #d4a017; } .sbp.r2 { background: #e8eef5; } .sbp.r3 { background: #f3d6b8; } .sbp.gone { opacity: .45; text-decoration: line-through; }
.sb-say { margin: 0; text-align: center; font-weight: 800; min-height: 1.4em; } .sb-got.big { font-size: 20px; } .sb-got.r1 b { color: #c08a00; } .sb-got.r2 b { color: #5a6f86; } .sb-got.r3 b { color: #a0522d; }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 3px; overflow-y: auto; min-height: 120px; padding: 4px; border-radius: 10px; background: #c9a35a55; }
.sbc { aspect-ratio: 1; min-width: 0; padding: 0; display: grid; place-items: center; font-size: 10px; font-style: normal; border-radius: 4px; color: #6b4b1a; background: linear-gradient(135deg, #fff6dc 0 48%, #f0dca8 52%); border: 1px solid #b8892c88; box-shadow: 1px 1px 0 #0002; cursor: pointer; }
button.sbc:hover:not(:disabled) { transform: scale(1.12); background: #fff; z-index: 1; } button.sbc:disabled { cursor: default; opacity: .8; }
.sbc.tearing { animation: sbTear .9s ease-in-out 1; } @keyframes sbTear { 0% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.2); } 50% { transform: rotate(10deg) scale(1.3); } 75% { transform: rotate(-6deg) scale(1.2); } 100% { transform: scale(1.4); } }
.sbc.t { cursor: default; font-size: 12px; font-weight: 900; background: #fff; border-style: dashed; } .sbc.t.r1 { background: #ffd84a; color: #6b4b00; } .sbc.t.r2 { background: #cfd8e3; } .sbc.t.r3 { background: #e8b98c; } .sbc.t.r6 { color: #a08a60; }
.sbc.me { outline: 3px solid #c0392b; } .sbc.pop { animation: attPop .6s cubic-bezier(.2, 1.6, .4, 1) 1; }
.sb-feed { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; } .sb-feed .r1, .sb-feed .r2, .sb-feed .r3 { font-weight: 900; color: #8a1d1d; }

/* 🎉 뽑기판 1·2·3등 연출 · 실시간 띠 · 명예 기록(2026-11-24) */
.sb-pop { --sbw: #ffd84a; } .sb-box { position: relative; }
.sb-box.shake { animation: sbShake .5s ease-in-out 3; } @keyframes sbShake { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-8px, 4px) rotate(-1deg); } 40% { transform: translate(7px, -5px) rotate(1deg); } 60% { transform: translate(-6px, -3px); } 80% { transform: translate(5px, 4px); } }
.sbw { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 45%, #0008 0, #000d 70%); }
.sbw.r1 { --sbw: #ffd84a; } .sbw.r2 { --sbw: #dfe7f0; } .sbw.r3 { --sbw: #e8a06a; }
.sbw-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: sbwFlash .7s ease-out 1; pointer-events: none; } @keyframes sbwFlash { 0% { opacity: .95; } 100% { opacity: 0; } }
.sbw-rays { position: absolute; width: 180vmax; height: 180vmax; left: 50%; top: 45%; margin: -90vmax 0 0 -90vmax; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--sbw) 55%, transparent) 0 8deg, transparent 8deg 20deg); opacity: .55; animation: surSpin 9s linear infinite; pointer-events: none;
  -webkit-mask: radial-gradient(circle, #000 0 18%, #0000 55%); mask: radial-gradient(circle, #000 0 18%, #0000 55%); }
.sbw.r1 .sbw-rays { opacity: .85; animation-duration: 5s; }
.sbw-conf { position: absolute; inset: 0; pointer-events: none; } .sbw-conf i { position: absolute; top: -20px; left: var(--x); width: var(--w); height: calc(var(--w) * 1.6); background: var(--c); border-radius: 2px; opacity: 0; animation: sbwFall var(--t) cubic-bezier(.3, .6, .5, 1) var(--d) 2 both; }
@keyframes sbwFall { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: .9; transform: translate(calc(var(--w) * 4), 110vh) rotate(var(--r)); } }
.sbw-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sbw-paper { min-width: 230px; padding: 16px 22px 18px; border-radius: 10px; text-align: center; background: linear-gradient(180deg, #fffdf4, #f5e8c4); border: 3px solid var(--sbw); box-shadow: 0 0 0 4px #0003, 0 0 50px var(--sbw); transform-origin: 50% 0; animation: sbwUnfold .7s cubic-bezier(.2, 1.4, .4, 1) .15s 1 both; }
@keyframes sbwUnfold { 0% { transform: perspective(600px) rotateX(-90deg) scale(.4); } 100% { transform: perspective(600px) rotateX(0) scale(1); } }
.sbw-medal { font-size: 54px; line-height: 1; animation: attPop .6s cubic-bezier(.2, 1.8, .4, 1) .6s 1 both; }
.sbw-rank { font-size: 54px; font-weight: 900; line-height: 1.05; color: #8a1d1d; letter-spacing: 2px; animation: sbwSlam .5s cubic-bezier(.2, 1.8, .4, 1) .75s 1 both; } .sbw.r1 .sbw-rank { color: #c08a00; font-size: 64px; text-shadow: 0 2px 0 #fff, 0 0 18px #ffd84a; } .sbw.r2 .sbw-rank { color: #4a5f78; } .sbw.r3 .sbw-rank { color: #9a4f22; }
@keyframes sbwSlam { 0% { transform: scale(3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.sbw-prize { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; font-size: 18px; color: #3a2a12; animation: surIn .4s ease-out 1s 1 both; } .sbw-prize img { width: 48px; height: 48px; object-fit: contain; }
.sbw-say { font-size: 30px; font-weight: 900; color: #fff; text-shadow: 0 0 14px var(--sbw), 0 2px 0 #000; animation: sbwSlam .5s cubic-bezier(.2, 1.8, .4, 1) 1.1s 1 both; }
.sbw.r1 .sbw-say { animation: sbwSlam .5s cubic-bezier(.2, 1.8, .4, 1) 1.1s 1 both, sbwPulse 1s ease-in-out 1.6s infinite; } @keyframes sbwPulse { 50% { transform: scale(1.08); } }
.sbw-sub { color: #f5e6c8; animation: surIn .4s ease-out 1.3s 1 both; } .sbw-ok { animation: surIn .4s ease-out 1.5s 1 both; }
.sbf { position: absolute; left: 0; right: 0; top: 46%; z-index: 4; padding: 10px 12px; text-align: center; font-size: 17px; color: #fff; background: linear-gradient(90deg, #0000, #8a1d1dee 20% 80%, #0000); animation: sbfRun 4.2s ease-in-out 1 both; pointer-events: none; }
.sbf.r1 { background: linear-gradient(90deg, #0000, #b8860bee 20% 80%, #0000); font-size: 20px; } .sbf.r2 { background: linear-gradient(90deg, #0000, #4a5f78ee 20% 80%, #0000); }
@keyframes sbfRun { 0% { transform: translateX(-100%); opacity: 0; } 12% { transform: translateX(0); opacity: 1; } 85% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
.sur-home[role="button"] { cursor: pointer; } .sur-home[role="button"]:hover { border-color: #ffd84a; }
.sbh-kings td { text-align: center; } .sbh-kings tr.me th, .sbh-kings tr.me td { color: #ffe39a; }
.sbh-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.sbh-day { padding: 10px 12px; border-radius: 12px; background: #ffffff08; border: 1px solid #ffffff1a; } .sbh-day.today { border-color: #ffd84a88; } .sbh-day h3 { margin: 0 0 6px; font-size: 15px; } .sbh-now { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: #ffd84a; color: #3a2a00; }
.sbh-day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sbh-day li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 4px 8px; border-radius: 8px; background: #ffffff08; font-size: 13px; }
.sbh-day li.r1 { background: #ffd84a22; } .sbh-day li.r2 { background: #cfd8e31a; } .sbh-day li.r3 { background: #e8a06a1a; } .sbh-day li.me { outline: 1px solid #4ade80; } .sbh-day li.miss b { color: #ffb4b4; }
.sbh-m { font-weight: 900; min-width: 52px; }
.st-table.sbh-kings { min-width: 0; width: 100%; } .sbh-kings th:first-child { text-align: left; }

/* 🎫 맨 위 뽑기판 안내 줄(2026-11-24) */
#sb-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 12px; width: 100%; margin: 0; padding: 5px 10px; border: 0; border-radius: 0; font-size: 13px; line-height: 1.3; color: #3a2a12; background: linear-gradient(90deg, #e9d29a, #f7e7bf 50%, #e9d29a); border-bottom: 1px solid #b8892c; cursor: pointer; }
#sb-bar .sbb-p1 b { color: #8a1d1d; } #sb-bar .sbb-n { opacity: .7; }
#sb-bar.live { color: #fff; font-size: 15px; background: linear-gradient(90deg, #8a1d1d, #c0392b, #8a1d1d); animation: sbbBlink 1s ease-in-out infinite; } #sb-bar.live .sbb-go { text-decoration: underline; }
@keyframes sbbBlink { 50% { background: linear-gradient(90deg, #b8860b, #ffd84a, #b8860b); color: #3a2a00; } }
@media (max-width: 600px) { #sb-bar { font-size: 12px; gap: 0 8px; } #sb-bar .sbb-n { display: none; } }

/* 🎫 뽑기판 마감 3초 안내(2026-11-24) */
.sb-end { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; background: #000c; color: #fff; animation: surIn .3s ease-out 1; }
.sb-end b { font-size: 30px; color: #ffd84a; } .sb-end span { font-size: 20px; font-weight: 800; } .sb-end small { color: #f5e6c8; }

/* 🚫 노말·레어 전직 없음 안내(2026-11-25) */
.career-nogrow { margin: 6px 0 10px; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px dashed rgba(255, 255, 255, .3); }
/* 🐞 2026-11-25 선생님 「더 이상 내릴 수가 없어서 확인을 못 눌러」(새 스킬 칸 알림이 길 때): 확인 단추를 창 아래에 늘 붙여 둠 · 화면 높이(dvh)에 맞춤 */
#skpop .skbox { max-height: calc(100dvh - 40px); }
#skpop #sk-ok { position: sticky; bottom: -20px; margin: 8px -20px -20px; width: calc(100% + 40px); padding: 14px; border-radius: 0 0 15px 15px; background: #ffd84a; color: #222; font-weight: 800; box-shadow: 0 -8px 16px #0008; z-index: 2; }
/* 🎡 강화 실패 룰렛 · 🎯 천장(2026-11-25) */
.ed-wheel { display: flex; gap: 8px; margin-top: 12px; }
.ed-wheel b { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 74px; padding: 8px 6px; border-radius: 12px; background: #ffffff14; border: 2px solid #ffffff22; color: #ddd; font-size: 15px; transition: transform .08s; }
.ed-wheel b i { font-style: normal; font-size: 22px; }
.ed-wheel b.on { background: #ffd84a33; border-color: #ffd84a; color: #fff; transform: scale(1.08); }
.ed-wheel b.stop.w0 { background: #3ddc8455; border-color: #3ddc84; animation: edWin .5s ease-out 2; }
.ed-wheel b.stop.w1 { background: #ff8a3d44; border-color: #ff8a3d; }
.ed-wheel b.stop.w2 { background: #ff4d5e55; border-color: #ff4d5e; animation: edShake .5s ease-in-out 1; }
@keyframes edWin { 50% { transform: scale(1.25); } }
.ed-wmsg { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 10px; min-height: 52px; text-align: center; }
.ed-wmsg strong { font-size: 20px; } .ed-wmsg strong.win { color: #3ddc84; font-size: 24px; } .ed-wmsg small { color: #cfd6e4; }
.enh-pity { margin-top: 6px; font-size: 14px; color: #cfd6e4; } .enh-pity.on { color: #3ddc84; font-weight: 800; }
/* 🎓 2차 전직 조건 · 룰렛(2026-11-25) */
.career2-need { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; margin: 4px 0 8px; }
.career2-need span { padding: 3px 8px; border-radius: 999px; background: #ffffff10; }
.career2-need span.ok { color: #3ddc84; } .career2-need span.no { color: #ff8a8a; }
.c2roll { text-align: center; } .c2roll .ed-wheel { justify-content: center; }

/* 🏆 3차 전직 고르기(2026-11-25) */
.c3pick { text-align: center; }
.c3opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.c3opt { display: flex; flex-direction: column; gap: 4px; padding: 12px 10px; border-radius: 14px; border: 2px solid #ffffff22; background: #ffffff0d; color: inherit; font: inherit; cursor: pointer; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .35s, transform .35s, border-color .2s; }
.c3opt.in { opacity: 1; transform: none; } .c3opt:hover:not(:disabled), .c3opt:focus-visible { border-color: #ffd84a; }
.c3opt .c3n { font-size: 16px; } .c3opt .c3row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; } .c3opt .c3row em { font-style: normal; color: #cfd6e4; } .c3opt .c3row i { font-style: normal; font-weight: 800; color: #ffd84a; }
.c3opt small { color: #9fb0c2; } .c3opt.s9 { border-color: #ffd84a; box-shadow: 0 0 18px #ffd84a66; } .c3opt.s7, .c3opt.s8 { border-color: #c77dff; }
/* 🐞 2026-11-25 점수판 「우리 팀」 표시(원정이면 오른쪽) */
.replay-team.mine strong { color: #ffd84a; } .replay-team .mine-tag { display: inline-block; font-style: normal; font-size: 11px; font-weight: 800; color: #1a1a1a; background: #ffd84a; border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: middle; }

/* 🔎 강화 조건(2026-11-25) */
.enh-cond { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #ffffff0a; border: 1px solid #ffffff1a; }
.enh-cond.blocked { background: #ff4d5e1a; border-color: #ff4d5e88; }
.enh-cond-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.enh-cond-row span { padding: 3px 9px; border-radius: 999px; background: #ffffff10; } .enh-cond-row span.ok { color: #3ddc84; } .enh-cond-row span.no { color: #ff8a8a; font-weight: 800; } .enh-cond-row span.info { color: #cfd6e4; background: none; }
.enh-why { margin: 8px 0 2px; font-size: 17px; color: #ffb3b3; } .enh-why-sub { margin: 0; font-size: 14px; color: #cfd6e4; }
/* 🧬⬆ 계승·등급 올리기 알림 = 새 스킬 알림과 같은 모양 */
#cbpop { position: fixed; inset: 0; z-index: 97; background: #000b; display: flex; align-items: center; justify-content: center; padding: 16px; animation: figin .3s both; }
#cbpop .skbox { background: var(--panel); border: 3px solid #ffd84a; border-radius: 18px; padding: 20px; max-width: 560px; width: 100%; max-height: calc(100dvh - 40px); overflow: auto; overflow-x: hidden; box-shadow: 0 0 40px #ffd84a55; text-align: center; }
#cbpop .skt { font-size: 22px; font-weight: 900; margin-bottom: 8px; color: #ffd84a; }
#cbpop .skrow { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; text-align: left; background: #ffffff0d; border-radius: 12px; padding: 8px 10px; margin: 6px 0; }
#cbpop .skrow > div { min-width: 0; } #cbpop .skrow img { width: 56px; height: 56px; object-fit: cover; object-position: top; border-radius: 10px; } #cbpop .skrow img.flip { transform: scaleX(-1); }
#cbpop .sknew { display: inline-block; margin-top: 4px; font-size: 14px; }
#cbpop #cb-ok { position: sticky; bottom: -20px; margin: 8px -20px -20px; width: calc(100% + 40px); padding: 14px; border-radius: 0 0 15px 15px; background: #ffd84a; color: #222; font-weight: 800; }
@media (max-width: 480px) { #cbpop .skrow { grid-template-columns: 40px minmax(0, 1fr); } #cbpop .skrow img { width: 40px; height: 40px; } #cbpop .skrow button { grid-column: 2; justify-self: start; } }

/* 🌏 문명권 합성(2026-11-25) */
.fuse-mode { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 8px; }
.fuse-mode button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border-radius: 12px; }
.fuse-mode button small { color: #cfd6e4; font-size: 12px; } .fuse-mode button.on { border-color: #ffd84a; background: #ffd84a22; }
.fuse-mode select { padding: 8px 10px; border-radius: 10px; }

.fuse-same { display: inline-block; margin-left: 4px; padding: 2px 9px; border-radius: 999px; background: #3ddc8422; color: #3ddc84; font-weight: 800; }

/* 👑 전설 합성(2026-11-25) */
.fuse-legend { margin: 4px 0 6px; padding: 8px 12px; border-radius: 12px; background: #ffc83d1a; border: 1px solid #ffc83d66; color: #ffe08a; }
#fuse-grid .card { position: relative; } .fuse-warn { position: absolute; top: 4px; right: 6px; z-index: 2; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: #ff4d5e; color: #fff; pointer-events: none; }

.study-cancel { font-size: 13px; padding: 4px 10px; border-color: #ff8a8a88; color: #ffb3b3; }

/* 🔮 예상 결과 확인 창(2026-11-25) */
.big-ask .bc-box { max-width: 520px; text-align: center; }
.bc-ins { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 8px 0 2px; }
.bc-mini { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 8px; border-radius: 10px; background: #ffffff0d; min-width: 70px; font-size: 12px; }
.bc-mini img { width: 44px; height: 44px; object-fit: cover; object-position: top; border-radius: 8px; } .bc-mini img.flip { transform: scaleX(-1); }
.bc-mini em { font-style: normal; color: #ff8a8a; font-size: 11px; } .bc-plus { font-style: normal; font-weight: 900; color: #cfd6e4; }
.bc-arrow { font-size: 26px; margin: 2px 0; color: #ffd84a; }
.bc-out { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px; border-radius: 16px; background: #ffd84a14; border: 2px solid #ffd84a; }
.bc-out img { width: 88px; height: 88px; object-fit: cover; object-position: top; border-radius: 12px; } .bc-out img.flip { transform: scaleX(-1); }
.bc-out div { display: flex; flex-direction: column; align-items: flex-start; } .bc-out small { color: #cfd6e4; }
.bc-out strong { font-size: 24px; } .bc-enh { font-size: 22px; font-weight: 900; color: #ffd84a; }
.bc-notes { text-align: left; margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: #cfd6e4; } .bc-q { font-size: 18px; font-weight: 800; margin: 10px 0 4px; }

/* 🎁🎡 선생님 특별 선물 룰렛(2026-11-25) */
#gwbar { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 8px); transform: translateX(-50%); z-index: 96; background: linear-gradient(90deg, #ff8a3d, #ffd84a); color: #2a1a00; border-radius: 999px; padding: 8px 16px; font-size: 15px; box-shadow: 0 4px 18px #0007; max-width: calc(100vw - 24px); text-align: center; animation: gwPulse 1.6s ease-in-out infinite; }
#gwbar span { opacity: .85; } @keyframes gwPulse { 50% { box-shadow: 0 4px 26px #ffd84aaa; } }
:is(#gwpop, #gwpeek) { position: fixed; inset: 0; z-index: 99; background: #000c; display: flex; align-items: center; justify-content: center; padding: 16px; animation: figin .3s both; }
:is(#gwpop, #gwpeek) .gw-box { width: min(620px, 100%); background: var(--panel); border: 3px solid #ffd84a; border-radius: 20px; padding: 22px; text-align: center; box-shadow: 0 0 60px #ffd84a66; }
:is(#gwpop, #gwpeek) .gw-t { font-size: 28px; font-weight: 900; color: #ffd84a; } :is(#gwpop, #gwpeek) .gw-sub { color: #e8ecf3; margin: 6px 0 12px; }
:is(#gwpop, #gwpeek) .gw-reel { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
:is(#gwpop, #gwpeek) .gw-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border-radius: 14px; background: #ffffff10; border: 2px solid #ffffff22; transition: transform .08s; }
:is(#gwpop, #gwpeek) .gw-cell img { width: 48px; height: 48px; object-fit: contain; } :is(#gwpop, #gwpeek) .gw-cell i { font-style: normal; font-size: 34px; } :is(#gwpop, #gwpeek) .gw-cell b { font-size: 13px; } :is(#gwpop, #gwpeek) .gw-cell small { color: #ffd84a; font-weight: 800; }
:is(#gwpop, #gwpeek) .gw-cell.on { border-color: #ffd84a; background: #ffd84a33; transform: scale(1.06); }
:is(#gwpop, #gwpeek) .gw-cell.win { border-color: #3ddc84; background: #3ddc8433; animation: edWin .5s ease-out 3; }
:is(#gwpop, #gwpeek) .gw-msg { font-size: 20px; margin: 14px 0 8px; min-height: 30px; } :is(#gwpop, #gwpeek) .gw-ok { font-size: 18px; padding: 10px 30px; }

/* 🎨 팀컬러 도우미(2026-11-25) */
.tc-help-btn { width: 100%; margin-bottom: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; } .tc-help-btn small { font-weight: 400; opacity: .85; }
.tch-list-box { display: grid; gap: 6px; } .tch-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #ffffff0b; border: 1px solid #ffffff18; flex-wrap: wrap; }
.tch-row.on { border-color: #ffd84a; background: #ffd84a14; } .tch-main { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.tch-g { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #10131a; font-weight: 900; }
.tch-realms { display: grid; gap: 8px; } .tch-realm > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; } .tch-p { padding: 3px 9px; border-radius: 999px; background: #ffffff10; font-size: 14px; }
.tch-rec { padding: 12px; border-radius: 14px; background: #ffd84a1a; border: 2px solid #ffd84a; } .tch-rec-top { font-size: 20px; margin-bottom: 4px; }
.tch-rank { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }

#gwbar .gw-star { background: #2a1a00; color: #ffd84a; border-radius: 999px; padding: 2px 10px; margin: 0 4px; opacity: 1; } #gwbar .gw-clock { font-variant-numeric: tabular-nums; font-size: 18px; }
:is(#gwpop, #gwpeek) .gw-cell { position: relative; } :is(#gwpop, #gwpeek) .gw-cell.star { border-color: #ff8a3d; } :is(#gwpop, #gwpeek) .gw-cell em { position: absolute; top: 2px; right: 6px; font-style: normal; }

/* 🐞 2026-11-25 빛나는 밀서 글자: 초록(성공 색)이 등급 색처럼 보여서 금색으로 */
.seal .seal-sure { color: #8a5a00; background: #ffd84a; border-radius: 999px; padding: 1px 8px; }

/* 🧪 합성: 문명권 고르기를 버튼 줄에서 크게(2026-11-25) */
.fuse-bar { flex-wrap: wrap; } .fuse-bar.realm { border-color: #4fc3ff !important; box-shadow: 0 0 0 1px #4fc3ff66, 0 0 18px #4fc3ff33; }
.fuse-realm-btn { border-color: #4fc3ff; color: #bfe9ff; background: #4fc3ff1c; font-weight: 800; }
.fuse-realm-pick { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; background: #4fc3ff22; border: 2px solid #4fc3ff; font-weight: 800; color: #dff4ff; }
.fuse-realm-pick select { font-size: 16px; padding: 6px 8px; border-radius: 8px; font-weight: 800; }

/* 🎨 팀컬러 도우미 v2(2026-11-25) */
.tch-now { display: inline-block; margin: 3px 0; padding: 2px 10px; border-radius: 999px; background: #3ddc8422; color: #b6f5d6; font-size: 14px; } .tch-now.off { background: #ffffff0d; color: #9aa3b5; }
.tch-tops { display: flex; flex-wrap: wrap; gap: 6px; margin: 3px 0; } .tch-gc { padding: 2px 10px; border-radius: 999px; background: #ffffff12; font-size: 14px; } .tch-gc b { font-size: 16px; }
.tch-names { font-size: 12px; color: #cfd6e4; margin-bottom: 2px; } .tch-eq { color: #ffd84a; font-weight: 800; }
/* 🐞 2026-11-25 깜짝 뽑기판 닫기 버튼: 검정 배경에 검정 글씨라 안 보임 → 밝은 버튼 */
.sb-head .sb-x { background: #fffaf0; color: #3a2a12; border: 2px solid #8a5a12; font-weight: 800; padding: 6px 14px; border-radius: 10px; } .sb-head .sb-x:hover { background: #ffe9a8; }

/* 🎨 팀컬러 v3(2026-11-25): 선수단 팀컬러 판 · 도우미 거르기 · 포지션 줄 */
.tcp { margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #1c2a3d, #1a2030); border: 2px solid #4fc3ff55; display: grid; gap: 10px; }
.tcp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .tcp-ic { font-size: 30px; } .tcp-head > div:nth-child(2) { flex: 1; min-width: 200px; display: flex; flex-direction: column; } .tcp-head > div:nth-child(2) b { font-size: 20px; } .tcp-head small { color: #b9c3d6; }
.tcp-now { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 15px; } .tcp-now small { color: #b9c3d6; font-size: 12px; }
.tcp-g { padding: 2px 10px; border-radius: 8px; color: #10131a; } .tcp-g.gS { background: #ff5a8a; } .tcp-g.gA { background: #ffb347; } .tcp-g.gB { background: #6ab7ff; } .tcp-g.gC { background: #9be29b; }
.tcp-bands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .tcp-band { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 6px; border-radius: 10px; background: #ffffff0a; border: 1px solid #ffffff18; color: #9aa3b5; }
.tcp-band b { font-size: 17px; } .tcp-band em { font-style: normal; font-weight: 900; color: #cfd6e4; } .tcp-band small { font-size: 11px; }
.tcp-band.on { background: #ffd84a22; border-color: #ffd84a; color: #ffe9a8; } .tcp-band.on em { color: #ffd84a; }
.tcp-pos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .tcp-col { padding: 7px 8px; border-radius: 10px; background: #ffffff0a; } .tcp-col > b { display: flex; justify-content: space-between; font-size: 14px; } .tcp-col > b span { font-size: 17px; }
.tcp-col > div { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; } .tcp-col.none { opacity: .55; } .tcp-col.warn { opacity: 1; border: 1px dashed #ff8a8a88; } .tcp-col small { color: #9aa3b5; font-size: 11px; }
.tcp-pill { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; color: #fff; } .pg-L { background: #c9940f; } .pg-E { background: #8e44d9; } .pg-U { background: #d6384b; } .pg-R { background: #3d7fe0; } .pg-N { background: #6b7280; }
.tcp-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .tcp-pos { grid-template-columns: repeat(2, 1fr); } .tcp-now { align-items: flex-start; text-align: left; } }
.tch-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; } .tch-filter > span { font-size: 12px; color: #9aa3b5; margin-left: 4px; } .tch-filter button { padding: 6px 12px; border-radius: 999px; } .tch-filter button.on { border-color: #ffd84a; background: #ffd84a22; color: #ffe9a8; font-weight: 800; }
.tch-pair { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, #3a2a08, #2a1f10); border: 2px solid #ffd84a; margin: 8px 0; } .tch-pair-t { font-weight: 900; color: #ffd84a; font-size: 17px; }
.tch-pair-b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; } .tch-pair-b span { padding: 4px 10px; border-radius: 10px; background: #ffffff12; } .tch-pair-b i { font-style: normal; color: #cfd6e4; } .tch-pair-b strong { font-size: 22px; color: #ffd84a; }
.tch3-list { display: grid; gap: 8px; } .tch3 { padding: 10px; border-radius: 14px; background: #ffffff0b; border: 1px solid #ffffff18; display: grid; gap: 8px; } .tch3.on { border-color: #ffd84a; }
.tch3-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .tch3-t { flex: 1; min-width: 180px; display: flex; flex-direction: column; } .tch3-t small { color: #b9c3d6; } .tch3-btn { display: flex; gap: 6px; } .tch-nowtx { color: #b6f5d6; }
.tch-old { margin-top: 10px; } .tch-old summary { cursor: pointer; color: #9aa3b5; }

/* 🎰 강화 점프권(2026-11-25) */
.ej { text-align: center; } .ej-num { font-size: 84px; font-weight: 900; color: #cfd6e4; margin: 10px 0; font-variant-numeric: tabular-nums; } .ej-num.hi { color: #ffd84a; }
.ej-num.done { animation: edWin .5s ease-out 2; text-shadow: 0 0 24px #ffd84a88; } .ej-msg { font-size: 18px; min-height: 52px; }
/* 📱 2026-11-25 학생 「스킬 뽑는데 능력치 위가 안 보여」: 폰에서는 룰렛이 창 맨 위에 붙어 있고 능력치가 그 아래로 지나감 → 룰렛 결과와 바뀌는 능력치를 같이 봄 */
@media (max-width: 760px) {
  #modal .box:has(.skw) { padding-top: 0; }
  .skw .reward-header { padding-top: 12px; }
  .skw .skw-wheel { position: sticky; top: 0; z-index: 3; padding: 8px 10px; margin: 0 -4px; box-shadow: 0 10px 18px #000b; }
  .skw .skw-wheel .skw-target { min-height: 0; margin-bottom: 4px; font-size: 12px; }
  .skw .skw-wheel .skw-result { min-height: 40px; margin: 2px 0; }
  .skw .skw-wheel .skw-acts { margin-top: 2px; }
}

/* ⚖️🔮 남의 위인 비교(2026-11-25) */
.peek-wrap { display: grid; gap: 8px; margin: 8px 0; }
.peek-g { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .peek-g span { font-size: 13px; color: #9aa3b5; } .peek-g button { padding: 4px 12px; border-radius: 999px; font-weight: 800; } .peek-g button.on { background: #ffffff1f; border-color: currentColor; }
.peek-fit { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; background: #ffffff0b; border: 1px solid #ffffff22; font-size: 14px; } .peek-fit > b { font-size: 15px; }
.peek-fit.up { background: #3ddc8414; border-color: #3ddc84; } .peek-fit.off { background: #ffffff08; }
.cl-cmp { padding: 4px 8px; border-radius: 8px; font-size: 16px; }
.peek-wish { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .peek-wish button { padding: 6px 14px; border-radius: 999px; font-weight: 800; border-color: #ffd84a; color: #ffe9a8; background: #ffd84a14; }
.peek-wish button.on { background: #ffd84a; color: #2a1a00; } .peek-wish button.full { border-color: #ff8a8a; color: #ffb3b3; background: #ff8a8a14; }

/* 🎰 자질 슬롯(2026-11-25) */
.tal-slot { margin: 12px auto 0; max-width: 460px; padding: 10px 12px; border-radius: 14px; background: #ffffff0c; border: 1px solid #ffffff22; text-align: center; display: grid; gap: 6px; }
.tal-t { font-size: 13px; color: #9aa3b5; font-weight: 800; } .tal-reel { font-size: 22px; font-weight: 900; padding: 6px 0; border-radius: 10px; background: #0007; }
.tal-slot.done.captain .tal-reel, .tal-slot.done.key .tal-reel, .tal-slot.done.both .tal-reel { color: #ffd84a; box-shadow: 0 0 18px #ffd84a66; animation: edWin .5s ease-out 2; }
.tal-slot.done.none .tal-reel { color: #9aa3b5; } .tal-help { text-align: left; line-height: 1.6; color: #cfd6e4; }
/* 🎖🔑 고유 특성 한 줄(2026-11-26) */
.pd-trait { margin: 4px 0; padding: 4px 10px; border-radius: 10px; background: #ffd84a1a; border: 1px solid #ffd84a66; font-size: 13px; }

/* 🎖🔑 특성 발동 알림판(2026-11-26) */
.rp-big.trait { background: radial-gradient(ellipse at center, #ffd84a33, #0b0a1288 70%); }
.rp-big.trait strong { color: #ffd84a; font-size: clamp(28px, 6.5vw, 66px); }
.rp-big.trait.ga p { border: 2px solid #8fb6ff; } .rp-big.trait.gb p { border: 2px solid #ff9b8a; }
.rp-big.trait.spin strong { animation: trSpinT .25s steps(2) infinite; } @keyframes trSpinT { 50% { color: #fff; } }

/* 🧭 목표 누르면 그 화면으로(2026-11-25) */
.goal-item.goal-go { cursor: pointer; } .goal-item.goal-go:hover { background: #ffffff0d; } .goal-item.goal-go > div:first-child b::after { content: ' ›'; color: #9aa3b5; }

/* 🏟 유학지 고르기 = 경기장(2026-11-25 밤) · 포지션 전용색: 공격 #d6384b · 중원 #3fbf6a · 수비 #3d7fe0 · 골키퍼 #f0b623 */
.study-field { display: grid; gap: 10px; }
.sf-pitch { position: relative; aspect-ratio: 100 / 118; max-height: 560px; border-radius: 16px; overflow: hidden; background: repeating-linear-gradient(180deg, #2f7d45 0 9%, #2a7240 9% 18%); box-shadow: inset 0 0 0 2px #ffffff22, 0 6px 18px #0006; }
.sf-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #ffffffb3; stroke-width: .6; }
.sf-dir { position: absolute; left: 10px; top: 8px; font-size: 12px; font-weight: 800; color: #ffffffcc; background: #0005; padding: 2px 8px; border-radius: 999px; }
.sf-spot { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; cursor: pointer; --c: #888; }
.sf-spot b { display: grid; place-items: center; width: clamp(44px, 9vw, 60px); height: clamp(44px, 9vw, 60px); border-radius: 50%; background: var(--c); color: #fff; font-size: clamp(13px, 2.4vw, 17px); font-weight: 900; letter-spacing: .5px; border: 3px solid #ffffffd9; box-shadow: 0 4px 10px #0007; transition: transform .15s; }
.sf-spot span { font-size: clamp(11px, 1.9vw, 13px); font-weight: 800; color: #fff; background: #0009; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.sf-spot.ln-fw { --c: #d6384b; } .sf-spot.ln-mf { --c: #3fbf6a; } .sf-spot.ln-df { --c: #3d7fe0; } .sf-spot.ln-gk { --c: #f0b623; } .sf-spot.ln-gk b { color: #3a2a00; }
.sf-spot:hover b { transform: scale(1.08); } .sf-spot[aria-pressed="true"] b { transform: scale(1.14); box-shadow: 0 0 0 4px #fff, 0 0 18px var(--c); }
.sf-spot.locked b { filter: grayscale(.8); opacity: .6; } .sf-spot.busy b { background: #555; }
.sf-special { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sf-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 2px solid #ffffff22; background: #ffffff0a; cursor: pointer; }
.sf-card b { font-size: 26px; } .sf-card span { font-weight: 900; } .sf-card small { color: #b9c3d6; font-size: 12px; }
.sf-card.sf-elite { border-color: #b98cff66; background: #8e44d91a; } .sf-card.sf-champion { border-color: #ffd84a77; background: #ffd84a14; }
.sf-card[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px #ffffff55; } .sf-card.locked { opacity: .7; }
/* 🏟 경기장 폭 맞춤 + 포지션 거르기 단추도 전용색(2026-11-25 밤) */
.sf-pitch { width: 100%; aspect-ratio: 100 / 100; max-height: none; }
.study-chip[data-f="pos"][data-v="FW"] { color: #ff9aa5; border-color: #d6384b88; } .study-chip[data-f="pos"][data-v="MF"] { color: #8ee6a9; border-color: #3fbf6a88; } .study-chip[data-f="pos"][data-v="DF"] { color: #9cc3ff; border-color: #3d7fe088; } .study-chip[data-f="pos"][data-v="GK"] { color: #ffd76a; border-color: #f0b62388; }
.study-chip[data-f="pos"][data-v="FW"][aria-pressed="true"] { background: #d6384b44; } .study-chip[data-f="pos"][data-v="MF"][aria-pressed="true"] { background: #3fbf6a44; } .study-chip[data-f="pos"][data-v="DF"][aria-pressed="true"] { background: #3d7fe044; } .study-chip[data-f="pos"][data-v="GK"][aria-pressed="true"] { background: #f0b62344; }

/* 🗺 유학지 지도(2026-11-25 밤 선생님 「A 지도」) — 훈련 섬 그림 위 자리 · 포지션 전용색 */
.sf-map { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px #0006; line-height: 0; user-select: none; }
.sf-map img { display: block; width: 100%; height: auto; }
.sf-map .sf-spot { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: clamp(44px, 11%, 120px); aspect-ratio: 1; display: block; background: none; border: 0; padding: 0; cursor: pointer; line-height: 1.2; --c: #8fa3ad; }
.sf-map .sf-spot::before { content: ""; position: absolute; inset: -20%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 70%, #fff) 0%, var(--c) 25%, transparent 68%); opacity: 0; transition: opacity .2s; }
.sf-map .sf-spot:hover::before { opacity: .35; } .sf-map .sf-spot[aria-pressed="true"]::before { opacity: .6; }
.sf-map .sf-spot i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #ffffffcc, 0 0 12px var(--c); animation: sfPulse 2.2s ease-in-out infinite; }
.sf-map .sf-spot span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 12px); white-space: nowrap; font-size: clamp(10px, 1.6vw, 13px); font-weight: 800; color: #fff; background: #0b1218e6; padding: 2px 8px; border-radius: 999px; border: 2px solid var(--c); pointer-events: none; }
.sf-map .sf-spot[aria-pressed="true"] span { background: var(--c); color: #111; }
.sf-map .sf-spot.locked i { background: #777; box-shadow: 0 0 0 3px #fff8; animation: none; } .sf-map .sf-spot.locked span { border-color: #777; color: #ccc; }
.sf-map .sf-spot.busy i { animation: none; }
.sf-map .ln-fw { --c: #d6384b; } .sf-map .ln-mf { --c: #3fbf6a; } .sf-map .ln-df { --c: #3d7fe0; } .sf-map .ln-gk { --c: #f0b623; } .sf-map .ln-el { --c: #a966f0; } .sf-map .ln-sp { --c: #ffd84a; } .sf-map .ln-bs { --c: #b9c7cf; }
@keyframes sfPulse { 50% { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .sf-map .sf-spot i { animation: none; } }

/* 🎁 2026-11-26 선물 룰렛 상품 보기 */
#gwbar .gw-peek { margin-left: 6px; padding: 3px 12px; border-radius: 999px; border: 0; background: #2a1a00; color: #ffd84a; font-weight: 800; font-size: 14px; cursor: pointer; min-height: 0; }
#gwpeek { z-index: 2147483100; }   /* 깜짝 뽑기판(2147483000)보다 위 */
#gwpeek .gw-ok { margin-top: 14px; }

/* 🎰 2026-11-26 추첨 선수가 바뀌면 접속 중인 학생에게 맨 위 슬롯 팝업 */
#lotlive { position: fixed; inset: 0; z-index: 2147483400; background: #000c; display: flex; align-items: center; justify-content: center; padding: 16px; animation: figin .3s both; }
#lotlive .ll-box { width: min(640px, 100%); background: var(--panel); border: 3px solid var(--gold); border-radius: 20px; padding: 22px; box-shadow: 0 0 60px #ffd84a55; }
#lotlive .ll-t { font-size: 26px; font-weight: 900; color: var(--gold); }
#lotlive .ll-sub { color: #e8ecf3; margin: 8px 0 4px; line-height: 1.6; }
#lotlive .lot-reveal .lot-player { justify-content: center; }
@media (max-width: 520px) { #lotlive .lot-reels { grid-template-columns: repeat(3, 1fr); } #lotlive .ll-t { font-size: 22px; } }

/* ✨🌈 전직 카드 판(2026-11-26 · 시안 _art-work/holo-card) — 틀(금속)·글씨 칸에만, 그림은 안 덮음 */
.pf.g-N { --hc-frame: var(--hcf-N); --hc-metal: var(--hcm-N); } .pf.g-R { --hc-frame: var(--hcf-R); --hc-metal: var(--hcm-R); } .pf.g-U { --hc-frame: var(--hcf-U); --hc-metal: var(--hcm-U); }
.pf.g-E { --hc-frame: var(--hcf-E); --hc-metal: var(--hcm-E); } .pf.g-L { --hc-frame: var(--hcf-L); --hc-metal: var(--hcm-L); } .pf.g-M { --hc-frame: var(--hcf-M); --hc-metal: var(--hcm-M); }
.pf { --mx: 50%; --my: 50%; }
.hc-foil, .hc-sheen { display: none; }
:root.hcm-N .pf.g-N :is(.hc-foil, .hc-sheen), :root.hcm-R .pf.g-R :is(.hc-foil, .hc-sheen), :root.hcm-U .pf.g-U :is(.hc-foil, .hc-sheen), :root.hcm-E .pf.g-E :is(.hc-foil, .hc-sheen), :root.hcm-L .pf.g-L :is(.hc-foil, .hc-sheen), :root.hcm-M .pf.g-M :is(.hc-foil, .hc-sheen) { display: block; }
.hc-foil, .hc-sheen { position: absolute; inset: 0; pointer-events: none; z-index: 1; -webkit-mask: var(--hc-frame) center / 100% 100% no-repeat; mask: var(--hc-frame) center / 100% 100% no-repeat; overflow: hidden; }
.hc-tint { opacity: .62; background: repeating-linear-gradient(115deg, #ff4fd8 0%, #ffd84a 7%, #4fffb0 14%, #4fd2ff 21%, #9b6bff 28%, #ff4fd8 35%); background-size: 300% 300%; background-position: var(--mx) var(--my); mix-blend-mode: overlay; }
.hc-glint { opacity: .75; background-image: var(--hc-spark), repeating-linear-gradient(115deg, #ff9cf0 0%, #fff2a8 7%, #a8ffe0 14%, #a8e8ff 21%, #c9b0ff 28%, #ff9cf0 35%); background-size: 100% 100%, 300% 300%; background-position: center, var(--mx) var(--my); background-blend-mode: multiply; mix-blend-mode: screen; -webkit-mask: var(--hc-metal) center / 100% 100% no-repeat; mask: var(--hc-metal) center / 100% 100% no-repeat; }
.hc-sheen { -webkit-mask-image: var(--hc-metal); mask-image: var(--hc-metal); }
.hc-sheen::before { content: ""; position: absolute; inset: -100%; animation: hcBand 6.5s infinite;
  background: linear-gradient(135deg, transparent 44%, #3fd2ff88 45.4%, transparent 46.4%, #eef4ff55 46.6%, #f6f9ffd0 47.6%, #fff 48.5%, #f6f9ffd0 49.4%, #eef4ff55 50.4%, transparent 50.6%, #ff6fd0aa 51.6%, #ffd84a88 52.6%, transparent 54%); }
@keyframes hcBand { 0% { transform: translate(-19%, -19%); animation-timing-function: cubic-bezier(.3, .1, .7, .9); } 62%, 100% { transform: translate(19%, 19%); } }
.hc-stars { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hc-stars i { position: absolute; width: 10%; aspect-ratio: 1; translate: -50% -50%; opacity: 0; animation: hcTw 3.6s ease-in-out infinite; }
.hc-stars i::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #fff 30%, #dff8ff 55%, #ffe0fa); clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%); }
.hc-stars i::after { content: ""; position: absolute; inset: -25%; background: radial-gradient(circle, #fff 0 7%, #c9f4ffcc 20%, #ffd0f488 38%, transparent 62%); }
.hc-stars i:nth-child(1) { left: 7%; top: 4.5%; animation-delay: -.3s } .hc-stars i:nth-child(2) { left: 93%; top: 4.5%; width: 8%; animation-delay: -2.1s } .hc-stars i:nth-child(3) { left: 4%; top: 30%; width: 7%; animation-delay: -1.2s }
.hc-stars i:nth-child(4) { left: 96%; top: 55%; animation-delay: -2.9s } .hc-stars i:nth-child(5) { left: 4%; top: 78%; width: 8%; animation-delay: -.8s } .hc-stars i:nth-child(6) { left: 92%; top: 95.5%; width: 9%; animation-delay: -3.3s } .hc-stars i:nth-child(7) { left: 20%; top: 96.5%; width: 7%; animation-delay: -1.7s }
@keyframes hcTw { 0%, 58%, 100% { opacity: 0; transform: scale(.25) rotate(0) } 70% { opacity: 1; transform: scale(1.12) rotate(30deg) } 84% { opacity: 0; transform: scale(.45) rotate(60deg) } }
.hc-glare { position: absolute; inset: 0; pointer-events: none; z-index: 4; mix-blend-mode: soft-light; background: radial-gradient(circle at var(--mx) var(--my), #ffffffee 0%, #ffffff55 18%, transparent 46%); }
.pf-job { position: absolute; left: 50%; top: 18.8%; translate: -50% 0; z-index: 2; font-size: 6.2cqw; font-weight: 900; padding: .6cqw 3cqw; border-radius: 99px; white-space: nowrap; max-width: 84%; overflow: hidden; text-overflow: ellipsis; }
.pf-job.hc-j1 { background: linear-gradient(90deg, #dfe6f0, #ffffff, #c9d3e2); color: #233; box-shadow: 0 0 2cqw #fff8; }
.pf-job.hc-j2 { background: linear-gradient(90deg, #ff6fd0, #ffd84a, #5fe0ff, #9b7bff); color: #1a1030; box-shadow: 0 0 3cqw #ff9cf0aa; }
.pf.hc-fx { transition: transform .25s ease-out; will-change: transform; border-radius: 4%; }
.pf { isolation: isolate; }   /* 🐞 2026-11-26 합성 뒷면에 별·글씨가 비침 → 카드 안의 z-index가 밖(뒷면 덮개)으로 새지 않게 */
.pf .pf-nm, .pf .pf-st, .pf .pf-info { z-index: 2; }
/* 상대 팀 보기: 시상대(금·은·동) · 홀로 장수 · 얼굴 고리 */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 6px 0 14px; }
.podium .spot { display: flex; flex-direction: column; align-items: center; }
.pod-card { position: relative; display: block; width: min(25vw, 132px); aspect-ratio: 2 / 3; padding: 0; border: 0; background: none; cursor: pointer; }
.podium .s1 .pod-card { width: min(31vw, 168px); }
.podium .base { width: 100%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; color: #1a1408; border-radius: 6px 6px 0 0; margin-top: 8px; }
.podium .s1 .base { height: 50px; background: linear-gradient(#ffe58a, #d9a520); } .podium .s2 .base { height: 34px; background: linear-gradient(#f1f4f8, #aab4c2); } .podium .s3 .base { height: 24px; background: linear-gradient(#f0c79a, #b07040); }
.podium.go .spot { animation: podRise .7s cubic-bezier(.2, .9, .3, 1.2) backwards; } .podium.go .s3 { animation-delay: .1s } .podium.go .s2 { animation-delay: .55s } .podium.go .s1 { animation-delay: 1.05s }
@keyframes podRise { from { opacity: 0; transform: translateY(40px) scale(.9); } }
.pod-me { text-align: center; margin: -4px 0 12px; } .scp-slot { padding: 4px 10px; border-radius: 99px; background: #ffffff12; }
.hc-tag2 { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 900; color: #1a1030; background: linear-gradient(90deg, #ff6fd0, #ffd84a, #5fe0ff, #9b7bff, #ff6fd0); background-size: 200% 100%; animation: hcSlide 3s linear infinite; }
.hc-tag1 { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 900; color: #223; background: linear-gradient(90deg, #cfd8e6, #fff, #cfd8e6); }
@keyframes hcSlide { to { background-position: 200% 0 } }
@property --hca { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.tv-p.hc-r1 .tv-face { border: 3px solid transparent; background: conic-gradient(from var(--hca), #8d99ad, #fff, #b9c4d6, #8d99ad 50%, #fff 60%, #8d99ad) border-box; animation: hcSpin 4s linear infinite; }
.tv-p.hc-r2 .tv-face { border: 3px solid transparent; background: conic-gradient(from var(--hca), #ff4fd8, #ffd84a, #4fffb0, #4fd2ff, #9b6bff, #ff4fd8) border-box; animation: hcSpin 2.8s linear infinite; box-shadow: 0 0 10px #ff9cf088; }
.tv-p.hc-r1 .tv-face img, .tv-p.hc-r2 .tv-face img { border-radius: 50%; background: #142220; }
@keyframes hcSpin { to { --hca: 360deg } }
.best-go { cursor: pointer; } .best-go:hover { background: #ffffff0d; }
@media (prefers-reduced-motion: reduce) { .hc-sheen::before, .hc-stars i, .tv-p.hc-r1 .tv-face, .tv-p.hc-r2 .tv-face, .hc-tag2, .podium.go .spot { animation: none !important; } }

/* 🌈 선수 정보 머리의 작은 판 카드 · 크게 보기(2026-11-26) */
.hc-mini { position: relative; flex: 0 0 84px; width: 84px; aspect-ratio: 2 / 3; padding: 0; border: 0; background: none; cursor: pointer; }
.hc-mini-tip { position: absolute; left: 50%; bottom: -2px; translate: -50% 0; z-index: 5; font-size: 11px; font-weight: 900; padding: 1px 8px; border-radius: 99px; background: #000b; color: #fff; white-space: nowrap; }
#hcbig { position: fixed; inset: 0; z-index: 2147483300; background: #000d; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; animation: figin .3s both; }
#hcbig .hcbig-card { position: relative; width: min(78vw, 340px); aspect-ratio: 2 / 3; }
#hcbig .hcbig-cap { text-align: center; color: #c9d8d2; margin: 0; line-height: 1.6; } #hcbig .hcbig-cap b { color: #fff; font-size: 20px; }
#hcbig .hcbig-burst { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 45%, #fff 0, #ffd6f8aa 12%, transparent 40%); opacity: 0; animation: hcBurst .9s ease-out; }
@keyframes hcBurst { 0% { opacity: 1; transform: scale(.4) } 100% { opacity: 0; transform: scale(1.6) } }
@media (prefers-reduced-motion: reduce) { #hcbig .hcbig-burst { animation: none; } }
/* 🔎 2026-11-26 강화할 카드 고르기: 가능/불가 갈래 · 이름 검색 */
.tg-tools { gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 6px; } .tg-tools #tg-q { flex: 1 1 180px; min-width: 0; max-width: 280px; }

/* 🎖️ 리그 시상식(2026-11-26 · 레전드 리그 시상식 참고) */
#cer { position: fixed; inset: 0; z-index: 2147483200; background: radial-gradient(circle at 50% 35%, #1e293b, #020617 75%); color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; --c: #facc15; padding: 16px; }
#cer .cer-skip { position: absolute; right: 14px; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 5; }
#cer .cer-stage { position: relative; text-align: center; width: min(96vw, 900px); max-height: 100%; overflow-x: hidden; overflow-y: auto; padding: 8px; }
#cer .cer-rays { position: fixed; z-index: -1; left: 50%; top: 50%; width: 150vmax; height: 150vmax; transform: translate(-50%, -50%); background: repeating-conic-gradient(var(--c) 0 5deg, transparent 5deg 16deg); opacity: .08; border-radius: 50%; animation: cerSpin 40s linear infinite; pointer-events: none; }
@keyframes cerSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
#cer .cer-ttl { position: relative; font: 900 clamp(20px, 4.4vw, 34px)/1.2 sans-serif; letter-spacing: .08em; color: var(--c); text-shadow: 0 0 20px var(--c); animation: cerUp .6s both; }
#cer .cer-dr { position: relative; margin-top: 26px; font: 900 clamp(22px, 5vw, 40px)/1 sans-serif; letter-spacing: .3em; animation: cerPulse .45s infinite alternate; }
@keyframes cerPulse { from { opacity: .35; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }
#cer .cer-big { position: relative; margin-top: 14px; font: 900 clamp(24px, 5.6vw, 44px)/1.2 sans-serif; }
#cer .cer-big small { font-size: .5em; opacity: .7; }
#cer .cer-sub { position: relative; margin: 10px 0 0; color: #e2e8f0; font-size: clamp(14px, 2.6vw, 18px); line-height: 1.6; }
#cer .cer-flash { position: fixed; z-index: -1; inset: 0; background: #fff; opacity: 0; animation: cerFlash .8s ease-out; pointer-events: none; }
@keyframes cerFlash { 0% { opacity: .9; } 100% { opacity: 0; } }
@keyframes cerUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes cerZoom { 0% { opacity: 0; transform: scale(.2); } }
#cer .cer-face { position: relative; width: clamp(120px, 26vw, 170px); height: clamp(120px, 26vw, 170px); margin: 18px auto 10px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 5px var(--c), 0 0 60px var(--c); background: #0f172a; display: grid; place-items: center; font-size: 64px; animation: cerZoom .8s cubic-bezier(.2, 1.7, .4, 1) both; }
#cer .cer-face img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
#cer.grand .cer-face { width: clamp(150px, 34vw, 220px); height: clamp(150px, 34vw, 220px); }
#cer .cer-nm { position: relative; font: 900 clamp(32px, 8vw, 64px)/1.1 sans-serif; background: linear-gradient(180deg, #fff, var(--c)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: cerZoom .8s .25s cubic-bezier(.2, 1.7, .4, 1) both; }
#cer.grand .cer-nm { font-size: clamp(40px, 11vw, 92px); }
#cer .cer-club { position: relative; margin-top: 6px; font-size: clamp(15px, 3vw, 20px); font-weight: 800; color: #e2e8f0; }
#cer .cer-eff { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
#cer .cer-e { display: flex; flex-direction: column; gap: 4px; align-items: center; min-width: 150px; padding: 14px 12px; border-radius: 16px; background: #ffffff10; border: 2px solid #ffffff22; animation: cerZoom .7s cubic-bezier(.2, 1.7, .4, 1) both; }
#cer .cer-e.r1 { order: 2; transform: scale(1.12); border-color: var(--c); box-shadow: 0 0 24px var(--c); animation-delay: .6s; } #cer .cer-e.r2 { order: 1; animation-delay: .3s; } #cer .cer-e.r3 { order: 3; }
#cer .cer-e b { font-size: 34px; } #cer .cer-who { font-weight: 900; font-size: 18px; } #cer .cer-e small { opacity: .75; } #cer .cer-e em { font-style: normal; font-weight: 900; color: var(--c); }
#cer .cer-names { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; max-height: 38vh; overflow: auto; }
#cer .cer-names span { padding: 3px 10px; border-radius: 99px; background: #ffffff14; font-size: 13px; }
#cer .cer-lgs { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 14px; text-align: left; }
#cer .cer-lg { padding: 10px 12px; border-radius: 14px; background: #ffffff0d; border: 1px solid #facc1555; animation: cerUp .5s both; }
#cer .cer-lg h4 { margin: 0 0 6px; color: #fde68a; }
#cer .cer-pd { display: grid; grid-template-columns: 30px 1fr; column-gap: 6px; margin: 4px 0; } #cer .cer-pd b { grid-row: span 2; font-size: 22px; } #cer .cer-pd span { font-weight: 900; } #cer .cer-pd small { opacity: .7; font-size: 12px; }
#cer .cer-pd.p1 span { color: #fde68a; font-size: 17px; }
#cer .cer-lgl { margin: 6px 0 0; font-size: 12.5px; opacity: .85; }
#cer .cer-pitch { position: relative; max-width: 720px; margin: 12px auto 0; padding: 14px 4px 10px; border-radius: 16px; background: repeating-linear-gradient(180deg, #2f8f4a 0 38px, #379b52 38px 76px); border: 3px solid #14532d; }
#cer .cer-row { display: flex; justify-content: space-around; margin: 6px 0 14px; }
#cer .cer-bp { width: 86px; text-align: center; opacity: 0; transform: scale(.3); transition: all .45s cubic-bezier(.2, 1.7, .4, 1); } #cer .cer-bp.on { opacity: 1; transform: none; }
#cer .cer-bf { width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 4px 8px #0006; background: #0f172a; display: grid; place-items: center; } #cer .cer-bf img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
#cer .cer-bn { margin-top: 3px; font-size: 12px; font-weight: 900; color: #0f172a; background: #fff; border-radius: 6px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cer .cer-bc { font-size: 10.5px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cer .cer-me, #cer .cer-names .cer-me { box-shadow: 0 0 0 3px #fbbf24, 0 0 18px #fbbf24 !important; } #cer .cer-mine { color: #fbbf24; }
#cer .cer-myaw { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; } #cer .cer-myaw span { padding: 6px 14px; border-radius: 99px; background: linear-gradient(90deg, #fbbf24, #f59e0b); color: #1a1408; font-weight: 900; }
#cer .cer-conf { position: absolute; top: -20px; width: 9px; height: 14px; animation: cerFall linear forwards; pointer-events: none; }
@keyframes cerFall { to { transform: translateY(112vh) rotate(720deg); } }
@media (max-width: 520px) { #cer .cer-bp { width: 62px; } #cer .cer-bf { width: 44px; height: 44px; } #cer .cer-bn { font-size: 10px; } #cer .cer-e { min-width: 100px; } }
@media (prefers-reduced-motion: reduce) { #cer .cer-rays, #cer .cer-dr, #cer .cer-conf { animation: none !important; } #cer .cer-conf { display: none; } }
#cer .cer-gift { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 99px; background: #fbbf2422; color: #fde68a; font-style: normal; font-weight: 800; font-size: 13px; }
#cer .cer-mf { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #0f172a; box-shadow: 0 0 0 3px var(--c); } #cer .cer-mf img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
#cer .cer-mylist { position: relative; display: grid; gap: 8px; max-width: 560px; margin: 14px auto 0; text-align: left; } #cer .cer-mylist div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 12px; border-radius: 12px; background: #ffffff10; border: 1px solid #fbbf2455; } #cer .cer-mylist b { font-size: 15px; }

/* 🚫 재료에서 빼기 · ⚡ 한 번에 채우기(2026-11-26) */
.mat-excl { margin: 4px 0 10px; } .mat-excl summary { cursor: pointer; } .mat-excl-row { gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mat-excl-row button { padding: 4px 10px; font-size: 13px; } .mat-excl-row button.on { border-color: #f87171; color: #fca5a5; background: #7f1d1d33; }
.enh-mat-head #enh-fill { margin-left: auto; margin-right: 8px; }
.pack-actions-top { margin: 0 0 10px; justify-content: flex-start; }

/* 🏆 단계 컵 1~8(2026-11-26) */
.cup-step-note { margin: 0 0 10px; }
.cup-cards-step { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cup-stage .cup-entry-info b { color: var(--cup-tone); }
.cup-round-step { font-size: 12px; opacity: .8; margin-left: 4px; }

/* ⏩ 합성 연출 넘기기(2026-11-27) */
.fuse-fx { cursor: pointer; pointer-events: auto; }
.fuse-skip { position: fixed; right: 18px; bottom: 22px; z-index: 2; padding: 8px 16px; border-radius: 999px; font-size: 15px; background: #0009; border: 1px solid #fff5; color: #fff; }

/* 🗺️ 컵 주제 리그(2026-11-27) */
.cup-themes { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #2c4240; border-radius: 12px; background: #142021; }
.cup-themes-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .cup-themes-h h3 { margin: 0; }
.cup-theme-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 10px 0; }
.cup-theme { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 2px solid #2f4644; background: #1a2a2b; }
.cup-theme b { font-size: 16px; } .cup-theme.on { border-color: #f0b623; background: #2a2614; } .cup-theme.on b::before { content: '✔ '; color: #f0b623; }
.cup-theme-clubs { font-size: 11.5px; opacity: .65; line-height: 1.35; }
.cup-theme-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ⭐ 라운드 선수(2026-11-27) */
.season-band { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid #f0b62366; background: linear-gradient(100deg, #2a2210, #161d1e 70%); }
.season-band .sb-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .season-band .sb-now { margin-left: auto; opacity: .7; } .season-band .sb-now.on { opacity: 1; color: #ffd76a; }
.season-band .sb-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.season-band .sb-p { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid #ffffff22; background: #0006; opacity: .65; }
.season-band .sb-p img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #0005; }
.season-band .sb-p small { opacity: .75; } .season-band .sb-p.have { opacity: .9; } .season-band .sb-p.on { opacity: 1; border-color: #f0b623; box-shadow: 0 0 10px #f0b62355; }
@media (max-width: 460px) { .pack-actions-top { display: none; } }   /* 🐞 2026-11-27 선생님: 휴대폰은 원래 열기 버튼이 위에 있어서 위쪽 버튼이 2개로 보임 → 휴대폰에선 위쪽 추가 버튼 숨김 */

/* 🎯 티켓 경기 리그 고르기(2026-11-27) */
.tk-leagues { margin: 6px 0 10px; } .tkl-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.tkl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.tkl { position: relative; border: 2px solid #2f4644; border-radius: 10px; background: #1a2a2b; }
.tkl.on { border-color: #f0b623; background: #2a2614; }
.tkl-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 8px 34px 8px 10px; background: none; border: 0; }
.tkl.on .tkl-pick b::before { content: '✔ '; color: #f0b623; }
.tkl-me { font-size: 12.5px; color: #cfe3df; } .tkl-me b { color: #ffd76a; }
.tkl-more { position: absolute; top: 6px; right: 6px; padding: 2px 8px; font-size: 13px; }
.tkl-clubs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 8px 8px; }
.tkl-clubs span { font-size: 12px; padding: 2px 7px; border-radius: 999px; background: #0005; opacity: .55; } .tkl-clubs span.own { opacity: .85; } .tkl-clubs span.st { opacity: 1; border: 1px solid #f0b62388; }
.tkl-clubs span b { color: #ffd76a; } .tkl-clubs p { width: 100%; margin: 4px 0 0; }

/* 🧬 계승 새 화면(2026-11-27) */
.gup.inherit .ih-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; } .gup.inherit select { max-width: 100%; }
.ih-take { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 6px; } .ih-take label.off { opacity: .4; }
.ih-pv { margin: 4px 0 8px; line-height: 1.6; } .ih-pv b { color: #ffd76a; }
.ih-block { color: #fca5a5; }

.ih-refuse { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: #7f1d1d33; color: #fecaca; }

.ih-clamp { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: #78350f33; color: #fde68a; } .ih-cl { display: inline-flex; gap: 4px; align-items: center; margin: 2px 6px 2px 0; }

/* 🐞 2026-11-27 2-2 학생 「휴대폰에서 전직 카드 얼굴과 카드 틀이 따로 보여요」(재현 안 됨 · 오래된 휴대폰 브라우저 의심):
   컨테이너 단위(cqw)나 마스크를 못 쓰는 브라우저에서는 전직 판 반짝이 층을 끄고 보통 카드로 보여 줌 */
@supports not (container-type: inline-size) { .hc-foil, .hc-sheen, .hc-stars, .hc-glare { display: none !important; } }
@supports not ((mask-image: none) or (-webkit-mask-image: none)) { .hc-foil, .hc-sheen { display: none !important; } }

/* 📋 추첨 선수 · 내 카드(2026-11-27) */
.lr-combo { width: 100%; margin-top: 4px; color: #ffd76a; }

/* 🐞 2026-11-27 2-2 학생 · 선생님 사진 「전직한 선수 카드 틀과 얼굴이 따로」: 선수 정보 머리의 `.player-header img`(27%) 규칙이
   전직 카드(.hc-mini 안 .pf)의 틀·얼굴 그림까지 줄여서 틀이 1/4 폭으로 찌그러짐 → 카드 안 그림은 카드 규칙대로 */
.player-header .pf .pf-frame { width: 100%; height: 100%; max-height: none; object-fit: fill; }
.player-header .pf .pf-art .face { width: 92%; height: 100%; max-height: none; object-fit: contain; }
.player-header .pf .pf-art .face.nf { width: 100%; }

/* 📋 계승 결과 미리보기 표(2026-11-28 선생님 「계승 전에 결과를 알려 줘야 해」) */
.ih-sum-h { margin: 6px 0 4px; font-weight: 700; }
.ih-sum { width: 100%; border-collapse: collapse; font-size: .92em; }
.ih-sum th { text-align: left; white-space: nowrap; vertical-align: top; padding: 5px 8px 5px 0; color: #cbd5e1; font-weight: 600; }
.ih-sum td { padding: 5px 0; border-bottom: 1px solid #ffffff14; line-height: 1.5; }
.ih-sum tr:last-child td { border-bottom: 0; }
.ih-sum .ih-bad, .ih-pv .ih-bad { color: #fca5a5; }
.ih-sk { margin: 0; padding-left: 0; list-style: none; } .ih-sk li { margin: 1px 0; }

/* 📊 2026-11-29 선수단 위인 수(등급별) · 등급 이상 칩 */
.sq-count { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid #2c4136; border-radius: 12px; background: #13201a; font-size: .9rem; }
.sq-count .sqc-h small { color: #93a89b; font-weight: 500; }
.sq-count .sqc-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sq-count .sqc-g { padding: 3px 9px; border-radius: 999px; background: #1c2c24; font-weight: 700; }
.sq-count .sqc-chip { min-height: 32px; padding: 3px 12px; border-radius: 999px; border: 1px solid #3c5a48; background: #1c2c24; color: var(--text); font-weight: 700; cursor: pointer; }
.sq-count .sqc-chip.on { background: #e8c25a; color: #1b1a10; border-color: #e8c25a; }
/* 🗂 2026-11-29 선수단 묶어 보기 */
.sq-groupby { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.sq-groupby .sqg-b { min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid #3c5a48; background: #1c2c24; color: var(--text); font-weight: 700; cursor: pointer; }
.sq-groupby .sqg-b.on { background: #2f8f5b; border-color: #4fc085; color: #fff; }
.sq-sec { margin: 0 0 22px; }
.sq-sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 10px; padding: 6px 2px; border-bottom: 1px solid #2c4136; font-size: 1.05rem; }
.sq-sec-h .muted { font-size: .85rem; font-weight: 600; }
/* 🧪 2026-11-29 선수단 정리 창: 합성으로 정리 */
.rc-fuse { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid #5b4a1e; border-radius: 12px; background: #2a2412; }
.rc-fuse button { min-height: 40px; }
/* 🧬 2026-11-29 계승 창 */
.iw h2 small { font-size: .55em; margin-left: 6px; }
.iw-pick { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 10px 0 12px; }
.iw-pick label { display: grid; gap: 4px; flex: 1 1 260px; font-weight: 750; }
.iw-pick select { min-height: 42px; }
.iw-wrap { overflow-x: auto; }
.iw-t { width: 100%; border-collapse: collapse; min-width: 560px; }
.iw-t th, .iw-t td { padding: 8px 10px; border-bottom: 1px solid #2c4136; text-align: left; vertical-align: top; font-size: .92rem; }
.iw-t thead th { font-size: .85rem; color: #c5d4c9; }
.iw-t tbody th { white-space: nowrap; color: #c5d4c9; }
.iw-t .iw-gone { background: #3a1d1d55; }
.iw-t .iw-arrow { color: #e8c25a; font-weight: 900; text-align: center; padding: 8px 2px; }
.iw-t .iw-res { background: #1d3a2855; }
.iw-t .ul-face { width: 36px; height: 36px; float: left; margin-right: 8px; }
.iw-warn { margin: 12px 0 6px; padding: 10px 14px; border-radius: 10px; background: #4a1f1f; color: #ffd6d0; }
.iw-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.iw-go span { font-weight: 800; margin-right: auto; }
.iw-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* 🧬 2026-11-29 계승 창 v2: 칸 두 개 + 아래 카드 목록 · 바뀌는 줄 */
.iw-slots { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; margin: 10px 0 12px; }
.iw-slot { border: 2px dashed #3c5a48; border-radius: 14px; padding: 10px 12px; min-height: 150px; cursor: pointer; background: #13201a; }
.iw-slot.gone { border-color: #6b2f2f; background: #241515; }
.iw-slot.on { border-style: solid; border-color: #e8c25a; box-shadow: 0 0 0 2px #e8c25a44; }
.iw-slot.drop { background: #2a3a1a; }
.iw-slot .card { max-width: 240px; }
.iw-sh { font-weight: 800; margin-bottom: 8px; }
.iw-now { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #e8c25a; color: #1b1a10; font-size: .78rem; margin-left: 4px; }
.iw-empty { display: grid; place-items: center; min-height: 100px; color: #93a89b; text-align: center; font-size: .9rem; }
.iw-mid { display: grid; place-items: center; font-size: 1.8rem; color: #e8c25a; font-weight: 900; }
.iw-clear { margin-top: 6px; min-height: 32px; padding: 2px 10px; }
.iw-deck { margin: 6px 0 0; color: #ffb3a8; font-size: .85rem; font-weight: 700; }
.iw-listh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0 8px; }
.iw-listh h3 { margin: 0; font-size: 1.05rem; } .iw-listh h3 small { font-weight: 500; margin-left: 4px; }
.iw-listh input { min-height: 38px; flex: 0 1 220px; margin-left: auto; }
.iw-grid { max-height: 46vh; overflow-y: auto; }
.iw-it { position: relative; cursor: pointer; border-radius: 12px; }
.iw-it.sel { outline: 3px solid #e8c25a; }
.iw-it.held { opacity: .55; }
.iw-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.iw-tag { padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #1c2c24; }
.iw-tag.same { background: #1d3a28; color: #9dff8a; } .iw-tag.dk { background: #4a1f1f; color: #ffd6d0; } .iw-tag.no { color: #93a89b; }
.iw-t tr.iw-chg td.iw-res { background: #3b5a1f; color: #fff; font-weight: 700; }
.iw-t tr.iw-chg th { color: #ffe08a; }
.iw-badge { display: inline-block; padding: 0 7px; border-radius: 999px; background: #e8c25a; color: #1b1a10; font-size: .72rem; font-weight: 900; margin-left: 4px; }
.iw-none { color: #ffd38a; margin: 8px 0 0; }
@media (max-width: 640px) { .iw-slots { grid-template-columns: 1fr; } .iw-mid { transform: rotate(90deg); } }

/* ✅ 계승 고르기(2026-11-29) */
.iw-pick{display:block;margin-top:4px;font-size:.78em;font-weight:600;cursor:pointer;white-space:nowrap}
.iw-pick input{vertical-align:middle;margin:0 3px 0 0;width:16px;height:16px}

/* ✨ 못 받은 전직 슬롯(2026-11-29) */
.career-slot-miss{margin:6px 0 10px;padding:8px 10px;border-radius:10px;background:rgba(242,193,78,.14);border:1px solid rgba(242,193,78,.55)}
.career-slot-miss button{margin-left:6px}

/* 🎰 2026-11-30 스킬 룰렛 3칸(단계 · 스킬 · 레벨): 가운데 스킬 칸을 넓게 */
.skw-reels { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); margin-block: 6px; }
.skw-reel h3 { min-height: 22px; }
.skw-reel .reward-window { --reel-step: 64px; padding-inline: 4px; }
.skw-reel .reward-symbol { flex-wrap: wrap; gap: 2px 4px; font-size: clamp(12px, 3.4vw, 17px); }
.skw-reels .skw-reel:nth-child(2) .reward-symbol b { white-space: normal; word-break: keep-all; line-height: 1.15; }

/* 🌍 세계 정복전 참가 접수(2026-12-02) */
.world-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin: 0 0 12px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(100deg, #10273a, #1c2a14); border: 2px solid #7fd3ff; animation: mbnPulse 2.4s ease-out infinite; }
.world-card.joined { animation: none; border-color: #4ade80; }
.world-card .lot-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.world-card .lot-main b { font-size: 17px; color: #bfe9ff; }
.world-card .lot-ic { font-size: 30px; }
.world-card .lot-go { margin-left: auto; font-size: 24px; color: var(--gold); }
.world-entry { display: grid; gap: 10px; }
.world-entry h2 { margin: 0; }
.we-lead { margin: 0; }
.we-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.we-count { margin: 0; font-size: 15px; }
.we-ok { margin: 0; color: #4ade80; font-weight: 700; }
.we-leave { justify-self: start; background: none; border: 1px solid #4a5568; color: #a0aec0; padding: 6px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.we-hero { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(100deg, #10273a, #1c2a14); border: 2px solid #7fd3ff; text-align: center; }
.we-hero b { font-size: 21px; color: #bfe9ff; line-height: 1.3; }
.we-hero span { font-size: 15px; } .we-hero em { font-style: normal; font-weight: 800; color: var(--gold); }
.we-note { margin: 0; padding: 10px 12px; border-radius: 10px; border: 1px dashed #7fd3ff; font-size: 14px; }
.we-coop { margin: 0; text-align: center; font-size: 15px; color: #bfe9ff; }

/* 🗺 세계 정복전 지도·땅 고르기(2026-12-02) — 밤바다 지도 · 금빛 = 우리 학교 · 청동 = 수비대 */
#modal .box.world-box { max-width: min(1100px, 97vw); width: 97vw; max-height: 96vh; padding: 14px 16px; background: #22323f; border-color: #3d5568; }
.wm { display: grid; gap: 12px; }
.wm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.wm-head h2 { margin: 0; font-size: 22px; }
.wm-phase { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: #20334a; color: #bfe9ff; }
.wm-phase.pick { background: #3a2f10; color: #ffe08a; } .wm-phase.locked { background: #2a2f36; color: #c7ced8; }
.wm-me { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--sub); }
.wm-me b { color: var(--text); font-variant-numeric: tabular-nums; }
.wm-join { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: #2a3f52; border: 1px solid #4a6a85; }
.wm-info { border: 1px solid #4a6a85; border-radius: 12px; padding: 8px 12px; background: #2a3f52; }
.wm-info summary { cursor: pointer; font-weight: 700; color: #bfe9ff; }
.wm-info[open] { display: grid; gap: 8px; }
.wm-tabs, .wm-views { display: flex; flex-wrap: wrap; gap: 6px; }
.wm-tabs button, .wm-views button { padding: 7px 14px; border-radius: 999px; border: 1px solid #56718a; background: #30475c; color: #f2f6fa; font-size: 14px; cursor: pointer; }
.wm-tabs button[aria-selected="true"], .wm-views button[aria-pressed="true"] { background: var(--gold); color: #1a1405; border-color: var(--gold); font-weight: 700; }
.wm-views button { padding: 5px 12px; font-size: 13px; }
.wm-map { width: 100%; aspect-ratio: 16 / 10; max-height: 62vh; border-radius: 12px; overflow: hidden; border: 2px solid #c9b98f; background: #a8d4ea; }
.wm-map svg { display: block; width: 100%; height: 100%; }
.wm-sea { fill: #a8d4ea; } .wm-grat { fill: none; stroke: #c9e6f3; } .wm-land { fill: #eee6cb; } .wm-border { fill: none; stroke: #cbbd93; }
.wm-terr { fill-opacity: .38; stroke-opacity: .85; }
.wm-pin { cursor: pointer; } .wm-pin:focus { outline: none; } .wm-pin:focus-visible .wm-dot, .wm-pin:focus-visible .wm-cl-dot { stroke: #fff; }
.wm-hit { fill: transparent; }
.wm-dot { stroke: #fff; } .wm-pin.sel .wm-dot { stroke: #1a2530; }
.wm-ours { fill: none; stroke: #d48f00; } .wm-mine { fill: none; stroke: #1a2530; stroke-dasharray: 2 2; }
.wm-cl-dot { fill: #2f7fd0; stroke: #fff; }
.wm-lab { fill: #1a2530; font-weight: 800; paint-order: stroke; stroke: #fffdf6; stroke-linejoin: round; pointer-events: none; }
.wm-sub { fill: #3a4855; paint-order: stroke; stroke: #fffdf6; stroke-linejoin: round; pointer-events: none; font-variant-numeric: tabular-nums; }
.wm-sub.me { fill: #a85d00; font-weight: 800; } .wm-sub.full { fill: #c0392b; }
.wm-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--sub); }
.wm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wm-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.wm-legend i.ring { border: 2px solid #f2b730; } .wm-legend i.mine { border: 2px dashed #fff; }
/* 서울 궁궐 그림 */
.wm-sl-land { fill: #eee6cb; } .wm-sl-river { fill: none; stroke: #8cc6e4; stroke-width: .95; stroke-linecap: round; stroke-linejoin: round; }
.wm-sl-stream { fill: none; stroke: #a7d3ea; stroke-linecap: round; stroke-linejoin: round; } .wm-sl-wall { fill: #e6dcbc; stroke: #a5835a; stroke-linejoin: round; }
.wm-sl-hill { fill: #a9cf93; stroke: #87b071; stroke-width: .04; }
.wm-sl-lab { font-weight: 700; paint-order: stroke; stroke: #fffdf6; stroke-linejoin: round; pointer-events: none; }
.wm-sl-lab.hill { fill: #4f7a3c; } .wm-sl-lab.river { fill: #2a6f98; font-style: italic; letter-spacing: .2em; } .wm-sl-lab.wall { fill: #8a6638; } .wm-sl-lab.stream { fill: #3c86ad; }
.wm-filter { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--sub); }
.wm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.wm-row { display: grid; gap: 3px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid #4a6378; background: #2c4152; color: #f2f6fa; cursor: pointer; min-width: 0; }
.wm-row.mine { border-color: #f2c14e; box-shadow: 0 0 0 1px #f2c14e inset; } .wm-row.no { opacity: .6; }
.wm-row-h b { font-size: 16px; } .wm-row-s { font-size: 12.5px; color: var(--sub); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wm .st { font-style: normal; color: #f2c14e; letter-spacing: 1px; } .wm .me { font-style: normal; color: #ffe08a; }
.wm .up { color: #5fd79a; font-style: normal; } .wm .down { color: #ff8a7d; font-style: normal; }
.wm-detail { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #2a3e50; border: 1px solid #f2c14e99; scroll-margin-top: 8px; }
.wm-detail-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wm-detail-h h3 { margin: 0; font-size: 21px; }
.wm-fact { margin: 0; padding: 8px 12px; border-left: 3px solid #f2c14e; background: #344b5f; border-radius: 0 8px 8px 0; font-size: 14px; }
.wm-kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 14px; font-variant-numeric: tabular-nums; }
.wm-kv span { color: var(--sub); } .wm-kv b { min-width: 0; overflow-wrap: anywhere; }
.wm-h4 { margin: 4px 0 0; font-size: 15px; }
.wm-defs, .wm-seats { display: flex; flex-wrap: wrap; gap: 6px; }
.wm-def, .wm-seat { display: inline-flex; flex-direction: column; padding: 6px 10px; border-radius: 9px; font-size: 13px; background: #3a4a36; border: 1px solid #b08d57aa; }
.wm-def small, .wm-seat small { color: var(--sub); font-variant-numeric: tabular-nums; }
.wm-seat { background: transparent; border: 1px dashed #6b8196; color: #c3d0db; min-width: 86px; }
.wm-seat.on { border-style: solid; border-color: #f2c14e; color: var(--text); background: #2a2410; } .wm-seat.me { box-shadow: 0 0 0 1px #fff inset; }
.wm-note, .wm-wait { margin: 0; font-size: 13px; color: var(--sub); }
.wm-wait { padding: 10px 12px; border-radius: 10px; background: #344b5f; }
.wm-sch { display: grid; gap: 6px; }
.wm-sch h4 { margin: 6px 0 0; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.wm-sch h4 i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.wm-team { padding: 8px 10px; border-radius: 10px; background: #2f4456; border: 1px solid #4a6378; display: grid; gap: 2px; }
.wm-team-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.wm-team-h .pow { font-weight: 800; font-variant-numeric: tabular-nums; color: #ffe08a; }
.wm-team-s { font-size: 12.5px; color: var(--sub); overflow-wrap: anywhere; }
.wm-team-s b { color: var(--text); }
.wm .pill { display: inline-block; padding: 0 7px; border-radius: 999px; background: #44607a; font-size: 12px; margin-right: 3px; color: #eef6fc; }
.wm-src { font-size: 11.5px; margin: 0; }
/* ⚔️ 땅 리그(2026-12-02): 학교 순위 · 팀 순위 · 내 경기 */
.wm-phase.league { background: #3a2410; color: #ffc78a; } .wm-phase.done { background: #23362a; color: #b8f0c6; }
.wm-lg { display: grid; gap: 8px; min-width: 0; }
.wm-lg-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding: 8px 12px; border-radius: 10px; background: #3a2c1c; border: 1px solid #f2c14e66; }
.wm-lg-h b { font-size: 16px; color: #ffe08a; } .wm-lg-h span { font-size: 13px; color: #f4e3c2; font-variant-numeric: tabular-nums; }
.wm-h4 small { font-weight: 500; font-size: 12px; }
.wm-lgt { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 10px; border: 1px solid #4a6378; }
.wm-lgt table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.wm-lgt th, .wm-lgt td { padding: 6px 8px; text-align: center; white-space: nowrap; border-bottom: 1px solid #3a5163; }
.wm-lgt thead th { background: #2f4456; color: var(--sub); font-weight: 600; font-size: 12px; }
.wm-lgt tbody th[scope="row"] { text-align: left; font-weight: 600; color: #f2f6fa; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.wm-lgt tbody th small { color: var(--sub); font-weight: 500; margin-left: 4px; }
.wm-lgt tr.ours { background: #f2c14e1f; } .wm-lgt tr.me { background: #f2c14e3d; box-shadow: inset 3px 0 0 #f2c14e; }
.wm-lgt tr.def th[scope="row"] { color: #e2c79a; } .wm-lgt tr.gone { opacity: .5; }
.wm-next { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13.5px; }
.wm-next li { padding: 6px 10px; border-radius: 8px; background: #2f4456; } .wm-next li span { color: #ffe08a; margin-right: 8px; font-variant-numeric: tabular-nums; }
.wm-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.wm-game { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; border: 1px solid #4a6378; background: #2c4152; color: #f2f6fa; font-size: 12.5px; cursor: pointer; text-align: center; }
.wm-game span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wm-game b { font-size: 15px; font-variant-numeric: tabular-nums; }
.wm-game em { font-style: normal; font-weight: 800; padding: 1px 7px; border-radius: 6px; } .wm-game.win em { background: #2e7d4f; } .wm-game.draw em { background: #5b6470; } .wm-game.loss em { background: #8a3b3b; }
.wm-last summary, .wm-more summary { cursor: pointer; font-size: 13.5px; color: var(--sub); padding: 4px 0; }
.wm-last ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: 13px; } .wm-last b { font-variant-numeric: tabular-nums; margin: 0 4px; }
.wm-more { display: grid; gap: 8px; border-top: 1px solid #4a6378; padding-top: 6px; }
@media (max-width: 560px) { #modal .box.world-box { padding: 10px; width: 100%; max-width: 100%; max-height: 84vh; border-radius: 12px; }   /* 2026-12-02 위아래에 바깥(어두운 곳)을 남겨 누르면 닫히게 */ .wm-map { aspect-ratio: 4 / 3; } .wm-head h2 { font-size: 19px; } }
/* 🎨 땅 색칠(2026-12-02 「점령은 색깔놀이」): 연한 색 = 수비대 · 진한 색 = 차지한 학교 · 금색 = 동주중 */
.wm-area { cursor: pointer; stroke: #ffffff; fill-opacity: .9; transition: fill-opacity .15s; }
.wm-area:hover { fill-opacity: 1; }
.wm-area.owned { fill-opacity: .82; stroke: #1a2530; }
.wm-area.ours-own { fill-opacity: .95; stroke: #8a5a00; }
.wm-area.contest { stroke: #e0a100; }
.wm-area.mine { stroke: #1a2530; }
.wm-area.sel { stroke: #1a2530; fill-opacity: 1; }
.wm-legend i.pastel { background: linear-gradient(90deg, #e8c9a0, #c9d7f2, #cde6cf); }

/* ↕ 합성 정렬(2026-12-02) */
.fuse-sort { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; } .fuse-sort button { padding: 4px 12px; font-size: 13px; border-radius: 999px; } .fuse-sort button.on { outline: 2px solid #7ef0c4; background: #1d3a2e; }

/* 🌍 세계 정복전 참가 팝업(2026-12-02) */
.world-pop { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; } .world-pop .wp-ic { font-size: 54px; line-height: 1; }
.world-pop h2 { margin: 0; font-size: 20px; line-height: 1.35; } .world-pop h2 b { color: #f2c14e; font-size: 24px; } .world-pop p { margin: 0; line-height: 1.6; max-width: 440px; }
.world-pop .wp-n { padding: 6px 12px; border-radius: 999px; background: #f2c14e22; } .world-pop .wp-btns { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 340px; } .world-pop .wp-btns button { padding: 12px; font-size: 16px; } .world-pop .wp-later { background: transparent; border-color: transparent; color: #9aa6b8; font-size: 14px; padding: 6px; }

/* 📈 참가하면 무조건 이득(2026-12-02 선생님 「이길수록 점수 · 져도 감점 없음」) */
.we-gain { margin: 0; padding: 8px 12px; border-radius: 10px; text-align: center; font-size: 14.5px; line-height: 1.55; background: #1d3a28; border: 1px solid #7be39b55; color: #d6ffd9; } .we-gain b { color: #9dff8a; }
.world-pop .wp-gain { padding: 8px 12px; border-radius: 10px; background: #1d3a28; border: 1px solid #7be39b55; color: #d6ffd9; } .world-pop .wp-gain b { color: #9dff8a; }
.we-team small { display: inline-block; margin-top: 3px; color: #b8e6c0; font-size: 12.5px; }   /* 🤝 팀전 · 모두에게 매일 혜택(2026-12-02) */
.we-team .we-yes, .we-team .we-no { display: block; margin-top: 5px; font-size: 14px; } .we-team .we-yes { color: #c9ffcf; } .we-team .we-no { color: #ffd0c8; } .we-team .we-no b { color: #ffb4a8; } .we-team .we-yes + .we-no + small { margin-top: 6px; }   /* ✅❌ 친구가 차지해도 혜택 · 참가 안 하면 지역팩 없음(2026-12-02) */

/* ⚔️ 전투력 안내(2026-12-02 전투력 v2) */
button.lobby-pow { cursor: pointer; font-family: inherit; line-height: inherit; } .lobby-pow small { opacity: .7; font-size: 12px; }
.pow-help { display: grid; gap: 10px; max-width: 520px; } .pow-help h2 { margin: 0; } .pow-help .ph-me { margin: 0; font-size: 16px; } .pow-help .ph-me b { color: #ffe39a; font-size: 20px; }
.pow-help .ph-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; line-height: 1.5; } .pow-help .ph-luck { margin: 0; padding: 10px 12px; border-radius: 10px; background: #2c3b2a; color: #e2f6d8; line-height: 1.55; }
.sm-bench { margin: 6px 0; padding: 8px 12px; border-radius: 10px; background: #22323f; line-height: 1.5; } .sm-bench small { display: block; color: var(--sub); font-size: 12px; }   /* 🪑 똑똑한 선발 후보(2026-12-02) */

/* 🗂📋 계승 창 덱에서 빼기 · 카드 자세히(2026-12-02) */
.iw-release { margin-left: 6px; padding: 3px 10px; font-size: 13px; border-radius: 8px; background: #3a2a14; border: 1px solid #f2c14e88; color: #ffe39a; }
.iw-info { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 8px 0 4px; padding: 8px 10px; border-radius: 10px; background: #1b2a30; font-size: 13px; line-height: 1.5; } .iw-info dt { color: var(--sub); white-space: nowrap; } .iw-info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pf-season { position: absolute; top: 4%; left: 50%; transform: translateX(-50%); z-index: 5; padding: 1px 8px; border-radius: 999px; background: #f2c14e; color: #2a1d00; font-size: 4.2cqw; font-weight: 900; white-space: nowrap; box-shadow: 0 0 10px #f2c14e99; }   /* ⭐ 라운드 선수 띠(2026-12-02) */

/* ✨ 신화 보정(2026-12-03) */
.mboost h2 { margin: 0 0 6px; }
.mboost-t { width: 100%; border-collapse: collapse; margin: 8px 0; }
.mboost-t th, .mboost-t td { padding: 6px 8px; border-bottom: 1px solid #ffffff1f; text-align: center; }
.mboost-t td:first-child { text-align: left; font-weight: 700; }
.mboost-t input { width: 20px; height: 20px; }
.mboost-sum { font-weight: 800; color: #f2c14e; }
#cd-mboost { margin-left: 6px; }
