* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(180deg, #0A0015 0%, #1A0033 50%, #0A0015 100%);
  color: #fff;
  overflow-x: hidden;
}

.app-container {
  position: relative;
  min-height: 100vh;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-content {
  text-align: center;
}

.sega-logo-loading {
  font-family: 'Black Ops One', cursive;
  font-size: 120px;
  color: #0057B8;
  text-shadow: 0 0 30px #00F0FF, 0 0 60px #00F0FF;
  animation: pulse 1s infinite;
}

.loading-text {
  font-size: 24px;
  color: #00F0FF;
  margin: 20px 0;
  letter-spacing: 5px;
}

.loading-bar {
  width: 300px;
  height: 20px;
  border: 3px solid #00F0FF;
  background: #000;
  position: relative;
  margin: 0 auto;
}

.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0057B8, #00F0FF);
  animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Scanlines & Effects */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 9998;
}

.vhs-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpi2r9//38gYGAEESAAEGAAasgJOgzOKCoAAAAASUVORK5CYII=');
  opacity: 0.03;
  animation: noise 0.2s infinite;
  pointer-events: none;
  z-index: 9997;
}

@keyframes noise {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(-10%, 5%); }
  30% { transform: translate(5%, -10%); }
  40% { transform: translate(-5%, 15%); }
  50% { transform: translate(-10%, 5%); }
  60% { transform: translate(15%, 0); }
  70% { transform: translate(0, 10%); }
  80% { transform: translate(-15%, 0); }
  90% { transform: translate(10%, 5%); }
  100% { transform: translate(5%, 0); }
}

.glitch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #FF006E 0%, #00F0FF 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 9996;
  transition: opacity 0.05s;
}

