/**
 * Astrology night-sky decorations.
 * Development work by David Lane
 */

:root {
  --as-void: #07060f;
  --as-night: #12101c;
  --as-ink: #f4efe4;
  --as-muted: #c6bfb0;
  --as-gold: #e8c872;
  --as-gold-deep: #c8ab57;
  --as-rose: #c44860;
  --as-rose-deep: #8a2a3c;
  --as-fire: #ff8a5b;
  --as-earth: #d4b483;
  --as-air: #9fd4e8;
  --as-water: #7eb3e0;
  --as-ring: rgba(232, 200, 114, 0.45);
  --as-serif: "Fraunces", "Palatino Linotype", Palatino, serif;
  --as-sans: "Outfit", "Segoe UI", sans-serif;
  --as-element: var(--as-rose);
}

html,
body.astro-page {
  min-height: 100%;
}

body.astro-page {
  margin: 0;
  color: var(--as-ink);
  font-family: var(--as-sans);
  background-color: var(--as-void);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, color-mix(in srgb, var(--as-element) 42%, transparent), transparent 55%),
    radial-gradient(ellipse 45% 35% at 8% 80%, rgba(40, 70, 110, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 30% at 92% 18%, rgba(180, 110, 50, 0.16), transparent 55%),
    linear-gradient(180deg, #0b0a14 0%, var(--as-void) 42%, #0a0812 100%);
  transition: background-image 0.8s ease;
}

body.astro-page[data-element="fire"] { --as-element: var(--as-fire); }
body.astro-page[data-element="earth"] { --as-element: var(--as-earth); }
body.astro-page[data-element="air"] { --as-element: var(--as-air); }
body.astro-page[data-element="water"] { --as-element: var(--as-water); }
body.astro-page[data-element="rose"] { --as-element: var(--as-rose); }

body.astro-page modern-navbar {
  position: relative;
  z-index: 40;
}

.astro-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.astro-aurora,
.astro-grain,
.astro-filigree {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.astro-aurora {
  background:
    radial-gradient(ellipse 70% 28% at 50% 0%, color-mix(in srgb, var(--as-element) 34%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 22% at 18% 12%, rgba(70, 160, 180, 0.12), transparent 70%),
    radial-gradient(ellipse 36% 20% at 82% 8%, rgba(232, 200, 114, 0.1), transparent 70%);
  animation: astroAurora 22s ease-in-out infinite alternate;
  transition: background 0.8s ease;
}

.astro-grain {
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.astro-filigree::before,
.astro-filigree::after {
  content: "";
  position: absolute;
  width: min(18vw, 120px);
  height: min(18vw, 120px);
  pointer-events: none;
}

.astro-filigree::before {
  top: 5.2rem;
  left: 0.85rem;
  border-top: 1px solid color-mix(in srgb, var(--as-element) 55%, rgba(232, 200, 114, 0.45));
  border-left: 1px solid color-mix(in srgb, var(--as-element) 55%, rgba(232, 200, 114, 0.45));
  border-top-left-radius: 14px;
}

.astro-filigree::after {
  right: 0.85rem;
  bottom: 1.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--as-rose) 50%, rgba(232, 200, 114, 0.45));
  border-right: 1px solid color-mix(in srgb, var(--as-rose) 50%, rgba(232, 200, 114, 0.45));
  border-bottom-right-radius: 14px;
}

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

.astro-drift span {
  position: absolute;
  color: color-mix(in srgb, var(--as-element) 35%, rgba(232, 200, 114, 0.12));
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  animation: astroDrift 28s linear infinite;
}

.astro-drift span:nth-child(odd) {
  animation-duration: 34s;
}

.astro-skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 50;
  padding: 0.4rem 0.7rem;
  background: var(--as-gold);
  color: #1a1408;
  border-radius: 0.4rem;
}

.astro-skip:focus {
  top: 0.75rem;
}

.astro-wrap {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 3.5rem;
}

.astro-hero {
  text-align: center;
  padding: 1.25rem 0 0.5rem;
}

.astro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: color-mix(in srgb, var(--as-gold) 55%, var(--as-rose));
}

