/* Эзоракул - дизайн-токены и стили главной / auth */

:root {
  --night: #0d0b18;
  --cream: #eadbce;
  --gold: #c5a880;
  --plum: #4a3b5a;
  --mist: #8e9aa6;
  --font-display: 'Lora', Georgia, serif;
  --font-sans: 'Manrope', Arial, sans-serif;
  --max: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Иначе при смене фильтра раскладов скроллбар то появляется, то нет — страница дёргается влево-вправо */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 4%, rgba(74, 59, 90, 0.2), transparent 28rem),
    var(--night);
  color: var(--cream);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Не анимируем background: у body градиенты, Safari на них
   часто «залипает» и не перекрашивает страницу при смене темы. */
html.theme-ready body {
  transition: color 300ms ease;
}

html.theme-light {
  --night: #f8f3eb;
  --cream: #2c2433;
  --plum: #e9e0eb;
  --mist: #3f3547;
}

html.theme-light body {
  background:
    radial-gradient(circle at 72% 4%, rgba(197, 168, 128, 0.13), transparent 30rem),
    radial-gradient(circle at 8% 38%, rgba(74, 59, 90, 0.05), transparent 25rem),
    #f8f3eb;
  color: #2c2433;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  cursor: pointer;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: #0d0b18;
}

.font-display {
  font-family: var(--font-display);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: 2.5rem;
  }
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
}

@media (min-width: 768px) {
  .site-header {
    padding-block: 2.25rem;
  }
}

.logo {
  text-align: left;
  color: var(--cream);
}

.logo__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.logo__tag {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.52rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.5rem;
  max-width: min(100%, 34rem);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: color-mix(in srgb, var(--cream) 80%, transparent);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.5rem;
}

@media (min-width: 640px) {
  .header-actions {
    gap: 0.55rem 0.75rem;
    font-size: 0.75rem;
  }

  .header-nav {
    gap: 0.55rem 0.75rem;
  }
}

.header-sep {
  color: color-mix(in srgb, var(--gold) 40%, transparent);
}

.header-sep--break {
  display: none;
}

@media (min-width: 900px) {
  .header-sep--break {
    display: inline;
  }
}

.link-hover {
  transition: color 180ms ease;
}

.link-hover:hover {
  color: var(--gold);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-right: 0.4rem;
  border: 1px solid rgba(234, 219, 206, 0.12);
  border-radius: 50%;
  color: var(--gold);
  transition: border-color 180ms ease, background 180ms ease;
}

html.theme-light .theme-toggle {
  border-color: rgba(44, 36, 51, 0.14);
  color: #2c2433;
}

.theme-toggle:hover {
  border-color: rgba(197, 168, 128, 0.55);
  background: rgba(197, 168, 128, 0.08);
}

.theme-toggle svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
  fill: currentColor;
  stroke: none;
}

html.theme-light .theme-toggle .icon-sun {
  display: block;
}

html.theme-light .theme-toggle .icon-moon {
  display: none;
}

.icon-star {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--gold);
}

.icon-star--sm {
  width: 0.75rem;
  height: 0.75rem;
}

.icon-arrow {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Eyebrow / shared */

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

html.theme-light .eyebrow {
  color: #2c2433;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
}

.section-line {
  display: none;
  flex: 1;
  height: 1px;
  background: rgba(234, 219, 206, 0.1);
}

.section-note {
  display: none;
  margin: 0;
  font-size: 0.75rem;
  color: var(--mist);
}

@media (min-width: 640px) {
  .section-line,
  .section-note {
    display: block;
  }
}

/* Today sky */

.day-open {
  padding: 1.75rem 0 0;
}

@media (min-width: 768px) {
  .day-open {
    padding: 2.25rem 0 0;
  }
}

.day-open__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.15rem;
}

.day-open__title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.day-open__head .sky-greeting + .day-open__title {
  margin-top: 0.45rem;
}

.sky-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
}

.sky-date__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.sky-date__input {
  appearance: none;
  min-height: 2.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(234, 219, 206, 0.18);
  border-radius: 999px;
  background: rgba(13, 11, 24, 0.45);
  color: var(--cream);
  font: inherit;
  font-size: 0.82rem;
}

html.theme-light .sky-date__input {
  border-color: rgba(74, 59, 90, 0.16);
  background: rgba(255, 252, 247, 0.9);
  color: #2c2433;
}

.sky-date__btn {
  min-height: 2.4rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(197, 168, 128, 0.45);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.sky-date__btn:hover {
  background: rgba(197, 168, 128, 0.16);
}

.sky-upsell {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(197, 168, 128, 0.28);
  border-radius: 0.85rem;
  background: rgba(13, 11, 24, 0.4);
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.5;
}

.sky-upsell a {
  color: var(--gold);
  border-bottom: 1px solid rgba(197, 168, 128, 0.35);
}

.sky-upsell--ok {
  border-color: rgba(234, 219, 206, 0.12);
}

html.theme-light .sky-upsell {
  background: rgba(255, 252, 247, 0.85);
  border-color: rgba(197, 168, 128, 0.4);
  color: #3f3547;
}

.sky-strip {
  display: grid;
  gap: 1rem 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(234, 219, 206, 0.1);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 88% 20%, rgba(197, 168, 128, 0.1), transparent 42%),
    color-mix(in srgb, var(--plum) 45%, transparent);
}

html.theme-light .sky-strip {
  border-color: rgba(74, 59, 90, 0.12);
  background:
    radial-gradient(circle at 88% 20%, rgba(197, 168, 128, 0.14), transparent 42%),
    rgba(233, 224, 235, 0.72);
}

@media (min-width: 900px) {
  .sky-strip {
    grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr) minmax(12rem, 18rem);
    align-items: center;
    padding: 1.05rem 1.35rem;
  }
}

.sky-strip__moon {
  min-width: 0;
}

.sky-strip__date {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.sky-strip__phase {
  margin: 0.35rem 0 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.sky-strip__sign {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: var(--mist);
  line-height: 1.4;
}

.sky-strip__events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .sky-strip__events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1rem;
  }
}

.sky-strip__event {
  min-width: 0;
  padding-left: 0.7rem;
  border-left: 1px solid rgba(197, 168, 128, 0.35);
}

.sky-strip__event-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}

.sky-strip__event-text {
  display: -webkit-box;
  margin-top: 0.15rem;
  overflow: hidden;
  color: var(--mist);
  font-size: 0.74rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sky-strip__quote {
  margin: 0;
  color: color-mix(in srgb, var(--cream) 88%, transparent);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
}

@media (min-width: 900px) {
  .sky-strip__quote {
    text-align: right;
  }
}

.moon-icon {
  width: 4.5rem;
  height: 4.5rem;
  color: var(--cream);
}

/* Do now */

.do-now {
  padding-top: 1.35rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .do-now {
    padding-top: 1.65rem;
    padding-bottom: 7rem;
  }
}

.ritual-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0;
}

@media (min-width: 900px) {
  .ritual-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ritual-card--sign {
    grid-column: 1 / -1;
  }
}

.ritual-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(234, 219, 206, 0.1);
  border-radius: 1.5rem;
  background: rgba(22, 18, 35, 0.72);
  padding: 2rem;
  transition: border-color 250ms ease, transform 250ms ease;
}

.ritual-card--pair {
  display: grid;
  gap: 1.25rem 1.35rem;
  align-items: stretch;
  border-color: rgba(197, 168, 128, 0.22);
}

@media (min-width: 640px) {
  .ritual-card--pair {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.ritual-card__main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  height: 100%;
}

.ritual-card__detail {
  margin-top: 1.25rem;
}

.ritual-card--pair .primary-button {
  margin-top: 1.5rem;
  align-self: flex-start;
}

.ritual-card--pair .ritual-card__next {
  margin-top: auto;
  padding-top: 1.15rem;
}

.ritual-card__visual {
  width: 7.5rem;
  flex-shrink: 0;
  justify-self: end;
  pointer-events: none;
  user-select: none;
}

.ritual-card__visual--wheel {
  width: min(100%, 13.5rem);
}

.ritual-card__visual--wheel .natal-wheel {
  display: block;
  width: 100%;
  height: auto;
}

.ritual-card__visual--deco {
  opacity: 0.78;
  filter: saturate(0.92);
}

.natal-card--own .ritual-card__visual--wheel {
  opacity: 1;
  filter: none;
}

@media (max-width: 639px) {
  .ritual-card__visual {
    justify-self: start;
  }

  .ritual-card__visual--wheel {
    width: min(72%, 12.5rem);
  }
}

.ritual-card__role {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ritual-card__next {
  margin: auto 0 0;
  padding-top: 1.35rem;
  color: var(--mist);
  font-size: 0.75rem;
  line-height: 1.45;
}

.ritual-card__next a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(197, 168, 128, 0.4);
}

.ritual-card__next a:hover {
  color: var(--gold);
}

html.theme-light .ritual-card {
  border-color: rgba(74, 59, 90, 0.11);
  background: rgba(255, 252, 247, 0.78);
  box-shadow: 0 16px 55px rgba(74, 59, 90, 0.05);
}

.ritual-card:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 168, 128, 0.3);
}

html.theme-light .ritual-card:hover {
  border-color: rgba(197, 168, 128, 0.6);
}

.card-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(142, 154, 166, 0.45);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}

html.theme-light .card-number {
  color: #2c2433;
}

.ritual-card__title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 400;
}

.ritual-card__text {
  margin: 0.75rem 0 0;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--mist);
}

.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid rgba(234, 219, 206, 0.1);
  border-radius: 0.75rem;
  background: rgba(234, 219, 206, 0.1);
}

.ritual-card--sign__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.ritual-card--sign .ritual-card__text {
  max-width: 28rem;
}

.ritual-card__next--inline {
  margin: 0;
  padding-top: 0;
}

.zodiac-grid--row {
  margin-top: 1.35rem;
}

@media (min-width: 900px) {
  .zodiac-grid--row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .zodiac-grid--row .zodiac-btn {
    min-height: 5.75rem;
    padding: 0.55rem 0.15rem 0.45rem;
  }

  .zodiac-grid--row .zodiac-btn__art {
    width: 2.55rem;
    height: 2.55rem;
  }

  .zodiac-grid--row .zodiac-btn__name {
    font-size: 0.42rem;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 899px) {
  .zodiac-grid--row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.zodiac-btn {
  display: flex;
  min-height: 5.25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.45rem 0.25rem 0.4rem;
  background: rgba(13, 11, 24, 0.8);
  transition: background 180ms ease;
}

html.theme-light .zodiac-btn {
  background: rgba(255, 252, 247, 0.92);
}

.zodiac-btn:hover {
  background: var(--plum);
}

.zodiac-btn__art {
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
  border-radius: 0.35rem;
  transition: transform 180ms ease;
}

.zodiac-btn__art--light {
  display: none;
}

html.theme-light .zodiac-btn__art--dark {
  display: none;
}

html.theme-light .zodiac-btn__art--light {
  display: block;
}

.zodiac-btn:hover .zodiac-btn__art {
  transform: scale(1.06);
}

.zodiac-btn.is-current {
  border-color: rgba(197, 168, 128, 0.55);
  background: rgba(197, 168, 128, 0.08);
}

.my-day {
  margin-top: 1.25rem;
}

.my-day__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.15rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(197, 168, 128, 0.28);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 8% 0%, rgba(197, 168, 128, 0.12), transparent 55%),
    rgba(13, 11, 24, 0.35);
  color: inherit;
  transition: border-color 180ms ease, transform 180ms ease;
}

.my-day__card:hover {
  border-color: rgba(197, 168, 128, 0.55);
  transform: translateY(-1px);
}

html.theme-light .my-day__card {
  border-color: rgba(154, 123, 82, 0.28);
  background:
    radial-gradient(circle at 8% 0%, rgba(197, 168, 128, 0.16), transparent 55%),
    rgba(255, 252, 247, 0.88);
}

