@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@500;700&display=swap');

:root { color-scheme: dark; font-family: "Space Mono", monospace; background: #030303; }
* { box-sizing: border-box; }
html, body, #experience, #canvas-mount { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: #030303; color: #f5f3ee; }
canvas { display: block; width: 100%; height: 100%; }

.vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 38%, rgba(0,0,0,.16) 70%, rgba(0,0,0,.72) 120%); mix-blend-mode: multiply; }
.hud { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 28px 34px; font-size: 10px; letter-spacing: .2em; z-index: 2; }
.brand, .status { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; position: relative; animation: spin 7s linear infinite; }
.brand__mark::after { content: ""; position: absolute; inset: 4px; background: currentColor; border-radius: 50%; }
.status__dot { width: 5px; height: 5px; border-radius: 50%; background: #cbff44; box-shadow: 0 0 9px #cbff44; animation: pulse 1.6s ease-in-out infinite; }

.readout { position: fixed; left: 34px; bottom: 34px; width: 210px; z-index: 2; text-shadow: 0 1px 8px #000; }
.eyebrow, #mode-index { margin: 0; font-size: 8px; letter-spacing: .2em; opacity: .62; }
h1 { margin: 10px 0 13px; font-family: Syne, sans-serif; font-size: clamp(22px, 3vw, 40px); line-height: .88; letter-spacing: -.05em; font-weight: 500; }
.meter { width: 100%; height: 1px; background: rgba(255,255,255,.25); margin-bottom: 9px; overflow: hidden; }
.meter span { display: block; width: 0; height: 100%; background: #fff; }
.hint { position: fixed; left: 50%; bottom: 35px; transform: translateX(-50%); font-size: 8px; letter-spacing: .18em; opacity: .55; white-space: nowrap; z-index: 2; }
.sound { position: fixed; right: 34px; bottom: 30px; z-index: 2; display: flex; gap: 10px; align-items: center; padding: 7px 0; border: 0; background: transparent; color: inherit; font: 8px "Space Mono", monospace; letter-spacing: .16em; cursor: pointer; }
.sound__bars { height: 12px; display: flex; align-items: center; gap: 2px; }
.sound__bars i { display: block; width: 1px; height: 3px; background: currentColor; }
.sound[aria-pressed="true"] .sound__bars i { animation: bars .65s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.2s; }.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.4s; }.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.1s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .25; } }
@keyframes bars { to { height: 12px; } }
@media (max-width: 620px) { .hud { padding: 20px; }.status { display: none; }.readout { left: 20px; bottom: 24px; width: 145px; }.sound { right: 20px; bottom: 20px; }.hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .brand__mark, .status__dot, .sound__bars i { animation: none !important; } }
