/* Mystery Mixer - Bar Drama Theme */

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Neon Glow Effects */
.neon-glow-green {
    color: var(--neon-green);
    text-shadow: 0 0 12px rgba(50, 255, 0, 0.8), 0 0 24px rgba(50, 255, 0, 0.5);
}

.neon-glow-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.8), 0 0 24px rgba(0, 255, 255, 0.5);
}

.neon-glow-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 12px rgba(255, 0, 127, 0.8), 0 0 24px rgba(255, 0, 127, 0.5);
}

.neon-glow-amber {
    color: var(--neon-amber);
    text-shadow: 0 0 12px rgba(255, 191, 0, 0.8), 0 0 24px rgba(255, 191, 0, 0.5);
}

/* Mystery Card - Bar Drama Theme */
.mystery-card {
    background: linear-gradient(135deg, 
        var(--bg-card) 0%, 
        rgba(11, 18, 32, 0.6) 100%
    );
    border: 2px solid var(--border-primary);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px var(--border-primary),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Wood texture overlay */
.mystery-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            rgba(93, 64, 55, 0.1) 0px,
            rgba(93, 64, 55, 0.1) 2px,
            transparent 2px,
            transparent 10px
        );
    pointer-events: none;
    opacity: 0.3;
}

.mystery-card:hover {
    border-color: rgba(255, 191, 0, 0.4);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(255, 191, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: var(--neon-cyan);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    z-index: 1000;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--neon-cyan);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(0, 255, 255, 0.2);
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Clue Card */
.clue-card {
    background: linear-gradient(135deg, 
        rgba(93, 64, 55, 0.3) 0%, 
        rgba(62, 39, 35, 0.5) 100%
    );
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.clue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 255, 255, 0.05) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clue-card:hover::before {
    opacity: 1;
}

.clue-card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 
        0 12px 32px rgba(0, 255, 255, 0.3),
        0 0 40px rgba(0, 255, 255, 0.2);
}

.clue-card.locked {
    opacity: 0.6;
    cursor: pointer;
    border-color: rgba(128, 128, 128, 0.3);
}

.clue-card.locked:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(255, 191, 0, 0.5);
}

.clue-card.unlocked {
    background: linear-gradient(135deg, 
        rgba(50, 255, 0, 0.15) 0%, 
        rgba(0, 255, 255, 0.15) 100%
    );
    border-color: rgba(50, 255, 0, 0.6);
    animation: unlockPulse 1s ease-in-out, unlockShake 0.5s ease-in-out;
}

@keyframes unlockPulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(50, 255, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 30px rgba(50, 255, 0, 0.9), 0 0 60px rgba(50, 255, 0, 0.5);
    }
}

@keyframes unlockShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-2deg); }
    75% { transform: translateX(5px) rotate(2deg); }
}

/* Clue Icon */
.clue-icon {
    font-size: 3rem;
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 8px rgba(255, 191, 0, 0.5));
}

.clue-card.locked .clue-icon {
    filter: grayscale(1) drop-shadow(0 0 4px rgba(128, 128, 128, 0.3));
}

.clue-card.unlocked .clue-icon {
    filter: drop-shadow(0 0 12px rgba(50, 255, 0, 0.8));
}

/* Clue Title */
.clue-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 0.5rem;
}

.clue-card.locked .clue-title {
    color: rgba(255, 255, 255, 0.5);
}

/* Clue Description */
.clue-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.4;
}

.clue-card.locked .clue-description {
    color: rgba(255, 255, 255, 0.4);
}

/* Lock Badge */
.lock-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--neon-amber);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 191, 0, 0.3);
}

/* Suspect Card */
.suspect-card {
    background: linear-gradient(135deg, 
        rgba(62, 39, 35, 0.3) 0%, 
        rgba(11, 18, 32, 0.5) 100%
    );
    border: 2px solid rgba(255, 0, 127, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.suspect-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 127, 0.6);
    box-shadow: 0 8px 24px rgba(255, 0, 127, 0.3);
}

.suspect-card.selected {
    border-color: var(--neon-pink);
    background: linear-gradient(135deg, 
        rgba(255, 0, 127, 0.2) 0%, 
        rgba(255, 0, 127, 0.1) 100%
    );
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.5);
}

.suspect-card input[type="radio"] {
    margin-right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--neon-pink);
}

/* Vote Count Display */
.vote-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.voting-card {
    position: relative;
}

/* Voting Instructions */
#voting-instructions {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.1) 0%, 
        rgba(138, 43, 226, 0.1) 100%
    );
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

/* Vote Results Summary */
.vote-results-summary {
    animation: slideUp 0.6s ease-out;
}

.vote-bar {
    min-width: 20px;
    transition: width 0.5s ease-out;
}

/* Timer Animation */
@keyframes timerWarning {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 69, 0, 0.8);
    }
}

