:root {
  color-scheme: light;
  --ink: #231f20;
  --muted: #6b625f;
  --paper: #fffaf2;
  --panel: #ffffff;
  --line: #ded1c4;
  --gold: #c79634;
  --rose: #a94452;
  --teal: #27756f;
  --shadow: 0 20px 45px rgba(35, 31, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(199, 150, 52, 0.13) 1px, transparent 1px),
    linear-gradient(180deg, rgba(39, 117, 111, 0.08), transparent 360px),
    var(--paper);
  background-size: 42px 42px, auto, auto;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.9);
  border-bottom: 1px solid rgba(222, 209, 196, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.hero {
  min-height: min(760px, calc(100vh - 68px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(34px, 6vw, 78px) clamp(18px, 4vw, 56px) 28px;
  overflow: hidden;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 15ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 5.6vw, 5.25rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-copy .trust-note {
  display: block;
  margin-top: -4px;
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-style: italic;
  font-weight: 400;
}

.primary-action,
.spread-card button,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  box-shadow: none;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-action:disabled,
.spread-card button:disabled,
.secondary-action:disabled {
  cursor: default;
  opacity: 0.62;
}

.secondary-action {
  color: var(--ink);
  background: transparent;
}

.compact-action {
  min-height: 40px;
  padding-inline: 14px;
  white-space: nowrap;
}

.hero-cards {
  position: relative;
  min-height: 580px;
}

.hero-cards img {
  position: absolute;
  width: min(42vw, 285px);
  max-width: 42%;
  border: 10px solid #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-cards img:nth-child(1) {
  left: 0;
  top: 12%;
  transform: rotate(-9deg);
}

.hero-cards img:nth-child(2) {
  left: 28%;
  top: 2%;
  transform: rotate(5deg);
}

.hero-cards img:nth-child(3) {
  left: 52%;
  top: 18%;
  transform: rotate(13deg);
}

.section {
  padding: 64px clamp(18px, 4vw, 56px);
}

#readings {
  padding-top: 36px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-intro {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.spread-grid,
.future-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.spread-card,
.future-grid article,
.question-panel,
.card-chooser,
.card-reading,
.interpretation {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 25px rgba(35, 31, 32, 0.07);
}

.spread-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.spread-card:hover {
  transform: translateY(-3px);
  border-color: rgba(199, 150, 52, 0.48);
  box-shadow: 0 18px 32px rgba(35, 31, 32, 0.1);
}

.spread-card.is-angel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(245, 252, 250, 0.82)),
    rgba(255, 255, 255, 0.8);
  border-color: rgba(39, 117, 111, 0.28);
}

.spread-card.is-moon {
  background:
    radial-gradient(circle at 14% 10%, rgba(80, 76, 132, 0.11), transparent 34%),
    rgba(255, 255, 255, 0.82);
  border-color: rgba(80, 76, 132, 0.24);
}

.spread-card p,
.future-grid p,
.card-reading p,
.interpretation p,
.empty-state p {
  color: var(--muted);
  line-height: 1.55;
}

.spread-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.spread-badge,
.spread-count {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.spread-badge {
  color: var(--teal);
  background: rgba(39, 117, 111, 0.1);
}

.spread-count {
  color: var(--muted);
  background: rgba(255, 250, 242, 0.9);
}

.spread-card h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.05;
}

.spread-fit {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 850;
}

.spread-card > div > p:not(.spread-fit) {
  margin-bottom: 16px;
}

.spread-positions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.spread-positions span {
  border: 1px solid rgba(222, 209, 196, 0.8);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
}

.spread-meta {
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 800;
}

.moon-calendar {
  padding-top: 0;
}

.moon-calendar-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(80, 76, 132, 0.22);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 32px);
  background:
    radial-gradient(circle at 10% 12%, rgba(80, 76, 132, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 249, 255, 0.8));
  box-shadow: 0 12px 25px rgba(35, 31, 32, 0.06);
}

.moon-calendar-card h2 {
  font-size: clamp(2rem, 3.6vw, 3.7rem);
}

.moon-calendar-card p {
  color: var(--muted);
  line-height: 1.6;
}

.moon-calendar-side {
  display: grid;
  gap: 14px;
}

.moon-calendar-prompt {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(80, 76, 132, 0.36);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.68);
  font-style: italic;
}

