/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    background: #0d0d0d;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Circuit Board Background */
.circuit-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.circuit-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circuit-line {
    stroke: #00ffff;
    stroke-width: 1;
    opacity: 0.6;
    filter: drop-shadow(0 0 3px #00ffff);
}

.circuit-node {
    fill: #ff6b6b;
    filter: drop-shadow(0 0 5px #ff6b6b);
    animation: nodePulse 2s ease-in-out infinite alternate;
}

.pulse {
    fill: #00ff00;
    filter: drop-shadow(0 0 8px #00ff00);
    opacity: 0.8;
}

/* Circuit Animation Keyframes */
@keyframes nodePulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* Audio Control */
.audio-control {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.audio-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ffff;
    color: #00ffff;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.audio-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* Main Content */
.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.container {
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

/* Main Title Styling */
.main-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.title-word, .title-year {
    display: inline-block;
    background: linear-gradient(45deg, #00ffff, #ff6b6b, #00ff00, #ffff00, #ff8e53, #9d4edd, #00ffff);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s ease-in-out infinite, gradientShift 6s ease-in-out infinite, colorCycle 8s linear infinite;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3),
        0 0 30px rgba(0, 255, 255, 0.2);
}

.title-year {
    background: linear-gradient(45deg, #ffff00, #ff6b6b, #00ff00, #00ffff, #ff8e53, #9d4edd, #ffff00);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s ease-in-out infinite, gradientShift 6s ease-in-out infinite reverse, colorCycle 10s linear infinite reverse;
    filter: drop-shadow(0 0 15px #ffff00);
}

@keyframes titleGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(0, 255, 255, 1));
        transform: scale(1.02);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes colorCycle {
    0% { 
        background-position: 0% 50%;
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8));
    }
    16.66% { 
        background-position: 16.66% 50%;
        filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.8));
    }
    33.33% { 
        background-position: 33.33% 50%;
        filter: drop-shadow(0 0 20px rgba(0, 255, 0, 0.8));
    }
    50% { 
        background-position: 50% 50%;
        filter: drop-shadow(0 0 20px rgba(255, 255, 0, 0.8));
    }
    66.66% { 
        background-position: 66.66% 50%;
        filter: drop-shadow(0 0 20px rgba(255, 142, 83, 0.8));
    }
    83.33% { 
        background-position: 83.33% 50%;
        filter: drop-shadow(0 0 20px rgba(157, 78, 221, 0.8));
    }
    100% { 
        background-position: 100% 50%;
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8));
    }
}

/* Subtitle */
.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
    color: #cccccc;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Animated Keywords */
.keywords-container {
    height: 60px;
    overflow: hidden;
    margin-bottom: 3rem;
    position: relative;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.keywords-wrapper {
    display: flex;
    flex-direction: row;
    animation: keywordScroll 20s linear infinite;
    white-space: nowrap;
}

.keyword {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    color: #00ff00;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
    background: linear-gradient(90deg, #00ff00, #00ffff, #00ff00);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: keywordGlow 2s ease-in-out infinite alternate;
    padding: 0 2rem;
    min-width: 200px;
}

@keyframes keywordScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes keywordGlow {
    0% { filter: drop-shadow(0 0 5px rgba(0, 255, 0, 0.5)); }
    100% { filter: drop-shadow(0 0 20px rgba(0, 255, 0, 1)); }
}

/* Register Button */
.register-btn {
    position: relative;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53, #ff6b6b);
    background-size: 200% 200%;
    border: none;
    padding: 15px 40px;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #ffffff;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        0 0 20px rgba(255, 107, 107, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: buttonPulse 2s ease-in-out infinite, backgroundShift 3s ease-in-out infinite;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.register-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 30px rgba(255, 107, 107, 0.8),
        0 0 50px rgba(255, 107, 107, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.register-btn:hover .btn-glow {
    transform: scale(1);
}

.register-btn:active {
    transform: scale(0.98);
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.4); }
    50% { box-shadow: 0 0 30px rgba(255, 107, 107, 0.8); }
}

@keyframes backgroundShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Cyberpunk Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(20, 0, 20, 0.9), rgba(0, 0, 0, 0.95));
    backdrop-filter: blur(5px);
}

.modal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 255, 0.03) 2px, rgba(0, 255, 255, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 0, 128, 0.03) 2px, rgba(255, 0, 128, 0.03) 4px);
    pointer-events: none;
    z-index: 1;
}