.astro-hero h1 {
  font-family: var(--as-serif);
  font-optical-sizing: auto;
  font-weight: 620;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.05;
  margin: 0 0 0.45rem;
  background: linear-gradient(115deg, var(--as-gold) 10%, #fff3d2 42%, var(--as-rose) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 14px rgba(232, 200, 114, 0.18));
}

.astro-hero__lead {
  max-width: 28rem;
  margin: 0 auto 1.35rem;
  color: var(--as-muted);
  font-size: 1.05rem;
}

.astro-finder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: end;
  gap: 0.75rem 1rem;
  margin: 1.6rem auto 0;
  padding: 0.95rem 1.1rem;
  max-width: 48rem;
  border-radius: 1.15rem;
  background: rgba(18, 16, 28, 0.55);
  border: 1px solid color-mix(in srgb, var(--as-rose) 35%, var(--as-gold));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 12px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.astro-finder label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--as-muted);
}

.astro-finder select,
.astro-finder button {
  font-family: inherit;
  min-height: 2.5rem;
  border-radius: 0.7rem;
}

.astro-finder select {
  min-width: 8.5rem;
  padding: 0.35rem 0.7rem;
  color: var(--as-ink);
  background: rgba(7, 6, 15, 0.7);
  border: 1px solid rgba(232, 200, 114, 0.32);
}

#astroFinderStatus {
  width: 100%;
  margin: 0;
  min-height: 1.2em;
  text-align: center;
  color: var(--as-element);
  font-size: 0.92rem;
  text-shadow: 0 0 18px color-mix(in srgb, var(--as-element) 40%, transparent);
}

.astro-finder button {
  padding: 0.4rem 1.05rem;
  border: 0;
  background: linear-gradient(180deg, #f0d78a, var(--as-gold-deep));
  color: #1c1408;
  font-weight: 650;
}

.astro-finder button:hover,
.astro-finder button:focus-visible {
  filter: brightness(1.06);
}

.astro-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.4rem;
  align-items: center;
  margin-top: 1.7rem;
}

.astro-wheel {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 520px);
  margin: 0 auto;
  isolation: isolate;
}

.astro-wheel::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--as-element) 28%, transparent), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.astro-wheel__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px rgba(232, 200, 114, 0.18));
  z-index: 1;
}

#astroSlots {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.astro-wheel::after {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border: 1px dashed rgba(232, 200, 114, 0.32);
  animation: astroSpin 80s linear infinite;
  pointer-events: none;
}

.astro-wheel__core {
  position: absolute;
  inset: 32%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--as-element) 22%, transparent), rgba(7, 6, 15, 0.88) 70%);
  border: 1px solid color-mix(in srgb, var(--as-element) 55%, var(--as-ring));
  box-shadow:
    0 0 0 10px rgba(7, 6, 15, 0.35),
    0 0 40px color-mix(in srgb, var(--as-element) 45%, transparent);
  text-align: center;
  z-index: 2;
  transition: background 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.astro-wheel__core[data-element="fire"] { --as-element: var(--as-fire); }
.astro-wheel__core[data-element="earth"] { --as-element: var(--as-earth); }
.astro-wheel__core[data-element="air"] { --as-element: var(--as-air); }
.astro-wheel__core[data-element="water"] { --as-element: var(--as-water); }

.astro-wheel__glyph {
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  line-height: 1;
  color: color-mix(in srgb, var(--as-gold) 55%, var(--as-element));
  text-shadow:
    0 0 24px color-mix(in srgb, var(--as-element) 65%, transparent),
    0 0 8px rgba(232, 200, 114, 0.45);
}

.astro-wheel__name {
  font-family: var(--as-serif);
  font-size: 1.05rem;
  margin-top: 0.15rem;
}

.astro-slot-arm {
  position: absolute;
  inset: 6%;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transform: rotate(var(--angle));
}

.astro-slot {
  pointer-events: auto;
  width: 4.4rem;
  display: grid;
  place-items: center;
  gap: 0.05rem;
  padding: 0.35rem 0.2rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--as-element, var(--as-gold)) 18%, rgba(7, 6, 15, 0.72));
  color: var(--as-ink);
  cursor: pointer;
  appearance: none;
  transform: rotate(calc(-1 * var(--angle)));
  align-self: start;
}

