/* Shared chapter HUD: compass, captions, step prompts. */
#compass { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); width: min(420px, 70vw); height: 30px; overflow: hidden; z-index: 5;
  border-radius: 999px; background: rgba(10,20,38,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); display: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
#hud.on ~ #compass, body.playing #compass { display: block; }
#compass span { position: absolute; top: 50%; transform: translate(-50%, -50%); font: 600 11px Inter, system-ui, sans-serif; color: rgba(238,243,248,.7); letter-spacing: .08em; }
#compass span.card { font-size: 13px; color: #fff; } #compass span.tick { width: 1px; height: 8px; background: rgba(238,243,248,.45); }
#compass::after { content: ""; position: absolute; left: 50%; top: 2px; width: 2px; height: 6px; background: #f2a36b; transform: translateX(-50%); border-radius: 2px; }
#caption { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 8px); width: min(720px, calc(100vw - 32px)); z-index: 6; text-align: center;
  font: 400 16px/1.5 Inter, system-ui, sans-serif; color: #fff; padding: 10px 16px; border-radius: 12px; background: rgba(5,10,20,.72); opacity: 0; transition: opacity .4s, transform .4s; pointer-events: none; }
#caption.on { opacity: 1; transform: translate(-50%, 0); }
#step { position: fixed; left: calc(18px + env(safe-area-inset-left, 0px)); top: calc(56px + env(safe-area-inset-top, 0px)); max-width: 320px; z-index: 5; padding: 10px 14px 10px 12px; border-radius: 12px;
  background: rgba(10,20,38,.62); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); font: 500 14px/1.45 Inter, system-ui, sans-serif; color: #fff; display: none; }
#step::before { content: "Next"; display: block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #f2a36b; font-weight: 600; margin-bottom: 2px; }
#step.on { display: block; }
#prompt { position: fixed; left: 50%; top: calc(50% + 26px); transform: translateX(-50%); font: 500 13.5px Inter, system-ui, sans-serif; padding: 7px 13px; border-radius: 999px; background: rgba(10,20,38,.72); border: 1px solid rgba(255,255,255,.14); opacity: 0; transition: opacity .2s; z-index: 5; pointer-events: none; white-space: nowrap; color: #fff; }
#prompt.on { opacity: 1; }
#cross { position: fixed; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: rgba(255,255,255,.85); display: none; z-index: 5; transition: transform .12s, background .12s; }
#cross.on { display: block; } #cross.hot { background: #f2a36b; transform: scale(2); }
@media (max-width: 760px) { #step { top: auto; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 36px); } }
