* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Work Sans', system-ui, sans-serif;
}

/* Updated styles */

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: #050f26; /* Matches body - prevents overscroll color flash */
}

body {
  background: #050f26;
  color: #e8f0ff;
  overflow-x: hidden;
  overscroll-behavior: none; /* Prevents bounce/overscroll on mobile */
}

/* ====== STARS BACKGROUND ====== */

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes twinkle {
  0%, 100% { 
    opacity: var(--opacity); 
    transform: scale(1);
  }
  50% { 
    opacity: calc(var(--opacity) * 0.2); 
    transform: scale(0.8);
  }
}

/* ====== FIXED HEADER ====== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.site-name {
  font-family: "Work Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  letter-spacing: 0.02em;
  color: #e8f0ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-name:hover {
  color: #3f6dff;
}

.header-links {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: flex-end;
}

.social-link {
  cursor: pointer;
  color: #e8f0ff;
  transition: color 0.2s ease;
}

.social-link:hover {
  color: #3f6dff;
}

.social-link svg {
  width: 24px;
  height: 24px;
}

/* ====== HERO SECTION ====== */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* Small viewport height - prevents stretching when browser UI hides */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  padding: 0 2rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.hero-text {
  font-family: "Work Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.4;
  color: #f3f6ff;
  text-align: left;
  text-wrap: balance;
  z-index: 10;
  position: relative;
  flex: 0 1 auto;
  max-width: 600px;
}

.hero-text em {
  font-style: italic;
  color: #e8f0ff;
}

/* ====== ORBIT CLUSTER - CENTERED & LARGER ====== */

.hero-orbit {
  position: relative;
  width: 420px;
  height: 420px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  flex-shrink: 0;
}

/* central spinning 9K logo - 2-3X bigger */
.hero-orbit-logo {
  width: 320px;
  height: auto;
  animation: logo-spin 16s linear infinite, logo-wobble 7s ease-in-out infinite;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55));
}

/* shared orbit item base */
.hero-orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
}

/* card styles for images */
.hero-orbit-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

/* moon phase emoji */
.moon-phase {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

/* terrain: smaller circle (moon) - swapped sizes */
.hero-orbit-item--terrain {
  width: 80px;
  height: 80px;
}


/* Face link styling */
.face-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  pointer-events: auto;
}

.face-link-text {
  position: absolute;
  left: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%);
  color: #e8f0ff;
  font-family: "Work Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
  text-align: left;
}

.face-link:hover .face-link-text {
  opacity: 1;
}

/* mood: larger circle (face 2) - swapped sizes */
.hero-orbit-item--mood {
  width: 120px;
  height: 120px;
}

/* emoji style - bigger */
.hero-orbit-item--emoji span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

/* individual orbits (different radii + speeds) - scaled up */
.hero-orbit-item--terrain {
  animation: orbit-terrain 55s linear infinite;
}

.hero-orbit-item--mood {
  animation: orbit-mood 40s linear infinite;
}

.hero-orbit-item--emoji {
  animation: orbit-emoji 25s linear infinite;
}

/* ====== SCROLL INDICATOR ====== */

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(232, 240, 255, 0.7);
  transition: color 0.2s ease, transform 0.2s ease;
  animation: bounce 2s ease-in-out infinite;
  z-index: 10;
  filter: drop-shadow(0 0 8px rgba(63, 109, 255, 0.4));
}

.scroll-indicator:hover {
  color: #3f6dff;
}