.zodiac-layer {
  padding-top: 0;
}

.zodiac-card {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(240px, 0.3fr);
  gap: 18px;
  align-items: start;
  border: 1px solid rgba(199, 150, 52, 0.26);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 32px);
  background:
    linear-gradient(135deg, rgba(199, 150, 52, 0.09), transparent 48%),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 25px rgba(35, 31, 32, 0.06);
}

.zodiac-card h2 {
  font-size: clamp(2rem, 3.4vw, 3.4rem);
}

.zodiac-card p {
  color: var(--muted);
  line-height: 1.6;
}

.zodiac-control {
  display: grid;
  gap: 10px;
}

.zodiac-control label {
  margin-top: 6px;
  font-weight: 850;
}

.zodiac-control label:first-child {
  margin-top: 0;
}

.zodiac-control .zodiac-or-label {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.zodiac-result {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 0.3fr) minmax(0, 0.7fr);
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(222, 209, 196, 0.75);
}

.zodiac-result[hidden] {
  display: none;
}

.zodiac-result h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
}

.zodiac-insights {
  display: grid;
  gap: 10px;
}

.zodiac-insights p {
  margin: 0;
}

.zodiac-prompt {
  padding: 12px 14px;
  border-left: 3px solid rgba(199, 150, 52, 0.55);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 250, 242, 0.72);
  font-style: italic;
}

.zodiac-mismatch {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(169, 68, 82, 0.24);
  border-radius: 8px;
  color: var(--rose);
  background: rgba(255, 245, 245, 0.72);
  font-weight: 750;
}

.personal-start-card {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid rgba(39, 117, 111, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(39, 117, 111, 0.09), transparent 48%),
    rgba(247, 252, 250, 0.84);
}

