/* COSMIC BEATS STUDIO - Advanced UI Design */
:root {
    /* Color Palette */
    --neon-blue: #00f3ff;
    --neon-pink: #ff0066;
    --dark-glass: rgba(0, 0, 0, 0.85);
    --dark: #070715;
    --darker: #050510;
    --light: #ffffff;
    --glow: 0 0 20px rgba(0, 243, 255, 0.3);
    --panel-bg: rgba(0, 0, 0, 0.75);
    
    /* Typography */
    --font-primary: 'Rajdhani', sans-serif;
    --font-display: 'Press Start 2P', cursive;
    --font-size-small: 10px;
    --font-size-medium: 14px;
    --font-size-large: 18px;
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    font-family: var(--font-primary);
    color: var(--neon-blue);
    line-height: 1.4;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(0, 243, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(255, 0, 102, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300f3ff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

#scene-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Grid System for Images */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 25px;
    max-width: 900px;
    margin: 80px auto 0;
    padding: 0 20px;
    margin-bottom: 80px;
    padding-bottom: 20px;
    position: relative;
}

.grid-item {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.grid-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px var(--neon-blue);
    opacity: 0;
    transition: all 0.3s ease;
}

.grid-item:hover::after {
    opacity: 1;
    box-shadow: inset 0 0 0 2px var(--neon-blue), 0 0 15px var(--glow);
}

.grid-item.active::after {
    opacity: 1;
    box-shadow: inset 0 0 0 3px var(--neon-pink), 0 0 20px 0 0 20px rgba(255, 0, 102, 0.5);
}

.grid-item.active {
    transform: scale(1.05);
}

/* Header Bar */
.top-bar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: var(--dark-glass);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--neon-blue);
    box-shadow: var(--glow);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.bpm-indicator {
    font-family: 'Rajdhani', monospace;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 10px var(--neon-blue);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.bpm-indicator::before, .bpm-indicator::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-blue);
    top: 50%;
    transform: translateY(-50%);
    box-shadow: var(--glow);
    animation: pulse 1.5s infinite alternate ease-in-out;
}

.bpm-indicator::before {
    left: -18px;
}

.bpm-indicator::after {
    right: -18px;
}

@keyframes pulse {
    0% { opacity: 1; box-shadow: 0 0 10px var(--neon-blue); }
    50% { opacity: 0.7; box-shadow: 0 0 15px var(--neon-blue); }
    100% { opacity: 1; box-shadow: 0 0 10px var(--neon-blue); }
}

/* Main Control Panel - FUTURISTIC DOCK STYLE */
.controls-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    width: 100%;
    max-width: 100%;
    z-index: 100;
    padding: 10px 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-blue);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    margin: 0 auto;
    height: auto;
    max-height: none;
    transition: all 0.4s ease;
    overflow: visible;
    transform: none;
}

.controls-container::after {
    display: none;
}

.main-controls {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 25px;
    width: 100%;
}

/* Effects Section */
.effects-panel {
    display: flex;
    gap: 20px;
    flex: 3;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-right: 1px solid rgba(0, 243, 255, 0.3);
}

.effect-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    min-width: 60px;
    position: relative;
    transition: all 0.3s ease;
}

.effect-control label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--neon-blue);
    margin-bottom: 3px;
    color: #fff;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.effect-control input[type="range"] {
    width: 70px;
    height: 4px;
    background: rgba(0, 243, 255, 0.2);
    border-radius: 4px;
    margin-top: 5px;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: var(--glow);
    cursor: pointer;
}

.effect-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.effect-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

/* Microphone Section */
.mic-section {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    justify-content: center;
    padding: 0 12px;
    border-right: 1px solid rgba(0, 243, 255, 0.3);
}

.mic-btn {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    box-shadow: var(--glow);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.mic-btn.active {
    background: var(--neon-blue);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 15px var(--neon-blue);
    text-shadow: none;
}

.level-meter {
    width: 6px;
    height: 30px;
    background: transparent;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--neon-blue);
    box-shadow: var(--glow);
}

