:root {
  --bg: #050816;
  --panel: rgba(9, 15, 38, 0.85);
  --cyan: #00f0ff;
  --magenta: #ff2a85;
  --text: #f4f7ff;
  --muted: #9eb0d6;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: "Segoe UI", system-ui, sans-serif; }
#canvas-root { position: fixed; inset: 0; z-index: 1; touch-action: none; }
#canvas-root canvas { display: block; width: 100%; height: 100%; outline: none; }
.hidden-media { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.launch-shell {
  position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(circle at 50% 32%, rgba(28, 16, 70, 0.94), rgba(5, 8, 22, 0.99) 74%);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.launch-shell.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.launch-backdrop {
  position: absolute; inset: 0; background: url("../assets/logo_full.webp") center/cover no-repeat;
  opacity: 0.16; filter: blur(10px); pointer-events: none;
}
.launch-card {
  position: relative; z-index: 2; width: 100%; max-width: 500px; padding: 26px 22px; border-radius: 28px;
  background: var(--panel); border: 1px solid rgba(0, 240, 255, 0.38);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72), 0 0 36px rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(12px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
}
.logo-stage { width: 100%; max-width: 380px; }
.launch-logo { width: 100%; height: auto; display: block; mix-blend-mode: screen; user-select: none; pointer-events: none; }
.xr-status { font-size: 0.88rem; font-weight: 600; color: var(--cyan); min-height: 1.2em; }
.xr-status.warn { color: #ffc857; }
.xr-status.error { color: #ff6b81; }
.launch-actions { width: 100%; display: flex; flex-direction: column; gap: 10px; }

.btn-primary-vr, .btn-secondary-pc {
  width: 100%; border-radius: 999px; font-weight: 800; letter-spacing: 0.08em; color: #fff; cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.btn-primary-vr {
  padding: 16px 22px; border: none; font-size: 1.05rem;
  background: linear-gradient(95deg, #00c8ff 0%, #7b2cff 50%, #ff2a85 100%);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.4);
}
.btn-primary-vr:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn-secondary-pc {
  padding: 12px 18px; border: 1px solid rgba(158, 176, 214, 0.35);
  background: rgba(15, 23, 54, 0.8); font-size: 0.86rem;
}

.desktop-hud {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 8;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 9px 14px; border-radius: 18px; background: rgba(7, 11, 28, 0.86);
  border: 1px solid rgba(0, 240, 255, 0.3); backdrop-filter: blur(8px);
}
.desktop-hud.hidden, .hud-mini-btn.hidden { display: none; }
.hud-badge { font-size: 0.74rem; font-weight: 800; color: var(--cyan); }
.hud-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.hud-mini-btn {
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.14); color: var(--text); font-size: 0.74rem; font-weight: 700; cursor: pointer;
}
.hud-mini-btn.adm { border-color: rgba(255, 196, 0, 0.75); background: rgba(255, 196, 0, 0.2); color: #ffe07d; }