.personal-start-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.personal-start-items div {
  padding: 12px;
  border: 1px solid rgba(39, 117, 111, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.personal-start-items span {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 800;
}

.personal-start-items strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.question-panel {
  margin: 24px clamp(18px, 4vw, 56px) 0;
  padding: clamp(18px, 4vw, 32px);
}

.question-panel label {
  display: block;
  margin-top: 22px;
  margin-bottom: 8px;
  font-weight: 800;
}

.focus-panel label {
  margin-top: 0;
}

.field-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

input[type="text"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

input[type="date"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.focus-panel,
.intention-panel,
.reading-zodiac-panel,
.numerology-panel {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(199, 150, 52, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(199, 150, 52, 0.13), transparent 42%),
    rgba(255, 250, 242, 0.82);
}

.reading-zodiac-panel[hidden] {
  display: none;
}

.intention-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intention-options label {
  margin: 0;
}

.intention-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.intention-options span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(39, 117, 111, 0.22);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.intention-options input:focus-visible + span {
  outline: 3px solid rgba(199, 150, 52, 0.34);
  outline-offset: 2px;
}

.intention-options input:checked + span {
  border-color: rgba(169, 68, 82, 0.45);
  color: var(--rose);
  background: rgba(255, 245, 235, 0.96);
  box-shadow: 0 8px 16px rgba(169, 68, 82, 0.08);
}

.personal-tone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.personal-tone-grid label {
  margin: 0 0 10px;
}

.numerology-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.number-pill {
  display: grid;
  gap: 6px;
  min-height: 142px;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(39, 117, 111, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.number-pill span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 0.9;
}

.number-pill strong {
  color: var(--ink);
}

.number-pill p,
.numerology-tone {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.numerology-tone {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.56);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.shuffle-moment {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(39, 117, 111, 0.22);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(247, 252, 250, 0.88);
  font-weight: 800;
}

.shuffle-moment[hidden] {
  display: none;
}

.shuffle-moment span {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(39, 117, 111, 0.22);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.shuffle-moment p {
  margin: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.card-chooser {
  margin-top: 24px;
  padding: clamp(16px, 3vw, 24px);
  background:
    radial-gradient(circle at 20% 0%, rgba(199, 150, 52, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.72);
  overflow: visible;
}

.reading-context-card {
  margin: 16px 0;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid rgba(39, 117, 111, 0.2);
  border-radius: 8px;
  background: rgba(246, 252, 249, 0.78);
}

.reading-context-card h3 {
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.reading-context-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.moon-phase-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(80, 76, 132, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 14%, rgba(80, 76, 132, 0.12), transparent 30%),
    rgba(250, 249, 255, 0.82);
}

.moon-phase-card h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.moon-phase-card p {
  color: var(--muted);
  line-height: 1.55;
}

.moon-prompt {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(80, 76, 132, 0.36);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.62);
  font-style: italic;
}

.astrology-reading-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(199, 150, 52, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(199, 150, 52, 0.1), transparent 48%),
    rgba(255, 250, 242, 0.86);
}

.astrology-reading-card h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.astrology-reading-card p {
  color: var(--muted);
  line-height: 1.55;
}

.astrology-reading-insights {
  display: grid;
  gap: 10px;
}

.astrology-reading-insights p {
  margin: 0;
}

.chooser-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.chooser-head h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
}

.chooser-head p:last-child {
  flex: 0 0 auto;
  margin: 0;
  color: var(--teal);
  font-weight: 900;
}

.deck-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 14px 10px;
  align-items: center;
  justify-items: center;
  padding: 22px 0 16px;
}

.deck-card {
  position: relative;
  width: min(100%, 70px);
  aspect-ratio: 3 / 5;
  min-height: 104px;
  border: 1px solid rgba(167, 122, 50, 0.62);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 34%, rgba(199, 150, 52, 0.28) 0 9%, transparent 10%),
    radial-gradient(circle at 50% 34%, transparent 0 23%, rgba(169, 68, 82, 0.16) 24% 25%, transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 42%),
    repeating-linear-gradient(45deg, rgba(199, 150, 52, 0.11) 0 2px, transparent 2px 11px),
    linear-gradient(160deg, #fff7e8, #f2dfbd 54%, #e7c98e);
  box-shadow: 0 9px 15px rgba(100, 75, 42, 0.15);
  cursor: pointer;
  transform: translateY(var(--lift)) rotate(var(--tilt));
  transform-origin: 50% 92%;
  transition: transform 170ms ease, box-shadow 170ms ease, opacity 170ms ease;
}

.deck-card::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(169, 68, 82, 0.46);
  border-radius: 5px;
  box-shadow: inset 0 0 0 5px rgba(255, 250, 242, 0.58);
}

.deck-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 34%;
  width: 34%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid rgba(39, 117, 111, 0.62);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 46%, rgba(39, 117, 111, 0.5) 47% 53%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(39, 117, 111, 0.5) 47% 53%, transparent 54%);
}

.deck-card span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 2;
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--rose);
  background: rgba(255, 250, 242, 0.82);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.deck-card:hover,
.deck-card:focus-visible {
  transform: translateY(calc(var(--lift) - 18px)) rotate(var(--tilt));
  box-shadow: 0 15px 24px rgba(35, 31, 32, 0.22);
  outline: none;
  z-index: 3;
}

.deck-card.is-selected {
  transform: translateY(calc(var(--lift) - 28px)) rotate(var(--tilt));
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 150, 52, 0.32), 0 18px 28px rgba(35, 31, 32, 0.25);
  z-index: 4;
}

.deck-card.is-locked {
  cursor: default;
  opacity: 0.56;
}

.deck-card.is-not-current {
  opacity: 0.34;
}

.deck-card.is-not-current:hover,
.deck-card.is-not-current:focus-visible {
  transform: translateY(var(--lift)) rotate(var(--tilt));
  box-shadow: 0 9px 15px rgba(100, 75, 42, 0.15);
}

.deck-card.is-wrong-turn {
  animation: wrongTurn 360ms ease;
}

.deck-card.is-locked:hover {
  transform: translateY(var(--lift)) rotate(var(--tilt));
}

