:root { --gold: hsl(38,100%,60%); --violet: hsl(265,100%,72%); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #04020b; color: #fff; font-family: 'Outfit', sans-serif; overflow: hidden; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#scene:active { cursor: grabbing; }

.intro { position: fixed; left: 5vw; top: 8vh; pointer-events: none; max-width: 28rem; }
.kicker { margin: 0; letter-spacing: .25em; text-transform: uppercase; font-size: .75rem; color: var(--gold); }
h1 { margin: .2em 0; font: 600 clamp(2.2rem, 6vw, 4.5rem)/1 'Space Grotesk', sans-serif;
     background: linear-gradient(90deg, #fff, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin: 0; color: rgba(255,255,255,.65); font-weight: 300; }

#orbs { position: fixed; right: 5vw; top: 8vh; display: flex; flex-direction: column; gap: .6rem; z-index: 5; }
body.live #orbs { position: static; display: block; }
.orb { display: block; padding: .5rem 1rem; border-radius: 999px; white-space: nowrap;
       color: #fff; text-decoration: none; font: 400 .9rem 'Space Grotesk', sans-serif;
       background: rgba(30,18,60,.55); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px);
       transition: background .25s, border-color .25s, box-shadow .25s; will-change: transform, opacity; }
body.live .orb { position: fixed; left: 0; top: 0; }
.orb:hover, .orb:focus-visible { background: rgba(255,170,40,.28); border-color: var(--gold); box-shadow: 0 0 24px rgba(255,170,40,.5); outline: none; }

.links { position: fixed; right: 5vw; bottom: 5vh; display: flex; gap: 1.2rem; }
.links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem; letter-spacing: .08em; }
.links a:hover { color: var(--gold); }
.hint { position: fixed; left: 5vw; bottom: 5vh; font-size: .75rem; color: rgba(255,255,255,.35); letter-spacing: .1em; }

@media (max-width: 600px) { .intro { top: 5vh; } .hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .orb { transition: none; } }

#palette { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; align-items: flex-start; padding-top: 18vh; background: rgba(5, 2, 12, 0.6); }
#palette[hidden] { display: none; }
.pal-card { width: min(420px, 90vw); background: rgba(20, 10, 40, 0.95); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 12px; overflow: hidden; }
.pal-card input { width: 100%; box-sizing: border-box; padding: 14px 16px; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); color: #fff; font: 400 16px 'Outfit', sans-serif; outline: none; }
.pal-card ul { list-style: none; margin: 0; padding: 6px; }
.pal-card li { padding: 10px 12px; border-radius: 8px; color: #fff; cursor: pointer; font: 400 15px 'Outfit', sans-serif; }
.pal-card li.on, .pal-card li:hover { background: rgba(255, 194, 71, 0.2); }

/* Static sidebar: the same links without chasing a moving target */
.sidebar { position: fixed; right: 2vw; top: 50%; transform: translateY(-50%); z-index: 6;
           display: flex; flex-direction: column; gap: .15rem; padding: .6rem; min-width: 9.5rem;
           background: rgba(20,12,44,.55); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; backdrop-filter: blur(10px); }
.sidebar a, .sidebar button { display: block; padding: .4rem .7rem; border-radius: 8px; border: 0; background: none; text-align: left;
           color: rgba(255,255,255,.8); text-decoration: none; font: 400 .85rem 'Space Grotesk', sans-serif; cursor: pointer; }
.sidebar a:hover, .sidebar a:focus-visible { background: rgba(255,170,40,.22); color: #fff; outline: none; }
.sidebar button { margin-top: .4rem; border-top: 1px solid rgba(255,255,255,.12); border-radius: 0 0 8px 8px; font-size: .7rem; color: rgba(255,255,255,.45); }
.sidebar button:hover, .sidebar button:focus-visible { color: var(--gold); outline: none; }
body.labels-off .orb { display: none; }
@media (max-width: 600px) {
  .sidebar { top: auto; bottom: 0; left: 0; right: 0; transform: none; flex-direction: row; flex-wrap: wrap; justify-content: center; border-radius: 14px 14px 0 0; min-width: 0; }
  .sidebar button { display: none; }
  .links { display: none; }
}