.my-day__art {
  position: relative;
  display: block;
  width: 4.5rem;
  flex-shrink: 0;
}

.my-day__img {
  display: block;
  width: 100%;
  height: auto;
}

.my-day__img--light {
  display: none;
}

html.theme-light .my-day__img--dark {
  display: none;
}

html.theme-light .my-day__img--light {
  display: block;
}

.my-day__copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.my-day__label {
  color: var(--mist);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.my-day__name {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 400;
  line-height: 1.15;
}

.my-day__snippet {
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.my-day__cta {
  margin-top: 0.35rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.my-day__change {
  margin: 0.85rem 0 0;
  color: var(--mist);
  font-size: 0.78rem;
}

.my-day__change--top {
  margin: 0 0 0.85rem;
}

.my-day__change a {
  color: var(--gold);
  border-bottom: 1px solid rgba(197, 168, 128, 0.35);
}

.my-day__change a:hover {
  border-bottom-color: var(--gold);
}

.horoscope-identity__note {
  margin: 0.65rem 0 0;
  color: var(--mist);
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0.85;
}

.zodiac-btn__name {
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

html.theme-light .zodiac-btn__name {
  color: #2c2433;
}

.card-day .primary-button {
  border: 0;
  /* Не font: inherit — иначе высота/кегль разъезжаются с <a class="primary-button"> */
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.tarot-card {
  width: 128px;
  flex: 0 0 128px;
  border: 1px solid rgba(197, 168, 128, 0.55);
  border-radius: 0.7rem;
  background: linear-gradient(150deg, #31263c, #171320);
  padding: 0.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  transform: rotate(-2deg);
}

html.theme-light .tarot-card {
  background: linear-gradient(150deg, #f2e9e0, #e6dce8);
  box-shadow: 0 18px 40px rgba(74, 59, 90, 0.12);
}

.tarot-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.tarot-card__medal {
  position: relative;
  display: flex;
  width: 7rem;
  height: 7rem;
  margin: 1.25rem auto 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(197, 168, 128, 0.3);
  border-radius: 50%;
}

.tarot-card__medal-inner {
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-radius: 50%;
}

.tarot-card__star {
  width: 3rem;
  height: 3rem;
  fill: var(--gold);
}

.tarot-card__spark {
  position: absolute;
  color: var(--gold);
  font-size: 7px;
}

.tarot-card__spark--1 {
  top: 0.5rem;
  left: 0.75rem;
}

.tarot-card__spark--2 {
  right: 0.5rem;
  bottom: 1.25rem;
  font-size: 6px;
}

.tarot-card__spark--3 {
  bottom: 0.25rem;
  left: 1.25rem;
  font-size: 5px;
}

.tarot-card__name {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(197, 168, 128, 0.25);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.card-day__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.card-day__text {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--mist);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  transition: gap 180ms ease;
}

html.theme-light .text-link {
  color: #2c2433;
}

.text-link:hover {
  gap: 0.75rem;
}

.natal-card {
  background:
    radial-gradient(circle at 82% 55%, rgba(74, 59, 90, 0.55), transparent 46%),
    rgba(22, 18, 35, 0.72);
}

html.theme-light .natal-card {
  background:
    radial-gradient(circle at 82% 55%, rgba(233, 224, 235, 0.85), transparent 46%),
    rgba(255, 252, 247, 0.85);
}

.natal-card .ritual-card__title {
  max-width: 20rem;
  font-size: clamp(1.875rem, 2.4vw, 2.25rem);
  line-height: 1.15;
}

.orbit-art {
  position: absolute;
  right: -3rem;
  bottom: 3.5rem;
  width: 17rem;
  height: 17rem;
  opacity: 0.6;
  pointer-events: none;
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(197, 168, 128, 0.23);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  content: '';
}

.orbit::before {
  top: 18%;
  left: 8%;
}

.orbit::after {
  right: 4%;
  bottom: 28%;
}

.orbit--one {
  transform: rotate(28deg) scaleY(0.48);
}

.orbit--two {
  transform: rotate(-34deg) scaleY(0.65);
}

.orbit-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 2rem;
}

.primary-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
  min-height: 3.25rem;
  margin-top: auto;
  border-radius: 999px;
  background: #eadbce;
  color: #0d0b18;
  padding: 0 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  transition: background 180ms ease, transform 180ms ease;
}

.primary-button:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

html.theme-light .primary-button {
  border: 1px solid #352b40;
  background: #f8f3eb;
  color: #2c2433;
}

html.theme-light .primary-button:hover {
  border-color: #4a3b5a;
  background: #e9e0eb;
  color: #211a27;
}

.primary-button--full {
  width: 100%;
  justify-content: center;
}

/* About */

.about {
  max-width: 46rem;
  padding-block: 4.5rem;
  border-block: 1px solid rgba(234, 219, 206, 0.1);
}

@media (min-width: 768px) {
  .about {
    padding-block: 5.5rem;
  }
}

.about__lead {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 400;
  line-height: 1.3;
}

.about__cols {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--mist);
}

.about__cols p {
  margin: 0;
}

/* Readings */

.readings {
  padding-block: 6rem;
}

@media (min-width: 768px) {
  .readings {
    padding-block: 8rem;
  }
}

.readings__title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 400;
}

.readings__star {
  display: none;
  margin-left: auto;
}

@media (min-width: 640px) {
  .readings__star {
    display: block;
  }
}

.readings__list {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(234, 219, 206, 0.1);
}

.reading-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid rgba(234, 219, 206, 0.1);
  padding: 2rem 0;
}

html.theme-light .reading-row {
  border-color: rgba(74, 59, 90, 0.12);
}

.reading-row__num {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.reading-row__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 400;
  transition: color 180ms ease;
}

.reading-row:hover .reading-row__title {
  color: var(--gold);
}

html.theme-light .reading-row:hover .reading-row__title {
  color: #2c2433;
}

.reading-row__preview {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--mist);
}

.reading-row .text-link {
  margin-top: 0;
  justify-self: end;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(234, 219, 206, 0.1);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-block: 2rem;
  font-size: 0.65rem;
  line-height: 1.6;
  color: var(--mist);
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 2rem;
  }
}

.site-footer__disclaimer {
  margin: 0;
  max-width: 42rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}

.site-footer__legal a {
  color: var(--mist);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(142, 154, 166, 0.45);
}

.site-footer__legal a:hover {
  color: var(--cream);
  text-decoration-color: var(--gold);
}

.site-footer__copy {
  margin: 0;
  flex-shrink: 0;
}

/* Legal documents */

.legal-page {
  padding-block: 2.5rem 5rem;
  max-width: 46rem;
}

.material-page {
  padding-block: 2.5rem 5rem;
  max-width: 46rem;
}

.material-page__back {
  margin: 0.85rem 0 1.5rem;
}

.material-doc__preview {
  margin: 0 0 1.5rem;
  color: var(--mist);
  font-size: 1.05rem;
  line-height: 1.65;
}

.material-nav {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(234, 219, 206, 0.12);
}

html.theme-light .material-nav {
  border-top-color: rgba(74, 59, 90, 0.12);
}

.material-nav__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.material-nav__item {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--cream);
  font-size: 0.95rem;
  line-height: 1.4;
}

a.material-nav__item:hover {
  color: var(--gold);
}

.material-nav__item.is-current {
  color: var(--gold);
}

.material-nav__num {
  flex: 0 0 auto;
  color: var(--mist);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(234, 219, 206, 0.12);
}

.legal-nav__item {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--mist);
}

a.legal-nav__item:hover {
  color: var(--cream);
}

.legal-nav__item.is-current {
  color: var(--gold);
}

.legal-doc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(234, 219, 206, 0.92);
}

html.theme-light .legal-doc {
  color: rgba(44, 36, 51, 0.92);
}

.legal-doc > *:first-child {
  margin-top: 0;
}

.legal-doc h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--cream);
}

.legal-doc h2 {
  margin: 2.25rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--cream);
}

.legal-doc h3 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
}

.legal-doc p {
  margin: 0 0 0.95rem;
}

.legal-doc strong {
  font-weight: 600;
  color: var(--cream);
}

.legal-doc a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-doc a:hover {
  color: var(--cream);
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-doc li {
  margin: 0.35rem 0;
}

.legal-doc li + li {
  margin-top: 0.45rem;
}

.legal-doc hr {
  margin: 1.75rem 0;
  border: 0;
  border-top: 1px solid rgba(234, 219, 206, 0.14);
}

html.theme-light .legal-doc hr {
  border-top-color: rgba(44, 36, 51, 0.12);
}

.legal-doc blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--gold);
  background: rgba(74, 59, 90, 0.22);
  color: var(--cream);
}

html.theme-light .legal-doc blockquote {
  background: rgba(197, 168, 128, 0.12);
}

.legal-doc table {
  width: 100%;
  margin: 0 0 1.25rem;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.5;
}

.legal-doc th,
.legal-doc td {
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(234, 219, 206, 0.16);
  text-align: left;
  vertical-align: top;
}

html.theme-light .legal-doc th,
html.theme-light .legal-doc td {
  border-color: rgba(44, 36, 51, 0.14);
}

.legal-doc th {
  background: rgba(74, 59, 90, 0.35);
  font-weight: 600;
  color: var(--cream);
}

html.theme-light .legal-doc th {
  background: rgba(197, 168, 128, 0.16);
}

.legal-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.05em 0.3em;
  border-radius: 0.25rem;
  background: rgba(74, 59, 90, 0.35);
}

html.theme-light .legal-doc code {
  background: rgba(197, 168, 128, 0.18);
}

@media (max-width: 640px) {
  .legal-doc {
    font-size: 0.9rem;
  }

  .legal-doc table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Auth */

.auth-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 55%, rgba(74, 59, 90, 0.2), transparent 24rem),
    radial-gradient(circle at 10% 10%, rgba(197, 168, 128, 0.06), transparent 20rem);
}

html.theme-light .auth-shell {
  background:
    radial-gradient(circle at 50% 55%, rgba(197, 168, 128, 0.11), transparent 25rem),
    radial-gradient(circle at 10% 10%, rgba(74, 59, 90, 0.05), transparent 20rem);
}

.auth-main {
  display: flex;
  min-height: calc(100vh - 120px);
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.5rem 5rem;
}

@media (min-width: 768px) {
  .auth-main {
    align-items: center;
    padding-top: 0;
  }
}

.auth-panel {
  width: 100%;
  max-width: 440px;
}

.auth-ornament {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.auth-ornament__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: color-mix(in srgb, var(--gold) 70%, transparent);
}

.auth-ornament__line {
  width: 2.5rem;
  height: 1px;
  background: rgba(197, 168, 128, 0.3);
}

.auth-head {
  text-align: center;
}

.auth-head h1 {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
}

.auth-head p {
  margin: 1rem auto 0;
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--mist);
}

.auth-tabs {
  display: flex;
  margin-top: 2.25rem;
  border-bottom: 1px solid rgba(234, 219, 206, 0.1);
}

.auth-tab {
  position: relative;
  flex: 1;
  padding: 0.9rem;
  color: var(--mist);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  transition: color 180ms ease;
}

.auth-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--gold);
  content: '';
  transition: transform 180ms ease;
}

.auth-tab.is-active {
  color: var(--cream);
}

html.theme-light .auth-tab.is-active {
  color: #2c2433;
}

