.tarot-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(92, 63, 140, .2), transparent 28%),
    radial-gradient(circle at 85% 70%, rgba(215, 179, 106, .08), transparent 26%),
    #070611;
}

.tarot-aurora {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
}

.tarot-aurora-one { width: 360px; height: 360px; left: -140px; top: 20%; background: #62458f; }
.tarot-aurora-two { width: 300px; height: 300px; right: -100px; bottom: 8%; background: #6e522e; }

.ritual-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1320px, calc(100% - 40px));
  height: 88px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ritual-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a89db2;
  font-size: 12px;
  transition: color .2s ease;
}

.ritual-back:hover { color: #f0d79b; }

.ritual-main {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0 110px;
}

.ritual-intro { max-width: 930px; margin-bottom: 52px; }
.ritual-intro h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.035em;
}
.ritual-intro h1 em { display: block; color: #f0d79b; font-weight: 500; }
.ritual-intro > p:last-child { max-width: 720px; margin-top: 23px; color: #aaa0b8; line-height: 1.8; }

.ritual-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(240,215,155,.15);
  border-radius: 28px;
  background: rgba(13, 10, 23, .82);
  box-shadow: 0 35px 100px rgba(0,0,0,.35);
  backdrop-filter: blur(24px);
}

.ritual-sidebar {
  display: flex;
  flex-direction: column;
  padding: 34px 28px;
  border-right: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.015);
}

