/* ==========================================================================
   SKETCHY SNAKE VR - CSS
   Spatial Sketchbook Aesthetic
   ========================================================================== */

:root {
  --paper-bg: #FCFAF6;
  --pencil-charcoal: #2A2B32;
  --cobalt-blue: #1D4ED8;
  --magenta-pink: #DB2777;
  --purple-ink: #7E22CE;
  --orange-heart: #F97316;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--paper-bg);
  font-family: 'Patrick Hand', cursive, sans-serif;
  color: var(--pencil-charcoal);
}

canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

#ui-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.vr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
  background: rgba(252, 250, 246, 0.88);
  backdrop-filter: blur(8px);
  border: 2px solid var(--pencil-charcoal);
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 4px 4px 0px var(--pencil-charcoal);
  max-width: 500px;
}

.logo {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  color: var(--cobalt-blue);
  line-height: 1;
}

.vr-badge {
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  background: var(--magenta-pink);
  color: #FFF;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  transform: rotate(-2deg);
  margin-left: 4px;
}

.subtitle {
  font-size: 0.85rem;
  color: var(--purple-ink);
  margin-top: 2px;
}

.vr-score-cards {
  display: flex;
  gap: 8px;
}

.card {
  background: #FFF;
  border: 2px solid var(--pencil-charcoal);
  border-radius: 8px;
  padding: 4px 10px;
  text-align: center;
  min-width: 55px;
  box-shadow: 2px 2px 0px var(--pencil-charcoal);
}

.card.best {
  background: #FEF3C7;
  border-color: #B45309;
}

.card .label {
  display: block;
  font-size: 0.65rem;
  font-weight: bold;
  color: #64748B;
}

.card .val {
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  font-weight: bold;
}

.instructions-panel {
  pointer-events: auto;
  background: rgba(252, 250, 246, 0.92);
  backdrop-filter: blur(6px);
  border: 2px dashed var(--pencil-charcoal);
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 440px;
  margin-top: auto;
  margin-bottom: 75px;
  box-shadow: 4px 4px 0px rgba(42, 43, 50, 0.15);
}

.instructions-panel h3 {
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  color: var(--cobalt-blue);
  margin-bottom: 4px;
}

.instructions-panel p {
  font-size: 0.92rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.music-pill {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.pill-btn {
  font-family: 'Patrick Hand', cursive;
  font-size: 0.95rem;
  padding: 6px 14px;
  background: #FFF;
  border: 2px solid var(--pencil-charcoal);
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--pencil-charcoal);
  transition: all 0.1s ease;
  font-weight: bold;
}

.pill-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 0px 0px 0px var(--pencil-charcoal);
}

.pill-btn.mini {
  padding: 6px 10px;
}

/* --- Three.js VR Button Override --- */
#VRButton {
  position: absolute !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  font-family: 'Patrick Hand', cursive !important;
  font-size: 1.3rem !important;
  font-weight: bold !important;
  padding: 12px 28px !important;
  background: var(--cobalt-blue) !important;
  color: #FFF !important;
  border: 3px solid #0F172A !important;
  border-radius: 30px !important;
  box-shadow: 0 8px 25px rgba(29, 78, 216, 0.4), 4px 4px 0px #0F172A !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: transform 0.15s ease !important;
}

#VRButton:hover {
  transform: translateX(-50%) scale(1.05) !important;
}
