/* 판타지 모드 시작 (미리보기) */
.fz-stage { position: fixed; inset: 0; z-index: 8500; display: flex; flex-direction: column; color: var(--text); overflow: hidden;
  background: radial-gradient(ellipse at 20% -10%, #3a2a6a66, transparent 55%), radial-gradient(ellipse at 90% 110%, #6b4a1266, transparent 55%), linear-gradient(160deg, #0b0f1d, #05070d); }
.fz-top { display: flex; align-items: center; gap: 20px; padding: 14px 24px; border-bottom: 1px solid #ffffff14; }
.fz-brand { display: flex; align-items: baseline; gap: 10px; } .fz-brand b { font-family: var(--f-ui); font-size: 24px; letter-spacing: .24em; background: linear-gradient(90deg, #d3aaff, #f0d58a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fz-brand span { color: var(--muted); font-size: 13px; } .fz-brand small { font-size: 11px; }
.fz-steps { display: flex; gap: 18px; margin: 0 auto; } .fz-steps span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.fz-steps i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #ffffff33; font-size: 11px; }
.fz-steps .on { color: #fff; } .fz-steps .on i { background: #f0d58a; color: #2a1c03; border-color: #f0d58a; } .fz-steps .done i { background: #ffffff22; }
.fz-x { font: inherit; font-size: 12px; padding: 5px 14px; background: transparent; color: var(--text); border: 1px solid #ffffff33; border-radius: 6px; cursor: pointer; }
.fz-body { flex: 1; overflow: auto; padding: 20px 24px; }
/* 1) 팀 선택 */
.fz-pick { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 20px; max-width: 1400px; margin: 0 auto; }
@media (max-width: 900px) { .fz-pick { grid-template-columns: 1fr; } .fz-steps { display: none; } }
.fz-lgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.fz-lgs button { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; background: #ffffff08; border: 1px solid #ffffff1a; border-radius: 10px; color: var(--text); cursor: pointer; }
.fz-lgs button.on { border-color: #f0d58a; background: #f0d58a14; } .fz-lgs .lg-logo { height: 40px; width: 64px; } .fz-lgs span { font-family: var(--f-ui); font-weight: 700; } .fz-lgs small { font-size: 11px; color: var(--muted); }
.fz-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.fz-teams button { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, #0d1220), #0a0e18); border: 1px solid #ffffff14; border-radius: 10px; color: var(--text); cursor: pointer; transition: transform .15s, border-color .15s; }
.fz-teams button:hover { transform: translateY(-2px); } .fz-teams button.on { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 18px color-mix(in srgb, var(--c) 40%, transparent); }
.fz-teams small { font-size: 10px; color: var(--muted); text-align: center; line-height: 1.2; }
.fz-tlogo, .fz-tlogo img { width: 48px; height: 48px; } .fz-biglogo, .fz-biglogo img { width: 84px; height: 84px; }
.team-badge.fz-tlogo, .team-badge.fz-biglogo { display: grid; place-items: center; font-weight: 700; }
.fz-detail { background: #ffffff06; border: 1px solid #ffffff14; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 420px; }
.fz-empty { margin: auto; text-align: center; max-width: 380px; color: var(--muted); font-size: 13px; line-height: 1.7; } .fz-empty > b { display: block; font-size: 18px; color: var(--text); margin-bottom: 8px; }
.fz-th { display: flex; gap: 16px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #ffffff14; } .fz-th h2 { margin: 2px 0; } .fz-th small { color: var(--c); font-weight: 700; letter-spacing: .1em; } .fz-th p { margin: 0; font-size: 12px; color: var(--muted); } .fz-th p b { color: #f0d58a; }
.fz-detail h4 { margin: 6px 0 0; font-size: 13px; } .fz-detail h4 small { color: var(--muted); font-weight: 400; }
.fz-leave { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; overflow: auto; max-height: 46vh; }
.fz-leave div { display: grid; grid-template-columns: 34px 1fr 26px 14px 20px 44px; align-items: center; gap: 6px; font-size: 12px; padding: 4px 6px; background: #ffffff08; border-radius: 5px; }
.fz-leave .fz-r { font-size: 10px; color: var(--muted); } .fz-leave em { font-style: normal; font-family: var(--f-ui); color: var(--muted); } .fz-leave i { font-style: normal; color: var(--muted); } .fz-leave small { color: var(--muted); }
.fz-leave .team-logo img, .fz-leave .team-badge { width: 18px; height: 18px; }
.fz-go { font: inherit; font-weight: 700; font-size: 15px; margin-top: auto; padding: 12px; border: 0; border-radius: 8px; cursor: pointer; color: #2a1c03; background: linear-gradient(90deg, #f0d58a, #c8a24a); box-shadow: 0 6px 20px #c8a24a44; }
.fz-go:hover { filter: brightness(1.08); }
/* 2) 창단 */
.fz-build { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.fz-bh { display: flex; align-items: center; gap: 14px; } .fz-bh h2 { margin: 0; } .fz-bh p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.fz-all { margin-left: auto; font: inherit; font-size: 13px; padding: 8px 14px; background: #ffffff10; color: var(--text); border: 1px solid #ffffff2a; border-radius: 6px; cursor: pointer; }
.fz-slots { display: flex; gap: 14px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.fz-sep { width: 1px; align-self: stretch; background: #ffffff1a; margin: 0 6px; }
.fz-slot { width: 150px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fz-slot .pk-card.sm { margin: -20px -14px; }
.fz-ph { width: 140px; height: 198px; border: 2px dashed #ffffff26; border-radius: 12px 12px 34px 34px / 12px 12px 22px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; }
.fz-ph svg { width: 40px; height: 40px; opacity: .6; } .fz-ph b { font-family: var(--f-ui); letter-spacing: .1em; }
.fz-slot > button { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; color: #f0d58a; cursor: pointer; font-size: 12px; font-weight: 700; }
.fz-slot > button:hover .pk-box { transform: translateY(-3px); }
.pk-box.mini { width: 96px; height: 70px; gap: 2px; transition: transform .15s; } .pk-box.mini .pk-tag, .pk-box.mini .pk-n, .pk-box.mini .pk-bn small { display: none; }
.pk-box.mini .pk-em { width: 30px; height: 30px; font-size: 8px; border-width: 1px; } .pk-box.mini .pk-em svg { width: 18px; height: 18px; } .pk-box.mini .pk-bn { font-size: 10px; }
.pk-box.mini::before, .pk-box.mini::after { height: 6px; }
.fz-sum { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 12px; background: linear-gradient(90deg, #f0d58a14, #8a4dff14); border: 1px solid #f0d58a44; animation: pkIn .6s ease-out; }
.fz-sum > div { display: flex; flex-direction: column; } .fz-sum small { color: var(--muted); font-size: 11px; } .fz-sum b { font-family: var(--f-ui); font-size: 22px; } .fz-sum em { font-style: normal; color: var(--muted); font-size: 12px; }
.fz-sum .fz-go { margin: 0; padding: 12px 26px; }
@media (max-width: 900px) { .fz-sum { grid-template-columns: 1fr 1fr; } .fz-leave { grid-template-columns: 1fr; } }
.main-menu [data-action="fantasy"] b small { font-size: 11px; font-weight: 400; opacity: .7; }

/* ---------- 판타지 본편: 내 카드 ---------- */
.fz-name { display: flex; flex-direction: column; gap: 4px; } .fz-name small { color: var(--muted); font-size: 12px; }
.fz-name input { font: inherit; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); background: #0b1020; color: var(--text); min-width: 160px; }
.fc-page { display: flex; flex-direction: column; gap: 14px; }
.fc-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .fc-head > div:nth-child(2) { flex: 1; min-width: 200px; } .fc-head h2 { margin: 0; } .fc-head p { margin: 4px 0 0; color: var(--muted); }
.fc-head .fz-tlogo, .fc-head .fz-tlogo img { width: 48px; height: 48px; }
.fc-line { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.fc-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; } .fc-slot > b { font-size: 12px; color: var(--muted); }
.fc-slot .fz-ph { width: 136px; height: 192px; border: 2px dashed #ffffff26; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); }
.fc-grid > div { cursor: pointer; border-radius: 12px; transition: transform .12s; } .fc-grid > div:hover { transform: translateY(-3px); }
.fc-grid > .fc-on { outline: 2px solid var(--gold); outline-offset: 2px; } .fc-grid > .fc-sel, .fc-line .fc-sel { outline: 2px solid #8ec0ff; outline-offset: 2px; }
.fc-detail { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; } .fc-detail h3 { margin: 0 0 6px; } .fc-detail p { margin: 0 0 10px; color: var(--muted); }
.fc-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .fc-acts button { font: inherit; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; }
.fc-acts .btn-primary { background: var(--gold); color: #1a1205; border-color: var(--gold); }
.fz-fa { padding: 1px 6px; border-radius: 3px; background: #ffffff14; color: var(--muted); font-weight: 700; }
.fz-slot.fz-staff3 { flex-direction: row !important; align-items: center; gap: 4px; width: auto !important; min-width: 0; } .fz-staff3 .pk-card.xs { margin: -46px -31px; }

/* ---------- 강화 (+1~+10) ---------- */
.pk-card .pk-lv { display: block; min-width: 1.7em; text-align: center; box-sizing: border-box; margin-top: 5px; font-style: normal; font-weight: 900; font-size: 15px; line-height: 1; padding: 3px 8px 4px; border-radius: 5px; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .45); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.pk-card .pk-lv.l1 { background: linear-gradient(180deg, #c98a55, #7a4a26); }
.pk-card .pk-lv.l2 { background: linear-gradient(180deg, #dfe6f0, #8792a6); color: #1a2030; text-shadow: none; }
.pk-card .pk-lv.l3 { background: linear-gradient(180deg, #ffe58a, #c48a12); color: #2a1d00; text-shadow: none; box-shadow: 0 0 14px rgba(255, 200, 60, .8); }
.pk-card.sm .pk-lv { font-size: 12px; padding: 2px 6px 3px; margin-top: 4px; } .pk-card.xs .pk-lv { font-size: 9px; padding: 1px 4px 2px; margin-top: 3px; }
.ug-stage { position: fixed; inset: 0; z-index: 9000; background: rgba(6, 8, 14, .86); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ug-box { width: min(860px, 100%); max-height: 100%; overflow: auto; background: linear-gradient(160deg, #1b2233, #10141f); border: 1px solid #3a4560; border-radius: 14px; padding: 16px 18px; color: #e8ecf5; }
.ug-top { display: flex; justify-content: space-between; align-items: center; }
.ug-top h3 { margin: 0; }
.ug-x { background: #2a3248; color: #fff; border: 0; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.ug-main { display: flex; gap: 22px; align-items: center; margin: 12px 0 8px; flex-wrap: wrap; }
.ug-card { position: relative; flex: none; }
.ug-card.spin .pk-card { animation: ug-spin 1.4s ease-in-out; }
@keyframes ug-spin { 0% { transform: scale(1); filter: brightness(1); } 40% { transform: scale(1.06) rotateY(180deg); filter: brightness(1.6); } 100% { transform: scale(1) rotateY(360deg); filter: brightness(1); } }
.ug-card.ok .pk-card { box-shadow: 0 0 0 3px #ffd76a, 0 0 40px rgba(255, 200, 80, .7); }
.ug-card.no .pk-card { animation: ug-crack .6s ease-out; filter: grayscale(.5) brightness(.75); }
@keyframes ug-crack { 0%, 100% { transform: translate(0); } 15% { transform: translate(-10px, 4px) rotate(-3deg); } 30% { transform: translate(9px, -5px) rotate(3deg); } 45% { transform: translate(-7px, 3px) rotate(-2deg); } 60% { transform: translate(5px, -2px); } 80% { transform: translate(-2px, 1px); } }
.ug-boom { position: absolute; inset: -30%; z-index: 4; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgba(255, 245, 220, .95) 0, rgba(255, 120, 40, .8) 22%, rgba(200, 30, 20, .45) 45%, transparent 68%); animation: ug-boom .7s ease-out forwards; }
@keyframes ug-boom { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.ug-res { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); white-space: nowrap; padding: 4px 12px; border-radius: 99px; font-size: 15px; background: #ffd76a; color: #2a1d00; }
.ug-card.no .ug-res { background: #c0392b; color: #fff; z-index: 5; }
.ug-info { flex: 1; min-width: 240px; }
.ug-info p { margin: 6px 0; }
.ug-big { font-size: 22px; font-weight: 800; }
.ug-big b, .ug-info .up { color: #ffd76a; }
.ug-gauge { position: relative; height: 22px; background: #0b0f18; border: 1px solid #3a4560; border-radius: 99px; overflow: hidden; margin: 10px 0; }
.ug-gauge i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3b82f6, #ffd76a); transition: width .25s; }
.ug-gauge span { position: relative; display: block; text-align: center; font-size: 12px; line-height: 22px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.ug-p { font-size: 20px; color: #7cf0a0; }
.ug-note { font-size: 12px; color: #9aa5bd; }
.ug-go { margin-top: 8px; width: 100%; padding: 11px; border: 0; border-radius: 10px; font-weight: 800; font-size: 16px; background: linear-gradient(90deg, #f0b43c, #ffd76a); color: #2a1d00; cursor: pointer; }
.ug-go:disabled { opacity: .4; cursor: default; }
.ug-box h4 { margin: 14px 0 6px; }
.ug-box h4 small { color: #9aa5bd; font-weight: 400; }
.ug-pool { display: flex; flex-wrap: wrap; gap: 6px; }
.ug-pool > div { position: relative; cursor: pointer; border-radius: 8px; padding: 2px; border: 2px solid transparent; text-align: center; }
.ug-pool > div.on { border-color: #ffd76a; background: rgba(255, 215, 106, .12); }
.ug-pool > div small { display: block; font-size: 11px; color: #7cf0a0; font-weight: 700; }
@media (max-width: 600px) { .ug-main { justify-content: center; } }

/* 선수단 화면(판타지): 후보 · 코치 카드 */
.fz-bench { margin-top: 14px; padding: 14px 16px; }
.fz-bench .panel-title { margin: 4px 0 10px; } .fz-bench .panel-title small { font-weight: 400; opacity: .7; margin-left: 6px; }
.fz-bench .pk-grid + .panel-title { margin-top: 18px; }

/* 강화 보호권 */
.ug-prot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 2px; padding: 8px 10px; border-radius: 8px; background: rgba(124, 200, 255, .1); border: 1px solid rgba(124, 200, 255, .35); cursor: pointer; font-weight: 700; }
.ug-prot small { font-weight: 400; color: #9aa5bd; }
.ug-prot.off { opacity: .5; cursor: default; }
.ug-card.kept .pk-card { box-shadow: 0 0 0 3px #7cc8ff, 0 0 30px rgba(124, 200, 255, .6); }
.ug-card.kept .ug-res { background: #2b6cb0; color: #fff; }
.pk-coins small { font-size: .75em; opacity: .85; margin-left: 6px; }

/* ---------- 강화 연출 ---------- */
.ug-skipc { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: #c9d2e6; cursor: pointer; }
.ug-skipc small { color: #8390aa; }
.ug-last { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 215, 106, .1); border: 1px solid rgba(255, 215, 106, .4); font-size: 13px; }
.ug-last.no { background: rgba(255, 107, 91, .1); border-color: rgba(255, 107, 91, .45); }
.ug-last.kept { background: rgba(124, 200, 255, .1); border-color: rgba(124, 200, 255, .45); }
.ug-last > b { font-size: 15px; margin-right: 6px; }
.ug-last > span { color: #c9d2e6; }
.ug-last div { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ug-last i { font-style: normal; font-size: 11px; padding: 2px 7px; border-radius: 99px; background: #0b0f18; color: #9aa5bd; }
.ug-last i.up { color: #7cf0a0; } .ug-last i.dn { color: #ff8a7a; }

.ug-anim { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: safe center; padding: 24px 16px 70px; overflow: auto; background: radial-gradient(circle at 50% 38%, #1f2d4f 0, #0a0e18 62%, #05070c 100%); --r: clamp(120px, 34vw, 190px); }
.ua-sky { position: absolute; inset: 0; pointer-events: none; background: #fff; opacity: 0; }
.ua-core { position: relative; flex: none; display: grid; place-items: center; width: 240px; min-height: 300px; }
.ua-card { position: relative; z-index: 2; }
.ua-mat { position: absolute; left: 50%; top: 50%; z-index: 3; pointer-events: none; transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1)) scale(.85); }
.ug-anim.feed .ua-mat { animation: ua-feed .8s cubic-bezier(.55, 0, .9, .45) var(--d) forwards; }
@keyframes ua-feed { 60% { opacity: 1; filter: brightness(1.8); } 100% { transform: translate(-50%, -50%) rotate(var(--a)) translateX(0) rotate(calc(var(--a) * -1)) scale(.1); opacity: 0; filter: brightness(3); } }
.ua-ring { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; border: 3px solid rgba(255, 215, 106, .85); opacity: 0; pointer-events: none; }
.ug-anim.charge:not(.reveal) .ua-ring { animation: ua-ring .7s ease-out infinite; }
.ug-anim.charge:not(.reveal) .ua-ring.r2 { animation-delay: .35s; }
@keyframes ua-ring { 0% { transform: scale(1.5); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(.5); opacity: 0; } }
.ug-anim.charge:not(.reveal) .ua-card { animation: ua-charge 1.45s ease-in forwards; }
@keyframes ua-charge { 0% { transform: none; filter: brightness(1); } 25% { transform: translate(-2px, 1px) scale(1.02); } 45% { transform: translate(3px, -2px) scale(1.04) rotate(.6deg); filter: brightness(1.3); } 65% { transform: translate(-4px, 2px) scale(1.06) rotate(-.8deg); } 85% { transform: translate(5px, -3px) scale(1.08) rotate(1deg); filter: brightness(1.8); } 100% { transform: scale(1.1); filter: brightness(2.6) saturate(.4); } }
.ua-rays { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; opacity: 0; background: repeating-conic-gradient(rgba(255, 215, 106, .28) 0 8deg, transparent 8deg 22deg); -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%); }
.ug-anim.reveal.ok .ua-rays { animation: ua-rays 6s linear infinite, ua-in .4s ease-out forwards; }
@keyframes ua-rays { to { transform: rotate(360deg); } }
@keyframes ua-in { to { opacity: 1; } }
.ug-anim.reveal.ok .ua-sky { animation: ua-flash .7s ease-out; }
@keyframes ua-flash { 0% { opacity: .9; } 100% { opacity: 0; } }
.ug-anim.reveal .ua-card { animation: ua-pop .55s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes ua-pop { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
.ug-anim.reveal.ok .ua-card .pk-card { box-shadow: 0 0 0 3px #ffd76a, 0 0 50px rgba(255, 200, 80, .8); }
.ug-anim.reveal.no .ua-card { animation: ug-crack .6s ease-out; }
.ug-anim.reveal.no .ua-card .pk-card { filter: grayscale(.6) brightness(.7); }
.ug-anim.reveal.no { background: radial-gradient(circle at 50% 38%, #3a1616 0, #0e0808 62%, #050303 100%); }
.ug-anim.reveal.kept .ua-card .pk-card { box-shadow: 0 0 0 3px #7cc8ff, 0 0 40px rgba(124, 200, 255, .7); }
.ug-anim.reveal.kept .ua-ring { border-color: #7cc8ff; animation: ua-shield .8s ease-out; }
@keyframes ua-shield { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.ua-spark { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #ffe9a8; box-shadow: 0 0 10px #ffd76a; opacity: 0; pointer-events: none; z-index: 4; }
.ug-anim.reveal.ok .ua-spark { animation: ua-spark .9s ease-out forwards; }
@keyframes ua-spark { 0% { transform: rotate(var(--a)) translateX(0); opacity: 1; } 100% { transform: rotate(var(--a)) translateX(var(--l)) scale(.3); opacity: 0; } }
.ua-cap { position: relative; margin: 14px 0 8px; min-height: 30px; font-size: 22px; font-weight: 800; color: #e8ecf5; text-align: center; }
.ug-anim.ok .ua-cap { color: #ffd76a; text-shadow: 0 0 16px rgba(255, 200, 80, .6); }
.ug-anim.no .ua-cap { color: #ff6b5b; }
.ug-anim.kept .ua-cap { color: #7cc8ff; }
.ua-out { position: relative; width: min(420px, 100%); }
.ua-row { display: grid; grid-template-columns: 1fr 3.4em 1.2em 3.4em 3.8em; align-items: center; gap: 4px; padding: 4px 10px; font-size: 13px; border-radius: 6px; opacity: 0; animation: ua-row .3s ease-out calc(var(--i) * 55ms) forwards; }
.ua-row:nth-child(even) { background: rgba(255, 255, 255, .04); }
.ua-row b { text-align: right; font-variant-numeric: tabular-nums; }
.ua-row em { text-align: center; color: #6b7690; font-style: normal; }
.ua-row small { text-align: right; font-weight: 800; font-size: 13px; color: #9aa5bd; }
.ua-row small.up { color: #7cf0a0; } .ua-row small.dn { color: #ff6b5b; }
.ua-row.ovr { font-size: 16px; font-weight: 800; border-bottom: 1px solid #3a4560; border-radius: 0; margin-bottom: 4px; }
.ua-row.ovr small { font-size: 16px; }
.ua-none { text-align: center; color: #9aa5bd; font-size: 13px; }
@keyframes ua-row { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ug-anim.fast .ua-row { animation-duration: .15s; animation-delay: calc(var(--i) * 15ms); }
.ug-anim.fast .ua-mat { display: none; }
.ua-skip { position: fixed; right: 18px; bottom: 18px; z-index: 11; padding: 10px 18px; border: 1px solid #4a5675; border-radius: 99px; background: rgba(20, 26, 40, .9); color: #e8ecf5; font-weight: 700; cursor: pointer; }
.ug-anim.done .ua-skip { background: linear-gradient(90deg, #f0b43c, #ffd76a); color: #2a1d00; border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .ug-anim * { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }
.fz-adm { font-size: 11px; padding: 2px 7px; margin-right: 6px; border-radius: 99px; background: #c0392b; color: #fff; vertical-align: middle; }

/* 모바일 (1.0 전 점검) */
.fz-all { white-space: nowrap; }
@media (max-width: 640px) {
  .fz-bh { flex-wrap: wrap; align-items: flex-start; }
  .fz-bh > div { flex: 1; min-width: 0; }
  .fz-all { margin-left: 0; width: 100%; padding: 11px; }
}
/* 강화 재료 정렬 */
.ug-mh { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 14px 0 6px; }
.ug-mh h4 { margin: 0; }
.ug-sort { font: inherit; font-size: 13px; padding: 6px 8px; background: #0d1220; color: #e8ecf5; border: 1px solid #3a4560; border-radius: 6px; }
.ug-warn-i { color: #ffb020; margin-right: 3px; }
.ug-warn { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(5, 8, 16, .78); padding: 16px; }
.ug-warn > div { background: #141a2b; border: 1px solid #ffb020; border-radius: 10px; padding: 16px 18px; max-width: 420px; width: 100%; }
.ug-warn h4 { margin: 0 0 8px; color: #ffcf6a; }
.ug-warn label { display: block; margin: 10px 0; font-size: 13px; }
.ug-warn-b { display: flex; gap: 8px; justify-content: flex-end; }
.ug-warn-b button { font: inherit; padding: 8px 14px; border-radius: 6px; border: 1px solid #3a4560; background: #0d1220; color: #e8ecf5; cursor: pointer; }
