/* Celestial Garden: original painted cards and a quiet, legible reading surface. */
:root {
  --champagne: #e6cbaa;
  --rose: #edc8d6;
}
.tarot-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: contain;
  border-radius: 13px;
  box-shadow: 0 22px 65px #0007;
}
.tarot-tool {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(22px, 4vw, 48px);
  background:
    radial-gradient(ellipse at 5% 0%, #48314b70, transparent 60%), #1d1828;
}
.drawn-card {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  max-width: 320px;
  margin: auto;
  position: relative;
  text-align: center;
  transform: none !important;
  justify-content: flex-start;
}
.drawn-card > .eyebrow {
  display: block;
  color: var(--champagne);
  margin-bottom: 15px;
}
.drawn-card > h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 35px);
  color: var(--champagne);
  margin: 22px 0 8px;
}
.drawn-card > span:not(.eyebrow) {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #c2adc8;
}
.drawn-card .reading-actions {
  justify-content: center;
  margin: 8px 0 0;
}
.drawn-card .reading-actions .button {
  margin: 0;
}
.tarot-tool > .card-back {
  width: min(100%, 260px);
  height: auto;
  aspect-ratio: 2/3;
  background: url("/tarot/back.webp") center/cover;
  border: 0;
  border-radius: 12px;
  color: transparent;
  box-shadow: 0 20px 50px #0006;
}
.tarot-tool > .card-back > * {
  visibility: hidden;
}
.tarot-imagery {
  font-size: 0.94rem !important;
  color: #d0c2d6 !important;
  line-height: 1.7;
}
.tarot-situations {
  background: #ffffff05;
  border-color: #76608066 !important;
  font-size: 0.94rem;
  line-height: 1.65;
}
.reading-actions,
.channel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.reading-actions .button,
.channel-actions a {
  min-height: 44px;
}
.channel-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #927c9c;
  border-radius: 999px;
  padding: 10px 18px;
  color: #f2e6f3;
  text-decoration: none;
  font-size: 0.9rem;
}
.auto-reading-choice {
  padding: 16px 20px;
  border: 1px solid #6d566b;
  background: #241c2c;
  border-radius: 16px;
  max-width: 900px;
  margin: 20px auto;
  color: #e0d3e5;
  font-size: 0.85rem;
  line-height: 1.55;
}
.auto-reading-choice label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  font-weight: 400;
}
.auto-reading-choice input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 3px 0;
  accent-color: #edc8d6;
}
.auto-reading-choice a {
  display: inline-block;
  margin: 7px 0 0 32px;
  color: #edc8d6;
}
.ai-reading {
  background: linear-gradient(140deg, #3b263c70, #211c30);
  border: 1px solid #a68b7966;
  border-radius: 18px;
  padding: clamp(22px, 4vw, 38px);
  margin: 24px 0;
  line-height: 1.85;
}
.ai-reading .eyebrow {
  color: #e6cbaa;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}
.ai-reading h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 35px);
  line-height: 1.25;
  margin: 18px 0;
  color: #fff0e2;
}
.ai-reading h4 {
  color: #edc8d6;
  font-size: 0.92rem;
  margin: 22px 0 8px;
}
.ai-reading blockquote {
  border-left: 2px solid #c8a779;
  padding-left: 18px;
  color: #f2e0cd;
  margin: 24px 0 0;
}
.reading-loading {
  border: 1px solid #776282;
  border-radius: 16px;
  padding: 24px;
  color: #e6cbaa;
  display: flex;
  gap: 14px;
  align-items: center;
  line-height: 1.6;
}
.reading-loading:before {
  content: "✧";
  font-size: 28px;
  animation: reading-glow 1.8s ease-in-out infinite alternate;
}
@keyframes reading-glow {
  to {
    opacity: 0.3;
  }
}
.tarot-teaser {
  overflow: hidden;
  position: relative;
  min-height: 340px;
  gap: 24px !important;
  padding: 28px !important;
  background: linear-gradient(110deg, #35243e, #1b1929) !important;
}
.tarot-teaser-art {
  width: 145px;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: contain;
  flex: 0 0 145px;
  border-radius: 8px;
  transform: rotate(-7deg);
  box-shadow: 0 15px 30px #0007;
}
.tarot-teaser h2 {
  font-weight: 500;
  font-size: clamp(22px, 2.5vw, 32px) !important;
  color: #f7e6d0 !important;
}
.tarot-teaser p {
  color: #dbcfe0 !important;
}
.journal-panel {
  margin: 24px 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #755e7b;
  border-radius: 18px;
  background: linear-gradient(135deg, #312336, #191724);
}
.journal-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3.4vw, 36px);
  color: #f4e3d2;
  font-weight: 400;
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin: 20px 0;
}
.journal-entry {
  border: 1px solid #65536e;
  border-radius: 14px;
  padding: 20px;
  min-width: 0;
  background: #ffffff04;
  overflow-wrap: anywhere;
}
.journal-entry img {
  width: 86px;
  height: 129px;
  object-fit: cover;
  border-radius: 6px;
  float: right;
  margin: 0 0 12px 16px;
}
.journal-entry h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  color: #ecd7c1;
}
.journal-entry time {
  font-size: 0.72rem;
  color: #c5b6cd;
}
.journal-entry button {
  min-height: 44px;
}
.journal-panel textarea,
.guide-form textarea {
  min-height: 110px;
  box-sizing: border-box;
  width: 100%;
  resize: vertical;
}
.journal-panel label.check {
  align-items: flex-start;
  font-size: 0.92rem;
}
.guide-form {
  display: grid;
  gap: 14px;
}
.guide-form label {
  margin: 0;
}
.guide-form textarea {
  font-size: 16px;
}
.login-form input {
  font-size: 18px;
}
.login-form input[autocomplete="one-time-code"] {
  letter-spacing: 0.3em;
  text-align: center;
  font-size: 26px;
}
.share-sheet {
  max-width: 520px;
  margin: auto;
}
.share-preview img {
  max-height: 55vh;
  width: auto;
  max-width: 100%;
  margin: auto;
  display: block;
}
.share-hint {
  font-size: 0.78rem;
  line-height: 1.55;
}
.share-sheet-actions {
  gap: 10px;
}
.share-sheet-actions button {
  min-height: 46px;
  font-size: 0.9rem;
}
.ai-section {
  display: block !important;
}
@media (max-width: 680px) {
  .tarot-tool {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px 20px;
  }
  .tarot-tool > div {
    width: 100%;
    min-width: 0;
  }
  .drawn-card {
    width: min(82%, 290px) !important;
  }
  .tarot-tool .drawn-card h2 {
    font-size: 28px;
  }
  .tarot-tool h2 {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.3;
  }
  .tarot-imagery {
    font-size: 14px !important;
  }
  .tarot-situations {
    padding: 20px 20px 20px 34px !important;
  }
  .tarot-situations li {
    margin-bottom: 12px;
  }
  .reading-actions .button {
    flex: 1 1 155px;
    white-space: normal;
    font-size: 14px;
    padding: 13px 18px;
  }
  .tarot-teaser {
    min-height: 280px;
    padding: 24px 20px !important;
    gap: 20px !important;
  }
  .tarot-teaser-art {
    width: 112px;
    flex-basis: 112px;
  }
  .auto-reading-choice {
    padding: 14px;
    font-size: 12px;
    margin: 16px 0;
  }
  .auto-reading-choice a {
    margin-left: 32px;
  }
  .ai-reading {
    padding: 22px 20px;
    line-height: 1.8;
    font-size: 15px;
  }
  .ai-reading h3 {
    font-size: 27px;
  }
  .channel-actions a {
    font-size: 13px;
    flex: 1;
    padding: 10px 12px;
  }
  .share-sheet-actions {
    flex-wrap: wrap;
  }
  .site-footer .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reading-loading:before {
    animation: none;
  }
}

.share-sheet h2 {
  font-size: clamp(22px, 5.5vw, 28px);
  line-height: 1.35;
  text-wrap: balance;
}