.sidebar-label { color: #70677a; font-family: "Cinzel", serif; font-size: 9px; letter-spacing: .25em; }
.ritual-progress { list-style: none; margin-top: 34px; }
.ritual-progress li {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  min-height: 98px;
  color: #6d6574;
}
.ritual-progress li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 27px;
  bottom: 6px;
  width: 1px;
  background: rgba(255,255,255,.07);
}
.ritual-progress li:last-child::before { display: none; }
.ritual-progress li > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  font-family: "Cinzel", serif;
  font-size: 9px;
}
.ritual-progress strong { display: block; margin: 4px 0 5px; color: #8d8496; font-family: "Cinzel", serif; font-size: 13px; }
.ritual-progress small { font-size: 11px; }
.ritual-progress li.active > span,
.ritual-progress li.complete > span { border-color: rgba(240,215,155,.5); color: #f0d79b; box-shadow: 0 0 20px rgba(215,179,106,.1); }
.ritual-progress li.active strong,
.ritual-progress li.complete strong { color: #f4ecdd; }
.ritual-progress li.complete::before { background: linear-gradient(#d7b36a, rgba(215,179,106,.1)); }

.ritual-note {
  display: flex;
  gap: 11px;
  margin-top: auto;
  padding: 17px;
  border: 1px solid rgba(240,215,155,.09);
  border-radius: 14px;
  color: #776e80;
  font-size: 10px;
  line-height: 1.55;
}
.ritual-note span { color: #d7b36a; }

.ritual-content { min-width: 0; padding: clamp(30px, 5vw, 64px); }
.ritual-step { animation: ritualIn .55s ease both; }
@keyframes ritualIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.step-heading { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; margin-bottom: 34px; }
.step-heading > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(240,215,155,.25);
  border-radius: 50%;
  color: #d7b36a;
  font-family: "Cinzel", serif;
  font-size: 11px;
}
.step-heading h2, .result-heading h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
}
.step-heading .eyebrow { margin-bottom: 10px; }
.selection-copy { margin-top: 10px; color: #92889d; line-height: 1.6; }

.intent-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.intent-option {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  color: #f7f0df;
  text-align: left;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.intent-option:hover { transform: translateY(-5px); border-color: rgba(240,215,155,.24); }
.intent-option.selected {
  border-color: rgba(240,215,155,.55);
  background: radial-gradient(circle at 50% 0%, rgba(113,84,167,.25), transparent 55%), rgba(240,215,155,.035);
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
}
.intent-option > span { margin-bottom: auto; color: #d7b36a; font-size: 28px; }
.intent-option strong { margin-bottom: 7px; font-family: "Cinzel", serif; font-size: 16px; }
.intent-option small { color: #837a8c; font-size: 10px; line-height: 1.45; }

.name-field { display: block; max-width: 450px; margin-top: 30px; }
.name-field > span { display: block; margin-bottom: 10px; color: #b3a8bd; font-size: 12px; }
.name-field small { color: #70677a; }
.name-field input {
  width: 100%;
  height: 54px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  outline: 0;
  background: rgba(255,255,255,.025);
  color: #f7f0df;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.name-field input:focus { border-color: rgba(240,215,155,.38); box-shadow: 0 0 0 4px rgba(215,179,106,.05); }
.ritual-primary { margin-top: 24px; }
.primary-button:disabled { opacity: .36; cursor: not-allowed; transform: none; box-shadow: none; }

.selected-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.selected-slot {
  position: relative;
  min-height: 84px;
  padding: 15px 16px 15px 48px;
  border: 1px dashed rgba(255,255,255,.1);
  border-radius: 14px;
  transition: border-color .25s ease, background .25s ease;
}
.selected-slot > span { position: absolute; left: 15px; top: 16px; color: #665e70; font-family: "Cinzel", serif; font-size: 9px; }
.selected-slot strong { display: block; margin-bottom: 6px; font-family: "Cinzel", serif; font-size: 12px; }
.selected-slot small { color: #716879; font-size: 10px; }
.selected-slot.filled { border-style: solid; border-color: rgba(240,215,155,.32); background: rgba(240,215,155,.035); }
.selected-slot.filled small { color: #d7b36a; }

.deck-stage {
  position: relative;
  min-height: 380px;
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  gap: 13px;
  align-items: center;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 45%, rgba(113,84,167,.13), transparent 45%),
    rgba(5,4,10,.35);
}
.deck-stage::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(240,215,155,.06);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.deck-card {
  position: relative;
  z-index: 2;
  aspect-ratio: .66;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  perspective: 900px;
  transition: transform .25s ease, opacity .25s ease;
}
.deck-card:hover { transform: translateY(-9px) rotate(-1deg); }
.deck-card.selected { transform: translateY(-12px); }
.deck-card.selected .deck-card-inner { box-shadow: 0 0 0 2px #d7b36a, 0 18px 35px rgba(0,0,0,.36); }
.deck-card:disabled:not(.selected) { opacity: .35; cursor: not-allowed; }
.deck-card-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(240,215,155,.32);
  border-radius: 11px;
  background:
    radial-gradient(circle at 50% 43%, rgba(113,84,167,.25), transparent 32%),
    linear-gradient(145deg, #1a1228, #0a0810);
  box-shadow: 0 13px 25px rgba(0,0,0,.28), inset 0 0 22px rgba(215,179,106,.04);
}
.deck-card-inner::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(240,215,155,.14); border-radius: 7px; }
.deck-card-inner::after {
  content: "✦\A ☾\A ✦";
  white-space: pre;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #d7b36a;
  font-family: "Cinzel", serif;
  font-size: clamp(11px, 1.3vw, 18px);
  line-height: 1.65;
  text-shadow: 0 0 18px rgba(215,179,106,.2);
}
.deck-card.selected .deck-card-inner::after { content: "SEÇİLDİ\A ✦"; font-size: 10px; letter-spacing: .12em; }
.deck-stage.shuffling .deck-card { animation: shuffleCard .65s ease-in-out both; animation-delay: calc(var(--i) * 24ms); }
@keyframes shuffleCard { 0% { transform: translate(0,0) rotate(0); } 45% { transform: translate(calc((var(--i) - 5) * -3px), -24px) rotate(calc((var(--i) - 5) * 2deg)); } 100% { transform: translate(0,0) rotate(0); } }

.selection-actions, .result-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 24px; }
.secondary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid rgba(240,215,155,.17);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  color: #d7cfdb;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.secondary-button:hover { border-color: rgba(240,215,155,.38); background: rgba(240,215,155,.04); }

.result-heading { max-width: 800px; margin-bottom: 36px; }
.result-heading > p:last-child { margin-top: 14px; color: #a99fb3; line-height: 1.7; }
.reading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reading-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(240,215,155,.14);
  border-radius: 20px;
  background: rgba(255,255,255,.018);
  opacity: 0;
  transform: translateY(24px);
  animation: readingIn .7s ease forwards;
  animation-delay: var(--delay);
}
@keyframes readingIn { to { opacity: 1; transform: translateY(0); } }
.reading-card-visual {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, rgba(113,84,167,.25), transparent 34%), linear-gradient(145deg, #171022, #09070e);
}
.reading-card-visual::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(240,215,155,.18); border-radius: 13px; }
.reading-card-visual.reversed .arcana-symbol { transform: rotate(180deg); }
.arcana-number { position: absolute; top: 27px; color: #8e7f69; font-family: "Cinzel", serif; font-size: 10px; letter-spacing: .15em; }
.arcana-symbol { position: relative; z-index: 2; display: grid; place-items: center; width: 112px; height: 112px; border: 1px solid rgba(240,215,155,.22); border-radius: 50%; color: #f0d79b; font-size: 58px; box-shadow: 0 0 45px rgba(113,84,167,.18); transition: transform .5s ease; }
.arcana-name { position: absolute; bottom: 29px; font-family: "Cinzel", serif; font-size: 16px; letter-spacing: .08em; }
.reading-copy { padding: 23px; }
.reading-position { color: #d7b36a; font-family: "Cinzel", serif; font-size: 9px; letter-spacing: .22em; }
.reading-copy h3 { margin: 10px 0 12px; font-family: "Cinzel", serif; font-size: 21px; }
.reading-copy p { color: #9d93a7; font-size: 13px; line-height: 1.75; }
.reading-keywords { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.reading-keywords span { padding: 7px 9px; border: 1px solid rgba(255,255,255,.07); border-radius: 999px; color: #83798d; font-size: 9px; }

.kamora-message {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 25px;
  padding: 28px;
  border: 1px solid rgba(240,215,155,.17);
  border-radius: 20px;
  background: radial-gradient(circle at 0 50%, rgba(113,84,167,.18), transparent 38%), rgba(240,215,155,.025);
}
.message-mark { display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid rgba(240,215,155,.2); border-radius: 50%; color: #f0d79b; font-size: 38px; }
.kamora-message .eyebrow { margin-bottom: 8px; }
.kamora-message h3 { margin-bottom: 9px; font-family: "Cinzel", serif; font-size: 22px; }
.kamora-message p:last-child { color: #a49aaa; line-height: 1.75; }

@media (max-width: 1100px) {
  .ritual-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .intent-grid { grid-template-columns: repeat(3, 1fr); }
  .deck-stage { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 820px) {
  .ritual-header { height: 74px; }
  .ritual-main { padding-top: 46px; }
  .ritual-shell { grid-template-columns: 1fr; }
  .ritual-sidebar { padding: 20px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .sidebar-label, .ritual-note { display: none; }
  .ritual-progress { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 0; }
  .ritual-progress li { min-height: auto; grid-template-columns: 30px 1fr; }
  .ritual-progress li::before { display: none; }
  .ritual-progress small { display: none; }
  .ritual-content { padding: 30px 22px; }
  .reading-grid { grid-template-columns: 1fr; }
  .reading-card { display: grid; grid-template-columns: 220px 1fr; }
  .reading-card-visual { min-height: 290px; }
}

@media (max-width: 600px) {
  .ritual-header, .ritual-main { width: calc(100% - 28px); }
  .ritual-back { font-size: 0; }
  .ritual-back span { font-size: 20px; }
  .ritual-intro h1 { font-size: 41px; }
  .ritual-intro { margin-bottom: 34px; }
  .ritual-shell { border-radius: 20px; }
  .ritual-progress li { display: flex; align-items: center; }
  .ritual-progress li div { display: none; }
  .ritual-progress { justify-items: center; }
  .step-heading { grid-template-columns: 1fr; }
  .step-heading > span { display: none; }
  .intent-grid { grid-template-columns: repeat(2, 1fr); }
  .intent-option { min-height: 155px; }
  .selected-slots { grid-template-columns: 1fr; }
  .selected-slot { min-height: 62px; }
  .deck-stage { min-height: 450px; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; }
  .selection-actions, .result-actions { align-items: stretch; flex-direction: column; }
  .selection-actions > *, .result-actions > * { width: 100%; }
  .reading-card { display: block; }
  .kamora-message { grid-template-columns: 1fr; text-align: center; }
  .message-mark { margin: 0 auto; }
}
