:root {
  color-scheme: dark;
  --bg-y: 0px;
  --moon-y: 0px;
  --moon-r: 0deg;
  --ink: #f8f4ea;
  --muted: #c9c7b8;
  --panel: rgba(16, 24, 39, 0.76);
  --panel-strong: rgba(12, 17, 29, 0.9);
  --line: rgba(248, 244, 234, 0.18);
  --gold: #e7b65d;
  --coral: #e87d6d;
  --teal: #4fc4bb;
  --green: #9ecf8b;
  --blue: #6f9ff2;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #0a101d;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    "Inter", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(rgba(10, 16, 29, 0.42), rgba(10, 16, 29, 0.72)),
    url("assets/mangdian-background-clean.png") center var(--bg-y) / cover no-repeat,
    radial-gradient(circle at 18% 12%, rgba(79, 196, 187, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(232, 125, 109, 0.12), transparent 30rem),
    linear-gradient(135deg, #0a101d 0%, #132033 48%, #111827 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.app-shell {
  min-height: 100vh;
}

.stage {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100vh;
  padding: 128px clamp(20px, 5vw, 72px) 56px;
  overflow: hidden;
  isolation: isolate;
}

.starfield {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.28;
}

.stage::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(132px, 1fr) auto minmax(132px, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 76px;
  border-bottom: 1px solid rgba(248, 244, 234, 0.14);
  padding: 14px clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(7, 24, 43, 0.96), rgba(11, 40, 64, 0.88)),
    rgba(11, 30, 49, 0.92);
  box-shadow: 0 14px 38px rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 48px;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  background: transparent;
  gap: 8px;
}

.brand-symbol {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
}

.brand-text {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 1000;
  letter-spacing: 0.02em;
  text-shadow: 0 0 16px rgba(231, 182, 93, 0.2);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(231, 182, 93, 0.72);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 47%, rgba(231, 182, 93, 0.9) 48% 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(79, 196, 187, 0.8) 48% 52%, transparent 53%),
    radial-gradient(circle, rgba(231, 182, 93, 0.9) 0 10%, transparent 11%);
  box-shadow: 0 0 24px rgba(231, 182, 93, 0.24);
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  grid-column: 2;
}

.nav-button,
.primary-button,
.secondary-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.nav-button {
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
}

.nav-button.active {
  color: #101827;
  background: linear-gradient(135deg, var(--gold), #f3d28c);
  border-color: transparent;
}

.primary-button,
.secondary-button {
  padding: 0 22px;
  font-weight: 900;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.primary-button {
  color: #101827;
  background: linear-gradient(135deg, var(--gold), #f3d28c);
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.nav-button:hover,
.secondary-button:hover,
.primary-button:hover,
.answer-button:hover,
.feature-card:hover,
.zodiac-button:hover {
  transform: translateY(-2px);
}

.view {
  display: none;
  width: min(860px, 100%);
}

.view.active {
  display: block;
  animation: rise 420ms ease both;
}

.eyebrow,
.question-kicker,
.output-card span {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 1.02;
}

.tool-view h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
}

.hero-copy,
.section-copy,
.daily-stamp,
.result-copy,
.fortune-card p,
.output-card p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-copy,
.section-copy {
  max-width: 690px;
  margin: 24px auto;
  font-size: 1.05rem;
}

.hero {
  text-align: center;
}

.hero .eyebrow {
  text-align: center;
}

.daily-stamp {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 2px;
  border: 1px solid rgba(79, 196, 187, 0.32);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(79, 196, 187, 0.1);
  color: var(--ink);
  font-size: 0.92rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(980px, 100%);
  margin-top: 28px;
}

.feature-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 680px;
}

.quiz-catalog {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.quiz-category-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.quiz-category-heading {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.quiz-category-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.quiz-category-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.back-button {
  justify-self: start;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-weight: 900;
}

.feature-card,
.zodiac-button,
.question-panel,
.result-card,
.fortune-card,
.output-card,
.sell-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.feature-card,
.zodiac-button {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.hero .feature-card {
  min-height: 124px;
}

.feature-card strong,
.zodiac-button strong {
  font-size: 1.2rem;
}

.feature-card span,
.zodiac-button span {
  color: var(--muted);
  line-height: 1.55;
}

.feature-card:hover,
.zodiac-button:hover {
  border-color: rgba(231, 182, 93, 0.5);
  background: rgba(231, 182, 93, 0.1);
}

.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.zodiac-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
  min-height: 98px;
  padding: 14px;
}

.zodiac-copy {
  display: grid;
  gap: 8px;
}

.zodiac-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  justify-self: end;
  filter: drop-shadow(0 0 10px rgba(231, 182, 93, 0.28));
}

.output-card,
.question-panel,
.result-card,
.fortune-card {
  max-width: 720px;
  padding: clamp(22px, 5vw, 40px);
}

.output-card {
  margin-top: 18px;
}

.output-card h3,
.fortune-card h3 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
}

.fortune-card h3:empty,
.fortune-card p:empty {
  display: none;
}

.fortune-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.fortune-notice {
  flex: 1 1 220px;
  margin: 0;
  border-left: 3px solid rgba(231, 182, 93, 0.72);
  padding: 4px 0 4px 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.score-line {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  margin: 6px 0 18px;
  overflow-x: auto;
}

.score-line span {
  flex: 0 0 auto;
  border: 1px solid rgba(231, 182, 93, 0.3);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(231, 182, 93, 0.1);
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  font-weight: 900;
  white-space: nowrap;
}

.horoscope-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}

.horoscope-section h4 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 1.08rem;
}

.horoscope-section h4 span {
  color: #f7d98f;
  white-space: nowrap;
}

.star-rating {
  display: inline-flex;
  gap: 1px;
  vertical-align: -0.08em;
}

.star-rating .star {
  position: relative;
  display: inline-block;
  color: rgba(247, 217, 143, 0.28);
  line-height: 1;
}

.star-rating .star.full {
  color: #f7d98f;
}

.star-rating .star.half::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
  color: #f7d98f;
  content: "★";
}

