@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');            

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

/* Splash screen styles */
#splash {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: #00ff00;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  user-select: none;
  z-index: 9999;
  transition: opacity 1s ease;
}

#splash pre {
  font-size: clamp(12px, 2vw, 20px);
  text-align: center;
  text-shadow: 0 0 10px #00ff00;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px #00ff00; }
  to { text-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00; }
}

#splash.fade-out {
  opacity: 0;
}

/* Main body styles */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; 
  position: relative;  
  color: white;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #000000 100%);
  filter: grayscale(100%);
  font-family: 'Press Start 2P', cursive;
}

/* Background animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
  z-index: 1;
}

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

/* Main content area */
#maincontent {
  position: relative;
  z-index: 2;
  text-align: center;
  align-items: center;
  color: white;
  margin: 50px auto;
  animation: fadeIn 1.5s ease-out forwards;
  padding: 20px;
  display: none;
}

#maincontent h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 30px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  letter-spacing: 3px;
}

#mainpic {
  width: auto;           
  height: auto;         
  display: inline-block; 
  animation: swinggirl 4s cubic-bezier(.36,.07,.19,.97) infinite alternate;
  transform-origin: center top; 
  filter: grayscale(100%) brightness(1.1) contrast(1.2);
  border-radius: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#mainpic img {
  border-radius: 17px;
  max-width: 300px;
  height: auto;
}

@keyframes swinggirl {
  0% { transform: rotate(-3deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.02); }
  100% { transform: rotate(-2deg) scale(1); }
}

#playing {
  font-size: clamp(0.6rem, 1.5vw, 0.8rem);
  margin: 30px auto;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 25px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: inline-block;
}

#clickon {
  font-size: clamp(0.5rem, 1.2vw, 0.6rem);
  margin: 40px auto;
  color: rgba(255, 255, 255, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Profile grid layout */
#profiles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  display: none;
}

.corner {
  position: absolute;
  width: 180px; 
  text-align: center;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.corner a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  padding: 20px 15px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-height: 140px;
  box-sizing: border-box;
}

.corner a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.corner img.icon {
  width: 80px;   
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.corner a:hover img.icon {
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.label {
  font-size: clamp(10px, 1.2vw, 14px);
  margin-top: 12px;
  opacity: 0.9;
  max-width: 160px;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
}

#lavoux       { top: 15%; left: 15%; }
#T-mobile     { top: 15%; right: 15%; }
#nil          { bottom: 15%; left: 15%; }
#sen          { bottom: 15%; right: 15%; }
#kainux       { left: 15%; top: 50%; transform: translateY(-50%); }
#lurkingform  { right: 15%; top: 50%; transform: translateY(-50%); }
#gloob { bottom: 15%; left: 50%; transform: translateX(-50%); }

/* Start button */
#startBtn {
  margin-top: 30px;
  padding: 15px 30px;
  font-size: clamp(12px, 1.5vw, 16px);
  font-family: 'Press Start 2P', cursive;
  background: transparent;
  color: #00ff00;
  border: 2px solid #00ff00;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px #00ff00;
  position: relative;
  overflow: hidden;
}

#startBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
  transition: left 0.5s;
}

#startBtn:hover::before {
  left: 100%;
}

#startBtn:hover {
  background: #00ff00;
  color: black;
  text-shadow: none;
  box-shadow: 0 0 20px #00ff00;
  transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
  .corner {
    width: 140px;
  }
  
  .corner a {
    padding: 15px 10px;
    min-height: 120px;
  }
  
  .corner img.icon {
    width: 60px;
    height: 60px;
  }
  
  .label {
    max-width: 120px;
  }
  
  #brokenigga37, #T-mobile, #Hus, #sen, #kainux, #lurkingform {
    left: 10% !important;
    right: 10% !important;
  }
  
  #kainux { top: 35% !important; }
  #blank { top: 65% !important; }
  
  #maincontent h1 {
    font-size: 2rem;
  }
  
  #mainpic img {
    max-width: 200px;
  }
}