.astro-slot[data-element="fire"] { --as-element: var(--as-fire); }
.astro-slot[data-element="earth"] { --as-element: var(--as-earth); }
.astro-slot[data-element="air"] { --as-element: var(--as-air); }
.astro-slot[data-element="water"] { --as-element: var(--as-water); }

.astro-slot__glyph,
.astro-card__glyph,
.astro-wheel__glyph,
.astro-drift span {
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", "Fraunces", serif;
}

.astro-slot__glyph {
  font-size: 1.35rem;
  line-height: 1;
}

.astro-slot__label {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.astro-slot[data-element="fire"] { box-shadow: 0 0 0 1px color-mix(in srgb, var(--as-fire) 45%, transparent); }
.astro-slot[data-element="earth"] { box-shadow: 0 0 0 1px color-mix(in srgb, var(--as-earth) 45%, transparent); }
.astro-slot[data-element="air"] { box-shadow: 0 0 0 1px color-mix(in srgb, var(--as-air) 45%, transparent); }
.astro-slot[data-element="water"] { box-shadow: 0 0 0 1px color-mix(in srgb, var(--as-water) 45%, transparent); }

.astro-slot:hover,
.astro-slot:focus-visible,
.astro-slot[aria-pressed="true"] {
  background: rgba(232, 200, 114, 0.16);
  border-color: var(--as-gold);
  transform: rotate(calc(-1 * var(--angle))) scale(1.08);
  z-index: 2;
}

.astro-detail {
  min-height: 22rem;
  padding: 1.25rem 1.3rem 1.4rem;
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(232, 200, 114, 0.08), transparent 28%),
    rgba(12, 10, 22, 0.78);
  border: 1px solid rgba(232, 200, 114, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.astro-detail[data-element="fire"] { border-color: color-mix(in srgb, var(--as-fire) 55%, transparent); }
.astro-detail[data-element="earth"] { border-color: color-mix(in srgb, var(--as-earth) 55%, transparent); }
.astro-detail[data-element="air"] { border-color: color-mix(in srgb, var(--as-air) 55%, transparent); }
.astro-detail[data-element="water"] { border-color: color-mix(in srgb, var(--as-water) 55%, transparent); }

.astro-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.7rem;
}

.astro-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 200, 114, 0.28);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--as-muted);
}

.astro-detail h2 {
  font-family: var(--as-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.2rem;
}

.astro-detail__dates {
  color: var(--as-gold);
  margin: 0 0 0.8rem;
}

.astro-const {
  width: min(100%, 280px);
  height: auto;
  display: block;
  margin: 0 auto 0.85rem;
}

.astro-const line {
  stroke: color-mix(in srgb, var(--as-element, var(--as-gold)) 70%, var(--as-gold));
  stroke-width: 1.2;
  opacity: 0.8;
}

.astro-const__star {
  fill: color-mix(in srgb, #fff6d8 70%, var(--as-element, #fff6d8));
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--as-element, #fff6d8) 70%, transparent));
}

.astro-flip__face[data-element="fire"] .astro-const,
.astro-hero-card[data-element="fire"] .astro-const,
.astro-card[data-element="fire"] .astro-const { --as-element: var(--as-fire); }
.astro-flip__face[data-element="earth"] .astro-const,
.astro-hero-card[data-element="earth"] .astro-const,
.astro-card[data-element="earth"] .astro-const { --as-element: var(--as-earth); }
.astro-flip__face[data-element="air"] .astro-const,
.astro-hero-card[data-element="air"] .astro-const,
.astro-card[data-element="air"] .astro-const { --as-element: var(--as-air); }
.astro-flip__face[data-element="water"] .astro-const,
.astro-hero-card[data-element="water"] .astro-const,
.astro-card[data-element="water"] .astro-const { --as-element: var(--as-water); }

.astro-detail p {
  margin: 0;
  color: var(--as-muted);
}

.astro-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.astro-traits li {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--as-element, var(--as-gold)) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--as-element, var(--as-gold)) 35%, transparent);
  color: var(--as-ink);
  font-size: 0.85rem;
}

.astro-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.8rem 0 0.9rem;
}

.astro-toolbar button {
  appearance: none;
  border: 1px solid rgba(232, 200, 114, 0.28);
  background: rgba(7, 6, 15, 0.45);
  color: var(--as-muted);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
}

