.tarot-module {
  margin-top: 22px;
  border: 1px solid var(--line);
  background: rgba(16, 21, 27, .94);
  box-shadow: 10px 10px 0 rgba(255, 85, 72, .06);
}
.tarot-intro { padding: 26px clamp(18px, 4vw, 40px) 8px; }
.tarot-intro h2 { margin: 0 0 10px; color: var(--paper); font-size: clamp(1.55rem, 3vw, 2.4rem); }
.tarot-intro p { max-width: 68ch; margin: 0; color: var(--muted); font-family: Arial, sans-serif; line-height: 1.55; }
.tarot-table { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); padding: 20px clamp(18px, 4vw, 40px) 28px; }
.tarot-card-button { position: relative; padding: 0; border: 0; background: transparent; cursor: pointer; perspective: 900px; }
.tarot-card-button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; }
.tarot-card-inner { position: relative; display: block; aspect-ratio: 277 / 477; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.tarot-card-button.is-revealed .tarot-card-inner { transform: rotateY(180deg); }
.tarot-card-face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; border: 1px solid #61707e; background: #19232d; box-shadow: 5px 5px 0 #040506; }
.tarot-card-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tarot-card-front { transform: rotateY(180deg); }
.tarot-card-button:not(.is-revealed):hover .tarot-card-back { border-color: var(--red); transform: translateY(-5px); }
.tarot-card-back { transition: border-color .2s, transform .2s; }
.tarot-card-label { display: block; margin-top: 9px; color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.tarot-result { display: none; margin: 0 clamp(18px, 4vw, 40px) 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.tarot-result.is-visible { display: grid; grid-template-columns: minmax(130px, 190px) minmax(0, 1fr); gap: 24px; align-items: start; }
.tarot-result-card { width: 100%; border: 1px solid #61707e; box-shadow: 5px 5px 0 #040506; }
.tarot-result h3 { margin: 0 0 6px; color: var(--cyan); font-family: Arial, sans-serif; font-size: clamp(1.35rem, 3vw, 2rem); }
.tarot-result .tarot-orientation { margin: 0 0 18px; color: var(--red); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.tarot-reading { color: var(--paper); font-family: Arial, sans-serif; line-height: 1.55; }
.tarot-reading p { margin: 0 0 13px; }
.tarot-reading strong { color: var(--cyan); }
.tarot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tarot-action { padding: 11px 14px; border: 1px solid var(--red); color: var(--paper); background: transparent; cursor: pointer; font: inherit; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.tarot-action:hover, .tarot-action:focus-visible { color: var(--ink); background: var(--red); outline: none; }
.tarot-action:disabled { border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.tarot-action:disabled:hover { color: var(--muted); background: transparent; }
.tarot-note { margin: 0; padding: 0 clamp(18px, 4vw, 40px) 24px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
@media (max-width: 620px) {
  .tarot-table { gap: 9px; padding-inline: 14px; }
  .tarot-label { font-size: .62rem; }
  .tarot-result.is-visible { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; margin-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) { .tarot-card-inner { transition: none; } }
