:root {
  --bg: #f7f1ff;
  --bg-2: #fff7ec;
  --text: #313131;
  --muted: #6f6678;
  --green: rgb(98, 247, 122);
  --lime: rgb(182, 255, 89);
  --purple: rgb(132, 85, 207);
  --purple-dark: rgb(106, 48, 178);
  --peach: rgb(255, 224, 190);
  --orange: rgb(255, 106, 22);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(72, 34, 117, .16);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(98,247,122,.22), transparent 28%),
    radial-gradient(circle at 90% 4%, rgba(132,85,207,.20), transparent 28%),
    linear-gradient(180deg, #faf6ff 0%, #f7f1ff 48%, #fff8ef 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(106,48,178,.12) 1px, transparent 1px),
    radial-gradient(circle, rgba(98,247,122,.16) 1px, transparent 1px);
  background-size: 42px 42px, 74px 74px;
  background-position: 0 0, 16px 18px;
  opacity: .6;
  z-index: -3;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

#confettiCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.stars span {
  --size: 7px;
  position: fixed;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(98,247,122,.9);
  animation: twinkle 2.8s ease-in-out infinite;
  animation-delay: var(--d);
  opacity: .65;
  z-index: -1;
}

.stars span:nth-child(3n) {
  background: var(--purple);
  box-shadow: 0 0 18px rgba(132,85,207,.9);
}

.stars span:nth-child(4n) {
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255,106,22,.7);
}

@keyframes twinkle {
  0%, 100% { transform: scale(.65); opacity: .25; }
  50% { transform: scale(1.25); opacity: .9; }
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, .82fr);
  gap: 56px;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.kicker,
.eyebrow,
.label {
  color: var(--purple-dark);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 900;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: .92;
  letter-spacing: -.06em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: -.05em;
}

h3 {
  margin-bottom: 10px;
  line-height: 1.1;
}

.hero__lead,
.section-heading p,
.team-card p,
.letter-intro {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero__lead {
  max-width: 720px;
}

.hero__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.tiny-note {
  color: var(--muted);
  font-weight: 700;
}

.primary-button,
.secondary-button,
.tiny-button,
.restart-button {
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.primary-button {
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--text);
  color: white;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(49,49,49,.18);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 44px rgba(49,49,49,.24);
}

.secondary-button,
.tiny-button {
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(106,48,178,.14);
  font-weight: 850;
}

.secondary-button {
  padding: 12px 18px;
}

.tiny-button {
  padding: 9px 12px;
  font-size: 13px;
}

.secondary-button:hover,
.tiny-button:hover {
  transform: translateY(-1px);
  background: var(--green);
  border-color: rgba(49,49,49,.08);
}

.restart-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(49,49,49,.92);
  color: white;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(0,0,0,.20);
  backdrop-filter: blur(10px);
}

.restart-button:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--purple-dark);
}

.hero__visual {
  position: relative;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: white;
  isolation: isolate;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: inherit;
  pointer-events: none;
}

.photo-frame--hero {
  transform: rotate(2deg);
  aspect-ratio: 4 / 5;
}

.photo-frame--hero img,
.profile-photo img,
.team-card img,
.team-gallery__image,
.future-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 45px rgba(72,34,117,.16);
  font-weight: 950;
  backdrop-filter: blur(10px);
  animation: floaty 4s ease-in-out infinite;
}

.floating-badge--one {
  left: -20px;
  top: 14%;
  color: var(--purple-dark);
}

.floating-badge--two {
  right: -16px;
  bottom: 16%;
  color: #0f8f38;
  animation-delay: 1.2s;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.profile-grid,
.future-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 28px;
  align-items: start;
}

.profile-photo,
.future-photo {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: white;
  aspect-ratio: 4 / 5;
}

.accordion-list,
.prediction-grid,
.month-grid,
.metric-grid {
  display: grid;
  gap: 16px;
}

.toggle-card,
.metric-card,
.month-card,
.prediction-card,
.radar-card,
.team-card,
.letter-zone,
.party-panel,
.letter {
  border: 1px solid rgba(106,48,178,.10);
  background: rgba(255,255,255,.74);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px rgba(72,34,117,.08);
  backdrop-filter: blur(14px);
}

.toggle-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
}

.toggle-card .toggle-content {
  grid-column: 1 / -1;
}

.toggle-content {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.toggle-content.is-open {
  animation: openContent .26s ease both;
}

@keyframes openContent {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.metric-grid {
  grid-template-columns: repeat(3, 1fr);
}

.metric-card {
  min-height: 210px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-card strong {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.06em;
}

.metric-label {
  color: var(--purple-dark);
  font-weight: 950;
}

.metric-card:nth-child(1) { background: linear-gradient(135deg, rgba(98,247,122,.58), rgba(255,255,255,.82)); }
.metric-card:nth-child(2) { background: linear-gradient(135deg, rgba(255,224,190,.86), rgba(255,255,255,.82)); }
.metric-card:nth-child(3) { background: linear-gradient(135deg, rgba(216,190,255,.75), rgba(255,255,255,.82)); }
.metric-card:nth-child(4) { background: linear-gradient(135deg, rgba(182,255,89,.58), rgba(255,255,255,.82)); }
.metric-card:nth-child(5) { background: linear-gradient(135deg, rgba(255,106,22,.20), rgba(255,255,255,.82)); }
.metric-card--special { background: linear-gradient(135deg, rgba(132,85,207,.36), rgba(255,255,255,.82)); }

.dashboard-note {
  margin: 24px 0 0;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: var(--text);
  color: white;
  font-weight: 800;
  box-shadow: 0 16px 44px rgba(49,49,49,.18);
}

.month-grid {
  grid-template-columns: repeat(3, 1fr);
}

.month-card,
.prediction-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.month-card::before,
.prediction-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(132,85,207,.14);
}

.month {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green);
  color: var(--text);
  font-weight: 950;
}

.meme {
  padding: 14px;
  border-radius: 16px;
  background: rgba(132,85,207,.10);
  color: var(--purple-dark);
  font-weight: 900;
}

.prediction-grid {
  grid-template-columns: repeat(3, 1fr);
}

.team-card {
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,224,190,.52));
}

.team-hint {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(98,247,122,.22);
  color: var(--purple-dark);
  font-weight: 900;
}

.team-gallery {
  display: grid;
  gap: 14px;
}

.team-gallery__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 34px rgba(72,34,117,.10);
}

.team-gallery__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .34s ease, transform .34s ease;
}

.team-gallery__image.is-active {
  opacity: 1;
  transform: scale(1);
}

.team-gallery__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.team-gallery__counter {
  min-width: 54px;
  text-align: center;
  color: var(--purple-dark);
  font-weight: 950;
}

.radar-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 34px;
  text-align: center;
}

.radar-orb {
  width: 132px;
  height: 132px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, #ffffff 0 8%, transparent 9%),
    radial-gradient(circle at 50% 50%, var(--green), var(--purple) 68%, var(--purple-dark));
  box-shadow: 0 0 56px rgba(132,85,207,.45), inset 0 0 26px rgba(255,255,255,.55);
  animation: pulseOrb 2.8s ease-in-out infinite;
}

@keyframes pulseOrb {
  0%,100% { transform: scale(.98); filter: hue-rotate(0deg); }
  50% { transform: scale(1.04); filter: hue-rotate(18deg); }
}

.radar-card p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.radar-card .button-row,
.letter-zone .button-row {
  justify-content: center;
}

.future-grid {
  align-items: center;
}

.letter-zone {
  padding: 32px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(98,247,122,.28), transparent 32%),
    rgba(255,255,255,.78);
}

