/* ========================================
   Free-Crypto Game - Pure CSS Styles
   ======================================== */

/* CSS Custom Properties (Design Tokens) */
:root {
  /* Core Colors */
  --background: hsl(200, 50%, 8%);
  --foreground: hsl(180, 100%, 95%);
  --card: hsl(200, 45%, 12%);
  --card-foreground: hsl(180, 100%, 95%);
  --primary: hsl(45, 100%, 55%);
  --primary-foreground: hsl(200, 50%, 8%);
  --secondary: hsl(175, 80%, 45%);
  --secondary-foreground: hsl(200, 50%, 8%);
  --muted: hsl(200, 40%, 18%);
  --muted-foreground: hsl(180, 30%, 65%);
  --accent: hsl(340, 85%, 60%);
  --accent-foreground: hsl(0, 0%, 100%);
  --destructive: hsl(0, 84%, 60%);
  --border: hsl(200, 40%, 25%);
  
  /* Tropical Colors */
  --tropical-cyan: hsl(180, 85%, 50%);
  --tropical-teal: hsl(175, 75%, 40%);
  --tropical-coral: hsl(15, 90%, 65%);
  --tropical-gold: hsl(45, 100%, 55%);
  --tropical-pink: hsl(340, 85%, 60%);
  --tropical-dark: hsl(200, 50%, 6%);
  
  /* Gradients */
  --gradient-tropical: linear-gradient(135deg, hsl(200, 50%, 8%) 0%, hsl(200, 45%, 15%) 50%, hsl(180, 40%, 12%) 100%);
  --gradient-gold: linear-gradient(135deg, hsl(45, 100%, 60%) 0%, hsl(35, 100%, 50%) 50%, hsl(45, 100%, 55%) 100%);
  --gradient-neon: linear-gradient(90deg, var(--tropical-cyan) 0%, var(--tropical-teal) 50%, var(--tropical-pink) 100%);
  
  /* Shadows */
  --shadow-neon-gold: 0 0 20px hsla(45, 100%, 55%, 0.5), 0 0 40px hsla(45, 100%, 55%, 0.3);
  --shadow-neon-cyan: 0 0 20px hsla(180, 85%, 50%, 0.5), 0 0 40px hsla(180, 85%, 50%, 0.3);
  --shadow-card: 0 8px 32px hsla(200, 50%, 5%, 0.6), inset 0 1px 0 hsla(180, 50%, 50%, 0.1);
  
  /* Spacing */
  --radius: 0.75rem;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gradient-tropical);
  color: var(--foreground);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gold-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.neon-text {
  text-shadow: 0 0 10px var(--tropical-cyan), 0 0 20px hsla(180, 85%, 50%, 0.5);
}

.primary-text {
  color: var(--primary);
}

.secondary-text {
  color: var(--secondary);
}

/* Background Layers */
.background-layer {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.overlay-layer {
  position: fixed;
  inset: 0;
  background: hsla(200, 50%, 6%, 0.6);
  backdrop-filter: blur(2px);
  z-index: -1;
}

/* Particles */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
}

.particle-1 {
  top: 5rem;
  left: 2.5rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  opacity: 0.6;
  animation-delay: 0s;
}

.particle-2 {
  top: 10rem;
  right: 5rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--tropical-cyan);
  opacity: 0.4;
  animation-delay: 0.5s;
}

.particle-3 {
  bottom: 10rem;
  left: 25%;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--tropical-pink);
  opacity: 0.5;
  animation-delay: 1s;
}

.particle-4 {
  top: 33%;
  right: 33%;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  opacity: 0.3;
  animation-delay: 1.5s;
}

.particle-5 {
  bottom: 25%;
  right: 2.5rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--secondary);
  opacity: 0.4;
  animation-delay: 2s;
}

/* Header */
.header {
  position: relative;
  z-index: 10;
  padding: 1.5rem 1rem;
}

.header-content {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  max-width: 400px;
  width: 90%;
  height: auto;
  animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% {
    filter: drop-shadow(0 0 8px hsla(170, 80%, 70%, 0.6))
            drop-shadow(0 0 15px hsla(45, 90%, 65%, 0.4))
            drop-shadow(0 0 25px hsla(170, 80%, 70%, 0.3));
  }
  100% {
    filter: drop-shadow(0 0 15px hsla(170, 80%, 70%, 0.9))
            drop-shadow(0 0 30px hsla(45, 90%, 65%, 0.7))
            drop-shadow(0 0 50px hsla(170, 80%, 70%, 0.5))
            drop-shadow(0 0 80px hsla(45, 90%, 65%, 0.3));
  }
}