.astro-toolbar button[data-element-filter="fire"] {
  border-color: color-mix(in srgb, var(--as-fire) 45%, transparent);
  color: color-mix(in srgb, var(--as-fire) 75%, var(--as-muted));
}

.astro-toolbar button[data-element-filter="earth"] {
  border-color: color-mix(in srgb, var(--as-earth) 45%, transparent);
  color: color-mix(in srgb, var(--as-earth) 75%, var(--as-muted));
}

.astro-toolbar button[data-element-filter="air"] {
  border-color: color-mix(in srgb, var(--as-air) 45%, transparent);
  color: color-mix(in srgb, var(--as-air) 75%, var(--as-muted));
}

.astro-toolbar button[data-element-filter="water"] {
  border-color: color-mix(in srgb, var(--as-water) 45%, transparent);
  color: color-mix(in srgb, var(--as-water) 75%, var(--as-muted));
}

.astro-toolbar button[aria-pressed="true"] {
  color: #1c1408;
  background: var(--as-gold);
  border-color: var(--as-gold);
}

.astro-toolbar button[data-element-filter="fire"][aria-pressed="true"] {
  background: var(--as-fire);
  border-color: var(--as-fire);
  color: #2a1208;
}

.astro-toolbar button[data-element-filter="earth"][aria-pressed="true"] {
  background: var(--as-earth);
  border-color: var(--as-earth);
  color: #2a2010;
}

.astro-toolbar button[data-element-filter="air"][aria-pressed="true"] {
  background: var(--as-air);
  border-color: var(--as-air);
  color: #102028;
}

.astro-toolbar button[data-element-filter="water"][aria-pressed="true"] {
  background: var(--as-water);
  border-color: var(--as-water);
  color: #0c1a28;
}

.astro-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.astro-card {
  text-align: left;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  min-height: 18.5rem;
  cursor: pointer;
}

.astro-card:hover,
.astro-card:focus-visible,
.astro-card[aria-pressed="true"] {
  border-color: transparent;
}

.astro-card[hidden] {
  display: none !important;
}

.astro-card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem;
}

.astro-card__glyph {
  font-size: 1.7rem;
  color: var(--as-gold);
}

.astro-card h3 {
  font-family: var(--as-serif);
  font-size: 1.15rem;
  margin: 0.15rem 0 0.2rem;
}

.astro-card p {
  margin: 0;
  color: var(--as-muted);
  font-size: 0.88rem;
}

.astro-section-head {
  text-align: center;
  margin: 1.8rem 0 0.85rem;
}

.astro-section-head h2 {
  font-family: var(--as-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.35rem;
  color: var(--as-ink);
}

.astro-section-head p {
  margin: 0;
  color: var(--as-muted);
  font-size: 0.95rem;
}

.astro-arcana-gallery {
  margin-bottom: 0.5rem;
}

.astro-tarot-filters {
  margin: 0 auto 1rem;
}

.astro-tarot-front {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.55rem !important;
  text-align: left;
}

.astro-tarot-art {
  width: 100%;
  aspect-ratio: 2 / 3.4;
  object-fit: cover;
  border-radius: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--as-gold) 40%, transparent);
  background: #1a1020;
}

.astro-tarot-art.is-missing {
  display: none;
}

.astro-tarot-front__meta h3 {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}

.astro-tarot-front__meta p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--as-muted);
}

.astro-tarot-credit {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--as-muted);
}

.astro-arcana-gallery .astro-arcana-card .astro-flip__inner {
  min-height: 22rem;
}

.astro-note {
  margin: 1.6rem auto 0;
  max-width: 40rem;
  text-align: center;
  color: var(--as-muted);
  font-size: 0.92rem;
}

.astro-note a {
  color: var(--as-gold);
}

