:root {
  --bg: #060403;
  --surface: rgba(19, 15, 11, 0.92);
  --panel: rgba(23, 18, 13, 0.94);
  --primary: #120e0a;
  --accent: #c8a96a;
  --accent-strong: #e4c888;
  --text: #f4ebdc;
  --muted: #b59d73;
  --border: rgba(200, 169, 106, 0.24);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  position: relative;
  background:
    radial-gradient(circle at 18% 0%, rgba(212, 175, 55, 0.16), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(255, 244, 211, 0.05), transparent 20%),
    linear-gradient(135deg, #0b0907 0%, #11100e 42%, #171412 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.018) 0%, transparent 34%, rgba(255, 255, 255, 0.012) 100%),
    radial-gradient(circle at 0% 100%, rgba(212, 175, 55, 0.1), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(212, 175, 55, 0.06), transparent 24%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 18px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.18) 70%, rgba(0, 0, 0, 0.32) 100%);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
}

.page-shell {
  min-height: 100vh;
  padding: 24px;
}

.app-stage {
  min-height: calc(100vh - 48px);
  border: 1px solid var(--border);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(20, 16, 12, 0.97), rgba(11, 9, 7, 0.94)),
    radial-gradient(circle at top, rgba(212, 175, 55, 0.08), transparent 38%);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.app-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: inherit;
  opacity: 0.8;
}

.landing-screen,
.experience-screen {
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr 0.45fr;
  align-items: center;
  gap: 28px;
  padding: 56px 72px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 520px;
  position: relative;
  z-index: 2;
}

.hero-copy__eyebrow,
.eyebrow,
.panel-kicker {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(4.2rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.24);
}

.hero-title {
  margin: -4px 0 0;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.subtitle {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 430px;
}

.primary-btn,
.secondary-btn {
  border-radius: 999px;
  padding: 14px 24px;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.primary-btn {
  background: linear-gradient(135deg, #3e2f1a 0%, #17120d 100%);
  color: #f6ebcb;
  border: 1px solid rgba(212, 175, 55, 0.34);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.secondary-btn {
  background: rgba(212, 175, 55, 0.08);
  color: #f7ebd3;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.deck-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}

.deck-ambient {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.02) 62%, transparent 74%);
  filter: blur(16px);
}

.deck-frame {
  position: absolute;
  width: 320px;
  height: 360px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 30px;
  transform: rotate(-1deg);
}

.deck-card {
  position: absolute;
  width: 220px;
  height: 300px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(31, 25, 18, 0.96), rgba(11, 10, 8, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.24);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 244, 211, 0.06);
  transform-style: preserve-3d;
}

.deck-card-a {
  transform: rotate(-7deg) translateX(-34px) translateY(16px);
}

.deck-card-b {
  transform: rotate(8deg) translateX(20px) translateY(-10px);
}

.deck-card-c {
  transform: rotate(-2deg) translateY(6px);
}

.deck-card-d {
  transform: rotate(13deg) translateX(70px) translateY(24px) scale(0.94);
  opacity: 0.9;
}

.deck-card-e {
  transform: rotate(-12deg) translateX(-86px) translateY(30px) scale(0.94);
  opacity: 0.9;
}

.hero-atmosphere {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 320px;
  opacity: 0.72;
  padding: 8px 0;
}

.hero-atmosphere__label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-atmosphere__line {
  width: 1px;
  height: 180px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.24), rgba(212, 175, 55, 0));
}

.hero-atmosphere__ornament {
  width: 92px;
  height: 92px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 50%;
  position: relative;
}

.hero-atmosphere__ornament::before,
.hero-atmosphere__ornament::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 50%;
}

.hero-atmosphere__ornament::after {
  inset: 36px;
  border-color: rgba(212, 175, 55, 0.08);
}

.hero-atmosphere__ornament--secondary {
  transform: rotate(45deg);
  opacity: 0.72;
}