.modal-content {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 0, 20, 0.9));
    margin: 3% auto;
    padding: 0;
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #ff0080, #00ffff, #8000ff, #ff0080) 1;
    border-radius: 0;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(255, 0, 128, 0.4),
        0 0 60px rgba(0, 255, 255, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    animation: cyberpunkModalAppear 0.8s ease-out;
    position: relative;
    z-index: 10;
}

.modal-header {
    background: linear-gradient(90deg, #ff0080, #8000ff);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    border-bottom: 2px solid #00ffff;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: cyberpunkHeaderScan 4s infinite;
}

@media screen and (max-width: 768px) {
  .keywords-container {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.6); /* slightly darker fallback */
  }
}
@keyframes cyberpunkHeaderScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.5);
    font-family: 'Orbitron', monospace;
}

.close-btn {
    background: rgba(255, 0, 128, 0.2);
    border: 2px solid #ff0080;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.close-btn:hover {
    transform: scale(1.2) rotate(90deg);
    background: rgba(255, 0, 128, 0.4);
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.6);
}

.modal-body {
    padding: 20px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.modal-body iframe {
    border-radius: 10px;
    background: #ffffff;
}

.form-fallback {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: #cccccc;
}

.form-link {
    color: #00ffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-link:hover {
    color: #ff6b6b;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
}

/* Cyberpunk Verification Step Styles */
.verification-step {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 0, 20, 0.8));
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, #ff0080, #00ffff, #ff8000) 1;
    position: relative;
    overflow: hidden;
}

.verification-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: cyberpunkScan 3s infinite;
}

@keyframes cyberpunkScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.verification-content h3 {
    color: #ff0080;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 5px #ff0080,
        0 0 10px #ff0080,
        0 0 15px #ff0080,
        0 0 20px #ff0080;
    animation: cyberpunkGlow 2s ease-in-out infinite alternate;
}

@keyframes cyberpunkGlow {
    from {
        text-shadow: 
            0 0 5px #ff0080,
            0 0 10px #ff0080,
            0 0 15px #ff0080,
            0 0 20px #ff0080;
    }
    to {
        text-shadow: 
            0 0 10px #ff0080,
            0 0 20px #ff0080,
            0 0 30px #ff0080,
            0 0 40px #ff0080;
    }
}

.verification-content p {
    color: #00ffff;
    margin-bottom: 30px;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 1px;
}

.code-input-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    position: relative;
}

