  /* ═══════════ PHASE 2: coins, nav, gallery, badges, shop ═══════════ */
  .hudPill { padding: 5px 10px; border-radius: 999px; background: var(--grad-card); border: 1px solid var(--line); box-shadow: var(--lift-sm), var(--sheen); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
  #hud .hudPill .ico { width: 1.15em; height: 1.15em; }   /* slightly smaller icon inside the tight HUD pills */
  #hudCoins { color: var(--s2); }

  /* legacy nav row; the skinned title screen overrides this with a fixed 5-column grid */
  /* (legacy in-screen nav rule removed 2026-06-23 — nav is now a body-level shared element, see .titleNav above) */
  .navBtn { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 66px; padding: 10px 8px; font-size: 12px; font-weight: 600; }
  .navBtn .navIcon { font-size: 22px; }
  .navBtn.done { border-color: var(--s3); color: var(--good); }

  /* Win reward: a quiet label plus one settlement number. Stars + verdict own the result tier above it. */
  .winCoins {
    min-height: 42px;
    margin: 0;
    line-height: 1;
  }
  .winCoins::before {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    margin: 0 auto 7px;
    background: linear-gradient(90deg, transparent, rgba(115,73,21,.46), transparent);
  }
  .winCoins:empty { min-height: 0; }
  .winCoins:empty::before { display: none; }
  .winCoins .winReward {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    line-height: 1;
  }
  .winCoins .winRewardLabel {
    color: #765129;
    font-family: system-ui, sans-serif;
    font-size: clamp(12px, 3.2vw, 13px);
    font-weight: 850;
    text-shadow: 0 1px 0 rgba(255,248,222,.72);
  }
  .winCoins .winRewardAmount {
    color: var(--gold);
    font-family: 'Jua', system-ui, sans-serif;
    font-size: clamp(21px, 5.9vw, 24px);
    font-weight: 400;
    -webkit-text-stroke: 1.4px var(--gold-deep); paint-order: stroke fill;
    text-shadow: 0 2px 0 var(--gold-deep), 0 4px 7px rgba(60,34,4,.4);
  }
  /* 조각 귀속 P1 — 조각 하나가 카드에 박힐 때마다 보상 숫자가 아주 짧게 부푼다. 숫자가 먼저 반응해야
     조각이 그걸 밀어 올린 것처럼 읽힌다(연출 헌법 §4.3 "숫자 변화·도착 충격을 같은 순간에").
     ⚠️ scale만 쓰는 키프레임이 안전한 이유: .winReward는 transform으로 중앙정렬하지 않는다(부모 .winCoins가
     left/right+margin으로 잡는다). HUD 숫자처럼 translate(-50%,-50%)로 앉은 요소에 scale-only 키프레임을
     걸면 그 translate가 날아가 숫자가 밀린다 — 이 저장소가 세 번 겪은 함정이라 여기 못 박아 둔다. */
  /* 쫀득 물리 적용(2026-08-02, §4.6): 균일 scale(1.09) 단봉 → 부피보존 스쿼시/스트레치 2단, .18s→.25s(×1.39). */
  .winCoins .winReward.rewardTick { animation: winRewardTick .25s linear; }
  @keyframes winRewardTick {
    0%   { transform: scale(1); animation-timing-function: ease-in-out; }
    40%  { transform: scaleX(1.15) scaleY(1.03); animation-timing-function: ease-in-out; }
    75%  { transform: scaleX(.99) scaleY(1.05); animation-timing-function: ease-in-out; }
    100% { transform: scale(1); }
  }
  html[data-motion="reduced"] .winCoins .winReward.rewardTick { animation: none; }

  /* costume starlightBonus perk acknowledgment (2026-07-17): a quiet pill under the main reward line —
     never as loud as .winReward, this only needs to answer "did the costume do anything?" with the exact
     extra amount it contributed this clear. Same quiet-gold-pill treatment the win card uses for secondary info. */
  .winCoins .winCostumeBonus {
    display: flex; align-items: center; gap: 4px; width: max-content;
    margin: 3px auto 0; padding: 2px 9px 3px; border-radius: 999px;
    border: 1px solid rgba(255,223,144,.42); background: rgba(70,47,20,.34);
    color: #ffefbd; font-family: system-ui, sans-serif; font-weight: 700;
    font-size: clamp(12px, 2.9vw, 12px); line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,245,190,.18);
  }
  .winCoins .winCostumeBonus .ico { width: 1.05em; height: 1.05em; }
  .stageRewardFlightLayer { position: fixed; inset: 0; z-index: 82; pointer-events: none; overflow: visible; }
  .stageRewardFlight {
    position: fixed; left: 0; top: 0; pointer-events: none; will-change: transform, opacity;
    filter: drop-shadow(0 0 7px #fff) drop-shadow(0 0 14px rgba(255,210,50,.9));
  }
  .stageRewardFloat {
    position: fixed; z-index: 81; left: 50%; top: 42%; transform: translate(-50%, -50%);
    color: #fff5ae; font-family: 'Jua', system-ui, sans-serif; font-size: clamp(58px, 18vw, 86px); line-height: 1;
    -webkit-text-stroke: 3px #b76608; paint-order: stroke fill;
    text-shadow: 0 4px 0 #713407, 0 0 18px #fff, 0 0 32px rgba(255,205,42,.9);
    pointer-events: none;
  }
  /* echo of the starlight HUD, pinned at its screen position ABOVE the #win scrim — the real HUD is
     trapped inside #game's isolation layer (below the dim), so this makes the count-up actually visible. */
  .stageRewardEcho {                       /* wrapper: centering ONLY (never animated) */
    position: fixed; z-index: 82; transform: translate(-50%, -50%);
    pointer-events: none;
  }
  .stageRewardEcho .echoChip {             /* the pill: this is what pulses (scale), around its center */
    display: flex; align-items: center; gap: 4px;
    padding: 4px 12px 4px 8px; border-radius: 999px;
    background: rgba(20,14,4,.82); border: 1.5px solid rgba(255,210,80,.9);
    box-shadow: 0 0 18px rgba(255,200,60,.65), inset 0 1px 0 rgba(255,255,255,.25);
    color: #fff8ec; font-weight: 900; font-size: clamp(15px, 4.2vw, 18px); line-height: 1;
    will-change: transform, filter;
  }
  .stageRewardEcho img { width: 20px; height: 20px; filter: drop-shadow(0 0 4px rgba(255,210,60,.9)); }
  .stageRewardEcho b { text-shadow: 0 2px 0 #4a2c10, 0 0 8px rgba(255,205,42,.85); }

  /* Shared art utilities kept after the gallery screen was removed (2026-06-25): .galMini = the title hero's
     mini-window (miniWindow()); .artGlass/.artGlass::before/.artEmblem = the restored-artwork glass, still used
     by the chapter VICTORY card below (#chapterWin .artGlass overrides size/position; the global rules supply
     overflow-clip + the diagonal texture overlay). Do not remove. */
  .galMini { display: grid; gap: 1px; background: transparent; padding: 0; overflow: hidden; }
  .galMini i { display: block; border-radius: 1px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 3px rgba(0,0,0,.12); }
  .artGlass { width: 100%; height: 100%; border-radius: 0; overflow: hidden; position: relative; }
  .artEmblem { display: none; }
  /* Grayscale/colour artwork layers. Incomplete windows use one calm grayscale state plus exact X/N text;
     the colour layer appears only at N/N, so chapter size never turns the artwork into a fragment grid. */
  /* host (.artGlass) is already positioned + overflow-hidden, so don't override its position here */
  .artColorize > .artGray, .artColorize > .artColor { content: ""; position: absolute; inset: 0; background: var(--artbg); }
  .artColorize > .artGray { filter: grayscale(1) brightness(.82) contrast(.92); }
  .artColorize > .artColor { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
  .artColorize.art-locked > .artColor { opacity: 0; }