.envelope {
  position: relative;
  width: min(340px, 85vw);
  height: 230px;
  margin: 28px auto;
  perspective: 900px;
}

.envelope__back,
.envelope__front,
.envelope__flap,
.envelope__paper {
  position: absolute;
  inset: 0;
}

.envelope__back {
  background: linear-gradient(135deg, var(--peach), #fff7e7);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(106,48,178,.16);
}

.envelope__front {
  clip-path: polygon(0 34%, 50% 68%, 100% 34%, 100% 100%, 0 100%);
  background: linear-gradient(135deg, #fff, #f5e8ff);
  border-radius: 18px;
  z-index: 3;
}

.envelope__flap {
  clip-path: polygon(0 0, 50% 56%, 100% 0);
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: 18px 18px 0 0;
  transform-origin: top center;
  z-index: 4;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}

.envelope__paper {
  width: 76%;
  height: 72%;
  left: 12%;
  top: 20%;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(49,49,49,.10);
  z-index: 2;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}

.envelope.is-open .envelope__flap {
  transform: rotateX(168deg);
}

.envelope.is-open .envelope__paper {
  transform: translateY(-86px);
}

.letter {
  margin-top: 22px;
  padding: 26px;
  text-align: left;
  background: #fff;
}

.letter p {
  line-height: 1.65;
  color: var(--text);
}

.party-panel {
  margin-top: 22px;
  padding: 20px;
  background: rgba(49,49,49,.92);
  color: white;
}

.party-panel p {
  margin-bottom: 8px;
}

.music-player {
  width: min(100%, 680px);
  margin: 20px auto 0;
  overflow: hidden;
  border-radius: 24px;
}

.music-player iframe {
  width: 100%;
  height: 244px;
  border: none;
  border-radius: 24px;
  background: white;
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 70px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 750;
}

.site-footer img {
  max-width: 190px;
  max-height: 64px;
  object-fit: contain;
  border-radius: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .95s ease, transform .95s cubic-bezier(.2,.8,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .profile-grid,
  .future-grid,
  .team-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 72px;
    min-height: auto;
  }

  .metric-grid,
  .month-grid,
  .prediction-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-frame--hero,
  .profile-photo,
  .future-photo {
    max-height: 640px;
  }
}

@media (max-width: 640px) {
  .section {
    width: min(100% - 24px, var(--max));
    padding: 56px 0;
  }

  .hero {
    gap: 32px;
  }

  .metric-grid,
  .month-grid,
  .prediction-grid {
    grid-template-columns: 1fr;
  }

  .toggle-card {
    grid-template-columns: 1fr;
  }

  .restart-button {
    right: 12px;
    bottom: 12px;
    padding: 11px 13px;
    font-size: 14px;
  }

  .floating-badge {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .music-player iframe {
    height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==============================
   Astro premium visual upgrade
   ============================== */
:root {
  --bg: #090817;
  --bg-2: #18102f;
  --text: #f8f3ff;
  --muted: #c7bddb;
  --green: #6dff9a;
  --lime: #caff6a;
  --purple: #a675ff;
  --purple-dark: #7b3fff;
  --peach: #ffd9ae;
  --orange: #ff9b4a;
  --white: #ffffff;
  --card: rgba(22, 15, 44, .74);
  --card-strong: rgba(36, 23, 74, .86);
  --border: rgba(211, 185, 255, .24);
  --shadow: 0 28px 90px rgba(0, 0, 0, .44), 0 0 60px rgba(128, 85, 255, .14);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(109,255,154,.16), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(166,117,255,.28), transparent 30%),
    radial-gradient(circle at 50% 72%, rgba(255,155,74,.13), transparent 34%),
    linear-gradient(180deg, #080714 0%, #130d2a 42%, #090817 100%);
}

body::before {
  background-image:
    radial-gradient(circle, rgba(248,243,255,.28) 1px, transparent 1.4px),
    radial-gradient(circle, rgba(109,255,154,.20) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(166,117,255,.20) 1px, transparent 1.5px);
  background-size: 44px 44px, 92px 92px, 128px 128px;
  background-position: 0 0, 18px 22px, 34px 10px;
  opacity: .46;
  z-index: -4;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 35%, rgba(255,255,255,.05) 46%, transparent 58% 100%);
  opacity: .38;
  z-index: -3;
  animation: cosmicSweep 9s ease-in-out infinite;
}

@keyframes cosmicSweep {
  0%, 100% { transform: translateX(-18%); opacity: .18; }
  50% { transform: translateX(18%); opacity: .42; }
}

h1, h2, h3 {
  color: var(--text);
  text-shadow: 0 0 32px rgba(166,117,255,.18);
}

.kicker,
.eyebrow,
.label,
.metric-label {
  color: #d7c3ff;
  text-shadow: 0 0 18px rgba(166,117,255,.32);
}

.hero__lead,
.section-heading p,
.team-card p,
.letter-intro,
.toggle-content,
.radar-card p,
.site-footer {
  color: var(--muted);
}

.primary-button,
.secondary-button,
.tiny-button,
.toggle-button,
.restart-button {
  appearance: none;
  border: 0;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.primary-button::before,
.secondary-button::before,
.tiny-button::before,
.toggle-button::before,
.restart-button::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.34), transparent 66%);
  transform: translateX(-70%) rotate(12deg);
  transition: transform .55s ease;
  z-index: -1;
}

.primary-button:hover::before,
.secondary-button:hover::before,
.tiny-button:hover::before,
.toggle-button:hover::before,
.restart-button:hover::before {
  transform: translateX(70%) rotate(12deg);
}

.primary-button {
  background: linear-gradient(135deg, #7b3fff 0%, #a675ff 48%, #22dd79 100%);
  color: #fff;
  box-shadow: 0 18px 48px rgba(123,63,255,.36), 0 0 28px rgba(109,255,154,.22);
}

.secondary-button,
.tiny-button,
.toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f8f3ff;
  background:
    linear-gradient(135deg, rgba(166,117,255,.30), rgba(109,255,154,.13)),
    rgba(255,255,255,.08);
  border: 1px solid rgba(215,195,255,.34);
  box-shadow: 0 10px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}

.toggle-button {
  padding: 10px 14px;
  border-radius: 999px;
  min-width: 122px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .02em;
}

.toggle-button::after,
.tiny-button::after,
.secondary-button::after {
  content: "✦";
  font-size: 12px;
  color: var(--green);
  opacity: .9;
}

.secondary-button:hover,
.tiny-button:hover,
.toggle-button:hover {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(166,117,255,.55), rgba(109,255,154,.24)),
    rgba(255,255,255,.10);
  border-color: rgba(109,255,154,.54);
  box-shadow: 0 16px 38px rgba(123,63,255,.34), 0 0 24px rgba(109,255,154,.18);
}

.restart-button {
  background: linear-gradient(135deg, rgba(29,20,59,.94), rgba(123,63,255,.90));
  color: #fff;
  border: 1px solid rgba(215,195,255,.28);
  box-shadow: 0 18px 44px rgba(0,0,0,.38), 0 0 30px rgba(166,117,255,.22);
}

.photo-frame,
.profile-photo,
.future-photo,
.team-gallery__viewport {
  border: 1px solid rgba(215,195,255,.28);
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(166,117,255,.10)),
    rgba(9,8,23,.42);
  box-shadow: var(--shadow);
}

.photo-frame::before,
.profile-photo::before,
.future-photo::before,
.team-gallery__viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 12%, rgba(255,255,255,.28), transparent 22%),
    linear-gradient(135deg, rgba(109,255,154,.16), transparent 42%, rgba(166,117,255,.18));
  mix-blend-mode: screen;
  opacity: .5;
  z-index: 2;
}

