.tool-hero {
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.12), rgba(var(--bs-info-rgb), 0.08));
}

.tool-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    background-color: var(--bs-body-bg);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
}

.tool-output {
    min-height: 3rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.tool-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.tool-result-item {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    background-color: rgba(var(--bs-secondary-rgb), 0.06);
}

.tool-result-label {
    margin-bottom: 0.35rem;
    color: var(--bs-secondary-color);
    font-size: 0.85rem;
}

.tool-result-value {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    word-break: break-word;
}

.stopwatch-display {
    font-size: clamp(2.5rem, 10vw, 6rem);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}

.picker-wheel-shell {
    position: relative;
    width: min(100%, 28rem);
    margin: 0 auto;
    aspect-ratio: 1;
}

.picker-wheel-pointer {
    position: absolute;
    top: -0.25rem;
    left: 50%;
    z-index: 2;
    width: 0;
    height: 0;
    border-right: 1rem solid transparent;
    border-left: 1rem solid transparent;
    border-top: 2rem solid var(--bs-danger);
    transform: translateX(-50%);
}

.picker-wheel {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0.75rem 1.5rem rgba(0, 0, 0, 0.18));
    transition: transform 15s cubic-bezier(0.04, 0.82, 0.12, 1);
}

.picker-wheel-center {
    fill: var(--bs-body-bg);
    stroke: var(--bs-border-color);
    stroke-width: 2;
}

.picker-wheel-label {
    fill: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    paint-order: stroke;
    pointer-events: none;
    stroke: rgba(0, 0, 0, 0.45);
    stroke-linejoin: round;
    stroke-width: 0.2rem;
    text-anchor: middle;
}

.tarot-spread {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.tarot-card-slot {
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: 1rem;
    background-color: rgba(var(--bs-secondary-rgb), 0.06);
}

.tarot-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 0.75rem;
    background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.12), rgba(var(--bs-secondary-rgb), 0.08));
}

.tarot-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tarot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--bs-secondary-color);
    font-weight: 600;
    text-align: center;
}

textarea.form-control.tool-textarea {
    min-height: 11rem;
}

[data-bs-theme="dark"] .tool-card {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.24);
}