.scroll-indicator svg {
  width: 32px;
  height: 32px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ====== ABOUT SECTION ====== */

.about {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  text-align: center;
  z-index: 1;
}

.about-inner {
  max-width: 600px;
}

.about-text {
  font-family: "Work Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.4;
  color: #f3f6ff;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.about-subtext {
  font-family: "Work Sans", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.6;
  color: rgba(232, 240, 255, 0.75);
  margin-bottom: 2rem;
  text-wrap: balance;
}

.hot-takes {
  color: #ff8c42;
  text-shadow: 
    0 0 10px rgba(255, 140, 66, 0.6),
    0 0 20px rgba(255, 140, 66, 0.4),
    0 0 30px rgba(255, 140, 66, 0.2);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.hot-takes:hover {
  color: #ffa366;
  text-shadow: 
    0 0 15px rgba(255, 140, 66, 0.8),
    0 0 25px rgba(255, 140, 66, 0.6),
    0 0 35px rgba(255, 140, 66, 0.4);
}

.newsletter-embed {
  width: 480px;
  height: 320px;
  border: 1px solid #EEE;
  background: white;
  border-radius: 4px;
  margin: 0 auto;
  display: block;
}

/* ====== ABOUT SOCIAL LINKS ====== */

.about-social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 2.5rem;
}

.about-social-links .social-link {
  color: #e8f0ff;
  transition: color 0.2s ease;
}

.about-social-links .social-link:hover {
  color: #3f6dff;
}

.about-social-links .social-link svg {
  width: 28px;
  height: 28px;
}

/* ====== KEYFRAMES ====== */

@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes logo-wobble {
  0%, 100% { scale: 1; }
  50% { scale: 1.03; }
}

/* Moon (terrain): furthest orbit, slowest speed */
@keyframes orbit-terrain {
  0% {
    transform: translate(-50%, -50%)
               rotate(0deg)
               translate(220px)
               rotate(-12deg);
  }
  100% {
    transform: translate(-50%, -50%)
               rotate(360deg)
               translate(220px)
               rotate(-12deg);
  }
}

/* Face (mood): medium orbit, medium speed, opposite direction */
@keyframes orbit-mood {
  0% {
    transform: translate(-50%, -50%)
               rotate(360deg)
               translate(185px)
               rotate(8deg);
  }
  100% {
    transform: translate(-50%, -50%)
               rotate(0deg)
               translate(185px)
               rotate(8deg);
  }
}

/* Satellite (emoji): closest orbit, fastest speed */
@keyframes orbit-emoji {
  0% {
    transform: translate(-50%, -50%)
               rotate(0deg)
               translate(155px)
               rotate(-90deg);
  }
  100% {
    transform: translate(-50%, -50%)
               rotate(360deg)
               translate(155px)
               rotate(-90deg);
  }
}

/* ====== RESPONSIVE ====== */

/* Large screens - switch to vertical when content would overlap */
@media (max-width: 1200px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding-top: 5rem;
  }

  .hero-text {
    text-align: center;
    max-width: 100%;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .site-header {
    padding: 20px 24px;
  }

  .hero-orbit {
    width: 350px;
    height: 350px;
  }

  .hero-orbit-logo {
    width: 260px;
  }

  .hero-orbit-item--terrain {
    width: 65px;
    height: 65px;
  }

  .moon-phase {
    font-size: 3rem;
  }

  .hero-orbit-item--mood {
    width: 100px;
    height: 100px;
  }

  .hero-orbit-item--emoji span {
    font-size: 3.2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .site-header {
    padding: 16px 20px;
  }

  .site-name {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }

  .header-links {
    gap: 16px;
  }

  .social-link svg {
    width: 22px;
    height: 22px;
  }

  .hero-orbit {
    width: 85vw;
    height: 85vw;
    max-width: 400px;
    max-height: 400px;
  }

  .hero-orbit-logo {
    width: 65vw;
    max-width: 280px;
  }

  .hero-orbit-item--terrain {
    width: 16vw;
    height: 16vw;
    max-width: 70px;
    max-height: 70px;
    animation: orbit-terrain-mobile 55s linear infinite;
  }

  .moon-phase {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }

  .hero-orbit-item--mood {
    width: 22vw;
    height: 22vw;
    max-width: 100px;
    max-height: 100px;
    animation: orbit-mood-mobile 40s linear infinite;
  }

  .hero-orbit-item--emoji span {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .hero-orbit-item--emoji {
    animation: orbit-emoji-mobile 25s linear infinite;
  }

  .scroll-indicator {
    bottom: 40px;
    z-index: 50;
  }

  .scroll-indicator svg {
    width: 36px;
    height: 36px;
  }

  .about {
    padding: 4rem 1.5rem;
    align-items: center;
  }

  .hero {
    padding: 0 2rem;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding-top: 4rem;
  }

  .hero-text {
    font-size: clamp(1.5rem, 6vw, 2rem);
    text-align: center;
    max-width: 100%;
  }

  .hero-orbit {
    width: 350px;
    height: 350px;
  }

  .about-subtext {
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  }

  .about-subtext br {
    display: none;
  }
  
  .about-social-links {
    gap: 20px;
    margin-top: 1.5rem;
  }
  
  .about-social-links .social-link svg {
    width: 26px;
    height: 26px;
  }

  .about-subtext br {
    display: none;
  }

  .newsletter-embed {
    width: 100%;
    max-width: 480px;
    height: 280px;
  }

  .game-card-content {
    padding: 1.5rem;
  }

  .game-card-text-group {
    padding: 0 1rem;
  }

  .game-card-title {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  }

  .game-card-status {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
  }

  .game-card-steam-logo {
    max-height: 30px;
  }

  /* Moon (terrain): furthest orbit */
  @keyframes orbit-terrain-mobile {
    0% {
      transform: translate(-50%, -50%)
                 rotate(0deg)
                 translate(min(42vw, 180px))
                 rotate(-12deg);
    }
    100% {
      transform: translate(-50%, -50%)
                 rotate(360deg)
                 translate(min(42vw, 180px))
                 rotate(-12deg);
    }
  }

  /* Face (mood): medium orbit, opposite direction */
  @keyframes orbit-mood-mobile {
    0% {
      transform: translate(-50%, -50%)
                 rotate(360deg)
                 translate(min(36vw, 155px))
                 rotate(8deg);
    }
    100% {
      transform: translate(-50%, -50%)
                 rotate(0deg)
                 translate(min(36vw, 155px))
                 rotate(8deg);
    }
  }

  /* Satellite (emoji): closest orbit */
  @keyframes orbit-emoji-mobile {
    0% {
      transform: translate(-50%, -50%)
                 rotate(0deg)
                 translate(min(30vw, 130px))
                 rotate(-90deg);
    }
    100% {
      transform: translate(-50%, -50%)
                 rotate(360deg)
                 translate(min(30vw, 130px))
                 rotate(-90deg);
    }
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .site-header {
    padding: 14px 16px;
  }

  .site-name {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  }

  .header-links {
    gap: 12px;
  }

  .social-link svg {
    width: 20px;
    height: 20px;
  }

  .hero {
    padding: 0 1.5rem;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding-top: 3.5rem;
  }

  .hero-text {
    font-size: clamp(1.4rem, 5.5vw, 1.8rem);
    text-align: center;
    max-width: 100%;
  }

  .hero-orbit {
    width: 85vw;
    height: 85vw;
    max-width: 400px;
    max-height: 400px;
  }

  .about-subtext {
    font-size: clamp(1.05rem, 3vw, 1.2rem);
  }
  
  .about-social-links {
    gap: 18px;
    margin-top: 1.75rem;
  }
  
  .about-social-links .social-link svg {
    width: 24px;
    height: 24px;
  }

  .games {
    padding: 1rem 1.5rem 6rem 1.5rem;
  }

  .games-heading {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 2rem;
  }

  .game-card {
    max-width: 100%;
  }

  .game-card-content {
    padding: 1rem;
  }

  .game-card-text-group {
    padding: 0 0.75rem;
    width: calc(100% - 1.5rem);
    gap: 0.4rem;
  }

  .game-card-title {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    word-break: break-word;
    line-height: 1.2;
  }

  .game-card-status {
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    line-height: 1.4;
  }

  .game-card-steam-logo {
    bottom: 0.75rem;
    max-height: 24px;
  }

  .newsletter-embed {
    width: 100%;
    max-width: 480px;
    height: 260px;
  }
}

/* ====== GAMES SECTION ====== */

.games {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 8rem 2rem;
  text-align: center;
  z-index: 1;
}

.games-inner {
  max-width: 1200px;
  width: 100%;
}

.games-heading {
  font-family: "Work Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.4;
  color: #f3f6ff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

.game-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}

.game-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 616 / 353; /* Large Steam capsule (header) ratio */
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.1); /* Slight scale to prevent blur edges */
}

.game-card-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  box-sizing: border-box;
}

.game-card-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
  width: 100%;
  padding: 0 2rem;
  box-sizing: border-box;
}

