/* =========================================================
   EARLY STACKERS — SMOOTH CLOCKWISE ROTATION
   Dark theme with responsive design - No scroll needed
   ========================================================= */

:root, html { color-scheme: dark !important; }

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

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.embedded-gallery {
  min-height: 100vh;
  height: 100vh;
  background-color: #000 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.embedded-gallery .container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* ------- Concentric rings ------- */
.embedded-gallery .outer-circle {
  width: 600px; 
  height: 600px; 
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  border: 2px solid rgba(50, 255, 245, 0);
  transition: border-color 0.5s ease;
}

.embedded-gallery .outer-circle.show-border {
  border-color: rgba(50, 255, 245, 0.918);
}

.embedded-gallery .middle-circle {
  width: 500px; 
  height: 500px; 
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  border: 2px solid rgba(64, 102, 179, 0);
  position: relative;
  transition: border-color 0.5s ease;
}

.embedded-gallery .middle-circle.show-border {
  border-color: rgba(64, 102, 179, 0.6);
}

.embedded-gallery .gradient-ring {
  width: 400px; 
  height: 400px; 
  border-radius: 50%;
  padding: 2px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  position: relative;
  background: linear-gradient(90deg, #8b5cf6, #ec4899, #ef4444);
  box-shadow: 0 0 0 1px rgba(0,0,0,.45) inset;
  transition: all 0.3s ease;
}

.embedded-gallery .inner-circle {
  width: 100%; 
  height: 100%; 
  border-radius: 50%;
  background: #000;
  display: flex; 
  align-items: center; 
  justify-content: center;
  position: relative; 
  z-index: 3;
}

/* ------- Profile images with smooth rotation ------- */
.embedded-gallery .profile-image {
  position: absolute;
  width: 80px; 
  height: 80px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 4px solid #1f2937;
  box-shadow: 0 12px 24px rgba(0,0,0,.35);
  z-index: 5;
  will-change: transform;
  backface-visibility: hidden;
}

.embedded-gallery .profile-image img {
  width: 100%; 
  height: 100%; 
  object-fit: contain;
  display: block;
}

/* ------- Title/copy (visible immediately) ------- */
.embedded-gallery .content {
  position: absolute; 
  inset: 0;
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  z-index: 4;
  pointer-events: none;
  transition: opacity .5s ease, transform .5s ease, z-index .01s linear;
  font-family: Bobby Jones, sans-serif;
}

.embedded-gallery .content h1 {
  font-size: 2.6rem; 
  line-height: 1.05;
  font-weight: 800; 
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
  margin: .2rem 0;
  font-family: Bobby Jones, sans-serif;
}

.embedded-gallery .content.visible {
  opacity: 1;
  transform: translateY(0);
  z-index: 6;
  font-family: Bobby Jones, sans-serif;
}

/* ------- Tablet Responsive ------- */
@media (max-width: 860px){
  .embedded-gallery .outer-circle { 
    width: 520px; 
    height: 520px; 
  }
  .embedded-gallery .middle-circle{ 
    width: 430px; 
    height: 430px; 
  }
  .embedded-gallery .gradient-ring{ 
    width: 340px; 
    height: 340px; 
  }
  .embedded-gallery .profile-image { 
    width: 75px; 
    height: 75px; 
  }
  .embedded-gallery .content h1 { 
    font-size: 2.2rem; 
    font-family: Bobby Jones, sans-serif;
  }
}

/* ------- Mobile Responsive ------- */
@media (max-width: 560px){
  .embedded-gallery {
    min-height: 100dvh;
    height: 100dvh;
    padding: 0;
  }

  .embedded-gallery .container {
    padding: 0;
    margin: 0;
  }

  .embedded-gallery .outer-circle { 
    width: 400px; 
    height: 400px; 
  }
  .embedded-gallery .middle-circle{ 
    width: 320px; 
    height: 320px; 
  }
  .embedded-gallery .gradient-ring{ 
    width: 250px; 
    height: 250px; 
  }

  .embedded-gallery .profile-image {
    width: 64px;
    height: 64px;
    border-width: 3px;
    border-radius: 14px;
  }

  .embedded-gallery .content h1 {
    font-size: 1.8rem;
    padding: 0 1rem;
    line-height: 1.1;
    font-family: Bobby Jones, sans-serif;
  }
}

/* ------- Extra small devices ------- */
@media (max-width: 380px){
  .embedded-gallery .outer-circle { 
    width: 260px; 
    height: 260px; 
  }
  .embedded-gallery .middle-circle{ 
    width: 210px; 
    height: 210px; 
  }
  .embedded-gallery .gradient-ring{ 
    width: 165px; 
    height: 165px; 
  }

  .embedded-gallery .profile-image {
    width: 48px;
    height: 48px;
    border-width: 2px;
    border-radius: 10px;
  }

  .embedded-gallery .content h1 {
    font-size: 1.3rem;
    font-family: Bobby Jones, sans-serif;
  }
}

/* ------- Landscape mobile optimization ------- */
@media (max-height: 600px) and (orientation: landscape) {
  .embedded-gallery .outer-circle { 
    width: 400px; 
    height: 400px; 
  }
  .embedded-gallery .middle-circle{ 
    width: 330px; 
    height: 330px; 
  }
  .embedded-gallery .gradient-ring{ 
    width: 270px; 
    height: 270px; 
  }

  .embedded-gallery .profile-image {
    width: 60px;
    height: 60px;
  }

  .embedded-gallery .content h1 {
    font-size: 1.8rem;
    font-family: Bobby Jones, sans-serif;
  }
}

/* ------- Force dark theme ------- */
@media (prefers-color-scheme: light) {
  html body .embedded-gallery { 
    background-color: #000 !important; 
  }
  html body .embedded-gallery .gradient-ring {
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #ef4444) !important;
  }
}