.profile-photo,
.future-photo,
.team-gallery__viewport,
.photo-frame {
  position: relative;
}

.photo-frame--hero {
  aspect-ratio: 5 / 6;
}

.profile-grid {
  grid-template-columns: minmax(380px, 1.05fr) minmax(420px, .95fr);
  gap: 34px;
}

.profile-photo {
  aspect-ratio: 5 / 6;
  min-height: 560px;
}

.profile-photo img,
.future-photo img,
.photo-frame--hero img {
  object-position: center top;
}

.toggle-card,
.metric-card,
.month-card,
.prediction-card,
.radar-card,
.team-card,
.letter-zone,
.party-panel,
.letter {
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(166,117,255,.08)),
    var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 18px 54px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.08);
}

.toggle-card {
  padding: 20px;
  border-radius: 28px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.toggle-card:hover,
.toggle-card.is-active,
.month-card:hover,
.prediction-card:hover,
.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(109,255,154,.38);
  box-shadow: 0 22px 62px rgba(0,0,0,.34), 0 0 30px rgba(166,117,255,.14);
}

.toggle-card.is-active,
.month-card.is-active,
.prediction-card.is-active,
.metric-card.is-active {
  background:
    radial-gradient(circle at 0% 0%, rgba(109,255,154,.16), transparent 34%),
    linear-gradient(135deg, rgba(166,117,255,.22), rgba(255,255,255,.08)),
    var(--card-strong);
}

.toggle-content.is-open {
  margin-top: 6px;
}

.metric-card:nth-child(1),
.metric-card:nth-child(2),
.metric-card:nth-child(3),
.metric-card:nth-child(4),
.metric-card:nth-child(5),
.metric-card--special {
  background:
    radial-gradient(circle at 18% 8%, rgba(109,255,154,.18), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(166,117,255,.24), transparent 38%),
    rgba(22,15,44,.80);
}

.metric-card strong {
  color: #ffffff;
  text-shadow: 0 0 22px rgba(109,255,154,.20);
}

.dashboard-note,
.meme,
.team-hint {
  background:
    linear-gradient(135deg, rgba(109,255,154,.18), rgba(166,117,255,.20)),
    rgba(255,255,255,.08);
  color: #f8f3ff;
  border: 1px solid rgba(215,195,255,.22);
}

.month {
  color: #110b22;
  background: linear-gradient(135deg, var(--green), var(--lime));
  box-shadow: 0 8px 22px rgba(109,255,154,.24);
}

.month-card::before,
.prediction-card::before {
  background: radial-gradient(circle, rgba(166,117,255,.32), transparent 68%);
}

.team-card {
  grid-template-columns: minmax(320px, .82fr) minmax(520px, 1.18fr);
  gap: 32px;
  background:
    radial-gradient(circle at 80% 12%, rgba(255,155,74,.15), transparent 34%),
    radial-gradient(circle at 12% 8%, rgba(109,255,154,.15), transparent 28%),
    rgba(22,15,44,.78);
}

.team-gallery__viewport {
  aspect-ratio: 4 / 3;
  min-height: 430px;
  background:
    radial-gradient(circle at center, rgba(166,117,255,.20), transparent 60%),
    rgba(4,4,14,.55);
}

.team-gallery__image {
  object-fit: contain;
  object-position: center center;
  padding: 8px;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.26));
}

.future-grid {
  grid-template-columns: minmax(360px, .92fr) minmax(420px, 1.08fr);
}

.letter-zone {
  background:
    radial-gradient(circle at 50% 0%, rgba(109,255,154,.18), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(166,117,255,.22), transparent 34%),
    rgba(22,15,44,.78);
}

.letter {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,237,255,.98));
  color: #24173e;
}

.letter h3,
.letter p {
  color: #24173e;
  text-shadow: none;
}

.party-panel {
  background:
    radial-gradient(circle at 14% 0%, rgba(109,255,154,.18), transparent 34%),
    linear-gradient(135deg, rgba(30,20,62,.96), rgba(67,34,118,.94));
}

.envelope__back {
  background: linear-gradient(135deg, #ffd9ae, #f6ebff 58%, #d7c3ff);
}

.envelope__front {
  background: linear-gradient(135deg, #fff, #efe3ff 58%, #d8ffe3);
}

.envelope__flap {
  background: linear-gradient(135deg, #7b3fff, #a675ff 56%, #22dd79);
}

.radar-orb {
  box-shadow: 0 0 72px rgba(166,117,255,.58), 0 0 34px rgba(109,255,154,.22), inset 0 0 26px rgba(255,255,255,.55);
}

.site-footer img {
  border: 1px solid rgba(215,195,255,.16);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}

@media (max-width: 980px) {
  .profile-grid,
  .future-grid,
  .team-card {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    min-height: 0;
    max-height: none;
  }

  .team-gallery__viewport {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(40px, 14vw, 58px);
  }

  .toggle-button {
    width: 100%;
    justify-self: stretch;
  }

  .team-gallery__viewport {
    min-height: 260px;
    aspect-ratio: 1 / 1;
  }

  .profile-photo,
  .photo-frame--hero,
  .future-photo {
    aspect-ratio: 4 / 5;
  }
}


/* ==============================
   Extra cosmic sparkles upgrade
   ============================== */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.stars span {
  --star-color: #6dff9a;
  --star-glow: rgba(109,255,154,.78);
  --size: 5px;
  width: var(--size);
  height: var(--size);
  background: var(--star-color);
  box-shadow:
    0 0 calc(var(--size) * 2.2) var(--star-glow),
    0 0 calc(var(--size) * 6) var(--star-glow),
    0 0 calc(var(--size) * 12) rgba(255,255,255,.14);
  filter: drop-shadow(0 0 10px var(--star-glow));
  opacity: .78;
  animation:
    twinkleSparkle 3.4s ease-in-out infinite,
    starDrift 8s ease-in-out infinite;
  animation-delay: var(--d), calc(var(--d) * -1);
}

.stars span::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: inherit;
  background: radial-gradient(circle, var(--star-glow) 0%, rgba(255,255,255,.10) 18%, transparent 68%);
  opacity: .72;
  transform: scale(.86);
  animation: haloBreath 3.8s ease-in-out infinite;
  animation-delay: var(--d);
}

.stars span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--size) * 4.8);
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  transform: translate(-50%, -50%) rotate(35deg);
  opacity: .55;
}

.stars span:nth-child(3n) {
  --star-color: #a675ff;
  --star-glow: rgba(166,117,255,.84);
}

.stars span:nth-child(4n) {
  --star-color: #ff9b4a;
  --star-glow: rgba(255,155,74,.76);
}

.stars span:nth-child(5n) {
  --star-color: #caff6a;
  --star-glow: rgba(202,255,106,.72);
}

.stars span:nth-child(7n) {
  --star-color: #ffffff;
  --star-glow: rgba(255,255,255,.74);
}

@keyframes twinkleSparkle {
  0%, 100% {
    transform: scale(.52) rotate(0deg);
    opacity: .28;
  }
  36% {
    transform: scale(1.22) rotate(8deg);
    opacity: .92;
  }
  64% {
    transform: scale(.82) rotate(-5deg);
    opacity: .56;
  }
}

@keyframes starDrift {
  0%, 100% { margin-left: 0; margin-top: 0; }
  50% { margin-left: 10px; margin-top: -12px; }
}

@keyframes haloBreath {
  0%, 100% { transform: scale(.72); opacity: .24; }
  50% { transform: scale(1.3); opacity: .82; }
}