.code-input {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ffff;
    border-radius: 0;
    padding: 15px 20px;
    font-size: 1.2rem;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    text-align: center;
    width: 250px;
    outline: none;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        inset 0 0 10px rgba(0, 255, 255, 0.1),
        0 0 10px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.code-input:focus {
    border-color: #ff0080;
    color: #ff0080;
    box-shadow: 
        inset 0 0 15px rgba(255, 0, 128, 0.2),
        0 0 20px rgba(255, 0, 128, 0.5),
        0 0 30px rgba(255, 0, 128, 0.3);
    background: rgba(20, 0, 20, 0.9);
}

.code-input::placeholder {
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.verify-btn {
    background: linear-gradient(45deg, #ff0080, #8000ff);
    border: 2px solid #ff0080;
    border-radius: 0;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 10px rgba(255, 0, 128, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.verify-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 ease;
}

.verify-btn:hover::before {
    left: 100%;
}

.verify-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 20px rgba(255, 0, 128, 0.8),
        0 0 30px rgba(128, 0, 255, 0.5);
    border-color: #8000ff;
}

.verify-btn:active {
    transform: scale(0.98);
}

.verification-message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 0;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.verification-message.success {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #00ff00;
    box-shadow: 
        0 0 15px rgba(0, 255, 0, 0.3),
        inset 0 0 15px rgba(0, 255, 0, 0.1);
    text-shadow: 
        0 0 5px #00ff00,
        0 0 10px #00ff00;
    animation: cyberpunkSuccess 1s ease-in-out;
}

@keyframes cyberpunkSuccess {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.verification-message.error {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0040;
    color: #ff0040;
    box-shadow: 
        0 0 15px rgba(255, 0, 64, 0.4),
        inset 0 0 15px rgba(255, 0, 64, 0.1);
    text-shadow: 
        0 0 5px #ff0040,
        0 0 10px #ff0040;
    animation: cyberpunkError 0.5s ease-in-out;
}

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

.code-hint {
    color: #888;
    font-size: 0.9rem;
    margin-top: 25px;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Cyberpunk Modal Animation */
@keyframes cyberpunkModalAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
        filter: hue-rotate(180deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: hue-rotate(0deg);
    }
}

/* Registration Form Step */
.registration-form-step {
    padding: 20px 0;
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.form-header h3 {
    color: #00ff00;
    margin-bottom: 10px;
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.form-header p {
    color: #cccccc;
    font-size: 1rem;
}

@keyframes modalAppear {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(-50px);
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0);
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0a1a 50%, #0d0d0d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: #ffffff;
}

.loading-content p {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f91880;
    text-shadow: 0 0 15px rgba(249, 24, 128, 0.8);
    animation: loadingTextPulse 2s ease-in-out infinite;
    margin-top: 20px;
}

@keyframes loadingTextPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Squid Game Logo */
.squid-game-logo {
    margin-bottom: 30px;
    position: relative;
}

.logo-shapes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 60px solid #f91880;
    filter: drop-shadow(0 0 25px rgba(249, 24, 128, 0.8));
    animation: logoShapeFloat 3s ease-in-out infinite, logoGlow 2s ease-in-out infinite alternate;
    animation-delay: 0s;
}

.logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #00d4aa;
    filter: drop-shadow(0 0 25px rgba(0, 212, 170, 0.8));
    animation: logoShapeFloat 3s ease-in-out infinite, logoGlow 2s ease-in-out infinite alternate;
    animation-delay: -0.5s;
}

.logo-square {
    width: 60px;
    height: 60px;
    background: #ff6b35;
    filter: drop-shadow(0 0 25px rgba(255, 107, 53, 0.8));
    animation: logoShapeFloat 3s ease-in-out infinite, logoGlow 2s ease-in-out infinite alternate;
    animation-delay: -1s;
}

@keyframes logoShapeFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 15px rgba(249, 24, 128, 0.6));
    }
    100% {
        filter: drop-shadow(0 0 35px rgba(249, 24, 128, 1));
    }
}

.logo-circle {
    animation-name: logoShapeFloat, logoGlowTeal;
}

.logo-square {
    animation-name: logoShapeFloat, logoGlowOrange;
}

@keyframes logoGlowTeal {
    0% {
        filter: drop-shadow(0 0 15px rgba(0, 212, 170, 0.6));
    }
    100% {
        filter: drop-shadow(0 0 35px rgba(0, 212, 170, 1));
    }
}

@keyframes logoGlowOrange {
    0% {
        filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.6));
    }
    100% {
        filter: drop-shadow(0 0 35px rgba(255, 107, 53, 1));
    }
}

.loading-circuit {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    animation: loadingRotate 2s linear infinite;
}

.loading-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #00ff00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: loadingPulse 1s ease-in-out infinite;
    filter: drop-shadow(0 0 10px #00ff00);
}

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

@keyframes loadingPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .subtitle {
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }
    
    .keywords-container {
        margin-bottom: 2rem;
        height: 50px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .keyword {
        height: 50px;
    }
    
    .register-btn {
        padding: 12px 30px;
        margin: 0 10px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-body iframe {
        height: 400px;
    }
    
    .audio-control {
        top: 10px;
        left: 10px;
    }
    
    .audio-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .main-title {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .modal-body iframe {
        height: 350px;
    }
    
    .keywords-container {
        height: 40px;
    }
    
    .keyword {
        height: 40px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .circuit-line {
        stroke-width: 2;
        opacity: 0.8;
    }
    
    .main-title {
        text-shadow: 
            0 0 5px rgba(0, 255, 255, 1),
            0 0 10px rgba(0, 255, 255, 1);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .keywords-wrapper {
        animation: none;
    }
    
    .pulse {
        display: none;
    }
}

/* Print styles */
@media print {
    .audio-control,
    .circuit-background,
    .modal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .main-title,
    .subtitle,
    .keyword {
        color: black;
        text-shadow: none;
        filter: none;
    }
}