.auth-tab.is-active::after {
  transform: scaleX(1);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.form-field {
  display: block;
}

.form-field > span {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--cream);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

html.theme-light .form-field > span {
  color: #2c2433;
}

.form-field input {
  width: 100%;
  min-height: 3.4rem;
  border: 1px solid rgba(234, 219, 206, 0.14);
  border-radius: 0.75rem;
  background: rgba(22, 18, 35, 0.7);
  padding: 0 1rem;
  color: var(--cream);
  font: inherit;
  font-size: 0.8rem;
  transition: border-color 180ms ease;
}

html.theme-light .form-field input {
  border-color: rgba(74, 59, 90, 0.15);
  background: rgba(255, 252, 247, 0.82);
  color: #2c2433;
}

.form-field input::placeholder {
  color: rgba(142, 154, 166, 0.55);
}

html.theme-light .form-field input::placeholder {
  color: #4a4052;
  opacity: 1;
}

.form-field input:focus {
  border-color: rgba(197, 168, 128, 0.55);
  outline: none;
}

.sky-greeting {
  margin: 0 0 0.55rem;
  font-family: var(--font-display, 'Lora', Georgia, serif);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gold);
  line-height: 1.35;
}

html.theme-light .sky-greeting {
  color: #9a7b52;
}

.form-field--gender {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.form-field--gender legend {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--cream);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0;
}

html.theme-light .form-field--gender legend {
  color: #2c2433;
}

.gender-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.gender-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.8rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(234, 219, 206, 0.14);
  border-radius: 0.75rem;
  background: rgba(22, 18, 35, 0.7);
  color: var(--mist);
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}

html.theme-light .gender-option {
  border-color: rgba(74, 59, 90, 0.15);
  background: rgba(255, 252, 247, 0.82);
  color: #4a4052;
}

.gender-option input {
  accent-color: var(--gold);
  width: 0.85rem;
  height: 0.85rem;
  margin: 0;
}

.gender-option:has(input:checked) {
  border-color: rgba(197, 168, 128, 0.55);
  color: var(--cream);
}

html.theme-light .gender-option:has(input:checked) {
  color: #2c2433;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--mist);
  font-size: 0.68rem;
  line-height: 1.7;
}

.checkbox-row input {
  margin-top: 0.2rem;
  width: 0.9rem;
  height: 0.9rem;
  accent-color: var(--gold);
}

.checkbox-row a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(234, 219, 206, 0.3);
  text-underline-offset: 3px;
}

html.theme-light .checkbox-row a {
  color: #2c2433;
}

.auth-forgot {
  display: flex;
  justify-content: flex-end;
}

.auth-forgot a {
  font-size: 0.75rem;
  color: var(--mist);
}

.auth-switch {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--mist);
}

.auth-switch a {
  color: var(--cream);
}

html.theme-light .auth-switch a {
  color: #2c2433;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--mist);
}

@media (max-width: 767px) {
  .reading-row {
    grid-template-columns: 1.5rem 1fr;
    gap: 1rem;
  }

  .reading-row .text-link {
    grid-column: 2;
    justify-self: start;
  }

}

@media (max-width: 420px) {
  .ritual-card {
    padding: 1.5rem;
  }

  .tarot-card {
    width: 112px;
    flex-basis: 112px;
  }
}

.header-user {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  color: var(--mist);
}

.header-logout {
  display: inline;
  margin: 0;
}

.flash-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flash-list--page {
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.flash {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 0.75rem;
  background: rgba(197, 168, 128, 0.08);
  color: var(--cream);
  font-size: 0.78rem;
  line-height: 1.5;
}

.flash--error,
.flash--warning {
  border-color: rgba(196, 120, 120, 0.45);
  background: rgba(196, 120, 120, 0.1);
}

.flash--success {
  border-color: rgba(197, 168, 128, 0.55);
}

.form-errors {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(196, 120, 120, 0.45);
  border-radius: 0.75rem;
  background: rgba(196, 120, 120, 0.1);
  color: var(--cream);
  font-size: 0.78rem;
  line-height: 1.5;
}

.field-error {
  display: block;
  margin-top: 0.45rem;
  color: #d4a0a0;
  font-size: 0.68rem;
}

.auth-resend {
  margin: 0;
}

.auth-resend__btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  font: inherit;
  font-size: inherit;
}

html.theme-light .auth-resend__btn,
html.theme-light .flash {
  color: #2c2433;
}

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

/* Card of the day */
.card-day__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.7rem;
  border: 1px solid rgba(197, 168, 128, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  background: #171320;
}

.card-day__img--back {
  transform: rotate(-2deg);
}

.card-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(920px, calc(100vw - 2rem));
}

.card-modal::backdrop {
  background: rgba(8, 6, 14, 0.72);
  backdrop-filter: blur(4px);
}

.card-modal__panel {
  position: relative;
  width: min(420px, 100%);
  max-height: min(92vh, 920px);
  margin: 4vh auto;
  padding: 1.75rem 1.5rem 1.5rem;
  overflow: auto;
  border: 1px solid rgba(234, 219, 206, 0.14);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 80% 0%, rgba(74, 59, 90, 0.45), transparent 50%),
    #161223;
  color: var(--cream);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.card-modal__layout {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.card-modal__copy {
  min-width: 0;
}

.card-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mist);
  font-size: 1.4rem;
  line-height: 1;
}

.card-modal__close:hover {
  color: var(--gold);
}

.card-modal__title {
  margin: 0.5rem 0 0;
  padding-right: 1.75rem;
  font-size: 2rem;
  font-weight: 400;
}

.card-modal__en {
  margin: 0.35rem 0 0;
  color: var(--mist);
  font-size: 0.8rem;
}

.card-modal__figure {
  position: relative;
  order: -1;
  width: min(220px, 70%);
  margin: 0.25rem auto 0.35rem;
  aspect-ratio: 220 / 384;
}

.card-modal__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid rgba(197, 168, 128, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.card-modal__figure--hot:hover .ez-hotspot__dot,
.card-modal__figure--hot:focus-within .ez-hotspot__dot {
  opacity: 0.95;
  transform: translate(-50%, -50%) scale(1);
}

.card-modal__figure .ez-hotspots {
  border-radius: 0.75rem;
}

.card-modal__short {
  margin: 0.85rem 0 1rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .card-modal__panel {
    width: min(860px, 100%);
    margin: 5vh auto;
    padding: 2rem 2rem 1.75rem;
    overflow: hidden;
  }

  .card-modal__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 1.5rem 2rem;
    align-items: stretch;
    max-height: calc(92vh - 4rem);
  }

  .card-modal__copy {
    max-height: 100%;
    overflow: auto;
    padding-right: 0.35rem;
  }

  .card-modal__figure {
    order: 0;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    justify-self: center;
    align-self: center;
  }
}

.card-modal__block {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(234, 219, 206, 0.1);
  border-radius: 0.75rem;
  background: rgba(13, 11, 24, 0.55);
}

.card-modal__block h3 {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-modal__block p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--cream);
}

.card-modal__reversed-note {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--mist);
  font-style: italic;
}

.card-modal__note {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--mist);
  font-size: 0.68rem;
}

.product-bridge {
  margin: 1rem 0 0;
}

.card-modal__copy .product-bridge {
  margin-top: 0.85rem;
}

html.theme-light .card-modal__panel {
  background:
    radial-gradient(circle at 80% 0%, rgba(233, 224, 235, 0.9), transparent 50%),
    #fffaf4;
  color: #2c2433;
}

html.theme-light .card-modal__block {
  background: rgba(255, 252, 247, 0.9);
  border-color: rgba(74, 59, 90, 0.12);
}

html.theme-light .card-modal__block p {
  color: #2c2433;
}

@media (max-width: 767px) {
  .card-day__preview {
    width: 112px;
    flex-basis: 112px;
  }
}

/* Horoscope page */

.horoscope {
  padding-block: 1.5rem 5rem;
}

@media (min-width: 768px) {
  .horoscope {
    padding-block: 2rem 7rem;
  }
}

.horoscope-identity {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem 1.15rem;
  align-items: center;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .horoscope-identity {
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 1.25rem 1.5rem;
    margin-top: 1.5rem;
  }
}

.horoscope-identity__art-wrap {
  position: relative;
  width: 5.5rem;
  aspect-ratio: 1;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .horoscope-identity__art-wrap {
    width: 8.5rem;
  }
}

.horoscope-identity__glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(197, 168, 128, 0.28) 0%,
    rgba(74, 59, 90, 0.18) 42%,
    transparent 72%
  );
  filter: blur(10px);
  pointer-events: none;
  animation: horoscope-glow 5.5s ease-in-out infinite alternate;
}

html.theme-light .horoscope-identity__glow {
  background: radial-gradient(
    circle,
    rgba(197, 168, 128, 0.35) 0%,
    rgba(74, 59, 90, 0.08) 45%,
    transparent 72%
  );
}

@keyframes horoscope-glow {
  from {
    opacity: 0.72;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.horoscope-identity__art {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.75rem;
  animation: horoscope-rise 550ms ease both;
}

.horoscope-identity__art--light {
  display: none;
}

html.theme-light .horoscope-identity__art--dark {
  display: none;
}

html.theme-light .horoscope-identity__art--light {
  display: block;
}

@keyframes horoscope-rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.horoscope-identity__copy {
  min-width: 0;
}

.horoscope-identity__date {
  margin: 0;
  color: var(--mist);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.horoscope-identity__title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

.horoscope-identity__meta {
  margin: 0.4rem 0 0;
  color: #c5a880;
  font-size: 0.8rem;
  line-height: 1.45;
}

html.theme-light .horoscope-identity__meta {
  color: #9a7b52;
}

.horoscope-identity__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  margin-top: 0.75rem;
}

.horoscope-link {
  color: var(--gold);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(197, 168, 128, 0.35);
  padding-bottom: 0.1rem;
  transition: border-color 180ms ease, color 180ms ease;
}

.horoscope-link:hover {
  border-color: var(--gold);
}

.horoscope-link--muted {
  color: var(--mist);
  border-bottom-color: rgba(142, 154, 166, 0.35);
}

.horoscope-link--muted:hover {
  color: var(--cream);
  border-bottom-color: color-mix(in srgb, var(--cream) 50%, transparent);
}

.horoscope-empty {
  margin-top: 1.5rem;
  max-width: 36rem;
}

.horoscope-empty__lead {
  margin: 0.75rem 0 0;
  color: var(--mist);
  font-size: 1.02rem;
  line-height: 1.6;
}

.horoscope-tabs-shell {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .horoscope-tabs-shell {
    margin-top: 1.85rem;
  }
}

.horoscope-tabs {
  display: flex;
  border-bottom: 1px solid rgba(234, 219, 206, 0.1);
}

html.theme-light .horoscope-tabs {
  border-bottom-color: rgba(74, 59, 90, 0.1);
}

.horoscope-tab {
  position: relative;
  flex: 0 1 auto;
  min-width: 7.5rem;
  padding: 0.75rem 1rem 0.8rem;
  color: var(--mist);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.horoscope-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--gold);
  content: '';
  transition: transform 180ms ease;
}

.horoscope-tab:hover {
  color: var(--cream);
}

html.theme-light .horoscope-tab:hover {
  color: #2c2433;
}

.horoscope-tab.is-active {
  color: var(--cream);
}

html.theme-light .horoscope-tab.is-active {
  color: #2c2433;
}

.horoscope-tab.is-active::after {
  transform: scaleX(1);
}

.horoscope-body {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.15rem;
}

.horoscope-tabpanel {
  display: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.horoscope-tabpanel.is-active {
  display: grid;
}

.horoscope-tabpanel[hidden] {
  display: none !important;
}

.horoscope-panel {
  max-width: none;
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(234, 219, 206, 0.1);
  border-radius: 1.15rem;
  background: rgba(22, 18, 35, 0.55);
}

.horoscope-panel--today {
  border-color: rgba(197, 168, 128, 0.28);
  background:
    radial-gradient(circle at 12% 0%, rgba(197, 168, 128, 0.12), transparent 55%),
    rgba(22, 18, 35, 0.72);
}

html.theme-light .horoscope-panel {
  border-color: rgba(74, 59, 90, 0.11);
  background: rgba(255, 252, 247, 0.78);
  box-shadow: 0 16px 45px rgba(74, 59, 90, 0.05);
}

html.theme-light .horoscope-panel--today {
  border-color: rgba(154, 123, 82, 0.28);
  background:
    radial-gradient(circle at 12% 0%, rgba(197, 168, 128, 0.18), transparent 55%),
    rgba(255, 252, 247, 0.92);
}

@media (min-width: 768px) {
  .horoscope-panel {
    padding: 2rem 2.15rem;
  }
}

.horoscope-panel__title {
  margin: 0.65rem 0 0;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 400;
}

.horoscope-panel__text {
  margin: 1rem 0 0;
  color: var(--mist);
  font-size: 0.98rem;
  line-height: 1.7;
}

.horoscope-panel__text + .horoscope-panel__text {
  margin-top: 0.85rem;
}

.horoscope-day-meta {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  color: var(--mist);
  font-size: 0.82rem;
  opacity: 0.9;
}

.horoscope-panel__note {
  margin: 1.1rem 0 0;
  color: var(--mist);
  font-size: 0.84rem;
  line-height: 1.5;
  opacity: 0.85;
}

.horoscope-picker {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(234, 219, 206, 0.1);
}

html.theme-light .horoscope-picker {
  border-top-color: rgba(74, 59, 90, 0.1);
}

.horoscope-picker__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1.15rem;
}

@media (min-width: 640px) {
  .horoscope-picker__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.7rem;
  }
}