.glitch-overlay.active {
  opacity: 0.3;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 60px 70px, #fff, transparent),
    radial-gradient(1px 1px at 50px 50px, #eee, transparent),
    radial-gradient(1px 1px at 130px 80px, #fff, transparent),
    radial-gradient(2px 2px at 90px 10px, #eee, transparent);
  background-size: 200px 200px;
  animation: starsMove 20s linear infinite;
  opacity: 0.5;
}

@keyframes starsMove {
  from { transform: translateY(0); }
  to { transform: translateY(-200px); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.blast-badge {
  display: inline-block;
  background: linear-gradient(45deg, #FF006E, #00F0FF);
  padding: 15px 40px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 30px;
  border: 3px solid #fff;
  box-shadow: 0 0 30px #00F0FF, 0 0 60px #FF006E;
  animation: pulse 2s infinite;
  transform: skew(-5deg);
}

@keyframes pulse {
  0%, 100% { transform: skew(-5deg) scale(1); }
  50% { transform: skew(-5deg) scale(1.05); }
}

.hero-title {
  font-family: 'Black Ops One', cursive;
  font-size: clamp(32px, 8vw, 96px);
  color: #fff;
  text-shadow: 
    0 0 10px #00F0FF,
    0 0 20px #00F0FF,
    0 0 30px #0057B8,
    0 0 40px #0057B8;
  margin-bottom: 50px;
  line-height: 1.2;
}

.sega-cd-image {
  margin: 50px 0;
  perspective: 1000px;
}

.console-img {
  max-width: 600px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 50px #00F0FF);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotateY(0deg); }
  50% { transform: translateY(-20px) rotateY(5deg); }
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  background: linear-gradient(45deg, #FF006E, #0057B8);
  color: #fff;
  border: 3px solid #00F0FF;
  padding: 20px 60px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 0 30px #FF006E;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
}

.cta-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 50px #00F0FF;
}

.cta-button.pulse {
  animation: pulse 2s infinite;
}

.audio-toggle {
  background: rgba(0, 87, 184, 0.5);
  color: #fff;
  border: 2px solid #00F0FF;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s;
}

.audio-toggle:hover {
  background: rgba(0, 240, 255, 0.3);
  border-color: #FF006E;
}

/* Sections */
section {
  padding: 100px 20px;
  position: relative;
}

.section-title {
  font-family: 'Black Ops One', cursive;
  font-size: clamp(36px, 6vw, 72px);
  text-align: center;
  color: #fff;
  text-shadow: 0 0 20px #00F0FF, 0 0 40px #FF006E;
  margin-bottom: 60px;
  letter-spacing: 3px;
}

/* Specs Section */
.specs-section {
  background: linear-gradient(180deg, #1A0033 0%, #0A0015 100%);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.spec-card {
  background: rgba(0, 87, 184, 0.2);
  border: 3px solid #00F0FF;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
  transition: all 0.3s;
}

.spec-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 50px #00F0FF;
  border-color: #FF006E;
}

.spec-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.spec-label {
  font-size: 16px;
  color: #00F0FF;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.spec-value {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px #FF006E;
}

/* Time Machine */
.time-machine-section {
  background: rgba(255, 0, 110, 0.1);
}

.year-selector {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.year-button {
  background: rgba(0, 87, 184, 0.3);
  border: 3px solid #00F0FF;
  color: #00F0FF;
  padding: 20px 40px;
  font-size: 32px;
  font-weight: 900;
  font-family: 'Black Ops One', cursive;
  cursor: pointer;
  transition: all 0.3s;
}

.year-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px #00F0FF;
}

.year-button.active {
  background: linear-gradient(45deg, #FF006E, #0057B8);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 50px #FF006E;
  transform: scale(1.15);
}

/* Games Section */
.games-section {
  background: linear-gradient(180deg, #0A0015 0%, #1A0033 100%);
}

.games-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.game-card {
  background: rgba(0, 0, 0, 0.6);
  border: 3px solid #0057B8;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.game-card:hover {
  transform: translateY(-15px) rotateZ(2deg);
  border-color: #00F0FF;
  box-shadow: 0 0 50px #FF006E;
}

.game-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: saturate(1.2);
}

.game-info {
  padding: 20px;
}

.game-title {
  font-size: 24px;
  font-weight: 900;
  color: #00F0FF;
  margin-bottom: 10px;
  text-shadow: 0 0 10px #00F0FF;
}

.game-tagline {
  font-size: 14px;
  color: #fff;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.game-status {
  display: inline-block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  border: 2px solid;
}

.game-status.available {
  background: #FF006E;
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 20px #FF006E;
}

.game-status.coming {
  background: transparent;
  border-color: #00F0FF;
  color: #00F0FF;
}

/* FMV Section */
.fmv-section {
  background: linear-gradient(180deg, #1A0033 0%, #0A0015 100%);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.fmv-player {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.video-frame {
  position: relative;
  background: #000;
  border: 5px solid #00F0FF;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.5);
  margin-bottom: 30px;
}

.play-button {
  font-size: 120px;
  color: #00F0FF;
  text-shadow: 0 0 30px #00F0FF;
  cursor: pointer;
  transition: all 0.3s;
}

.play-button:hover {
  transform: scale(1.2);
  color: #FF006E;
  text-shadow: 0 0 50px #FF006E;
}

.timecode {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: monospace;
  color: #00F0FF;
  font-size: 24px;
  background: rgba(0, 0, 0, 0.8);
  padding: 5px 15px;
}

.fmv-text {
  font-family: 'Black Ops One', cursive;
  font-size: clamp(24px, 4vw, 48px);
  color: #FF006E;
  text-shadow: 0 0 20px #FF006E;
  letter-spacing: 2px;
}

/* Features Section */
.features-section {
  background: rgba(255, 0, 110, 0.1);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(0, 0, 0, 0.6);
  border: 3px solid #FF006E;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px) rotateZ(-2deg);
  border-color: #00F0FF;
  box-shadow: 0 0 50px #00F0FF;
}

.feature-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 20px;
  font-weight: 900;
  color: #00F0FF;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.feature-desc {
  font-size: 14px;
  color: #fff;
  letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(180deg, #0A0015 0%, #1A0033 100%);
  text-align: center;
  padding: 150px 20px;
}

.price-starburst {
  display: inline-block;
  background: radial-gradient(circle, #FF006E 0%, #0057B8 100%);
  padding: 60px;
  margin-bottom: 50px;
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%
  );
  animation: rotate 10s linear infinite;
  border: 5px solid #fff;
  box-shadow: 0 0 80px #FF006E;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.price {
  font-family: 'Black Ops One', cursive;
  font-size: 48px;
  color: #fff;
  text-shadow: 0 0 20px #000;
  display: block;
  transform: rotate(0deg);
}

.cta-button-large {
  background: linear-gradient(45deg, #0057B8, #FF006E);
  color: #fff;
  border: 5px solid #00F0FF;
  padding: 30px 80px;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 3px;
  cursor: pointer;
  box-shadow: 0 0 50px #00F0FF;
  font-family: 'Black Ops One', cursive;
  transition: all 0.3s;
  margin-bottom: 50px;
}

.cta-button-large:hover {
  transform: scale(1.1);
  box-shadow: 0 0 80px #FF006E;
}

.retailers {
  margin-top: 50px;
}

.retailers-text {
  font-size: 24px;
  color: #00F0FF;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.retailer-logos {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.retailer-logo {
  background: rgba(0, 87, 184, 0.3);
  border: 2px solid #00F0FF;
  padding: 15px 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

/* Footer */
.footer {
  background: #000;
  padding: 60px 20px;
  text-align: center;
  border-top: 5px solid #0057B8;
}

.sega-logo-footer {
  font-family: 'Black Ops One', cursive;
  font-size: 72px;
  color: #0057B8;
  text-shadow: 0 0 30px #00F0FF;
  margin-bottom: 20px;
}

.tagline {
  font-size: 18px;
  color: #00F0FF;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.copyright {
  font-size: 12px;
  color: #888;
  margin-bottom: 20px;
  font-family: monospace;
}

.berrry-link {
  display: inline-block;
  color: #FF006E;
  text-decoration: none;
  font-size: 14px;
  padding: 10px 20px;
  border: 2px solid #FF006E;
  transition: all 0.3s;
}

.berrry-link:hover {
  background: #FF006E;
  color: #fff;
  box-shadow: 0 0 20px #FF006E;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.modal-content {
  background: linear-gradient(180deg, #1A0033 0%, #0A0015 100%);
  border: 5px solid #00F0FF;
  max-width: 600px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: 0 0 80px #00F0FF;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FF006E;
  border: none;
  color: #fff;
  font-size: 32px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-close:hover {
  background: #00F0FF;
  transform: rotate(90deg);
}

.modal-img {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
  border: 3px solid #0057B8;
}

.modal-title {
  font-family: 'Black Ops One', cursive;
  font-size: 36px;
  color: #00F0FF;
  margin-bottom: 15px;
  text-shadow: 0 0 20px #00F0FF;
}

.modal-tagline {
  font-size: 18px;
  color: #FF006E;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.modal-status {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 900;
  background: #FF006E;
  color: #fff;
  margin-bottom: 20px;
  border: 2px solid #fff;
  box-shadow: 0 0 20px #FF006E;
}

.modal-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .blast-badge {
    font-size: 16px;
    padding: 10px 20px;
  }
  
  .cta-button {
    font-size: 18px;
    padding: 15px 30px;
  }
  
  .cta-button-large {
    font-size: 24px;
    padding: 20px 40px;
  }
  
  .price {
    font-size: 32px;
  }
  
  .sega-logo-footer {
    font-size: 48px;
  }
}