/* 판타지 팩 · 전광판 (0.5.1 미리보기) */
.pk-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pk-head h2 { margin: 0; } .pk-head h2 small { font-size: 12px; color: var(--muted); font-weight: 400; }
.pk-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.pk-coins { font-family: var(--f-ui); font-size: 22px; color: var(--gold-2); white-space: nowrap; }
.pk-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 12px 0; }
.pk-pack { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; align-items: stretch; transition: transform .15s, border-color .15s; }
.pk-pack:hover { transform: translateY(-3px); border-color: var(--gold); }
.pk-box, .pk-big-pack { --a: #6b4a2a; --b: #3a2614; border-radius: 8px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 8px 18px #0008; font-family: var(--f-ui); font-weight: 700; font-size: 18px; text-shadow: 0 2px 4px #000a; }
.pk-box small { font-weight: 400; font-size: 12px; opacity: .8; }
.p-silver .pk-box, .pk-big-pack.p-silver { --a: #a9b3c2; --b: #4d5563; }
.p-gold .pk-box, .pk-big-pack.p-gold { --a: #e6c35c; --b: #7a5a14; }
.p-premium .pk-box, .pk-big-pack.p-premium { --a: #f5d676; --b: #2a1f05; box-shadow: inset 0 0 0 2px #f0d58a, 0 0 18px #c8a24a66; }
.p-icon .pk-box, .pk-big-pack.p-icon { --a: #fff1c2; --b: #9a6b14; color: #2a1c03; text-shadow: 0 1px 0 #fff6; box-shadow: inset 0 0 0 2px #fff1c2, 0 0 24px #f0d58a88; }
.pk-odds { display: flex; flex-wrap: wrap; gap: 4px; font-size: 11px; }
.pk-odds span { padding: 1px 6px; border-radius: 3px; background: var(--panel-2); color: var(--muted); }
.pk-odds .t-gold { color: #f0d58a; } .pk-odds .t-elite { color: #c08cff; } .pk-odds .t-icon { color: #ffd773; } .pk-odds .t-silver { color: #c9d1dc; }
.pk-price { font-family: var(--f-ui); color: var(--gold-2); }
/* 카드 */
.pk-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pk-card { --c1: #8a5a33; --c2: #3b2414; --tx: #fff3e6; position: relative; width: 170px; height: 240px; border-radius: 14px 14px 40px 40px / 14px 14px 26px 26px; padding: 12px;
  background: linear-gradient(160deg, var(--c1), var(--c2)); color: var(--tx); box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), 0 10px 22px #000a; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.pk-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 45%, transparent 60%); transform: translateX(-120%); }
.pk-card.in::after { animation: pkShine 1.4s .3s ease-out; }
.pk-card.t-silver { --c1: #dfe5ee; --c2: #6c7686; --tx: #141a24; }
.pk-card.t-gold { --c1: #f6dc85; --c2: #9a7420; --tx: #2a1d03; }
.pk-card.t-elite { --c1: #2a1846; --c2: #0b0614; --tx: #f3e6ff; box-shadow: inset 0 0 0 2px #c08cff, 0 0 20px #8a4dff66, 0 10px 22px #000a; }
.pk-card.t-icon { --c1: #fff2c4; --c2: #b98a2c; --tx: #2a1c03; box-shadow: inset 0 0 0 2px #fff1c2, 0 0 28px #f0d58a99, 0 10px 22px #000a; }
.pk-card.art { background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(20,13,2,.92) 78%), var(--art) center 20% / cover, linear-gradient(160deg, var(--c1), var(--c2)); --tx: #fff6dc; }
.pk-card.art::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px #f0d58a, inset 0 0 30px rgba(240,213,138,.35); pointer-events: none; }
.pk-card.art .pk-ovr b, .pk-card.art .pk-name { text-shadow: 0 2px 6px #000c; }
.pk-card.art .pk-art { visibility: hidden; }
.pk-card.art .pk-name { border-top-color: #f0d58a; }
.pk-card.art .pk-ictag { background: #f0d58a; color: #2a1c03; }
.pk-ovr { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; align-items: center; font-family: var(--f-ui); line-height: 1; z-index: 1; }
.pk-ovr b { font-size: 34px; } .pk-ovr span { font-size: 12px; font-weight: 700; margin-top: 2px; }
.pk-art { width: 112px; height: 112px; margin: 18px 0 0 34px; display: flex; align-items: flex-end; justify-content: center; }
.pk-art img { max-width: 112px; max-height: 112px; object-fit: contain; filter: drop-shadow(0 4px 6px #0007); }
.pk-art i { font-style: normal; font-family: var(--f-title); font-size: 56px; opacity: .5; }
.pk-name { font-family: var(--f-ui); font-weight: 700; font-size: 20px; margin-top: 8px; border-top: 1px solid currentColor; padding-top: 4px; width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-meta { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 6px; font-size: 12px; font-weight: 700; }
.pk-flag { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; }
.pk-meta .team-logo img { width: 20px; height: 20px; }
.pk-ictag { padding: 0 6px; border-radius: 3px; background: #10172a; color: #fff; font-size: 10px; letter-spacing: .1em; }
.pk-card.sm { transform: scale(.82); margin: -20px -14px; }
.pk-card.big { transform: scale(1.5); }
/* 무대 */
.pk-stage { position: fixed; inset: 0; z-index: 9000; background: radial-gradient(ellipse at 50% 60%, #121a2e, #03050a 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; user-select: none; cursor: pointer; --fc: #f0d58a; }
.pk-stage.f-elite { --fc: #b67dff; } .pk-stage.f-icon { --fc: #ffd773; } .pk-stage.f-gold { --fc: #f0d58a; }
.pk-scene { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.pk-big-pack { width: 210px; height: 300px; font-size: 22px; }
.pk-big-pack.shake { animation: pkShake .5s ease-in-out infinite; }
.pk-tap { position: absolute; bottom: 14%; color: var(--muted); font-size: 13px; animation: pkBlink 1.4s infinite; }
.pk-flare { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: var(--fc); box-shadow: 0 0 80px 40px var(--fc); animation: pkFlare 1.2s ease-out forwards; }
.pk-beams { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.pk-beams i { position: absolute; bottom: -10%; width: 70px; height: 130%; background: linear-gradient(to top, var(--fc), transparent 75%); opacity: .18; transform-origin: 50% 100%; filter: blur(6px); animation: pkBeam 3s ease-in-out infinite alternate; }
.pk-beams i:nth-child(1) { transform: rotate(-40deg); } .pk-beams i:nth-child(2) { transform: rotate(-30deg); animation-delay: .3s; } .pk-beams i:nth-child(3) { transform: rotate(-20deg); animation-delay: .6s; }
.pk-beams i:nth-child(4) { transform: rotate(-10deg); animation-delay: .9s; } .pk-beams i:nth-child(5) { transform: rotate(0); } .pk-beams i:nth-child(6) { transform: rotate(10deg); animation-delay: .9s; }
.pk-beams i:nth-child(7) { transform: rotate(20deg); animation-delay: .6s; } .pk-beams i:nth-child(8) { transform: rotate(30deg); animation-delay: .3s; } .pk-beams i:nth-child(9) { transform: rotate(40deg); }
.pk-board { position: relative; padding: 26px 60px; min-width: 340px; border-top: 2px solid var(--fc); border-bottom: 2px solid var(--fc); background: linear-gradient(90deg, transparent, rgba(0,0,0,.7) 15%, rgba(0,0,0,.7) 85%, transparent); text-align: center; }
.pk-step { display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--f-ui); color: #fff; }
.pk-step.in { animation: pkIn .7s cubic-bezier(.2, 1.4, .4, 1); }
.pk-step b { font-size: 44px; letter-spacing: .06em; text-shadow: 0 0 18px var(--fc); }
.pk-step small { font-size: 16px; color: var(--fc); letter-spacing: .2em; }
.pk-bflag { width: 160px; height: 107px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 30px var(--fc); }
.pk-step .pos-ic, .pk-step img.pos { width: 64px; height: 64px; }
.pk-role { font-size: 64px !important; }
.pk-step .pk-logo, .pk-step .pk-logo img { width: 110px; height: 110px; }
.pk-step .team-badge.pk-logo { display: flex; align-items: center; justify-content: center; font-size: 28px; }
.pk-lgbig { font-size: 72px !important; }
.pk-ic { padding: 2px 12px; background: #f0d58a; color: #2a1c03 !important; border-radius: 4px; font-weight: 700; }
.pk-reveal .pk-card.big.in { animation: pkCard .9s cubic-bezier(.2, 1.2, .4, 1); }
.pk-rest { text-align: center; max-width: 960px; padding: 20px; }
.pk-rest h3 { color: var(--gold-2); }
.pk-rest .pk-card.in { animation: pkPop .45s both; }
.pk-rest .d1 { animation-delay: .08s !important; } .pk-rest .d2 { animation-delay: .16s !important; } .pk-rest .d3 { animation-delay: .24s !important; } .pk-rest .d4 { animation-delay: .32s !important; }
.pk-rest .d5 { animation-delay: .4s !important; } .pk-rest .d6 { animation-delay: .48s !important; } .pk-rest .d7 { animation-delay: .56s !important; } .pk-rest .d8 { animation-delay: .64s !important; } .pk-rest .d9 { animation-delay: .72s !important; }
.pk-ctl { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.pk-ctl button { font: inherit; padding: 8px 16px; border-radius: 6px; border: 1px solid var(--line); background: #0f1626cc; color: var(--text); cursor: pointer; }
.pk-ctl .pk-close { border-color: var(--gold); color: var(--gold-2); }
@keyframes pkShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg) translateY(-2px); } 75% { transform: rotate(3deg) translateY(-2px); } }
@keyframes pkBlink { 50% { opacity: .3; } }
@keyframes pkFlare { 0% { transform: scale(.2); opacity: 1; } 60% { transform: scale(3); opacity: 1; } 100% { transform: scale(8); opacity: .0; } }
@keyframes pkBeam { to { opacity: .32; } }
@keyframes pkIn { from { transform: scale(2.4); opacity: 0; filter: blur(8px); } to { transform: scale(1); opacity: 1; filter: none; } }
@keyframes pkCard { from { transform: scale(.4) rotateY(180deg); opacity: 0; } to { transform: scale(1.5) rotateY(0); opacity: 1; } }
@keyframes pkPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(.82); opacity: 1; } }
@keyframes pkShine { to { transform: translateX(120%); } }
@media (max-width: 640px) { .pk-board { min-width: 0; width: 90%; padding: 20px; } .pk-step b { font-size: 32px; } .pk-card.big { transform: scale(1.2); } .pk-reveal .pk-card.big.in { animation-name: pkCardS; } .pk-head { flex-direction: column; align-items: flex-start; } }
@keyframes pkCardS { from { transform: scale(.4) rotateY(180deg); opacity: 0; } to { transform: scale(1.2) rotateY(0); opacity: 1; } }
.pk-box em { font-style: normal; font-size: 11px; font-weight: 500; opacity: .75; }
.pk-yy { font-size: 13px; margin-right: 4px; opacity: .8; }
.pk-trait { font-size: 11px; font-weight: 700; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: rgba(0,0,0,.25); }
.pk-ovr sup { font-size: 12px; opacity: .6; }
/* ICON 프로필 */
.ip-stage { position: fixed; inset: 0; z-index: 9100; background: radial-gradient(ellipse at 30% 40%, #2b2110 0%, #070604 70%); display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.ip-box { position: relative; width: min(1100px, 100%); display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 36px; align-items: center; padding: 36px 40px 48px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(240,213,138,.1), rgba(255,255,255,.015)); border: 1px solid rgba(240,213,138,.4); box-shadow: 0 0 60px rgba(240,213,138,.08), 0 30px 80px #000c; }
.ip-box::before { content: ''; position: absolute; inset: 0; border-radius: 18px; pointer-events: none; background: radial-gradient(circle at 18% 30%, rgba(240,213,138,.18), transparent 45%); }
.ip-left { display: flex; flex-direction: column; align-items: center; gap: 120px; padding-top: 60px; }
.pk-card.big2 { transform: scale(1.65); }
.pk-card.big2.in { animation: ipCard 1s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes ipCard { from { transform: scale(.6) rotateY(90deg); opacity: 0; } to { transform: scale(1.65); opacity: 1; } }
.ip-tag { margin: 0; color: #cfd6e6; font-size: 13px; letter-spacing: .3em; }
.ip-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 14px; }
.ip-icon { display: inline-block; padding: 2px 10px; background: linear-gradient(90deg, #f0d58a, #c8a24a); color: #2a1c03; font-weight: 800; letter-spacing: .25em; font-size: 12px; border-radius: 3px; margin-right: 8px; }
.ip-lg { color: #cfd6e6; font-size: 13px; letter-spacing: .15em; }
.ip-head h2 { margin: 6px 0 4px; font-family: var(--f-ui); font-size: 54px; line-height: 1; color: #fff; text-shadow: 0 0 24px rgba(240,213,138,.35); }
.ip-head p { margin: 0; display: flex; align-items: center; gap: 8px; color: #cfd6e6; }
.ip-head p img { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; }
.ip-ovr { text-align: center; font-family: var(--f-ui); line-height: .9; }
.ip-ovr b { display: block; font-size: 84px; background: linear-gradient(180deg, #fff6d8, #f0d58a 50%, #b98a2c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(240,213,138,.45)); }
.ip-ovr small { letter-spacing: .4em; color: #cfd6e6; }
.ip-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 16px; }
.ip-grp h4, .ip-h { margin: 0 0 6px; font-size: 12px; color: var(--gold-2); letter-spacing: .1em; }
.ip-grp h4 small { color: #fff; font-weight: 700; margin-left: 4px; }
.ip-attr { display: grid; grid-template-columns: 92px minmax(0, 1fr) 46px; align-items: center; gap: 8px; font-size: 13px; padding: 2px 0; color: #dfe5f0; }
.ip-attr i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.ip-attr i b { display: block; height: 100%; background: linear-gradient(90deg, #b98a2c, #fff1c2); border-radius: 3px; }
.ip-attr.up i b { background: linear-gradient(90deg, #c8a24a, #fff1c2); box-shadow: 0 0 8px #f0d58a; }
.ip-attr em { font-style: normal; font-family: var(--f-ui); font-weight: 700; text-align: right; }
.ip-attr em small { color: var(--gold-2); font-size: 10px; margin-left: 2px; }
.ip-h { margin-top: 18px; }
.ip-traits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ip-tr { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: rgba(240,213,138,.06); border: 1px solid rgba(240,213,138,.22); }
.ip-tr > span { font-size: 22px; line-height: 1; }
.ip-tr b { color: #fff; } .ip-tr p { margin: 3px 0 0; font-size: 12px; color: #b8c2d6; }
.ip-tr.ex { border-color: #f0d58a88; background: linear-gradient(135deg, rgba(240,213,138,.16), rgba(255,255,255,.04)); }
.ip-tr.ex > span { color: var(--gold-2); }
.ip-tr i { font-style: normal; font-size: 10px; padding: 1px 6px; margin-left: 4px; border-radius: 3px; background: var(--gold-2); color: #1a1406; vertical-align: 2px; }
.ip-champs { display: flex; gap: 12px; }
.ip-champs div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: #b8c2d6; }
.ip-champs .sq-ic { width: 44px; height: 44px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); }
.ip-close { font: inherit; padding: 6px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; cursor: pointer; }
.ip-foot { position: absolute; bottom: 12px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #7f8aa3; letter-spacing: .1em; }
.pk-card.xs { transform: scale(.62); margin: -46px -32px; cursor: pointer; }
.pk-iclg { display: flex; align-items: center; gap: 12px; } .pk-iclg > b { width: 40px; font-family: var(--f-ui); color: var(--gold-2); } .pk-iclg .pk-grid { justify-content: flex-start; padding: 8px 0; }
@media (max-width: 860px) { .ip-box { grid-template-columns: 1fr; padding: 28px 18px 40px; } .ip-left { padding-top: 40px; gap: 60px; } .pk-card.big2 { transform: scale(1.3); } .ip-attrs, .ip-traits { grid-template-columns: 1fr; } .ip-head h2 { font-size: 40px; } .ip-ovr b { font-size: 64px; } }
/* 카드 뒤집기 */
.ip-flip { perspective: 1200px; cursor: pointer; }
.ip-in { position: relative; width: 170px; height: 240px; transition: transform .8s cubic-bezier(.3, 1.3, .4, 1); transform-style: preserve-3d; }
.ip-flip.flip .ip-in { transform: rotateY(180deg); }
.ip-front, .ip-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; justify-content: center; }
.ip-back { transform: rotateY(180deg); }
.ip-bk { width: 170px; height: 240px; transform: scale(1.65); transform-origin: 50% 50%; box-sizing: border-box; padding: 12px 12px 18px; border-radius: 14px 14px 40px 40px / 14px 14px 26px 26px; overflow: hidden;
  background: linear-gradient(160deg, #3a2a0b, #140e03); box-shadow: inset 0 0 0 2px #f0d58a, 0 0 28px #f0d58a66; color: #f6ead0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ip-bk .ip-icon { font-size: 7px; padding: 1px 6px; margin: 0; }
.ip-bk h3 { margin: 2px 0 0; font-family: var(--f-ui); font-size: 18px; color: #fff1c2; }
.ip-bk small { font-size: 7px; color: #cdb98a; letter-spacing: .1em; }
.ip-desc { margin: 4px 0 2px; font-size: 6.5px; line-height: 1.45; color: #e8d6a8; border-bottom: 1px solid #f0d58a55; padding-bottom: 4px; }
.ip-bio { margin: 0; font-size: 6.5px; line-height: 1.55; text-align: left; color: #f6ead0; }
