

.tarot-draw {
  position: relative;
  width: 100%;
  max-width: min(92vw, 375px);
  margin: 15px auto 0;
  padding: 22.5px 0 0;
  box-sizing: border-box;
  color: #5c4033;
}

.tarot-draw::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 50%;
  height: 1px;
  background: #e8e0da;
  transform: translateX(-50%);
}

.tarot-draw__label {
  margin: 0 0 10px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #c2844a;
  text-align: center;
}

.tarot-draw__inner {
  width: 100%;
  margin: 0 auto;
}

.tarot-draw__row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 7.5px;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.tarot-draw__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 90px;
  width: 90px;
}

.tarot-draw__card {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 90px;
  height: 90px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease, transform 0.12s ease;
}

.tarot-draw__card:hover,
.tarot-draw__card:focus-visible {
  opacity: 0.92;
}

.tarot-draw__card:active {
  transform: scale(0.97);
}

.tarot-draw__card:focus-visible {
  outline: 2px solid #9a8578;
  outline-offset: 4px;
}

.tarot-draw__card img {
  display: block;
  width: 90px;
  height: 90px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.tarot-draw__card.is-busy {
  pointer-events: none;
  opacity: 0.7;
}

.tarot-draw__hint {
  margin: 10px 0 0;
  color: #8c6a51;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
}

.tarot-draw__cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 7.5px;
  gap: 7.5px;
  color: #8c6a51;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.04em;
  pointer-events: none;
  user-select: none;
}

.tarot-draw__cue-arrow {
  display: block;
  position: relative;
  width: 14px;
  height: 13.5px;
  animation: tarot-draw-arrow 1.6s ease-in-out infinite;
}

.tarot-draw__cue-arrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-bottom: 4.5px solid #8c6a51;
}

.tarot-draw__cue-arrow::after {
  content: "";
  position: absolute;
  top: 3.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 10px;
  background: #8c6a51;
}

.tarot-draw__cue-tap {
  display: block;
  font-weight: 700;
  line-height: 1;
}

@keyframes tarot-draw-arrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tarot-draw__cue-arrow {
    animation: none;
  }
}

#tarot-draw {
  margin-bottom: 20px;
}

#tarot-draw.tarot-draw--before-footer {
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  #tarot-draw {
    margin-bottom: 25px;
  }

  #tarot-draw.tarot-draw--before-footer {
    margin-bottom: 64px;
  }

  .tarot-draw {
    max-width: min(90vw, 680px);
    margin-top: 22.5px;
    padding: 25px 0 0;
  }

  .tarot-draw__label {
    margin-bottom: 12.5px;
    font-size: 20px;
  }

  .tarot-draw__row {
    gap: 12.5px;
  }

  .tarot-draw__item {
    flex-basis: 120px;
    width: 120px;
  }

  .tarot-draw__card {
    width: 120px;
    height: 120px;
  }

  .tarot-draw__card img {
    width: 120px;
    height: 120px;
  }

  .tarot-draw__hint {
    margin-top: 12.5px;
    font-size: 15px;
  }

  .tarot-draw__cue {
    margin-top: 10px;
    font-size: 17.5px;
  }
}
