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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  min-height: 100vh;
}

/* Splash Screen */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #8b0000 0%, #dc143c 50%, #8b0000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.5s ease;
}

#splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.splash-title {
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
  margin-bottom: 10px;
  animation: pulse 2s infinite;
  text-align: center;
  padding: 0 20px;
}

.splash-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  text-align: center;
  padding: 0 20px;
}

.splash-heroes {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.splash-hero {
  font-size: 2.5rem;
  animation: float 3s ease-in-out infinite;
}

.splash-hero:nth-child(2) { animation-delay: 0.3s; }
.splash-hero:nth-child(3) { animation-delay: 0.6s; }
.splash-hero:nth-child(4) { animation-delay: 0.9s; }

.loading-text {
  font-size: 1rem;
  animation: blink 1.5s infinite;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  text-align: center;
  padding: 40px 20px;
  background: rgba(0,0,0,0.3);
  border-radius: 20px;
  margin-bottom: 40px;
}

.header h1 {
  font-size: 2.5rem;
  background: linear-gradient(45deg, #ff6b6b, #ffd93d, #6bcb77, #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.header h2 {
  font-size: 1.2rem;
  color: #ffd93d;
  margin-top: 10px;
}

.creator-badge {
  display: inline-block;
  background: linear-gradient(45deg, #ff6b6b, #ff6347);
  padding: 10px 25px;
  border-radius: 25px;
  margin-top: 20px;
  font-size: 1.1rem;
  animation: pulse 2s infinite;
}

/* Play Area */
.play-area {
  text-align: center;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 30px 20px;
  margin-bottom: 40px;
  border: 2px solid rgba(255,255,255,0.1);
}

.heroes-gathering-title {
  font-size: 1.3rem;
  color: #ffd93d;
  margin-bottom: 20px;
}

.heroes-gathering {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.gathering-hero {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  border: 3px solid #fff;
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
  animation: float 3s ease-in-out infinite;
}

.play-button {
  display: inline-block;
  margin: 20px 0;
  padding: 22px 50px;
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(45deg, #ff6b6b, #dc143c);
  border: none;
  border-radius: 25px;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(220, 20, 60, 0.4);
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(220, 20, 60, 0.6);
}

.play-hint {
  margin-top: 15px;
  font-size: 0.95rem;
  opacity: 0.8;
  font-style: italic;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 50px 0 30px;
  color: #ffd93d;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Karakter Grid */
.karakter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px;
}

.karakter-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 25px;
  border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.karakter-card:hover {
  transform: translateY(-10px);
  border-color: #ffd93d;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.karakter-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 3px solid #fff;
}

.karakter-name {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 5px;
  color: #ffd93d;
}

.karakter-gender {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 15px;
}

.karakter-stats {
  text-align: center;
}

.stat-bar {
  margin: 10px 0;
}

.stat-label {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.stat-bar-fill {
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(90deg, #4ade80, #22c55e);
}

.kekuatan {
  text-align: center;
  margin-top: 15px;
  padding: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* How To Play */
.how-to-play {
  background: rgba(0,0,0,0.4);
  border-radius: 20px;
  padding: 40px;
  margin-top: 50px;
}

.how-to-card {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
}

.how-to-card h3 {
  color: #ffd93d;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.how-to-card p {
  line-height: 1.8;
  margin-bottom: 10px;
  font-size: 1rem;
}

/* Form Saran */
.saran-section {
  background: rgba(0,0,0,0.4);
  border-radius: 20px;
  padding: 40px;
  margin-top: 50px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #ffd93d;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffd93d;
  background: rgba(255,255,255,0.15);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.btn-kirim {
  background: linear-gradient(45deg, #4ade80, #22c55e);
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-kirim:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}

.btn-kirim:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.notification {
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: center;
  display: none;
}

.notification.success {
  background: rgba(34, 197, 94, 0.3);
  border: 1px solid #4ade80;
  display: block;
}

.notification.error {
  background: rgba(220, 38, 38, 0.3);
  border: 1px solid #ef4444;
  display: block;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
  margin-top: 50px;
  background: rgba(0,0,0,0.5);
  color: #888;
  font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Warna avatar */
.avatar-merah { background: #dc2626; }
.avatar-hijau { background: #16a34a; }
.avatar-kuning { background: #ca8a04; color: #000; }
.avatar-abu { background: #6b7280; }
.avatar-putih { background: #f3f4f6; color: #000; }
.avatar-biru { background: #2563eb; }
.avatar-hitam { background: #111827; }
.avatar-pink { background: #ec4899; }
.avatar-ungu { background: #7c3aed; }
.avatar-coklat { background: #92400e; }

/* Responsive */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.8rem;
  }
  
  .splash-title {
    font-size: 1.8rem;
  }
  
  .splash-subtitle {
    font-size: 1rem;
  }

  .play-button {
    font-size: 1.3rem;
    padding: 18px 35px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .karakter-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  
  .saran-section,
  .how-to-play {
    padding: 20px;
  }

  .gathering-hero {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}