/* =====================================================================
   POT-SHELF 화면별 스킨 — 비주얼 리부트 2026-09-26 (01-visual-direction §3.11~3.12)
   ===================================================================== */

/* ---------- 0. 아이콘: 기존 <img> 아이콘 자리를 새 12x12 도트 아이콘으로(CSS content 치환) ---------- */
.ps-ico { display: inline-block; flex: none; width: 1.25em; height: 1.25em; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; vertical-align: -0.22em; image-rendering: pixelated; }
img.coin-ico, #comboLabel img, #homeCoinLabel img, #missionsCoinIco img, #missionCompleteCoinIco img, .rs-coin img { content: var(--i-coin); }
#settingsBtn img, #homeSettingsBtn img, #settingsTitleIco img { content: var(--i-settings); }
#gachaBtn img, .gacha-back img, #charDetailBack img { content: var(--i-back); }
#charBuyClose img { content: var(--i-close); }
#charDetailPrev img, #charBuyPrev img, #gsPrev img, #castleArrLeft img { content: var(--i-chevron_left); transform: none !important; }
#charDetailNext img, #charBuyNext img, #gsNext img, #castleArrRight img { content: var(--i-chevron_right); transform: none !important; }
#charDetailFav img { content: var(--i-heart); }
#charDetailShare img, #castleShareBtn img, #winSave .wsc-ico img { content: var(--i-share); }
#rankPillIco img { content: var(--i-rank); }
#jokerBtn .ico img { content: var(--i-joker); }
#playBtn .ico img { content: var(--i-newgame); }
#hintBtn .ico img { content: var(--i-hint); }
#undoBtn .ico img { content: var(--i-undo); }
#gachaTitleGift img, #icoCollection img { content: var(--i-collection); }
#storeTitleIco img, #icoStore img { content: var(--i-store); }
#parentalTitleIco img { content: var(--i-parental); }
#communityTitleIco img { content: var(--i-community); }
#languageTitleIco img { content: var(--i-language); }
#orientTitleIco img { content: var(--i-orientation); }
#audioTitleIco img { content: var(--i-sfx); }
#missionsTitleIco img, #icoMissions img { content: var(--i-missions); }
#icoStats img { content: var(--i-village); }
#icoPlay { content: var(--i-play); animation: none !important; }
#optHint .set-ico img { content: var(--i-hint); }
#optAuto .set-ico img { content: var(--i-auto); }
#optVibrate .set-ico img { content: var(--i-vibrate); }
#optShowStats .set-ico img { content: var(--i-stats); }
#setOrientationBtn .set-ico img { content: var(--i-orientation); }
#optReminders .set-ico img { content: var(--i-bell); }
#setLanguageBtn .set-ico img { content: var(--i-language); }
#setAudioBtn .set-ico img { content: var(--i-sfx); }
#lbBtn .set-ico img { content: var(--i-rank); }
#achBtn .set-ico img { content: var(--i-achievement); }
#pgsBtn .set-ico img { content: var(--i-cloud); }
#parentalBtn .set-ico img { content: var(--i-parental); }
#iapRestore .set-ico img { content: var(--i-undo); }
#settingsUpdateBtn .set-ico img { content: var(--i-update); }
#howBtn .set-ico img { content: var(--i-help); }
#communityBtn .set-ico img { content: var(--i-community); }
#creditsBtn .set-ico img { content: var(--i-credits); }
#privacyBtn .set-ico img { content: var(--i-lock); }
#optMuteAll .set-ico img { content: var(--i-mute); }
#optDisableAds .set-ico img { content: var(--i-remove_ads); }
#optDisableIap .set-ico img { content: var(--i-lock); }