.header-subtitle {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 10;
  padding: 0 1rem 3rem;
}

.content-wrapper {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
}

/* Video Section */
.video-section {
  width: 100%;
  flex-shrink: 0;
}

.game-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, hsla(175, 75%, 40%, 0.3) 0%, hsla(180, 85%, 50%, 0.2) 100%);
  border: 3px solid hsla(180, 85%, 50%, 0.5);
  box-shadow: var(--shadow-neon-cyan), inset 0 0 60px hsla(180, 85%, 50%, 0.1);
}

.game-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-neon);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.5;
  filter: blur(8px);
}

/* Stacked Video Container */
.video-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.1s ease-out;
}

.video-layer.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.game-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
}

.frame-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 0.75rem;
  border: 4px solid hsla(180, 85%, 50%, 0.2);
}

.frame-glow {
  position: absolute;
  inset: -4px;
  pointer-events: none;
  border-radius: 1rem;
  background: linear-gradient(90deg, hsla(180, 85%, 50%, 0.2) 0%, transparent 50%, hsla(340, 85%, 60%, 0.2) 100%);
  filter: blur(4px);
  z-index: -1;
}

/* Info Section */
.info-section {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.info-card {
  border-radius: 1rem;
  padding: 1.5rem;
  background: hsla(200, 45%, 12%, 0.9);
  border: 1px solid hsla(180, 85%, 50%, 0.3);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

/* Loading State */
.loading-state {
  animation: pulse 2s ease-in-out infinite;
}

.skeleton {
  background: var(--muted);
  border-radius: var(--radius);
}

.skeleton-title {
  height: 2rem;
  width: 75%;
  margin-bottom: 1rem;
}

.skeleton-text {
  height: 1rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.skeleton-text-short {
  height: 1rem;
  width: 66%;
}

/* Info Card States */
.info-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-header {
  text-align: center;
}

.info-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.info-subtitle {
  color: var(--muted-foreground);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
}

.status-badge.success {
  background: hsla(175, 80%, 45%, 0.2);
  color: var(--secondary);
  border: 1px solid hsla(175, 80%, 45%, 0.5);
}

.status-badge.warning {
  background: hsla(15, 90%, 65%, 0.2);
  color: var(--tropical-coral);
  border: 1px solid hsla(15, 90%, 65%, 0.5);
}

.status-badge.error {
  background: hsla(0, 84%, 60%, 0.2);
  color: var(--destructive);
  border: 1px solid hsla(0, 84%, 60%, 0.5);
}

.badge-icon {
  width: 1rem;
  height: 1rem;
}

.badge-center {
  display: flex;
  justify-content: center;
}

/* Instructions */
.instructions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.instructions-title {
  font-size: 1.125rem;
}

.instructions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.instruction-number {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: hsla(45, 100%, 55%, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Instructions Prize Box */
.instructions-prize-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, hsla(45, 100%, 55%, 0.15) 0%, hsla(35, 100%, 50%, 0.1) 100%);
  border: 2px solid hsla(45, 100%, 55%, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 0 20px hsla(45, 100%, 55%, 0.2), inset 0 1px 0 hsla(45, 100%, 70%, 0.2);
  animation: prizeBoxGlow 2s ease-in-out infinite;
}

@keyframes prizeBoxGlow {
  0%, 100% {
    box-shadow: 0 0 20px hsla(45, 100%, 55%, 0.2), inset 0 1px 0 hsla(45, 100%, 70%, 0.2);
  }
  50% {
    box-shadow: 0 0 30px hsla(45, 100%, 55%, 0.4), inset 0 1px 0 hsla(45, 100%, 70%, 0.3);
  }
}

.instructions-prize-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.instructions-prize-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

/* Buttons */
.tropical-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
  background: var(--gradient-gold);
  color: var(--tropical-dark);
  box-shadow: var(--shadow-neon-gold);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
}

.tropical-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px hsla(45, 100%, 55%, 0.7), 0 0 60px hsla(45, 100%, 55%, 0.4);
}

.twitter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, #1da1f2 0%, #0d8ecf 100%);
  color: white;
  box-shadow: 0 0 20px rgba(29, 161, 242, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
}

.twitter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(29, 161, 242, 0.7);
}

.button-icon {
  width: 1rem;
  height: 1rem;
}

/* Info Box */
.info-box {
  background: hsla(200, 40%, 18%, 0.5);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.plays-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.875rem;
}

.plays-counter-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.plays-number {
  font-size: 2.5rem;
  font-family: 'Orbitron', sans-serif;
}

.plays-used {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Winner Box */
.winner-box {
  background: hsla(175, 80%, 45%, 0.2);
  border: 1px solid hsla(175, 80%, 45%, 0.5);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.winner-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  margin: 0 auto 0.5rem;
}

.winner-title {
  font-family: 'Orbitron', sans-serif;
  color: var(--secondary);
}

.winner-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Last Result */
.last-result {
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.last-result.win {
  background: hsla(175, 80%, 45%, 0.2);
  border: 1px solid hsla(175, 80%, 45%, 0.5);
}

.last-result.lose {
  background: hsla(200, 40%, 18%, 0.5);
}

.result-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.125rem;
}

.result-numbers {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.result-message {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-note {
  margin-top: 0.25rem;
}

/* Bouncing Ball */
.bouncing-ball {
  position: fixed;
  z-index: 50;
  width: 70px;
  height: 70px;
  background: var(--gradient-gold);
  border-radius: 50%;
  box-shadow: var(--shadow-neon-gold);
  animation: pulse-glow 1.5s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Remove transition to prevent visual lag */
  /* Larger hit area with pseudo-element */
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Invisible larger hit area */
.bouncing-ball::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 50%;
}

.bouncing-ball:hover {
  transform: scale(1.1);
}

.bouncing-ball:active {
  transform: scale(0.95);
}

.ball-icon {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  color: var(--tropical-dark);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: hsla(200, 50%, 6%, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  max-width: 28rem;
  width: 100%;
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid hsla(180, 85%, 50%, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--muted-foreground);
  font-size: 1.5rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 10;
}

.modal-close:hover {
  color: var(--foreground);
}

/* Confetti */
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  animation: bounce 1s ease infinite;
}

.confetti-1 {
  left: 25%;
  background: var(--primary);
  animation-delay: 0s;
}

.confetti-2 {
  right: 25%;
  background: var(--secondary);
  animation-delay: 0.2s;
}

.confetti-3 {
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  animation-delay: 0.4s;
}

.modal-body {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-logo-container {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalLogoPulse 2s ease-in-out infinite;
}

.modal-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 15px hsla(120, 100%, 50%, 0.6))
          drop-shadow(0 0 30px hsla(120, 100%, 50%, 0.4));
}

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

.modal-title {
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 1.25rem;
}

.numbers-display {
  background: hsla(200, 40%, 18%, 0.5);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.number-box {
  text-align: center;
}

.number-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.number-value {
  font-size: 1.875rem;
  font-family: 'Orbitron', sans-serif;
}

.number-divider {
  width: 1px;
  background: var(--border);
}

.modal-message {
  color: var(--muted-foreground);
}

.twitter-icon, .external-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.prize-notice {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Claim Instructions */
.claim-instructions {
  background: hsla(200, 40%, 18%, 0.5);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: left;
}

.claim-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.claim-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  counter-reset: step;
}

.claim-steps li {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 0.5rem;
  color: var(--foreground);
  font-size: 0.9rem;
  counter-increment: step;
}

.claim-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--tropical-coral));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tropical-dark);
}