@media (min-width: 1024px) {
  .horoscope-picker__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

.horoscope-picker__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.3rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  background: rgba(13, 11, 24, 0.45);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

html.theme-light .horoscope-picker__btn {
  background: rgba(255, 252, 247, 0.85);
}

.horoscope-picker__btn:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 168, 128, 0.35);
  background: var(--plum);
}

.horoscope-picker__btn.is-active {
  border-color: rgba(197, 168, 128, 0.55);
  background: rgba(74, 59, 90, 0.55);
}

html.theme-light .horoscope-picker__btn.is-active {
  background: rgba(233, 224, 235, 0.95);
  border-color: rgba(197, 168, 128, 0.7);
}

.horoscope-picker__art {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  border-radius: 0.3rem;
}

@media (min-width: 768px) {
  .horoscope-picker__art {
    width: 2.85rem;
    height: 2.85rem;
  }
}

.horoscope-picker__art--light {
  display: none;
}

html.theme-light .horoscope-picker__art--dark {
  display: none;
}

html.theme-light .horoscope-picker__art--light {
  display: block;
}

.horoscope-picker__btn span {
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
  text-align: center;
}

html.theme-light .horoscope-picker__btn span {
  color: #2c2433;
}

/* Natal - layout from Figma Make */

.natal-shell {
  background:
    radial-gradient(circle at 72% 18%, rgba(74, 59, 90, 0.16), transparent 27rem),
    radial-gradient(circle at 12% 72%, rgba(197, 168, 128, 0.035), transparent 24rem);
}

html.theme-light .natal-shell {
  background:
    radial-gradient(circle at 72% 18%, rgba(197, 168, 128, 0.12), transparent 28rem),
    radial-gradient(circle at 12% 72%, rgba(74, 59, 90, 0.045), transparent 24rem);
}

.natal-page {
  position: relative;
  padding-block: 3.5rem 6rem;
  min-height: 680px;
}

@media (max-width: 767px) {
  .natal-page {
    min-height: auto;
    padding-block: 2.5rem 4.5rem;
  }
}

.natal-orbit {
  position: absolute;
  top: 0;
  right: 2%;
  width: min(34vw, 28rem);
  aspect-ratio: 1;
  opacity: 0.34;
  pointer-events: none;
}

.natal-orbit span {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(197, 168, 128, 0.22);
  border-radius: 50%;
  transform: rotate(25deg) scaleY(0.43);
}

.natal-orbit span:last-child {
  inset: 0;
  border-color: rgba(142, 154, 166, 0.16);
  transform: rotate(-32deg) scaleY(0.58);
}

@media (max-width: 767px) {
  .natal-orbit {
    top: -1rem;
    right: -4rem;
    width: 15rem;
    opacity: 0.2;
  }
}

.natal-page__inner {
  position: relative;
  z-index: 1;
  max-width: 47.5rem;
}

.natal-page__inner--wide {
  max-width: 56rem;
}

.natal-place {
  margin-top: 0.25rem;
}

.natal-place-input-wrap {
  position: relative;
}

.natal-place-suggest {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  display: flex;
  flex-direction: column;
  max-height: 14rem;
  overflow: auto;
  border: 1px solid rgba(234, 219, 206, 0.14);
  border-radius: 0.7rem;
  background: rgba(13, 11, 24, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

html.theme-light .natal-place-suggest {
  background: #fffaf4;
  border-color: rgba(74, 59, 90, 0.14);
}

.natal-place-suggest__item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(234, 219, 206, 0.08);
  background: transparent;
  color: var(--cream);
  text-align: left;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.4;
}

.natal-place-suggest__item:hover {
  background: rgba(74, 59, 90, 0.35);
}

html.theme-light .natal-place-suggest__item {
  color: #2c2433;
}

.natal-place-meta {
  margin: 0.45rem 0 0;
  color: var(--mist);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.natal-place-map {
  margin-top: 1rem;
  height: 16rem;
  border: 1px solid rgba(234, 219, 206, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(13, 11, 24, 0.4);
}

.natal-place-map__fallback {
  margin: 0;
  padding: 1.25rem;
  color: var(--mist);
  font-size: 0.85rem;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .natal-place-map {
    height: 20rem;
  }
}

html.theme-light .natal-place-map {
  border-color: rgba(74, 59, 90, 0.12);
}

/* Подсказки SuggestView Яндекса поверх формы */
.ymaps-b-suggest,
.ymaps-2-1-79-suggest {
  z-index: 40 !important;
}

.natal-chart-panel {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .natal-chart-panel {
    /* stretch: левый слот тянется на высоту легенды - иначе sticky некуда ехать */
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    gap: 2.5rem 2rem;
    align-items: stretch;
  }
}

.natal-chart-panel__wheel-slot {
  position: relative;
  min-width: 0;
  width: 100%;
}

.natal-chart-panel__wheel-ph {
  height: 0;
  pointer-events: none;
}

@media (min-width: 960px) {
  .natal-chart-panel__wheel.is-pinned {
    position: fixed;
    /* Ниже толкования/секций: при сбое pin не перекрывать заголовки разбора */
    z-index: 2;
    margin: 0;
  }

  .natal-chart-panel__wheel.is-pinned-bottom {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    margin-inline: auto;
  }
}

.natal-chart-panel__wheel {
  position: relative;
  max-width: 42rem;
  margin-inline: auto;
  width: 100%;
}

.natal-chart-panel__wheel-stage {
  width: 100%;
}

.natal-chart-panel__wheel .natal-wheel {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 960px) {
  /* Слот = высокая колонка; sticky внутри него следует за скроллом до толкования */
  .natal-chart-panel__wheel {
    position: sticky;
    top: 1rem;
    z-index: 2;
    max-height: calc(100vh - 2rem);
  }

  .natal-chart-panel__wheel-stage {
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .natal-chart-panel__wheel .natal-wheel {
    max-height: calc(100vh - 5.5rem);
    width: min(100%, calc(100vh - 5.5rem));
    margin-inline: auto;
  }

  .natal-chart-panel__wheel .natal-wheel-caption {
    flex: 0 0 auto;
    margin-top: 0.55rem;
  }
}

/* --- Cinematic intro: сначала только колесо --- */
html.natal-intro-lock {
  overflow: hidden;
}

.site-header,
.site-footer {
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

html.natal-intro-lock .site-header,
html.natal-intro-lock .site-footer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* UI невидим, но занимает место - чтобы FLIP целился в финальную позицию без скачка */
.natal-cinematic:not(.is-revealed) .natal-cinematic__fade {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.85rem);
}

.natal-cinematic.is-intro .natal-chart-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  align-content: center;
  gap: 0;
  margin: 0;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(40, 30, 55, 0.55), transparent 58%),
    #07060c;
}

.natal-cinematic.is-intro .natal-chart-panel__legend {
  display: none;
}

.natal-cinematic.is-intro .natal-chart-panel__wheel-slot {
  width: min(92vw, 34rem);
  max-width: min(92vw, 34rem);
  justify-self: center;
}

.natal-cinematic.is-intro .natal-chart-panel__wheel {
  position: relative;
  top: auto;
  max-height: none;
  width: 100%;
  max-width: none;
  margin: 0;
}

/* После FLIP: плавное появление текста и «Кто где стоит» */
.natal-cinematic.is-revealed .natal-cinematic__fade {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.75s;
}

.natal-cinematic.is-revealed .natal-page__inner.natal-cinematic__fade {
  transition-delay: 0.05s;
}

.natal-cinematic.is-revealed .natal-chart-panel__legend.natal-cinematic__fade {
  transition-delay: 0.18s;
}

.natal-cinematic.is-revealed .natal-section.natal-cinematic__fade {
  transition-delay: 0.28s;
}

.natal-cinematic.is-revealed .natal-note.natal-cinematic__fade {
  transition-delay: 0.12s;
}

.natal-cinematic.is-revealed .natal-page__back.natal-cinematic__fade {
  transition-delay: 0.35s;
}

html.theme-light .natal-cinematic.is-intro .natal-chart-panel {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 248, 240, 0.95), transparent 60%),
    #f3ebe1;
}

