        @font-face {
            font-family: 'Orbitron';
            font-style: normal;
            font-weight: 400;
            font-display: swap;
            src: url('../assets/fonts/Orbitron-Regular.ttf') format('truetype');
        }

        @font-face {
            font-family: 'Orbitron';
            font-style: normal;
            font-weight: 700;
            font-display: swap;
            src: url('../assets/fonts/Orbitron-Bold.ttf') format('truetype');
        }

        @font-face {
            font-family: 'Orbitron';
            font-style: normal;
            font-weight: 900;
            font-display: swap;
            src: url('../assets/fonts/Orbitron-Black.ttf') format('truetype');
        }

        @font-face {
            font-family: 'Press Start 2P';
            font-style: normal;
            font-weight: 400;
            font-display: swap;
            src: url('../assets/fonts/PressStart2P-Regular.ttf') format('truetype');
        }

        :root {
            --neon-pink: #ff2d75;
            --neon-cyan: #42f5ff;
            --neon-orange: #ff8a00;
            --deep-blue: #0b0b1a;
            --panel-bg: rgba(8, 8, 20, 0.92);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Orbitron', sans-serif;
            background: radial-gradient(circle at top, #1b1b35 0%, #0a0a0a 50%, #050509 100%);
            min-height: 100vh;
            overflow: hidden;
            user-select: none;
            color: #e9e9ff;
        }

        .hidden {
            display: none !important;
        }

        .screen {
            display: none;
            width: 100vw;
            height: 100vh;
            position: absolute;
            top: 0;
            left: 0;
        }

        .screen.active {
            display: flex;
        }

        .screen::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 20% 20%, rgba(66, 245, 255, 0.12), transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(255, 45, 117, 0.12), transparent 45%),
                radial-gradient(circle at 60% 80%, rgba(255, 138, 0, 0.1), transparent 45%);
            pointer-events: none;
            z-index: 0;
        }

        .screen > * {
            position: relative;
            z-index: 1;
        }

        /* Selection Screen */
        #selectionScreen {
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
            padding: 10px;
        }

        .scanlines {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            background: repeating-linear-gradient(0deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 1px, transparent 1px, transparent 2px);
            z-index: 1000;
        }

        .title {
            font-family: 'Press Start 2P', cursive;
            font-size: 2.2rem;
            color: #ff0040;
            text-shadow: 0 0 20px #ff0040, 0 0 40px #ff0040, 4px 4px 0 #000;
            margin-bottom: 3px;
            animation: glow 2s ease-in-out infinite;
            letter-spacing: 4px;
        }

        @keyframes glow {
            0%, 100% { text-shadow: 0 0 10px #ff0040, 0 0 20px #ff0040, 4px 4px 0 #000; }
            50% { text-shadow: 0 0 20px #ff0040, 0 0 40px #ff0040, 0 0 60px #ff0040, 4px 4px 0 #000; }
        }

        .subtitle {
            color: #00ffff;
            font-size: 0.75rem;
            margin-bottom: 5px;
            animation: pulse 2s infinite;
            text-shadow: 0 0 10px #00ffff;
        }

        .selection-hint {
            color: #888;
            font-size: 0.6rem;
            margin-bottom: 10px;
            background: rgba(0,0,0,0.5);
            padding: 8px 15px;
            border-radius: 5px;
            border: 1px solid #333;
        }

        .selection-hint span.p1-hint { color: #00ffff; font-weight: bold; }
        .selection-hint span.p2-hint { color: #ff6600; font-weight: bold; }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .main-selection-area {
            display: flex;
            gap: 15px;
            align-items: stretch;
            width: 100%;
            max-width: 1400px;
            flex: 1;
            min-height: 0;
        }

        /* Character Preview Panels */
        .character-preview {
            width: 300px;
            background: rgba(0,0,0,0.9);
            border: 3px solid;
            border-radius: 15px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            overflow-y: auto;
            overflow-x: hidden;
        }

        .character-preview.p1 {
            border-color: #00ffff;
            box-shadow: 0 0 30px rgba(0,255,255,0.3), inset 0 0 50px rgba(0,255,255,0.1);
            background: linear-gradient(135deg, rgba(0,30,40,0.9) 0%, rgba(0,0,0,0.95) 100%);
        }

        .character-preview.p2 {
            border-color: #ff6600;
            box-shadow: 0 0 30px rgba(255,102,0,0.3), inset 0 0 50px rgba(255,102,0,0.1);
            background: linear-gradient(135deg, rgba(40,20,0,0.9) 0%, rgba(0,0,0,0.95) 100%);
        }

        .preview-label {
            font-family: 'Press Start 2P', cursive;
            font-size: 0.9rem;
            margin-bottom: 8px;
            text-shadow: 0 0 10px currentColor;
        }

        .character-preview.p1 .preview-label { color: #00ffff; }
        .character-preview.p2 .preview-label { color: #ff6600; }

        .preview-image-container {
            width: 140px;
            height: 140px;
            border: 4px solid #333;
            border-radius: 10px;
            overflow: hidden;
            background: linear-gradient(180deg, #1a1a2e 0%, #0a0a15 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 8px;
            position: relative;
            flex-shrink: 0;
        }

        .character-preview.p1 .preview-image-container {
            border-color: #00ffff;
            box-shadow: 0 0 20px rgba(0,255,255,0.5), inset 0 0 30px rgba(0,255,255,0.2);
        }

        .character-preview.p2 .preview-image-container {
            border-color: #ff6600;
            box-shadow: 0 0 20px rgba(255,102,0,0.5), inset 0 0 30px rgba(255,102,0,0.2);
        }

        .preview-image-container img {
            width: 100%;
            height: 100%;
            object-fit: fill;
            animation: floatChar 3s ease-in-out infinite;
        }

        @keyframes floatChar {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

        .preview-image-container .placeholder {
            font-family: 'Press Start 2P', cursive;
            font-size: 3rem;
            color: #333;
        }

        .preview-name {
            font-family: 'Press Start 2P', cursive;
            font-size: 1rem;
            color: white;
            margin-bottom: 3px;
            text-shadow: 0 0 10px currentColor, 2px 2px 0 #000;
        }

        .preview-title {
            font-size: 0.65rem;
            color: #888;
            margin-bottom: 10px;
            font-style: italic;
        }

        .stats-container {
            width: 100%;
            background: rgba(0,0,0,0.3);
            padding: 8px;
            border-radius: 8px;
            border: 1px solid #333;
        }

        .stat-row {
            display: flex;
            align-items: center;
            margin: 5px 0;
            gap: 8px;
        }

        .stat-label {
            font-size: 0.55rem;
            color: #aaa;
            width: 55px;
            text-transform: uppercase;
            font-weight: bold;
        }

        .stat-bar-bg {
            flex: 1;
            height: 12px;
            background: #111;
            border-radius: 6px;
            overflow: hidden;
            border: 1px solid #444;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
        }

        .stat-bar-fill {
            height: 100%;
            border-radius: 6px;
            transition: width 0.5s ease;
            box-shadow: 0 0 10px currentColor;
        }

        .stat-bar-fill.power { background: linear-gradient(90deg, #ff0040, #ff4080); }
        .stat-bar-fill.speed { background: linear-gradient(90deg, #00ff00, #80ff80); }
        .stat-bar-fill.defense { background: linear-gradient(90deg, #0080ff, #40a0ff); }
        .stat-bar-fill.special { background: linear-gradient(90deg, #ff00ff, #ff80ff); }

        .abilities-section {
            width: 100%;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 2px solid #333;
        }

        .abilities-title {
            font-size: 0.6rem;
            color: #888;
            margin-bottom: 6px;
            text-transform: uppercase;
            font-weight: bold;
            letter-spacing: 2px;
        }

        .ability-item {
            font-size: 0.5rem;
            color: #ccc;
            margin: 6px 0;
            padding: 8px;
            background: rgba(255,255,255,0.03);
            border-radius: 6px;
            border-left: 4px solid;
            transition: all 0.2s;
        }

        .ability-item:hover {
            background: rgba(255,255,255,0.08);
            transform: translateX(3px);
        }

        .ability-item.basic-ability { border-left-color: #ffff00; }
        .ability-item.special-ability { border-left-color: #00ffff; }
        .ability-item.ultimate-ability { border-left-color: #ff00ff; background: rgba(255,0,255,0.05); }

        .ability-name {
            font-family: 'Press Start 2P', cursive;
            font-size: 0.5rem;
            display: block;
            margin-bottom: 4px;
        }

        .ability-item.basic-ability .ability-name { color: #ffff00; }
        .ability-item.special-ability .ability-name { color: #00ffff; }
        .ability-item.ultimate-ability .ability-name { color: #ff00ff; text-shadow: 0 0 10px #ff00ff; }

        .ability-desc {
            color: #999;
            font-size: 0.45rem;
            line-height: 1.5;
        }

        .ability-stats {
            color: #66ff66;
            font-size: 0.45rem;
            margin-top: 3px;
            display: block;
            font-weight: bold;
        }

        .ability-key {
            display: inline-block;
            background: #333;
            color: #fff;
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 0.4rem;
            margin-right: 5px;
            border: 1px solid #555;
        }

        /* Character Grid */
        .selection-center {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .vs-text {
            font-family: 'Press Start 2P', cursive;
            font-size: 2rem;
            color: #ff0040;
            text-shadow: 0 0 30px #ff0040, 4px 4px 0 #000;
            margin-bottom: 15px;
            animation: glow 1s ease-in-out infinite;
        }

        .character-roster {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
            max-width: 550px;
        }

        .char-card {
            width: 100px;
            height: 130px;
            border: 3px solid #444;
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s ease;
            background: linear-gradient(180deg, #1a1a2e 0%, #0a0a15 100%);
            position: relative;
            box-shadow: 0 5px 15px rgba(0,0,0,0.5);
        }

        .char-card:hover {
            transform: scale(1.15) translateY(-5px);
            border-color: #fff;
            box-shadow: 0 10px 40px rgba(255,255,255,0.3);
            z-index: 10;
        }

        .char-card.selected-p1 {
            border-color: #00ffff;
            box-shadow: 0 0 30px #00ffff, inset 0 0 20px rgba(0,255,255,0.2);
        }

        .char-card.selected-p2 {
            border-color: #ff6600;
            box-shadow: 0 0 30px #ff6600, inset 0 0 20px rgba(255,102,0,0.2);
        }

        .char-card.selected-p1.selected-p2 {
            border-color: #fff;
            box-shadow: 0 0 20px #00ffff, 0 0 40px #ff6600;
            animation: dualGlow 1s infinite;
        }

        @keyframes dualGlow {
            0%, 100% { box-shadow: 0 0 30px #00ffff, 0 0 15px #ff6600; }
            50% { box-shadow: 0 0 15px #00ffff, 0 0 30px #ff6600; }
        }

        .char-card .char-img-container {
            width: 100%;
            height: 95px;
            overflow: hidden;
            background: #111;
        }

        .char-card img {
            width: 100%;
            height: 100%;
            object-fit: fill;
        }

        .char-card .name {
            font-family: 'Press Start 2P', cursive;
            font-size: 0.45rem;
            color: white;
            padding: 6px 4px;
            background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,1) 100%);
            text-align: center;
            text-shadow: 0 0 5px currentColor;
        }

        .selection-indicators {
            position: absolute;
            top: 5px;
            left: 5px;
            display: flex;
            gap: 3px;
            z-index: 5;
        }

        .p-indicator {
            font-family: 'Press Start 2P', cursive;
            font-size: 0.45rem;
            padding: 3px 5px;
            border-radius: 4px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.5);
        }

        .p-indicator.p1 {
            background: linear-gradient(180deg, #00ffff, #0088aa);
            color: #000;
        }

        .p-indicator.p2 {
            background: linear-gradient(180deg, #ff6600, #aa4400);
            color: #000;
        }

        .start-btn {
            margin-top: 15px;
            padding: 15px 50px;
            font-family: 'Press Start 2P', cursive;
            font-size: 0.9rem;
            background: linear-gradient(180deg, #00cc00 0%, #006600 100%);
            color: white;
            border: 4px solid #00ff00;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-shadow: 0 0 10px #00ff00, 2px 2px 0 #000;
            box-shadow: 0 5px 20px rgba(0,255,0,0.3);
        }

        .start-btn:hover:not(:disabled) {
            transform: scale(1.1);
            box-shadow: 0 5px 40px rgba(0,255,0,0.6);
        }

        .start-btn:disabled {
            background: linear-gradient(180deg, #333 0%, #222 100%);
            border-color: #555;
            color: #555;
            cursor: not-allowed;
            text-shadow: none;
            box-shadow: none;
        }

        /* Controls Screen */
        #controlsScreen {
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
            padding: 40px;
        }

        .controls-container {
            display: flex;
            gap: 80px;
            margin: 30px 0;
        }

        .controls-panel {
            background: rgba(0,0,0,0.8);
            border: 3px solid;
            border-radius: 20px;
            padding: 25px;
            min-width: 280px;
        }

        .controls-panel.p1 {
            border-color: #00ffff;
            box-shadow: 0 0 30px rgba(0,255,255,0.3);
        }

        .controls-panel.p2 {
            border-color: #ff6600;
            box-shadow: 0 0 30px rgba(255,102,0,0.3);
        }

        .controls-title {
            font-family: 'Press Start 2P', cursive;
            font-size: 1.3rem;
            margin-bottom: 20px;
            text-align: center;
        }

        .controls-panel.p1 .controls-title { color: #00ffff; }
        .controls-panel.p2 .controls-title { color: #ff6600; }

        .control-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 12px 0;
            color: white;
        }

        .key {
            background: linear-gradient(180deg, #444 0%, #222 100%);
            border: 2px solid #666;
            border-radius: 8px;
            padding: 8px 12px;
            font-family: 'Press Start 2P', cursive;
            font-size: 0.7rem;
            color: white;
            min-width: 45px;
            text-align: center;
        }

        .action {
            font-size: 0.8rem;
        }

        .continue-btn {
            padding: 18px 50px;
            font-family: 'Press Start 2P', cursive;
            font-size: 0.9rem;
            background: linear-gradient(180deg, #ff0040 0%, #aa0030 100%);
            color: white;
            border: 4px solid #ff0040;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            animation: pulse 1s infinite;
        }

        .continue-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 0 40px #ff0040;
        }

        /* Fight Screen */
        #fightScreen {
            flex-direction: column;
            background: #000;
        }

        /* Arena Maps */
        .arena {
            flex: 1;
            position: relative;
            overflow: hidden;
        }

        .arena.temple {
            background: linear-gradient(180deg, #1a0a2e 0%, #2a1a4e 30%, #1a2a3e 60%, #0a1a2e 100%);
        }

        .arena.temple .arena-floor {
            background: linear-gradient(180deg, #4a3a2a 0%, #2a1a0a 100%);
            border-top-color: #ff0040;
        }

        .arena.volcano {
            background: linear-gradient(180deg, #2a0a0a 0%, #4a1a0a 30%, #3a2a1a 60%, #1a0a0a 100%);
        }

        .arena.volcano .arena-floor {
            background: linear-gradient(180deg, #3a2a2a 0%, #1a0a0a 100%);
            border-top-color: #ff4400;
            box-shadow: 0 -20px 60px rgba(255,68,0,0.5);
        }

        .arena.volcano::before {
            content: '';
            position: absolute;
            bottom: 100px;
            left: 0;
            right: 0;
            height: 200px;
            background: linear-gradient(180deg, transparent 0%, rgba(255,68,0,0.1) 100%);
            pointer-events: none;
        }

        .arena.cyber {
            background: linear-gradient(180deg, #0a0a1a 0%, #1a1a3a 30%, #0a2a3a 60%, #0a0a2a 100%);
        }

        .arena.cyber .arena-floor {
            background: linear-gradient(180deg, #1a2a3a 0%, #0a1a2a 100%);
            border-top-color: #00ffff;
            box-shadow: 0 -20px 60px rgba(0,255,255,0.3);
        }

        .arena.cyber::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: repeating-linear-gradient(90deg, transparent 0px, transparent 50px, rgba(0,255,255,0.03) 50px, rgba(0,255,255,0.03) 51px),
                        repeating-linear-gradient(0deg, transparent 0px, transparent 50px, rgba(0,255,255,0.03) 50px, rgba(0,255,255,0.03) 51px);
            pointer-events: none;
        }

        .arena.forest {
            background: linear-gradient(180deg, #0a1a0a 0%, #1a3a1a 30%, #0a2a0a 60%, #0a1a0a 100%);
        }

        .arena.forest .arena-floor {
            background: linear-gradient(180deg, #2a3a1a 0%, #1a2a0a 100%);
            border-top-color: #44ff44;
            box-shadow: 0 -20px 60px rgba(68,255,68,0.2);
        }

        .arena-floor {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 100px;
            background: linear-gradient(180deg, #333 0%, #111 100%);
            border-top: 4px solid #ff0040;
            box-shadow: 0 -20px 60px rgba(255,0,64,0.3);
        }

        .arena-bg {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 100px;
            background: radial-gradient(ellipse at 50% 100%, rgba(255,0,64,0.2) 0%, transparent 50%);
            pointer-events: none;
        }

        .pillar {
            position: absolute;
            bottom: 100px;
            width: 60px;
            height: 300px;
            background: linear-gradient(90deg, #222 0%, #444 50%, #222 100%);
            border-top: 10px solid #666;
        }

        .pillar.left { left: 50px; }
        .pillar.right { right: 50px; }

        .map-name {
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            font-family: 'Press Start 2P', cursive;
            font-size: 0.6rem;
            color: rgba(255,255,255,0.3);
            text-transform: uppercase;
            letter-spacing: 3px;
        }

        /* HUD */
        .hud {
            height: 110px;
            background: linear-gradient(180deg, #111 0%, #000 100%);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 30px;
            border-bottom: 4px solid #ff0040;
            position: relative;
        }

        .surrender-btn {
            position: absolute;
            top: 5px;
            right: 45px;
            padding: 6px 12px;
            font-size: 0.6rem;
            letter-spacing: 2px;
        }

        .help-btn {
            position: absolute;
            top: 5px;
            right: 5px;
            width: 30px;
            height: 30px;
            background: rgba(255,255,255,0.1);
            border: 2px solid #666;
            border-radius: 50%;
            color: #888;
            font-family: 'Press Start 2P', cursive;
            font-size: 0.6rem;
            cursor: pointer;
            transition: all 0.2s;
            z-index: 100;
        }

        .help-btn:hover {
            background: rgba(255,255,255,0.2);
            border-color: #fff;
            color: #fff;
        }

        .player-hud {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .player-hud.p2 {
            flex-direction: row-reverse;
        }

        .player-portrait {
            width: 65px;
            height: 65px;
            border: 3px solid;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 0 15px currentColor;
        }

        .player-hud.p1 .player-portrait { border-color: #00ffff; }
        .player-hud.p2 .player-portrait { border-color: #ff6600; }

        .player-portrait img {
            width: 100%;
            height: 100%;
            object-fit: fill;
        }

        .player-stats {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .player-name-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .player-name {
            font-family: 'Press Start 2P', cursive;
            font-size: 0.7rem;
            text-shadow: 0 0 10px currentColor;
        }

        .player-hud.p1 .player-name { color: #00ffff; }
        .player-hud.p2 .player-name { color: #ff6600; }

        .round-wins {
            display: flex;
            gap: 4px;
        }

        .round-pip {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #333;
            border: 2px solid #555;
        }

        .round-pip.won {
            background: #ffd700;
            border-color: #ffaa00;
            box-shadow: 0 0 8px #ffd700;
        }

        .health-bar {
            width: 280px;
            height: 24px;
            background: #222;
            border: 2px solid #666;
            border-radius: 6px;
            overflow: hidden;
            position: relative;
            box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
        }

        .health-fill {
            height: 100%;
            background: linear-gradient(180deg, #00ff00 0%, #00cc00 50%, #009900 100%);
            transition: width 0.3s ease;
            position: relative;
            box-shadow: 0 0 10px #00ff00;
        }

        .health-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 50%;
            background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
        }

        .health-fill.low {
            background: linear-gradient(180deg, #ff0000 0%, #cc0000 50%, #990000 100%);
            box-shadow: 0 0 10px #ff0000;
            animation: lowHealthPulse 0.5s infinite;
        }

        @keyframes lowHealthPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .health-fill.medium {
            background: linear-gradient(180deg, #ffff00 0%, #cccc00 50%, #999900 100%);
            box-shadow: 0 0 10px #ffff00;
        }

        .ultimate-bar {
            width: 280px;
            height: 12px;
            background: #111;
            border: 2px solid #444;
            border-radius: 4px;
            overflow: hidden;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
        }

        .ultimate-fill {
            height: 100%;
            background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
            background-size: 200% 100%;
            animation: ultimateShine 2s linear infinite;
            transition: width 0.3s ease;
            box-shadow: 0 0 10px #ff00ff;
        }

        .ultimate-fill.ready {
            animation: ultimateReady 0.3s infinite;
        }

        @keyframes ultimateReady {
            0%, 100% { box-shadow: 0 0 10px #ff00ff; }
            50% { box-shadow: 0 0 25px #ff00ff, 0 0 40px #00ffff; }
        }

        @keyframes ultimateShine {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .timer-container {
            text-align: center;
        }

        .round-display {
            font-family: 'Press Start 2P', cursive;
            font-size: 0.6rem;
            color: #888;
            margin-bottom: 5px;
        }

        .timer {
            font-family: 'Press Start 2P', cursive;
            font-size: 2.2rem;
            color: #ff0040;
            text-shadow: 0 0 20px #ff0040, 2px 2px 0 #000;
            min-width: 80px;
            text-align: center;
        }

        .cooldowns {
            display: flex;
            gap: 8px;
            margin-top: 4px;
        }

        .cooldown-icon {
            width: 30px;
            height: 30px;
            border: 2px solid #444;
            border-radius: 6px;
            background: #222;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.55rem;
            color: #555;
            position: relative;
            overflow: hidden;
            font-family: 'Press Start 2P', cursive;
        }

        .cooldown-icon.ready {
            border-color: #00ff00;
            color: #00ff00;
            box-shadow: 0 0 10px rgba(0,255,0,0.5);
            background: rgba(0,255,0,0.1);
        }

        .cooldown-icon.ultimate.ready {
            border-color: #ff00ff;
            color: #ff00ff;
            box-shadow: 0 0 15px rgba(255,0,255,0.7);
            background: rgba(255,0,255,0.2);
            animation: ultimateIconPulse 0.5s infinite;
        }

        @keyframes ultimateIconPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        /* Fighter */
        .fighter {
            position: absolute;
            width: 80px;
            height: 120px;
            transition: transform 0.05s linear;
        }

        .fighter-sprite {
            width: 100%;
            height: 100%;
            object-fit: fill;
            filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
            transition: filter 0.1s, transform 0.1s;
        }

        .fighter.p1 .fighter-sprite {
            filter: drop-shadow(0 0 15px rgba(0,255,255,0.5));
        }

        .fighter.p2 .fighter-sprite {
            filter: drop-shadow(0 0 15px rgba(255,102,0,0.5));
            transform: scaleX(-1);
        }

        .fighter.attacking .fighter-sprite {
            filter: drop-shadow(0 0 30px rgba(255,255,0,0.8)) brightness(1.3);
        }

        .fighter.hit {
            animation: hitFlash 0.15s ease;
        }

        @keyframes hitFlash {
            0%, 100% { filter: brightness(1); }
            50% { filter: brightness(3) sepia(1) saturate(5) hue-rotate(-20deg); }
        }

        .fighter.blocking .fighter-sprite {
            filter: drop-shadow(0 0 25px rgba(0,100,255,0.9));
        }

        /* Character-specific effects */
        .maru-punch {
            width: 80px;
            height: 80px;
            background: radial-gradient(circle, rgba(255,100,0,0.9) 0%, rgba(255,50,0,0.6) 40%, transparent 70%);
            border-radius: 50%;
            animation: maruPunchExpand 0.3s ease-out forwards;
        }

        @keyframes maruPunchExpand {
            0% { transform: scale(0.5); opacity: 1; }
            100% { transform: scale(2); opacity: 0; }
        }

        .maru-slam {
            width: 300px;
            height: 80px;
            background: linear-gradient(180deg, rgba(255,100,0,0.9) 0%, rgba(255,50,0,0.5) 50%, transparent 100%);
            border-radius: 50%;
            animation: maruSlamExpand 0.6s ease-out forwards;
        }

        @keyframes maruSlamExpand {
            0% { transform: scaleX(0.3) scaleY(1); opacity: 1; }
            100% { transform: scaleX(2) scaleY(0.2); opacity: 0; }
        }

        .maru-meteor {
            width: 120px;
            height: 120px;
            background: radial-gradient(circle, #fff 0%, #ff0 20%, #f80 40%, #f00 60%, transparent 80%);
            border-radius: 50%;
            animation: meteorFall 0.8s ease-in forwards;
            box-shadow: 0 0 50px #ff0, 0 0 100px #f00;
        }

        @keyframes meteorFall {
            0% { transform: translateY(-200px) scale(0.5); opacity: 0; }
            50% { opacity: 1; }
            100% { transform: translateY(0) scale(1.5); opacity: 0; }
        }

        .pman-jab {
            width: 60px;
            height: 20px;
            background: linear-gradient(90deg, transparent, rgba(0,255,0,0.9), transparent);
            animation: pmanJab 0.15s ease-out forwards;
        }

        @keyframes pmanJab {
            0% { transform: scaleX(0); opacity: 1; }
            100% { transform: scaleX(2); opacity: 0; }
        }

        .pman-dash {
            width: 200px;
            height: 60px;
            background: linear-gradient(90deg, transparent, rgba(0,255,0,0.3), rgba(0,255,0,0.6), rgba(0,255,0,0.3), transparent);
            animation: pmanDash 0.3s ease-out forwards;
        }

        @keyframes pmanDash {
            0% { transform: scaleX(0); opacity: 1; }
            100% { transform: scaleX(1.5); opacity: 0; }
        }

        .pman-blitz {
            width: 150px;
            height: 150px;
            background: repeating-conic-gradient(from 0deg, rgba(0,255,0,0.8) 0deg 10deg, transparent 10deg 20deg);
            border-radius: 50%;
            animation: pmanBlitz 1s linear forwards;
        }

        @keyframes pmanBlitz {
            0% { transform: rotate(0deg) scale(0.5); opacity: 1; }
            100% { transform: rotate(720deg) scale(2); opacity: 0; }
        }

        .trigger-slash {
            width: 120px;
            height: 8px;
            background: linear-gradient(90deg, transparent, #ff0040, #fff, #ff0040, transparent);
            transform-origin: left center;
            animation: triggerSlash 0.2s ease-out forwards;
        }

        @keyframes triggerSlash {
            0% { transform: scaleX(0) rotate(-15deg); opacity: 1; }
            50% { transform: scaleX(1.2) rotate(0deg); }
            100% { transform: scaleX(0.8) rotate(15deg); opacity: 0; }
        }

        .trigger-execute {
            width: 100px;
            height: 100px;
            border: 4px solid #ff0040;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255,0,64,0.3) 0%, transparent 70%);
            animation: triggerExecute 0.5s ease-out forwards;
        }

        @keyframes triggerExecute {
            0% { transform: scale(0.5); opacity: 1; border-width: 8px; }
            50% { transform: scale(1.2); border-width: 2px; }
            100% { transform: scale(1.5); opacity: 0; border-width: 1px; }
        }

        .trigger-judgment {
            width: 200px;
            height: 400px;
            background: linear-gradient(180deg, rgba(255,0,64,0) 0%, rgba(255,0,64,0.8) 50%, rgba(255,0,64,0) 100%);
            animation: triggerJudgment 0.8s ease-out forwards;
        }

        @keyframes triggerJudgment {
            0% { transform: scaleY(0); opacity: 1; }
            30% { transform: scaleY(1); opacity: 1; }
            100% { transform: scaleY(1); opacity: 0; }
        }

        .worm-bolt {
            width: 30px;
            height: 30px;
            background: radial-gradient(circle, #fff 0%, #a0f 30%, #60c 60%, transparent 80%);
            border-radius: 50%;
            box-shadow: 0 0 20px #a0f, 0 0 40px #60c;
            animation: wormBoltPulse 0.1s infinite alternate;
        }

        @keyframes wormBoltPulse {
            0% { transform: scale(1); }
            100% { transform: scale(1.3); }
        }

        .worm-void {
            width: 80px;
            height: 80px;
            background: radial-gradient(circle, #000 0%, #309 40%, transparent 70%);
            border-radius: 50%;
            border: 3px solid #a0f;
            animation: wormVoid 0.4s ease-out forwards;
        }

        @keyframes wormVoid {
            0% { transform: scale(0) rotate(0deg); opacity: 1; }
            50% { transform: scale(1.5) rotate(180deg); }
            100% { transform: scale(0) rotate(360deg); opacity: 0; }
        }

        .worm-reality {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 30% 30%, rgba(150,0,255,0.5) 0%, transparent 30%),
                radial-gradient(circle at 70% 60%, rgba(100,0,200,0.5) 0%, transparent 30%),
                radial-gradient(circle at 50% 80%, rgba(200,0,255,0.5) 0%, transparent 30%);
            animation: wormReality 1.2s ease-out forwards;
        }

        @keyframes wormReality {
            0% { opacity: 0; filter: hue-rotate(0deg); }
            30% { opacity: 1; }
            100% { opacity: 0; filter: hue-rotate(180deg); }
        }

        .lenon-bash {
            width: 80px;
            height: 80px;
            background: radial-gradient(circle, rgba(68,136,255,0.9) 0%, rgba(0,100,255,0.5) 50%, transparent 70%);
            border: 3px solid #4af;
            border-radius: 50%;
            animation: lenonBash 0.3s ease-out forwards;
        }

        @keyframes lenonBash {
            0% { transform: scale(0.5); opacity: 1; }
            100% { transform: scale(1.5); opacity: 0; }
        }

        .lenon-guard {
            width: 100px;
            height: 130px;
            border: 4px solid rgba(68,136,255,0.9);
            border-radius: 50%;
            background: radial-gradient(ellipse, rgba(68,136,255,0.2) 0%, transparent 70%);
            animation: lenonGuard 0.5s ease-in-out infinite;
        }

        @keyframes lenonGuard {
            0%, 100% { transform: scale(1); opacity: 0.8; }
            50% { transform: scale(1.1); opacity: 1; }
        }

        .lenon-fortress {
            width: 250px;
            height: 250px;
            background: 
                radial-gradient(circle, transparent 30%, rgba(68,136,255,0.3) 50%, transparent 70%),
                repeating-conic-gradient(from 0deg, rgba(68,136,255,0.5) 0deg 30deg, transparent 30deg 60deg);
            border-radius: 50%;
            animation: lenonFortress 1s ease-out forwards;
        }

        @keyframes lenonFortress {
            0% { transform: scale(0) rotate(0deg); opacity: 1; }
            50% { transform: scale(1) rotate(90deg); }
            100% { transform: scale(1.5) rotate(180deg); opacity: 0; }
        }

        /* Effects */
        .effect {
            position: absolute;
            pointer-events: none;
            z-index: 100;
        }

        .hit-effect {
            width: 100px;
            height: 100px;
            background: radial-gradient(circle, rgba(255,255,0,0.9) 0%, rgba(255,100,0,0.6) 40%, transparent 70%);
            border-radius: 50%;
            animation: hitExpand 0.3s ease-out forwards;
        }

        @keyframes hitExpand {
            0% { transform: scale(0); opacity: 1; }
            100% { transform: scale(2); opacity: 0; }
        }

        .slash-effect {
            width: 150px;
            height: 30px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
            animation: slashMove 0.2s ease-out forwards;
        }

        @keyframes slashMove {
            0% { transform: scaleX(0); opacity: 1; }
            100% { transform: scaleX(1); opacity: 0; }
        }

        .ultimate-effect {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, rgba(255,0,255,0.3) 30%, transparent 70%);
            animation: ultimateFlash 1.2s ease-out forwards;
            z-index: 500;
        }

        @keyframes ultimateFlash {
            0% { opacity: 0; }
            20% { opacity: 1; }
            100% { opacity: 0; }
        }

        .projectile {
            position: absolute;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: radial-gradient(circle, #fff 0%, #ff0 30%, #f00 70%, transparent 100%);
            box-shadow: 0 0 20px #ff0, 0 0 40px #f00;
            animation: projectilePulse 0.1s infinite alternate;
        }

        @keyframes projectilePulse {
            0% { transform: scale(1); }
            100% { transform: scale(1.2); }
        }

        .shockwave {
            position: absolute;
            width: 200px;
            height: 50px;
            background: linear-gradient(180deg, rgba(255,100,0,0.8) 0%, rgba(255,200,0,0.5) 50%, transparent 100%);
            border-radius: 50%;
            animation: shockwaveExpand 0.5s ease-out forwards;
        }

        @keyframes shockwaveExpand {
            0% { transform: scaleX(0.5) scaleY(1); opacity: 1; }
            100% { transform: scaleX(3) scaleY(0.3); opacity: 0; }
        }

        /* Round Announcer */
        .announcer {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-family: 'Press Start 2P', cursive;
            font-size: 3.5rem;
            color: #ff0040;
            text-shadow: 0 0 30px #ff0040, 0 0 60px #ff0040, 0 0 90px #ff0040, 4px 4px 0 #000;
            z-index: 1000;
            animation: announceIn 0.5s ease-out;
            pointer-events: none;
            text-align: center;
            line-height: 1.3;
        }

        .announcer.finish {
            color: #ffd700;
            text-shadow: 0 0 30px #ffd700, 0 0 60px #ff0000, 4px 4px 0 #000;
            animation: finishPulse 0.5s ease-in-out infinite;
        }

        @keyframes finishPulse {
            0%, 100% { transform: translate(-50%, -50%) scale(1); }
            50% { transform: translate(-50%, -50%) scale(1.1); }
        }

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

        /* Victory Screen */
        #victoryScreen {
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
        }

        .winner-portrait {
            width: 280px;
            height: 280px;
            border: 6px solid #ffd700;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 0 60px #ffd700;
            margin-bottom: 25px;
        }

        .winner-portrait img {
            width: 100%;
            height: 100%;
            object-fit: fill;
        }

        .winner-text {
            font-family: 'Press Start 2P', cursive;
            font-size: 2.5rem;
            color: #ffd700;
            text-shadow: 0 0 30px #ffd700, 4px 4px 0 #000;
            margin-bottom: 15px;
            animation: glow 1s ease-in-out infinite;
        }

        .winner-name {
            font-family: 'Press Start 2P', cursive;
            font-size: 1.8rem;
            color: white;
            margin-bottom: 15px;
            text-shadow: 0 0 15px #fff;
        }

        .victory-subtitle {
            font-family: 'Press Start 2P', cursive;
            font-size: 1rem;
            color: #ff0040;
            margin-bottom: 40px;
            animation: pulse 1s infinite;
        }

        .rematch-btn {
            padding: 18px 50px;
            font-family: 'Press Start 2P', cursive;
            font-size: 1rem;
            background: linear-gradient(180deg, #ff0040 0%, #aa0030 100%);
            color: white;
            border: 4px solid #ff0040;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .rematch-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 0 40px #ff0040;
        }

        /* Damage Numbers */
        .damage-number {
            position: absolute;
            font-family: 'Press Start 2P', cursive;
            font-size: 1.2rem;
            color: #ff0040;
            text-shadow: 2px 2px 0 #000, 0 0 10px #ff0040;
            animation: damageFloat 1s ease-out forwards;
            pointer-events: none;
            z-index: 200;
        }

        @keyframes damageFloat {
            0% { transform: translateY(0) scale(1); opacity: 1; }
            100% { transform: translateY(-80px) scale(1.5); opacity: 0; }
        }

        .damage-number.critical {
            font-size: 1.8rem;
            color: #ffd700;
            text-shadow: 2px 2px 0 #000, 0 0 20px #ffd700;
        }

        /* Shield Effect */
        .shield-effect {
            position: absolute;
            width: 120px;
            height: 140px;
            border: 4px solid rgba(0,150,255,0.8);
            border-radius: 50%;
            background: radial-gradient(ellipse, rgba(0,150,255,0.2) 0%, transparent 70%);
            animation: shieldPulse 0.5s ease-in-out infinite;
            pointer-events: none;
            left: -20px;
            top: -10px;
        }

        @keyframes shieldPulse {
            0%, 100% { transform: scale(1); opacity: 0.8; }
            50% { transform: scale(1.1); opacity: 1; }
        }

        /* Combo Counter */
        .combo-display {
            position: absolute;
            font-family: 'Press Start 2P', cursive;
            font-size: 1rem;
            color: #00ffff;
            text-shadow: 0 0 10px #00ffff, 2px 2px 0 #000;
            animation: comboPop 0.3s ease-out;
        }

        .combo-display.p2 {
            color: #ff6600;
            text-shadow: 0 0 10px #ff6600, 2px 2px 0 #000;
        }

        @keyframes comboPop {
            0% { transform: scale(1.5); }
            100% { transform: scale(1); }
        }

        /* Help Modal */
        .help-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.9);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .help-modal.active {
            display: flex;
        }

        .help-content {
            background: linear-gradient(135deg, #1a1a2e 0%, #0a0a15 100%);
            border: 3px solid #ff0040;
            border-radius: 20px;
            padding: 30px;
            max-width: 900px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 0 50px rgba(255,0,64,0.5);
        }

        .help-title {
            font-family: 'Press Start 2P', cursive;
            font-size: 1.5rem;
            color: #ff0040;
            text-align: center;
            margin-bottom: 20px;
            text-shadow: 0 0 20px #ff0040;
        }

        .help-fighters {
            display: flex;
            gap: 20px;
        }

        .help-fighter {
            flex: 1;
            background: rgba(0,0,0,0.5);
            border: 2px solid #333;
            border-radius: 10px;
            padding: 15px;
        }

        .help-fighter-name {
            font-family: 'Press Start 2P', cursive;
            font-size: 0.8rem;
            margin-bottom: 10px;
            text-align: center;
        }

        .help-fighter.p1 { border-color: #00ffff; }
        .help-fighter.p1 .help-fighter-name { color: #00ffff; }
        .help-fighter.p2 { border-color: #ff6600; }
        .help-fighter.p2 .help-fighter-name { color: #ff6600; }

        .help-ability {
            margin: 10px 0;
            padding: 10px;
            background: rgba(255,255,255,0.05);
            border-radius: 5px;
            border-left: 3px solid;
        }

        .help-ability.basic { border-left-color: #ffff00; }
        .help-ability.special { border-left-color: #00ffff; }
        .help-ability.ultimate { border-left-color: #ff00ff; }

        .help-ability-name {
            font-family: 'Press Start 2P', cursive;
            font-size: 0.6rem;
            margin-bottom: 5px;
        }

        .help-ability.basic .help-ability-name { color: #ffff00; }
        .help-ability.special .help-ability-name { color: #00ffff; }
        .help-ability.ultimate .help-ability-name { color: #ff00ff; }

        .help-ability-desc {
            font-size: 0.7rem;
            color: #aaa;
        }

        .help-close {
            display: block;
            margin: 20px auto 0;
            padding: 12px 30px;
            font-family: 'Press Start 2P', cursive;
            font-size: 0.8rem;
            background: linear-gradient(180deg, #ff0040 0%, #aa0030 100%);
            color: white;
            border: 3px solid #ff0040;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .help-close:hover {
            transform: scale(1.05);
            box-shadow: 0 0 20px #ff0040;
        }

        /* Mode Screen */
        #modeScreen {
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 30px;
            padding: 40px 20px;
            text-align: center;
        }

        .mode-hero {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            max-width: 700px;
        }

        .mode-actions {
            display: flex;
            gap: 16px;
            margin-top: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .mode-actions .start-btn.alt {
            background: linear-gradient(180deg, #00c6ff 0%, #0072ff 100%);
            border-color: #00c6ff;
            box-shadow: 0 0 20px rgba(0, 198, 255, 0.4);
        }

        .mode-panels {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            width: min(900px, 100%);
        }

        .mode-card {
            background: var(--panel-bg);
            border: 2px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
            text-align: left;
        }

        .mode-card h2 {
            font-family: 'Press Start 2P', cursive;
            font-size: 0.8rem;
            color: var(--neon-cyan);
            margin-bottom: 10px;
        }

        .mode-card p {
            font-size: 0.8rem;
            color: #b4b4d6;
        }

        .mode-meta {
            margin-top: 12px;
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: rgba(255, 255, 255, 0.5);
        }

        /* Lobby Screen */
        #lobbyScreen {
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding: 20px;
            gap: 20px;
        }

        .lobby-layout {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            width: min(1200px, 100%);
            flex: 1;
            min-height: 0;
        }

        .lobby-panel {
            background: var(--panel-bg);
            border-radius: 18px;
            padding: 20px;
            border: 2px solid rgba(255, 255, 255, 0.08);
            display: flex;
            flex-direction: column;
            gap: 14px;
            min-height: 0;
        }

        .lobby-panel h2 {
            font-family: 'Press Start 2P', cursive;
            font-size: 0.75rem;
            color: var(--neon-pink);
        }

        .lobby-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .status-pill {
            display: inline-flex;
            align-items: center;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.65rem;
            letter-spacing: 0.08em;
            background: rgba(255, 0, 64, 0.15);
            border: 1px solid rgba(255, 0, 64, 0.5);
            color: var(--neon-pink);
        }

        .status-pill.online {
            background: rgba(0, 255, 200, 0.15);
            border-color: rgba(0, 255, 200, 0.6);
            color: #00ffc8;
        }

        .lobby-list {
            flex: 1;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .lobby-item {
            display: flex;
            flex-direction: column;
            gap: 6px;
            padding: 12px;
            border-radius: 12px;
            background: rgba(10, 10, 20, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .lobby-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }

        .lobby-item-title {
            font-size: 0.85rem;
            color: #fff;
        }

        .lobby-item-meta {
            font-size: 0.6rem;
            color: #7f8bb6;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .lobby-item-actions {
            display: flex;
            gap: 8px;
        }

        .lobby-form {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .lobby-form label {
            display: flex;
            flex-direction: column;
            gap: 6px;
            font-size: 0.7rem;
            color: #b4b4d6;
        }

        .lobby-form input,
        .lobby-form select {
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.4);
            color: #fff;
            font-family: inherit;
        }

        .lobby-password {
            flex: 1;
            padding: 8px 10px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.4);
            color: #fff;
            font-family: inherit;
            font-size: 0.7rem;
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .ghost-btn {
            padding: 10px 20px;
            border-radius: 8px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            background: transparent;
            color: #fff;
            cursor: pointer;
            font-family: 'Press Start 2P', cursive;
            font-size: 0.65rem;
            letter-spacing: 1px;
            transition: all 0.2s;
        }

        .ghost-btn:hover {
            border-color: var(--neon-cyan);
            box-shadow: 0 0 18px rgba(66, 245, 255, 0.4);
        }

        .start-btn.small {
            font-size: 0.6rem;
            padding: 8px 14px;
        }

        /* Selection updates */
        .selection-actions {
            display: flex;
            flex-direction: column;
            gap: 12px;
            align-items: center;
        }

        .selection-center .ghost-btn {
            margin: 0;
        }

        /* Responsive tweaks */
        @media (max-width: 900px) {
            .main-selection-area {
                flex-direction: column;
                align-items: center;
            }

            .character-preview {
                width: min(320px, 100%);
            }

            .selection-center {
                width: 100%;
            }
        }
    