.horoscope-section p {
  margin: 8px 0;
}

.tag-row,
.trait-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-row span,
.trait-grid span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.tarot-moon-bg {
  position: absolute;
  right: clamp(-110px, 2vw, 42px);
  bottom: clamp(-120px, 4vh, 42px);
  z-index: -1;
  width: min(430px, 42vw);
  height: auto;
  opacity: 0.34;
  pointer-events: none;
  transform: translate3d(0, var(--moon-y), 0) rotate(var(--moon-r));
  transform-origin: 50% 54%;
  filter: drop-shadow(0 0 34px rgba(231, 182, 93, 0.18));
  transition: opacity 180ms ease;
}

.progress-wrap {
  display: grid;
  gap: 10px;
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--muted);
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
  transition: width 260ms ease;
}

.question-panel h2,
.result-card h2 {
  margin: 0;
  line-height: 1.08;
}

.question-panel h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.answers {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.answer-button {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 76px;
  padding: 16px;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.answer-button span {
  color: var(--muted);
  line-height: 1.45;
}

.answer-button:hover {
  border-color: rgba(231, 182, 93, 0.5);
  background: rgba(231, 182, 93, 0.1);
}

.quiz-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.quiz-back-button {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(79, 196, 187, 0.52);
  background: rgba(79, 196, 187, 0.13);
  color: #d7fff8;
  font-size: 0.86rem;
  box-shadow: none;
}

.quiz-back-button[hidden] {
  display: none;
}

.quiz-back-button:hover {
  border-color: rgba(79, 196, 187, 0.8);
  background: rgba(79, 196, 187, 0.2);
}

.result-card h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.result-type {
  margin: 12px 0 0;
  color: var(--gold);
  font-weight: 900;
}

.fortune-line {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 22px;
}

.fortune-line span {
  color: var(--muted);
}

.fortune-line strong {
  color: var(--ink);
  line-height: 1.55;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.result-recommendations {
  width: min(720px, 100%);
  margin-top: 28px;
}

.result-recommendation-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.result-recommendation-heading span {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 900;
}

.result-recommendation-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
}

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

.recommendation-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(79, 196, 187, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(79, 196, 187, 0.13), rgba(231, 182, 93, 0.07)),
    rgba(255, 255, 255, 0.055);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.recommendation-card:hover {
  transform: translateY(-2px);
  border-color: rgba(231, 182, 93, 0.58);
  background:
    linear-gradient(135deg, rgba(231, 182, 93, 0.15), rgba(79, 196, 187, 0.1)),
    rgba(255, 255, 255, 0.07);
}

.recommendation-card span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
}

.recommendation-card strong {
  font-size: 1.08rem;
}

.recommendation-card small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.copy-status {
  min-height: 24px;
  color: var(--green);
}

.fortune-layout {
  display: none !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(900px, 100%);
  margin: 26px auto 0;
}

.fortune-layout.active {
  display: grid !important;
}

.fortune-picker {
  width: min(900px, 100%);
}

.fortune-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.fortune-layout .fortune-card {
  display: none;
}

.fortune-layout .fortune-card.active {
  display: block;
  grid-column: 1 / -1;
  justify-self: center;
  width: min(520px, 100%);
}

.fortune-layout .wheel-card.active {
  display: grid;
  width: min(1080px, 100%);
}

.fortune-card {
  min-height: 250px;
}

.wheel-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(430px, 650px) minmax(260px, 1fr);
  align-items: start;
  gap: 20px 34px;
  max-width: 100%;
}

.slot-wrap {
  position: relative;
  display: grid;
  place-items: center;
  grid-row: 1 / span 5;
  min-height: 760px;
  isolation: isolate;
}

.slot-frame-art {
  position: absolute;
  z-index: 3;
  width: min(630px, 100%);
  height: auto;
  pointer-events: none;
  filter:
    drop-shadow(0 20px 34px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 22px rgba(231, 182, 93, 0.18));
}

.slot-window {
  position: relative;
  z-index: 1;
  width: min(430px, 68%);
  height: 550px;
  overflow: hidden;
  border: 1px solid rgba(231, 182, 93, 0.36);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.22)),
    rgba(6, 16, 30, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(248, 244, 234, 0.12),
    inset 0 0 26px rgba(0, 0, 0, 0.34);
}