body::before {
  background-image:
    radial-gradient(circle, rgba(248,243,255,.36) 1px, transparent 1.7px),
    radial-gradient(circle, rgba(109,255,154,.28) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(166,117,255,.26) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255,155,74,.20) 1px, transparent 1.7px);
  background-size: 34px 34px, 58px 58px, 86px 86px, 122px 122px;
  background-position: 0 0, 18px 22px, 34px 10px, 11px 41px;
  opacity: .64;
}

.hero::before,
.card-section::before,
.future-section::before {
  content: "";
  position: absolute;
  pointer-events: none;
  width: min(42vw, 560px);
  height: min(42vw, 560px);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(166,117,255,.24) 0%, rgba(109,255,154,.10) 34%, transparent 68%);
  filter: blur(10px);
  opacity: .72;
  z-index: -2;
  animation: auraFloat 11s ease-in-out infinite;
}

.hero,
.card-section,
.future-section {
  position: relative;
}

.hero::before {
  right: -11vw;
  top: 12vh;
}

.card-section::before {
  left: -18vw;
  top: 8vh;
  animation-delay: -3s;
}

.future-section::before {
  right: -18vw;
  bottom: 8vh;
  animation-delay: -6s;
}

@keyframes auraFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(.95); opacity: .44; }
  50% { transform: translate3d(-24px, 18px, 0) scale(1.06); opacity: .82; }
}


/* Music player reliability fix */
.music-player--fixed {
  max-width: 720px;
  border: 1px solid rgba(215, 195, 255, .28);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .34), 0 0 28px rgba(166, 117, 255, .14);
  background: rgba(8, 7, 18, .82);
}

.music-player--fixed iframe {
  display: block;
  width: 100%;
  min-height: 244px;
  height: 244px;
  background: #111;
}

.music-fallback {
  width: min(100%, 680px);
  margin: 14px auto 0;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(215, 195, 255, .20);
  color: var(--muted);
  text-align: center;
}

.music-fallback p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
}

.music-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple) 54%, var(--green));
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(123, 63, 255, .28);
  transition: transform .2s ease, filter .2s ease;
}

.music-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

@media (max-width: 640px) {
  .music-player--fixed iframe {
    min-height: 220px;
    height: 220px;
  }

  .music-fallback {
    padding: 14px;
  }

  .music-link {
    width: 100%;
  }
}

/* ==============================
   Premium cosmic flow + orbit/radar redesign
   ============================== */
:root {
  --scroll-depth: 0;
  --cosmic-shift: 0%;
}

html {
  background: #090817;
}

body {
  min-height: 100%;
  background:
    radial-gradient(circle at var(--glow-a-x, 18%) 10%, rgba(109,255,154,.22), transparent 28%),
    radial-gradient(circle at var(--glow-b-x, 88%) var(--glow-b-y, 14%), rgba(166,117,255,.34), transparent 34%),
    radial-gradient(circle at var(--glow-c-x, 50%) var(--glow-c-y, 64%), rgba(70,151,255,.14), transparent 32%),
    radial-gradient(circle at 74% var(--glow-d-y, 92%), rgba(255,155,74,.13), transparent 30%),
    linear-gradient(180deg,
      #0b071a 0%,
      #17102f 34%,
      #211345 62%,
      #080612 100%);
  background-size: 130% 130%, 150% 150%, 140% 140%, 160% 160%, 100% 100%;
  background-position:
    50% var(--pos-a-y, 0px),
    50% var(--pos-b-y, 20px),
    var(--pos-c-x, 0px) var(--pos-c-y, 50px),
    var(--pos-d-x, 0px) var(--pos-d-y, 100px),
    center top;
  animation: cosmicBreathing 18s ease-in-out infinite;
}

body::after {
  background:
    linear-gradient(115deg, transparent 0 30%, rgba(255,255,255,.055) 46%, transparent 62% 100%),
    radial-gradient(circle at var(--overlay-a-x, 24%) var(--overlay-a-y, 20%), rgba(109,255,154,.15), transparent 22%),
    radial-gradient(circle at var(--overlay-b-x, 80%) var(--overlay-b-y, 74%), rgba(166,117,255,.22), transparent 26%);
  opacity: var(--overlay-opacity, .34);
  animation: cosmicOverlayDrift 22s ease-in-out infinite;
}

@keyframes cosmicBreathing {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.12) brightness(1.06); }
}

@keyframes cosmicOverlayDrift {
  0%, 100% { transform: translate3d(-1.4%, -1%, 0) scale(1); }
  50% { transform: translate3d(1.4%, 1%, 0) scale(1.03); }
}

.horoscope-section .eyebrow {
  letter-spacing: .12em;
}

/* Astro radar: seer + living crystal ball */
.radar-card--seer {
  width: min(900px, 100%);
  padding: clamp(26px, 4vw, 44px);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 50% 24%, rgba(109,255,154,.16), transparent 34%),
    radial-gradient(circle at 74% 18%, rgba(166,117,255,.24), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(166,117,255,.06)),
    rgba(18,12,40,.86);
}

.radar-card--seer::before {
  content: "";
  position: absolute;
  inset: 10% -15% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(109,255,154,.34), rgba(166,117,255,.32), transparent);
  filter: blur(.2px);
  opacity: .7;
}

.seer-scene {
  position: relative;
  width: min(420px, 100%);
  height: 280px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
}

.seer-person {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 190px;
  height: 210px;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 36px rgba(0,0,0,.36));
}

.seer-hood {
  position: absolute;
  left: 50%;
  top: 0;
  width: 150px;
  height: 138px;
  transform: translateX(-50%);
  border-radius: 78px 78px 42px 42px;
  background:
    radial-gradient(circle at 38% 24%, rgba(166,117,255,.42), transparent 28%),
    linear-gradient(145deg, rgba(123,63,255,.92), rgba(38,23,82,.95));
  border: 1px solid rgba(215,195,255,.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 42px rgba(166,117,255,.20);
}

.seer-face {
  position: absolute;
  left: 50%;
  top: 48px;
  width: 68px;
  height: 58px;
  transform: translateX(-50%);
  border-radius: 50% 50% 44% 44%;
  background: linear-gradient(180deg, #ffe2c2, #f3caa6);
  box-shadow: inset 0 -10px 14px rgba(85,45,122,.12);
}

.seer-face::before,
.seer-face::after {
  content: "";
  position: absolute;
  top: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2c163f;
  box-shadow: 0 0 8px rgba(255,255,255,.28);
}

.seer-face::before { left: 19px; }
.seer-face::after { right: 19px; }

.seer-body {
  position: absolute;
  left: 50%;
  top: 108px;
  width: 178px;
  height: 108px;
  transform: translateX(-50%);
  border-radius: 58px 58px 34px 34px;
  background:
    linear-gradient(135deg, rgba(109,255,154,.16), transparent 44%),
    linear-gradient(160deg, #201140, #100923 78%);
  border: 1px solid rgba(215,195,255,.20);
}

.seer-hand {
  position: absolute;
  top: 150px;
  width: 56px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd7b3, #efbc91);
  z-index: 4;
}

.seer-hand--left {
  left: 18px;
  transform: rotate(-18deg);
}

.seer-hand--right {
  right: 18px;
  transform: rotate(18deg);
}

.seer-table {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(420px, 96%);
  height: 72px;
  transform: translateX(-50%);
  border-radius: 50% 50% 24px 24px;
  background:
    linear-gradient(180deg, rgba(109,255,154,.16), transparent),
    rgba(10,6,24,.86);
  border: 1px solid rgba(215,195,255,.18);
  box-shadow: 0 22px 60px rgba(0,0,0,.36);
}

.crystal-ball {
  position: absolute;
  left: 50%;
  bottom: 50px;
  width: 150px;
  height: 150px;
  transform: translateX(-50%);
  overflow: hidden;
  z-index: 5;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.96) 0 7%, transparent 8%),
    radial-gradient(circle at 52% 52%, rgba(109,255,154,.92), rgba(166,117,255,.82) 58%, rgba(37,18,75,.96) 100%);
  box-shadow:
    0 0 84px rgba(166,117,255,.68),
    0 0 42px rgba(109,255,154,.28),
    inset 0 0 34px rgba(255,255,255,.45),
    inset 0 -22px 38px rgba(31,12,68,.42);
}

.orb-fog,
.orb-particle {
  position: absolute;
  pointer-events: none;
}

.orb-fog {
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.24), transparent 62%);
  filter: blur(6px);
  mix-blend-mode: screen;
}