.twitter-tag {
  color: var(--tropical-cyan);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.twitter-tag:hover {
  color: var(--primary);
  text-decoration: underline;
}

.claim-note {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  text-align: center;
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: var(--shadow-neon-gold), 0 0 60px hsla(45, 100%, 55%, 0.2);
  }
  50% {
    box-shadow: 0 0 30px hsla(45, 100%, 55%, 0.8), 0 0 60px hsla(45, 100%, 55%, 0.5), 0 0 90px hsla(45, 100%, 55%, 0.3);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ========================================
   Entry Screen Styles
   ======================================== */
.entry-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.entry-screen.hidden {
  display: none;
}

.entry-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, hsla(180, 85%, 50%, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, hsla(340, 85%, 60%, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, hsla(45, 100%, 55%, 0.1) 0%, transparent 60%),
    var(--gradient-tropical);
  z-index: -3;
}

.entry-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.entry-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}

.ep-1 { top: 10%; left: 10%; width: 6px; height: 6px; background: var(--primary); animation: entryFloat 4s ease-in-out infinite; }
.ep-2 { top: 20%; right: 15%; width: 8px; height: 8px; background: var(--tropical-cyan); animation: entryFloat 5s ease-in-out infinite 0.5s; }
.ep-3 { top: 50%; left: 5%; width: 5px; height: 5px; background: var(--tropical-pink); animation: entryFloat 3.5s ease-in-out infinite 1s; }
.ep-4 { top: 70%; right: 10%; width: 7px; height: 7px; background: var(--secondary); animation: entryFloat 4.5s ease-in-out infinite 1.5s; }
.ep-5 { top: 80%; left: 20%; width: 4px; height: 4px; background: var(--primary); animation: entryFloat 3s ease-in-out infinite 0.3s; }
.ep-6 { top: 30%; right: 25%; width: 6px; height: 6px; background: var(--tropical-coral); animation: entryFloat 5.5s ease-in-out infinite 0.8s; }
.ep-7 { top: 60%; left: 15%; width: 5px; height: 5px; background: var(--tropical-cyan); animation: entryFloat 4s ease-in-out infinite 1.2s; }
.ep-8 { top: 85%; right: 30%; width: 8px; height: 8px; background: var(--primary); animation: entryFloat 3.8s ease-in-out infinite 0.6s; }

@keyframes entryFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-30px) scale(1.2); opacity: 1; }
}