@media (prefers-reduced-motion: reduce) {
  .natal-cinematic:not(.is-revealed) .natal-cinematic__fade,
  html.natal-intro-lock .site-header,
  html.natal-intro-lock .site-footer {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .natal-cinematic.is-intro .natal-chart-panel {
    position: relative;
    inset: auto;
    background: transparent;
  }

  html.natal-intro-lock {
    overflow: auto;
  }
}

.natal-wheel--anim.is-animating .natal-wheel__reveal {
  opacity: 0;
  pointer-events: none;
}

.natal-wheel--anim.is-revealing .natal-wheel__reveal,
.natal-wheel--anim.is-settled .natal-wheel__reveal {
  opacity: 1;
  transition: opacity 0.7s ease;
  pointer-events: auto;
}

.natal-wheel--anim.is-animating .natal-wheel__aspect-mark-wrap {
  opacity: 0;
}

.natal-wheel--anim.is-revealing .natal-wheel__aspect-mark-wrap,
.natal-wheel--anim.is-settled .natal-wheel__aspect-mark-wrap {
  opacity: 1;
  transition: opacity 0.45s ease 0.15s;
}

.natal-wheel--anim.is-animating .natal-wheel__body {
  filter: drop-shadow(0 0 6px rgba(197, 168, 128, 0.35));
}

@media (prefers-reduced-motion: reduce) {
  .natal-wheel--anim.is-animating .natal-wheel__reveal,
  .natal-wheel--anim.is-animating .natal-wheel__aspect-mark-wrap {
    opacity: 1;
  }

  .natal-wheel--anim .natal-wheel__aspect-line {
    transition: none !important;
  }
}

.natal-wheel-tip {
  position: absolute;
  z-index: 5;
  max-width: min(18rem, 80%);
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 0.55rem;
  background: rgba(13, 11, 24, 0.94);
  color: var(--cream);
  font-size: 0.78rem;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

html.theme-light .natal-wheel-tip {
  background: rgba(255, 250, 244, 0.96);
  color: #2c2433;
  border-color: rgba(74, 59, 90, 0.18);
}

.natal-chart-panel__legend {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.natal-legend-block__title {
  margin: 0.55rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}

.natal-legend-block__hint {
  margin: 0.9rem 0 0;
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.5;
}

.natal-legend-block__lead {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: var(--mist);
  font-size: 0.84rem;
  line-height: 1.65;
}

.natal-wheel-caption {
  margin: 0.85rem auto 0;
  max-width: 28rem;
  color: var(--mist);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

.natal-aspect-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 0.85rem 0 0;
}

.natal-aspect-filters__btn {
  min-height: 1.85rem;
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 999px;
  padding: 0 0.75rem;
  color: var(--mist);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.natal-aspect-filters__btn:hover {
  border-color: rgba(197, 168, 128, 0.7);
  color: var(--cream);
}

.natal-aspect-filters__btn.is-active {
  border-color: #c5a880;
  background: rgba(197, 168, 128, 0.14);
  color: var(--cream);
}

html.theme-light .natal-aspect-filters__btn.is-active {
  color: #2c2433;
}

.natal-aspect-filters__hint {
  margin: 0.55rem 0 0;
  color: var(--mist);
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: center;
}

.natal-wheel__aspect.is-filtered-out {
  opacity: 0 !important;
  pointer-events: none !important;
}

.natal-wheel__aspect.is-linked .natal-wheel__aspect-line {
  opacity: 1;
  stroke-width: 2.4;
  filter: drop-shadow(0 0 4px rgba(197, 168, 128, 0.55));
}

.natal-aspect-row {
  cursor: pointer;
  border-radius: 0.35rem;
  transition: background 140ms ease, opacity 140ms ease;
}

.natal-aspect-row.is-filtered-out {
  display: none;
}

.natal-aspect-row.is-linked {
  background: rgba(197, 168, 128, 0.12);
}

.natal-aspect-row__badge {
  display: inline-block;
  margin-left: 0.35rem;
  color: #c5a880;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html.theme-light .natal-aspect-row.is-linked {
  background: rgba(197, 168, 128, 0.18);
}

/* Подпись и фильтры аспектов — только после анимации колеса */
.natal-cinematic:not(.is-revealed) .natal-wheel-meta,
.natal-cinematic:not(.is-revealed) .natal-wheel-caption {
  display: none !important;
}

.natal-wheel-meta {
  margin-top: 0.25rem;
}

.natal-wheel__aspect {
  pointer-events: visiblePainted;
}

.natal-wheel__aspect-line,
.natal-wheel__aspect-mark-wrap {
  pointer-events: none;
}

.natal-wheel__aspect-hit {
  pointer-events: stroke;
}

.natal-legend-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.natal-legend-list li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.55rem 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(234, 219, 206, 0.08);
  align-items: baseline;
}

html.theme-light .natal-legend-list li {
  border-bottom-color: rgba(74, 59, 90, 0.08);
}

.natal-legend-list__name {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
}

.natal-legend-list__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.natal-legend-list__line {
  color: var(--cream);
  font-size: 0.9rem;
  line-height: 1.4;
}

.natal-legend-list__note {
  color: var(--mist);
  font-size: 0.75rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

html.theme-light .natal-legend-list__line {
  color: #2c2433;
}

html.theme-light .natal-legend-list__note {
  color: rgba(44, 36, 51, 0.62);
}

.natal-legend-list__orb {
  display: inline-block;
  margin-left: 0.45rem;
  color: var(--mist);
  font-size: 0.78rem;
}

.natal-legend-list__name--square,
.natal-legend-list__name--opposition {
  color: rgba(210, 140, 140, 0.95);
}

.natal-legend-list__name--trine,
.natal-legend-list__name--sextile {
  color: rgba(197, 168, 128, 0.95);
}

.natal-legend-list__name--conjunction {
  color: rgba(234, 219, 206, 0.9);
}

.natal-legend-list--aspects li {
  grid-template-columns: 6.5rem minmax(0, 1fr);
}

.natal-wheel {
  display: block;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.32));
}

.natal-wheel__zodiac {
  fill: #f3e7d6;
  font-size: 22px;
  font-weight: 600;
  font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols', serif;
  font-variant-emoji: text;
  paint-order: stroke fill;
  stroke: rgba(10, 8, 16, 0.55);
  stroke-width: 2.2px;
}

.natal-wheel__house {
  fill: #d7dde4;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
}

.natal-wheel__planet {
  fill: #f6efe4;
  font-size: 22px;
  font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols', sans-serif;
  font-variant-emoji: text;
}

.natal-wheel__angle {
  fill: #e8c99a;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  paint-order: stroke fill;
  stroke: rgba(10, 8, 16, 0.65);
  stroke-width: 2.5px;
}

.natal-wheel__aspect-mark {
  fill: #f3e7d6;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Segoe UI Symbol', 'Apple Symbols', sans-serif;
  pointer-events: none;
}

.natal-wheel__aspect {
  cursor: help;
}

.natal-wheel__aspect.is-hot .natal-wheel__aspect-line {
  opacity: 1;
  stroke-width: 2.6;
  filter: drop-shadow(0 0 3px rgba(197, 168, 128, 0.45));
}

.natal-wheel__body {
  cursor: help;
}

.natal-wheel__body.is-hot .natal-wheel__planet-disk {
  stroke: #eadbce;
  stroke-width: 1.85;
}

/* Светлая тема: диск и тексты с нормальным контрастом */
html.theme-light .natal-wheel__grad0 {
  stop-color: #fff8f0;
}
html.theme-light .natal-wheel__grad1 {
  stop-color: #f4ebe0;
}
html.theme-light .natal-wheel__grad2 {
  stop-color: #ebe1d4;
}

html.theme-light .natal-wheel__disk {
  stroke: rgba(110, 88, 58, 0.55);
}

html.theme-light .natal-wheel__inner {
  fill: #fffaf4 !important;
  stroke: rgba(110, 88, 58, 0.35) !important;
}

html.theme-light .natal-wheel__planet-disk {
  fill: #fffaf4 !important;
  stroke: #8a6d45 !important;
}

html.theme-light .natal-wheel__aspect-badge {
  fill: #fffaf4 !important;
}

html.theme-light .natal-wheel__tick,
html.theme-light .natal-wheel__leader {
  stroke: #8a6d45;
  fill: #8a6d45;
}

html.theme-light .natal-wheel__zodiac {
  fill: #2a2230;
  stroke: rgba(255, 250, 244, 0.7);
  stroke-width: 2px;
}

html.theme-light .natal-wheel__house {
  fill: #4a4254;
}

html.theme-light .natal-wheel__planet {
  fill: #241e2a;
}

html.theme-light .natal-wheel__angle {
  fill: #6d5535;
  stroke: rgba(255, 250, 244, 0.85);
}

html.theme-light .natal-wheel__aspect-mark {
  fill: #2a2230;
}

.natal-page__title {
  margin: 1.25rem 0 0;
  font-size: clamp(3.1rem, 8vw, 5.25rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.natal-page__lead {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  color: var(--mist);
  font-size: 0.95rem;
  line-height: 1.75;
}

.natal-page__note {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  color: var(--mist);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .natal-page__lead {
    font-size: 1rem;
  }
}

.natal-meta {
  margin: 1.25rem 0 0;
  color: var(--mist);
  font-size: 0.95rem;
}

.natal-form {
  margin-top: 3rem;
  max-width: none;
  padding: 2rem 0 0;
  border: 0;
  border-top: 1px solid rgba(234, 219, 206, 0.12);
  border-radius: 0;
  background: transparent;
}

@media (min-width: 768px) {
  .natal-form {
    margin-top: 4rem;
  }
}

html.theme-light .natal-form {
  border-top-color: rgba(44, 36, 51, 0.13);
  background: transparent;
}

.natal-form__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .natal-form__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.natal-field--wide {
  grid-column: 1 / -1;
}

.natal-field.is-disabled {
  opacity: 0.5;
}

.natal-field__label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--mist);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.natal-field__input {
  width: 100%;
  min-height: 3.55rem;
  padding: 0 1rem;
  border: 1px solid rgba(234, 219, 206, 0.15);
  border-radius: 0.7rem;
  background: rgba(13, 11, 24, 0.45);
  color: var(--cream);
  color-scheme: dark;
  font: inherit;
  font-size: 0.88rem;
  transition: border-color 180ms ease, background 180ms ease;
}

.natal-field__input:focus {
  border-color: rgba(197, 168, 128, 0.62);
  background: rgba(19, 15, 31, 0.8);
  outline: none;
}

html.theme-light .natal-field__input {
  border-color: rgba(44, 36, 51, 0.18);
  background: rgba(255, 252, 247, 0.78);
  color: #2c2433;
  color-scheme: light;
}

html.theme-light .natal-field__input:focus {
  border-color: rgba(74, 59, 90, 0.5);
  background: #fffaf3;
}

.natal-field__hint,
.natal-field__error {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
}

.natal-field__hint {
  color: var(--mist);
}

.natal-field__error {
  color: #d4a0a0;
}

.natal-check {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.3rem;
  color: var(--mist);
  font-size: 0.72rem;
}

.natal-check input {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--gold);
}

.natal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  min-height: 3.5rem;
  margin-top: 2.5rem;
  padding: 0 1.7rem;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: #0d0b18;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  transition: background 180ms ease, transform 180ms ease;
}

.natal-submit:hover {
  background: var(--cream);
  transform: translateY(-1px);
}

html.theme-light .natal-submit {
  border: 1px solid #2c2433;
  background: #c5a880;
  color: #211a27;
}

html.theme-light .natal-submit:hover {
  background: #eadbce;
}

@media (max-width: 420px) {
  .natal-submit {
    width: 100%;
  }
}

.natal-recover {
  margin-top: 3.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(234, 219, 206, 0.12);
  max-width: 32rem;
}

html.theme-light .natal-recover {
  border-top-color: rgba(44, 36, 51, 0.12);
}

.natal-recover__title {
  margin: 0.45rem 0 0;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 400;
}

.natal-recover__lead {
  margin: 0.75rem 0 0;
  color: var(--mist);
  font-size: 0.9rem;
  line-height: 1.6;
}

.natal-recover__form {
  margin-top: 1.15rem;
}

.natal-recover__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.natal-recover__input {
  flex: 1 1 12rem;
  min-height: 2.75rem;
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 0.7rem;
  padding: 0 0.9rem;
  background: rgba(13, 11, 24, 0.35);
  color: var(--cream);
  font-size: 0.9rem;
}

html.theme-light .natal-recover__input {
  border-color: rgba(44, 36, 51, 0.18);
  background: rgba(255, 252, 247, 0.9);
  color: #2c2433;
}

.natal-recover__btn {
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(197, 168, 128, 0.45);
  border-radius: 999px;
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.natal-recover__btn:hover {
  border-color: #c5a880;
  background: rgba(197, 168, 128, 0.12);
}

html.theme-light .natal-recover__btn {
  color: #2c2433;
}

.natal-recover-inline {
  display: grid;
  gap: 0.85rem;
  width: 100%;
}

.natal-recover-inline__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.natal-recover-inline__input {
  flex: 1 1 11rem;
  min-height: 2.4rem;
  border: 1px solid rgba(197, 168, 128, 0.4);
  border-radius: 0.55rem;
  padding: 0 0.75rem;
  background: rgba(13, 11, 24, 0.25);
  color: var(--cream);
  font-size: 0.85rem;
}

html.theme-light .natal-recover-inline__input {
  border-color: rgba(44, 36, 51, 0.2);
  background: rgba(255, 252, 247, 0.85);
  color: #2c2433;
}

.natal-recover-inline__btn {
  min-height: 2.4rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: var(--gold);
  color: #0d0b18;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.natal-form__errors {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.7rem;
  background: rgba(180, 80, 80, 0.15);
  color: #e8c4c4;
  list-style: none;
}

.natal-note {
  display: flex;
  max-width: 62rem;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(197, 168, 128, 0.35);
  border-bottom: 1px solid rgba(197, 168, 128, 0.18);
  color: var(--mist);
  font-size: 0.78rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .natal-note {
    margin-top: 3.5rem;
  }
}

.natal-note .icon-star {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  fill: var(--gold);
  color: var(--gold);
}

.natal-inline-link {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(197, 168, 128, 0.55);
  text-underline-offset: 4px;
}

html.theme-light .natal-note,
html.theme-light .natal-check {
  color: #3f3547;
}

html.theme-light .natal-inline-link {
  color: #2c2433;
}

.natal-section {
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .natal-section {
    margin-top: 6rem;
  }
}

.natal-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(234, 219, 206, 0.1);
}

html.theme-light .natal-section__head {
  border-bottom-color: rgba(44, 36, 51, 0.13);
}

.natal-section__title {
  margin: 0.75rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
}

.natal-section__aside {
  display: none;
  color: var(--mist);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .natal-section__aside {
    display: block;
  }
}

.placement-row {
  display: grid;
  grid-template-columns: 2rem minmax(7rem, 0.7fr) 1fr 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 6.5rem;
  border-bottom: 1px solid rgba(234, 219, 206, 0.1);
}

.placement-number {
  color: var(--gold);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

.placement-body {
  color: var(--mist);
  font-size: 0.88rem;
}

.placement-sign {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.placement-note {
  display: none;
  justify-self: end;
  color: var(--mist);
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .placement-note {
    display: block;
  }
}

@media (max-width: 767px) {
  .placement-row {
    grid-template-columns: 1.4rem minmax(5.5rem, 0.8fr) 1fr;
    gap: 0.8rem;
    min-height: 5.2rem;
  }
}

html.theme-light .placement-row {
  border-bottom-color: rgba(44, 36, 51, 0.13);
}

html.theme-light .placement-number {
  color: #2c2433;
}

.interpretation-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(234, 219, 206, 0.1);
  border-bottom: 1px solid rgba(234, 219, 206, 0.1);
}

@media (min-width: 768px) {
  .interpretation-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.interpretation-item {
  display: flex;
  flex-direction: column;
  padding: 1.8rem 0;
  min-width: 0;
}

@media (min-width: 768px) {
  .interpretation-item {
    padding: 2rem 1.5rem 2.2rem;
    border-left: 1px solid rgba(234, 219, 206, 0.1);
  }

  .interpretation-item:nth-child(3n + 1) {
    border-left: 0;
    padding-left: 0;
  }

  .interpretation-item:nth-child(3n) {
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .interpretation-item + .interpretation-item {
    border-top: 1px solid rgba(234, 219, 206, 0.1);
  }
}

html.theme-light .interpretation-grid,
html.theme-light .interpretation-item {
  border-color: rgba(44, 36, 51, 0.13);
}

.interpretation-index {
  color: var(--gold);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}

.interpretation-item__title {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.interpretation-item__heading {
  margin: 0.55rem 0 0;
  color: var(--mist);
  font-size: 0.84rem;
  line-height: 1.55;
}

.natal-depth-note {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  color: var(--mist);
  font-size: 0.82rem;
  line-height: 1.55;
}

.interpretation-item__more {
  margin: 0.85rem 0 0;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.interpretation-item__teaser,
.interpretation-item__body {
  margin: 1rem 0 0;
  color: var(--mist);
  font-size: 0.875rem;
  line-height: 1.75;
}

.interpretation-item__teaser {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  flex: 1;
}

/* display:-webkit-box перебивает UA [hidden] - иначе тизер дублирует тело */
.interpretation-item__teaser[hidden],
.interpretation-item.is-open .interpretation-item__teaser {
  display: none !important;
}

.interpretation-item__panel .interpretation-item__body {
  max-width: 46rem;
  white-space: pre-line;
}

.interpretation-item__toggle {
  align-self: flex-start;
  margin-top: 1.15rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.interpretation-item__toggle:hover {
  color: var(--ivory, #eadbce);
}

html.theme-light .interpretation-item__toggle:hover {
  color: var(--ink, #2c2433);
}

.interpretation-item__toggle:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* Раскрытая карточка занимает всю ширину ряда - удобно читать длинный текст */
.interpretation-item.is-open {
  grid-column: 1 / -1;
  border-left: 0;
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 768px) {
  .interpretation-item.is-open + .interpretation-item {
    border-left: 0;
  }
}

.natal-extra {
  margin-top: 3rem;
}

.natal-extra__title {
  margin: 0.75rem 0 0;
  font-size: 1.5rem;
  font-weight: 400;
}

.natal-aspects,
.natal-houses {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.natal-aspects li,
.natal-houses li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(234, 219, 206, 0.08);
  font-size: 0.92rem;
}

html.theme-light .natal-aspects li,
html.theme-light .natal-houses li {
  border-bottom-color: rgba(74, 59, 90, 0.08);
}

.natal-aspects__orb {
  color: var(--mist);
  font-size: 0.82rem;
}

.natal-pdf-export {
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(234, 219, 206, 0.1);
  max-width: none;
}

html.theme-light .natal-pdf-export {
  border-top-color: rgba(44, 36, 51, 0.12);
}

.natal-pdf-export__title {
  margin: 0.75rem 0 0;
  font-size: 1.75rem;
  font-weight: 400;
}

.natal-pdf-export__lead {
  margin: 0.85rem 0 0;
  color: var(--mist);
  font-size: 0.9rem;
  line-height: 1.6;
}

.natal-pdf-export__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.natal-pdf-export__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.15rem;
  border: 1px solid rgba(197, 168, 128, 0.55);
  background: rgba(197, 168, 128, 0.12);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.natal-pdf-export__btn:hover {
  background: rgba(197, 168, 128, 0.22);
  border-color: var(--gold);
  color: var(--cream);
}

.natal-pdf-export__btn--ghost {
  background: transparent;
  border-color: rgba(142, 154, 166, 0.4);
  color: var(--mist);
}

.natal-pdf-export__btn--ghost:hover {
  border-color: var(--mist);
  color: var(--cream);
}

.natal-pdf-wait {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(7, 5, 14, 0.72);
}

.natal-pdf-wait[hidden] {
  display: none !important;
}

.natal-pdf-wait__panel {
  position: relative;
  width: min(100%, 26rem);
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid rgba(197, 168, 128, 0.28);
  border-radius: 1.15rem;
  background: rgba(22, 18, 35, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

html.theme-light .natal-pdf-wait__panel {
  background: rgba(255, 252, 247, 0.98);
  border-color: rgba(154, 123, 82, 0.35);
}

.natal-pdf-wait__close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: var(--mist);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.natal-pdf-wait__title {
  margin: 0.45rem 0 0;
  font-size: 1.55rem;
  font-weight: 400;
}

.natal-pdf-wait__text {
  margin: 0.7rem 0 0;
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.5;
}

.natal-pdf-wait__track {
  margin-top: 1.25rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(234, 219, 206, 0.12);
  overflow: hidden;
}

html.theme-light .natal-pdf-wait__track {
  background: rgba(74, 59, 90, 0.12);
}

.natal-pdf-wait__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(197, 168, 128, 0.55), var(--gold));
  transition: width 280ms ease;
}

body.natal-pdf-wait-open {
  overflow: hidden;
}

.natal-pdf-export__btn.is-preferred {
  border-color: var(--gold);
  background: rgba(197, 168, 128, 0.2);
  color: var(--cream);
}

html.theme-light .natal-pdf-export__btn {
  color: #2c2433;
  border-color: rgba(44, 36, 51, 0.28);
  background: rgba(197, 168, 128, 0.18);
}

html.theme-light .natal-pdf-export__btn--ghost {
  background: transparent;
  color: rgba(44, 36, 51, 0.7);
}

.natal-next {
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(234, 219, 206, 0.1);
  max-width: none;
  width: 100%;
}

html.theme-light .natal-next {
  border-top-color: rgba(44, 36, 51, 0.12);
}

.natal-next__title {
  margin: 0.75rem 0 0;
  font-size: clamp(1.55rem, 3.5vw, 1.9rem);
  font-weight: 400;
}

.natal-next__layout {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 900px) {
  .natal-next__layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.9fr);
    gap: 2rem 2.75rem;
    align-items: start;
  }
}

.natal-next__aside {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .natal-next__aside {
    position: sticky;
    top: 1.5rem;
    padding: 1.25rem 1.35rem 1.35rem;
    border: 1px solid rgba(197, 168, 128, 0.22);
    border-radius: 1rem;
    background:
      radial-gradient(circle at 12% 0%, rgba(197, 168, 128, 0.1), transparent 55%),
      rgba(22, 18, 35, 0.45);
  }

  html.theme-light .natal-next__aside {
    border-color: rgba(154, 123, 82, 0.22);
    background:
      radial-gradient(circle at 12% 0%, rgba(197, 168, 128, 0.14), transparent 55%),
      rgba(255, 252, 247, 0.88);
  }
}

.natal-next__block {
  margin: 0;
}

.natal-next__subtitle {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html.theme-light .natal-next__subtitle {
  color: #9a7b52;
}

.natal-next__text {
  margin: 0.75rem 0 0;
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.65;
}

.natal-next__text--lead {
  margin-top: 0;
}

.natal-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.natal-next__keep {
  margin: 0;
  color: var(--mist);
  font-size: 0.8rem;
  line-height: 1.55;
}

@media (max-width: 899px) {
  .natal-next__keep {
    margin-top: 0.25rem;
  }
}

.natal-flash {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(210, 140, 140, 0.45);
  color: #d28c8c;
  font-size: 0.88rem;
}

html.theme-light .natal-flash {
  border-color: rgba(150, 70, 70, 0.35);
  color: #8a3030;
}

.natal-page__back {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-top: 5rem;
}

@media (min-width: 768px) {
  .natal-page__back {
    margin-top: 7rem;
  }
}

.natal-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(197, 168, 128, 0.45);
  color: var(--gold);
  padding-bottom: 0.35rem;
  font-size: 0.75rem;
  transition: color 180ms ease, border-color 180ms ease;
}

.natal-secondary-link.subdued {
  border-color: rgba(142, 154, 166, 0.35);
  color: var(--mist);
}

.natal-secondary-link:hover {
  border-color: var(--cream);
  color: var(--cream);
}

html.theme-light .natal-secondary-link {
  color: #2c2433;
  border-color: rgba(44, 36, 51, 0.35);
}

/* Tarot spreads */

.spreads {
  padding-block: 1.5rem 5rem;
}

.spreads-hero {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.spreads-hero__title {
  margin: 0.5rem 0 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
}

.spreads-hero__lead {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--mist);
}

.spreads-hero__note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--mist);
}

.spreads-hero__note a {
  color: var(--gold);
}

html.theme-light .spreads-hero__note a {
  color: #2c2433;
}

.spreads-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.75rem;
}

.spreads-filters__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  color: var(--mist);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.spreads-filters__btn:hover {
  border-color: rgba(197, 168, 128, 0.7);
  color: var(--cream);
}

.spreads-filters__btn.is-active {
  border-color: #c5a880;
  background: rgba(197, 168, 128, 0.14);
  color: var(--cream);
}

html.theme-light .spreads-filters__btn:hover,
html.theme-light .spreads-filters__btn.is-active {
  color: #2c2433;
}

.spreads-filters__count {
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.spreads-filters__btn.is-active .spreads-filters__count {
  opacity: 0.9;
}

.spreads-catalog {
  display: grid;
  gap: 1.25rem;
}

.spreads-empty {
  margin: 0.5rem 0 0;
  color: var(--mist);
  font-size: 0.92rem;
}

@media (min-width: 768px) {
  .spreads-catalog {
    grid-template-columns: 1fr 1fr;
  }
}

.spread-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(234, 219, 206, 0.12);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 85% 0%, rgba(74, 59, 90, 0.4), transparent 45%),
    rgba(22, 18, 35, 0.72);
}

/* display:flex overrides UA [hidden] { display:none } */
.spread-card[hidden] {
  display: none !important;
}

html.theme-light .spread-card {
  background:
    radial-gradient(circle at 85% 0%, rgba(233, 224, 235, 0.85), transparent 45%),
    #fffaf4;
  border-color: rgba(74, 59, 90, 0.1);
}

.spread-card__preview {
  position: relative;
  height: 7.5rem;
}

.spread-card__back {
  position: absolute;
  left: 0;
  top: 0;
  width: 4.5rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(197, 168, 128, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transform: rotate(-4deg);
}

.spread-card__back--offset-1 {
  left: 2.4rem;
  transform: rotate(2deg);
}

.spread-card__back--offset-2 {
  left: 4.8rem;
  transform: rotate(-1deg);
}

.spread-card__title {
  margin: 0.35rem 0 0;
  font-size: 1.75rem;
  font-weight: 400;
}

.spread-card__text {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--mist);
}

.spread-card__meta {
  margin: 0.85rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.spread-card .primary-button {
  margin-top: 1.25rem;
  align-self: flex-start;
}

.spread-page {
  padding-block: 1.5rem 5rem;
}

.spread-page__nav {
  margin-bottom: 1.25rem;
}

.spread-top {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 2.25rem;
}

@media (min-width: 860px) {
  .spread-top {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
    gap: 1.5rem 2rem;
    align-items: center;
  }
}

.spread-top__actions {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  width: 100%;
}

.spread-page__title {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
}

.spread-page__lead {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mist);
}

.spread-page__progress {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--mist);
}

.spread-page__progress strong {
  color: var(--cream);
  font-weight: 500;
}

html.theme-light .spread-page__progress strong {
  color: #2c2433;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.spread-draw__form.is-hidden,
.is-hidden {
  display: none !important;
}

/* Жест и кнопка — справа от заголовка (красная зона на скрине) */
.spread-controls {
  width: 100%;
}

.spread-controls.is-waiting-reveal {
  opacity: 0.45;
  pointer-events: none;
}

.spread-controls__deck {
  width: 2.1rem;
  height: auto;
  border-radius: 0.25rem;
  border: 1px solid rgba(197, 168, 128, 0.4);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  flex: 0 0 auto;
}

.spread-controls__deck.is-shuffling {
  animation: spread-deck-wiggle 0.45s ease-in-out infinite;
}

@keyframes spread-deck-wiggle {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
}

.spread-shuffle {
  display: grid;
  gap: 0;
}

.spread-shuffle__pad {
  position: relative;
  min-height: 4.25rem;
  padding: 0.7rem 0.85rem 0.75rem;
  border: 1px dashed rgba(197, 168, 128, 0.45);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 80% 0%, rgba(74, 59, 90, 0.4), transparent 50%),
    rgba(16, 13, 28, 0.72);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: border-color 180ms ease, background 180ms ease;
}

html.theme-light .spread-shuffle__pad {
  background:
    radial-gradient(circle at 80% 0%, rgba(233, 224, 235, 0.9), transparent 50%),
    #fffaf4;
  border-color: rgba(74, 59, 90, 0.22);
}

.spread-shuffle__pad-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.spread-shuffle__pad.is-active {
  cursor: grabbing;
  border-color: rgba(197, 168, 128, 0.85);
  border-style: solid;
}

.spread-shuffle__pad.is-ready {
  border-style: solid;
  border-color: var(--gold);
  cursor: default;
}

.spread-shuffle__pad:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.spread-shuffle__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.3;
}

.spread-shuffle__bar {
  margin-top: 0.65rem;
  height: 0.24rem;
  border-radius: 999px;
  background: rgba(234, 219, 206, 0.12);
  overflow: hidden;
}

html.theme-light .spread-shuffle__bar {
  background: rgba(74, 59, 90, 0.12);
}

.spread-shuffle__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(197, 168, 128, 0.55), var(--gold));
  transition: width 80ms linear;
}

