/* 2026.8.9 app/static/css/tarot_one_card.css ChatGPT */

:root {
  --tarot-night: #111426;
  --tarot-night-soft: #1c2038;
  --tarot-gold: #d5b85a;
  --tarot-gold-soft: #f1df9c;
  --tarot-ivory: #fffaf0;
}

.tarot-body {
  margin: 0;
  min-height: 100vh;
  color: var(--tarot-ivory);
  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(213, 184, 90, 0.18),
      transparent 28rem
    ),
    radial-gradient(
      circle at 15% 40%,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 2px
    ),
    linear-gradient(180deg, #0c0f1e, var(--tarot-night-soft));
  background-size:
    auto,
    57px 57px,
    auto;
}

.tarot-main {
  width: min(92%, 820px);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 78px) 0 60px;
}

.tarot-panel {
  padding: clamp(27px, 6vw, 58px);
  text-align: center;
  background: rgba(17, 20, 38, 0.91);
  border: 1px solid rgba(213, 184, 90, 0.72);
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.tarot-heading h1 {
  margin: 8px 0 20px;
  color: var(--tarot-gold-soft);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 6vw, 3.3rem);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.tarot-heading > p:last-child {
  color: rgba(255, 250, 240, 0.8);
  line-height: 2;
}

.tarot-kicker {
  color: var(--tarot-gold);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
}

.tarot-alert {
  margin: 26px auto;
  padding: 15px 18px;
  color: #ffe4dc;
  background: rgba(156, 45, 36, 0.35);
  border: 1px solid rgba(231, 137, 123, 0.75);
  border-radius: 11px;
  line-height: 1.7;
}

.tarot-status,
.tarot-result-status {
  margin: 28px auto;
  padding: 13px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 18px;
  color: rgba(255, 250, 240, 0.78);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(213, 184, 90, 0.28);
  border-radius: 999px;
}

.tarot-status strong,
.tarot-result-status strong,
.tarot-user-kind {
  color: var(--tarot-gold-soft);
}

.tarot-card-stage,
.tarot-result-card-wrap {
  margin: 30px auto;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tarot-card-back,
.tarot-result-card {
  width: min(210px, 56vw);
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow:
    0 0 0 2px rgba(213, 184, 90, 0.7),
    0 18px 38px rgba(0, 0, 0, 0.45);
}

.tarot-card-back {
  animation: tarot-float 3.2s ease-in-out infinite;
}

.tarot-result-card {
  animation: tarot-reveal 0.75s ease-out both;
}

.tarot-result-card.is-reversed {
  transform: rotate(180deg);
  animation: tarot-reveal-reversed 0.75s ease-out both;
}

.tarot-draw-button {
  width: min(100%, 480px);
  min-height: 56px;
  padding: 12px 22px;
  color: #151525;
  background: linear-gradient(110deg, #bd9238, #f1dd8a, #c39a3f);
  border: 0;
  border-radius: 11px;
  box-shadow: 0 10px 30px rgba(213, 184, 90, 0.2);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.tarot-draw-button:disabled {
  color: rgba(255, 255, 255, 0.52);
  background: #44475b;
  box-shadow: none;
  cursor: not-allowed;
}

.tarot-link-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.tarot-member-invite,
.tarot-gentle-message {
  margin: 30px auto 0;
  padding: 20px;
  color: rgba(255, 250, 240, 0.84);
  background: rgba(213, 184, 90, 0.08);
  border: 1px solid rgba(213, 184, 90, 0.3);
  border-radius: 12px;
  line-height: 1.9;
}

.tarot-member-invite strong,
.tarot-member-invite a {
  display: block;
}

.tarot-member-invite a,
.tarot-secondary-link {
  margin-top: 8px;
  color: var(--tarot-gold-soft);
  text-underline-offset: 4px;
}

.tarot-caution {
  margin: 30px auto 0;
  color: rgba(255, 250, 240, 0.56);
  font-size: 0.83rem;
  line-height: 1.8;
}

.tarot-card-name h2 {
  margin: 10px 0 3px;
  color: var(--tarot-gold-soft);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 500;
}

.tarot-card-name p {
  margin: 0 0 10px;
  color: rgba(255, 250, 240, 0.65);
  letter-spacing: 0.08em;
}

.tarot-card-name span {
  padding: 5px 12px;
  display: inline-block;
  color: #191a28;
  background: var(--tarot-gold-soft);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.tarot-result-actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

@keyframes tarot-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes tarot-reveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tarot-reveal-reversed {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.92) rotate(180deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(180deg);
  }
}

@media (max-width: 600px) {
  .tarot-main {
    width: 94%;
    padding-top: 28px;
  }

  .tarot-panel {
    padding: 28px 18px;
    border-radius: 16px;
  }

  .tarot-card-stage,
  .tarot-result-card-wrap {
    min-height: 280px;
  }

  .tarot-status,
  .tarot-result-status {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tarot-card-back,
  .tarot-result-card,
  .tarot-result-card.is-reversed {
    animation: none;
  }
}

/* tarot-one-card.css の末尾へ追加 */
.tarot-draw-form {
  width: min(100%, 620px);
  margin: 0 auto;
}
.tarot-draw-form label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  color: #f1dd8a;
  text-align: left;
}
.tarot-draw-form label span {
  color: rgba(255, 250, 240, 0.58);
  font-size: 0.82rem;
}
.tarot-draw-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 14px 16px;
  resize: vertical;
  color: #fffaf0;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(213, 184, 90, 0.32);
  border-radius: 10px;
  font: inherit;
  line-height: 1.7;
}
.tarot-draw-form textarea:focus {
  outline: 2px solid rgba(241, 221, 138, 0.55);
  outline-offset: 2px;
}
.tarot-question-note {
  margin: 8px 0 18px;
  color: rgba(255, 250, 240, 0.52);
  font-size: 0.78rem;
  line-height: 1.7;
  text-align: left;
}
.kousyo-reading {
  margin: 34px auto;
  padding: clamp(24px, 5vw, 44px);
  max-width: 760px;
  color: rgba(255, 250, 240, 0.86);
  background: linear-gradient(
    145deg,
    rgba(213, 184, 90, 0.1),
    rgba(255, 255, 255, 0.035)
  );
  border: 1px solid rgba(213, 184, 90, 0.36);
  border-radius: 16px;
  text-align: left;
}
.kousyo-reading-kicker {
  margin: 0;
  color: #d5b85a;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-align: center;
}
.kousyo-reading > h2 {
  margin: 10px 0 30px;
  color: #f1dd8a;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 500;
  text-align: center;
}
.kousyo-reading section {
  padding: 0 0 22px;
}
.kousyo-reading section + section {
  padding-top: 22px;
  border-top: 1px solid rgba(213, 184, 90, 0.18);
}
.kousyo-reading h3 {
  margin: 0 0 12px;
  color: #d5b85a;
  font-size: 1.02rem;
}
.kousyo-reading p {
  line-height: 2;
  overflow-wrap: anywhere;
}
.kousyo-hope {
  margin-bottom: 0;
  padding-bottom: 0 !important;
}
.kousyo-hope p {
  color: #fff4c7;
}
.kousyo-ai-reading {
  white-space: pre-wrap;
}
.kousyo-ai-note {
  margin-top: 24px;
  color: rgba(255, 250, 240, 0.48);
  font-size: 0.76rem;
}
.kousyo-personalized {
  margin-bottom: 22px;
  padding: 22px !important;
  background: rgba(213, 184, 90, 0.07);
  border: 1px solid rgba(213, 184, 90, 0.2);
  border-radius: 10px;
}
@media (max-width: 600px) {
  .tarot-draw-form label {
    display: block;
  }
  .tarot-draw-form label span {
    display: block;
    margin-top: 4px;
  }
  .kousyo-reading {
    padding: 24px 18px;
  }
}
