/* =============================================
   PLAYER ONE LEGAL - VR VISOR GATEWAY
   Theme: Ready Player One VR Headset Interface
   ============================================= */

/* =============================================
   RESET & BASE
   ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: #000;
  color: #fff;
  /* Pixelized white crosshair with golden glow */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cfilter id='glow'%3E%3CfeDropShadow dx='0' dy='0' stdDeviation='1' flood-color='%23FFD700' flood-opacity='0.8'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23glow)'%3E%3Crect x='11' y='4' width='2' height='6' fill='white' shape-rendering='crispEdges'/%3E%3Crect x='11' y='14' width='2' height='6' fill='white' shape-rendering='crispEdges'/%3E%3Crect x='4' y='11' width='6' height='2' fill='white' shape-rendering='crispEdges'/%3E%3Crect x='14' y='11' width='6' height='2' fill='white' shape-rendering='crispEdges'/%3E%3C/g%3E%3C/svg%3E") 12 12, crosshair;
}

/* =============================================
   CUSTOM CURSOR - PIXELIZED CROSSHAIR
   White crosshair with golden glow, retro arcade style
   ============================================= */

/* =============================================
   GATEWAY SCREEN - VISOR BASE
   ============================================= */
#gateway-screen {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

/* =============================================
   PERSPECTIVE GRID BACKGROUND
   ============================================= */
.perspective-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to bottom, transparent 0%, rgba(0, 217, 255, 0.1) 50%, transparent 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(0, 217, 255, 0.1) 40px,
      rgba(0, 217, 255, 0.1) 42px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(0, 217, 255, 0.1) 40px,
      rgba(0, 217, 255, 0.1) 42px
    );
  transform: perspective(500px) rotateX(60deg);
  transform-origin: center bottom;
  opacity: 0.3;
  animation: gridMove 20s linear infinite;
  z-index: 1;
}

@keyframes gridMove {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 0 0, 0 400px, 400px 0; }
}

/* =============================================
   VISOR GLASS TINT OVERLAY
   ============================================= */
.visor-glass {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 100, 200, 0.1) 100%);
  z-index: 2;
  pointer-events: none;
}

/* =============================================
   VISOR FRAME BORDER
   ============================================= */
.visor-frame {
  position: absolute;
  width: 90%;
  height: 70%;
  max-width: 1400px;
  border-radius: 50% / 30%;
  border: 4px solid rgba(0, 217, 255, 0.4);
  box-shadow: 
    0 0 20px rgba(0, 217, 255, 0.3),
    inset 0 0 40px rgba(0, 217, 255, 0.1);
  z-index: 3;
  pointer-events: none;
}

.frame-top,
.frame-bottom,
.frame-left,
.frame-right {
  position: absolute;
  background: linear-gradient(135deg, rgba(20, 30, 50, 0.8), rgba(10, 15, 30, 0.9));
  box-shadow: inset 0 0 10px rgba(0, 217, 255, 0.2);
}

.frame-top {
  top: -3%;
  left: 10%;
  right: 10%;
  height: 3%;
  border-radius: 50% 50% 0 0;
}

.frame-bottom {
  bottom: -3%;
  left: 10%;
  right: 10%;
  height: 3%;
  border-radius: 0 0 50% 50%;
}

.frame-left {
  left: -2%;
  top: 15%;
  bottom: 15%;
  width: 2%;
  border-radius: 20px 0 0 20px;
}

.frame-right {
  right: -2%;
  top: 15%;
  bottom: 15%;
  width: 2%;
  border-radius: 0 20px 20px 0;
}

/* =============================================
   HUD STATUS BARS (HEALTH/ARMOR STYLE)
   ============================================= */
.hud-status-left,
.hud-status-right {
  position: absolute;
  top: 15%;
  width: 180px;
  z-index: 5;
}

.hud-status-left {
  left: 14%;
  top: 17%;
}

.hud-status-right {
  right: 9%;
  top: 17%;
}

.status-label {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  color: #00D9FF;
  text-shadow: 0 0 10px #00D9FF;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.status-bar {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(0, 217, 255, 0.3);
  border-radius: 4px;
}

.bar-segment {
  flex: 1;
  height: 20px;
  border-radius: 2px;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}

