/* Spotlight Stealer Game Styles - Modern Design */

.spotlight-game-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Start Screen */
#start-screen {
    text-align: center;
    padding: 2rem 1rem;
}

.start-screen-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
}

.game-description {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0 0 2rem;
    line-height: 1.6;
}

#color-reveal-section {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 400px;
}

#color-reveal-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 1rem;
}

.color-reveal-swatches {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.color-swatch-large {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-block;
}

.memorize-text {
    font-size: 0.95rem;
    color: #64748b;
    margin: 1rem 0 0;
    font-style: italic;
}

/* Buttons */
.spotlight-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0.5rem;
    display: inline-block;
}

.spotlight-btn-primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.spotlight-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.spotlight-btn-primary:active {
    transform: translateY(0);
}

.spotlight-btn-share {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.spotlight-btn-share:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Game Screen */
#game-screen {
    padding: 1rem 0;
}

#game-hud {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.hud-section {
    text-align: center;
}

.hud-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hud-colors {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.color-swatch-hud {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: inline-block;
}

.hud-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.combo-value {
    color: #f59e0b;
}

.time-value {
    color: #3b82f6;
}

/* Stage Area */
#stage-area {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    margin: 0 auto;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.spotlight {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    position: absolute;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
    transition: transform 0.1s ease-out, opacity 0.3s ease-out;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transform: scale(0);
    opacity: 0;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.spotlight.active {
    transform: scale(1);
    opacity: 1;
}

.spotlight:hover {
    transform: scale(1.1);
}

.spotlight.hit-good {
    animation: hitGoodAnim 0.3s ease-out forwards;
}

.spotlight.hit-bad {
    animation: hitBadAnim 0.4s ease-out forwards;
}

@keyframes hitGoodAnim {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes hitBadAnim {
    0% { transform: scale(1) rotate(0); opacity: 1;}
    25% { transform: scale(1.1) rotate(-10deg); }
    50% { transform: scale(1.1) rotate(10deg); }
    75% { transform: scale(1.1) rotate(-10deg); }
    100% { transform: scale(0.8) rotate(0); opacity: 0; }
}

/* Feedback Overlay - Removed eye-straining effects */
#feedback-overlay {
    display: none;
}

/* Game Over Screen */
#game-over-screen {
    text-align: center;
    padding: 2rem 1rem;
}

.game-over-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2rem;
}

.final-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 500px;
}

.final-stat {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.final-stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.final-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

/* Share Section */
#share-section {
    margin: 2rem 0;
}

.share-label {
    font-size: 0.9rem;
    color: #64748b;
    margin: 1rem 0 0.5rem;
}

.share-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.share-link {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.share-link:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}

#copy-feedback {
    font-size: 0.875rem;
    color: #10b981;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .spotlight-game-wrapper {
        padding: 1rem 0.5rem;
    }

    .start-screen-content h2 {
        font-size: 1.5rem;
    }

    .game-description {
        font-size: 1rem;
    }

    #stage-area {
        height: 300px;
    }

    #game-hud {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .hud-value {
        font-size: 1.5rem;
    }

    .final-stats {
        grid-template-columns: 1fr;
    }
}