.astro-footer {
  position: relative;
  z-index: 2;
  padding: 1.2rem;
  text-align: center;
  color: var(--as-muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .astro-stage {
    grid-template-columns: 1fr;
  }

  .astro-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .astro-slot {
    width: 3.7rem;
  }
}

@media (max-width: 640px) {
  .astro-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .astro-filigree::before,
  .astro-filigree::after {
    width: 88px;
    height: 88px;
  }

  .astro-slot__label {
    display: none;
  }

  .astro-drift {
    display: none;
  }

  .astro-rose-dock {
    flex-direction: column;
    text-align: center;
    gap: 0.9rem;
  }

  .astro-rose-dock__copy {
    text-align: center;
    max-width: none;
  }

  .astro-rose-dock p {
    text-align: center;
  }

  .astro-rose-actions {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .astro-aurora,
  .astro-drift span,
  .astro-wheel::after,
  .astro-card {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes astroAurora {
  from { opacity: 0.75; transform: translateY(0); }
  to { opacity: 1; transform: translateY(12px); }
}

@keyframes astroSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes astroDrift {
  from { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  12% { opacity: 0.55; }
  to { transform: translateY(-12vh) rotate(80deg); opacity: 0; }
}

.astro-wedges {
  pointer-events: none;
}

.astro-wedge {
  fill: color-mix(in srgb, var(--as-gold) 12%, transparent);
  stroke: rgba(232, 200, 114, 0.35);
  stroke-width: 0.6;
  opacity: 0.85;
  transition: fill 0.35s ease, opacity 0.35s ease;
}

.astro-wedge[data-element="fire"] { fill: color-mix(in srgb, var(--as-fire) 26%, transparent); }
.astro-wedge[data-element="earth"] { fill: color-mix(in srgb, var(--as-earth) 26%, transparent); }
.astro-wedge[data-element="air"] { fill: color-mix(in srgb, var(--as-air) 26%, transparent); }
.astro-wedge[data-element="water"] { fill: color-mix(in srgb, var(--as-water) 26%, transparent); }

.astro-wedge.is-selected {
  opacity: 1;
  fill: color-mix(in srgb, var(--as-element) 42%, transparent);
}

.astro-wedge.is-dim {
  opacity: 0.18;
}

.astro-wheel__art,
.astro-slots,
#astroSlots {
  z-index: 1;
}

.astro-rose-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0 auto 0.5rem;
  max-width: 36rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.astro-rose-dock img {
  width: min(180px, 42vw);
  height: min(180px, 42vw);
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--as-rose) 45%, var(--as-gold));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.astro-rose-dock__face {
  position: relative;
  flex-shrink: 0;
}

.astro-heygen-media {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #0a0610;
}

.astro-heygen-media .astro-heygen__video,
.astro-heygen-media video,
.astro-heygen-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.astro-rose-dock--live .astro-rose-dock__face > img {
  opacity: 0;
}

.astro-rose-dock__copy {
  text-align: left;
  max-width: 16rem;
}

.astro-rose-dock p {
  margin: 0 0 0.75rem;
  text-align: left;
  font-size: 1rem;
  color: var(--as-muted);
}

.astro-rose-dock strong {
  color: var(--as-gold);
  font-family: var(--as-serif);
}

.astro-rose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.astro-rose-actions button,
.astro-flip-cta,
.astro-ask,
.astro-unflip,
#astroReadBtn,
.astro-finder button {
  appearance: none;
  border: 0;
  border-radius: 0.7rem;
  padding: 0.4rem 0.95rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.astro-rose-actions button,
.astro-flip-cta,
.astro-ask,
#astroReadBtn {
  background: linear-gradient(180deg, #f0d78a, var(--as-gold-deep));
  color: #1c1408;
}

#astroMeetRose {
  border-radius: 0.7rem;
}

.astro-unflip {
  background: transparent;
  color: var(--as-gold);
  border: 1px solid rgba(232, 200, 114, 0.35);
}

.astro-chip--fire { color: var(--as-fire); border-color: color-mix(in srgb, var(--as-fire) 55%, transparent); background: color-mix(in srgb, var(--as-fire) 14%, transparent); }
.astro-chip--earth { color: var(--as-earth); border-color: color-mix(in srgb, var(--as-earth) 55%, transparent); background: color-mix(in srgb, var(--as-earth) 14%, transparent); }
.astro-chip--air { color: var(--as-air); border-color: color-mix(in srgb, var(--as-air) 55%, transparent); background: color-mix(in srgb, var(--as-air) 14%, transparent); }
.astro-chip--water { color: var(--as-water); border-color: color-mix(in srgb, var(--as-water) 55%, transparent); background: color-mix(in srgb, var(--as-water) 14%, transparent); }

.astro-spread {
  margin: 1.5rem auto 0;
  padding: 1.1rem 1rem 1.25rem;
  border-radius: 1.3rem;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--as-rose) 18%, transparent), transparent 55%),
    rgba(18, 10, 16, 0.78);
  border: 1px solid color-mix(in srgb, var(--as-rose) 40%, var(--as-gold));
}