.entry-glow-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: hsla(180, 85%, 50%, 0.3);
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-2 {
  bottom: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: hsla(340, 85%, 60%, 0.25);
  animation: orbFloat 10s ease-in-out infinite 2s;
}

.orb-3 {
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: hsla(45, 100%, 55%, 0.2);
  animation: orbPulse 6s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

@keyframes orbPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.2; }
  50% { transform: translateX(-50%) scale(1.3); opacity: 0.4; }
}

.entry-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.entry-logo-container {
  position: relative;
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.entry-logo {
  max-width: 350px;
  width: 85%;
  height: auto;
  animation: logoGlow 2s ease-in-out infinite alternate;
}

.entry-logo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, hsla(45, 100%, 55%, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.entry-title {
  display: flex;
  flex-direction: column;
  font-family: 'Orbitron', sans-serif;
  line-height: 1.1;
}

.entry-title-line1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--foreground);
  text-shadow: 0 0 20px hsla(180, 85%, 50%, 0.5);
  animation: textGlow 2s ease-in-out infinite;
}

.entry-title-line2 {
  font-size: 4rem;
  font-weight: 900;
  animation: goldShimmer 3s ease-in-out infinite;
}

@keyframes goldShimmer {
  0%, 100% { 
    filter: drop-shadow(0 0 10px hsla(45, 100%, 55%, 0.5));
  }
  50% { 
    filter: drop-shadow(0 0 30px hsla(45, 100%, 55%, 0.8)) drop-shadow(0 0 60px hsla(45, 100%, 55%, 0.4));
  }
}

.entry-title-line3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tropical-cyan);
  text-shadow: 0 0 20px hsla(180, 85%, 50%, 0.6);
}

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 20px hsla(180, 85%, 50%, 0.5); }
  50% { text-shadow: 0 0 30px hsla(180, 85%, 50%, 0.8), 0 0 50px hsla(180, 85%, 50%, 0.4); }
}

.entry-features {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.entry-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: hsla(200, 45%, 12%, 0.6);
  border: 1px solid hsla(180, 85%, 50%, 0.2);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s;
}

.entry-feature:hover {
  transform: translateY(-5px);
  border-color: hsla(45, 100%, 55%, 0.5);
}

.feature-icon {
  font-size: 2rem;
}

.entry-feature span {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.entry-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  animation: fadeIn 1s ease-out 0.5s both;
}

/* Loading Bar */
.loading-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 300px;
  animation: fadeIn 0.5s ease-out;
}

