:root {
  --color-deep: #12081f;
  --color-mid: #201033;
  --color-card: #2d1742;
  --color-gold: #d8b76b;
  --color-gold-soft: #f0d28a;
  --color-lilac: #c7a6e6;
  --color-wine: #5a233b;
  --color-text: #f7ebcf;
  --color-muted: #bca8c7;
  --shadow-strong: 0 25px 60px rgba(0, 0, 0, 0.35);
  --font-display: 'Cinzel Decorative', 'Cormorant Garamond', serif;
  --font-heading: 'Cinzel', 'Cormorant Garamond', serif;
  --font-body: 'Raleway', 'Inter', sans-serif;
}

body {
  background: radial-gradient(circle at top, #2a1640 0%, var(--color-deep) 45%, #080411 100%);
  color: var(--color-text);
  font-family: var(--font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(216, 183, 107, 0.16) 0 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 85%);
  opacity: 0.35;
}

.screen {
  background: transparent;
}

#landing-screen {
  background: radial-gradient(circle at 50% 20%, #37214f 0%, #180b2a 45%, #07030e 100%);
}

.landing-content {
  max-width: 700px;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(216, 183, 107, 0.18);
  border-radius: 30px;
  background: rgba(12, 8, 21, 0.56);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.landing-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(216, 183, 107, 0.3);
}

.landing-subtitle,
.landing-description,
.section-copy,
.deck-info p,
.meaning-title,
.selected-card-number,
.dual-label {
  font-family: var(--font-body);
}

.landing-subtitle {
  color: var(--color-gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.landing-divider {
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  height: 2px;
}

.landing-cta {
  border: 1px solid rgba(216, 183, 107, 0.35);
  background: linear-gradient(135deg, rgba(216, 183, 107, 0.22), rgba(216, 183, 107, 0.08));
  color: var(--color-text);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 24px rgba(216, 183, 107, 0.18);
}

.landing-cta:hover {
  background: linear-gradient(135deg, rgba(216, 183, 107, 0.34), rgba(216, 183, 107, 0.16));
}

#deck-selection-screen {
  background: radial-gradient(circle at top, rgba(80, 40, 103, 0.24), transparent 40%), linear-gradient(180deg, rgba(14, 9, 24, 0.9), rgba(7, 4, 13, 0.95));
}

.home-content {
  max-width: 840px;
  width: min(92vw, 860px);
  padding: 2rem 1.2rem 3rem;
  border: 1px solid rgba(216, 183, 107, 0.16);
  border-radius: 30px;
  background: rgba(12, 8, 21, 0.68);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.logo h1,
.section-title,
.selected-card-name,
.meaning-title,
.meaning-column.dense-card .meaning-title {
  font-family: var(--font-heading);
}

.logo h1 {
  color: var(--color-gold-soft);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 1.1rem;
}

.section-eyebrow {
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.section-title {
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);
  color: var(--color-gold-soft);
  margin-bottom: 0.35rem;
}

.section-copy {
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}

.decks-grid {
  display: grid;
  gap: 1rem;
}

.deck-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(42, 26, 61, 0.95), rgba(24, 14, 39, 0.95));
  border: 1px solid rgba(216, 183, 107, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.deck-card:hover,
.deck-card.active {
  transform: translateY(-3px);
  border-color: rgba(216, 183, 107, 0.42);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(216, 183, 107, 0.1);
}

.deck-icon {
  width: 86px;
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(216, 183, 107, 0.24);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.deck-info h3 {
  font-family: var(--font-heading);
  color: var(--color-gold-soft);
  margin-bottom: 0.35rem;
}

.deck-info p {
  color: var(--color-muted);
  line-height: 1.55;
}

#deck-screen {
  background: radial-gradient(circle at top, rgba(80, 40, 103, 0.24), transparent 42%), linear-gradient(180deg, rgba(14, 9, 24, 0.94), rgba(7, 4, 13, 0.98));
}

.btn-back,
.btn-flip,
.btn-nav {
  border: 1px solid rgba(216, 183, 107, 0.24);
  background: rgba(13, 9, 24, 0.8);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.btn-back:hover,
.btn-flip:hover,
.btn-nav:hover {
  border-color: rgba(216, 183, 107, 0.42);
  box-shadow: 0 0 24px rgba(216, 183, 107, 0.18);
}

.selected-card-info {
  background: rgba(18, 12, 29, 0.78);
  border: 1px solid rgba(216, 183, 107, 0.22);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.meaning-column,
.meaning-column.dense-card {
  background: linear-gradient(135deg, rgba(31, 20, 47, 0.95), rgba(18, 12, 29, 0.95));
  border: 1px solid rgba(216, 183, 107, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.meaning-list li.keyword-tag,
.meaning-list li {
  background: rgba(216, 183, 107, 0.1);
  border: 1px solid rgba(216, 183, 107, 0.16);
  color: var(--color-lilac);
}

.meaning-column.positive .meaning-title,
.meaning-column.negative .meaning-title {
  color: var(--color-gold-soft);
}

.meaning-column.positive .meaning-list li {
  background: rgba(173, 95, 141, 0.12);
  border-color: rgba(173, 95, 141, 0.25);
  color: #f7c5dd;
}

.meaning-column.negative .meaning-list li {
  background: rgba(83, 43, 64, 0.2);
  border-color: rgba(140, 86, 107, 0.28);
  color: #f0c2d2;
}

.badge-circle {
  background: rgba(216, 183, 107, 0.08);
  border: 1px solid rgba(216, 183, 107, 0.24);
}

.badge-circle:hover {
  background: rgba(216, 183, 107, 0.16);
}

.fan-card-front,
.fan-card-back {
  border-radius: 14px;
  border-color: rgba(216, 183, 107, 0.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.fan-card.is-active .fan-card-front {
  box-shadow: 0 0 26px rgba(216, 183, 107, 0.28), 0 0 64px rgba(216, 183, 107, 0.16);
}

.float-card-face {
  border-radius: 12px;
  border-color: rgba(216, 183, 107, 0.24);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.24);
}

@media (min-width: 768px) {
  .home-content {
    padding: 2.5rem 2.4rem 3rem;
  }

  .decks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wheel-outer-wrapper {
    height: 44vh;
    margin-top: 5rem;
  }

  .meaning-panel {
    max-width: 760px;
  }
}
