 /* VARIÁVEIS DE TEMA (Que vão mudar sozinhas com o JavaScript) */
        :root {
            --tema-cor: #F8D820; /* Amarelo padrão do Mario */
            --tema-fundo: rgba(37, 37, 37, 0.85); /* Fundo padrão escurinho */
        }

        * {
            overflow-y: hidden;
            overflow-x: hidden;
        }

        body { 
            font-family: 'Press Start 2P', cursive; 
            font-size: 12px; 
            margin: 0;
            padding: 20px;
            background-color: #000; 
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            color: #FFFFFF;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            image-rendering: pixelated; 
            transition: background-image 1s ease-in-out;
        }

        /* Caixa de Diálogo clássica de RPGs */
        #chat-container, #radio-container { 
            width: 100%;
            max-width: 700px; 
            background: var(--tema-fundo); 
            padding: 20px; 
            border-radius: 8px; 
            border: 4px solid var(--tema-cor);
            box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.6);
            margin-bottom: 20px;
            transition: all 1s ease; /* Transição suave de cor */
        }

        h2 {
            text-align: center;
            color: var(--tema-cor); 
            text-shadow: 3px 3px 0px #000; 
            margin-top: 0;
            line-height: 1.5;
            transition: color 1s ease;
        }

        /* --- PLAYER RETRO CUSTOMIZADO COM EQUALIZADOR --- */
        .radio-title {
            color: var(--tema-cor);
            margin-bottom: 15px;
            text-shadow: 2px 2px 0px #000;
            font-size: 11px;
            text-align: center;
            text-transform: uppercase;
            transition: color 1s ease;
        }

        .radio-painel {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(0,0,0,0.5);
            border: 3px solid var(--tema-cor);
            padding: 12px;
            box-shadow: inset 3px 3px 0px rgba(0,0,0,0.8);
            gap: 10px;
            flex-wrap: wrap;
            transition: border-color 1s ease;
        }

        .retro-btn {
            background-color: #E83030;
            color: white;
            padding: 10px 15px;
            font-family: 'Press Start 2P', cursive;
            font-size: 9px;
            border: 3px solid #FFFFFF;
            box-shadow: 3px 3px 0px #000;
            cursor: pointer;
            text-transform: uppercase;
            transition: transform 0.1s;
        }
        .retro-btn:hover { background-color: #FF5A5A; transform: translate(-1px, -1px); box-shadow: 4px 4px 0px #000; }
        .retro-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0px #000; }

        #btn-mute-retro { background-color: #40B040; }
        #btn-mute-retro:hover { background-color: #50D050; }

        #radio-status {
            font-size: 8px;
            color: #40B040;
            text-shadow: 1px 1px 0px #000;
        }

        /* Animação do Equalizador 16-bits */
        .equalizador {
            display: flex;
            gap: 4px;
            align-items: flex-end;
            height: 20px;
            padding-bottom: 2px;
        }
        .bar {
            width: 6px;
            background-color: var(--tema-cor);
            height: 5px;
            animation: bounce 0.4s infinite alternate;
            box-shadow: 1px 1px 0px #000;
        }
        .equalizador.parado .bar {
            animation: none !important;
            height: 4px !important;
        }
        /* Atrasos diferentes para o movimento parecer caótico/musical */
        .bar:nth-child(1) { animation-delay: 0.1s; }
        .bar:nth-child(2) { animation-delay: 0.3s; }
        .bar:nth-child(3) { animation-delay: 0.0s; }
        .bar:nth-child(4) { animation-delay: 0.2s; }
        .bar:nth-child(5) { animation-delay: 0.4s; }

        @keyframes bounce {
            0% { height: 4px; }
            100% { height: 18px; }
        }

        /* --- CHAT CSS --- */
        #chat-box { 
            height: 400px; 
            overflow-y: auto; 
            border: 4px solid var(--tema-cor); 
            padding: 15px; 
            margin-bottom: 15px; 
            background: rgba(0,0,0,0.4); 
            box-shadow: inset 4px 4px 0px rgba(0,0,0,0.5);
            transition: border-color 1s ease;
        }

        #chat-box::-webkit-scrollbar { width: 12px; }
        #chat-box::-webkit-scrollbar-track { background: var(--tema-fundo); border-left: 2px solid var(--tema-cor);}
        #chat-box::-webkit-scrollbar-thumb { background: var(--tema-cor); border: 2px solid #000; }

        .msg { margin-bottom: 12px; line-height: 1.6; word-wrap: break-word; overflow-wrap: break-word; }
        .username { color: var(--tema-cor); filter: brightness(1.2); }

        .controles { display: flex; gap: 10px; }

        input { 
            padding: 12px; 
            border: 4px solid var(--tema-cor); 
            background: #000;
            color: #FFF;
            font-family: 'Press Start 2P', cursive;
            font-size: 10px;
            outline: none;
            transition: border-color 1s ease;
        }
        input:focus { border-color: #FFFFFF; }

        #nick { width: 30%; }
        #mensagem { width: 70%; flex-grow: 1; }

        #btn-enviar { 
            padding: 12px 15px; background: var(--tema-cor); color: #000; border: 4px solid #FFFFFF; 
            cursor: pointer; font-family: 'Press Start 2P', cursive; font-size: 10px; box-shadow: 4px 4px 0px #000;
        }
        #btn-enviar:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px #000; filter: brightness(1.2); }

        /* Rodapé do site */
        footer {
            margin-top: auto;
            text-align: center;
            font-size: 9px;
            text-shadow: 2px 2px 0px #000;
            padding: 20px;
        }
        footer a {
            color: var(--tema-cor);
            text-decoration: none;
            transition: color 1s ease;
        }
        footer a:hover {
            text-decoration: underline;
        }