.loading-bar-container.hidden {
  display: none;
}

.loading-bar-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
}

.loading-bar-track {
  width: 100%;
  height: 8px;
  background: hsla(200, 45%, 12%, 0.8);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid hsla(180, 85%, 50%, 0.3);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-gold);
  border-radius: 9999px;
  transition: width 0.3s ease-out;
  box-shadow: 0 0 10px hsla(45, 100%, 55%, 0.5);
}

.loading-bar-percent {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.enter-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 3rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tropical-dark);
  background: var(--gradient-gold);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 
    0 0 30px hsla(45, 100%, 55%, 0.5),
    0 0 60px hsla(45, 100%, 55%, 0.3),
    inset 0 2px 0 hsla(0, 0%, 100%, 0.3);
  animation: buttonPulse 2s ease-in-out infinite, fadeIn 1s ease-out 0.7s both;
  transition: transform 0.2s, box-shadow 0.3s;
}

.enter-button:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 40px hsla(45, 100%, 55%, 0.7),
    0 0 80px hsla(45, 100%, 55%, 0.5),
    0 0 120px hsla(45, 100%, 55%, 0.3),
    inset 0 2px 0 hsla(0, 0%, 100%, 0.3);
}

.enter-button:active {
  transform: scale(0.98);
}

.enter-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  animation: none;
  box-shadow: 
    0 0 15px hsla(45, 100%, 55%, 0.3),
    inset 0 2px 0 hsla(0, 0%, 100%, 0.2);
}

.enter-button:disabled:hover {
  transform: none;
  box-shadow: 
    0 0 15px hsla(45, 100%, 55%, 0.3),
    inset 0 2px 0 hsla(0, 0%, 100%, 0.2);
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 
      0 0 30px hsla(45, 100%, 55%, 0.5),
      0 0 60px hsla(45, 100%, 55%, 0.3),
      inset 0 2px 0 hsla(0, 0%, 100%, 0.3);
  }
  50% {
    box-shadow: 
      0 0 50px hsla(45, 100%, 55%, 0.7),
      0 0 100px hsla(45, 100%, 55%, 0.4),
      inset 0 2px 0 hsla(0, 0%, 100%, 0.3);
  }
}

.enter-button-text {
  position: relative;
  z-index: 1;
}

.enter-button-icon {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  animation: iconBounce 1s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.enter-button-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    hsla(0, 0%, 100%, 0.4),
    transparent
  );
  animation: buttonShine 3s ease-in-out infinite;
}

@keyframes buttonShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.entry-note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  opacity: 0.7;
  animation: fadeIn 1s ease-out 0.9s both;
}

.entry-footer {
  position: absolute;
  bottom: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  opacity: 0.6;
}

/* Game Container */
.game-container {
  min-height: 100vh;
}

.game-container.hidden {
  display: none;
}

/* Responsive */
@media (min-width: 768px) {
  .logo {
    height: 8rem;
  }
  
  .info-title {
    font-size: 1.5rem;
  }

  .entry-logo {
    height: 140px;
  }

  .entry-title-line1 {
    font-size: 2.5rem;
  }

  .entry-title-line2 {
    font-size: 5rem;
  }

  .entry-title-line3 {
    font-size: 3rem;
  }

  .enter-button {
    padding: 1.5rem 4rem;
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .content-wrapper {
    flex-direction: row;
    gap: 2rem;
    align-items: center;
  }
  
  .video-section {
    width: auto;
  }
  
  .game-frame {
    max-width: 560px;
  }
  
  .info-section {
    width: 360px;
  }
}

/* ========================================
   Prize Displays
   ======================================== */

/* Entry Screen Prize */
.entry-prize-display {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.entry-prize-display.hidden {
  display: none;
}

.prize-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: hsla(200, 45%, 12%, 0.8);
  border: 2px solid hsla(45, 100%, 55%, 0.5);
  border-radius: 1rem;
  box-shadow: 
    0 0 20px hsla(45, 100%, 55%, 0.3),
    inset 0 0 20px hsla(45, 100%, 55%, 0.1);
  animation: prizePulse 2s ease-in-out infinite;
}

@keyframes prizePulse {
  0%, 100% {
    border-color: hsla(45, 100%, 55%, 0.5);
    box-shadow: 
      0 0 20px hsla(45, 100%, 55%, 0.3),
      inset 0 0 20px hsla(45, 100%, 55%, 0.1);
  }
  50% {
    border-color: hsla(45, 100%, 55%, 0.8);
    box-shadow: 
      0 0 40px hsla(45, 100%, 55%, 0.5),
      inset 0 0 30px hsla(45, 100%, 55%, 0.2);
  }
}

.prize-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.prize-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

/* Game Page Prize */
.game-prize-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem;
  background: linear-gradient(135deg, hsla(45, 100%, 55%, 0.15) 0%, hsla(35, 100%, 50%, 0.1) 100%);
  border: 1px solid hsla(45, 100%, 55%, 0.4);
  border-radius: 0.75rem;
  animation: prizePulse 2s ease-in-out infinite;
}

