/* Truth or Dare — spin-the-bottle style, single-column layout */

.tod-tool {
    font-family: var(--poppins);
    max-width: 680px;
    margin: 0 auto;
}

.tod-tool__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.tod-tool__cat {
    padding: 8px 16px;
    border: 2px solid var(--primary-color-light);
    border-radius: 999px;
    background: #fff;
    font-family: var(--poppins);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tod-tool__cat:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tod-tool__cat.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.tod-tool__play {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.tod-tool__stage {
    position: relative;
    width: min(620px, 100%);
    aspect-ratio: 1;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(127, 86, 217, 0.12), inset 0 0 0 6px #fff, inset 0 0 0 10px var(--primary-color-light);
}

.tod-tool__stage.spinning { cursor: wait; }

.tod-tool__canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.tod-tool__bottle-rotator {
    position: absolute;
    top: 40%;
    left: 40%;
    width: 50%;
    height: 50%;
    margin-top: -14%;
    margin-left: -14%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: 50% 50%;
    will-change: transform;
    pointer-events: none;
}

.tod-tool__bottle {
    width: auto;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.tod-tool__hint {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--gray-text);
    text-align: center;
}

.tod-tool__hint kbd {
    background: var(--primary-color-light);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.tod-tool__option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--primary-text-color);
}

.tod-tool__option input { accent-color: var(--primary-color); }

.tod-tool__spin-controls {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    z-index: 5;
    display: none;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(127, 86, 217, 0.18);
    border: 1px solid var(--primary-color-light);
}

.tod-tool__spin-controls.visible {
    display: flex;
}

.tod-tool__ctrl {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-family: var(--poppins);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.tod-tool__ctrl--pause { background: #fef3c7; color: #92400e; }
.tod-tool__ctrl--stop { background: #fee2e2; color: #991b1b; }

.tod-tool__actions {
    display: flex;
    gap: 10px;
    margin-top: 52px;
    width: min(620px, 100%);
    flex-wrap: wrap;
}

.tod-tool__actions .tod-tool__btn--primary { flex: 1; min-width: 140px; }
.tod-tool__actions .tod-tool__btn--secondary { flex: 1; min-width: 120px; }

.tod-tool__btn {
    padding: 12px 18px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: var(--poppins);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tod-tool__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tod-tool__btn--secondary {
    background: var(--primary-color-light);
    color: var(--primary-color);
}

.tod-tool__btn--secondary:hover:not(:disabled) {
    background: var(--primary-color);
    color: #fff;
}

.tod-tool__btn--primary {
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    padding: 14px 20px;
}

.tod-tool__btn--primary:hover:not(:disabled) {
    background: var(--primary-color-hover);
}

.tod-tool__btn svg {
    width: 16px;
    height: 16px;
}

.tod-tool__modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 44, 65, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    padding: 20px;
}

.tod-tool__modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.tod-tool__modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(127, 86, 217, 0.25);
    transform: scale(0.92);
    transition: transform 0.25s;
}

.tod-tool__modal-backdrop.open .tod-tool__modal {
    transform: scale(1);
}

.tod-tool__modal-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.tod-tool__modal-badge--truth {
    background: #dbeafe;
    color: #1d4ed8;
}

.tod-tool__modal-badge--dare {
    background: #fee2e2;
    color: #b91c1c;
}

.tod-tool__modal-text {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.55;
    color: var(--primary-text-color);
    margin-bottom: 24px;
    min-height: 3em;
}

.tod-tool__modal-actions {
    display: flex;
    gap: 10px;
}

.tod-tool__modal-actions .tod-tool__btn {
    flex: 1;
}

.tod-tool__play:fullscreen,
.tod-tool__play:-webkit-full-screen {
    background: var(--primary-light-background);
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 32px 24px;
}

.tod-tool__play:fullscreen .tod-tool__stage,
.tod-tool__play:-webkit-full-screen .tod-tool__stage {
    width: min(88vmin, 780px);
}

.tod-tool__play:fullscreen .tod-tool__actions,
.tod-tool__play:-webkit-full-screen .tod-tool__actions {
    width: min(88vmin, 780px);
}
