* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.container {
    max-width: 900px;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 
                0 0 30px rgba(255, 215, 0, 0.4) inset;
    overflow: hidden;
    position: relative;
    z-index: 10;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease;
}

.header {
    text-align: center;
    padding: 25px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    position: relative;
    border-bottom: 3px solid rgba(255, 215, 0, 0.5);
}

.header h1 {
    font-size: 3.2rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ff9966, #ff5e62, #ffcc33, #ff9966);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.header h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 4px;
    background: linear-gradient(to right, #ff9966, #ff5e62, #ffcc33);
    border-radius: 2px;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 10px auto 0;
    color: #ffcc66;
    font-weight: 300;
}

.game-info {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
    color: #ffcc99;
}

.info-value {
    font-weight: bold;
    font-size: 1.4rem;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.game-area {
    padding: 30px;
    text-align: center;
}

.color-display {
    width: 220px;
    height: 220px;
    margin: 0 auto 30px;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3),
                0 0 0 15px rgba(0, 0, 0, 0.2),
                0 0 0 20px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.color-display::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.3;
    transform: rotate(30deg);
    pointer-events: none;
}

.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.option {
    padding: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

.option::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    z-index: -1;
}

/* Reduced hover movement */
.option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.timer {
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) inset;
}

.timer-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, #4facfe, #00f2fe, #00ff7f);
    transition: width 0.1s linear;
    border-radius: 7px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.controls {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

button {
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #ff9966, #ff5e62);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 94, 98, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
}

button::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #ff9966, #ff5e62, #ffcc33, #ff9966);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Reduced hover movement */
button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 94, 98, 0.6);
}

button:hover::before {
    opacity: 0.3;
}

button:active {
    transform: translateY(2px);
}

.social {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #3b5998, #8b9dc3);
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-btn.twitter {
    background: linear-gradient(45deg, #1da1f2, #a6d4f9);
}

.social-btn.share {
    background: linear-gradient(45deg, #25d366, #128c7e);
}

/* Reduced hover movement */
.social-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.social-btn:hover::before {
    opacity: 1;
}

.message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: bold;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.message.correct {
    background: rgba(40, 167, 69, 0.85);
}

.message.incorrect {
    background: rgba(220, 53, 69, 0.85);
}

.score-popup {
    position: absolute;
    font-size: 1.8rem;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    animation: floatUp 1.2s forwards;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    font-family: 'Orbitron', sans-serif;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    70% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(1.2);
        opacity: 0;
    }
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ff0;
    opacity: 0;
    z-index: 100;
}

.instructions {
    padding: 25px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    margin: 20px auto;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.instructions h3 {
    margin-bottom: 15px;
    color: #ff9966;
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.instructions ul {
    text-align: left;
    display: inline-block;
    margin: 15px 0;
    max-width: 500px;
}

.instructions li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.instructions li::before {
    content: "•";
    position: absolute;
    left: 10px;
    color: #ffcc66;
    font-size: 1.2rem;
}

.power-ups {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.power-up {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.power-up i {
    font-size: 1.8rem;
}

/* Reduced hover movement */
.power-up:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.power-up.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.power-up.disabled:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.power-up-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 20;
}

.power-up:hover .power-up-tooltip {
    opacity: 1;
}

@media (max-width: 768px) {
    .options {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2.4rem;
    }
    
    .color-display {
        width: 180px;
        height: 180px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    button {
        width: 80%;
        max-width: 300px;
    }
    
    .power-ups {
        flex-wrap: wrap;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease;
}

.glow {
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px -5px #fff; }
    to { box-shadow: 0 0 10px 3px #fff; }
}

.level-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 15px auto 25px;
    width: 80%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) inset;
}

.level-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #ff9966, #ffcc33, #ff5e62);
    transition: width 0.5s ease;
    border-radius: 4px;
}

.bonus-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    z-index: 150;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: bonusAppear 1.5s forwards;
}

@keyframes bonusAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.combo-display {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 200;
}

.combo-display.show {
    opacity: 1;
}

/* New leaderboard section */
.leaderboard {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    margin: 30px auto;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffcc66;
    font-family: 'Orbitron', sans-serif;
}

.leaderboard-list {
    list-style: none;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
    border-radius: 8px;
}

.leaderboard-position {
    font-weight: bold;
    color: #ff9966;
}

.leaderboard-name {
    flex-grow: 1;
    padding: 0 15px;
}

.leaderboard-score {
    font-family: 'Orbitron', sans-serif;
    color: #4facfe;
}

/* New achievements section */
.achievements {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    margin: 30px auto;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.achievements h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffcc66;
    font-family: 'Orbitron', sans-serif;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.achievement {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 10px;
    border-radius: 10px;
    text-align: center;
}

.achievement i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffcc33;
}

.achievement h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.achievement p {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* New difficulty selector */
.difficulty {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.difficulty-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.difficulty-btn.active {
    background: rgba(255, 165, 0, 0.3);
    border-color: #ffa500;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.4);
}