/* Extends Viral Heat's warm paper / sunset pink / coastal teal HUD. All rules are local. */
#vh-economy { --vh-paper: var(--paper, #fff3dc); --vh-teal: var(--teal, #9be4cf); position: fixed; inset: 0; z-index: 70; color: var(--vh-paper); font: 15px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; pointer-events: none; }
#vh-economy [hidden], #vh-economy[hidden] { display: none !important; }
#vh-economy button { min-height: 44px; font: inherit; font-weight: 750; color: inherit; cursor: pointer; touch-action: manipulation; border: 0; border-radius: 5px; }
#vh-economy button:focus-visible { outline: 3px solid var(--vh-teal); outline-offset: 3px; }
#vh-economy button:disabled { opacity: 1; cursor: default; }
#vh-economy kbd { font: 700 12px system-ui, sans-serif; }
#vh-wallet { position: absolute; bottom: max(30px, env(safe-area-inset-bottom)); right: max(24px, env(safe-area-inset-right)); text-align: right; text-shadow: 0 2px 4px #14171f; }
#vh-wallet span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
#vh-wallet b { font-size: 28px; line-height: 1.15; color: var(--vh-teal); font-variant-numeric: tabular-nums; }
#vh-economy-prompts { position: absolute; bottom: max(92px, calc(env(safe-area-inset-bottom) + 78px)); right: max(24px, env(safe-area-inset-right)); display: flex; align-items: flex-end; gap: 8px; pointer-events: auto; }
#vh-economy .vh-prompt-short { display: none; }
#vh-economy-prompts button { display: flex; align-items: center; gap: 14px; padding: 10px 15px; background: #17242b; box-shadow: 0 4px 12px #0003; }
#vh-economy-prompts kbd { background: var(--vh-paper); color: #17242b; padding: 3px 7px; border-radius: 3px; }
#vh-economy-prompts button:hover { background: #294048; }
#vh-collect { color: var(--vh-teal) !important; }
#vh-shop { position: absolute; inset: 0; display: flex; justify-content: flex-end; align-items: center; padding: max(20px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)); background: #10151e36; pointer-events: auto; }
#vh-shop-panel { width: min(430px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; background: #181e28; border-radius: 8px; padding: 22px; box-shadow: 0 14px 38px #0005; }
#vh-shop header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
#vh-shop .vh-shop-brand { margin: 0 0 6px; color: #f6cce0; font-size: 10px; font-weight: 800; letter-spacing: .065em; }
#vh-shop h2 { margin: 0; font-size: 30px; line-height: 1.04; font-weight: 900; font-style: italic; letter-spacing: -.025em; overflow-wrap: anywhere; }
#vh-shop-close { width: 44px; flex-shrink: 0; padding: 0; background: #2e3440; font-size: 28px !important; line-height: 1; }
#vh-shop-close:hover { background: #49505e; }
#vh-shop .vh-shop-balance { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 0 18px; }
#vh-shop .vh-shop-balance span { font-size: 14px; color: #d2dae6; }
#vh-shop .vh-shop-balance strong { font-size: 25px; color: var(--vh-teal); font-variant-numeric: tabular-nums; }
#vh-shop-tabs { display: flex; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid #424a55; }
#vh-shop-tabs button { flex: 1; background: #2c3440; padding: 8px 12px; }
#vh-shop-tabs button[aria-pressed="true"] { background: #f1b9cb; color: #211e29; }
#vh-shop-tabs button:hover:not([aria-pressed="true"]) { background: #424d5c; }
#vh-shop-note { margin: 14px 0 8px; color: #d2dae6; font-size: 13px; }
#vh-shop-items { display: flex; flex-direction: column; }
#vh-shop .vh-shop-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid #353e4b; }
#vh-shop .vh-item-art { color: #f1b9cb; }
#vh-shop .vh-item-art svg { display: block; width: 44px; height: 30px; }
#vh-shop .vh-shop-item h3 { margin: 0 0 4px; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--vh-paper); line-height: 1.2; }
#vh-shop .vh-shop-item p { margin: 0; font-size: 12px; color: #d2dae6; line-height: 1.4; }
#vh-shop .vh-shop-item small { display: block; margin-top: 5px; color: #f9cfb6; font-size: 12px; }
#vh-shop .vh-shop-item button { min-width: 80px; background: var(--vh-teal); color: #142b27; padding: 9px 10px; font-variant-numeric: tabular-nums; }
#vh-shop .vh-shop-item button:hover:not(:disabled) { background: #c4f6e7; }
#vh-shop .vh-shop-item button:disabled { background: #343e4b; color: #e1e6ed; }
#vh-shop-feedback { min-height: 40px; margin: 14px 0 8px; font-size: 13px; color: var(--vh-teal); }
#vh-shop-feedback[data-error="true"] { color: #ffc3bd; }
#vh-shop footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #d2dae6; font-size: 11px; }
#vh-shop footer kbd { color: var(--vh-paper); }
#vh-shop .vh-shop-empty { padding: 24px 0; color: #d2dae6; }
#vh-economy-feedback { position: absolute; bottom: 190px; right: max(24px, env(safe-area-inset-right)); max-width: min(350px, 85vw); margin: 0; padding: 9px 13px; border-radius: 5px; color: var(--vh-teal); background: #18202c; box-shadow: 0 4px 12px #0003; }
@media (pointer: coarse), (max-width: 600px) {
  /* The five incumbent touch controls fill the right corner. Keep these above the left stick.
     The complete personal balance remains visible inside the shop on narrow screens. */
  #vh-wallet { display: none; }
  #vh-economy-prompts { right: auto; left: max(12px, env(safe-area-inset-left)); bottom: calc(max(30px, env(safe-area-inset-bottom)) + 146px); }
  #vh-economy-prompts button { padding: 8px; font-size: 14px; }
  #vh-economy-prompts kbd, #vh-economy .vh-prompt-long { display: none; }
  #vh-economy .vh-prompt-short { display: inline; }
  #vh-shop { padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)); }
  #vh-shop-panel { padding: 18px; }
  #vh-shop .vh-shop-item { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
  #vh-shop .vh-item-art svg { width: 34px; }
  #vh-shop .vh-shop-item button { min-width: 73px; }
  #vh-economy-feedback { bottom: max(354px, calc(env(safe-area-inset-bottom) + 344px)); right: 12px; }
}
@media (max-height: 480px) {
  #vh-shop { padding: 8px; }
  #vh-shop-panel { padding: 14px 18px; width: min(540px, 100%); }
  #vh-shop h2 { font-size: 25px; }
  #vh-shop .vh-shop-balance { margin: 8px 0; }
  #vh-shop .vh-shop-item { padding: 10px 0; }
}
