* {
  box-sizing: border-box;
}

html, body {
  font-family: 'Press Start 2P', cursive;
  background: transparent;
  color: #fff;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Three.js Canvas Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
  background: linear-gradient(180deg, #6B21A8 0%, #5B21B6 50%, #4C1D95 100%);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Header */
header {
  text-align: center;
  padding: 40px 0 20px;
}

.logo {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  display: block;
  animation: float 3s ease-in-out infinite;
  image-rendering: pixelated;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.logo-title {
  font-size: 2rem;
  color: #C4B5FD;
  text-shadow: 4px 4px 0 #4C1D95;
  margin-bottom: 10px;
}

.tagline {
  font-size: 0.7rem;
  line-height: 1.8;
  color: #DDD6FE;
  margin-top: 20px;
}

.blink {
  animation: blink-animation 1s steps(2, start) infinite;
  color: #F5D0FE;
}

@keyframes blink-animation {
  to { visibility: hidden; }
}

/* Sections */
section {
  margin: 30px 0;
}

h2 {
  color: #C4B5FD;
  font-size: 1rem;
  margin-bottom: 15px;
}

h3 {
  color: #DDD6FE;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

p {
  font-size: 0.6rem;
  line-height: 2;
}

/* Games container */
.games-section {
  border: 4px solid #8B5CF6;
  padding: 20px;
  background: rgba(91, 33, 182, 0.85);
  position: relative;
  backdrop-filter: blur(2px);
}

.games-section .section-title {
  position: absolute;
  top: -12px;
  left: 20px;
  background: #5B21B6;
  padding: 0 10px;
  color: #C4B5FD;
  font-size: 0.8rem;
}

/* Game Cards */
.game-card {
  margin: 25px 0;
  padding: 20px;
  border: 4px solid #8B5CF6;
  background: rgba(76, 29, 149, 0.9);
  backdrop-filter: blur(2px);
}

.game-card:hover {
  border-color: #C4B5FD;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

.game-title {
  color: #DDD6FE;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.game-desc {
  color: #E9D5FF;
  margin-bottom: 15px;
}

/* Custom Pixel Buttons */
.pixel-btn {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.6rem;
  padding: 12px 20px;
  margin: 5px;
  border: none;
  cursor: pointer;
  position: relative;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  box-shadow: 
    inset -4px -4px 0px 0px rgba(0,0,0,0.3),
    inset 4px 4px 0px 0px rgba(255,255,255,0.2);
  transition: transform 0.1s;
}

.pixel-btn:hover {
  transform: translateY(-2px);
}

.pixel-btn:active {
  transform: translateY(2px);
  box-shadow: 
    inset 4px 4px 0px 0px rgba(0,0,0,0.3),
    inset -4px -4px 0px 0px rgba(255,255,255,0.2);
}

.pixel-btn.purple {
  background-color: #8B5CF6;
  color: #ffffff;
}

.pixel-btn.lavender {
  background-color: #C4B5FD;
  color: #1e1b4b;
}

.pixel-btn.pink {
  background-color: #DDD6FE;
  color: #1e1b4b;
}

.pixel-btn.red {
  background-color: #e76e55;
  color: #ffffff;
}

.pixel-btn.gray {
  background-color: #adafbc;
  color: #212529;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.social-links a {
  text-decoration: none;
}

/* Contact */
.contact-section {
  text-align: center;
  padding: 30px;
  border: 4px solid #8B5CF6;
  background: rgba(91, 33, 182, 0.85);
  backdrop-filter: blur(2px);
}

.email-link {
  color: #DDD6FE;
  text-decoration: none;
  font-size: 0.7rem;
}

.email-link:hover {
  color: #F5D0FE;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  margin-top: 40px;
  border-top: 4px solid #8B5CF6;
}

footer p {
  color: #A78BFA;
  font-size: 0.5rem;
}

/* Links */
a {
  color: #C4B5FD;
}

a:hover {
  color: #F5D0FE;
}

/* Responsive */
@media (max-width: 600px) {
  .logo-title {
    font-size: 1.3rem;
  }
  
  .logo {
    width: 140px;
    height: 140px;
  }
  
  .container {
    padding: 10px;
  }

  .button-row {
    flex-direction: column;
  }

  .pixel-btn {
    width: 100%;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
  }
}
