:root {
  --holo-veil: linear-gradient(180deg, rgba(16, 22, 42, 0.36), rgba(14, 18, 34, 0.22));
  --holo-veil-strong: linear-gradient(180deg, rgba(16, 20, 38, 0.54), rgba(12, 16, 32, 0.42));
  --holo-edge-gold: rgba(255, 224, 178, 0.48);
  --holo-edge-cyan: rgba(184, 218, 255, 0.34);
  --accent: #b8dcff;
  --accent-warm: #ffe0ad;
  --text-main: #fffaf2;
  --text-muted: rgba(242, 236, 228, 0.78);
  --text-shadow-read: 0 1px 10px rgba(6, 5, 16, 0.94), 0 0 18px rgba(8, 6, 18, 0.75);
  --font-display: 'Lexend Giga', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #0c0d1c;
  color: var(--text-main);
  font-family: var(--font-body);
  user-select: none;
}

body > canvas {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  touch-action: none;
}

.hidden {
  display: none !important;
}

.hud-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, #201a38 0%, #0b0c1a 80%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-star {
  font-size: 2.5rem;
  color: var(--accent-warm);
  text-shadow: 0 0 22px rgba(255, 224, 173, 0.75);
  animation: pulseStar 2s ease-in-out infinite;
}

.preloader-title {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  letter-spacing: 2.5px;
  margin: 14px 0 18px;
}

#progress-bar-container {
  width: 240px;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

#progress-bar-fill {
  width: 8%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transition: width 0.3s ease;
}

@keyframes pulseStar {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.16); opacity: 1; }
}

/* =========================================================
   PANEL-LESS FLOATING HOLOGRAPHIC PERMANENT HUD
   ========================================================= */
.glass-pill {
  background: transparent;
  border: none;
  box-shadow: none;
  text-shadow: var(--text-shadow-read);
}

/* Holographic Projection Surface (used for in-world drawer & modals) */
.glass-card {
  position: relative;
  background: var(--holo-veil);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-top: 1px solid var(--holo-edge-gold);
  border-bottom: 1px solid var(--holo-edge-cyan);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 32px rgba(184, 220, 255, 0.14),
    inset 0 0 26px rgba(255, 224, 173, 0.06);
  border-radius: 3px;
  text-shadow: var(--text-shadow-read);
}

/* Subtle horizontal hologram scanlines */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.028) 0px,
    rgba(255, 255, 255, 0.028) 1px,
    transparent 1px,
    transparent 4px
  );
  z-index: 0;
}

/* Glowing holographic corner reticles */
.glass-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--accent-warm) 12px, transparent 12px) 0 0 / 100% 2px no-repeat,
    linear-gradient(to bottom, var(--accent-warm) 12px, transparent 12px) 0 0 / 2px 100% no-repeat,
    linear-gradient(to left, var(--accent-warm) 12px, transparent 12px) 100% 0 / 100% 2px no-repeat,
    linear-gradient(to bottom, var(--accent-warm) 12px, transparent 12px) 100% 0 / 2px 100% no-repeat,
    linear-gradient(to right, var(--accent) 12px, transparent 12px) 0 100% / 100% 2px no-repeat,
    linear-gradient(to top, var(--accent) 12px, transparent 12px) 0 100% / 2px 100% no-repeat,
    linear-gradient(to left, var(--accent) 12px, transparent 12px) 100% 100% / 100% 2px no-repeat,
    linear-gradient(to top, var(--accent) 12px, transparent 12px) 100% 100% / 2px 100% no-repeat;
  opacity: 0.72;
  z-index: 2;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

.icon-btn,
.pill-btn {
  border: none;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  text-shadow: var(--text-shadow-read);
  transition: color 0.2s ease, transform 0.16s ease, filter 0.2s ease;
}

.icon-btn:hover,
.pill-btn:hover {
  color: var(--accent-warm);
  filter: drop-shadow(0 0 8px rgba(255, 224, 173, 0.65));
  transform: translateY(-1px);
}

.icon-btn.active {
  color: var(--accent-warm);
  filter: drop-shadow(0 0 8px rgba(255, 224, 173, 0.75));
}

.close-x {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-shadow: var(--text-shadow-read);
  transition: color 0.18s ease, transform 0.18s ease;
}