.slot-window::before,
.slot-window::after {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  height: 76px;
  content: "";
  pointer-events: none;
}

.slot-window::before {
  top: 0;
  background: linear-gradient(180deg, rgba(8, 17, 30, 0.96), transparent);
}

.slot-window::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(8, 17, 30, 0.96), transparent);
}

.slot-reel {
  display: grid;
  gap: 12px;
  padding: 22px;
  transform: translateY(0);
  transition: transform 1600ms cubic-bezier(0.13, 0.82, 0.19, 1);
}

.slot-item {
  display: grid;
  place-items: center;
  min-height: 118px;
  border: 2px solid rgba(248, 244, 234, 0.82);
  border-radius: 7px;
  padding: 12px 14px;
  color: #0d1b2d;
  text-align: center;
  font-size: clamp(1.25rem, 2.35vw, 1.9rem);
  font-weight: 1000;
  line-height: 1.15;
  box-shadow:
    inset 0 0 0 2px rgba(16, 32, 51, 0.1),
    0 10px 24px rgba(0, 0, 0, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68)),
    repeating-linear-gradient(135deg, rgba(79, 196, 187, 0.32) 0 10px, rgba(231, 182, 93, 0.28) 10px 20px);
}

.slot-item:nth-child(3n + 1) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7)),
    repeating-linear-gradient(135deg, rgba(231, 182, 93, 0.38) 0 10px, rgba(232, 125, 109, 0.32) 10px 20px);
}

.slot-item:nth-child(3n + 2) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7)),
    repeating-linear-gradient(135deg, rgba(111, 159, 242, 0.38) 0 10px, rgba(79, 196, 187, 0.32) 10px 20px);
}

.slot-marker {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: min(450px, 72%);
  height: 146px;
  border-top: 3px solid rgba(255, 215, 132, 0.92);
  border-bottom: 3px solid rgba(255, 215, 132, 0.92);
  background: linear-gradient(90deg, rgba(231, 182, 93, 0), rgba(231, 182, 93, 0.13), rgba(231, 182, 93, 0));
  color: rgba(248, 244, 234, 0.78);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.option-limit {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.wheel-input-label {
  display: block;
  margin: 8px 0 -10px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
}

input {
  min-height: 42px;
  margin-top: 6px;
  padding: 0 10px;
}

.range-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 14px;
}

.range-row label {
  color: var(--muted);
  font-size: 0.9rem;
}

.wheel-result {
  display: grid;
  gap: 8px;
  min-height: 96px;
  border: 1px solid rgba(231, 182, 93, 0.38);
  border-radius: 8px;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(231, 182, 93, 0.17), rgba(79, 196, 187, 0.08)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(248, 244, 234, 0.08),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

.wheel-result span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.wheel-result strong {
  color: var(--ink);
  font-size: clamp(1.7rem, 3.1vw, 2.7rem);
  line-height: 1.1;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  width: min(900px, 100%);
  margin: 48px auto 0;
  padding-top: 22px;
  color: rgba(248, 244, 234, 0.58);
  border-top: 1px solid rgba(248, 244, 234, 0.14);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.static-shell {
  width: min(860px, 100%);
  margin: 0 auto;
}

.static-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 46px);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.static-page h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.05;
}

.static-page h2 {
  margin: 30px 0 10px;
  color: var(--gold);
  font-size: 1.24rem;
}

.static-page p,
.static-page li {
  color: var(--muted);
  line-height: 1.85;
}

.static-page ul {
  padding-left: 1.2rem;
}

.static-page .updated {
  color: rgba(248, 244, 234, 0.64);
  font-size: 0.92rem;
}

.static-page a {
  color: #f7d98f;
}

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

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

@media (max-width: 760px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 12px 18px;
  }

  .stage {
    display: block;
    padding: 126px 18px 38px;
  }

  .category-nav {
    justify-content: stretch;
    grid-column: 1;
  }

  .nav-button {
    flex: 1 1 30%;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .feature-grid.compact,
  .zodiac-grid,
  .fortune-layout,
  .fortune-choice-grid,
  .wheel-card {
    grid-template-columns: 1fr;
  }

  .slot-wrap {
    grid-row: auto;
    min-height: 560px;
  }

  .slot-frame-art {
    width: min(470px, 100%);
  }

  .slot-window {
    width: min(320px, 68%);
    height: 410px;
  }

  .slot-marker {
    width: min(336px, 72%);
    height: 132px;
  }

  .feature-grid,
  .quiz-category-cards,
  .quiz-category-grid,
  .recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-actions {
    display: grid;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .tarot-moon-bg {
    right: -170px;
    bottom: -110px;
    width: 410px;
    opacity: 0.24;
  }

  .site-footer {
    margin-top: 34px;
  }
}

@media (max-width: 520px) {
  .feature-grid,
  .quiz-category-cards,
  .quiz-category-grid,
  .recommendation-grid {
    grid-template-columns: 1fr;
  }
}
