  /* ═══════════ 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 */
  #hudHints { color: var(--s4); }
  #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: coins earned line */
  .winCoins {
    color: var(--gold);
    font-family: 'Jua', system-ui, sans-serif;
    font-weight: 400;
    font-size: clamp(26px, 7.2vw, 32px);
    line-height: 1;
    min-height: 34px;
    margin: 4px 0 0;
    -webkit-text-stroke: 1.5px var(--gold-deep);
    text-shadow:
      0 2px 0 var(--gold-deep),
      0 4px 7px rgba(60,34,4,.4);
    paint-order: stroke fill;
  }
  /* on-card starlight settlement (quiet-HUD policy: wallet is hidden during play, shown here).
     별빛 +N = the gold reward line; 보유 X → Y = the balance read-out that counts up. */
  .winCoins .winReward {
    display: block; color: var(--gold); font-family: 'Jua', system-ui, sans-serif; font-weight: 400;
    font-size: clamp(21px, 6vw, 27px); line-height: 1;
    -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);
  }
  .winCoins .winBalance {
    display: block; margin-top: 5px; font-family: system-ui, sans-serif; font-weight: 800;
    font-size: clamp(12.5px, 3.5vw, 14.5px); letter-spacing: .01em; color: #f0dca6;
    -webkit-text-stroke: 0; text-shadow: 0 1px 2px rgba(50,30,4,.6);
  }
  .winCoins .winBalance b { color: #fff1c2; font-weight: 900; }
  .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 (owner 2026-06-25): the FULL picture in greyscale, with colour revealed only on
     무결점-collected pieces. paintWindow() sets --artbg (the atlas slice) + the .artColor mask. Used by the chapter
     VICTORY card + the window viewer modal (the map shows a progress chip instead). */
  /* 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; }