.spread-shuffle__status {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  color: var(--mist);
}

.spread-controls__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  align-items: stretch;
}

.spread-controls__btns:has(#spread-shuffle-skip[hidden]) {
  grid-template-columns: 1fr;
}

.spread-controls__btns form {
  margin: 0;
  min-width: 0;
}

.spread-controls__action-btn {
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-height: 2.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(197, 168, 128, 0.55);
  background: rgba(234, 219, 206, 0.92);
  color: #2c2433;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.spread-controls__action-btn:hover:not(:disabled) {
  background: #f3e9dc;
  border-color: rgba(232, 206, 136, 0.9);
}

.spread-controls__action-btn--ghost {
  background: transparent;
  color: var(--mist, #b7a99c);
  border-color: rgba(197, 168, 128, 0.35);
}

.spread-controls__action-btn--ghost:hover:not(:disabled) {
  color: var(--cream, #eadbce);
  border-color: rgba(232, 206, 136, 0.7);
  background: rgba(197, 168, 128, 0.08);
}

.spread-controls__action-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.spread-controls__action-btn[hidden] {
  display: none !important;
}

html.theme-light .spread-controls__action-btn {
  background: #2c2433;
  color: #fffaf4;
  border-color: rgba(44, 36, 51, 0.85);
}

html.theme-light .spread-controls__action-btn:hover:not(:disabled) {
  background: #3a3144;
}

html.theme-light .spread-controls__action-btn--ghost {
  background: transparent;
  color: #6a5b73;
  border-color: rgba(74, 59, 90, 0.22);
}

html.theme-light .spread-controls__action-btn--ghost:hover:not(:disabled) {
  color: #2c2433;
  border-color: rgba(74, 59, 90, 0.45);
  background: rgba(74, 59, 90, 0.05);
}

@media (max-width: 420px) {
  .spread-controls__btns {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spread-controls__deck.is-shuffling {
    animation: none !important;
  }
}

.spread-result__live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.spread-stage {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  margin-top: 0.75rem;
}

@media (min-width: 860px) {
  .spread-stage {
    grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.9fr);
    gap: 1.25rem 1.5rem;
  }
}

.spread-board {
  position: relative;
  height: var(--bh, 300px);
  min-height: 280px;
  margin-top: 0.35rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(197, 168, 128, 0.38);
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(122, 90, 170, 0.22), transparent 70%),
    rgba(22, 18, 35, 0.85);
  --cardW: 120px;
  --cardH: 200px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: visible;
}

.spread-board[data-count="4"] {
  --cardW: 90px;
  --cardH: 150px;
  min-height: 420px;
}

.spread-board[data-count="5"],
.spread-board[data-count="6"] {
  --cardW: 80px;
  --cardH: 132px;
  min-height: 500px;
}

.spread-board[data-count="7"],
.spread-board[data-count="8"] {
  --cardW: 72px;
  --cardH: 120px;
  min-height: 540px;
}

.spread-board[data-count="9"],
.spread-board[data-count="10"] {
  /* Defaults; layout card_w_px / card_h_px can override */
  --cardW: 64px;
  --cardH: 106px;
  min-height: 600px;
}

.spread-board[data-count="11"],
.spread-board[data-count="12"],
.spread-board[data-count="13"] {
  --cardW: 56px;
  --cardH: 92px;
  min-height: 560px;
}

.spread-board[data-count="15"] {
  --cardW: 50px;
  --cardH: 82px;
  min-height: 680px;
}

html.theme-light .spread-board {
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(122, 90, 170, 0.1), transparent 70%),
    #fffaf4;
}

