/* v3.0.2 프리미엄 상점 (js/shop_prem.js · 그림 js/art_shop.js) — 이름은 ps- 로 시작
   · 움직임은 .ps-anim.run 일 때만 (화면에 보이는 것만 · 창이 닫히면 멈춤) · transform / opacity 위주 (다시 칠하는 일이 적게)
   · 테두리 색 --tc = 값에 따른 장비 등급 색 (D.PSHOP.tier) */
.ps-nav { position: sticky; top: -10px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 8px 0 8px; margin: -6px 0 2px; background: linear-gradient(#221c2a 78%, rgba(34, 28, 42, 0)); }
.ps-chips { flex: 1 1 auto; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ps-chips::-webkit-scrollbar { display: none; }
.ps-chips button { flex: 0 0 auto; padding: 4px 11px; font-size: 0.82em; color: #f0e2c4; background: linear-gradient(#3a3050, #2a2238); border: 2px solid #0c0a14; box-shadow: inset 1px 1px 0 #5a4e78, inset -1px -1px 0 #1a1426; }
.ps-chips button.pc { color: #2a1406; background: linear-gradient(#ffe68a, #f7c83a 52%, #d8961e); box-shadow: inset 1px 1px 0 #fff6cc, inset -1px -1px 0 #a8601a; }
.ps-chips button:active, .ps-plus:active { transform: translateY(1px); }
/* v3.0.2 왕관석: 가진 왕관석 (위 줄 왼쪽 · 따라옴) · + = 충전 칸으로 */
.ps-bal { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; padding: 2px 2px 2px 6px; background: #140d1e; border: 2px solid #0c0a14; box-shadow: inset 0 0 0 1px #2a9ad8, inset 0 0 12px -5px #ff40c0, 0 2px 0 #0c0a14; }
.ps-bal img, .ps-buy.pc img, .pc-n img, .btn.pcb img { image-rendering: pixelated; image-rendering: crisp-edges; }
.ps-bal img { width: 1.25em; height: 1.25em; }
.ps-bal b { font-size: 0.95em; min-width: 1.4em; text-align: center; font-variant-numeric: tabular-nums; }
.ps-plus { width: 24px; height: 22px; padding: 0; font: inherit; font-size: 1.05em; line-height: 1; color: #2a1406; cursor: pointer; background: linear-gradient(#ffe68a, #f7c83a 52%, #d8961e); border: 2px solid #0c0a14; box-shadow: inset 1px 1px 0 #fff6cc, inset -1px -2px 0 #a8601a; }
.pc-t { color: #9ef6ff; text-shadow: 0 0 6px rgba(255, 64, 192, 0.4), 0 2px 0 #0c0a14; } /* 왕관석 숫자: 하늘 글 · 분홍 빛 (그림 = 앱 아이콘 다이아의 두 색) */
.ps-buy.pc { display: flex; align-items: center; justify-content: center; gap: 3px; }
.ps-buy.pc img { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.ps-sec { scroll-margin-top: 48px; margin: 2px 0 16px; }
.ps-h { display: flex; align-items: center; gap: 8px; margin: 4px 0 9px; font-size: 1em; font-weight: normal; color: #ffe27a; }
.ps-h::before, .ps-h::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, rgba(184, 102, 26, 0), #c48a2a 50%, rgba(184, 102, 26, 0)); }
.ps-h span { padding: 2px 12px 3px; text-shadow: 0 2px 0 #0c0a14; background: linear-gradient(#6a4614, #3e2608); border: 2px solid #0c0a14; box-shadow: inset 1px 1px 0 #e2b04a, inset -1px -1px 0 #2a1406, 0 2px 0 #0c0a14; }
.lang-ko .ps-sec, .lang-ko .pdm, .lang-ko .bside { word-break: keep-all; overflow-wrap: anywhere; } /* 한국어는 낱말 안에서 줄을 바꾸지 않음 ('받아/요' 같은 줄바꿈 없게) · 게임 다른 곳과 같은 방식 */
.ps-sec .pix, .ps-ft > img, .ps-amt img { image-rendering: pixelated; image-rendering: crisp-edges; }

/* 카드 공통: 어두운 판 + 등급 색 테두리 · 안쪽 은은한 빛 */
.ps-card { position: relative; overflow: hidden; background: linear-gradient(165deg, #3c3254 0%, #2a2238 58%, #221b2e 100%); border: 2px solid #0c0a14; box-shadow: inset 0 0 0 2px var(--tc), inset 0 0 26px -12px var(--tc), 0 2px 0 #0c0a14; }
.ps-card::after { content: ''; position: absolute; inset: 2px; border: 1px solid rgba(255, 255, 255, 0.07); pointer-events: none; }
.ps-card.own .ps-art, .ps-card.own .ps-stage { opacity: 0.55; }
.ps-art { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.ps-art::before { content: ''; position: absolute; left: 12%; right: 12%; top: 10%; bottom: 0; background: radial-gradient(closest-side, var(--tc), rgba(0, 0, 0, 0)); opacity: 0.22; pointer-events: none; }
.ps-art img { position: relative; }
.ps-nm { display: block; color: #fff8e4; text-shadow: 0 2px 0 #0c0a14; line-height: 1.2; }
.ps-ds { font-size: 0.8em; color: #d8cce0; line-height: 1.35; }
.ps-amt { display: flex; justify-content: center; align-items: center; gap: 4px; font-size: 1.05em; }
.ps-amt img { width: 1.15em; height: 1.15em; }
.ps-amt s { color: #8a7e98; font-size: 0.78em; }

/* 버튼: 금 (사기) · 초록 (무료) · 하늘 (체험) */
.ps-buy, .ps-try { display: block; white-space: nowrap; padding: 6px 4px 5px; font: inherit; font-size: 0.98em; line-height: 1.15; cursor: pointer; border: 2px solid #0c0a14; }
.ps-buy { color: #2a1406; background: linear-gradient(#ffe68a, #f7c83a 52%, #d8961e); box-shadow: inset 1px 1px 0 #fff6cc, inset -1px -2px 0 #a8601a, 0 2px 0 #0c0a14; text-shadow: 0 1px 0 #fff2b0; }
.ps-buy.big { font-size: 1.12em; padding: 8px 10px 7px; }
.ps-buy:active, .ps-try:active { transform: translateY(1px); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.4); }
.ps-buy:disabled { filter: saturate(0.5) brightness(0.78); cursor: default; }
.ps-buy.own { color: #b4a8b8; background: #3a3048; box-shadow: inset 1px 1px 0 #4a4060; text-shadow: none; filter: none; }
.ps-buy.free { color: #0c2a08; background: linear-gradient(#a6f48e, #5ec04a 58%, #3a9030); box-shadow: inset 1px 1px 0 #e4ffd0, inset -1px -2px 0 #2a6a20, 0 2px 0 #0c0a14; text-shadow: 0 1px 0 #dcffc0; }
.ps-buy small { display: block; font-size: 0.72em; }
.ps-try { color: #e8f8ff; background: linear-gradient(#5ac8ff, #2a8ae0 58%, #1c5aa8); box-shadow: inset 1px 1px 0 #c8eeff, inset -1px -2px 0 #123a78, 0 2px 0 #0c0a14; text-shadow: 0 1px 0 #123a78; }
.ps-btns { display: flex; gap: 6px; }
.ps-btns > button { flex: 1 1 0; min-width: 0; }

/* 꼬리표 (모두 계산한 숫자 · 제안은 하늘색) */
.ps-tags { position: absolute; z-index: 1; top: 5px; left: 5px; right: 5px; display: flex; flex-wrap: wrap; gap: 3px; pointer-events: none; }
.ps-rib, .ps-best, .ps-2x, .ps-tier, .ps-once, .ps-perm { font-style: normal; font-size: 0.7em; line-height: 1.25; padding: 1px 5px; border: 1px solid #0c0a14; white-space: nowrap; }
.ps-rib { color: #fff; background: #d8323a; box-shadow: inset 1px 1px 0 #ff8a6e; }
.ps-best { color: #2a1406; background: #f7c83a; box-shadow: inset 1px 1px 0 #fff2a6; }
.ps-perm { color: #fff; background: #7a3ad8; box-shadow: inset 1px 1px 0 #c49aff; } /* v3.0.2 시안: 영구 채굴 부스트 */
.ps-2x { color: #fff; background: #df459c; box-shadow: inset 1px 1px 0 #ff9ad0, 0 2px 0 #0c0a14; }
.ps-art .ps-2x { position: absolute; z-index: 1; right: 2px; bottom: 4px; transform: rotate(-6deg); font-size: 0.74em; padding: 2px 6px; }

/* 무료 선물 줄 */
.ps-frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 6px; }
.ps-ft { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px 0; text-align: center; background: linear-gradient(#2e2a40, #242034); border: 2px solid #0c0a14; box-shadow: inset 0 0 0 1px #3e3658; }
.ps-ft > img { width: 32px; height: 32px; }
.ps-ft b { font-size: 0.85em; color: #fff8e4; }
.ps-ft small { font-size: 0.72em; color: #a89cb8; }
.ps-ft .ps-buy { align-self: stretch; margin: 5px 4px 6px; font-size: 0.86em; }
.ps-ft.ready { box-shadow: inset 0 0 0 2px #5ec04a, inset 0 0 16px -6px #5ec04a; }

/* 오늘의 추천 (큰 무대) */
.ps-feat { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'st fi' 'bt bt'; gap: 10px; align-items: center; padding: 10px; background: radial-gradient(ellipse 60% 80% at 22% 55%, rgba(255, 150, 60, 0.2), rgba(0, 0, 0, 0)), linear-gradient(135deg, #3e2650, #1c1630 70%); border: 2px solid #0c0a14; box-shadow: inset 0 0 0 2px var(--tc), inset 0 0 44px -14px var(--tc), 0 3px 0 #0c0a14; }
.ps-feat > .ps-stage, .ps-feat > .ps-bigart { grid-area: st; }
.ps-feat > .ps-btns { grid-area: bt; position: relative; z-index: 1; }
.ps-feat > .ps-btns > button { font-size: 1.1em; padding: 8px 6px 7px; }
.ps-fi { grid-area: fi; position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ps-tier { align-self: flex-start; color: #1e1206; background: var(--tc); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5); }
.ps-fn { font-size: 1.32em; color: #fff6c0; text-shadow: 0 2px 0 #0c0a14; line-height: 1.15; }
.ps-abil { align-self: flex-start; display: inline-block; font-size: 0.82em; padding: 1px 6px; color: #ffe27a; background: #4a2a6e; border: 1px solid #0c0a14; box-shadow: inset 1px 1px 0 #7a4aa8; }
.ps-pts { margin: 0; padding-left: 1.05em; font-size: 0.8em; color: #e4d8ec; line-height: 1.35; }
.ps-feat .ps-bigart { flex: 0 0 auto; display: flex; justify-content: center; }

/* 움직이는 무대 · 지나가는 빛 · 반짝이 — 움직임은 js/shop_prem.js 시계 (초당 10번 · 보이는 것만) 가 --f · --t · on · go 를 바꿈 */
.ps-stage { position: relative; overflow: hidden; width: calc(var(--fw) * var(--sc) * 1px); height: calc(var(--fh) * var(--sc) * 1px); border: 2px solid #0c0a14; box-shadow: 0 0 0 1px var(--tc); }
.ps-film { position: absolute; left: 0; top: 0; height: 100%; width: calc(var(--fw) * var(--n) * var(--sc) * 1px); background-size: 100% 100%; background-repeat: no-repeat; image-rendering: pixelated; image-rendering: crisp-edges; transform: translateX(calc(var(--f, 0) * -100% / var(--n))); } /* 칸만 옮김 · 제 층(will-change)은 안 만듦: 뒤 게임 화면이 매 프레임 바뀌어 층이 많을수록 화면 합치기가 무거움 (재 보니 움직일 땐 같고 멈췄을 땐 가벼움) */
.ps-sheen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.ps-sheen::before { content: ''; position: absolute; top: -30%; bottom: -30%; left: -45%; width: 28%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 246, 200, 0.16) 50%, rgba(255, 255, 255, 0)); transform: translateX(calc(var(--s, 0) * 62%)) skewX(-14deg); will-change: transform; }
.ps-tw { position: absolute; z-index: 2; width: 14px; height: 14px; pointer-events: none; background-size: 56px 14px; background-position: calc(var(--t, 0) * -14px) 0; image-rendering: pixelated; top: calc(10% + var(--i) * 27%); left: calc(8% + var(--i) * 37%); opacity: 0; }
.ps-tw.on { opacity: 1; }

/* 넓은 카드 (한정 패키지) */
.ps-col { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; }
.ps-wide { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 6px; }
.ps-wide .ps-art { flex: 0 0 auto; }
.ps-wide .ps-ds { font-size: 0.76em; }
.ps-mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ps-once { align-self: flex-start; color: #fff; background: #e06a1a; box-shadow: inset 1px 1px 0 #ffb070; }
.ps-mid .ps-perm { align-self: flex-start; }
.ps-bun { margin-top: 8px; }
.ps-limt { margin: -6px 0 8px; text-align: center; font-size: 0.8em; color: #ffb070; } /* v3.0.2 시안: 영구 채굴 부스트 한정 판매 남은 시간 */ /* v3.0.2 시안: 칸 묶음(부스트 둘 다)은 낱개 아래 넓은 카드 */
.ps-save { font-size: 0.78em; color: #9fe0a0; }
.ps-stg { font-size: 0.75em; }
.ps-right { position: relative; z-index: 1; flex: 0 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 104px; }
.ps-right .ps-rib, .ps-right .ps-best, .ps-right .ps-2x { align-self: center; }

/* 히어로 칸 · 작은 칸 */
.ps-grid { display: grid; gap: 8px; }
.ps-grid.g-hero { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.ps-grid.g-tile { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); }
.ps-hcard { display: flex; flex-direction: column; align-items: center; padding: 8px 6px 7px; gap: 6px; }
.ps-hb { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.ps-hb .ps-abil { align-self: center; }
.ps-hb .ps-ds { min-height: 2.7em; }
.ps-hb .ps-btns { width: 100%; margin-top: 2px; }
.ps-tile { display: flex; flex-direction: column; align-items: stretch; padding: 22px 6px 7px; gap: 4px; text-align: center; }
.ps-tile .ps-art { height: 92px; }
.ps-tile .ps-ds { min-height: 2.7em; }
.ps-tile .ps-buy { margin-top: auto; }

.ps-foot { font-size: 0.76em; color: #a89cb8; line-height: 1.45; padding: 8px 10px; background: #1e1828; border: 2px solid #0c0a14; }

/* 좁은 화면: 추천 무대는 위아래로 */
@media (max-width: 380px) { .ps-feat { grid-template-columns: 1fr; grid-template-areas: 'st' 'fi' 'bt'; justify-items: center; } .ps-col { grid-template-columns: 1fr; } }
/* 가로 화면 (높이가 낮음): 위 줄은 따라오지 않음 · 추천 무대는 2배 · 버튼은 글 옆 */
@media (max-height: 500px) { .ps-nav { position: static; } .ps-sec { scroll-margin-top: 4px; } .ps-feat { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'st fi bt'; } .ps-feat .ps-stage { --sc: 2 !important; } .ps-feat > .ps-btns { flex-direction: column; width: 150px; } }

/* 노출 (제안): HUD 상점 버튼을 프리미엄 모양으로 — 움직임 없음 (게임 중 발열 0) */
#hudTL .sq[data-sheet="shop"], html.u3.pB:not(.u3-open) #hudTL .sq[data-sheet="shop"] { background: linear-gradient(rgba(108, 54, 150, 0.88), rgba(52, 24, 86, 0.88)); border-color: #0c0a14; box-shadow: inset 2px 2px 0 rgba(200, 150, 255, 0.45), inset -2px -2px 0 rgba(0, 0, 0, 0.45), 0 0 0 2px #e8b030; }
#hudTL .sq[data-sheet="shop"] small, html.u3.pB:not(.u3-open) #hudTL .sq[data-sheet="shop"] small { color: #ffe27a; }

/* v3.0.2 왕관석 사기 창 · 부족 창 (ui.js UI.pcBuy) */
.pcm { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pcm-art { display: flex; justify-content: center; min-height: 40px; }
.pcm-art .ps-stage { --sc: 2; }
.pcm-nm { font-size: 1.15em; color: #fff6c0; text-shadow: 0 2px 0 #0c0a14; }
.pcm-ds { font-size: 0.82em; color: #d8cce0; line-height: 1.4; max-width: 30em; }
.pcm-row { font-size: 0.95em; }
.pc-n { display: inline-flex; align-items: center; gap: 2px; vertical-align: -0.2em; white-space: nowrap; }
.pc-n img { width: 1.15em; height: 1.15em; }
.pc-n b { color: #9ef6ff; }
.pc-n.red b { color: #ff7a6a; }
.pcm-pack { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; padding: 6px 8px; text-align: left; background: linear-gradient(165deg, #3c3254, #221b2e); border: 2px solid #0c0a14; box-shadow: inset 0 0 0 2px #e8b030, inset 0 0 22px -10px #e8b030; }
.pcm-pa { flex: 0 0 auto; display: flex; }
.pcm-pi { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pcm-pi b { color: #fff8e4; }
.pcm-pi small { font-size: 0.78em; color: #9fe0a0; }
.pcm-pi .ps-2x { font-size: 0.72em; }
/* 소모품 탭: 가진 왕관석 줄 · 왕관석 버튼 */
#sheet .orb-sticky.pc-bar, .orb-sticky.pc-bar { box-shadow: inset 0 0 0 2px #40c8ff, inset 0 0 16px -6px #ff40c0, 0 3px 0 rgba(0, 0, 0, 0.45); }
.pc-bar .btn { margin-left: auto; }
.btn.pcb { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.btn.pcb img { width: 1.1em; height: 1.1em; }

/* v3.0.2 시안 (선민 10-24): 한 줄 문구 · '자세히' 표시 · 영구 채굴 부스트 · 히어로 영상 · 자세히 창 · 오른쪽 작은 부스트 제안 — 모두 움직임 없음 (영상은 ▶ 누를 때만) */
.ps-hook { font-size: 0.8em; color: #ffe9a8; line-height: 1.3; }
.ps-card[data-act], .ps-feat[data-act] { cursor: pointer; }
.ps-info { position: absolute; z-index: 2; top: 4px; right: 4px; width: 14px; height: 14px; font-style: normal; font-size: 10px; line-height: 14px; text-align: center; color: #2a1406; background: #ffe27a; border: 1px solid #0c0a14; border-radius: 50%; pointer-events: none; opacity: 0.8; }
/* 히어로 영상 (상점 히어로 칸 아래 · 자세히 창 · 히어로 창) */
.ps-reel { margin-top: 10px; padding: 8px; background: linear-gradient(165deg, #2e2444, #1c1628); border: 2px solid #0c0a14; box-shadow: inset 0 0 0 2px #b03aff, inset 0 0 22px -10px #ff8a2a, 0 2px 0 #0c0a14; }
.ps-reel-h { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 6px; }
.ps-reel-h b { color: #ffe27a; font-weight: normal; text-shadow: 0 2px 0 #0c0a14; }
.ps-reel-h small { font-size: 0.72em; color: #a89cb8; }
.hvbox { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: #0c0a14; border: 2px solid #0c0a14; overflow: hidden; box-sizing: border-box; }
.hvbox video { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.hv-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; padding: 0 0 0 4px; font: inherit; font-size: 20px; line-height: 1; color: #2a1406; background: linear-gradient(#ffe68a, #f7c83a 52%, #d8961e); border: 2px solid #0c0a14; border-radius: 50%; box-shadow: 0 2px 0 #0c0a14; }
.hvbox.on .hv-play { display: none; }
.hv-cap { position: absolute; left: 6px; bottom: 5px; padding: 1px 6px; font-size: 0.82em; font-weight: normal; color: #fff6c0; background: rgba(12, 10, 20, 0.72); pointer-events: none; }
.ps-reel-chips { display: flex; gap: 4px; margin-top: 6px; overflow-x: auto; scrollbar-width: none; }
.ps-reel-chips::-webkit-scrollbar { display: none; }
.ps-reel-chips button { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 3px 6px; font: inherit; font-size: 0.76em; color: #e4d8ec; background: #2a2238; border: 2px solid #0c0a14; box-shadow: inset 1px 1px 0 #4a4060; }
.ps-reel-chips button img { width: 20px; height: 20px; image-rendering: pixelated; }
.ps-reel-chips button.on { color: #2a1406; background: linear-gradient(#ffe68a, #f7c83a 52%, #d8961e); box-shadow: inset 1px 1px 0 #fff6cc; }
.sk-hv { margin-top: 6px; }
/* 자세히 창 */
.pdm { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.pdm-vis { display: flex; justify-content: center; width: 100%; }
.pdm-vis .ps-stage { --sc: 3; }
.pdm-vis .pix { image-rendering: pixelated; }
.pdm-hv { max-width: 360px; }
.pdm-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pdm-hook { margin: 2px 0 0; font-size: 1.08em; color: #ffe27a; text-shadow: 0 2px 0 #0c0a14; line-height: 1.3; }
.pdm-list { margin: 0; padding: 0 0 0 1.1em; text-align: left; font-size: 0.88em; color: #e8deef; line-height: 1.45; max-width: 30em; }
.pdm-list li + li { margin-top: 3px; }
.pdm-list b { color: #fff6c0; }
.pdm-get { font-size: 0.82em; color: #9fe0a0; }
.pdm-get img { width: 1.1em; height: 1.1em; vertical-align: -0.2em; image-rendering: pixelated; }
/* 오른쪽 작은 부스트 제안 (광산 · #hudTR 아래 · 자리는 shop_prem.js SHOP.sidePlace) */
.bside { position: absolute; z-index: 8; right: calc(6px + var(--safe-r)); width: 68px; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 3px 4px 4px; background: rgba(20, 13, 30, 0.86); border: 2px solid #0c0a14; box-shadow: inset 0 0 0 1px #c48a2a, 0 2px 0 #0c0a14; }
.bside.lf { right: auto; left: calc(6px + var(--safe-l)); }
.bs-h { display: flex; align-items: center; justify-content: space-between; }
.bs-h small { font-size: 0.7em; color: #ffe27a; padding-left: 2px; }
.bs-x { width: 18px; height: 18px; padding: 0; font: inherit; font-size: 0.85em; line-height: 1; color: #b4a8b8; background: #2a2238; border: 1px solid #0c0a14; }
.bs-b { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 0 2px; font: inherit; color: #fff8e4; background: linear-gradient(#3c3254, #2a2238); border: 2px solid #0c0a14; box-shadow: inset 1px 1px 0 #5a4e78; }
.bs-b > img.pix { width: 56px; height: 44px; image-rendering: pixelated; } /* v3.0.2 시안 2차: 상점 그림 1배 */
.bs-b i { display: flex; align-items: center; gap: 1px; font-style: normal; font-size: 0.7em; color: #9ef6ff; }
.bs-b i img { width: 12px; height: 12px; }
.bs-both { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 2px 0 1px; font: inherit; font-size: 0.66em; line-height: 1.15; color: #2a1406; background: linear-gradient(#ffe68a, #f7c83a 52%, #d8961e); border: 2px solid #0c0a14; white-space: nowrap; }
.bs-both i { display: flex; align-items: center; gap: 1px; font-style: normal; }
.bs-both img { width: 11px; height: 11px; image-rendering: pixelated; }
.bside button:active { transform: translateY(1px); }
html.u3.u3-open #app #bside { visibility: hidden; }
/* 세로로 들어갈 자리가 모자랄 때 (가로 화면에서 아래 강화 칸과 겹칠 때 · SHOP.sidePlace) 가로로 */
.bside.row { flex-direction: row; align-items: stretch; width: auto; }
.bside.row .bs-h { flex-direction: column-reverse; justify-content: space-between; gap: 4px; }
.bside.row .bs-b { width: 62px; }
.bside.row .bs-both { width: 46px; justify-content: center; }
/* ───── v3.0.2 시안 4차: 입는 스킨 뽑기 (js/shop_prem.js secGacha · SHOP.gkResult · SHOP.gkBox) · 히어로 등급 표시 — 이름은 gk- 로 시작 ─────
   · 움직이는 미리보기는 .ps-stage (위 무대와 같은 시계) · 멈춘 첫 칸은 .gk-still (같은 그림 한 장의 첫 칸) · 등급 색 --gc (D.GRADES) */
.gk-ban { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'st inf' 'hr hr' 'ch ch' 'bt bt' 'tk tk' 'rw rw'; gap: 8px 10px; padding: 10px; background: radial-gradient(120% 90% at 18% 32%, rgba(255, 74, 74, 0.22), rgba(0, 0, 0, 0) 60%), linear-gradient(165deg, #3c2a54 0%, #2a1f3a 58%, #1e162a 100%); border: 2px solid #0c0a14; box-shadow: inset 0 0 0 2px var(--tc), inset 0 0 30px -10px var(--tc), 0 2px 0 #0c0a14; }
.gk-ban > .gk-stage { grid-area: st; }
.gk-inf { grid-area: inf; display: flex; flex-direction: column; gap: 3px; justify-content: center; min-width: 0; }
.gk-t { font-size: 1.15em; color: #fff3c8; text-shadow: 0 2px 0 #0c0a14; }
.gk-inf small { color: #d8cce0; font-size: 0.78em; line-height: 1.35; }
.gk-top { font-size: 0.86em; line-height: 1.35; color: #f0e2c4; }
.gk-top span { font-size: 0.9em; color: #9af08a; }
.gk-chips { grid-area: ch; display: flex; flex-wrap: wrap; gap: 3px; }
.gk-chips i { font-style: normal; font-size: 0.68em; line-height: 1.4; padding: 0 5px; color: var(--gc); background: #140d1e; border: 1px solid #0c0a14; }
.gk-chips b { margin-left: 3px; color: #fff; font-weight: normal; }
.gk-btns { grid-area: bt; }
.gk-b { flex-wrap: wrap; row-gap: 0; }
.gk-b span { flex-basis: 100%; font-size: 0.8em; }
.gk-tk { grid-area: tk; width: 100%; }
.gk-row { grid-area: rw; display: flex; gap: 6px; }
/* v3.0.2 시안 6차: 히어로 고르기 줄 (뽑기 칸 · 옷장) — 가진 히어로 · 가진 스킨 수 n/7 · 옆으로 밀기 */
.gk-hrow { grid-area: hr; display: flex; gap: 4px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; min-width: 0; }
.gk-h { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 2px 3px 1px; font: inherit; color: #9a8eaa; background: #17121d; border: 2px solid #3a3448; cursor: pointer; }
.gk-h img { width: 32px; height: 32px; image-rendering: pixelated; image-rendering: crisp-edges; }
.gk-h small { font-size: 0.6em; line-height: 1.2; }
.gk-h.on { border-color: #ffd23a; color: #ffe070; background: #2a2010; }
.gk-h:active { transform: translateY(1px); }
.gk-l { flex: 1 1 0; min-width: 0; padding: 4px 6px; font: inherit; font-size: 0.8em; color: #e8dcf4; background: #241a32; border: 2px solid #0c0a14; box-shadow: inset 1px 1px 0 #4a3c62; cursor: pointer; }
.gk-l:active { transform: translateY(1px); }
.gk-reg { flex: 1; padding: 8px; text-align: center; font-size: 0.82em; color: #ffb0b0; background: #2a1420; border: 2px solid #0c0a14; }
.gk-ban.gk-lock { grid-template-areas: 'st inf' 'rw rw'; } /* v3.0.2 시안 7차: 잠긴 뽑기 칸 */
.gk-ban.gk-lock .gk-stage { filter: grayscale(0.8) brightness(0.75); }
.gk-lk { margin-top: 6px; padding: 6px 8px; font-size: 0.8em; line-height: 1.4; color: #ffe070; background: #1c1624; border: 2px solid #0c0a14; }
.gk-note { display: block; margin-top: 4px; font-size: 0.7em; color: #9a8eaa; line-height: 1.35; }
.gk-pm { display: block; margin-top: 4px; font-size: 0.8em; color: #ffd0d8; }
.gk-still { display: inline-block; flex: 0 0 auto; background-repeat: no-repeat; image-rendering: pixelated; image-rendering: crisp-edges; } /* 크기 · 자른 자리는 shop_prem.js gkStill (첫 칸 · 히어로 둘레) */
.gk-ban .ps-tw { top: calc(4% + var(--i) * 10%); left: calc(3% + var(--i) * 11%); } /* 반짝이는 미리보기 둘레에만 (글 위에 겹치지 않게) */
.gk-q { font-size: 1.05em; }
/* 결과 창 · 옷장 위 칸 */
.gkr, .gkb { display: flex; flex-direction: column; gap: 8px; }
.gkr-top, .gkb-top { display: flex; gap: 10px; align-items: center; padding: 8px; background: radial-gradient(80% 100% at 22% 50%, color-mix(in srgb, var(--gc) 32%, transparent), transparent 70%), #1a1424; border: 2px solid #0c0a14; box-shadow: inset 0 0 0 2px var(--gc); }
.gkr-ti { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; }
.gkr-top > .ps-stage, .gkb-top > .ps-stage { flex: 0 0 auto; } /* v3.0.2 시안 5차: 특수능력 설명이 길어도 그림 칸이 줄지 않게 */
.gkr-gr { font-style: normal; font-size: 0.72em; color: #0c0a14; background: var(--gc); padding: 0 6px; align-self: flex-start; border: 1px solid #0c0a14; }
.gkr-new { font-style: normal; font-size: 0.7em; color: #2a1406; background: #ffe070; padding: 0 5px; align-self: flex-start; border: 1px solid #0c0a14; }
.gkr-ti small { font-size: 0.8em; color: #d8cce0; line-height: 1.35; }
.gkr-ti small.gkr-line { color: #f0e2c4; }
.gkr-ti small.gk-ab { color: #e8dcf0; } /* v3.0.2 시안 5차: 특수능력 설명 */
.gk-abn { color: #9af08a; font-weight: 700; }
.gkr-eq { align-self: flex-start; margin-top: 2px; padding: 4px 12px; }
.gkr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.gkr-grid.n1 { display: none; }
.gkc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 2px; font: inherit; color: #f0e2c4; background: #17121d; border: 2px solid #0c0a14; box-shadow: inset 0 0 0 1px var(--gc); cursor: pointer; min-width: 0; animation: gkIn 0.32s steps(4) both; animation-delay: calc(var(--i) * 0.11s); }
.gkc b { font-size: 0.66em; font-weight: normal; color: var(--gc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gkc i { font-style: normal; font-size: 0.6em; color: #9a8eaa; }
.gkc.new i { color: #ffe070; }
.gkc.g4, .gkc.g5, .gkc.g6 { box-shadow: inset 0 0 0 2px var(--gc), 0 0 10px -2px var(--gc); }
@keyframes gkIn { from { opacity: 0; transform: translateY(6px) scale(0.85); } to { opacity: 1; transform: none; } }
.gkr.top6 .gkr-top, .gkr.top5 .gkr-top { animation: gkBig 1.2s steps(6) 1 both; }
@keyframes gkBig { 0% { box-shadow: inset 0 0 0 2px var(--gc), 0 0 0 0 var(--gc); } 30% { box-shadow: inset 0 0 0 2px #fff, 0 0 26px 6px var(--gc); } 100% { box-shadow: inset 0 0 0 2px var(--gc), 0 0 0 0 var(--gc); } }
.gkr-foot { font-size: 0.78em; color: #c8bcd8; display: flex; justify-content: center; align-items: center; gap: 3px; flex-wrap: wrap; }
.gkr-foot img { width: 1.1em; height: 1.1em; image-rendering: pixelated; }
.gkb-top.none { justify-content: center; text-align: center; color: #9a8eaa; --gc: #3a3448; }
.gkb-top .lock { filter: grayscale(0.75) brightness(0.8); }
.gkb-top .ps-buy { align-self: flex-start; margin-top: 2px; padding: 4px 12px; }
.gkr-ti small.gkb-p { color: #9a8eaa; }
.gkb-info { font-size: 0.82em; color: #c8bcd8; text-align: center; }
.gkb-info b { color: #ffe070; }
.gkb-h { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; padding-bottom: 2px; border-bottom: 1px solid color-mix(in srgb, var(--gc) 50%, transparent); }
.gkb-h b { color: var(--gc); font-size: 0.9em; }
.gkb-h small { color: #9a8eaa; font-size: 0.72em; }
.gkb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 4px; }
.gkb-grid.g7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } /* v3.0.2 시안 6차: 7벌 = 4 + 3 (가로 화면은 한 줄) */
@media (orientation: landscape) { .gkb-grid.g7 { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.gkt { display: flex; flex-direction: column; align-items: center; padding: 2px; font: inherit; color: #f0e2c4; background: #17121d; border: 2px solid #3a3448; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gc) 60%, transparent); cursor: pointer; min-width: 0; }
.gkt small { font-size: 0.6em; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gkt.no .gk-still { filter: grayscale(0.85) brightness(0.55); }
.gkt.no small { color: #6a6078; }
.gkt.sel { border-color: #fff; }
.gkt.on { border-color: #ffd23a; }
.lang-ko .gkr, .lang-ko .gkb, .lang-ko .gk-ban { word-break: keep-all; overflow-wrap: anywhere; }
/* 히어로 창: 입는 스킨 칸 · 히어로 등급 (칸 왼쪽 위 삼각 · 카드 이름 앞 꼬리표) */
.sk-slot.gsk { border-color: var(--gc); color: var(--gc); }
.sk-t::before { content: ''; position: absolute; z-index: 1; left: 0; top: 0; width: 0; height: 0; border-style: solid; border-width: 9px 9px 0 0; border-color: var(--hg, transparent) transparent transparent transparent; pointer-events: none; }
.hg-t { font-style: normal; font-size: 0.66em; margin-right: 5px; padding: 0 4px; color: #0c0a14; background: var(--hg); border: 1px solid #0c0a14; vertical-align: 2px; }
/* v3.0.2 시안 10차: 천장(확률 보정 장치) 조건 카드 — data.js D.gachaPityHTML · 확률 정보 창 ⑥ · 뽑기 칸 '확률 보기' (--pc = 신화 색) */
.pity-card { margin: 8px 0 10px; padding: 9px 10px 10px; color: #e0d4ec; word-break: keep-all; overflow-wrap: anywhere; background: radial-gradient(90% 70% at 100% 0%, rgba(255, 74, 74, 0.16), rgba(0, 0, 0, 0) 70%), linear-gradient(170deg, #34203a 0%, #261b34 55%, #1c1526 100%); border: 2px solid #0c0a14; box-shadow: inset 0 0 0 2px #5a2a3a, 0 2px 0 #0c0a14; }
.pity-hd { display: flex; align-items: center; gap: 8px; }
.pity-hd > img { flex: 0 0 auto; width: 32px; height: 32px; image-rendering: pixelated; image-rendering: crisp-edges; }
.pity-hd b { display: block; color: #ffe070; font-weight: normal; font-size: 1.06em; line-height: 1.3; text-shadow: 0 2px 0 #0c0a14; }
.pity-hd small { display: block; margin-top: 1px; color: #d8cce0; font-size: 0.8em; line-height: 1.35; }
.pity-trk { position: relative; height: 12px; margin: 22px 10px 0 2px; background: #140d1e; border: 2px solid #0c0a14; box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.5); }
.pity-trk > i { position: absolute; left: 0; top: 0; bottom: 0; right: 14px; background: repeating-linear-gradient(90deg, #4a3a62 0 9px, #2e2440 9px 11px); box-shadow: inset 0 2px 0 #5e4c7a, inset 0 -2px 0 #2a2038; }
.pity-trk > b { position: absolute; right: -2px; top: -4px; bottom: -4px; width: 14px; background: var(--pc, #ff4a4a); border: 2px solid #0c0a14; box-shadow: inset 0 2px 0 #ffb0a0, inset 0 -2px 0 #a01a2a, 0 0 10px rgba(255, 74, 74, 0.75); }
.pity-trk > img { position: absolute; right: -11px; top: -26px; width: 24px; height: 24px; image-rendering: pixelated; image-rendering: crisp-edges; filter: drop-shadow(0 2px 0 #0c0a14); }
.pity-lb { display: flex; justify-content: space-between; gap: 6px; margin: 4px 0 0; font-size: 0.72em; color: #9a8eaa; }
.pity-lb span:last-child { color: #ff8a8a; }
.pity-od { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin-top: 8px; }
.pity-od > div { min-width: 0; padding: 5px 7px 6px; background: #17121d; border: 2px solid #0c0a14; box-shadow: inset 1px 1px 0 #3a3050; }
.pity-od > div.hot { background: #2a1418; box-shadow: inset 0 0 0 1px rgba(255, 74, 74, 0.55), inset 0 0 14px -6px #ff4a4a; }
.pity-od small { display: block; color: #a89cb8; font-size: 0.74em; line-height: 1.3; }
.pity-od b { display: block; margin: 1px 0; color: #fff3c8; font-weight: normal; font-size: 1.08em; line-height: 1.25; }
.pity-od .hot b { color: #ff7a7a; text-shadow: 0 0 6px rgba(255, 74, 74, 0.45); }
.pity-od em { display: block; font-style: normal; color: #c8bcd8; font-size: 0.72em; line-height: 1.3; overflow-wrap: anywhere; }
.pity-rl { list-style: none; margin: 9px 0 0; padding: 7px 0 0; display: flex; flex-direction: column; gap: 5px; border-top: 2px dotted #3e3252; }
.pity-rl li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 7px; align-items: start; font-size: 0.8em; line-height: 1.42; }
.pity-rl li > img { width: 16px; height: 16px; margin-top: 2px; image-rendering: pixelated; image-rendering: crisp-edges; }
.pity-rl li b { display: block; color: #ffe070; font-weight: normal; }
/* v3.0.2 EU: 왕관석 값 옆 실제 돈 (≈) — EU · EEA 스토어에서만 보임 (shop_prem.js SHOP.realTag · 값은 data.js D.pcReal) */
.pcr { font-size: 0.76em; font-weight: normal; opacity: 0.85; white-space: nowrap; margin-left: 3px; }
.ps-buy.pc, .btn.pcb { flex-wrap: wrap; row-gap: 0; }
.ps-buy.pc .pcr, .btn.pcb .pcr, .gk-b .pcr { flex-basis: 100%; margin-left: 0; text-align: center; line-height: 1.1; font-size: 0.7em; }
.bs-b .pcr { margin-left: 0; font-size: 0.56em; line-height: 1.1; color: #cfe9ff; }
#mBtns .btn small.pcr { display: block; margin-left: 0; }
.bs-both .pcr { margin-left: 0; font-size: 0.85em; line-height: 1.1; }
