        :root {
            --color-bg-primary: #0B4F9C; 
            --color-bg-secondary: #083A72;
            --color-bg-secondary-rgb: 8, 58, 114;
            --color-bg-input: #083A72;
            --color-border: #2A79C7;
            --color-border-rgb: 42, 121, 199;
            --color-accent: #FFD700; 
            --color-accent-rgb: 255, 215, 0;
            --color-text-primary: #FFFFFF;
            --color-text-secondary: #cce1ff;
            --color-success: #70C000; 
            --color-success-dark: #5a9c00;
            --color-success-rgb: 112, 192, 0;
            --color-error: #ef4444;
            --color-warning: #fbbf24;
        }

        html, body {
            height: 100%;
            overflow: hidden; 
        }
        body {
            display: flex;
            flex-direction: column;
            background-color: var(--color-bg-primary);
            color: var(--color-text-primary);
            font-family: 'Nunito', sans-serif;
            transition: background-color 0.3s ease, color 0.3s ease;
            background-image: linear-gradient(170deg, #1f73d9 0%, #0b4f9c 100%);
        }
        main {
            flex-grow: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        header {
            background-color: rgba(var(--color-bg-secondary-rgb), 0.5);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            transition: background-color 0.3s ease;
        }
        footer {
            flex-shrink: 0;
        }
        
        h1, h2, h3, .heading-font {
            font-family: 'Luckiest Guy', cursive;
            letter-spacing: 1px;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.25);
        }

        .mfp-bg {
            background: rgba(var(--color-bg-secondary-rgb), 0.8);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }
        .mfp-zoom-in .mfp-content {
            opacity: 0;
            transform: scale(0.95);
            transition: all 0.3s ease-in-out;
        }
        .mfp-zoom-in.mfp-ready .mfp-content {
            opacity: 1;
            transform: scale(1);
        }
        .mfp-zoom-in.mfp-removing .mfp-content {
            opacity: 0;
            transform: scale(0.95);
        }
        #modal-container {
            background: var(--color-bg-secondary);
            border: 4px solid var(--color-accent);
            box-shadow: 0 0 0 6px rgba(0,0,0,0.1), 0 10px 40px rgba(0,0,0,0.4);
            transition: opacity 0.3s ease-in-out, max-width 0.3s ease, background 2s ease;
            overflow: hidden;
            border-radius: 1.5rem;
        }
        #modal-container.is-hiding {
            opacity: 0;
        }
        
        @keyframes pulse-glow-success {
            0%, 100% { box-shadow: 0 0 20px rgba(var(--color-success-rgb), 0.4); }
            50% { box-shadow: 0 0 35px rgba(var(--color-success-rgb), 0.7); }
        }
        @keyframes pulse-glow-gold {
            0%, 100% { box-shadow: 0 0 20px rgba(var(--color-accent-rgb), 0.3); }
            50% { box-shadow: 0 0 30px rgba(var(--color-accent-rgb), 0.5); }
        }
        
        .game-button {
            font-family: 'Luckiest Guy', cursive;
            background-color: var(--color-success);
            color: white;
            border-radius: 12px;
            border: 2px solid white;
            border-bottom: 6px solid var(--color-success-dark);
            text-transform: uppercase;
            transition: all 0.15s ease-out;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
        }
        .game-button:hover {
             filter: brightness(1.05);
             transform: translateY(-2px);
        }
        .game-button:active {
             transform: translateY(1px);
             border-bottom-width: 4px;
        }
        .game-button:disabled {
            background-color: #9E9E9E;
            border-color: #E0E0E0;
            border-bottom-color: #757575;
            cursor: not-allowed;
            opacity: 0.7;
        }
        #hero-cta-btn {
             animation: pulse-glow-success 3s infinite ease-in-out;
        }
        
        .checklist-item {
            transition: color 0.4s ease-in-out;
            overflow: hidden;
            position: relative;
        }
        .checklist-item .checkmark {
            position: absolute; right: 0; opacity: 0; transform: scale(0.5); stroke-dasharray: 24; stroke-dashoffset: 24;
            transition: opacity 0.3s 0.3s ease-out, transform 0.3s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), stroke-dashoffset 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .checklist-item.completed { color: var(--color-success); }
        .checklist-item.completed .checkmark { opacity: 1; stroke-dashoffset: 0; transform: scale(1); }
        #generation-progress-bar-container {
            width: 100%; background-color: var(--color-bg-input); border-radius: 9999px; height: 10px; margin-bottom: 1.5rem;
            border: 2px solid var(--color-border); overflow: hidden; padding: 2px;
        }
        #generation-progress-bar {
            width: 0%; height: 100%; background-color: var(--color-accent); border-radius: 9999px;
            transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        
        .selection-card {
            background-color: var(--color-bg-input);
            transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
        }
        .selection-card:hover {
            border-color: var(--color-accent); transform: translateY(-4px); box-shadow: 0 0 15px rgba(var(--color-accent-rgb), 0.4);
        }
        .selection-card.selected {
             border-color: var(--color-accent); box-shadow: 0 0 20px rgba(var(--color-accent-rgb), 0.6);
             transform: translateY(-4px) scale(1.05); border-width: 3px;
        }
        #username-input {
             transition: all 0.2s ease-in-out; border-radius: 8px;
        }
        #username-input:focus {
            box-shadow: 0 0 10px rgba(var(--color-accent-rgb), 0.5);
            border-color: var(--color-accent);
        }
		#captcha-target { margin-left: auto; margin-right: auto; }
        
        #countdown-timer.urgent {
            color: var(--color-error); animation: pulse-urgent 1s infinite;
        }
        @keyframes pulse-urgent { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
