/* full-bleed world + glass HUD */
body.world-page { overflow: hidden; height: 100vh; height: 100dvh; display: block; }
body.world-page::before { display: none; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; touch-action: none; }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%); }
.hud-top { position: fixed; left: 0; right: 0; top: 0; z-index: 20; background: rgba(7,7,11,.62); }
.hud-top .wrap { width: calc(100% - 32px); }
.cta { margin-left: 4px; }
.cta .arrow { font-family: var(--mono); }
.clock { gap: 8px; }
.clock .sun { width: 9px; height: 9px; border-radius: 50%; background: #ffd166; box-shadow: 0 0 8px #ffd166; transition: background .6s, box-shadow .6s; }
.clock .sun.night { background: #9fb3ff; box-shadow: 0 0 8px #9fb3ff; }

.hud-feed, .hud-steps, .panel { background: rgba(7, 7, 11, 0.62); border-color: rgba(255,255,255,0.1); }
.hud-feed { position: fixed; left: 16px; bottom: 56px; z-index: 20; width: min(420px, calc(100% - 32px)); padding: 12px 14px 8px; max-height: 38vh; overflow: hidden; }
.hud-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.hud-feed .feed .row { padding: 6px 0; }

.hud-steps { position: fixed; right: 16px; bottom: 56px; z-index: 20; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; font-size: 13px; color: var(--muted); }
.hud-steps div { display: flex; align-items: center; gap: 10px; }
.hud-steps b { font-family: var(--display); color: var(--accent); font-size: 12px; width: 18px; height: 18px; border-radius: 6px; border: 1px solid rgba(200,255,61,.4); display: inline-flex; align-items: center; justify-content: center; }

.hud-hint { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 20; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(7,7,11,.7); text-shadow: 0 1px 0 rgba(255,255,255,.25); pointer-events: none; transition: opacity .8s; }
.hud-foot { position: fixed; right: 16px; bottom: 16px; z-index: 20; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(7,7,11,.7); text-shadow: 0 1px 0 rgba(255,255,255,.25); display: flex; gap: 8px; }
.hud-foot a:hover { color: var(--accent); }

.panel { position: fixed; right: 16px; top: calc(var(--header-h) + 14px); z-index: 30; width: min(340px, calc(100% - 32px)); padding: 18px 18px 16px; transform: translateX(24px); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .3s; max-height: calc(100vh - var(--header-h) - 28px); overflow: auto; }
.panel.open { transform: none; opacity: 1; pointer-events: auto; }
.panel-close { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--hair2); background: var(--glass); color: var(--muted); font: 500 12px var(--mono); cursor: pointer; }
.panel-close:hover { color: var(--fg); background: var(--glass2); }
.panel-thumb { width: 100%; aspect-ratio: 1; border-radius: 12px; background: radial-gradient(circle at 50% 60%, var(--g-dim, rgba(255,255,255,.06)), rgba(0,0,0,.25)); border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; overflow: hidden; }
.panel-thumb img { width: 92%; height: 92%; object-fit: contain; image-rendering: auto; }
.panel h2 { margin: 8px 0 10px; font-size: 26px; }
.panel-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-meta { display: grid; grid-template-columns: 82px 1fr; gap: 6px 10px; margin: 0 0 14px; font-size: 13px; }
.panel-meta dt { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.panel-meta dd { margin: 0; color: var(--fg); }
.swatches { display: flex; gap: 4px; flex-wrap: wrap; }
.swatches i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(255,255,255,.18); display: inline-block; }
.panel-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; top: calc(var(--header-h) + 14px); transform: translateX(-50%) translateY(-8px); z-index: 40; padding: 10px 14px; border-radius: 10px; background: rgba(7,7,11,.8); border: 1px solid var(--hair2); font: 12px var(--mono); color: var(--fg); opacity: 0; transition: .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 760px) {
  .cta { display: none; }
  .hud-steps { display: none; }
  .hud-feed { bottom: 44px; max-height: 26vh; width: calc(100% - 32px); }
  .hud-feed .feed .row { grid-template-columns: 48px 90px 60px 1fr; }
  .hud-hint { display: none; }
  .hud-foot { left: 16px; right: auto; }
  .panel { top: auto; bottom: 0; right: 0; left: 0; width: 100%; max-height: 70vh; border-radius: 16px 16px 0 0; transform: translateY(20px); }
  .panel.open { transform: none; }
  .hud-top .clock { display: none; }
}