.orb-fog--one { animation: fogSwirl 8s linear infinite; }
.orb-fog--two { inset: 8% 18% 28% 14%; animation: fogSwirl 11s linear infinite reverse; }

.orb-particle {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px rgba(255,255,255,.8), 0 0 30px rgba(109,255,154,.44);
  opacity: .8;
}

.orb-particle--one { left: 30%; top: 42%; animation: orbParticle 4.4s ease-in-out infinite; }
.orb-particle--two { left: 62%; top: 32%; animation: orbParticle 5.2s ease-in-out infinite .7s; }
.orb-particle--three { left: 50%; top: 68%; animation: orbParticle 4.8s ease-in-out infinite 1.1s; }

.thought-bubbles {
  position: absolute;
  top: 12px;
  right: 64px;
  width: 110px;
  height: 70px;
  z-index: 6;
}

.thought-bubbles span {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.90), rgba(109,255,154,.62));
  box-shadow: 0 0 26px rgba(109,255,154,.28);
  opacity: .78;
  animation: thoughtBubble 2.8s ease-in-out infinite;
}

.thought-bubbles span:nth-child(1) { width: 14px; height: 14px; left: 8px; bottom: 4px; animation-delay: 0s; }
.thought-bubbles span:nth-child(2) { width: 20px; height: 20px; left: 32px; bottom: 24px; animation-delay: .4s; }
.thought-bubbles span:nth-child(3) { width: 30px; height: 30px; left: 68px; top: 2px; animation-delay: .8s; }

.radar-card--seer.is-thinking .crystal-ball,
.radar-card--seer.has-result .crystal-ball {
  animation: crystalThinking 1.15s ease-in-out infinite;
}

.radar-card--seer.has-result #radarText {
  color: #f8f3ff;
  text-shadow: 0 0 22px rgba(109,255,154,.18);
}

@keyframes fogSwirl {
  from { transform: rotate(0deg) translateX(8px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(8px) rotate(-360deg); }
}

@keyframes orbParticle {
  0%, 100% { transform: translate3d(-14px, 8px, 0) scale(.8); opacity: .44; }
  50% { transform: translate3d(16px, -12px, 0) scale(1.25); opacity: .95; }
}

@keyframes thoughtBubble {
  0%, 100% { transform: translateY(0) scale(.88); opacity: .36; }
  50% { transform: translateY(-8px) scale(1.08); opacity: .9; }
}

@keyframes crystalThinking {
  0%, 100% { transform: translateX(-50%) scale(1); filter: saturate(1.05) hue-rotate(0deg); }
  50% { transform: translateX(-50%) scale(1.07); filter: saturate(1.35) hue-rotate(16deg); }
}

/* Orbit predictions section */
.orbit-section {
  position: relative;
}

.orbit-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1.08fr) minmax(320px, .92fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.orbit-map {
  position: relative;
  min-height: 560px;
  border-radius: 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(109,255,154,.15), transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(166,117,255,.24), transparent 52%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(166,117,255,.06)),
    rgba(14,9,32,.82);
  border: 1px solid rgba(215,195,255,.24);
  box-shadow: 0 26px 82px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
}

.orbit-map::before {
  content: "";
  position: absolute;
  inset: 9%;
  background:
    linear-gradient(35deg, transparent 0 42%, rgba(215,195,255,.18) 42.2% 42.6%, transparent 43%),
    linear-gradient(145deg, transparent 0 48%, rgba(109,255,154,.15) 48.2% 48.6%, transparent 49%);
  opacity: .64;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(215,195,255,.20);
  transform: translate(-50%, -50%) rotate(-8deg);
  pointer-events: none;
}

.orbit-ring--one {
  width: 52%;
  aspect-ratio: 1;
  box-shadow: 0 0 36px rgba(166,117,255,.10);
  animation: orbitSpin 38s linear infinite;
}

.orbit-ring--two {
  width: 78%;
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(109,255,154,.20);
  animation: orbitSpin 54s linear infinite reverse;
}

.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 196px;
  height: 196px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.22), transparent 26%),
    linear-gradient(135deg, rgba(123,63,255,.95), rgba(31,17,68,.92) 58%, rgba(23,221,121,.72));
  border: 1px solid rgba(215,195,255,.34);
  box-shadow: 0 0 72px rgba(166,117,255,.38), inset 0 1px 0 rgba(255,255,255,.22);
  z-index: 3;
}

.orbit-core span {
  display: block;
  margin-bottom: 8px;
  color: rgba(248,243,255,.72);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.orbit-core strong {
  font-size: 25px;
  line-height: .95;
  letter-spacing: -.04em;
}

.orbit-node {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 14px 9px 10px;
  border: 1px solid rgba(215,195,255,.28);
  border-radius: 999px;
  color: #f8f3ff;
  background: rgba(26,16,58,.78);
  box-shadow: 0 14px 36px rgba(0,0,0,.28), 0 0 22px rgba(166,117,255,.14);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  font-weight: 900;
}

.orbit-node:hover,
.orbit-node.is-active {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(109,255,154,.64);
  background: rgba(44,28,86,.88);
  box-shadow: 0 18px 48px rgba(0,0,0,.34), 0 0 34px rgba(109,255,154,.22), 0 0 42px rgba(166,117,255,.18);
}

.orbit-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--green), var(--purple));
  box-shadow: 0 0 18px rgba(109,255,154,.64), 0 0 32px rgba(166,117,255,.30);
}

.orbit-node--planet { left: 38%; top: 8%; }
.orbit-node--number { right: 4%; top: 22%; }
.orbit-node--risk { right: 4%; bottom: 24%; }
.orbit-node--talisman { left: 39%; bottom: 7%; }
.orbit-node--power { left: 4%; bottom: 24%; }
.orbit-node--team { left: 4%; top: 22%; }

.orbit-info {
  min-height: 320px;
  padding: clamp(26px, 4vw, 38px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 0%, rgba(109,255,154,.16), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(166,117,255,.22), transparent 34%),
    rgba(22,15,44,.86);
  border: 1px solid rgba(215,195,255,.26);
  box-shadow: 0 24px 76px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.09);
}

.orbit-info__label {
  margin: 0 0 12px;
  color: #d7c3ff;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

.orbit-info h3 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
}

.orbit-info p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.orbit-info.is-pulsing {
  animation: infoPulse .42s ease both;
}