.deck-card.is-angel {
  border-color: rgba(39, 117, 111, 0.38);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.92) 0 8%, transparent 9%),
    radial-gradient(circle at 50% 34%, rgba(39, 117, 111, 0.16) 0 24%, transparent 25%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 44%),
    repeating-linear-gradient(120deg, rgba(39, 117, 111, 0.08) 0 2px, transparent 2px 12px),
    linear-gradient(160deg, #ffffff, #e8f4f1 58%, #d9ebe7);
}

.deck-card.is-angel::before {
  border-color: rgba(39, 117, 111, 0.3);
}

.deck-card.is-angel::after {
  border-color: rgba(199, 150, 52, 0.72);
  background:
    linear-gradient(90deg, transparent 46%, rgba(199, 150, 52, 0.52) 47% 53%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(199, 150, 52, 0.52) 47% 53%, transparent 54%);
}

.deck-card.is-angel span {
  color: var(--teal);
}

@keyframes wrongTurn {
  0%, 100% {
    transform: translateY(var(--lift)) rotate(var(--tilt));
  }

  35% {
    transform: translateY(var(--lift)) translateX(-5px) rotate(var(--tilt));
  }

  70% {
    transform: translateY(var(--lift)) translateX(5px) rotate(var(--tilt));
  }
}

.empty-state {
  min-height: 260px;
  display: grid;
  align-content: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result {
  max-width: 1240px;
  margin: 0 auto;
}

.result h2 {
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.reading-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.reading-actions,
.journal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.reading-head p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.numerology-result {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(199, 150, 52, 0.32);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.86);
}

.numerology-result h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.cards-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  align-items: start;
}

.card-reading {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(35, 31, 32, 0.06);
}

.card-media {
  aspect-ratio: 3 / 5;
  background: #eadfce;
  height: 180px;
  align-self: stretch;
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.card-media.is-reversed img {
  transform: rotate(180deg);
}

.angel-card-face {
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--teal);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.95) 0 9%, transparent 10%),
    radial-gradient(circle at 50% 34%, rgba(199, 150, 52, 0.2) 0 25%, transparent 26%),
    linear-gradient(160deg, #ffffff, #eef8f6 62%, #d6eae6);
  border-right: 1px solid rgba(39, 117, 111, 0.16);
  text-align: center;
}

.angel-card-face span {
  display: grid;
  width: 78%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(199, 150, 52, 0.54);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.1;
}

.card-body {
  padding: 14px 16px;
}

.position {
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
}

.card-title h3 {
  font-size: 1rem;
  line-height: 1.25;
}

.orientation {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
}

.orientation.reversed {
  background: var(--rose);
}

.orientation.angel {
  background: var(--gold);
}

.keywords {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
}

.card-body p:last-child {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.card-depth {
  margin-top: 12px;
  border-top: 1px solid rgba(39, 117, 111, 0.16);
  padding-top: 10px;
}

.card-depth summary {
  width: fit-content;
  border: 1px solid rgba(39, 117, 111, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
  list-style-position: inside;
}

.card-depth summary:hover {
  border-color: rgba(169, 68, 82, 0.38);
  color: var(--rose);
}

.card-depth-content {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.card-depth-content p {
  margin: 0;
  font-size: 0.9rem;
}

.card-depth-content strong {
  color: var(--ink);
}

.reflection-block {
  grid-column: 1 / -1;
  padding: 0 16px 16px;
}

.reflection-label {
  margin: 0 0 6px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.reflection-question {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(199, 150, 52, 0.7);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.78);
  font-size: 0.9rem;
  font-style: italic;
}

.interpretation {
  margin-top: 18px;
  padding: clamp(18px, 4vw, 30px);
  background: rgba(255, 250, 242, 0.9);
}

.interpretation h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
}

.interpretation .interpretation-subtitle {
  margin-top: 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.action-step {
  margin-top: 14px;
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid rgba(39, 117, 111, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(39, 117, 111, 0.12), transparent 48%),
    rgba(247, 252, 250, 0.9);
}

.action-step h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
}

.action-step p:last-child {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.affirmation-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid rgba(169, 68, 82, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(169, 68, 82, 0.09), transparent 48%),
    rgba(255, 250, 242, 0.88);
}

.affirmation-panel h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
}

.affirmation-panel blockquote {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(169, 68, 82, 0.58);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.5;
}

.mini-ritual {
  padding-top: 2px;
}

.mini-ritual p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.takeaway-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid rgba(199, 150, 52, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(199, 150, 52, 0.11), transparent 48%),
    rgba(255, 250, 242, 0.9);
}