.spread-board__slot {
  --slotW: var(--cardW);
  --slotH: var(--cardH);
  position: absolute;
  box-sizing: border-box;
  width: var(--slotW);
  height: var(--slotH);
  /* --x/--y = center of card as % of the board (same for portrait and landscape) */
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  z-index: 1;
}

.spread-board__slot--h {
  --slotW: var(--cardH);
  --slotH: var(--cardW);
  z-index: 3;
}

/* Align landscape card edge to a portrait card at the same --x */
.spread-board__slot--xa-ref-right {
  /* own right edge = ref right edge (ref width = --cardW) */
  left: calc(var(--x) * 1% + (var(--cardW) - var(--slotW)) / 2);
}

.spread-board__slot--xa-ref-left {
  /* own left edge = ref left edge */
  left: calc(var(--x) * 1% + (var(--slotW) - var(--cardW)) / 2);
}

.spread-board__pos {
  position: absolute;
  top: auto;
  bottom: calc(100% + 0.22rem);
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: normal;
  text-align: center;
  max-width: 6.8rem;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.spread-board__card {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 800px;
  transform-style: preserve-3d;
}

/* Landscape: slot hit-box is landscape; art stays portrait and rotates as a unit */
.spread-board__slot--h .spread-board__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--cardW);
  height: var(--cardH);
  transform: translate(-50%, -50%) rotate(90deg);
}

.spread-board__placeholder,
.spread-board__back,
.spread-board__face {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.45rem;
  border: 1.5px solid rgba(197, 168, 128, 0.45);
}

.spread-board__placeholder {
  background: rgba(122, 90, 170, 0.16);
  border-style: dashed;
}

/* Цель полёта: «бегущий» пунктир вместо пустого исчезновения */
.spread-board__placeholder--target {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: none;
  background-color: rgba(122, 90, 170, 0.12);
  background-image:
    linear-gradient(90deg, rgba(232, 206, 136, 0.95) 50%, transparent 50%),
    linear-gradient(90deg, rgba(232, 206, 136, 0.95) 50%, transparent 50%),
    linear-gradient(0deg, rgba(232, 206, 136, 0.95) 50%, transparent 50%),
    linear-gradient(0deg, rgba(232, 206, 136, 0.95) 50%, transparent 50%);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-size: 14px 2px, 14px 2px, 2px 14px, 2px 14px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  animation: spread-slot-dash 0.55s linear infinite;
  box-shadow: 0 0 0 1px rgba(232, 206, 136, 0.18), 0 0 18px rgba(197, 168, 128, 0.18);
}