.game-card-title {
  font-family: monospace;
  font-weight: 600;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: #e8f0ff;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-align: center;
}

.game-card-steam-logo {
  flex-shrink: 0;
}

.game-card-status {
  font-family: "Work Sans", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(232, 240, 255, 0.75);
  line-height: 1.6;
}

.game-card-steam-logo {
  width: auto;
  max-height: 40px;
  object-fit: contain;
  margin-top: auto;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ====== FOOTER ====== */

.site-footer {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  line-height: 0;
  background: #050f26; /* Match body background */
}

.footer-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin: 0;
  padding: 0;
  /* Mask - fully transparent at top, fades to visible at bottom with smooth gradient */
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 10%,
    rgba(0, 0, 0, 0.12) 20%,
    rgba(0, 0, 0, 0.22) 30%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.65) 60%,
    rgba(0, 0, 0, 0.78) 70%,
    rgba(0, 0, 0, 0.88) 80%,
    rgba(0, 0, 0, 0.95) 90%,
    rgba(0, 0, 0, 1) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 10%,
    rgba(0, 0, 0, 0.12) 20%,
    rgba(0, 0, 0, 0.22) 30%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.65) 60%,
    rgba(0, 0, 0, 0.78) 70%,
    rgba(0, 0, 0, 0.88) 80%,
    rgba(0, 0, 0, 0.95) 90%,
    rgba(0, 0, 0, 1) 100%
  );
}