.takeaway-panel h3 {
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
}

.takeaway-panel textarea {
  min-height: 96px;
}

.takeaway-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.closing-message {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(39, 117, 111, 0.2);
  border-radius: 8px;
  background: rgba(247, 252, 250, 0.72);
}

.closing-message p {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}

.future-grid article {
  padding: 18px;
}

.journal {
  max-width: 1240px;
  margin: 0 auto;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.journal-card,
.journal-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 25px rgba(35, 31, 32, 0.07);
}

.journal-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.journal-card p,
.journal-empty p {
  color: var(--muted);
  line-height: 1.5;
}

.journal-date {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.journal-mini-cards {
  display: flex;
  min-height: 74px;
  align-items: center;
}

.journal-mini-cards img {
  width: 46px;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 5px;
  box-shadow: 0 8px 15px rgba(35, 31, 32, 0.12);
}

.journal-mini-cards img + img {
  margin-left: -12px;
}

.journal-mini-cards img.is-reversed {
  transform: rotate(180deg);
}

.journal-angel-mini {
  display: grid;
  width: 46px;
  aspect-ratio: 3 / 5;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 5px;
  color: var(--teal);
  background: linear-gradient(160deg, #fff, #e2f1ee);
  box-shadow: 0 8px 15px rgba(35, 31, 32, 0.12);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.journal-angel-mini + .journal-angel-mini,
.journal-mini-cards img + .journal-angel-mini,
.journal-angel-mini + img {
  margin-left: -12px;
}

.journal-empty {
  grid-column: 1 / -1;
  padding: 22px;
}

.site-footer {
  padding: 28px clamp(18px, 4vw, 56px) 34px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-cards {
    min-height: 410px;
  }

  .hero-cards img {
    width: 230px;
  }

  .spread-grid,
  .future-grid,
  .cards-layout,
  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .zodiac-card,
  .zodiac-result {
    grid-template-columns: 1fr;
  }

  .personal-start-items {
    grid-template-columns: 1fr;
  }

  .deck-table {
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  }
}

@media (max-width: 660px) {
  .topbar {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    max-width: 11ch;
  }

  .hero-cards {
    min-height: 300px;
  }

  .hero-cards img {
    width: 165px;
    border-width: 7px;
  }

  .spread-grid,
  .future-grid,
  .cards-layout,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .card-reading {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .card-media {
    height: 148px;
  }

  .section-head,
  .reading-head,
  .numerology-result,
  .toolbar,
  .chooser-head {
    align-items: stretch;
    flex-direction: column;
  }

  .personal-tone-grid,
  .moon-phase-card,
  .astrology-reading-card,
  .numerology-preview {
    grid-template-columns: 1fr;
  }

  .reading-actions,
  .journal-actions {
    justify-content: stretch;
  }

  .reading-actions .secondary-action,
  .journal-actions .secondary-action {
    flex: 1 1 140px;
  }

  .deck-card {
    width: min(100%, 74px);
    min-height: 112px;
  }

  .deck-table {
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 16px 12px;
    padding: 18px 0 16px;
  }

  .deck-card:hover,
  .deck-card:focus-visible {
    transform: translateY(calc(var(--lift) - 12px)) rotate(var(--tilt));
  }

  .deck-card.is-selected {
    transform: translateY(calc(var(--lift) - 18px)) rotate(var(--tilt));
  }

  .deck-card.is-locked:hover {
    transform: translateY(var(--lift)) rotate(var(--tilt));
  }
}
