﻿:root {
  color-scheme: dark;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(38, 17, 76, 0.45), transparent 42%),
    radial-gradient(circle at bottom, rgba(0, 120, 156, 0.22), transparent 38%),
    #03040a;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: #d6eaff;
}

canvas {
  display: block;
  touch-action: none;
}

#overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  padding: 20px;
}

#overlay.hidden {
  display: none;
}

#title {
  margin: 0 0 24px;
  font-size: clamp(36px, 8vw, 72px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ff6480;
  text-shadow: 0 0 30px rgba(255, 80, 140, 0.5);
}

#title .xr {
  color: #dfe9ff;
  text-shadow: 0 0 30px rgba(90, 140, 255, 0.5);
}

#enter-vr {
  pointer-events: auto;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  font-family: inherit;
  padding: 24px 64px;
  min-width: 280px;
  min-height: 80px;
  border: 3px solid rgba(100, 220, 255, 0.8);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(30, 80, 180, 0.85), rgba(20, 40, 100, 0.9));
  color: #ffffff;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  text-shadow: 0 0 12px rgba(100, 220, 255, 0.6);
  box-shadow: 0 0 30px rgba(60, 180, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.1s, box-shadow 0.1s;
}

#enter-vr:hover, #enter-vr:focus {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(60, 180, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}

#enter-vr:active {
  transform: scale(0.97);
}

#enter-vr:disabled {
  opacity: 0.4;
  pointer-events: none;
}

#xr-status {
  pointer-events: none;
  margin-top: 18px;
  font-size: clamp(14px, 2.5vw, 22px);
  font-weight: 700;
  color: #8eeeff;
  text-shadow: 0 0 8px rgba(100, 220, 255, 0.4);
}

#desktopHint {
  pointer-events: none;
  margin-top: 30px;
  font-size: clamp(12px, 2vw, 16px);
  color: #7a9dba;
  line-height: 1.6;
}