.close-x:hover {
  color: var(--accent-warm);
  transform: scale(1.12);
}

.close-x.top-right {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* Holographic Wireframe Luminous Buttons */
.primary-glow-btn {
  border: 1px solid rgba(255, 224, 173, 0.65);
  background: rgba(255, 224, 173, 0.12);
  color: #fffaf2;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 12px 24px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-shadow: var(--text-shadow-read);
  box-shadow: 0 0 20px rgba(255, 224, 173, 0.2), inset 0 0 14px rgba(255, 224, 173, 0.08);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.16s ease;
}

.primary-glow-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 224, 173, 0.24);
  box-shadow: 0 0 28px rgba(255, 224, 173, 0.42), inset 0 0 16px rgba(255, 224, 173, 0.16);
}

.primary-glow-btn.compact {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.ghost-btn {
  border: 1px solid rgba(184, 220, 255, 0.34);
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 9px 15px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-shadow: var(--text-shadow-read);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ghost-btn:hover {
  background: rgba(184, 220, 255, 0.14);
  border-color: rgba(184, 220, 255, 0.65);
  color: #fff;
}

.ghost-btn.compact {
  padding: 6px 12px;
  font-size: 0.78rem;
}

/* Top Panel-Less HUD */
#top-hud {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

#top-hud > * {
  pointer-events: auto;
}

.artist-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 6px;
  background: linear-gradient(135deg, rgba(8, 22, 34, 0.34), rgba(8, 22, 34, 0.08));
  border-bottom: 1px solid rgba(100, 244, 255, 0.38);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.brand-star {
  color: var(--accent-warm);
  font-size: 1.05rem;
  filter: drop-shadow(0 0 10px rgba(255, 224, 173, 0.85));
}

.artist-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-name {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 1.8px;
  color: rgba(232, 255, 255, 0.92);
}

.artist-sub {
  font-size: 0.78rem;
  color: var(--accent-warm);
  cursor: pointer;
  white-space: nowrap;
}

.controls-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 10px 6px;
  background: linear-gradient(135deg, rgba(8, 22, 34, 0.34), rgba(8, 22, 34, 0.08));
  border-bottom: 1px solid rgba(100, 244, 255, 0.38);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  flex-shrink: 0;
}

#online-count-label {
  white-space: nowrap;
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8ff5c6;
  box-shadow: 0 0 10px #8ff5c6;
}

.online-dot.is-local {
  background: #ffd88a;
  box-shadow: 0 0 8px rgba(255, 216, 138, 0.75);
}

/* Popover Card */
.popover-card {
  position: fixed;
  top: 72px;
  left: max(16px, env(safe-area-inset-left));
  width: min(320px, calc(100vw - 32px));
  padding: 16px 18px;
  z-index: 60;
}

#lantern-reader {
  left: 50%;
  top: 82px;
  transform: translateX(-50%);
}

.popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bio-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 4px;
}

.bio-links a {
  color: var(--accent-warm);
  text-decoration: none;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bio-links a:hover {
  color: #fff;
}

/* Little Fella Meter (Floating Diamonds) */
#fella-meter {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.fella-pips {
  display: flex;
  gap: 7px;
  font-size: 0.95rem;
  color: var(--accent-warm);
  text-shadow: 0 0 12px rgba(255, 224, 173, 0.9);
}

.fella-pips span.spent {
  opacity: 0.22;
  text-shadow: none;
}

.fella-hint {
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  color: var(--text-main);
  text-shadow: var(--text-shadow-read);
}

/* Panel-less Floating Interact Prompt */
#interact-prompt {
  position: static;
  color: var(--accent-warm);
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-shadow: var(--text-shadow-read);
  transition: transform 0.16s ease, filter 0.16s ease;
}

#interact-prompt:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 10px rgba(255, 224, 173, 0.8));
}

.key-cap {
  border: 1px solid rgba(255, 224, 173, 0.65);
  border-radius: 3px;
  padding: 1px 7px;
  font-size: 0.76rem;
  font-family: var(--font-display);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 224, 173, 0.25);
}

/* Minimal Space Intro Overlay */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

#intro-overlay.faded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  pointer-events: auto;
}