.timer-warning {
    animation: timerWarning 1s ease-in-out infinite;
}

/* Task Modal Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#task-modal:not(.hidden) .mystery-card {
    animation: fadeIn 0.3s ease-out;
}

/* Button Glow Effects */
button:not(:disabled):hover {
    filter: brightness(1.1);
}

button:not(:disabled):active {
    transform: scale(0.98);
}

/* Wood Texture Effect */
.wood-texture {
    background-image: 
        linear-gradient(
            90deg,
            rgba(93, 64, 55, 0.2) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(62, 39, 35, 0.2) 1px,
            transparent 1px
        );
    background-size: 20px 20px;
}

/* Pulse Animation for Unlocked Items */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Success/Failure Result Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-animation {
    animation: slideUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .clue-icon {
        font-size: 2.5rem;
    }
    
    .clue-title {
        font-size: 1rem;
    }
    
    .clue-description {
        font-size: 0.8rem;
    }
    
    .mystery-card {
        padding: 1.25rem;
    }
    
    .clue-card {
        min-height: 160px;
        padding: 1rem;
    }
    
    /* Stack buttons vertically on mobile */
    button.w-full {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
    
    /* Improve touch targets */
    input[type="number"],
    select {
        min-height: 48px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Adjust modal padding */
    #task-modal .mystery-card {
        padding: 1.5rem;
        max-width: 95vw;
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
    .clue-card {
        min-height: 170px;
    }
}

/* Landscape mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .mystery-card {
        padding: 1rem;
    }
    
    .clue-card {
        min-height: 140px;
        padding: 0.875rem;
    }
    
    .clue-icon {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

/* Input Task Styles */
.task-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: white;
    font-size: 1.125rem;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.task-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* Multiple Choice Options */
.choice-option {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.choice-option:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateX(4px);
}

.choice-option.correct {
    background: rgba(50, 255, 0, 0.2);
    border-color: var(--neon-green);
    animation: unlockPulse 1s ease-in-out;
}

.choice-option.incorrect {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.6);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Celebration Effect */
@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--neon-green);
    animation: confetti 3s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
}

/* Success alert animation */
@keyframes successBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(0.9) rotate(-5deg); }
    75% { transform: scale(1.05); }
}

.success-alert {
    animation: successBounce 0.6s ease-out, fadeIn 0.3s ease-out;
    background: linear-gradient(135deg, 
        rgba(50, 255, 0, 0.2) 0%, 
        rgba(0, 255, 255, 0.2) 100%
    );
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 30px rgba(50, 255, 0, 0.5);
}

/* Error alert animation */
@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.error-alert {
    animation: errorShake 0.6s ease-out, fadeIn 0.3s ease-out;
    background: linear-gradient(135deg, 
        rgba(255, 0, 0, 0.2) 0%, 
        rgba(255, 100, 0, 0.2) 100%
    );
    border: 2px solid #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

/* Particle effect for clue unlock */
@keyframes particle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    pointer-events: none;
    animation: particle 1s ease-out forwards;
}

/* Screen transition effects */
@keyframes fadeInScreen {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen-transition {
    animation: fadeInScreen 0.5s ease-out;
}

/* Statistics Screen Styles */
.neon-glow-purple {
    color: #a855f7;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.8), 0 0 24px rgba(168, 85, 247, 0.5);
}

.stat-card {
    background: linear-gradient(135deg, 
        rgba(62, 39, 35, 0.3) 0%, 
        rgba(11, 18, 32, 0.5) 100%
    );
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 255, 255, 0.2);
}

.stat-label {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #00ffff;
}

/* Pie Chart Container */
.pie-chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pie-chart {
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.3));
}