#mic-meter {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(0deg, var(--neon-blue), var(--neon-pink));
    transition: height 0.1s ease;
    border-radius: 4px;
}

/* Transport Controls */
.transport-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding: 0 12px;
}

.transport-controls button {
    padding: 6px 12px;
    font-size: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 1px;
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: #fff;
    text-shadow: 0 0 10px var(--neon-blue);
    box-shadow: var(--glow);
    text-transform: uppercase;
}

#record-btn {
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

#stop-btn {
    background: rgba(68, 68, 255, 0.8);
    color: white;
    border-color: #4444ff;
    box-shadow: 0 0 15px rgba(68, 68, 255, 0.5);
}

button:disabled {
    background: #333 !important;
    border-color: #555 !important;
    color: #888 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* NEW FEATURE: Collapsible Panel */
.panel-toggle {
    display: none;
}

.controls-container.collapsed {
    transform: none;
}

/* Responsive Design - Improved for all screen sizes */
@media (max-width: 1200px) {
    .main-controls {
        gap: 20px;
    }
    
    .effects-panel {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .controls-container {
        padding: 8px 15px;
        bottom: 10px;
    }
    
    .effects-panel {
        gap: 12px;
    }
    
    .main-controls {
        gap: 8px;
    }
    
    .image-grid {
        margin-bottom: 60px;
    }
}

@media (max-width: 600px) {
    .controls-container {
        bottom: 10px;
        padding: 6px 12px;
    }
    
    .main-controls {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 8px;
        margin: 4px 0;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .main-controls::-webkit-scrollbar {
        display: none;
    }
    
    .effects-panel, .mic-section {
        border-right: none;
        padding: 0;
    }
    
    .transport-controls {
        border-top: 1px solid rgba(0, 243, 255, 0.3);
        padding-top: 5px;
        margin-top: 5px;
    }
    
    .mic-btn, .transport-controls button {
        padding: 5px 8px;
        font-size: 9px;
    }
    
    .effect-control {
        min-width: 50px;
    }
    
    .effect-control input[type="range"] {
        width: 60px;
    }
    
    .image-grid {
        margin-bottom: 80px;
        grid-template-columns: 1fr;
        margin-top: 70px;
    }
    
    .panel-toggle {
        top: -25px;
        padding: 3px 10px;
    }
    
    .level-meter {
        width: 5px;
        height: 25px;
    }
    
    .splash-content h1 {
        font-size: 7vw;
    }
    
    #start-btn {
        font-size: 18px;
        padding: 15px 30px;
    }
    
    .japanese-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .mic-section {
        border-right: none;
        padding-right: 0;
        width: 100%;
    }
}

/* Additional visual enhancements */
.controls-container .glow-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-blue);
    opacity: 0.7;
}

.controls-container .glow-dot:nth-child(1) {
    top: 10px;
    left: 20px;
    animation: pulse 2s infinite alternate 0.5s;
}

.controls-container .glow-dot:nth-child(2) {
    top: 10px;
    right: 20px;
    animation: pulse 2s infinite alternate 1s;
}

.controls-container .glow-dot:nth-child(3) {
    bottom: 10px;
    left: 20px;
    animation: pulse 2s infinite alternate 1.5s;
}

.controls-container .glow-dot:nth-child(4) {
    bottom: 10px;
    right: 20px;
    animation: pulse 2s infinite alternate 0s;
}

@keyframes pulseGlow {
    0% { opacity: 0.05; }
    100% { opacity: 0.2; }
}

/* Recording Indicator */
#recording-indicator {
    position: fixed;
    top: 60px;
    right: 20px;
    background: var(--neon-pink);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
    display: none;
    animation: pulse 1s infinite;
    box-shadow: 0 0 20px var(--neon-pink);
    border: 1px solid var(--neon-pink);
    text-transform: uppercase;
    z-index: 90;
    backdrop-filter: blur(5px);
}