.astro-spread__head {
  text-align: center;
  margin-bottom: 0.9rem;
}

.astro-spread__head h2 {
  font-family: var(--as-serif);
  margin: 0.2rem 0 0.35rem;
}

.astro-spread__rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.astro-spread-card__role {
  margin: 0 0 0.4rem;
  text-align: center;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--as-gold);
}

.astro-ask--spread {
  display: block;
  margin: 1rem auto 0;
}

.astro-flip {
  perspective: 1100px;
  min-height: 16rem;
}

.astro-hero-card {
  min-height: 26rem;
}

.astro-flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.05, 0.2, 1);
}

.astro-flip.is-flipped .astro-flip__inner {
  transform: rotateY(180deg);
}

.astro-flip__face {
  inset: 0;
  width: 100%;
  min-height: 16rem;
  padding: 0.95rem 0.9rem 1rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(232, 200, 114, 0.22);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--as-element, var(--as-gold)) 16%, transparent), transparent 38%),
    rgba(12, 10, 22, 0.86);
  color: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.astro-flip:not(.is-flipped) .astro-flip__back,
.astro-flip.is-flipped .astro-flip__front {
  pointer-events: none;
}

.astro-gallery .astro-flip__front,
.astro-spread-card .astro-flip__front {
  position: relative;
  display: block;
  text-align: left;
  cursor: pointer;
  appearance: none;
  font: inherit;
}

.astro-flip__back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
  overflow: auto;
}

.astro-flip__back[data-element="fire"],
.astro-hero-card[data-element="fire"] .astro-flip__face { --as-element: var(--as-fire); }
.astro-flip__back[data-element="earth"],
.astro-hero-card[data-element="earth"] .astro-flip__face { --as-element: var(--as-earth); }
.astro-flip__back[data-element="air"],
.astro-hero-card[data-element="air"] .astro-flip__face { --as-element: var(--as-air); }
.astro-flip__back[data-element="water"],
.astro-hero-card[data-element="water"] .astro-flip__face { --as-element: var(--as-water); }

.astro-gallery .astro-flip {
  min-height: 18.5rem;
}

.astro-gallery .astro-flip.is-selected .astro-flip__front,
.astro-gallery .astro-flip.is-selected .astro-flip__back {
  border-color: var(--as-gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.astro-gallery .astro-const {
  width: min(100%, 160px);
  margin: 0.55rem auto 0;
}

.astro-hero-card.astro-detail {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.astro-hero-card .astro-flip__face {
  min-height: 26rem;
  padding: 1.25rem 1.3rem 1.4rem;
  border-radius: 1.4rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.astro-flip__oracle,
.astro-flip__gift,
.astro-flip__shadow {
  margin: 0.45rem 0 0;
  color: var(--as-muted);
  font-size: 0.92rem;
}

.astro-flip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.astro-flip-cta {
  margin-top: 0.9rem;
}

.astro-speak-toggle {
  background: transparent !important;
  color: var(--as-gold) !important;
  border: 1px solid rgba(232, 200, 114, 0.4) !important;
}

.astro-speak-toggle[aria-pressed="true"] {
  background: color-mix(in srgb, var(--as-rose) 35%, #1c1408) !important;
  color: #fff3d2 !important;
  border-color: var(--as-rose) !important;
}

.astro-heygen-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.astro-heygen-modal .astro-heygen-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 10, 0.72);
}

.astro-heygen-modal .astro-heygen-panel {
  position: relative;
  z-index: 1;
  width: min(32rem, calc(100% - 1.5rem));
  margin: 12vh auto 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 1.2rem;
  background: #16111a;
  border: 1px solid color-mix(in srgb, var(--as-rose) 40%, var(--as-gold));
  color: var(--as-ink);
}

.astro-heygen-modal video {
  width: 100%;
  border-radius: 0.8rem;
  background: #000;
}

.astro-heygen-script {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
}

.astro-heygen-script img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--as-rose);
}

@media (max-width: 900px) {
  .astro-spread__rail {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .astro-flip__inner {
    transition: none !important;
  }
}