.intro-name {
  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 7vw, 4.9rem);
  font-weight: 500;
  letter-spacing: 2.5px;
  margin: 0;
  color: #fffaf2;
  text-shadow: 0 4px 28px rgba(10, 8, 20, 0.85), 0 0 42px rgba(255, 224, 173, 0.45);
}

.intro-cta {
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 2.2vw, 0.96rem);
  letter-spacing: 1.8px;
  padding: 13px 28px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 10, 22, 0.45);
}

.welcome-card {
  position: relative;
  width: min(440px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  padding: 26px 24px;
  text-align: center;
  background: var(--holo-veil-strong);
}

.welcome-card h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 16px;
}

.customizer-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  margin-bottom: 18px;
}

.field-label span,
.field-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field-label input,
.secret-form input,
.lantern-form input,
.lantern-form textarea {
  width: 100%;
  background: rgba(10, 14, 28, 0.35);
  border: 1px solid rgba(184, 220, 255, 0.28);
  border-radius: 3px;
  padding: 10px 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  user-select: text;
}

.field-label input:focus,
.lantern-form textarea:focus {
  border-color: var(--accent-warm);
}

.swatch-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.swatch-btn {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.swatch-btn.active {
  transform: scale(1.14);
  border-color: #fff;
  box-shadow: 0 0 14px currentColor;
}

.hat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hat-pill {
  padding: 6px 11px;
  border-radius: 3px;
  border: 1px solid rgba(184, 220, 255, 0.24);
  background: transparent;
  color: var(--text-main);
  font-size: 0.8rem;
  cursor: pointer;
}

.hat-pill.active {
  background: rgba(255, 224, 173, 0.18);
  border-color: var(--accent-warm);
  color: var(--accent-warm);
}

.welcome-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.welcome-actions .primary-glow-btn {
  flex: 1 1 200px;
}

.form-error {
  color: #ffb0a3;
  font-size: 0.82rem;
  margin: 6px 0 12px;
}

/* =========================================================
   LANTERNS FLOATING PANEL
   ========================================================= */
.drawer-panel {
  position: fixed;
  top: 74px;
  right: max(14px, env(safe-area-inset-right));
  width: min(390px, calc(100vw - 28px));
  max-height: calc(100dvh - 235px);
  z-index: 55;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.24s ease;
}

.drawer-panel.holo-unfurl {
  animation: holoUnfurl 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes holoUnfurl {
  from {
    opacity: 0;
    transform: translateY(10px) scaleY(0.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px 10px;
  border-bottom: 1px solid rgba(255, 224, 173, 0.25);
}

.drawer-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--accent-warm);
}

.drawer-body {
  padding: 12px 18px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Panel-less Hologram List Items */
.work-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: background 0.18s ease;
}

.work-card:last-child {
  border-bottom: none;
}

.work-card:hover {
  background: linear-gradient(90deg, rgba(255, 224, 173, 0.08), transparent);
}

.work-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.work-title {
  font-weight: 600;
  font-size: 0.94rem;
}

.work-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.work-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Music Player inside Hologram */
.music-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 4px;
}

.music-tab-btn {
  flex: 1;
  padding: 6px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  text-shadow: var(--text-shadow-read);
}

.music-tab-btn.active {
  border-bottom-color: var(--accent-warm);
  color: var(--accent-warm);
}

.music-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.music-cover {
  width: 68px;
  height: 68px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid rgba(255, 224, 173, 0.45);
}

.music-meta {
  flex: 1;
  min-width: 0;
}

.music-track-name {
  font-weight: 600;
  font-size: 0.96rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-ep-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

#spectrum-canvas {
  width: 100%;
  height: 42px;
  background: rgba(8, 12, 24, 0.22);
  border-bottom: 1px solid rgba(255, 224, 173, 0.25);
}

.music-scrubber {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  overflow: hidden;
}

.music-scrubber-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  pointer-events: none;
}

.music-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.music-controls-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.music-play-big {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  border: 1px solid rgba(255, 224, 173, 0.65);
  background: rgba(255, 224, 173, 0.16);
  color: #fffaf2;
  font-size: 0.95rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 200px;
  overflow-y: auto;
}

.track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.16s ease, color 0.16s ease;
}

.track-row:hover {
  background: rgba(255, 224, 173, 0.1);
}

.track-row.active {
  background: rgba(255, 224, 173, 0.18);
  color: var(--accent-warm);
  font-weight: 600;
}