@keyframes spread-slot-dash {
  to {
    background-position: 14px 0, -14px 100%, 0 -14px, 100% 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spread-board__placeholder--target {
    animation: none;
    border: 1.5px dashed rgba(232, 206, 136, 0.85);
    background-image: none;
  }
}

.spread-board__back,
.spread-board__face {
  position: absolute;
  inset: 0;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  background: #171320;
  backface-visibility: hidden;
}

.spread-board__face {
  z-index: 1;
}

.spread-board__face--rev {
  --face-extra: 180deg;
  transform: rotate(180deg);
}

.spread-board__slot.is-empty {
  pointer-events: none;
}

.spread-board__slot:not(.is-empty) {
  cursor: pointer;
}

.spread-board__slot.is-selected .spread-board__card {
  outline: 2px solid rgba(232, 206, 136, 0.95);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

.spread-board__slot.is-selected .spread-board__pos {
  color: var(--cream, #eadbce);
}

html.theme-light .spread-board__slot.is-selected .spread-board__pos {
  color: #2c2433;
}

/* Slot waits for the flight: outline stays, face/back hidden */
.spread-board__slot.is-pending {
  pointer-events: none;
  z-index: 4;
}

.spread-board__slot.is-pending .spread-board__back,
.spread-board__slot.is-pending .spread-board__face {
  opacity: 0;
  visibility: hidden;
}

.spread-board__slot.is-pending .spread-board__pos {
  opacity: 1;
  color: var(--cream, #eadbce);
}

.spread-board__slot.is-open .spread-board__back {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spread-board__slot.is-open .spread-board__face {
  opacity: 1;
}

.spread-board__slot.is-open .spread-board__face--rev {
  transform: rotate(180deg);
}

.spread-board__slot.is-open.is-landing .spread-board__card {
  animation: spread-board-land 320ms ease both;
}

@keyframes spread-board-land {
  from {
    opacity: 0.35;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.spread-board__slot--h.is-open.is-landing .spread-board__card {
  animation: spread-board-land-h 320ms ease both;
}

@keyframes spread-board-land-h {
  from {
    opacity: 0.35;
    transform: translate(-50%, -50%) rotate(90deg) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(90deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spread-board__slot.is-open.is-landing .spread-board__card,
  .spread-board__slot--h.is-open.is-landing .spread-board__card {
    animation: none !important;
  }
}

.spread-reading {
  padding: 1.15rem 1.2rem 1.35rem;
  border: 1px solid rgba(234, 219, 206, 0.12);
  border-radius: 1.15rem;
  background: rgba(22, 18, 35, 0.62);
  min-height: 16rem;
}

html.theme-light .spread-reading {
  background: #fffaf4;
  border-color: rgba(74, 59, 90, 0.1);
}

@media (min-width: 860px) {
  .spread-reading {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
  }
}

.spread-reading__empty-title {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spread-reading__empty p:last-child {
  margin: 0;
  color: var(--mist);
  line-height: 1.55;
}

.spread-reading__pos {
  margin: 0;
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spread-reading__hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--mist);
}

.spread-reading__preview {
  position: relative;
  width: min(160px, 55%);
  aspect-ratio: 220 / 384;
  margin: 0.85rem auto 0;
}

.spread-reading__reveal {
  position: relative;
  width: min(160px, 55%);
  aspect-ratio: 220 / 384;
  margin: 0.85rem auto 0;
  perspective: 900px;
  transition:
    opacity 480ms ease,
    transform 480ms ease;
}

.spread-reading__reveal.is-entering {
  opacity: 0;
  transform: translateY(0.7rem) scale(0.94);
}

.spread-reading__reveal.is-ready {
  opacity: 1;
  transform: none;
}

.spread-reading__flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1000ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.spread-reading__reveal.is-flipping .spread-reading__flip,
.spread-reading__reveal.is-open .spread-reading__flip {
  transform: rotateY(180deg);
}

.spread-reading__flip-back,
.spread-reading__flip-face {
  position: absolute;
  inset: 0;
  border-radius: 0.65rem;
  border: 1px solid rgba(197, 168, 128, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  background: #171320;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.spread-reading__flip-back {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.spread-reading__flip-face {
  transform: rotateY(180deg);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.spread-reading__flip-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spread-reading__flip-face img.is-reversed {
  transform: rotate(180deg);
}

.spread-reading__meta,
.spread-reading__details {
  opacity: 0;
  transform: translateY(0.45rem);
  pointer-events: none;
  transition:
    opacity 340ms ease,
    transform 340ms ease;
}

.spread-reading__meta.is-shown,
.spread-reading__details.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.spread-card-flyer {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  margin: 0;
  padding: 0;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.spread-card-flyer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.45rem;
  border: 1.5px solid rgba(197, 168, 128, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  background: #171320;
}

.spread-card-flyer img.is-reversed {
  transform: rotate(180deg);
}

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

  .spread-reading__details {
    transition: none !important;
  }

  .spread-card-flyer {
    transition: none !important;
  }
}

.spread-slot__face {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.spread-slot__img {
  --face-rot: 0deg;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.65rem;
  border: 1px solid rgba(197, 168, 128, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  background: #171320;
  transform: rotate(var(--face-rot, 0deg));
}

.spread-slot__img--reversed {
  --face-rot: 180deg;
}

.spread-slot__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.spread-slot__keywords li {
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.spread-slot__question {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(197, 168, 128, 0.35);
  background: rgba(197, 168, 128, 0.08);
}

.spread-slot__question h3 {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spread-slot__question p {
  margin: 0;
  line-height: 1.45;
}

.ez-hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.spread-slot__card--hot:hover .ez-hotspot__dot,
.spread-slot__card--hot:focus-within .ez-hotspot__dot {
  opacity: 0.95;
  transform: translate(-50%, -50%) scale(1);
}

.ez-hotspot {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: help;
}

.ez-hotspot__dot {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  margin: 0.2rem auto 0;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 206, 136, 0.95);
  background: rgba(12, 10, 20, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18);
  opacity: 0.15;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.18s ease, transform 0.18s ease;
  position: absolute;
  left: 50%;
  top: 50%;
}

.ez-hotspot:hover .ez-hotspot__dot,
.ez-hotspot:focus-visible .ez-hotspot__dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(201, 162, 75, 0.55);
}

.ez-hotspot__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 5;
  width: max(11rem, 160px);
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(197, 168, 128, 0.4);
  background: rgba(16, 13, 26, 0.96);
  color: var(--cream, #eadbce);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: left;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.ez-hotspot__tip b {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.ez-hotspot:hover .ez-hotspot__tip,
.ez-hotspot:focus-visible .ez-hotspot__tip {
  opacity: 1;
  visibility: visible;
}

html.theme-light .ez-hotspot__tip {
  background: #fffaf4;
  color: #2a2438;
}


.spread-slot__name {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 400;
}

.spread-slot__orient {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.spread-slot__orient--rev {
  color: #c9a0a8;
}

html.theme-light .spread-slot__orient--rev {
  color: #7a4550;
}

.spread-slot__en {
  margin: 0.25rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--mist);
}

.spread-slot__short {
  margin: 0.75rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.4;
}

.spread-slot__block {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(234, 219, 206, 0.1);
  border-radius: 0.75rem;
  background: rgba(13, 11, 24, 0.55);
}

html.theme-light .spread-slot__block {
  background: rgba(255, 252, 247, 0.9);
  border-color: rgba(74, 59, 90, 0.12);
}

.spread-slot__block h3 {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spread-slot__block p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.spread-slot__reversed-note {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--mist);
  font-style: italic;
}

.spread-result__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.spread-result__note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--mist);
}

.card-day__img--reversed,
.card-modal__img--reversed {
  transform: rotate(180deg);
}

.card-day__orient {
  margin: 0.35rem 0 0;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ——— Энциклопедия Таро ——— */

.ency {
  padding-block: 1.5rem 5rem;
}

.ency-hero__title {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
}

.ency-hero__lead {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mist);
}

.ency-hero__bridge {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--mist);
}

.ency-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.75rem 0 1.35rem;
}

.ency-filters__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  color: var(--mist);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.ency-filters__btn:hover {
  border-color: rgba(197, 168, 128, 0.7);
  color: var(--cream);
}

.ency-filters__btn.is-active {
  border-color: #c5a880;
  background: rgba(197, 168, 128, 0.14);
  color: var(--cream);
}

html.theme-light .ency-filters__btn:hover,
html.theme-light .ency-filters__btn.is-active {
  color: #2c2433;
}

.ency-filters__count {
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.ency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 0.75rem;
}

@media (min-width: 560px) {
  .ency-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  .ency-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem 1rem;
  }
}

@media (min-width: 1100px) {
  .ency-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.ency-tile {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  border-radius: 0.85rem;
  padding: 0.55rem 0.55rem 0.75rem;
  border: 1px solid rgba(197, 168, 128, 0.18);
  background: rgba(16, 13, 28, 0.55);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.ency-tile[hidden] {
  display: none !important;
}

.ency-tile:hover {
  border-color: rgba(232, 206, 136, 0.55);
  background: rgba(22, 18, 35, 0.9);
  transform: translateY(-2px);
}

html.theme-light .ency-tile {
  background: rgba(255, 250, 244, 0.9);
  border-color: rgba(74, 59, 90, 0.12);
}

html.theme-light .ency-tile:hover {
  border-color: rgba(74, 59, 90, 0.35);
  background: #fff;
}

.ency-tile__art {
  display: block;
  aspect-ratio: 2 / 3.4;
  border-radius: 0.45rem;
  overflow: hidden;
  background: #171320;
}

.ency-tile__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ency-tile__meta {
  display: grid;
  gap: 0.12rem;
  padding: 0 0.15rem;
}

.ency-tile__label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.ency-tile__name {
  font-size: 1.05rem;
  line-height: 1.2;
}

.ency-tile__en {
  font-size: 0.72rem;
  color: var(--mist);
}

.ency-empty {
  margin: 0.75rem 0 0;
  color: var(--mist);
}

/* Карточка энциклопедии */

.ency-card-page {
  padding-block: 1.5rem 5rem;
}

.ency-card-page__nav {
  margin-bottom: 1.1rem;
}

.ency-card-hero__title {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
}

.ency-card-hero__en {
  margin: 0.35rem 0 0;
  color: var(--mist);
  font-size: 0.95rem;
}

.ency-card-hero__short {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
}

.ency-card-layout {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.75rem;
  align-items: start;
}

@media (min-width: 900px) {
  .ency-card-layout {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    gap: 2.25rem;
    /* слот тянется по высоте текста — иначе sticky некуда ехать */
    align-items: stretch;
  }
}

.ency-card-figure-slot {
  position: relative;
  min-width: 0;
  width: 100%;
}

.ency-card-figure-sticky {
  position: relative;
  width: 100%;
}

@media (min-width: 900px) {
  .ency-card-figure-sticky {
    position: sticky;
    top: 1rem;
    z-index: 2;
    max-height: calc(100vh - 2rem);
  }
}

.ency-card-figure {
  position: relative;
  margin: 0;
  border-radius: 1rem;
  overflow: visible;
}

.ency-card-figure__stage {
  position: relative;
  width: 100%;
  border-radius: 0.85rem;
  overflow: visible;
}

.ency-card-figure__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 5.5rem);
  object-fit: contain;
  object-position: top center;
  border-radius: 0.85rem;
  border: 1px solid rgba(197, 168, 128, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  background: #171320;
}

.ency-card-figure__stage .ez-hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* В энциклопедии точки яркие, но только при наведении на карту */
.ency-card-figure .ez-hotspot__dot {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0;
  border: 2px solid rgba(255, 236, 180, 0.98);
  background: rgba(201, 162, 75, 0.72);
  box-shadow:
    0 0 0 4px rgba(12, 10, 20, 0.45),
    0 0 14px rgba(232, 206, 136, 0.65);
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.ency-card-figure--hot:hover .ez-hotspot__dot,
.ency-card-figure--hot:focus-within .ez-hotspot__dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ency-card-figure .ez-hotspot:hover .ez-hotspot__dot,
.ency-card-figure .ez-hotspot:focus-visible .ez-hotspot__dot {
  background: rgba(232, 206, 136, 0.95);
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow:
    0 0 0 5px rgba(12, 10, 20, 0.5),
    0 0 18px rgba(232, 206, 136, 0.85);
}

.ency-card-figure__hint {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--mist);
}

.ency-card-copy {
  display: grid;
  gap: 1.15rem;
}

.ency-block {
  padding: 1rem 1.05rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(197, 168, 128, 0.16);
  background: rgba(16, 13, 28, 0.55);
}

html.theme-light .ency-block {
  background: rgba(255, 250, 244, 0.92);
  border-color: rgba(74, 59, 90, 0.12);
}

.ency-block__title {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.ency-block__sub {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 500;
}

.ency-block__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.ency-block__text--rich p {
  margin: 0 0 0.75rem;
}

.ency-block__text--rich p:last-child {
  margin-bottom: 0;
}

.ency-block--question .ency-block__text {
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.65;
}

.ency-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ency-chips li {
  border: 1px solid rgba(197, 168, 128, 0.28);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  color: var(--mist);
}

.ency-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--cream);
}

.ency-symbols {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.75rem;
}

.ency-symbols li {
  font-size: 0.9rem;
  line-height: 1.5;
}

.ency-symbols strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--gold);
  font-weight: 500;
}

.ency-pager {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(197, 168, 128, 0.18);
}

@media (min-width: 700px) {
  .ency-pager {
    grid-template-columns: 1fr 1fr;
  }
}

.ency-pager__link {
  display: grid;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(197, 168, 128, 0.2);
  background: rgba(16, 13, 28, 0.4);
  transition: border-color 160ms ease, background 160ms ease;
}

.ency-pager__link:hover {
  border-color: rgba(232, 206, 136, 0.55);
  background: rgba(22, 18, 35, 0.75);
}

.ency-pager__link--next {
  text-align: right;
}

.ency-pager__link--empty {
  border: none;
  background: transparent;
  pointer-events: none;
}

.ency-pager__dir {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

.ency-pager__name {
  font-size: 1.15rem;
}

html.theme-light .ency-pager__link {
  background: rgba(255, 250, 244, 0.9);
  border-color: rgba(74, 59, 90, 0.12);
}