/* Character Stats */
.character-stat-card {
    background: linear-gradient(135deg, 
        rgba(62, 39, 35, 0.2) 0%, 
        rgba(11, 18, 32, 0.4) 100%
    );
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.character-stat-card:hover {
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateX(4px);
}

.character-bar-container {
    width: 100%;
}

.character-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(75, 85, 99, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.character-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Responsive adjustments for statistics */
@media (max-width: 640px) {
    .stat-value {
        font-size: 1.5rem;
    }
    
    .pie-chart-container svg {
        width: 100px;
        height: 100px;
    }
    
    /* Ensure touch targets are at least 44x44px for mobile accessibility */
    button, 
    .clue-card, 
    .suspect-card,
    input[type="radio"],
    input[type="checkbox"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve spacing for mobile readability */
    .mystery-card {
        padding: 1rem;
    }
    
    /* Better font sizes for mobile */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Optimize clue grid for small screens */
    .clue-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    
    /* Stack suspect cards vertically on mobile */
    .suspect-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

/* Game Mode Specific Styles */

/* Bonus time flash animation for Timed Challenge mode */
@keyframes bonusTimeFlash {
    0% { 
        color: var(--neon-green);
        text-shadow: 0 0 20px rgba(50, 255, 0, 1);
        transform: scale(1);
    }
    50% { 
        color: #32ff00;
        text-shadow: 0 0 40px rgba(50, 255, 0, 1), 0 0 60px rgba(50, 255, 0, 0.8);
        transform: scale(1.1);
    }
    100% { 
        color: var(--neon-green);
        text-shadow: 0 0 20px rgba(50, 255, 0, 1);
        transform: scale(1);
    }
}

.bonus-time-flash {
    animation: bonusTimeFlash 0.5s ease-in-out;
}

/* Team progress bar styles for Collaborative mode */
#team-progress-bar {
    transition: width 0.5s ease-out, background 0.3s ease-out;
}

/* Practice mode hint button */
#practice-hint-btn {
    position: relative;
    overflow: hidden;
}

#practice-hint-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

#practice-hint-btn:hover::before {
    left: 100%;
}

/* Success and error alerts */
.success-alert {
    background: linear-gradient(135deg, rgba(50, 255, 0, 0.2), rgba(0, 255, 0, 0.1));
    border: 1px solid var(--neon-green);
}

.error-alert {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 100, 100, 0.1));
    border: 1px solid #ff0000;
}

/* Practice stats display */
.practice-stats {
    animation: slideInFromBottom 0.5s ease-out;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Difficulty badge styles */
.difficulty-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    animation: fadeIn 0.3s ease-out;
}

.difficulty-badge.difficulty-easy {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.difficulty-badge.difficulty-medium {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.difficulty-badge.difficulty-hard {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* Drag and drop task styles */
.drag-drop-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1rem 0;
}

.drag-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.drag-item {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 0.5rem;
    cursor: grab;
    color: white;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    user-select: none;
}

.drag-item:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.drag-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.drop-targets {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.drop-target {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.target-label {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
}

.drop-zone {
    min-height: 60px;
    padding: 0.5rem;
    background: rgba(31, 41, 55, 0.5);
    border: 2px dashed rgba(156, 163, 175, 0.3);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-zone.drag-over {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
    border-style: solid;
}

.drop-zone .drag-item {
    margin: 0;
    width: 100%;
}

@media (max-width: 640px) {
    .drag-drop-container {
        grid-template-columns: 1fr;
    }
}

/* Slider task styles */
.slider-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(31, 41, 55, 0.3);
    border-radius: 0.75rem;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

.slider-value {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.task-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, 
        rgba(59, 130, 246, 0.3) 0%, 
        rgba(0, 255, 255, 0.5) 50%, 
        rgba(50, 255, 0, 0.5) 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin: 1rem 0;
}

.task-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6), 0 0 20px rgba(0, 255, 255, 0.3);
    border: 2px solid white;
    transition: all 0.2s ease;
}

.task-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.5);
}

.task-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6), 0 0 20px rgba(0, 255, 255, 0.3);
    border: 2px solid white;
    transition: all 0.2s ease;
}

.task-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.5);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* Animation for task content appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Task header layout */
.task-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.task-header h3 {
    margin-bottom: 0;
}

/* Evidence Card Animations */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 4px rgba(0, 255, 255, 0.5),
            0 0 8px rgba(0, 255, 255, 0.4),
            0 0 12px rgba(0, 255, 255, 0.3),
            0 0 16px rgba(0, 255, 255, 0.2);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

.neon-flicker {
    animation: neon-flicker 5s infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(0, 255, 255, 0.3),
            0 0 10px rgba(0, 255, 255, 0.2),
            0 0 15px rgba(0, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 10px rgba(0, 255, 255, 0.5),
            0 0 20px rgba(0, 255, 255, 0.4),
            0 0 30px rgba(0, 255, 255, 0.3);
    }
}

.evidence-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Clue Discovery Animation */
@keyframes discover-bounce {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    60% {
        transform: scale(1.1) translateY(-10px);
        opacity: 1;
    }
    80% {
        transform: scale(0.95) translateY(5px);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.clue-discovered {
    animation: discover-bounce 0.6s ease-out;
}

/* Animated Evidence Icon */
@keyframes icon-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.evidence-icon-spin {
    display: inline-block;
    animation: icon-rotate 20s linear infinite;
}

/* Enhanced Mystery Card Glow */
.mystery-card-enhanced {
    position: relative;
    overflow: hidden;
}

.mystery-card-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate-glow 10s linear infinite;
    pointer-events: none;
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Context Detail Fade In */
@keyframes detail-fade-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.context-detail {
    animation: detail-fade-in 0.5s ease-out;
}

/* Interrogation Response Animation */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.response-animate {
    animation: slide-up 0.4s ease-out;
}
