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

body {
  font-family: 'Georgia', serif;
  background: linear-gradient(135deg, #1a0f2e 0%, #0a0515 100%);
  min-height: 100vh;
  padding: 40px 20px;
  color: white;
}

header {
  text-align: center;
  margin-bottom: 60px;
}

.main-logo {
  width: 400px;
  max-width: 90%;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.5));
}

h1 {
  font-size: 48px;
  color: #F6AD55;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(246, 173, 85, 0.5);
}

.subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  animation: pulse 2s ease-in-out infinite;
}

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

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.card-container {
  perspective: 1500px;
  width: 100%;
  height: 550px;
}

.card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
}

.card:hover {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* FRONT FACE */
.card-front {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-front video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
}

/* BACK FACE - BASE */
.card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 30px 25px;
  border: 3px solid rgba(246, 173, 85, 0.4);
  position: relative;
}

/* CHAKRA-SPECIFIC BACKGROUNDS */
.architect-back {
  background: linear-gradient(180deg, #4a3b6e 0%, #2d1f47 50%, #1a0f2e 100%);
}

.seer-back {
  background: linear-gradient(180deg, #3d5a8c 0%, #2a3d5f 50%, #1a2438 100%);
}

.echo-back {
  background: linear-gradient(180deg, #2196f3 0%, #1565c0 50%, #0d47a1 100%);
}

.empath-back {
  background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 50%, #0d3317 100%);
}

.maverick-back {
  background: linear-gradient(180deg, #f9a825 0%, #f57c00 50%, #e65100 100%);
}

.creator-back {
  background: linear-gradient(180deg, #ff6f00 0%, #e65100 50%, #bf360c 100%);
}

.guardian-back {
  background: linear-gradient(180deg, #c62828 0%, #8e0000 50%, #5d0000 100%);
}

.logo {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.archetype-name {
  font-size: 32px;
  font-weight: bold;
  color: white;
  margin: 0 0 10px 0;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.chakra-badge {
  display: inline-block;
  background: rgba(246, 173, 85, 0.3);
  color: #F6AD55;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  border: 1px solid rgba(246, 173, 85, 0.5);
  text-transform: uppercase;
}

.realm-name {
  font-size: 18px;
  color: rgba(246, 173, 85, 0.9);
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 2px;
  font-style: italic;
}

.traits {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  text-align: center;
  letter-spacing: 1px;
}

.description {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  max-width: 350px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.chess-piece {
  font-size: 50px;
  color: rgba(246, 173, 85, 0.9);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  margin-top: auto;
}

.corner-ornament {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(246, 173, 85, 0.3);
}

.corner-ornament.top-left {
  top: 15px;
  left: 15px;
  border-right: none;
  border-bottom: none;
  border-radius: 6px 0 0 0;
}

.corner-ornament.top-right {
  top: 15px;
  right: 15px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 6px 0 0;
}

.corner-ornament.bottom-left {
  bottom: 15px;
  left: 15px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 6px;
}

.corner-ornament.bottom-right {
  bottom: 15px;
  right: 15px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 6px 0;
}

footer {
  text-align: center;
  margin-top: 80px;
  padding: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .card-container {
    height: 450px;
  }
  
  .main-logo {
    width: 300px;
  }
  
  h1 {
    font-size: 36px;
  }
  
  .archetype-name {
    font-size: 28px;
  }
  
  .description {
    font-size: 13px;
  }
}
