        :root {
            --bg: #000000;
            --text: #ffffff;
            --card-bg: linear-gradient(160deg, #1a1a1a 0%, #000000 100%);
            --modal-bg: #111;
            --input-bg: #222;
            --border-color: #333;
            --primary: #00f3ff;
            --secondary: #ff00aa;
            --gold: #ffd700;
            --risk-low: #00ff6a;
            --risk-med: #ff9100;
            --risk-high: #ff003c;
            --safe-top: env(safe-area-inset-top, 20px);
            --safe-bottom: env(safe-area-inset-bottom, 20px);
        }

        body.light-mode {
            --bg: #f4f4f4;
            --text: #111111;
            --card-bg: linear-gradient(160deg, #ffffff 0%, #e6e6e6 100%);
            --modal-bg: #ffffff;
            --input-bg: #e0e0e0;
            --border-color: #ccc;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
        }

        html,
        body {
            background-color: var(--bg);
            width: 100%;
            height: 100%;
            overflow: hidden;
            font-family: 'Inter', sans-serif;
            transition: background 0.3s, color 0.3s;
        }

        /* CANVAS DE FONDO */
        #bg-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
            opacity: 0.6;
        }

        .screen {
            position: absolute;
            inset: 0;
            background: transparent;
            display: flex;
            flex-direction: column;
            padding: calc(var(--safe-top) + 10px) 20px calc(var(--safe-bottom) + 80px) 20px;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            transition: 0.3s;
            z-index: 10;
        }

        .hidden {
            display: none !important;
        }

        .spacer-huge {
            height: 100px;
            width: 100%;
            flex-shrink: 0;
        }

        button {
            border: none;
            background: none;
            color: inherit;
            font-family: 'Anton';
            letter-spacing: 1px;
            cursor: pointer;
        }

        input[type="text"],
        textarea,
        select {
            background: var(--input-bg);
            border: 1px solid var(--border-color);
            color: var(--text);
            padding: 15px;
            width: 100%;
            border-radius: 8px;
            font-size: 1.1rem;
            margin-bottom: 5px;
            pointer-events: auto;
            outline: none;
            font-family: 'Inter';
        }

        .btn-wrapper {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 20px;
            padding-bottom: calc(20px + var(--safe-bottom));
            background: linear-gradient(to top, var(--bg) 80%, transparent);
            z-index: 20;
            pointer-events: none;
            display: flex;
            justify-content: center;
            gap: 10px;
        }

        .btn-main {
            pointer-events: auto;
            background: var(--primary);
            color: #000;
            width: 100%;
            max-width: 500px;
            padding: 22px;
            font-size: 1.6rem;
            text-transform: uppercase;
            font-weight: 900;
            clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
            transition: background 0.3s;
        }

        .btn-main:active {
            transform: scale(0.98);
            opacity: 0.9;
        }

        .header-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 50px;
            margin-bottom: 10px;
            z-index: 20;
            position: relative;
        }

        .header-bar.right-only {
            justify-content: flex-end;
        }

        .icon-btn {
            font-size: 1.5rem;
            padding: 10px;
            color: #888;
            transition: 0.2s;
        }

        .icon-btn:hover {
            color: var(--text);
        }

        .btn-back {
            font-size: 0.9rem !important;
            padding: 8px 10px;
            white-space: nowrap;
            border: 1px solid transparent;
            border-radius: 8px;
        }

        .btn-back:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.9);
            z-index: 100;
            display: none;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(5px);
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-content {
            background: var(--modal-bg);
            width: 95%;
            max-width: 400px;
            max-height: 80vh;
            padding: 30px;
            border-radius: 20px;
            border: 1px solid var(--border-color);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            transform: translateY(20px);
            transition: 0.3s;
            overflow-y: auto;
            position: relative;
        }

        .modal-overlay.active .modal-content {
            transform: translateY(0);
        }

        .close-modal-x {
            position: absolute;
            top: 20px;
            left: 20px;
            font-size: 1.5rem;
            color: #888;
            background: none;
            border: none;
            padding: 5px;
            line-height: 1;
            z-index: 50;
            transition: 0.2s;
        }

        .close-modal-x:hover {
            color: var(--text);
            transform: scale(1.1);
        }

        .setting-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
        }

        .setting-row:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .setting-label {
            font-size: 1.1rem;
            font-weight: bold;
            color: var(--text);
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked+.slider {
            background-color: var(--primary);
        }

        input:checked+.slider:before {
            transform: translateX(26px);
        }

        .title {
            font-size: 4rem;
            text-align: center;
            margin-bottom: 10px;
            background: linear-gradient(to right, #00f3ff, #ff00aa, #ffff00, #00ff00, #00f3ff);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            animation: rainbow-text 4s linear infinite;
        }

        @keyframes rainbow-text {
            0% {
                background-position: 0% 50%;
            }

            100% {
                background-position: 200% 50%;
            }
        }

        .section-label {
            color: #888;
            font-size: 0.8rem;
            margin: 30px 0 15px;
            border-bottom: 1px solid var(--border-color);
            text-transform: uppercase;
            letter-spacing: 1px;
            padding-bottom: 5px;
        }

        .player-row {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
        }

        .player-row input {
            flex: 1;
            width: auto;
            margin-bottom: 0;
        }

        .gender-btn {
            width: 50px;
            height: 50px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: rgba(128, 128, 128, 0.1);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 1.5rem;
            transition: 0.2s;
            cursor: pointer;
            color: var(--text);
        }

        .gender-btn.m {
            color: #00a8ff;
            border-color: #00a8ff;
            background: rgba(0, 168, 255, 0.1);
        }

        .gender-btn.f {
            color: #ff00aa;
            border-color: #ff00aa;
            background: rgba(255, 0, 170, 0.1);
        }

        /* ESTILOS MENU PRINCIPAL */
        .game-menu-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            padding: 10px 0;
        }

        .game-card-btn {
            background: var(--input-bg);
            border: 1px solid var(--border-color);
            border-radius: 15px;
            padding: 25px;
            text-align: left;
            position: relative;
            overflow: hidden;
            transition: 0.3s;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .game-card-btn:hover,
        .game-card-btn:active {
            transform: scale(0.98);
            border-color: var(--primary);
            background: rgba(255, 255, 255, 0.05);
        }

        .gc-icon {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }

        .gc-title {
            font-family: 'Anton';
            font-size: 1.8rem;
            color: var(--text);
            text-transform: uppercase;
            line-height: 1;
            margin-bottom: 5px;
        }

        .gc-desc {
            font-size: 0.9rem;
            color: #888;
            font-weight: normal;
        }

        .gc-tag {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--primary);
            color: #000;
            padding: 2px 8px;
            border-radius: 5px;
            font-size: 0.7rem;
            font-weight: bold;
        }

        .vibe-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .vibe-card {
            background: var(--input-bg);
            border: 1px solid var(--border-color);
            padding: 15px 5px;
            text-align: center;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: 0.2s;
            cursor: pointer;
            color: var(--text);
        }

        .vibe-card.active {
            background: var(--primary);
            color: #000;
            border-color: var(--primary);
            font-weight: bold;
            transform: scale(1.05);
            box-shadow: 0 0 15px var(--primary);
        }

        .pills-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .pill {
            padding: 12px 18px;
            background: var(--input-bg);
            border: 1px solid var(--border-color);
            border-radius: 30px;
            font-size: 0.9rem;
            color: #888;
            transition: 0.2s;
            cursor: pointer;
        }

        .pill.active {
            background: #eee;
            color: #000;
            border-color: #fff;
            transform: scale(1.05);
            font-weight: bold;
        }

        .card-stage {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            perspective: 1000px;
            padding: 60px 0 20px 0;
            z-index: 10;
            min-height: 400px;
        }

        .card-scene {
            width: 100%;
            max-width: 380px;
            aspect-ratio: 3/4.5;
            max-height: 65vh;
            position: relative;
            transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
            transform-style: preserve-3d;
        }

        .card-scene.is-flipped {
            transform: rotateY(180deg);
        }

        .card-scene.no-flip {
            pointer-events: none;
        }

        .card-face {
            position: absolute;
            width: 100%;
            height: 100%;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            background: var(--card-bg);
            border: 2px solid var(--border-color);
            border-radius: 20px;
            padding: 30px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            text-align: center;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
        }

        .card-face.blue-theme {
            border-color: #00f3ff;
            box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
        }

        .card-face.blue-theme .card-header,
        .card-face.blue-theme .hl {
            color: #00f3ff;
            border-color: #00f3ff;
        }

        .card-face.pink-theme {
            border-color: #ff00aa;
            box-shadow: 0 0 30px rgba(255, 0, 170, 0.2);
        }

        .card-face.pink-theme .card-header,
        .card-face.pink-theme .hl {
            color: #ff00aa;
            border-color: #ff00aa;
        }

        .card-face.gold-theme {
            border-color: #ffd700;
            box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
            background: linear-gradient(160deg, #2a2a00 0%, #000000 100%);
        }

        .card-face.gold-theme .card-header,
        .card-face.gold-theme .hl {
            color: #ffd700;
            border-color: #ffd700;
        }

        .card-face.gold-theme .card-body {
            color: #fffadc !important;
        }

        .card-face.back {
            transform: rotateY(180deg);
            background: var(--card-bg);
        }

        @keyframes heartbeat {
            0% {
                transform: scale(1);
            }

            14% {
                transform: scale(1.3);
            }

            28% {
                transform: scale(1);
            }

            42% {
                transform: scale(1.3);
            }

            70% {
                transform: scale(1);
            }
        }

        .heartbeat-active {
            animation: heartbeat 1.5s infinite linear !important;
        }

        @keyframes tension-shake {
            0% {
                transform: translate(0, 0) rotate(0deg) scale(1.1);
            }

            25% {
                transform: translate(5px, 5px) rotate(5deg) scale(1.2);
            }

            50% {
                transform: translate(-5px, -5px) rotate(-5deg) scale(1.2);
            }

            75% {
                transform: translate(-5px, 5px) rotate(5deg) scale(1.2);
            }

            100% {
                transform: translate(5px, -5px) rotate(-5deg) scale(1.1);
            }
        }

        .tension-active {
            animation: tension-shake 0.1s infinite !important;
            color: #ff0000 !important;
            filter: drop-shadow(0 0 20px red);
            font-size: 6rem !important;
        }

        body:not(.light-mode) .card-face.back {
            background: linear-gradient(160deg, #151515 0%, #050505 100%);
        }

        .card-header {
            font-family: 'Anton';
            font-size: 1.3rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 20px;
            color: var(--primary);
        }

        .card-body {
            font-size: 1.6rem;
            line-height: 1.5;
            font-weight: 700;
            color: var(--text);
            width: 100%;
            flex: 1;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            align-content: center;
            align-items: center;
            overflow-y: auto;
        }

        .hl {
            font-weight: 900;
            display: inline;
            border-bottom: 2px solid;
            margin: 0 4px;
        }

        .flip-hint {
            font-size: 0.7rem;
            color: #888;
            margin-top: 15px;
            text-transform: uppercase;
            letter-spacing: 1px;
            animation: blink 2s infinite;
        }

        .card-footer {
            width: 100%;
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
            margin-top: 20px;
        }

        .skull-count {
            font-size: 1.2rem;
            font-weight: 900;
            font-family: 'Anton';
            letter-spacing: 1px;
            margin-top: 5px;
            color: var(--primary);
            transition: color 0.3s;
        }

        .risk-low {
            color: var(--risk-low) !important;
        }

        .risk-med {
            color: var(--risk-med) !important;
        }

        .risk-high {
            color: var(--risk-high) !important;
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 0.5;
            }

            50% {
                opacity: 1;
            }
        }

        @keyframes tension-shake {
            0% {
                transform: translate(0, 0) rotate(0deg) scale(1.1);
            }

            25% {
                transform: translate(5px, 5px) rotate(5deg) scale(1.2);
            }

            50% {
                transform: translate(-5px, -5px) rotate(-5deg) scale(1.2);
            }

            75% {
                transform: translate(-5px, 5px) rotate(5deg) scale(1.2);
            }

            100% {
                transform: translate(5px, -5px) rotate(-5deg) scale(1.1);
            }
        }

        .tension-active {
            animation: tension-shake 0.1s infinite !important;
            color: #ff0000 !important;
            filter: drop-shadow(0 0 20px red);
            font-size: 6rem !important;
        }

        .anim {
            animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes pop {
            from {
                opacity: 0;
                transform: scale(0.8) translateY(20px);
            }

            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        /* CONFETTI */
        .confetti {
            position: absolute;
            width: 10px;
            height: 10px;
            background-color: #f00;
            animation: fall linear forwards;
            pointer-events: none;
            z-index: 999;
        }

        @keyframes fall {
            0% {
                opacity: 1;
            }

            80% {
                opacity: 1;
            }

            100% {
                transform: translateY(100vh) rotate(720deg);
                opacity: 0;
            }
        }

        /* --- ESTILOS RULETA --- */
        #roulette-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.95);
            z-index: 300;
            display: none;
            /* POR DEFECTO OCULTO */
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        #roulette-overlay.active {
            display: flex;
        }

        .roulette-container {
            position: relative;
            width: 300px;
            height: 300px;
            margin: 20px 0;
        }

        .wheel {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 4px solid #fff;
            box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
            background: conic-gradient(#ff003c 0deg 60deg,
                    #222 60deg 120deg,
                    #ff003c 120deg 180deg,
                    #222 180deg 240deg,
                    #ff003c 240deg 300deg,
                    #222 300deg 360deg);
            transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
        }

        .pointer {
            position: absolute;
            top: -20px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 20px solid transparent;
            border-right: 20px solid transparent;
            border-top: 40px solid #ffd700;
            z-index: 5;
            filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.5));
        }

        .spin-btn {
            padding: 15px 40px;
            background: #ffd700;
            color: #000;
            font-size: 1.5rem;
            border-radius: 50px;
            font-weight: 900;
            font-family: 'Anton';
            border: none;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
            margin-top: 30px;
        }

        .spin-btn:active {
            transform: scale(0.95);
        }

        .player-turn-label {
            color: #fff;
            font-size: 1.8rem;
            font-family: 'Anton';
            margin-bottom: 10px;
            text-align: center;
            text-transform: uppercase;
        }

        .player-turn-label span {
            color: var(--gold);
        }

        .result-box {
            margin-top: 20px;
            font-size: 2rem;
            font-family: 'Anton';
            color: #fff;
            text-align: center;
            display: none;
            animation: pop 0.5s;
            padding: 0 20px;
            line-height: 1.2;
        }

        /* --- ESTILOS DADOS XXX 3D --- */
        #dice-overlay {
            position: fixed;
            inset: 0;
            background: rgba(10, 0, 0, 0.95);
            z-index: 300;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            perspective: 800px;
        }

        #dice-overlay.active {
            display: flex;
        }

        .dice-container {
            display: flex;
            flex-direction: column;
            gap: 40px;
            width: 100%;
            max-width: 350px;
            padding: 20px;
            align-items: center;
        }

        .die-scene {
            width: 130px;
            height: 130px;
            perspective: 600px;
        }

        .die-cube {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 1s cubic-bezier(0.1, 0.7, 0.1, 1);
        }

        .die-face {
            position: absolute;
            width: 130px;
            height: 130px;
            background: linear-gradient(135deg, #fff 0%, #eee 100%);
            border: 4px solid #ff003c;
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 10px;
            backface-visibility: hidden;
            box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1);
        }

        .die-face.front {
            transform: rotateY(0deg) translateZ(65px);
        }

        .die-face.back {
            transform: rotateY(180deg) translateZ(65px);
        }

        .die-face.right {
            transform: rotateY(90deg) translateZ(65px);
        }

        .die-face.left {
            transform: rotateY(-90deg) translateZ(65px);
        }

        .die-face.top {
            transform: rotateX(90deg) translateZ(65px);
        }

        .die-face.bottom {
            transform: rotateX(-90deg) translateZ(65px);
        }

        .die-label {
            font-size: 0.8rem;
            color: #ff003c;
            text-transform: uppercase;
            font-family: 'Anton';
            letter-spacing: 2px;
            margin-bottom: 5px;
        }

        .die-content {
            font-size: 1.1rem;
            font-weight: 900;
            color: #111;
            line-height: 1.1;
            word-wrap: break-word;
            font-family: 'Inter';
        }

        .rolling {
            animation: roll3d 0.8s linear infinite;
        }

        @keyframes roll3d {
            0% {
                transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
            }

            25% {
                transform: rotateX(90deg) rotateY(45deg) rotateZ(90deg);
            }

            50% {
                transform: rotateX(180deg) rotateY(90deg) rotateZ(180deg);
            }

            75% {
                transform: rotateX(270deg) rotateY(135deg) rotateZ(270deg);
            }

            100% {
                transform: rotateX(360deg) rotateY(180deg) rotateZ(360deg);
            }
        }

        .dice-btn {
            background: #ff003c;
            color: #fff;
            font-family: 'Anton';
            font-size: 1.5rem;
            padding: 15px 40px;
            border-radius: 50px;
            margin-top: 20px;
            box-shadow: 0 0 20px rgba(255, 0, 60, 0.4);
            z-index: 10;
        }

        /* --- ESTILOS IMPOSTOR OVERLAY --- */
        #impostor-overlay {
            position: fixed;
            inset: 0;
            /* Fondo por defecto: Alerta Roja INTENSA */
            background: transparent;
            z-index: 400;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            /* animation: pulse-red 1s infinite alternate; */
        }

        #impostor-overlay.active {
            display: flex;
        }

        /* Estilo para modo STANDALONE (ROJO TAMBIÉN PERO SIN ALERTA) */
        #impostor-overlay.standalone {
            background: transparent;
            animation: none;
            justify-content: flex-start;
            /* Para alinear botón salir arriba */
            padding-top: 20px;
        }

        /* Contenedor central del juego impostor */
        #impostor-overlay.standalone .impostor-box {
            margin-top: auto;
            margin-bottom: auto;
            /* Centrar verticalmente */
        }

        @keyframes pulse-red {
            0% {
                box-shadow: inset 0 0 50px #500;
                opacity: 0.9;
            }

            100% {
                box-shadow: inset 0 0 150px #f00;
                opacity: 1;
            }
        }

        .impostor-box {
            width: 90%;
            max-width: 400px;
            text-align: center;
            padding: 30px;
            border: 2px solid #ff0000;
            border-radius: 20px;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
            position: relative;
        }

        .impostor-title {
            font-family: 'Anton';
            font-size: 3rem;
            color: #ff0000;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 20px;
            text-shadow: 0 0 10px #ff0000;
        }

        /* Título para modo standalone */
        #impostor-overlay.standalone .impostor-title {
            color: #ff3c3c;
            text-shadow: 0 0 10px #ff3c3c;
        }

        .impostor-text {
            font-size: 1.5rem;
            color: #fff;
            margin-bottom: 30px;
            font-weight: bold;
        }

        .impostor-btn {
            width: 100%;
            padding: 20px;
            font-size: 1.5rem;
            background: #ff0000;
            color: #fff;
            border: none;
            font-family: 'Anton';
            text-transform: uppercase;
            border-radius: 10px;
            cursor: pointer;
            box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
        }

        /* Botón blanco para modo standalone salir */
        #imp-exit-btn {
            color: #ffffff !important;
            background: #333 !important;
            box-shadow: none !important;
            margin-top: 10px;
        }

        /* Botón de volver al menú en impostor standalone */
        .imp-top-bar {
            width: 100%;
            display: none;
            justify-content: flex-start;
            padding: 0 20px;
            position: absolute;
            top: 20px;
            left: 0;
            z-index: 500;
        }

        #impostor-overlay.standalone .imp-top-bar {
            display: flex;
        }

        .impostor-secret {
            font-size: 2rem;
            color: #ffd700;
            font-weight: 900;
            margin: 20px 0;
            border: 2px dashed #555;
            padding: 20px;
            display: none;
        }

        /* COPYRIGHT */
        .copyright {
            margin-top: 30px;
            padding-bottom: 20px;
            text-align: center;
            font-size: 0.75rem;
            color: #555;
            font-family: 'Inter';
            letter-spacing: 1px;
            text-transform: uppercase;
            width: 100%;
        }

        .custom-card-item {
            background: rgba(255, 255, 255, 0.1);
            padding: 10px;
            border-radius: 8px;
            margin-bottom: 5px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
        }

        .delete-btn {
            color: #ff003c;
            font-weight: bold;
            font-size: 1.2rem;
            padding: 0 10px;
        }

        .instr-item {
            margin-bottom: 20px;
            border-left: 3px solid #555;
            padding-left: 15px;
        }

        .instr-title {
            font-family: 'Anton';
            font-size: 1.2rem;
            text-transform: uppercase;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .instr-desc {
            font-size: 0.95rem;
            color: #aaa;
            line-height: 1.4;
        }

        .instr-tag {
            font-size: 0.8rem;
            font-weight: normal;
            opacity: 0.8;
            font-family: 'Inter';
            text-transform: none;
            font-style: italic;
        }

        .toast {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--primary);
            color: #000;
            padding: 12px 24px;
            border-radius: 30px;
            z-index: 2000;
            font-weight: 900;
            font-family: 'Anton';
            opacity: 0;
            transition: all 0.3s ease;
            pointer-events: none;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
            letter-spacing: 1px;
        }

        .toast.show {
            opacity: 1;
            top: 50px;
        }

        .delete-player-btn {
            width: 50px;
            height: 50px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: rgba(255, 0, 60, 0.1);
            border: 1px solid #ff003c;
            border-radius: 8px;
            color: #ff003c;
            font-size: 1.2rem;
            cursor: pointer;
            transition: 0.2s;
            font-weight: bold;
        }

        .delete-player-btn:active {
            background: #ff003c;
            color: #fff;
        }

        /* RESPONSIVE MEDIA QUERIES */
        @media (max-width: 600px) {
            .title {
                font-size: 2.5rem !important;
            }

            #bomb-visual {
                font-size: 5rem !important;
            }

            #bomb-result div:first-child {
                font-size: 2.5rem !important;
            }

            #bomb-punishment {
                font-size: 1.2rem !important;
            }

            #bomb-topic {
                font-size: 1.5rem !important;
            }

            #wyr-timer {
                font-size: 3rem !important;
            }

            .btn-main {
                padding: 15px;
                font-size: 1.2rem;
            }

            .modal-content {
                width: 90%;
                padding: 20px;
            }

            .card-scene {
                max-height: 55vh;
            }
        }