.homepage-intro {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.homepage-intro__card {
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 24px;
  padding: 20px 22px;
  background: rgba(12, 10, 8, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 244, 211, 0.04);
  max-width: 540px;
}

.homepage-intro__label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.homepage-intro__quote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.reading-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.reading-options__heading {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.reading-option {
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(12, 10, 8, 0.64);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 106px;
}

.reading-option__title {
  font-family: 'Cormorant Garamond', serif;
  color: var(--accent-strong);
  font-size: 1.04rem;
}

.reading-option__meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.experience-screen {
  grid-template-columns: 1fr minmax(300px, 350px);
  gap: 36px;
  align-items: start;
  min-height: 100%;
}

.draw-area {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: auto;
  padding: 10px 0 8px;
}

.draw-stage {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.deck-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  overflow: visible;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  align-items: start;
}

.draw-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: all 240ms ease;
}

.draw-card-wrapper:hover .draw-card {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 40px 80px rgba(200, 169, 106, 0.24), 0 0 0 1px rgba(212, 175, 55, 0.24), inset 0 1px 0 rgba(255, 244, 211, 0.06);
  filter: brightness(1.08);
}

.draw-card-wrapper:hover {
  z-index: 100;
}

.draw-card-wrapper.is-selected .draw-card {
  border: 2px solid rgba(228, 200, 136, 0.8);
  box-shadow: 0 36px 72px rgba(212, 175, 55, 0.28), 0 0 24px rgba(212, 175, 55, 0.32), inset 0 1px 0 rgba(255, 244, 211, 0.08);
}

.draw-card {
  position: relative;
  width: 220px;
  height: 320px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(33, 27, 20, 0.98), rgba(12, 10, 8, 0.96));
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.12), inset 0 1px 0 rgba(255, 244, 211, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transform-style: preserve-3d;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 240ms ease, border-color 240ms ease, filter 240ms ease;
  cursor: pointer;
}

.draw-card__face,
.draw-card__back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.draw-card__face {
  background: linear-gradient(145deg, rgba(29, 24, 18, 0.99), rgba(12, 10, 8, 0.96));
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: rotateY(180deg);
}

.draw-card__back {
  background: url('../assets/cards/back.png') center/cover no-repeat;
  background-color: #050403;
  border-radius: 28px;
  transform: rotateY(0deg);
}

.draw-card__image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 28px;
}

.draw-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(200, 169, 106, 0.16);
  color: var(--accent-strong);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.7rem;
  color: var(--accent-strong);
  margin-bottom: 8px;
}

.card-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.draw-card__position-title {
  display: none;
}

.draw-card__position-label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-strong);
  padding: 6px 12px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  width: 100%;
  text-align: center;
  font-weight: 500;
}

.detail-panel {
  background: linear-gradient(135deg, rgba(23, 18, 13, 0.96), rgba(12, 10, 8, 0.92));
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  position: sticky;
  top: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 244, 211, 0.04), 0 20px 40px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(212, 175, 55, 0.08);
}

.panel-header h2 {
  font-size: 2rem;
  color: var(--accent-strong);
  margin-top: 8px;
}

.panel-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(200, 169, 106, 0.12);
  color: var(--accent-strong);
  font-size: 0.88rem;
}

.panel-section h3 {
  font-size: 1.05rem;
  color: var(--accent-strong);
  margin-bottom: 6px;
}

.panel-section h4 {
  font-size: 0.95rem;
  color: var(--accent-strong);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.panel-section p {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
}

.panel-position {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.72rem;
}

.panel-bullets {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}

.panel-bullets li {
  line-height: 1.6;
}

.panel-empty {
  color: var(--muted);
}

.panel-section--nested {
  padding-top: 6px;
}

.panel-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .landing-screen,
  .experience-screen {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .experience-screen {
    gap: 24px;
  }

  .draw-area {
    justify-content: center;
  }

  .draw-stage {
    width: 100%;
    height: auto;
    justify-content: center;
    padding: 18px 0 0;
  }

  .deck-container {
    width: 100%;
    max-width: 650px;
    height: 420px;
    margin-left: 0;
    transform: scale(0.92);
  }

  .draw-card {
    width: 200px;
    height: 290px;
    
    
  }

  .detail-panel {
    min-height: auto;
    max-height: none;
    position: static;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 12px;
  }

  .app-stage {
    border-radius: 24px;
  }

  .landing-screen,
  .experience-screen {
    padding: 24px 18px;
  }

  .deck-card {
    width: 170px;
    height: 240px;
  }

  .draw-stage {
    height: auto;
  }

  .deck-container {
    width: 100%;
    height: 380px;
    transform: scale(0.82);
  }

  .draw-card {
    width: 170px;
    height: 250px;
    margin-left: -85px;
    margin-top: -125px;
  }

  .panel-actions {
    flex-direction: column;
  }
}