/* Track Styling */
.effect-control input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(68, 68, 68, 0.5);
    border-radius: 2px;
    border: none;
}

.effect-control input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: rgba(68, 68, 68, 0.5);
    border-radius: 2px;
    border: none;
}

.effect-control input[type="range"]::-ms-track {
    width: 100%;
    height: 4px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.effect-control input[type="range"]::-ms-fill-lower {
    background: #444;
    border-radius: 2px;
}

.effect-control input[type="range"]::-ms-fill-upper {
    background: #444;
    border-radius: 2px;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #000000, #1a1a1a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(0, 243, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 70% 30%, rgba(255, 0, 102, 0.1) 0%, transparent 30%);
}

.splash-content {
    text-align: center;
    animation: fadeIn 1s ease-in;
    max-width: 80%;
}

.splash-content h1 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 50px);
    color: #fff;
    text-shadow: 0 0 20px var(--neon-blue),
                 0 0 40px var(--neon-pink);
    margin-bottom: 40px;
    animation: glow 2s ease-in-out infinite alternate;
    letter-spacing: 2px;
    line-height: 1.5;
}

#start-btn {
    font-family: var(--font-display);
    font-size: 22px;
    padding: 20px 40px;
    background: transparent;
    border: 2px solid #FFFF00;
    color: #FFFF00;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px #FFFF00;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
    margin-bottom: 40px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    animation: 
        yellowGlow 0.8s infinite alternate, 
        textTwinkle 0.4s infinite alternate,
        buttonPulse 1.5s infinite;
}

#start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 0, 0.4), transparent);
    transition: all 0.6s ease;
}

#start-btn:hover::before {
    left: 100%;
}

#start-btn:hover {
    background: rgba(255, 255, 0, 0.2);
    color: #FFFF00;
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.9), 0 0 50px rgba(255, 255, 0, 0.5);
    text-shadow: 0 0 15px rgba(255, 255, 0, 1);
    border-color: #FFFF00;
    animation: 
        yellowGlow 0.5s infinite alternate, 
        textTwinkle 0.3s infinite alternate,
        buttonPulse 1.2s infinite;
}

.japanese-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
    opacity: 0.8;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    from { text-shadow: 0 0 20px var(--neon-blue); }
    to { text-shadow: 0 0 40px var(--neon-pink), 0 0 80px var(--neon-blue); }
}

/* Add this new keyframe animation after the existing keyframes */
@keyframes yellowGlow {
    0% {
        border-color: #FFFF00;
        box-shadow: 0 0 5px rgba(255, 255, 0, 0.3);
        text-shadow: 0 0 5px rgba(255, 255, 0, 0.5);
        opacity: 0.7;
    }
    100% {
        border-color: #FFFF00;
        box-shadow: 0 0 25px rgba(255, 255, 0, 0.9), 0 0 40px rgba(255, 255, 0, 0.6);
        text-shadow: 0 0 15px rgba(255, 255, 0, 1);
        color: #FFFF00;
        opacity: 1;
    }
}

/* Add a new animation for text twinkling */
@keyframes textTwinkle {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 255, 0, 0.8), 0 0 20px rgba(255, 255, 0, 0.4);
    }
    100% {
        text-shadow: 0 0 25px rgba(255, 255, 0, 1), 0 0 30px rgba(255, 255, 0, 0.7);
    }
}

/* Add a pulsing animation for the button */
@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Thank You Screen */
#thank-you-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #000000, #1a1a1a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(0, 243, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 70% 30%, rgba(255, 0, 102, 0.1) 0%, transparent 30%);
}

#thank-you-screen h1 {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.5vw, 35px);
    color: #fff;
    text-shadow: 0 0 20px var(--neon-blue),
                 0 0 40px var(--neon-pink);
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