@keyframes infoPulse {
  from { transform: translateY(8px); opacity: .72; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 1080px) {
  .orbit-layout {
    grid-template-columns: 1fr;
  }

  .orbit-map {
    min-height: 500px;
  }
}

@media (max-width: 760px) {
  .seer-scene {
    height: 246px;
  }

  .seer-person {
    transform: translateX(-50%) scale(.86);
    transform-origin: top center;
  }

  .crystal-ball {
    width: 126px;
    height: 126px;
    bottom: 52px;
  }

  .thought-bubbles {
    right: 36px;
  }

  .orbit-map {
    min-height: 0;
    padding: 24px;
    display: grid;
    gap: 12px;
    overflow: visible;
  }

  .orbit-ring,
  .orbit-map::before {
    display: none;
  }

  .orbit-core {
    position: relative;
    left: auto;
    top: auto;
    width: 172px;
    height: 172px;
    margin: 0 auto 10px;
    transform: none;
  }

  .orbit-node {
    position: relative;
    inset: auto;
    width: 100%;
    justify-content: flex-start;
    min-height: 52px;
  }

  .orbit-node:hover,
  .orbit-node.is-active {
    transform: translateY(-2px);
  }

  .orbit-info {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .radar-card--seer {
    padding: 22px 18px;
  }

  .seer-scene {
    height: 230px;
  }

  .thought-bubbles {
    right: 12px;
  }

  .orbit-core strong {
    font-size: 21px;
  }
}

/* ------------------------------------------------------------
   PERF + COSMIC REWORK v2: lighter background, better orbit, orb-only radar
   ------------------------------------------------------------ */
:root {
  --cosmic-shift: 0%;
  --cosmic-dim: .08;
  --cosmic-glow: .72;
  --overlay-opacity: .38;
}

html {
  background: #090817;
}

body {
  color: #f8f3ff;
  background:
    radial-gradient(circle at calc(16% + var(--cosmic-shift) * .12) 12%, rgba(109,255,154, calc(.22 * var(--cosmic-glow))), transparent 30%),
    radial-gradient(circle at calc(86% - var(--cosmic-shift) * .18) 10%, rgba(166,117,255,.34), transparent 34%),
    radial-gradient(circle at 50% calc(64% - var(--cosmic-shift) * .18), rgba(82,140,255,.18), transparent 38%),
    linear-gradient(135deg, #0b071a 0%, #15142e 34%, #26154c 72%, #0a1726 100%);
  background-size: 150% 150%, 160% 160%, 145% 145%, 100% 100%;
  animation: cosmicBreathLite 18s ease-in-out infinite alternate;
}

body::before {
  z-index: -5;
  opacity: .36;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.24) 1px, transparent 1.4px),
    radial-gradient(circle, rgba(109,255,154,.22) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(166,117,255,.22) 1px, transparent 1.5px);
  background-size: 44px 44px, 82px 82px, 124px 124px;
  background-position: 0 calc(var(--cosmic-shift) * .25), 18px calc(24px - var(--cosmic-shift) * .18), 39px calc(16px + var(--cosmic-shift) * .12);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  background:
    radial-gradient(circle at 18% calc(25% + var(--cosmic-shift) * .22), rgba(109,255,154,.15), transparent 28%),
    radial-gradient(circle at 84% calc(28% - var(--cosmic-shift) * .18), rgba(166,117,255,.22), transparent 32%),
    radial-gradient(circle at 62% calc(88% - var(--cosmic-shift) * .26), rgba(255,155,74,.08), transparent 24%),
    linear-gradient(180deg, rgba(7,5,18, var(--cosmic-dim)), rgba(7,5,18, calc(var(--cosmic-dim) + .08)));
  opacity: var(--overlay-opacity);
  animation: cosmicAuroraLite 24s ease-in-out infinite alternate;
}

@keyframes cosmicBreathLite {
  from { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  to { background-position: 70% 40%, 20% 55%, 76% 10%, 0 0; }
}

@keyframes cosmicAuroraLite {
  from { filter: hue-rotate(0deg) saturate(1); }
  to { filter: hue-rotate(10deg) saturate(1.12); }
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.stars span {
  opacity: .55;
  animation: twinkle 3.8s ease-in-out infinite;
  will-change: opacity, transform;
}

.stars span:nth-child(n+46) {
  display: none;
}

#confettiCanvas {
  z-index: 9999;
}

.restart-button {
  position: fixed !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  top: auto !important;
  left: auto !important;
  z-index: 10000 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid rgba(215,195,255,.42);
  border-radius: 999px;
  color: #f8f3ff;
  background: linear-gradient(135deg, rgba(29,20,59,.96), rgba(123,63,255,.92) 55%, rgba(34,221,121,.78));
  box-shadow: 0 16px 46px rgba(0,0,0,.34), 0 0 28px rgba(166,117,255,.28);
  backdrop-filter: blur(14px);
}

.restart-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 56px rgba(0,0,0,.42), 0 0 38px rgba(109,255,154,.32);
}

/* Orbit section: real planetary scheme */
.orbit-layout {
  align-items: center;
}

.orbit-map {
  min-height: 560px;
  border-radius: 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(109,255,154,.08), transparent 26%),
    radial-gradient(circle at 24% 18%, rgba(166,117,255,.18), transparent 28%),
    linear-gradient(135deg, rgba(14,10,35,.86), rgba(29,18,68,.72));
  border: 1px solid rgba(215,195,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 28px 86px rgba(0,0,0,.34);
}

.orbit-map::before {
  opacity: .62;
  background:
    linear-gradient(32deg, transparent 49%, rgba(109,255,154,.16) 50%, transparent 51%),
    linear-gradient(145deg, transparent 49%, rgba(166,117,255,.16) 50%, transparent 51%);
}

.orbit-ring {
  border-color: rgba(215,195,255,.18);
  opacity: .72;
}

.orbit-ring--three {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92%;
  aspect-ratio: 1;
  border: 1px dotted rgba(109,255,154,.14);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  animation: orbitSpin 82s linear infinite;
}

.orbit-earth {
  width: 186px;
  height: 186px;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 23%, rgba(255,255,255,.72) 0 5%, transparent 7%),
    radial-gradient(circle at 30% 30%, #9cffd2 0 12%, transparent 13%),
    radial-gradient(circle at 68% 60%, #59f293 0 16%, transparent 17%),
    radial-gradient(circle at 48% 70%, #22b7ff 0 15%, transparent 16%),
    linear-gradient(135deg, #5a38ff 0%, #2c9dff 44%, #18db8f 100%);
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 0 70px rgba(34,221,121,.32), 0 0 100px rgba(123,63,255,.26), inset -18px -22px 42px rgba(5,6,20,.28);
}

.orbit-earth::before,
.orbit-earth::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.orbit-earth::before {
  background:
    linear-gradient(120deg, transparent 14%, rgba(255,255,255,.20) 15%, transparent 18%, transparent 44%, rgba(255,255,255,.14) 46%, transparent 50%),
    radial-gradient(circle at 70% 28%, rgba(11,7,26,.24), transparent 34%);
  animation: earthClouds 12s linear infinite;
}

.orbit-earth::after {
  inset: -22px;
  border: 1px solid rgba(255,255,255,.20);
  transform: rotate(-18deg) scaleY(.36);
  box-shadow: 0 0 26px rgba(166,117,255,.28);
}

@keyframes earthClouds {
  from { transform: translateX(-10%) rotate(0deg); }
  to { transform: translateX(10%) rotate(360deg); }
}

.orbit-core span,
.orbit-core strong {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

.orbit-node {
  min-width: 148px;
  justify-content: flex-start;
  padding: 9px 13px 9px 9px;
  background: rgba(13,10,35,.76);
  border-color: rgba(215,195,255,.28);
}

.orbit-node::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 999px;
  background: radial-gradient(circle at var(--planet-x, 18%) 50%, rgba(109,255,154,.28), transparent 32%);
  opacity: .0;
  transition: opacity .22s ease;
  z-index: -1;
}

.orbit-node:hover::before,
.orbit-node.is-active::before {
  opacity: 1;
}

.orbit-dot {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 0 24px rgba(109,255,154,.40), inset -5px -6px 12px rgba(0,0,0,.24);
}

.orbit-node--planet .orbit-dot {
  background: radial-gradient(circle at 32% 30%, #fff, #baff7a 15%, #32ed8e 42%, #2366ff 100%);
}
.orbit-node--number .orbit-dot {
  background: radial-gradient(circle at 30% 28%, #fff, #ffe0be 17%, #ff9b4a 55%, #7b3fff 100%);
}
.orbit-node--risk .orbit-dot {
  background: radial-gradient(circle at 30% 28%, #fff, #d7c3ff 18%, #7b3fff 58%, #1b103e 100%);
}
.orbit-node--talisman .orbit-dot {
  background: radial-gradient(circle at 30% 28%, #fff, #caff6a 17%, #6dff9a 58%, #114d54 100%);
}
.orbit-node--power .orbit-dot {
  background: radial-gradient(circle at 30% 28%, #fff, #a675ff 18%, #6d42ff 62%, #141039 100%);
}
.orbit-node--team .orbit-dot {
  background: radial-gradient(circle at 30% 28%, #fff, #ffdfae 17%, #ff6a16 56%, #5d2dff 100%);
}

.orbit-cosmos-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 4;
}

.orbit-moon {
  width: 46px;
  height: 46px;
  right: 18%;
  top: 14%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff, #d8dcff 52%, #70759b 100%);
  box-shadow: 0 0 28px rgba(255,255,255,.34);
}

.orbit-star {
  width: 22px;
  height: 22px;
  clip-path: polygon(50% 0%, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0% 50%, 39% 36%);
  background: #fff;
  box-shadow: 0 0 22px rgba(255,255,255,.72);
  animation: starBlink 2.8s ease-in-out infinite;
}

.orbit-star--one { left: 18%; top: 20%; background: #caff6a; }
.orbit-star--two { right: 17%; bottom: 18%; background: #d7c3ff; animation-delay: .9s; }

.orbit-comet {
  left: 13%;
  bottom: 16%;
  width: 82px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), rgba(109,255,154,.72));
  transform: rotate(-32deg);
  filter: drop-shadow(0 0 12px rgba(109,255,154,.55));
  animation: cometFloat 7s ease-in-out infinite;
}

@keyframes starBlink {
  0%, 100% { transform: scale(.78) rotate(0deg); opacity: .48; }
  50% { transform: scale(1.12) rotate(22deg); opacity: 1; }
}

@keyframes cometFloat {
  0%, 100% { transform: translate(0,0) rotate(-32deg); opacity: .36; }
  50% { transform: translate(22px,-16px) rotate(-32deg); opacity: .9; }
}

.orbit-rocket {
  --rocket-x: 50%;
  --rocket-y: 50%;
  --rocket-angle: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 7;
  font-size: 26px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(255,255,255,.62));
}

.orbit-rocket.is-flying {
  animation: rocketFly .72s cubic-bezier(.2,.72,.25,1) both;
}

@keyframes rocketFly {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rocket-angle)) scale(.45);
  }
  12% { opacity: 1; }
  78% { opacity: 1; }
  100% {
    opacity: 0;
    left: var(--rocket-x);
    top: var(--rocket-y);
    transform: translate(-50%, -50%) rotate(var(--rocket-angle)) scale(1.14);
  }
}

/* Radar: orb only, no character, lighter animation */
.radar-card--seer {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(26px, 4vw, 42px);
}

.radar-card--seer .seer-person,
.radar-card--seer .seer-table,
.radar-card--seer .thought-bubbles {
  display: none !important;
}

.radar-orb-scene {
  height: 270px;
  display: grid;
  place-items: center;
  position: relative;
}

.radar-orb-scene::before {
  content: "";
  position: absolute;
  width: min(430px, 78vw);
  height: 86px;
  bottom: 38px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(109,255,154,.18), rgba(166,117,255,.10) 44%, transparent 72%);
  filter: blur(1px);
}

.crystal-ball {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 178px;
  height: 178px;
  margin: 0 auto;
  transform: none;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.94) 0 5%, transparent 7%),
    radial-gradient(circle at 48% 44%, rgba(109,255,154,.74), transparent 22%),
    radial-gradient(circle at 62% 62%, rgba(166,117,255,.58), transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(123,63,255,.84), rgba(49,27,104,.86) 58%, rgba(16,10,38,.92) 100%);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  box-shadow: 0 0 42px rgba(166,117,255,.42), 0 0 88px rgba(109,255,154,.22), inset -18px -20px 38px rgba(5,5,17,.28);
  animation: orbIdle 5.2s ease-in-out infinite;
}

.crystal-ball::before {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(109,255,154,.20), transparent, rgba(166,117,255,.20), transparent);
  filter: blur(8px);
  opacity: .62;
  animation: orbHaloSpin 12s linear infinite;
}

.crystal-ball::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 210px;
  height: 46px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(109,255,154,.18), rgba(0,0,0,.24) 58%, transparent 72%);
  z-index: -1;
}