.track-dl {
  color: var(--text-muted);
  padding: 4px 6px;
}

.track-dl:hover {
  color: #fff;
}

/* Lanterns */
.lantern-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 224, 173, 0.25);
}

.lantern-quote {
  font-size: 1rem;
  line-height: 1.45;
  margin: 4px 0 8px;
}

.lantern-badge {
  font-weight: 600;
  color: var(--accent-warm);
}

/* Synced Lyrics */
#lyric-display {
  position: fixed;
  top: 24%;
  left: 50%;
  transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) scale(var(--scale, 1));
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.6vw, 2.3rem);
  text-align: center;
  pointer-events: none;
  z-index: 35;
  letter-spacing: 4px;
  width: min(86vw, 820px);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.25s ease-out;
  background: linear-gradient(90deg, #fff 0%, #b8dcff 25%, #fff 50%, #ffe0ad 75%, #fff 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3.5s linear infinite;
  filter: drop-shadow(0 0 14px rgba(255, 224, 173, 0.7));
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

/* Floating Holographic Toast */
#toast-pill {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translate(-50%, -8px);
  z-index: 95;
  padding: 6px 16px;
  background: rgba(14, 18, 34, 0.45);
  border-bottom: 1px solid var(--accent-warm);
  color: var(--text-main);
  font-size: 0.85rem;
  text-shadow: var(--text-shadow-read);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#toast-pill.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Embedded Portal Overlay */
.portal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 12, 24, 0.92);
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  gap: 10px;
}

.portal-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#portal-iframe {
  flex: 1;
  width: 100%;
  border: 1px solid rgba(184, 220, 255, 0.25);
  border-radius: 3px;
  background: #000;
}

/* =========================================================
   BOTTOM PANEL-LESS FLOATING HOLOGRAPHIC HUD
   ========================================================= */
#bottom-hud {
  position: fixed;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(920px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

#bottom-hud > * {
  pointer-events: auto;
}

#mini-music-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: linear-gradient(90deg, rgba(6, 22, 34, 0.42), rgba(12, 36, 48, 0.2));
  border-bottom: 1px solid rgba(100, 244, 255, 0.45);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  max-width: 90%;
}

.mini-track-info {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.9px;
  font-weight: 500;
  cursor: pointer;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: var(--text-shadow-read);
}

.bottom-micro-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.micro-toggle-btn {
  width: 34px;
  height: 28px;
  border: none;
  background: linear-gradient(135deg, rgba(10, 32, 46, 0.44), rgba(6, 18, 28, 0.16));
  box-shadow: inset 0 0 0 1px rgba(100, 244, 255, 0.34);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  color: #b8fbff;
  font-size: 0.82rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-shadow: var(--text-shadow-read);
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.16s ease;
}

.micro-toggle-btn:hover,
.micro-toggle-btn.active {
  color: #fff6db;
  background: linear-gradient(135deg, rgba(18, 56, 76, 0.72), rgba(10, 32, 46, 0.34));
  box-shadow: inset 0 0 0 1px #ffe0ad, 0 0 12px rgba(100, 244, 255, 0.34);
  transform: translateY(-1px);
}