/* ---------- 1. 하늘(홈 무대): 4개 평면 띠 × 3시간대, 계단 경계, 전환은 opacity 교차 ---------- */
#psSky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; display: none; }
body.home-active #psSky { display: block; }
#psSky > i { position: absolute; inset: 0; opacity: 0; transition: opacity 3s linear; }
html[data-sky="day"] #psSky .ps-sky-day, html[data-sky="dusk"] #psSky .ps-sky-dusk, html[data-sky="night"] #psSky .ps-sky-night { opacity: 1; }
.ps-sky-day   { background: linear-gradient(180deg, #BFE3EE 0 34%, #D0EBEC 34% 60%, #E6F1E2 60% 82%, #FBEBD2 82% 100%); }
.ps-sky-dusk  { background: linear-gradient(180deg, #8FA3D6 0 34%, #C4A6CB 34% 60%, #F2B6A0 60% 82%, #FCD9A8 82% 100%); }
.ps-sky-night { background: linear-gradient(180deg, #1F2A4D 0 34%, #27365E 34% 60%, #33477A 60% 82%, #4A5C8C 82% 100%); }
/* 띠 경계의 2px 계단(16px 주기) — 도트 세계 문법 */
#psSky > i::after { content: ""; position: absolute; inset: 0; background:
  repeating-linear-gradient(90deg, transparent 0 16px, rgba(255, 255, 255, .0) 16px 32px); }
.ps-cloud { position: absolute; width: 48px; height: 16px; opacity: .95; transition: opacity 3s linear;
  background:
    linear-gradient(#FFFBF3, #FFFBF3) 8px 0 / 20px 4px no-repeat,
    linear-gradient(#FFFBF3, #FFFBF3) 4px 4px / 36px 4px no-repeat,
    linear-gradient(#FFFBF3, #FFFBF3) 0 8px / 48px 4px no-repeat,
    linear-gradient(#D0DCE8, #D0DCE8) 4px 12px / 40px 4px no-repeat;
  animation: psCloud 120s linear infinite; }
.ps-cloud.c1 { top: 9%; animation-duration: 110s; animation-delay: -20s; }
.ps-cloud.c2 { top: 17%; transform: scale(.75); animation-duration: 140s; animation-delay: -80s; }
.ps-cloud.c3 { top: 26%; animation-duration: 95s; animation-delay: -55s; }
html[data-sky="night"] .ps-cloud { opacity: 0; }
.ps-stars { position: absolute; inset: 0 0 50% 0; opacity: 0; transition: opacity 3s linear; background:
  linear-gradient(#FFF6D6, #FFF6D6) 12% 14% / 2px 2px no-repeat, linear-gradient(#FFF6D6, #FFF6D6) 28% 30% / 2px 2px no-repeat,
  linear-gradient(#FFF6D6, #FFF6D6) 44% 8% / 2px 2px no-repeat, linear-gradient(#FFF6D6, #FFF6D6) 61% 22% / 2px 2px no-repeat,
  linear-gradient(#FFF6D6, #FFF6D6) 77% 12% / 2px 2px no-repeat, linear-gradient(#FFF6D6, #FFF6D6) 90% 34% / 2px 2px no-repeat,
  linear-gradient(#FFF6D6, #FFF6D6) 8% 44% / 2px 2px no-repeat, linear-gradient(#FFF6D6, #FFF6D6) 36% 52% / 2px 2px no-repeat,
  linear-gradient(#FFF6D6, #FFF6D6) 53% 40% / 2px 2px no-repeat, linear-gradient(#FFF6D6, #FFF6D6) 70% 58% / 2px 2px no-repeat,
  linear-gradient(#FFF6D6, #FFF6D6) 85% 48% / 2px 2px no-repeat, linear-gradient(#FFF6D6, #FFF6D6) 20% 66% / 2px 2px no-repeat,
  linear-gradient(#FFF6D6, #FFF6D6) 48% 72% / 2px 2px no-repeat, linear-gradient(#FFF6D6, #FFF6D6) 94% 70% / 2px 2px no-repeat; }
html[data-sky="night"] .ps-stars { opacity: 1; }
@keyframes psCloud { from { translate: -60px 0; } to { translate: calc(100vw + 60px) 0; } }
/* 마을 꾸미기 편집기 하늘도 같은 띠 */
#villageDecorSky { background: linear-gradient(180deg, #BFE3EE 0 34%, #D0EBEC 34% 60%, #E6F1E2 60% 82%, #FBEBD2 82% 100%) !important; }
html[data-sky="dusk"] #villageDecorSky { background: linear-gradient(180deg, #8FA3D6 0 34%, #C4A6CB 34% 60%, #F2B6A0 60% 82%, #FCD9A8 82% 100%) !important; }
html[data-sky="night"] #villageDecorSky { background: linear-gradient(180deg, #1F2A4D 0 34%, #27365E 34% 60%, #33477A 60% 82%, #4A5C8C 82% 100%) !important; }
#skyclouds { filter: none !important; }

/* ---------- 2. 홈 ---------- */
.home-overlay { background: none; }
.home-top { padding: calc(env(safe-area-inset-top) + 8px) 12px 6px; }
.home-top .icon-btn { width: 44px; height: 44px; background: var(--surface); box-shadow: 0 3px 0 var(--shadow-light); }
.home-mid { padding-top: 10px; }
.home-logo { font-family: var(--f-title); font-weight: 700; font-size: clamp(30px, 9.4vw, 40px); line-height: 1; color: var(--ink);
  background: var(--surface); padding: 10px 20px 8px; border-radius: 16px; box-shadow: 0 4px 0 var(--shadow-light); text-shadow: none; }
.home-logo-sub { margin-top: 10px; font-family: var(--f-body); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--surface); background: var(--accent-2); padding: 4px 12px; border-radius: 999px; box-shadow: 0 2px 0 var(--accent-2-shade); }
html[data-sky="night"] .home-logo { background: #26314A; color: #F7EDDC; box-shadow: 0 4px 0 #10182A; }

/* 하단 5탭 = 귀리 시트 위 장난감 버튼 줄 */
.home-nav {
  background: var(--surface); border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: 0 -4px 0 rgba(58, 43, 52, .08); padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); gap: 6px; align-items: end;
}
.home-nav-btn { opacity: 1; color: var(--ink-soft); font-family: var(--f-body); font-weight: 700; font-size: 11px; border-radius: 14px; padding: 6px 2px 5px; gap: 4px; }
.home-nav-btn:active { transform: translateY(2px); }
.home-nav-ico { font-size: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-radius: 12px; box-shadow: 0 3px 0 var(--shadow-light); }
.home-nav-ico img { width: 24px; height: 24px; }
.home-nav-btn.active, .home-nav-btn.on, .home-nav-btn[aria-current="page"] { color: var(--ink); }
body:has(#gachaOverlay.show) #navCollection .home-nav-ico, body:has(#missionsOverlay.show) #navMissions .home-nav-ico,
body:has(#villageDecorOverlay.show) #navStats .home-nav-ico, body:has(#statsOverlay.show) #navStats .home-nav-ico,
body:has(#storeOverlay.show) #navStore .home-nav-ico { transform: translateY(-3px); background: var(--hint); box-shadow: 0 3px 0 var(--gold-shade); }
body:has(#gachaOverlay.show) #navCollection, body:has(#missionsOverlay.show) #navMissions, body:has(#villageDecorOverlay.show) #navStats,
body:has(#statsOverlay.show) #navStats, body:has(#storeOverlay.show) #navStore { color: var(--ink); }
.home-nav-ico::before { display: none; }
.home-nav-play { color: var(--surface); }
.home-nav-play-ico-wrap { width: 60px; height: 52px; margin-top: -18px; display: flex; align-items: center; justify-content: center; border-radius: 16px;
  background: var(--accent-1); box-shadow: inset 0 3px 0 var(--accent-1-hi), 0 4px 0 var(--accent-1-shade); }
.home-nav-play-ico { width: 28px !important; height: 28px; filter: brightness(0) invert(.98) sepia(.2); }
.home-nav-play > span:last-child { color: var(--accent-1); font-weight: 800; }
.nav-badge-dot { width: 10px; height: 10px; top: 2px; right: calc(50% - 20px); }

/* ---------- 3. 다이얼로그 공통 변형 ---------- */
.dialog.gacha, .dialog.settings, .store-dialog, .missions-dialog, .rank-dialog, .stats-dialog {
  width: 100vw; max-width: 480px; height: 100%; max-height: none; border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  margin-top: auto; padding-top: calc(env(safe-area-inset-top) + 18px); box-shadow: none; background: var(--bg);
}
#gachaOverlay, #storeOverlay, #missionsOverlay, #settingsOverlay, #rankOverlay, #statsOverlay,
#parentalSubOverlay, #communitySubOverlay, #langSubOverlay, #orientSubOverlay, #audioSubOverlay { background: var(--bg); align-items: stretch; }
body.home-active #gachaOverlay .dialog, body.home-active #storeOverlay .dialog, body.home-active #missionsOverlay .dialog { padding-bottom: 96px; }
.gacha-back { position: absolute; top: calc(env(safe-area-inset-top) + 12px); left: 12px; width: 40px; height: 40px; background: var(--surface); }
.dialog.settings .gacha-back, .dialog.gacha .gacha-back { background: var(--surface); }
.store-sec-h, .set-section-h, .gacha-cat-h, .mission-section-h, .stats-detail-h, .credits-section-h {
  font-family: var(--f-title); font-weight: 600; font-size: 17px; color: var(--ink); text-align: left; margin: 18px 2px 8px;
  padding-bottom: 8px; background: radial-gradient(circle, var(--surface-3) 1.1px, transparent 1.6px) bottom / 7px 3px repeat-x;
}

/* ---------- 4. 설정 ---------- */
.set-grid { gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.set-tile {
  background: var(--surface); color: var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--shadow-light);
  min-height: 84px; font-family: var(--f-body); font-weight: 700; font-size: 12.5px; gap: 6px;
  transition: transform 160ms var(--ease-waddle);
}
.set-tile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--shadow-light); transition-duration: 70ms; }
.set-tile .set-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 0; }
.set-tile .set-ico img, .set-tile .set-ico .ps-ico { width: 24px; height: 24px; }
/* 토글 타일: 켜짐 = 쪽빛 아이콘 받침 + 우상단 체크 점 */
.toggle-tile { position: relative; }
.toggle-tile::after { content: ""; position: absolute; top: 8px; right: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); }
.toggle-tile.on::after, .toggle-tile.active::after, .toggle-tile[aria-pressed="true"]::after { background: var(--accent-2); box-shadow: 0 0 0 3px rgba(47, 111, 126, .18); }
.toggle-tile.on .set-ico, .toggle-tile.active .set-ico { background: rgba(47, 111, 126, .16); }
.set-toggle { background: var(--surface-3); border-radius: 14px; }
.set-tile-dim { opacity: .55; }
.settings-update-tile small { color: var(--ink-soft); font-weight: 600; font-size: 10.5px; }
.sub-screen .set-tile { min-height: 60px; }
.vol-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; padding: 10px 14px; margin-top: 10px; box-shadow: 0 4px 0 var(--shadow-light); }
.vol-row .vol-ico { font-size: 0; } .vol-row .vol-ico .ps-ico { width: 24px; height: 24px; }
.vol-label { font-weight: 700; color: var(--ink); min-width: 64px; text-align: left; }
.vol-row .vol-slider { flex: 1; }
.store-desc { color: var(--ink-soft); font-size: 13px; }

/* ---------- 5. 컬렉션(가챠) ---------- */
.gacha-grid { gap: 8px; }
.gacha-grid > div, .gacha-row { gap: 8px; }
.gacha-cell {
  background: var(--surface); color: var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--shadow-light);
  min-height: 92px; padding: 8px 4px 6px; position: relative;
}
/* 친구는 뚜껑 받침 위에 선다(받침은 이미지 자신의 바닥 배경 — 이름을 가리지 않음) */
.gacha-cell img { position: relative; z-index: 1; padding-bottom: 5px; background: radial-gradient(ellipse 44% 5px at 50% calc(100% - 5px), var(--surface-2) 97%, transparent 100%); }
.gacha-cell span { font-family: var(--f-body); font-weight: 700; font-size: 12px; color: var(--ink); }
.gacha-cell.locked { background: var(--surface-3); box-shadow: 0 4px 0 var(--shadow-light); }
.gacha-cell.locked img { visibility: hidden; }
.gacha-cell.locked::after { content: ""; position: absolute; left: 50%; top: 22px; width: 24px; height: 24px; margin-left: -12px; background: var(--i-help) center / 100% 100%; opacity: .55; }
.gacha-cell.locked span { color: var(--ink-soft); }
.gacha-cell.set-off { background: var(--surface-2); }
.gacha-cell.set-off img { opacity: .5; }
.gacha-cell.equipped, .gacha-cell.on { box-shadow: 0 4px 0 var(--hint), inset 0 0 0 0 transparent; }

.gacha-select-count { font-family: var(--f-num); font-weight: 800; color: var(--accent-2); }
.gacha-random-hint { color: var(--ink-soft); font-size: 13px; }
.rank-pill { background: var(--chip); color: var(--chip-ink); border-radius: 999px; box-shadow: 0 2px 0 var(--chip-shade); font-weight: 800; }
.partner-badge { background: var(--accent-2); color: var(--surface); border-radius: 8px; }

/* ---------- 6. 상점 ---------- */
.store-card {
  background: var(--surface); color: var(--ink); border-radius: var(--r-panel); box-shadow: 0 4px 0 var(--shadow-light);
  padding: 14px; margin-bottom: 12px; text-align: center; position: relative;
}
.store-card-title { font-family: var(--f-title); font-weight: 600; font-size: 19px; color: var(--ink); }
.store-card-desc { color: var(--ink-soft); font-size: 13px; line-height: 1.4; }
.store-card-art { background: none; }
.store-card-art-emoji { font-size: 0; display: flex; align-items: center; justify-content: center; min-height: 72px; }
.store-card-art-emoji .ps-ico { width: 48px; height: 48px; }
.store-card-badge { background: var(--chip); color: var(--chip-ink); border-radius: 999px; box-shadow: 0 2px 0 var(--chip-shade); font-family: var(--f-num); font-weight: 800; font-size: 12px; padding: 3px 10px; animation: none !important; }
.store-card-badge .ps-ico { width: 16px; height: 16px; }
.store-card-buy {
  min-height: 48px; border-radius: var(--r-btn); padding: 8px 18px; margin-top: 10px;
  background: var(--accent-1); color: var(--surface); box-shadow: inset 0 3px 0 var(--accent-1-hi), 0 4px 0 var(--accent-1-shade);
  font-family: var(--f-title); font-weight: 600; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform 160ms var(--ease-waddle);
}
.store-card-buy:active { transform: translateY(3px); box-shadow: inset 0 3px 0 var(--accent-1-hi), 0 1px 0 var(--accent-1-shade); }
.store-card-buy:disabled, .store-card-buy.owned, .store-card-buy[disabled] { background: var(--surface-3); color: var(--ink-mute); box-shadow: none; }
.store-card-buy img, .store-card-buy .coin-ico { width: 20px; height: 20px; }
.store-daily-double { background: var(--accent-2); box-shadow: inset 0 3px 0 var(--accent-2-hi), 0 4px 0 var(--accent-2-shade); font-size: 14px; min-height: 40px; }
.store-flockbox { background: #D0EBEC; border-radius: 12px; }
.store-chickbox { background: #E6F1E2; }
.store-feat-row { gap: 8px; }
.store-feat-item { background: var(--surface-2); border-radius: 12px; padding: 8px 4px; box-shadow: 0 3px 0 var(--shadow-light); color: var(--ink); font-weight: 700; font-size: 12px; }
.store-feat-buy { background: var(--accent-1); color: var(--surface); border-radius: 10px; box-shadow: 0 3px 0 var(--accent-1-shade); font-weight: 800; }
.store-pkg-scene { background: #D0EBEC; border-radius: 12px; }
.wishlist-banner { background: var(--surface); border-radius: 14px; box-shadow: 0 4px 0 var(--hint); color: var(--ink); font-weight: 700; }
.dg-countdown { color: var(--ink-soft); font-family: var(--f-num); font-weight: 800; }
.store-card-contents { gap: 8px; }
.store-card-contents img { background: var(--surface-2); border-radius: 12px; padding: 6px; }

/* ---------- 7. 미션 ---------- */
.missions-currency-wrap { position: absolute; top: calc(env(safe-area-inset-top) + 16px); right: 12px; }
.mission-bar { background: none; }
.m-row, .mission-row {
  background: var(--surface); border-radius: 14px; box-shadow: 0 4px 0 var(--shadow-light); color: var(--ink);
  padding: 12px 14px; margin-bottom: 10px; text-align: left;
}
.m-row-title, .m-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.m-row-progress { color: var(--ink-soft); font-family: var(--f-num); font-weight: 800; font-size: 13px; }
.m-row-claim, .m-claim-cta {
  background: var(--accent-1); color: var(--surface); border-radius: 10px; box-shadow: inset 0 2px 0 var(--accent-1-hi), 0 3px 0 var(--accent-1-shade);
  font-family: var(--f-title); font-weight: 600; font-size: 14px; min-height: 36px; padding: 6px 14px;
}
.m-row-done { background: rgba(58, 122, 60, .10); }
.m-row.claimable, .mission-bar.claimable { box-shadow: 0 4px 0 var(--hint); }
.reward-gold { font-family: var(--f-num); font-weight: 800; color: var(--gold-ink); }

/* ---------- 8. 통계·랭킹 ---------- */
.stats-hi-card, .stats-donut-card, .stats-row, .stats-grid > div {
  background: var(--surface); border-radius: 14px; box-shadow: 0 4px 0 var(--shadow-light); color: var(--ink);
}
.shi-val, .sr-value { font-family: var(--f-num); font-weight: 800; font-size: 24px; color: var(--ink); }
.shi-label, .sr-label, .sd-label { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.how-body { color: var(--ink); font-size: 15px; line-height: 1.5; }

/* ---------- 9. 승리·게임오버·확인창 ---------- */
.overlay.win { background: rgba(28, 36, 51, .45); }
.win-dialog { background: var(--surface); }
.win-dialog h1 { font-size: 30px; background: none; padding-bottom: 4px; margin-bottom: 2px; }
.win-sub { color: var(--ink-soft); }
.win-points { font-family: var(--f-num); color: var(--ink); }
.wp-row, .win-stats > div { background: var(--surface-2); border-radius: 12px; color: var(--ink); }
.wp-total-num, .wp-val { font-family: var(--f-num); font-weight: 800; color: var(--ink); }
.wp-total { background: var(--gold-hi); color: var(--gold-ink); border-radius: 12px; box-shadow: inset 0 3px 0 var(--gold), 0 4px 0 var(--gold-shade); }
.wp-total .wp-total-num { color: var(--gold-ink); font-size: 30px; }
.win-troupe, .over-troupe { background: var(--surface-2); border-radius: 14px; }
.win-close-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; font-size: 0; }
.win-close-x .ps-ico, .how-close .ps-ico, .gs-close .ps-ico, .rate-close .ps-ico, .rs-round-btn .ps-ico { width: 16px; height: 16px; font-size: 16px; }
.how-close, .gs-close { font-size: 0; width: 40px; height: 40px; }
.win-share-card { background: var(--surface-2); color: var(--ink); border-radius: var(--r-btn); box-shadow: 0 4px 0 var(--shadow-light); font-weight: 700; min-height: 44px; margin-top: 12px; }
.win-share-card .wsc-ico { font-size: 0; }
.win-share-card .wsc-ico img, .win-share-card .ps-ico { width: 22px; height: 22px; }
.rate-banner { background: var(--surface-2); border-radius: 12px; color: var(--ink); font-weight: 700; }
.rate-thumb { font-size: 0; } .rate-thumb .ps-ico { width: 22px; height: 22px; }
.over h1 { font-size: 22px; }
.over-tear { display: none; }
.over-face img { animation: none !important; }
.mc-badge, .remind-emoji, .rate-emoji, .how-emoji {
  width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 20px; font-size: 0 !important;
  background: var(--surface-2); box-shadow: 0 4px 0 var(--shadow-light); display: flex; align-items: center; justify-content: center;
}
.mc-badge .ps-ico, .remind-emoji .ps-ico, .rate-emoji .ps-ico, .how-emoji .ps-ico { width: 48px; height: 48px; }
.mc-reward { display: inline-flex; align-items: center; gap: 6px; background: var(--chip); color: var(--chip-ink); border-radius: 999px; padding: 6px 14px 6px 8px; box-shadow: 0 2px 0 var(--chip-shade); font-family: var(--f-num); font-weight: 800; font-size: 18px; }
.mc-reward img { width: 24px; height: 24px; }

/* ---------- 10. 뽑기 공개 ---------- */
.reveal-overlay { background: var(--scrim); }
.dialog.reveal { background: var(--surface); }
.reveal-stage { background: #D0EBEC; border-radius: 14px; position: relative; overflow: hidden; }
.reveal-stage::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 46%; height: 12%; margin-left: -23%; border-radius: 50%; background: #AFCFD3; z-index: 0; }
.reveal-img { position: relative; z-index: 1; }
.reveal-glow { opacity: .6; background: repeating-conic-gradient(from 0deg, rgba(255, 246, 214, .75) 0 10deg, transparent 10deg 30deg); border-radius: 50%; animation: psSunburst 30s linear infinite !important; }
.reveal-spark { background: var(--gold); width: 6px; height: 6px; }
.reveal-parallax { display: none; }
.reveal-got { font-family: var(--f-title); font-weight: 600; font-size: 22px; color: var(--ink); }
@keyframes psSunburst { to { transform: rotate(360deg); } }

/* ---------- 11. 캐릭터 상세 ---------- */
.char-detail-overlay { background: var(--bg); }
.dialog.char-detail { background: var(--surface); box-shadow: 0 6px 0 var(--shadow-light); }
.char-detail-stage { background: #D0EBEC; border-radius: 14px; position: relative; }
.char-detail-stage::after { content: ""; position: absolute; left: 50%; bottom: 10%; width: 50%; height: 11%; margin-left: -25%; border-radius: 50%; background: #AFCFD3; z-index: 0; }
.char-detail-img { position: relative; z-index: 1; animation: none; }
.char-detail-parallax { display: none; }
.char-detail-name { font-family: var(--f-title); font-weight: 600; color: var(--ink); background: var(--surface); border-radius: 999px; box-shadow: 0 3px 0 var(--shadow-light); padding: 4px 16px; z-index: 2; }
.char-detail-bio { color: var(--ink); font-size: 15px; line-height: 1.55; text-align: left; }
.char-nav-btn { background: var(--surface); box-shadow: 0 3px 0 var(--shadow-light); }
.char-fav-btn.on, .char-fav-btn.active { background: #F6D5DA; }

/* ---------- 12. 게임 선택 ---------- */
.gs-overlay { background: var(--bg); }
.game-select-dialog { background: var(--bg); box-shadow: none; }
.gs-card { background: var(--table); border-radius: var(--r-panel); box-shadow: 0 6px 0 var(--shadow-table); }
.gs-dots > * { background: var(--surface-3); border-radius: 50%; }
.gs-dots > .on, .gs-dots > .active { background: var(--accent-2); }
#gsName { background: none; }

/* ---------- 13. 크레딧·도움말 ---------- */
.credits-mascot { display: none !important; }
.credits-titlecard, .credits-entry { background: var(--surface-2); border-radius: 12px; color: var(--ink); }
.credits-entry { box-shadow: 0 3px 0 var(--shadow-light); }
.build-row { color: var(--ink-soft); font-family: var(--f-num); font-size: 12px; }
.build-copy-btn { font-size: 0; } .build-copy-btn .ps-ico { width: 18px; height: 18px; }
.how-img { border-radius: 12px; background: var(--surface-2); }
.how-dots > * { background: var(--surface-3); border-radius: 2px; width: 6px; height: 6px; }
.how-dots > .on, .how-dots > .active { background: var(--accent-2); }
.how-close { position: absolute; top: 10px; right: 10px; }

/* ---------- 14. 마을 꾸미기 공방 ---------- */
.village-decor-dialog { background: var(--bg); }
.room-studio { color: var(--ink); }
.rs-header { color: var(--ink); }
.rs-heading strong { font-family: var(--f-title); font-weight: 600; font-size: 20px; color: var(--ink); }
.rs-heading span { color: var(--ink-soft); font-size: 12px; }
.rs-round-btn { width: 40px; height: 40px; font-size: 0; }
.rs-stage { border-radius: 14px; overflow: hidden; }
.rs-empty { background: var(--surface); color: var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--shadow-light); }
.rs-empty span { color: var(--ink-soft); }
.rs-workbench { background: var(--surface); border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
.rs-category-btn { background: var(--surface-2); color: var(--ink-soft); border-radius: 999px; font-weight: 700; box-shadow: 0 2px 0 var(--shadow-light); }
.rs-category-btn.on, .rs-category-btn.active { background: var(--accent-2); color: var(--surface); box-shadow: 0 2px 0 var(--accent-2-shade); }
.rs-item-card { background: var(--surface-2); border-radius: 12px; box-shadow: 0 3px 0 var(--shadow-light); color: var(--ink); }
.rs-item-card.on, .rs-item-card.active, .rs-item-card.selected { box-shadow: 0 3px 0 var(--hint); background: #FFF3CF; }
.rs-edit-copy b { color: var(--ink); } .rs-edit-copy span { color: var(--ink-soft); }
.rs-edit-actions button { background: var(--surface-2); color: var(--ink); border-radius: 10px; box-shadow: 0 3px 0 var(--shadow-light); font-weight: 800; font-size: 18px; min-width: 40px; min-height: 40px; }
.rs-edit-actions button.danger { background: var(--danger); color: #fff; box-shadow: 0 3px 0 var(--danger-shade); }
.rs-reset-btn { background: var(--surface-2); color: var(--ink); border-radius: 10px; box-shadow: 0 3px 0 var(--shadow-light); font-weight: 700; min-height: 40px; padding: 0 12px; }

/* ---------- 15. 게임 중 연출 요소(세트 완성 문구·골드) ---------- */
.set-reward-text, .match-tag, .set-reward-gold, .bonus-reason-tag {
  font-family: var(--f-title) !important; font-weight: 700; color: var(--ink) !important; text-shadow: none !important;
  background: var(--gold); border-radius: 999px; padding: 2px 10px; box-shadow: 0 2px 0 var(--gold-shade);
}
.set-reward-gold { background: var(--chip); color: var(--gold-hi) !important; box-shadow: 0 2px 0 var(--chip-shade); }
.px-spark, .px-pop, .wp-spark { border-radius: 0 !important; }
.sponsor-toast, .god-toast, .toast, #toast {
  background: var(--chip) !important; color: var(--chip-ink) !important; border-radius: 12px !important; box-shadow: 0 3px 0 var(--chip-shade) !important; font-family: var(--f-body); font-weight: 600;
}
.hint { color: var(--ink); }
#loadingScreen { background: var(--table) !important; }
#loadingSpider { content: var(--i-play); width: 48px !important; height: 48px !important; opacity: .0; }
#loadingScreen::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 90px; margin: -45px 0 0 -32px; border-radius: 6px; background: var(--card-back-img) center / 100% 100%; box-shadow: 0 6px 0 var(--shadow-table); animation: psHintHop 480ms var(--ease-waddle) infinite; }
.act .badge img { content: var(--i-ad); width: 14px; height: 14px; }