.orb-core-glow {
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,255,154,.62), transparent 64%);
  filter: blur(2px);
  animation: orbCoreThink 3.6s ease-in-out infinite;
}

.orb-fog,
.orb-particle {
  position: absolute;
  display: block;
  border-radius: 999px;
  pointer-events: none;
}

.orb-fog {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(255,255,255,.20), transparent 66%);
  mix-blend-mode: screen;
}

.orb-fog--one { left: 20px; top: 58px; animation: fogDrift 7s ease-in-out infinite; }
.orb-fog--two { right: 18px; top: 42px; animation: fogDrift 8.4s ease-in-out infinite reverse; }
.orb-fog--three { left: 54px; bottom: 22px; animation: fogDrift 9s ease-in-out infinite; }

.orb-particle {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 0 16px rgba(255,255,255,.72);
  animation: orbParticle 4.6s ease-in-out infinite;
}
.orb-particle--one { left: 34%; top: 26%; animation-delay: 0s; }
.orb-particle--two { left: 62%; top: 34%; animation-delay: .8s; }
.orb-particle--three { left: 44%; top: 68%; animation-delay: 1.4s; }
.orb-particle--four { left: 70%; top: 58%; animation-delay: 2s; }

.orb-thinking-dots {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.orb-thinking-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(215,195,255,.72);
  box-shadow: 0 0 18px rgba(166,117,255,.52);
  animation: thinkingDot 1.4s ease-in-out infinite;
}
.orb-thinking-dots span:nth-child(2) { animation-delay: .18s; }
.orb-thinking-dots span:nth-child(3) { animation-delay: .36s; }

.radar-card--seer.is-thinking .crystal-ball,
.radar-card--seer.has-result .crystal-ball {
  animation: orbThink 1.05s ease-in-out infinite;
  box-shadow: 0 0 58px rgba(109,255,154,.42), 0 0 110px rgba(166,117,255,.30), inset -18px -20px 38px rgba(5,5,17,.24);
}

@keyframes orbIdle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}
@keyframes orbThink {
  0%, 100% { transform: translateY(-4px) scale(1.02); }
  50% { transform: translateY(-12px) scale(1.07); }
}
@keyframes orbHaloSpin { to { transform: rotate(360deg); } }
@keyframes orbCoreThink {
  0%, 100% { transform: scale(.9); opacity: .55; }
  50% { transform: scale(1.14); opacity: .9; }
}
@keyframes fogDrift {
  0%, 100% { transform: translate(0,0) scale(.9); opacity: .48; }
  50% { transform: translate(18px,-14px) scale(1.14); opacity: .78; }
}
@keyframes orbParticle {
  0%, 100% { transform: translate(0,0); opacity: .42; }
  50% { transform: translate(18px,-20px); opacity: 1; }
}
@keyframes thinkingDot {
  0%, 100% { transform: translateY(0) scale(.8); opacity: .36; }
  50% { transform: translateY(-10px) scale(1.08); opacity: 1; }
}

