.tt-tool {
    margin: 2rem 0;
    border: 1px solid rgba(214, 177, 91, .35);
    border-radius: 18px;
    padding: clamp(1.2rem, 3vw, 2rem);
    background:
        linear-gradient(
            145deg,
            rgba(48, 22, 52, .96),
            rgba(27, 12, 32, .98)
        );
}

.tt-tool__heading {
    margin-bottom: 1.25rem;
}

.tt-tool__heading h2 {
    margin-bottom: .65rem;
}

.tt-tool__heading p {
    max-width: 760px;
}

.tt-tool__fields {
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0;
}

.tt-tool__field {
    display: grid;
    gap: .45rem;
}

.tt-tool__field label {
    font-weight: 700;
}

.tt-tool__field input,
.tt-tool__field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(214, 177, 91, .35);
    border-radius: 10px;
    padding: .85rem 1rem;
    background: rgba(255, 255, 255, .06);
    color: inherit;
    font: inherit;
}

.tt-tool__field textarea {
    min-height: 120px;
    resize: vertical;
}

.tt-tool__action {
    cursor: pointer;
}

.tt-tool__status {
    min-height: 1.5rem;
    margin-top: 1rem;
    font-weight: 700;
}

.tt-tool__result {
    margin-top: 1.5rem;
}

.tt-tool__result[hidden] {
    display: none;
}

.tt-tool__summary {
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    border-left: 3px solid currentColor;
    background: rgba(255, 255, 255, .05);
    border-radius: 6px;
}

.tt-tool__cards {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(210px, 1fr)
        );
    gap: 1rem;
}

.tt-tarot-card {
    border: 1px solid rgba(214, 177, 91, .38);
    border-radius: 14px;
    padding: 1.15rem;
    background:
        radial-gradient(
            circle at top,
            rgba(214, 177, 91, .10),
            transparent 55%
        ),
        rgba(13, 8, 17, .55);
}

.tt-tarot-card__position {
    display: block;
    margin-bottom: .55rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    opacity: .8;
}

.tt-tarot-card__name {
    margin: 0 0 .7rem;
    font-size: 1.2rem;
}

.tt-tarot-card__meaning {
    margin: 0;
}

.tt-tool__notice {
    margin-top: 1.25rem;
    font-size: .94rem;
    opacity: .86;
}

.tt-tool__error {
    border-left: 3px solid currentColor;
    padding-left: .8rem;
}

@media (max-width: 640px) {
    .tt-tool {
        border-radius: 12px;
    }
}
