/* Phase-colored cards */
.phase-card-opening {
    background-color: #1e3a5f;
    border-color: #3b82f6;
    color: #93c5fd;
}

.phase-card-development {
    background-color: #5c3d1e;
    border-color: #f59e0b;
    color: #fcd34d;
}

.phase-card-climax {
    background-color: #5c1e1e;
    border-color: #ef4444;
    color: #fca5a5;
}

.phase-card-resolution {
    background-color: #3b1e5c;
    border-color: #a855f7;
    color: #d8b4fe;
}

/* Phase-colored header backgrounds */
.phase-header-opening {
    background-color: #0f1d30;
}

.phase-header-development {
    background-color: #2e1f0f;
}

.phase-header-climax {
    background-color: #2e0f0f;
}

.phase-header-resolution {
    background-color: #1e0f2e;
}

/* Card entrance animation */
.directive-card {
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

.card-enter {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
}

.card-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.card-past {
    opacity: 0.35;
    filter: saturate(0.4);
    transform: scale(0.97);
}

/* Performer view: listening pulse */
@keyframes listenPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

#listen-zone {
    animation: listenPulse 4s ease-in-out infinite;
}

/* Phase background tint for performer full-screen */
.phase-bg-opening { background-color: #0a1420; }
.phase-bg-development { background-color: #1a1008; }
.phase-bg-climax { background-color: #1a0808; }
.phase-bg-resolution { background-color: #100818; }

/* Seed reveal items */
.seed-reveal-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.seed-reveal-item:last-child {
    border-bottom: none;
}

.seed-reveal-label {
    letter-spacing: 0.3em;
}

/* Two-zone tap: performer feedback */
.tap-zone {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.tap-zone:active:not(:disabled) {
    animation: tapPulse 0.3s ease-out;
}

.tap-zone-flowing {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.tap-zone-flowing:hover:not(:disabled) {
    background-color: rgba(16, 185, 129, 0.25);
}

.tap-zone-struggling {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fcd34d;
}

.tap-zone-struggling:hover:not(:disabled) {
    background-color: rgba(245, 158, 11, 0.25);
}

.tap-zone-cooldown {
    background-color: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.2);
    color: #6b7280;
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes tapPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
    50% { transform: scale(1.03); box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.1); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Hide scrollbar for horizontal scroll containers */
.scroll-hide::-webkit-scrollbar { display: none; }
.scroll-hide { -ms-overflow-style: none; scrollbar-width: none; }