@media (max-width: 1080px) {
  .orbit-map {
    min-height: 520px;
  }

  .orbit-info {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .orbit-map {
    min-height: 0;
    padding: 24px;
  }

  .orbit-ring,
  .orbit-ring--three,
  .orbit-map::before,
  .orbit-cosmos-decoration,
  .orbit-rocket {
    display: none;
  }

  .orbit-earth {
    width: 162px;
    height: 162px;
  }

  .orbit-node {
    min-width: 0;
  }

  .radar-orb-scene {
    height: 230px;
  }

  .crystal-ball {
    width: 148px;
    height: 148px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body::after,
  .orbit-ring,
  .orbit-ring--three,
  .crystal-ball,
  .crystal-ball::before,
  .orb-core-glow,
  .stars span {
    animation: none !important;
  }
}


/* ==============================
   FINAL PATCH: lighter live background, ambient confetti, clean Earth center
   ============================== */
html {
  background: #090817;
}

body {
  background-color: #090817 !important;
  background-image:
    radial-gradient(circle at 16% 10%, rgba(109, 255, 154, .18), transparent 27%),
    radial-gradient(circle at 82% 14%, rgba(166, 117, 255, .24), transparent 32%),
    radial-gradient(circle at 58% 72%, rgba(255, 155, 74, .11), transparent 30%),
    linear-gradient(145deg, #070512 0%, #15102d 34%, #2b1a59 64%, #0a0718 100%) !important;
  background-attachment: fixed;
  animation: none !important;
  isolation: isolate;
}

.cosmic-aurora,
.ambient-confetti,
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.cosmic-aurora {
  z-index: 0;
  opacity: .86;
  background:
    radial-gradient(circle at calc(15% + var(--flow-x, 0px)) calc(18% + var(--flow-y, 0px)), rgba(109,255,154,.34), transparent 22%),
    radial-gradient(circle at calc(80% - var(--flow-x, 0px)) calc(12% + var(--flow-y, 0px)), rgba(166,117,255,.38), transparent 25%),
    radial-gradient(circle at 58% calc(58% - var(--flow-y, 0px)), rgba(70,151,255,.20), transparent 28%),
    radial-gradient(circle at 74% calc(82% - var(--flow-y, 0px)), rgba(255,155,74,.16), transparent 22%),
    conic-gradient(from 120deg at 52% 50%, rgba(109,255,154,.10), rgba(166,117,255,.18), rgba(49,157,255,.10), rgba(255,155,74,.08), rgba(109,255,154,.10));
  background-size: 130% 130%, 150% 150%, 140% 140%, 130% 130%, 125% 125%;
  filter: blur(10px) saturate(1.18) brightness(var(--cosmic-bright, 1.04));
  mix-blend-mode: screen;
  animation: auroraFlowFinal 24s ease-in-out infinite alternate;
}

@keyframes auroraFlowFinal {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1); opacity: .72; }
  50% { transform: translate3d(1.2%, 1.4%, 0) scale(1.045); opacity: .96; }
  100% { transform: translate3d(-.4%, 2%, 0) scale(1.015); opacity: .80; }
}

.ambient-confetti {
  z-index: 1;
  opacity: .58;
  background-image:
    linear-gradient(72deg, transparent 0 47%, rgba(109,255,154,.85) 47% 52%, transparent 52% 100%),
    linear-gradient(116deg, transparent 0 47%, rgba(166,117,255,.72) 47% 52%, transparent 52% 100%),
    linear-gradient(28deg, transparent 0 48%, rgba(255,155,74,.72) 48% 52%, transparent 52% 100%),
    radial-gradient(circle, rgba(255,255,255,.58) 0 1.6px, transparent 2.4px),
    radial-gradient(circle, rgba(202,255,106,.54) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(166,117,255,.44) 0 1.8px, transparent 3px);
  background-size: 190px 170px, 250px 220px, 310px 260px, 74px 74px, 132px 132px, 170px 170px;
  background-position:
    12px var(--ambient-scroll, 0px),
    80px calc(40px + var(--ambient-scroll, 0px)),
    30px calc(120px - var(--ambient-scroll, 0px)),
    0 0,
    40px 38px,
    84px 12px;
  animation: ambientConfettiDriftFinal 30s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.18));
}

@keyframes ambientConfettiDriftFinal {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 120px, 0); }
}

.stars {
  z-index: 2;
  overflow: hidden;
}

.stars span {
  position: absolute !important;
  z-index: 2 !important;
  opacity: .68;
  box-shadow:
    0 0 16px var(--star-glow, rgba(109,255,154,.72)),
    0 0 34px var(--star-glow, rgba(109,255,154,.30)) !important;
  will-change: transform, opacity;
}

header,
main,
.section,
.restart-button {
  position: relative;
  z-index: 5;
}

#confettiCanvas {
  z-index: 9999 !important;
}

.restart-button {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  top: auto !important;
  left: auto !important;
  z-index: 10000 !important;
}

/* Remove labels from the center: Earth is now a clean visual planet. */
.orbit-earth span,
.orbit-earth strong {
  display: none !important;
}

.orbit-earth {
  display: block !important;
  position: absolute;
  overflow: hidden;
  text-indent: -9999px;
  font-size: 0;
}

.orbit-earth::before {
  animation-duration: 18s;
}

.orbit-earth::after {
  opacity: .85;
}

/* Make the orbit block a little cleaner after removing the center text. */
.orbit-map {
  background:
    radial-gradient(circle at 50% 50%, rgba(109,255,154,.13), transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(166,117,255,.22), transparent 58%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(166,117,255,.05)),
    rgba(12,8,30,.70) !important;
}

.orbit-info {
  background:
    radial-gradient(circle at 12% 0%, rgba(109,255,154,.18), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(166,117,255,.24), transparent 34%),
    rgba(18,12,40,.82) !important;
}

/* Radar orb remains lightweight and standalone. */
.radar-card--seer {
  background:
    radial-gradient(circle at 50% 28%, rgba(109,255,154,.17), transparent 34%),
    radial-gradient(circle at 70% 18%, rgba(166,117,255,.24), transparent 34%),
    rgba(18,12,40,.78) !important;
}

.radar-orb-scene {
  contain: layout paint;
}

/* Mobile: keep fixed layers light. */
@media (max-width: 760px) {
  .ambient-confetti {
    opacity: .44;
    background-size: 160px 140px, 210px 190px, 260px 230px, 70px 70px, 118px 118px, 148px 148px;
  }

  .cosmic-aurora {
    opacity: .72;
    filter: blur(12px) saturate(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cosmic-aurora,
  .ambient-confetti {
    animation: none !important;
  }
}

/* ==============================
   PATCH: remove ambient confetti background only
   ============================== */
.ambient-confetti {
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}

/* Keep the cosmic background clean: aurora + stars only. */
.cosmic-aurora {
  opacity: .82;
}


/* Final hard fix: keep restart button clickable above all layers */
#restartButton.restart-button {
  position: fixed !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  top: auto !important;
  left: auto !important;
  z-index: 2147483647 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  min-height: 44px !important;
  transform: none;
}

#restartButton.restart-button:hover {
  transform: translateY(-2px) !important;
}
