/* 상단 바: 로고, 코인·피스(회전), 등급 칩, 톱니바퀴 버튼 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: rgba(11, 7, 9, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.brand em { font-style: normal; color: var(--red-hi); font-weight: 700; }
.wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.wallet.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.15); border-color: var(--gold); } }
.coin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 45%, var(--gold-dk));
  box-shadow: inset 0 0 0 2px #0003;
}
.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* 피스: 세로축으로 빙글빙글 (3초에 한 바퀴). 받을 때는 빠르게 몇 바퀴 돈 뒤 원래 속도로 */
/* 앞면·옆면 층·뒷면을 3D 로 겹쳐 두께(--t)를 만든다. 크기를 바꾸려면 .piece-stage 의 width/height 와 --t 만 바꾸면 된다 */
.piece-stage { --t: 3px; display: inline-block; width: 13px; height: 24px; flex-shrink: 0; perspective: 70px; filter: drop-shadow(0 1px 1px #0008); }
.piece { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; animation: piece-spin 3s linear infinite; }
.piece svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(calc(var(--z) * var(--t) / 2)); }
@keyframes piece-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
/* 판 바깥 테두리 면. 판은 SVG 안에서 가로 2.27%~93.18%, 세로 1.19%~96.43% 자리에 있다 */
.piece .rim { position: absolute; display: block; backface-visibility: visible; }
.piece .rim-l, .piece .rim-r {
  top: 1.19%;
  height: 95.24%;
  width: var(--t);
  background: linear-gradient(180deg, #d8b45c, #9a7428 55%, #7a5a1c);
  transform: rotateY(90deg);
}
.piece .rim-l { left: calc(2.27% - var(--t) / 2); }
.piece .rim-r { left: calc(93.18% - var(--t) / 2); }
.piece .rim-t, .piece .rim-b {
  left: 2.27%;
  width: 90.91%;
  height: var(--t);
  background: linear-gradient(90deg, #e8c870, #a07a2c);
  transform: rotateX(90deg);
}
.piece .rim-t { top: calc(1.19% - var(--t) / 2); }
.piece .rim-b { top: calc(96.43% - var(--t) / 2); background: #6e5018; }
.wallet-piece.bump .piece { animation: piece-spin .45s linear 3, piece-spin 3s linear 1.35s infinite; }
/* 3D 피스 (js/shell/piece3d.js): 준비되면 같은 자리에 캔버스를 겹쳐 그리고 CSS 피스는 숨긴다. 자리 크기는 그대로 */
.piece-stage.is-3d { position: relative; }
.piece-stage.is-3d .piece { visibility: hidden; }
.piece-stage .piece-3d { position: absolute; left: 50%; top: 50%; width: 22px; height: 30px; transform: translate(-50%, -50%); pointer-events: none; }
/* 3D 를 못 쓰는 기기(WebGL 미지원·움직임 줄이기·3D 끔): CSS 피스를 앞면에서 멈춘 정지 화면 */
.wallet-piece .piece-stage.is-still .piece { animation: none; }
.wallet-piece.bump { animation: bump-piece .6s ease; }
@keyframes bump-piece { 40% { transform: scale(1.2); border-color: var(--gold); } }
/* 등급 */
.tier-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 7px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--tier, #cd7f32) 55%, var(--line));
  color: var(--tier, #cd7f32);
  white-space: nowrap;
}
.tier-badge { flex-shrink: 0; vertical-align: -3px; }
@media (max-width: 560px) {
  .tier-chip span { display: none; }
  .tier-chip { padding: 5px; }
}
@media (max-width: 400px) {
  .wallet { padding: 5px 9px 5px 7px; gap: 6px; }
  .topbar-right { gap: 6px; }
}
.icon-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); cursor: pointer; font-size: 16px; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { border-color: var(--red); }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 460px) {
  /* 좁은 화면: 상단 바 글자 제목은 숨기고 로고만 (홈 화면 큰 제목과 겹친다) */
  .brand span { display: none; }
}
button.tier-chip { cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; transition: border-color .15s ease, transform .15s ease; }
button.tier-chip:hover, button.tier-chip[aria-expanded="true"] { border-color: var(--tier, #cd7f32); }
button.tier-chip:active { transform: scale(.95); }
.icon-btn { position: relative; display: grid; place-items: center; color: var(--text); padding: 0; }
.icon-btn svg { transition: transform .4s ease; }
.icon-btn[aria-expanded="true"] svg { transform: rotate(60deg); }
.mute-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--bg);
}
.mute-dot::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: #fff;
  transform: rotate(-45deg);
}
.mute-dot[hidden] { display: none; }
/* 상단 바 */
.topbar {
  z-index: 10;
  background: rgba(6, 5, 9, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand img { flex-shrink: 0; border-radius: 9px; box-shadow: 0 0 0 1px var(--line-hi), 0 6px 18px -6px rgba(255, 45, 75, .6); }
.wallet, .tier-chip, .icon-btn { background: var(--surface); border-color: var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset; }
.icon-btn { color: var(--text); display: grid; place-items: center; transition: background .2s var(--ease), border-color .2s var(--ease); }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { border-color: rgba(255, 45, 75, .6); background: var(--surface-hi); }
.topbar {
  background: rgba(10, 7, 16, .72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(208, 160, 200, .3), transparent) 1;
}
.brand { min-width: 0; letter-spacing: -.02em; font-weight: 800; }
.brand img {
  border-radius: 9px;
  filter: saturate(.9) contrast(1.06) brightness(1.04);
  box-shadow:
    0 0 0 1px rgba(220, 200, 220, .35),
    0 0 14px -2px rgba(224, 100, 154, .5),
    0 8px 18px -8px rgba(0, 0, 0, .9);
}
.brand em {
  font-style: normal;
  font-weight: 900;
  background: var(--chrome-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wallet, .tier-chip, .icon-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-hi);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .09) inset, 0 6px 16px -8px rgba(0, 0, 0, .8);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { border-color: rgba(224, 100, 154, .55); background: var(--surface-hi); }
.tier-chip {
  border-color: color-mix(in srgb, var(--tier, #cd7f32) 45%, transparent);
  color: var(--tier, #cd7f32);
  text-shadow: 0 0 12px color-mix(in srgb, var(--tier, #cd7f32) 55%, transparent);
}
button.tier-chip:hover, button.tier-chip[aria-expanded="true"] {
  border-color: var(--tier, #cd7f32);
  background: color-mix(in srgb, var(--tier, #cd7f32) 10%, transparent);
}
/* 코인: 금색 유지 (재화 표시) */
.coin {
  background: radial-gradient(circle at 35% 30%, #fff6cf, var(--gold) 45%, var(--gold-dk) 85%);
  box-shadow: inset 0 0 0 2px rgba(60, 40, 5, .35), 0 0 8px -2px rgba(232, 193, 96, .7);
}
.wallet { color: var(--text); font-weight: 700; }
.wallet-piece { border-color: color-mix(in srgb, var(--gold-dk) 55%, var(--line)); }
@media (max-width: 400px) {
  .topbar { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .wallet { padding: 5px 9px 5px 7px; gap: 6px; font-size: 13px; }
  .topbar-right { gap: 6px; }
  .icon-btn { width: 36px; height: 36px; }
}
.brand span { background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand img { object-fit: cover; }

/* ===== 상점 (js/shell/shop.js, 2026-11-27): 피스·코인 표시를 누르면 열린다. 폰은 아래에서 올라오는 창, PC 는 가운데 창 ===== */
.wallet-btn { cursor: pointer; transition: border-color .15s, background .15s; }
.wallet-btn:hover { border-color: rgba(232, 193, 96, .6); }
.wallet-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.shop-wrap {
  position: fixed; inset: 0; z-index: 58; /* 확인 창(.modal, 60) 아래 */
  display: grid; place-items: center; padding: 16px;
  background: rgba(5, 2, 4, .74); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  animation: shop-fade .18s ease-out;
}
.shop {
  width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; box-sizing: border-box;
  padding: 16px 16px 18px; border-radius: 18px;
  border: 1px solid rgba(232, 193, 96, .3);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(232, 193, 96, .14), transparent 70%),
    linear-gradient(180deg, #1b0d14, #0c0609);
  box-shadow: 0 26px 60px -20px rgba(0, 0, 0, .95), 0 0 34px rgba(232, 193, 96, .1);
  animation: shop-up .24s cubic-bezier(.2, .9, .3, 1.1);
}
.shop-title { display: block; width: fit-content; margin: 0 auto; text-align: center; line-height: 1.2; font-size: 24px; font-weight: 900; font-style: italic; letter-spacing: -.02em;
  padding: 0 .28em; /* 좌우를 같게 둬서 가운데가 어긋나지 않게. 기울어진 글자의 오른쪽 끝이 잘리지 않게 (배경을 글자 모양으로 자르는 글자는 상자 밖이 안 보인다. 2026-11-29 사용자 제보) */
  background: linear-gradient(180deg, #fff6d8, #e8c160 55%, #a97a22); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shop { position: relative; }
.shop-x { position: absolute; top: 12px; right: 12px; z-index: 3; min-width: 40px; min-height: 40px; padding: 0; }
.shop .shop-piece { width: 12px; height: 22px; flex: none; }
.shop-pane { margin-top: 24px; }
.shop-pane[hidden] { display: none; }
/* 피스 상점: 준비 중 */
/* 코인 상점 */
.shop-rate { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px;
  background: rgba(232, 193, 96, .08); border: 1px dashed rgba(232, 193, 96, .4); font-size: 16px; }
.shop-rate b { font-weight: 900; color: #ffe7a6; }
.shop-have { display: flex; justify-content: space-between; gap: 10px; margin: 12px 2px 0; }
.shop-have > span { display: inline-flex; align-items: center; gap: 6px; }
.shop-have small, .shop-qty > small, .shop-cost small { font-size: 12px; color: var(--muted); font-weight: 700; }
.shop-have b { font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.shop-have .coin { width: 16px; height: 16px; }
.shop-qty { display: grid; gap: 6px; margin-top: 14px; }
.shop-step { display: grid; grid-template-columns: 44px 1fr 44px auto auto; align-items: center; gap: 6px; }
.shop-step .btn { min-height: 44px; padding: 0 10px; font-weight: 900; }
.shop-step b { text-align: center; font-size: 26px; font-weight: 900; font-style: italic; font-variant-numeric: tabular-nums; }
.shop-cost { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 12px; }
.shop-cost .coin { width: 16px; height: 16px; }
.shop-cost b { font-size: 20px; font-weight: 900; color: #ffe7a6; font-variant-numeric: tabular-nums; }
.shop-cost b.short { color: #ff6b7d; }
.shop-buy { width: 100%; min-height: 52px; margin-top: 12px; font-size: 17px; font-weight: 900; }
.shop-warn { margin: 8px 0 0; text-align: center; font-size: 13px; font-weight: 700; color: #ff8a98; }
@keyframes shop-fade { from { opacity: 0; } }
@keyframes shop-up { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@media (max-width: 640px) {
  .shop-wrap { place-items: end center; padding: 0; }
  .shop { width: 100%; max-height: 90dvh; border-radius: 20px 20px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .shop-wrap, .shop { animation: none; } }

/* ---------- 폰 게임 화면: 위쪽 막대를 톱니바퀴 하나로 줄인다 (2026-11-29 사용자 지시 "폰에서는 게임 화면을 들어가면 제일 상단의 탭에 설정 버튼 빼고는 나머지는 필요없어보이는데") ----------
   게임 화면(main 안에 .play-head 가 있을 때)에서만. 로고·등급·피스·코인은 숨기고, 톱니바퀴만 오른쪽 위에 띄운다.
   막대가 차지하던 한 줄(약 60px)이 판에 돌아간다. 피스·코인은 결과 화면의 보상 표시와 홈에서 본다 */
@media (max-width: 480px) {
  html.in-play .topbar {
    position: fixed; top: 0; right: 0; left: auto;
    padding: calc(8px + env(safe-area-inset-top)) 10px 0 0;
    background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
    pointer-events: none;
  }
  html.in-play .topbar > .brand,
  html.in-play .topbar .tier-chip,
  html.in-play .topbar .wallet { display: none; }
  html.in-play .topbar #sound-btn { pointer-events: auto; width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
  html.in-play main { padding-top: calc(8px + env(safe-area-inset-top)); }
  html.in-play .play-head { padding-right: 44px; }
  html.in-play .sound-panel { top: calc(52px + env(safe-area-inset-top)); }
}

/* 부의 징표: 피스 왼쪽 칸. 검은 돌 큐브에 금빛 홈 (3D 는 js/shell/wealth3d.js, 그 전과 3D 가 안 되는 기기에서는 같은 모습의 정지 그림) */
.wallet-wealth { border-color: color-mix(in srgb, var(--gold) 38%, var(--line)); }
.wealth-stage { position: relative; display: inline-block; width: 18px; height: 18px; margin: 0 4px 0 2px; flex-shrink: 0; filter: drop-shadow(0 0 3px rgba(255, 176, 64, .5)); }
.wealth-stage .wealth-still, .wealth-stage .wealth-canvas { position: absolute; left: 50%; top: 50%; width: 23px; height: 23px; max-width: none; transform: translate(-50%, -50%); pointer-events: none; }
.wealth-stage.is-3d .wealth-still { visibility: hidden; } /* 3D 가 첫 장을 그린 뒤에만 정지 그림을 숨긴다 */
.wallet-wealth.bump { animation: bump-wealth .6s ease; }
@keyframes bump-wealth { 40% { transform: scale(1.16); border-color: var(--gold); box-shadow: 0 0 14px -2px rgba(255, 190, 80, .7); } }
@media (max-width: 400px) {
  .wealth-stage { width: 17px; height: 17px; margin: 0 3px 0 1px; }
  .wealth-stage .wealth-still, .wealth-stage .wealth-canvas { width: 21px; height: 21px; }
}

/* 상점 위쪽의 큰 3D (2026-11-29 사용자 지시): 피스 상점은 큰 피스, 부의 징표 창은 큰 큐브가 가운데에서 돈다 (js/shell/shop.js 의 mountHero) */
/* 여백 (2026-11-29 사용자 "부의 징표 위쪽 여백을 좀 주고 … 여백의 미 … 여유롭게"): 맨 위에 큰 3D, 그 아래 가운데에 제목, 그 아래에 내용.
   창 윗선 ~ 물체 위 56px, 물체 아래 ~ 제목 28px, 제목 ~ 내용 24px (낮은 화면은 44 / 22 / 18).
   물체가 캔버스 안에서 차지하는 자리를 재서 정한 값이다 (tools/pw/hero-gap.mjs). 캔버스 크기를 바꾸면 다시 잰다 */
.shop-hero { position: relative; display: grid; place-items: center; height: 150px; margin: 25px 0 16px; }
.shop-hero::before { /* 뒤에서 번지는 금빛 */
  content: ""; position: absolute; left: 50%; top: 50%; width: 220px; height: 150px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 196, 96, .20), rgba(255, 150, 60, .07) 55%, transparent); pointer-events: none;
}
.shop-hero::after { /* 바닥에 깔리는 빛 */
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 132px; height: 16px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 200, 110, .38), transparent); filter: blur(3px); pointer-events: none;
}
.shop-hero > * { position: relative; z-index: 1; }
.shop-hero .piece-3d { display: block; width: 110px; height: 150px; filter: drop-shadow(0 10px 20px rgba(232, 193, 96, .30)); }
.shop .shop-hero .shop-piece { width: 62px; height: 118px; filter: drop-shadow(0 10px 20px rgba(232, 193, 96, .35)); }
.shop-hero-cube { height: 208px; margin: 9px 0 12px; }
.shop-hero-cube::after { bottom: 14px; width: 150px; }
.shop-hero-frame { width: 208px; height: 208px; border: 0; background: transparent; color-scheme: dark; opacity: 0; transition: opacity .35s ease; touch-action: none; }
.shop-hero-frame.on { opacity: 1; }
.shop-hero-still { width: 190px; height: 190px; object-fit: contain; }
.shop-wealth { text-align: center; padding-bottom: 14px; }
.shop-wealth-have { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px; line-height: 1;
  background: rgba(255, 255, 255, .04); border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line)); }
.shop-wealth-have small { font-size: 13px; line-height: 1; color: var(--muted); font-weight: 700; }
.shop-wealth-have b { font-size: 24px; line-height: 1; font-weight: 900; font-style: italic; color: #ffe7a6; font-variant-numeric: tabular-nums; }
.shop-wealth-how { margin: 20px auto 4px; max-width: 30em; color: var(--text); opacity: .86; font-size: 14.5px; font-weight: 600; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
/* 피스 상점 (2026-11-29 사용자 "상점 문구는 왼쪽으로 치우고 아래쪽이랑 더 가깝게. 피스가 좀 더 강조되게"):
   제목은 내용과 한 묶음으로 왼쪽에 작게, 피스와는 멀리. 부의 징표 창은 가운데 제목 그대로 */
.shop.is-coin .shop-hero { margin-bottom: 34px; }
.shop.is-coin .shop-title { margin: 0; padding-left: .04em; font-size: 20px; }
.shop.is-coin .shop-pane { margin-top: 10px; }
@media (max-height: 700px) {
  .shop.is-coin .shop-hero { margin-bottom: 26px; }
  .shop.is-coin .shop-pane { margin-top: 8px; }
}
@media (max-height: 700px) {
  .shop-hero { height: 117px; margin: 16px 0 12px; }
  .shop-pane { margin-top: 18px; }
  .shop-hero .piece-3d { width: 86px; height: 117px; }
  .shop .shop-hero .shop-piece { width: 50px; height: 95px; }
  .shop-hero-cube { height: 176px; margin: 4px 0 6px; }
  .shop-hero-frame { width: 176px; height: 176px; }
  .shop-hero-still { width: 160px; height: 160px; }
}
@media (prefers-reduced-motion: reduce) { .shop-hero-frame { transition: none; } }

/* 부의 징표 보상 알림 창 (js/shell/wealth.js 의 showGrantNotice) */
.modal-card.wealth-notice { max-width: 360px; text-align: center; padding: 20px 20px 18px; border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: 0 0 44px -10px rgba(255, 180, 70, .45); }
.modal-card.wealth-notice img { display: block; width: 132px; height: 132px; margin: -4px auto 4px; filter: drop-shadow(0 0 16px rgba(255, 176, 64, .45)); }
.modal-card.wealth-notice p { margin: 0 0 10px; font-size: 15px; font-weight: 600; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.modal-card.wealth-notice .wealth-notice-n { display: block; margin-bottom: 14px; font-size: 20px; font-weight: 900; font-style: italic; color: #ffe7a6; }
.modal-card.wealth-notice .row { justify-content: center; }
.modal-card.wealth-notice .btn { min-width: 132px; min-height: 46px; }

/* 부의 징표 창, PC·태블릿 (2026-11-29 사용자 "웹 페이지에서는 부의 징표 그 상점 창을 더 크게 띄워줘. 부의 징표를 더 크게 보고싶어").
   폰(640px 이하, 아래에서 올라오는 창)은 그대로 두고, 넓은 화면에서는 창을 넓히고 큐브를 화면 높이에 맞춰 키운다 (작은 노트북에서도 창이 화면 안에 들어가게 vh 로) */
@media (min-width: 641px) {
  .shop.is-wealth { width: min(600px, 100%); padding: 22px 32px 32px; }
  .shop.is-wealth .shop-hero-cube { height: clamp(208px, 50vh, 460px); margin: clamp(8px, 2.6vh, 26px) 0 clamp(12px, 2vh, 22px); }
  .shop.is-wealth .shop-hero-frame { width: clamp(208px, 50vh, 460px); height: clamp(208px, 50vh, 460px); }
  .shop.is-wealth .shop-hero-still { width: clamp(190px, 45vh, 420px); height: clamp(190px, 45vh, 420px); }
  .shop.is-wealth .shop-hero::before { width: clamp(220px, 60vh, 540px); height: clamp(150px, 40vh, 360px); }
  .shop.is-wealth .shop-hero-cube::after { width: clamp(150px, 34vh, 310px); height: 22px; bottom: clamp(14px, 4.5vh, 40px); }
  .shop.is-wealth .shop-title { font-size: 28px; }
  .shop.is-wealth .shop-wealth-have b { font-size: 26px; }
  .shop.is-wealth .shop-wealth-how { font-size: 15.5px; margin-top: 22px; }
}

/* "부의 징표를 사용하시겠습니까?" 창 (js/shell/wealth.js askWealth). 보상 알림 창과 같은 모양에 버튼 두 개 */
.modal-card.wealth-ask .wealth-ask-q { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.modal-card.wealth-ask .wealth-ask-detail { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.modal-card.wealth-ask .wealth-notice-n { font-size: 16px; margin-bottom: 16px; }
.modal-card.wealth-ask .row { gap: 10px; }
.modal-card.wealth-ask .btn { min-width: 112px; }
.modal-card.wealth-ask .pay-piece { display: block; width: 64px; height: 120px; margin: 2px auto 10px; filter: drop-shadow(0 8px 18px rgba(232, 193, 96, .45)); }
.modal-card.wealth-ask.is-piece { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
/* 위아래 여백을 보이는 그림 기준으로 맞춘다: 큐브 그림은 위쪽에 투명한 여백이 있어 그만큼 끌어올린다 */
.modal-card.wealth-ask { padding-bottom: 22px; }
.modal-card.wealth-ask img { margin-top: -21px; }
.modal-card.wealth-ask .pay-piece { margin-top: -5px; }

/* 부의 징표 창의 짧은 설명 (2026-11-29 사용자 지시 "피스와 동등한 효력을 지녔지만 랭크에는 적용되지 않는다") */
.shop-wealth .shop-wealth-how { margin-bottom: 6px; }
.shop-wealth-note { margin: 0 auto 4px; max-width: 30em; font-size: 13px; font-weight: 600; line-height: 1.55; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.shop.is-wealth .shop-wealth-note { font-size: 14px; }
/* 선물 창 (js/shell/wealth.js showGift) */
.modal-card.wealth-gift .wealth-gift-title { display: block; margin: 0 0 6px; font-size: 18px; font-weight: 900; }
.modal-card.wealth-gift img { margin-top: -21px; }
.modal-card.wealth-gift .pay-piece { display: block; width: 64px; height: 120px; margin: -5px auto 10px; filter: drop-shadow(0 8px 18px rgba(232, 193, 96, .45)); }
.modal-card.wealth-gift { padding-bottom: 22px; }
