:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --radius: 16px;
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

.background-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #ff9a9e;
    animation: float 10s infinite ease-in-out;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #a18cd1;
    animation: float 12s infinite ease-in-out reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 90%;
    max-width: 420px;
    text-align: center;
    transition: transform 0.3s ease;
}

.shield-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

header h1 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    background: -webkit-linear-gradient(45deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.captcha-selector {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 12px;
}

.captcha-selector button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.captcha-selector button.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.captcha-selector button:hover:not(.active) {
    color: var(--text-main);
}

.captcha-box {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
}

/* Audio Captcha Styles */
.audio-captcha-container {
    width: 100%;
    animation: fadeIn 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.audio-option-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.audio-option-row:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.play-btn-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.play-btn-small:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
}

.select-btn-futuristic {
    flex: 1;
    height: 36px;
    border: 1px solid var(--primary);
    background: transparent;
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.select-btn-futuristic:hover {
    background: rgba(99, 102, 241, 0.1);
}

.select-btn-futuristic.playing {
    background: rgba(99, 102, 241, 0.1);
    /* Light transparent primary */
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.visualizer-canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 8px;
    z-index: 1;
    /* Behind text */
}

/* In-button Visualizer */
.btn-visualizer {
    position: absolute;
    bottom: 0;
    pointer-events: none;
}

.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.v-bar {
    width: 4px;
    background: white;
    border-radius: 2px;
    height: 10%;
    animation: futuristicWave 0.6s infinite ease-in-out;
}

.v-bar:nth-child(1) {
    animation-delay: 0.0s;
}

.v-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.v-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.v-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.v-bar:nth-child(5) {
    animation-delay: 0.4s;
}

.v-bar:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes futuristicWave {

    0%,
    100% {
        height: 10%;
        opacity: 0.5;
    }

    50% {
        height: 80%;
        opacity: 1;
    }
}

/* Main Audio Progress Bar */
.main-progress-container {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    margin: 0 auto 1.5rem auto;
    overflow: hidden;
    position: relative;
}

.main-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.option-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.bar:nth-child(2) {
    height: 40px;
    animation-delay: 0.1s;
}

.bar:nth-child(3) {
    height: 50px;
    animation-delay: 0.2s;
}

.bar:nth-child(4) {
    height: 30px;
    animation-delay: 0.3s;
}

.bar:nth-child(5) {
    height: 40px;
    animation-delay: 0.4s;
}

@keyframes soundWave {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.5);
    }
}

.play-btn-large {
    background: var(--primary);
    color: white;
    border: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.play-btn-large:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.option-btn {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

.option-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eef2ff;
    transform: translateY(-2px);
}

/* Image Captcha Styles */
.image-captcha-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: crosshair;
    animation: fadeIn 0.4s ease;
}

.image-captcha-container img {
    width: 100%;
    display: block;
}

.selection-box {
    position: absolute;
    border: 2px solid #fff;
    background: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* Status Messages */
.status {
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    animation: slideUp 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.status.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.hidden {
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.click-counter {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ef4444;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

@keyframes popIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.skip-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}

.skip-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.skip-btn.active {
    border-color: #ef4444;
    color: #ef4444;
    font-weight: bold;
}

/* DVD Screensaver Effect */
.dvd-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.dvd-bouncer {
    position: absolute;
    width: auto;
    transition: background 0.3s;
}

/* Video Round */
.video-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: black;
    margin-bottom: 1rem;
    position: relative;
}

.video-container video {
    width: 100%;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: bold;
    z-index: 10;
}

.human-check-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
}

.human-check-btn:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
}

.video-progress {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-family: monospace;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 5;
    pointer-events: none;
}

.still-watching-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    color: white;
}

.continue-btn {
    margin-top: 1rem;
    background: #6366f1;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s;
}

.continue-btn:hover {
    transform: scale(1.05);
    background: #4f46e5;
}

/* Mario Jumper */
.mario-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #87ceeb;
    /* Sky blue */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 4px solid #333;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.mario-canvas {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

/* Laser Maze */
.laser-maze-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid #333;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.laser-canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.maze-instruction {
    text-align: center;
    color: #a78bfa;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.maze-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.maze-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.maze-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}