.social-popover {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  width: min(420px, calc(100vw - 24px));
  background: linear-gradient(135deg, rgba(6, 22, 34, 0.78), rgba(6, 22, 34, 0.56));
  border-bottom: 1px solid rgba(100, 244, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(100, 244, 255, 0.24), 0 0 20px rgba(0, 0, 0, 0.45);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  animation: popReveal 0.18s ease-out;
}

.emote-popover {
  width: auto;
  padding: 5px 10px;
}

@keyframes popReveal {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-feed {
  width: min(420px, 100%);
  max-height: 92px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 8px 2px;
  background: transparent;
  border: none;
  font-size: 0.84rem;
  text-shadow: var(--text-shadow-read);
  mask-image: linear-gradient(to top, #000 74%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 74%, transparent 100%);
}

.chat-line {
  line-height: 1.35;
}

.chat-form {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  user-select: text;
  text-shadow: var(--text-shadow-read);
}

.chat-form input::placeholder {
  color: rgba(210, 248, 255, 0.68);
}

.emote-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.emote-btn {
  border: none;
  background: transparent;
  color: var(--text-main);
  width: 30px;
  height: 30px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  text-shadow: var(--text-shadow-read);
  transition: color 0.18s ease, background 0.18s ease, transform 0.16s ease, filter 0.18s ease;
}

.emote-btn:hover {
  color: var(--accent-warm);
  background: rgba(100, 244, 255, 0.16);
  transform: translateY(-1px);
  filter: drop-shadow(0 0 8px rgba(100, 244, 255, 0.8));
}

/* Panel-less Floating Futuristic Holo Waypoint Selector */
#warp-compass {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 2px 4px;
  max-width: 100%;
}

#warp-compass::-webkit-scrollbar {
  display: none;
}

.warp-tab {
  position: relative;
  flex-shrink: 0;
  border: none;
  background: linear-gradient(135deg, rgba(10, 26, 38, 0.34), rgba(10, 26, 38, 0.08));
  box-shadow: inset 0 0 0 1px rgba(104, 245, 255, 0.26);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  color: rgba(226, 252, 255, 0.86);
  font-family: var(--font-display);
  font-size: 0.69rem;
  letter-spacing: 1.15px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 16px 7px 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: var(--text-shadow-read);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.16s ease, filter 0.2s ease;
}

.warp-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(104, 245, 255, 0.22) 50%, transparent 80%);
  transform: translateX(-110%);
  transition: transform 0.45s ease;
  pointer-events: none;
}

.warp-tab::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #64f4ff, #ffe0ad, transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.warp-idx {
  font-size: 0.6rem;
  font-weight: 600;
  color: #64f4ff;
  letter-spacing: 0.4px;
  opacity: 0.9;
}

.warp-tab i {
  font-size: 0.78rem;
  color: #8cf8ff;
}

.warp-tab:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(18, 52, 68, 0.56), rgba(12, 34, 48, 0.26));
  box-shadow: inset 0 0 0 1px rgba(104, 245, 255, 0.65), 0 0 14px rgba(100, 244, 255, 0.26);
  transform: translateY(-1px);
}

.warp-tab:hover::before {
  transform: translateX(110%);
}

.warp-tab.active {
  color: #fff6db;
  background: linear-gradient(135deg, rgba(20, 62, 74, 0.68), rgba(14, 42, 54, 0.34));
  box-shadow: inset 0 0 0 1px rgba(255, 224, 173, 0.85), 0 0 18px rgba(100, 244, 255, 0.38);
  filter: drop-shadow(0 0 10px rgba(100, 244, 255, 0.45));
}

.warp-tab.active::after {
  opacity: 1;
}

.warp-tab.active .warp-idx,
.warp-tab.active i {
  color: var(--accent-warm);
}

/* =========================================================
   SWIPE-UP EXPANDABLE FUTURISTIC OPTIONS SHEET
   ========================================================= */
.holo-expand-handle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  border: none;
  border-top: 1px solid rgba(100, 244, 255, 0.36);
  background: linear-gradient(180deg, rgba(10, 32, 46, 0.44), rgba(6, 18, 28, 0.16));
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
  color: #b8fbff;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: none;
  text-shadow: var(--text-shadow-read);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.16s ease;
}

.holo-expand-handle:hover {
  color: #fff6db;
  background: linear-gradient(180deg, rgba(18, 56, 76, 0.65), rgba(10, 32, 46, 0.3));
  box-shadow: 0 0 14px rgba(100, 244, 255, 0.32);
  transform: translateY(-1px);
}

.handle-bar {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #64f4ff, #ffe0ad);
  box-shadow: 0 0 8px rgba(100, 244, 255, 0.7);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 68;
  background: rgba(5, 8, 18, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sheet-backdrop.is-dragging {
  visibility: visible;
  pointer-events: auto;
  transition: none !important;
}

.holo-expand-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: min(820px, 100vw);
  max-height: 82dvh;
  z-index: 70;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 18, 28, 0.94), rgba(4, 14, 24, 0.96));
  border-top: 2px solid rgba(100, 244, 255, 0.78);
  box-shadow:
    0 -12px 48px rgba(0, 0, 0, 0.65),
    0 0 36px rgba(100, 244, 255, 0.2),
    inset 0 0 30px rgba(100, 244, 255, 0.08);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%, 0 16px);
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.34s ease;
}

.holo-expand-sheet.is-open {
  transform: translate(-50%, 0);
  visibility: visible;
  pointer-events: auto;
}