.game-prize-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.game-prize-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

/* Modal Prize */
.modal-prize-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, hsla(45, 100%, 55%, 0.2) 0%, hsla(35, 100%, 50%, 0.15) 100%);
  border: 2px solid hsla(45, 100%, 55%, 0.6);
  border-radius: 1rem;
  animation: modalPrizePulse 1.5s ease-in-out infinite;
}

@keyframes modalPrizePulse {
  0%, 100% {
    transform: scale(1);
    border-color: hsla(45, 100%, 55%, 0.6);
  }
  50% {
    transform: scale(1.02);
    border-color: hsla(45, 100%, 55%, 1);
  }
}

.modal-prize-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}

.modal-prize-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
}

/* ========================================
   Anime Japanese Text
   ======================================== */
.anime-text-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.anime-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(var(--rotation, 0deg));
  animation: animeTextAppear 2.5s ease-out forwards;
}

@keyframes animeTextAppear {
  0% {
    opacity: 0;
    transform: rotate(var(--rotation, 0deg)) scale(0.5) translateY(20px);
  }
  15% {
    opacity: 1;
    transform: rotate(var(--rotation, 0deg)) scale(1.2) translateY(0);
  }
  25% {
    transform: rotate(var(--rotation, 0deg)) scale(1) translateY(0);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--rotation, 0deg)) scale(0.8) translateY(-30px);
  }
}

.anime-text-jp {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--foreground);
  text-shadow: 
    0 0 10px hsla(180, 85%, 50%, 0.8),
    0 0 30px hsla(180, 85%, 50%, 0.5),
    2px 2px 0 hsla(200, 50%, 8%, 0.8);
  letter-spacing: 0.1em;
}

.anime-text-en {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 
    0 0 10px hsla(45, 100%, 55%, 0.6),
    1px 1px 0 hsla(200, 50%, 8%, 0.8);
  letter-spacing: 0.2em;
  margin-top: 0.25rem;
}

/* Speed lines effect for anime text */
.anime-text::before,
.anime-text::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tropical-cyan), transparent);
  opacity: 0.5;
}

.anime-text::before {
  top: 50%;
  left: -120px;
  transform: rotate(-5deg);
}

.anime-text::after {
  top: 50%;
  right: -120px;
  transform: rotate(5deg);
}

@media (min-width: 768px) {
  .anime-text-jp {
    font-size: 3.5rem;
  }
  
  .anime-text-en {
    font-size: 1rem;
  }
  
  .prize-value {
    font-size: 2rem;
  }
  
  .modal-prize-value {
    font-size: 2.5rem;
  }
}

/* Corner Logo - Bottom Left */
.corner-logo-link {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 100;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.corner-logo-link:hover {
  transform: scale(1.1);
}

.corner-logo {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 0 10px hsla(120, 100%, 50%, 0.4))
          drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: filter 0.3s ease;
}

.corner-logo-link:hover .corner-logo {
  filter: drop-shadow(0 0 15px hsla(120, 100%, 50%, 0.7))
          drop-shadow(0 0 25px hsla(120, 100%, 50%, 0.5))
          drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* game-corner-logo now uses fixed positioning from parent class */

@media (min-width: 768px) {
  .corner-logo {
    width: 120px;
  }
}

/* Version Tag */
.version-tag {
  position: fixed;
  bottom: 4px;
  right: 8px;
  font-size: 10px;
  color: var(--muted-foreground);
  opacity: 0.5;
  font-family: monospace;
  z-index: 1;
  pointer-events: none;
}