.bar-segment.green {
  background: linear-gradient(180deg, #00FF66 0%, #00CC55 100%);
  box-shadow: 0 0 8px #00FF66, inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}

.bar-segment.yellow {
  background: linear-gradient(180deg, #FFD700 0%, #FFAA00 100%);
  box-shadow: 0 0 8px #FFD700, inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}

.bar-segment.orange {
  background: linear-gradient(180deg, #FF8800 0%, #FF6600 100%);
  box-shadow: 0 0 8px #FF6600, inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}

.bar-segment.red {
  background: linear-gradient(180deg, #FF4444 0%, #CC0000 100%);
  box-shadow: 0 0 8px #FF0000, inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}

.bar-segment.empty {
  background: rgba(50, 50, 50, 0.5);
  border: 1px solid rgba(100, 100, 100, 0.3);
}

/* =============================================
   VISOR CONTENT - CENTRAL AREA
   ============================================= */
.visor-content {
  position: relative;
  z-index: 4;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem;
}

/* =============================================
   MAIN TITLE - RETRO STYLE
   ============================================= */
.visor-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.title-line-1,
.title-line-2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #FF4D6A;
  text-align: center;
  text-shadow: 
    0 0 8px #FF4D6A,
    0 0 15px rgba(255, 77, 106, 0.5);
  animation: titlePulse 3s ease-in-out infinite;
}

.title-line-1 {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
}

.title-line-2 {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
}

@keyframes titlePulse {
  0%, 100% {
    text-shadow: 
      0 0 8px #FF4D6A,
      0 0 15px rgba(255, 77, 106, 0.5);
  }
  50% {
    text-shadow: 
      0 0 12px #FF4D6A,
      0 0 25px rgba(255, 77, 106, 0.6);
  }
}

/* =============================================
   EGG LINK CONTAINER
   ============================================= */
.egg-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease;
}

.egg-link:hover {
  transform: scale(1.02);
}

/* =============================================
   EGG ZONE - ARROWS + EGG
   ============================================= */
.egg-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4rem);
}

/* =============================================
   ARROWS - RETRO CYAN
   ============================================= */
.arrow-left,
.arrow-right {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: #00D9FF;
  text-shadow: 
    0 0 10px #00D9FF,
    0 0 20px #00D9FF,
    0 0 30px #00D9FF;
  animation: arrowBlink 1.2s ease-in-out infinite;
}

.arrow-left {
  animation-delay: 0s;
}

.arrow-right {
  animation-delay: 0.6s;
}

@keyframes arrowBlink {
  0%, 49% {
    opacity: 1;
    text-shadow: 
      0 0 10px #00D9FF,
      0 0 20px #00D9FF,
      0 0 30px #00D9FF;
  }
  50%, 100% {
    opacity: 0.4;
    text-shadow: 
      0 0 5px #00D9FF;
  }
}

.egg-link:hover .arrow-left,
.egg-link:hover .arrow-right {
  animation: arrowIntense 0.6s ease-in-out infinite;
}

@keyframes arrowIntense {
  0%, 100% {
    text-shadow: 
      0 0 15px #00D9FF,
      0 0 30px #00D9FF,
      0 0 45px #00D9FF;
    transform: scale(1.1);
  }
  50% {
    text-shadow: 
      0 0 20px #00D9FF,
      0 0 40px #00D9FF,
      0 0 60px #00D9FF;
    transform: scale(1.15);
  }
}

/* =============================================
   GOLDEN EGG BUTTON
   ============================================= */
.egg-container {
  position: relative;
  width: clamp(140px, 20vw, 220px);
  height: clamp(180px, 25vw, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.golden-egg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: 
    drop-shadow(0 0 20px rgba(255, 215, 0, 0.7))
    drop-shadow(0 0 40px rgba(255, 215, 0, 0.5))
    drop-shadow(0 0 60px rgba(255, 165, 0, 0.3));
  transition: all 0.4s ease;
  z-index: 2;
}

/* Pulsing Glow Ring */
.egg-glow-ring {
  position: absolute;
  width: 110%;
  height: 110%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
  animation: eggGlowPulse 2.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes eggGlowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Hover Effects */
.egg-link:hover .golden-egg {
  filter: 
    drop-shadow(0 0 30px rgba(255, 215, 0, 1))
    drop-shadow(0 0 60px rgba(255, 215, 0, 0.8))
    drop-shadow(0 0 90px rgba(255, 165, 0, 0.6));
}

.egg-link:hover .egg-glow-ring {
  animation: eggGlowIntense 1s ease-in-out infinite;
}

@keyframes eggGlowIntense {
  0%, 100% {
    transform: scale(1.5);
    opacity: 0.9;
  }
  50% {
    transform: scale(2);
    opacity: 1;
  }
}

/* =============================================
   START NOW TEXT - RETRO GOLDEN
   ============================================= */
.start-prompt {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.1rem, 2.8vw, 1.8rem);
  color: #FFD700;
  letter-spacing: 0.2em;
  text-shadow: 
    0 0 10px #FFD700,
    0 0 20px #FFD700,
    0 0 30px rgba(255, 165, 0, 0.5);
  animation: startPromptPulse 1.8s ease-in-out infinite;
}

@keyframes startPromptPulse {
  0%, 100% {
    text-shadow: 
      0 0 10px #FFD700,
      0 0 20px #FFD700,
      0 0 30px rgba(255, 165, 0, 0.5);
  }
  50% {
    text-shadow: 
      0 0 15px #FFD700,
      0 0 30px #FFD700,
      0 0 45px rgba(255, 165, 0, 0.8),
      0 0 60px rgba(255, 215, 0, 0.5);
  }
}

.egg-link:hover .start-prompt {
  color: #fff;
  animation: startPromptIntense 0.6s ease-in-out infinite;
}

@keyframes startPromptIntense {
  0%, 100% {
    text-shadow: 
      0 0 15px #FFD700,
      0 0 30px #FFD700,
      0 0 45px #FFD700;
  }
  50% {
    text-shadow: 
      0 0 25px #fff,
      0 0 50px #FFD700,
      0 0 75px #FFD700,
      0 0 100px #FF6B00;
  }
}

/* =============================================
   CONTINUE TEXT
   ============================================= */
.continue-text {
  font-family: 'VT323', monospace;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: #aaa;
  letter-spacing: 0.15em;
  display: inline-block;
  animation: continueBlink 2s ease-in-out infinite, continueGrow 2.5s ease-in-out infinite;
}

@keyframes continueBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.4; }
}

@keyframes continueGrow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* =============================================
   HUD CORNER BRACKETS
   ============================================= */
.hud-brackets {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

.bracket {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 3px solid #00D9FF;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
}

.bracket-tl {
  top: 8%;
  left: 5%;
  border-right: none;
  border-bottom: none;
}

.bracket-tr {
  top: 8%;
  right: 5%;
  border-left: none;
  border-bottom: none;
}

.bracket-bl {
  bottom: 8%;
  left: 5%;
  border-right: none;
  border-top: none;
}

.bracket-br {
  bottom: 8%;
  right: 5%;
  border-left: none;
  border-top: none;
}

/* =============================================
   BOTTOM STATUS
   ============================================= */
.bottom-status {
  position: absolute;
  bottom: 8%;
  right: 12%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  z-index: 5;
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
}

.status-ready {
  color: #00FF66;
  text-shadow: 0 0 8px #00FF66;
  letter-spacing: 0.2em;
}

.status-copyright {
  color: #666;
  font-size: 0.75rem;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */
@media (max-width: 768px) {
  .visor-frame {
    width: 95%;
    height: 60%;
  }
  
  .hud-status-left,
  .hud-status-right {
    width: 120px;
    font-size: 0.7rem;
  }
  
  .status-bar {
    gap: 2px;
    padding: 5px;
  }
  
  .bar-segment {
    height: 14px;
  }
  
  .egg-zone {
    gap: 1.5rem;
  }
  
  .bracket {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .visor-title {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
  }
  
  .hud-status-left,
  .hud-status-right {
    display: none;
  }
  
  .arrow-left,
  .arrow-right {
    font-size: 2rem;
  }
  
  .egg-container {
    width: 100px;
    height: 130px;
  }
}

/* =============================================
   ACCESSIBILITY
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.egg-link:focus {
  outline: none;
}

.egg-link:focus-visible {
  outline: none;
}