.holo-expand-sheet.is-dragging {
  visibility: visible;
  pointer-events: auto;
  transition: none !important;
  will-change: transform;
}

.holo-expand-sheet::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(100, 244, 255, 0.03) 0px,
    rgba(100, 244, 255, 0.03) 1px,
    transparent 1px,
    transparent 6px
  );
}

.sheet-drag-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px 8px;
  touch-action: none;
  cursor: grab;
  z-index: 1;
}

.sheet-drag-pill {
  width: 52px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #64f4ff, #ffe0ad);
  box-shadow: 0 0 10px rgba(100, 244, 255, 0.65);
}

#sheet-close-btn {
  position: absolute;
  right: 14px;
  top: 6px;
}

.sheet-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 12px;
  border-bottom: 1px solid rgba(100, 244, 255, 0.22);
  overflow-x: auto;
  scrollbar-width: none;
}

.sheet-tabs::-webkit-scrollbar {
  display: none;
}

.sheet-tab {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: none;
  background: linear-gradient(135deg, rgba(12, 34, 48, 0.55), rgba(8, 22, 34, 0.24));
  box-shadow: inset 0 0 0 1px rgba(100, 244, 255, 0.28);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  color: rgba(226, 252, 255, 0.88);
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.sheet-tab i {
  color: #64f4ff;
}

.sheet-tab.active {
  color: #fff6db;
  background: linear-gradient(135deg, rgba(22, 68, 82, 0.85), rgba(14, 42, 54, 0.45));
  box-shadow: inset 0 0 0 1.5px rgba(255, 224, 173, 0.85), 0 0 16px rgba(100, 244, 255, 0.3);
}

.sheet-tab.active i {
  color: var(--accent-warm);
}

.sheet-body {
  position: relative;
  z-index: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sheet-work-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 18px;
  background: linear-gradient(135deg, rgba(10, 32, 46, 0.72), rgba(5, 18, 28, 0.58));
  box-shadow: inset 0 0 0 1px rgba(100, 244, 255, 0.34);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.sheet-work-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sheet-work-idx {
  font-family: var(--font-display);
  font-size: 0.74rem;
  color: #64f4ff;
  padding: 4px 9px;
  background: rgba(100, 244, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(100, 244, 255, 0.4);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.sheet-work-title {
  font-size: 1.06rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.sheet-work-note {
  margin: 0;
  font-size: 0.86rem;
  color: #aeeff5;
}

.sheet-work-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sheet-work-actions .primary-glow-btn,
.sheet-work-actions .ghost-btn {
  padding: 10px 18px;
  font-size: 0.86rem;
}

.sheet-music-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sheet-music-tab {
  padding: 12px 14px;
  border: none;
  background: rgba(10, 32, 46, 0.65);
  box-shadow: inset 0 0 0 1px rgba(100, 244, 255, 0.34);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  color: #cffafc;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 1px;
  cursor: pointer;
}

.sheet-music-tab.active {
  color: #fff6db;
  background: rgba(20, 62, 76, 0.85);
  box-shadow: inset 0 0 0 1.5px #ffe0ad;
}

.sheet-music-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(7, 24, 36, 0.72);
  box-shadow: inset 0 0 0 1px rgba(100, 244, 255, 0.32);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.sheet-music-cover {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 1px solid rgba(255, 224, 173, 0.65);
  border-radius: 3px;
  flex-shrink: 0;
}

.sheet-music-meta {
  min-width: 0;
  flex: 1;
}

.sheet-music-sub {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: #64f4ff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sheet-music-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
  line-height: 1.28;
}

.sheet-scrubber {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(100, 244, 255, 0.38);
}

.sheet-scrubber-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #5ef2ff, #ffe0ad);
  pointer-events: none;
}

.sheet-music-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sheet-ctrl-btn {
  min-width: 50px;
  min-height: 46px;
  padding: 8px 14px;
  border: none;
  background: rgba(12, 38, 52, 0.78);
  box-shadow: inset 0 0 0 1px rgba(100, 244, 255, 0.48);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.sheet-ctrl-btn.primary {
  min-width: 64px;
  background: rgba(24, 72, 86, 0.9);
  box-shadow: inset 0 0 0 1.5px #ffe0ad;
  color: #fff6db;
}

.sheet-track-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-track-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(8, 26, 38, 0.72);
  box-shadow: inset 0 0 0 1px rgba(100, 244, 255, 0.24);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 500;
  cursor: pointer;
}

.sheet-track-row.active {
  background: rgba(18, 58, 70, 0.88);
  box-shadow: inset 0 0 0 1.5px #ffe0ad;
  color: #fff6db;
  font-weight: 700;
}

.sheet-track-dl {
  min-width: 38px;
  min-height: 34px;
  display: grid;
  place-items: center;
  color: #aef9ff;
  background: rgba(100, 244, 255, 0.14);
  border: 1px solid rgba(100, 244, 255, 0.45);
  text-decoration: none;
}

/* Help Modal */
.help-card {
  position: relative;
  width: min(640px, 100%);
  max-height: 88dvh;
  overflow-y: auto;
  padding: 24px 26px;
  background: var(--holo-veil-strong);
}

.help-card h2 {
  font-family: var(--font-display);
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: var(--accent-warm);
}

.help-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.help-columns h4 {
  margin: 0 0 8px;
  color: var(--accent-warm);
}

.help-columns ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.help-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.admin-link-btn {
  background: transparent;
  border: 1px solid rgba(184, 220, 255, 0.28);
  color: var(--text-muted);
  border-radius: 3px;
  padding: 4px 12px;
  font-size: 0.74rem;
  cursor: pointer;
}

.admin-link-btn:hover {
  color: #fff;
  border-color: var(--accent-warm);
}

/* Admin Terrain Editor Panel */
.terrain-panel {
  position: fixed;
  top: 74px;
  left: max(14px, env(safe-area-inset-left));
  width: min(300px, calc(100vw - 28px));
  z-index: 62;
  overflow: hidden;
  background: var(--holo-veil-strong);
}

.terrain-body {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.brush-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.slider-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.slider-field input[type='range'] {
  width: 100%;
  accent-color: var(--accent-warm);
}

.terrain-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.terrain-actions > * {
  flex: 1;
}

.secret-card {
  position: relative;
  width: min(400px, 100%);
  padding: 26px;
  text-align: center;
  background: var(--holo-veil-strong);
}

.secret-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.muted-copy {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 4px 0;
}

.muted-copy.small {
  font-size: 0.76rem;
}

/* Mobile Wireframe Holographic Touch Controls */
#mobile-controls {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

@media (max-width: 768px), (pointer: coarse) {
  #mobile-controls {
    display: block;
  }
}

.touch-joystick {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: 132px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 224, 173, 0.45);
  box-shadow: 0 0 18px rgba(255, 224, 173, 0.16);
  pointer-events: auto;
  touch-action: none;
  display: grid;
  place-items: center;
}

.touch-knob {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 224, 173, 0.25);
  border: 1px solid rgba(255, 240, 214, 0.75);
  box-shadow: 0 0 12px rgba(255, 224, 173, 0.45);
  pointer-events: none;
}

.touch-actions {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: 136px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  pointer-events: auto;
}

.touch-circle-btn {
  border-radius: 50%;
  border: 1px solid rgba(255, 224, 173, 0.55);
  background: rgba(16, 20, 38, 0.22);
  color: var(--text-main);
  text-shadow: var(--text-shadow-read);
  box-shadow: 0 0 16px rgba(255, 224, 173, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: none;
}

.touch-circle-btn.primary {
  width: 64px;
  height: 64px;
  font-size: 0.7rem;
  font-weight: 700;
  gap: 2px;
}

.touch-circle-btn.secondary {
  width: 46px;
  height: 46px;
  border-color: rgba(184, 220, 255, 0.5);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .site-name {
    font-size: 0.64rem;
  }

  .drawer-panel {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 245px);
  }

  #warp-compass {
    display: none;
  }

  .touch-joystick {
    bottom: 96px;
  }

  .touch-actions {
    bottom: 100px;
  }
}

@media (max-width: 480px) {
  .warp-idx {
    display: none;
  }

  .artist-pill {
    gap: 6px;
  }

  .controls-pill .icon-btn,
  .controls-pill .pill-btn {
    padding: 5px 6px;
    font-size: 0.78rem;
  }

  .site-name {
    display: none;
  }

  .emote-btn {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}