#thank-you-screen h2 {
    font-family: var(--font-display);
    font-size: clamp(16px, 2vw, 25px);
    color: var(--neon-blue);
    text-shadow: 0 0 15px var(--neon-blue);
    margin-bottom: 30px;
}

#thank-you-screen p {
    font-family: var(--font-primary);
    font-size: clamp(14px, 1.5vw, 18px);
    color: #fff;
    margin-bottom: 15px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

#thank-you-screen .social-handles {
    font-family: var(--font-primary);
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
    margin-bottom: 40px;
}

#back-btn {
    font-family: var(--font-display);
    font-size: 16px;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

#back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

#back-btn:hover::before {
    left: 100%;
}

#back-btn:hover {
    background: var(--neon-blue);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--neon-blue);
}

/* Hover Effects */
.effect-control:hover label {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
    transform: translateY(-2px);
}

.transport-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--neon-blue);
}

.mic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--neon-blue);
}

/* Hover Effects for Sliders */
.effect-control input[type="range"]:hover {
    background: rgba(0, 243, 255, 0.4);
}

.effect-control input[type="range"]:hover::-webkit-slider-thumb {
    box-shadow: 0 0 15px var(--neon-blue), 0 0 5px var(--neon-pink);
    transform: scale(1.1);
}

.effect-control input[type="range"]:hover::-moz-range-thumb {
    box-shadow: 0 0 15px var(--neon-blue), 0 0 5px var(--neon-pink);
    transform: scale(1.1);
}

#record-btn:hover, #record-btn.active {
    background: rgba(255, 0, 0, 0.9);
    border-color: #ff3333;
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
    transform: translateY(-2px) scale(1.05);
}

#stop-btn:hover {
    background: rgba(68, 68, 255, 0.9);
    box-shadow: 0 0 20px rgba(68, 68, 255, 0.7);
    transform: translateY(-2px) scale(1.05);
}

/* Styles for the JavaScript */
.panel-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-toggle:hover {
    background: rgba(0, 243, 255, 0.2);
}

/* Instructions Screen */
#instructions-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #000000, #1a1a1a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(0, 243, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 70% 30%, rgba(255, 0, 102, 0.1) 0%, transparent 30%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#instructions-screen.active {
    opacity: 1;
    pointer-events: all;
}

.instructions-content {
    text-align: center;
    animation: fadeIn 1s ease-in;
    max-width: 80%;
    padding: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    backdrop-filter: blur(10px);
}

.instructions-content h1 {
    font-family: var(--font-display);
    font-size: clamp(20px, 4vw, 40px);
    color: #fff;
    text-shadow: 0 0 20px var(--neon-blue),
                 0 0 40px var(--neon-pink);
    margin-bottom: 30px;
    animation: glow 2s ease-in-out infinite alternate;
    letter-spacing: 2px;
}

.instructions-content h2 {
    font-family: var(--font-display);
    font-size: clamp(16px, 2.5vw, 25px);
    color: var(--neon-blue);
    text-shadow: 0 0 15px var(--neon-blue);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.instruction-icon {
    flex: 0 0 40px;
    height: 40px;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.instruction-text {
    flex: 1;
    font-family: var(--font-primary);
    font-size: clamp(14px, 1.8vw, 16px);
    color: #fff;
    line-height: 1.5;
}

.instruction-text strong {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

#continue-btn {
    font-family: var(--font-display);
    font-size: 18px;
    padding: 15px 35px;
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    margin-top: 20px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

#continue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

#continue-btn:hover::before {
    left: 100%;
}

#continue-btn:hover {
    background: var(--neon-blue);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--neon-blue);
}

@media (max-width: 767px) {
    .instructions-content {
        padding: 20px;
        width: 90%;
    }
    
    .instruction-icon {
        flex: 0 0 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .instructions-list {
        gap: 15px;
    }
    
    #continue-btn {
        font-size: 16px;
        padding: 12px 25px;
    }
}