/* ===============================================
   --- 1. CONFIGURAÇÃO GLOBAL E FONTES ---
=============================================== */

/* --- Importando as fontes --- */
@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400&display=swap'); /* Fonte Pixel */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap'); /* Outra fonte pixel boa para texto */
@import url('https://fonts.googleapis.com/css2?family=Balsamiq+Sans:wght@400&display=swap');

/* --- Paleta de Cores (Kawaii/Shrine) --- */
:root {
    --body-bg: #FFF8FB;
    --body-pattern: #FADADD;
    --box-bg: #FFFFFF;
    --box-bg-alt: #FFF8FB;
    --border-color: #FBC2DA;
    --border-color-light: #FCE6EF;
    --header-text: #E78EA9;
    --text-dark: #6D4C5A;
    --text-light: #A78C98;
    --accent-link: #E78EA9;
}

/* --- Reset Básico e Estilo Global --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Silkscreen', 'VT323', 'Courier New', monospace;
    color: var(--text-dark);
    
    /* --- FUNDO EM 3 CAMADAS (COMPLETO / SEM REPETIR) --- */
    background-color: var(--body-bg); /* Cor de fundo base (rosa claro) */
    
    background-image: 
        radial-gradient(var(--body-pattern) 1px, transparent 1px), /* Camada 1 (CIMA): O efeito pontilhado */
        linear-gradient(rgba(255, 248, 251, 0.7), rgba(255, 248, 251, 0.7)), /* Camada 2 (MEIO): A "névoa" rosa */
        url('../images/fundosite.jpg'); /* Camada 3 (BAIXO): Sua imagem de fundo */

    /* Define o tamanho de cada camada */
    background-size: 
        5px 5px,  /* Tamanho do pontilhado */
        cover,    /* Tamanho da "névoa" (Cobre tudo) */
        cover;    /* Tamanho do fundosite.jpg (Cobre tudo) */

    /* Define a repetição de cada camada */
    background-repeat:
        repeat,   /* Pontilhado repete */
        no-repeat, /* "Névoa" não repete */
        no-repeat; /* fundosite.jpg NÃO REPETE */
            
    /* Trava o fundo (para o site rolar por cima) */
    background-attachment: fixed;
    image-rendering: pixelated;
}

/* ===============================================
   --- 2. TELA DE LOGIN (INDEX.HTML) ---
=============================================== */

.login-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
}

.entry-stage {
    width: 940px;
    margin: 0 auto;
}

.splash-container {
    display: flex;
    align-items: center; 
    justify-content: center;
    position: relative; 
    width: 100%;
    max-width: 850px; 
    transform: translateX(-90px);
}

@media (max-width: 760px) {
    body.login-screen {
        overflow-x: hidden;
        min-height: 100vh;
    }

    .entry-stage {
        width: 100%;
    }

    body.login-screen .splash-container {
        max-width: min(92vw, 420px);
        width: 100%;
        margin: 24px auto;
        transform: none;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    body.login-screen .splash-image {
        width: min(52vw, 220px);
        max-height: none;
        margin-right: 0;
        margin-bottom: 10px;
        z-index: 3;
    }

    body.login-screen .splash-box {
        width: min(92vw, 360px);
        max-width: none;
        padding: 18px 18px 18px;
        box-sizing: border-box;
        text-align: center;
    }

    body.login-screen .splash-box h2 {
        font-size: 1.3em;
        margin-bottom: 10px;
        white-space: normal;
    }

    body.login-screen .splash-box p {
        font-size: 0.9em;
    }

    body.login-screen #splash-intro-text {
        font-size: 0.9em;
        line-height: 1.45;
    }

    body.login-screen .splash-enter-form {
        margin-top: 12px;
    }

    body.login-screen #spinning-cd-player {
        top: -18px;
        right: -12px;
        width: 84px;
        height: 84px;
    }
}

.splash-image {
    max-height: 600px; 
    width: 500px;
    position: relative; 
    z-index: 2;         /* <-- MUDE DE 0 PARA 2 */      
    margin-right: -190px; 
}

.splash-box {
    position: relative; /* <-- Mantenha esta linha */
    z-index: 1;         /* <-- ADICIONE ESTA LINHA */
    background-color: var(--box-bg); 
    border: 2px dashed var(--border-color); 
    box-shadow: 0 0 0 5px var(--box-bg), 0 0 0 7px var(--border-color);
    padding: 20px;
    padding-left: 50px; 
    max-width: 550px;
    width: 100%;
    text-align: center;
}

.splash-box > h2,
.splash-box > p,
.splash-box > .splash-enter-form {
    position: relative;
    top: 0;
    left: -15px;
}

.splash-box h2 {
    color: var(--header-text);
    font-size: 1.8em;
    margin-bottom: 15px;
    animation: soft-blink 2s infinite ease-in-out;
    text-align: center;
}

.splash-box p {
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 5px;
    text-align: center;
}

#splash-intro-text {
    font-family: 'Balsamiq Sans', cursive;
    font-size: 0.9em; 
    color: var(--text-dark); 
    line-height: 1.5; 
    font-weight: 400; /* <-- ADICIONE ISTO */
}

.login-form { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}
.login-form label { 
    font-size: 1em; 
    color: var(--text-dark); 
}
.login-form input {
    background-color: var(--body-bg);
    border: 1px solid var(--border-color-light);
    color: var(--accent-link);
    padding: 8px;
    font-family: 'Silkscreen', monospace;
    font-size: 1em;
    text-align: center;
}
.login-form input:focus {
    border-color: var(--accent-link);
    outline: none;
    
    /* Adiciona uma "aura" rosa suave ao clicar */
    box-shadow: 0 0 10px 2px var(--border-color-light); 
}
.login-form button {
    background-color: var(--accent-link);
    color: var(--box-bg);
    border: 2px solid var(--accent-link);
    padding: 10px;
    font-family: 'Silkscreen', monospace;
    font-size: 1em;
    cursor: pointer;
    animation: pulse-button 2s infinite ease-in-out;
}
.login-form button:hover {
    animation-play-state: paused;
    background-color: var(--box-bg);
    color: var(--accent-link);
}

.splash-enter-form {
    margin-top: 18px;
}

.splash-enter-note {
    margin-top: 12px;
    font-size: 0.82em;
    color: var(--text-light);
}

@keyframes soft-blink {
    0%, 100% { 
        opacity: 1; 
        text-shadow: 0 0 5px var(--border-color-light);
    }
    50% { 
        opacity: 0.7; 
        text-shadow: 0 0 10px var(--accent-link);
    }
}

@keyframes pulse-button {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 5px var(--border-color);
    }
    50% {
        transform: scale(1.03); /* Cresce um pouquinho */
        box-shadow: 0 0 15px var(--accent-link); /* Brilha mais forte */
    }
}

/* ===============================================
   --- 3. LAYOUT PRINCIPAL (HOME.HTML) ---
=============================================== */

/* Bloco Corrigido (perto da linha 186) */
.container {
    width: 90%;
    max-width: 1024px; 
    margin: 20px auto;
    padding: 10px;
    border-width: 7px;
    border-style: solid;
    border-image: url("https://i.imgur.com/ROjUrNz.gif") 5 fill round;
    position: relative; /* <-- ADICIONE ESTA LINHA */
}
.header {
    padding: 0;
    text-align: center;
    border-bottom: 2px dashed var(--border-color-light);
    margin: -10px -10px -2px -10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden; 
}
.header h1 {
    color: var(--header-text);
    font-size: 2.2em;
    letter-spacing: 2px;
}

.main-layout {
    display: grid;
    grid-template-columns: 210px 1fr 210px; 
    gap: 10px;
    margin-top: 10px;

    /* --- CONTROLE DE CAMADA --- */
    position: relative; /* Necessário para o z-index funcionar */
    z-index: 1;         /* Fica na camada de BAIXO */
}

.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button.widget-title {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
}
/* --- Responsividade do Layout --- */

/* ===============================================
   --- 4. BARRA LATERAL ESQUERDA (MENU) ---
=============================================== */

.widget-title {
    font-size: 1.2em;
    color: var(--header-text);
    border-bottom: 2px solid var(--border-color-light);
    padding-bottom: 1px;
    margin-bottom: 2px;
}

.navigation {
    list-style-type: none;
    padding: 15px 12px; 
    margin: 0;
    background-image: url('../images/fundomenu2.png');
    background-repeat: no-repeat;
    background-size: 100% 150%;
    border-radius: 20px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    backdrop-filter: blur(4px); 
}

.navigation li {
    list-style-type: none;
    padding: 0; 
    margin-bottom: 8px; 
}
.navigation li:last-of-type {
    margin-bottom: 0;
}

.navigation li a {
    display: block;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s ease-in-out; 
    background-image: url('../images/botao.jpg');
    background-size: contain;
    background-position: center;
    color: var(--header-text); 
    border-radius: 999px; 
    border: 1px solid var(--text-light); 
    padding: 4px 10px; 
    box-shadow: inset 0 0 4px 1px rgba(255, 255, 255, 0.7), 
                0 2px 4px rgba(0, 0, 0, 0.15);
    margin-bottom: 0; 
    font-family: 'Balsamiq Sans', cursive; 
    font-weight: 700; 
    font-size: 1.1em; 
    text-shadow: 
        -1px -1px 0 #FFFFFF,  
         1px -1px 0 #FFFFFF,  
        -1px  1px 0 #FFFFFF,  
         1px  1px 0 #FFFFFF;
}

.navigation li a:hover {
    transform: scale(1.04); 
    box-shadow: inset 0 0 5px 2px rgba(255, 255, 255, 0.9),
                0 4px 8px rgba(0, 0, 0, 0.2); 
    background-color: transparent;
    border-color: var(--text-light);
    border-bottom-width: 1px;
}

.navigation li a:active {
    transform: scale(0.98); 
    box-shadow: inset 0 0 8px 2px rgba(0, 0, 0, 0.15),
                0 1px 2px rgba(0, 0, 0, 0.1); 
    background-color: transparent;
    color: var(--header-text);
    border-color: var(--text-light);
    border-bottom-width: 1px;
}

.navigation li a.active {
    background-color: var(--accent-link);
    color: var(--box-bg);
    border-color: var(--header-text);
    transform: translateY(2px);
    border-bottom-width: 2px;
}

#menu-widget {
    padding: 0;
    background: transparent;
    border: none;
}

#menu-widget .navigation {
    margin-top: 6px;
}

.mobile-menu-launcher,
.mobile-menu-close,
#mobile-menu-backdrop {
    display: none;
}

.mobile-widget-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: default;
}

.mobile-widget-toggle-icon {
    display: none;
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 10pt;
    font-weight: bold;
}

/* --- Botão "Siteslist" (Estilo do Menu) --- */
.siteslist-button-container {
    padding: 0 0 10px 0; 
}
a.webcore-button-style {
    display: block;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s ease-in-out; 
    background-image: url('../images/botao.jpg');
    background-size: cover;
    background-position: center;
    color: var(--header-text); 
    border-radius: 999px; 
    border: 1px solid var(--text-light); 
    padding: 4px 10px; 
    box-shadow: inset 0 0 4px 1px rgba(255, 255, 255, 0.7), 
                0 2px 4px rgba(0, 0, 0, 0.15);
    margin-bottom: 0; 
    font-family: 'Balsamiq Sans', cursive; 
    font-weight: 700; 
    font-size: 1.1em; 
    text-shadow: 
        -1px -1px 0 #FFFFFF,  
         1px -1px 0 #FFFFFF,  
        -1px  1px 0 #FFFFFF,  
         1px  1px 0 #FFFFFF;
}
a.webcore-button-style:hover {
    transform: scale(1.04);
    box-shadow: inset 0 0 5px 2px rgba(255, 255, 255, 0.9),
                0 4px 8px rgba(0, 0, 0, 0.2); 
    background-color: transparent;
    border-color: var(--text-light);
    border-bottom-width: 1px; 
}
a.webcore-button-style:active {
    transform: scale(0.98); 
    box-shadow: inset 0 0 8px 2px rgba(0, 0, 0, 0.15),
                0 1px 2px rgba(0, 0, 0, 0.1); 
    background-color: transparent;
    color: var(--header-text);
    border-color: var(--text-light);
    border-bottom-width: 1px; 
}

/* --- Banners da Esquerda --- */
.sidebar-left > img {
    width: 100%; 
    height: auto; 
    display: block; 
    margin-top: 0;
}

.sidebar-feature-panel {
    margin-top: 0 !important;
}

.mobile-widgets-divider {
    display: none;
}

.sidebar-decor {
    display: block;
}

@media (min-width: 981px) {
    .sidebar-left > #listas-widget {
        order: 1;
    }

    .sidebar-left > #jogos-widget {
        order: 2;
        margin-top: -6px;
    }

    .sidebar-left > .sidebar-feature-panel {
        order: 3;
    }

    .sidebar-left > .mobile-music-row {
        order: 4;
        display: block;
        width: 100%;
    }

    .sidebar-left > .mobile-music-row #music-player {
        width: 100%;
        margin: 0;
    }

    .sidebar-left > .sidebar-decor {
        order: 5;
    }

    #lain-widget {
        display: none !important;
    }
}


/* --- ESTILO "JANELA" PARA O WIDGET DE JOGOS --- */

#jogos-widget {
    /* 1. O estilo "Janela" (copiado do #listas-widget) */
    padding: 3px; 
    background-color: var(--box-bg-alt); 
    border: 2px outset var(--border-color);
    
    /* 2. O margin-top que removemos do HTML */
    margin-top: 10px; 
}

#jogos-widget .widget-title {
    /* 3. O Cabeçalho Rosa (copiado do #listas-widget) */
    background-color: var(--accent-link);
    color: var(--box-bg);
    font-family: 'Silkscreen', monospace;
    font-size: 1.1em;
    padding: 4px 8px;
    margin: 0; 
    border-bottom: none;
    line-height: 1.2;
}

/* --- CORREÇÃO (Links do Widget "GAMES") --- */

/* 1. Remove o "ponto" (bullet) da lista */
#jogos-widget .widget-console-links {
    background-color: var(--box-bg); 
    border: 2px inset var(--border-color); 
    margin-top: 3px;
    padding: 10px;
    margin-bottom: 0;
    list-style-type: none; 
}

/* 2. Cada link vira uma caixa igual ao estilo de listas */
#jogos-widget .widget-console-links li {
    display: block;
    margin-bottom: 6px;
}

#jogos-widget .widget-console-links li:last-child {
    margin-bottom: 0;
}

/* 3. Caixa clicável no mesmo padrão visual de listas */
#jogos-widget .widget-console-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--accent-link);
    font-weight: 500;
    font-family: 'Tahoma', 'Verdana', sans-serif;
    background-color: var(--box-bg);
    border: 1px solid var(--border-color-light);
    border-radius: 4px;
    transition: all 0.2s;
}

#jogos-widget .widget-console-links a:hover {
    text-decoration: none;
    background-color: var(--border-color-light);
    border-color: var(--border-color);
}

/* 5. Garante que os ícones fiquem no tamanho certo */
#jogos-widget .widget-console-links img {
    width: 18px;
    height: 18px;
}

#jogos-widget .widget-console-links span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===============================================
   --- 5. BARRA LATERAL DIREITA (WIDGETS) ---
=============================================== */

.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.widget-box {
    border: 1px dashed var(--border-color);
    background-color: var(--box-bg-alt);
    padding: 10px;
    font-size: 0.9em;
}
.content p, .content li, .widget-box p, .widget-box li {
    font-family: 'Tahoma', 'Verdana', 'Geneva', sans-serif;
    font-size: 10pt;
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- Widget: Calendário --- */
#calendar-widget {
    padding: 3px; 
    background-color: var(--box-bg-alt); 
    border: 2px outset var(--border-color);
}
#calendar-widget .widget-title {
    background-color: var(--accent-link);
    color: var(--box-bg);
    font-family: 'Silkscreen', monospace;
    font-size: 1.1em;
    padding: 4px 8px;
    margin: 0; 
    border-bottom: none;
    line-height: 1.2;
    text-align: center; 
}
#calendar-widget .calendar-content {
    background-color: var(--box-bg); 
    border: 2px inset var(--border-color); 
    margin-top: 3px; 
    padding: 5px; 
}
#calendar-widget table {
    width: 100%;
    border-collapse: collapse; 
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 8pt; 
    text-align: center;
}
#calendar-widget th {
    color: var(--accent-link);
    font-weight: bold;
    padding: 4px 2px;
    border: 1px solid var(--border-color-light); 
}
#calendar-widget td {
    vertical-align: middle;
    height: auto; 
    padding: 5px 2px; 
    border: 1px solid var(--border-color-light); 
}
#calendar-widget td span {
    font-size: 1.0em; 
    display: block; 
    line-height: 1; 
}
#calendar-widget td small {
    display: block; 
    line-height: 1; 
    white-space: nowrap; 
}
#calendar-widget .today {
    background-color: var(--accent-link);
    color: var(--box-bg);
    font-weight: bold;
    border-radius: 2px;
    padding: 2px 1px; /* Padding MÍNIMO */
}
#calendar-widget .today span {
    color: var(--box-bg);
}
#calendar-widget .today small {
    color: var(--box-bg-alt); 
}
#calendar-widget .other-month {
    opacity: 0; 
}

/* --- Widget: Visitas (Estilo Janela) --- */
div.widget-box[style="text-align: center;"] {
    background-image: none !important;
    background-color: var(--box-bg-alt); 
    border: 2px outset var(--border-color); 
    border-radius: 0; 
    padding: 3px;
    text-align: center;
}
div.widget-box[style="text-align: center;"] .widget-title {
    background-color: var(--accent-link); 
    color: var(--box-bg); 
    font-family: 'Silkscreen', monospace; 
    font-size: 1.1em;
    padding: 4px 8px;
    margin: 0; 
    border-bottom: none;
    line-height: 1.2;
    text-shadow: none; 
}
.visitor-counter-box {
    background-color: var(--box-bg); 
    border: 2px inset var(--border-color); 
    margin-top: 3px; 
    padding: 0px; 
    /* Estilos do flex (mantidos do original) */
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: left; 
}
.counter-label {
    display: flex;
    align-items: center;
    gap: 8px; 
    font-family: 'Tahoma', 'Verdana', sans-serif; 
    font-size: 10pt;
    color: var(--text-dark); 
    font-weight: 500;
}
.counter-value {
    background-color: transparent;
    border: none;
    color: var(--accent-link); 
    font-size: 1.3em; 
    text-shadow: none; 
    /* Estilos do flex (mantidos do original) */
    border-radius: 3px;
    padding: 2px 8px;
    font-weight: bold;
    font-family: 'Silkscreen', monospace; 
    min-width: 50px; 
    text-align: center; 
}

/* --- Widget: Social (Estilo "LIXU" Borda) --- */
div.widget-box[style="text-align: center;"] + .widget-box {
    border: none;
    padding: 0; 
    border-style: solid;
    border-width: 12px; 
    border-image-source: url("https://i.imgur.com/gTFIwdW.png"); 
    border-image-slice: 11; 
    border-image-repeat: round; 
    background-color: var(--box-bg); 
    background-clip: padding-box; 
    padding: 10px;
}
div.widget-box[style="text-align: center;"] + .widget-box .widget-title {
    border-bottom: none;
    padding-bottom: 0;
    text-align: center;
    margin-bottom: 10px; 
    color: var(--header-text); 
    text-shadow: 0 0 4px var(--accent-link); 
}
div.widget-box[style="text-align: center;"] + .widget-box .webcore-links a {
    color: var(--accent-link);
    text-shadow: none;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Balsamiq Sans', cursive, sans-serif; /* <-- ADICIONADO */
    font-weight: 400; /* <-- ADICIONADO */
}
div.widget-box[style="text-align: center;"] + .widget-box .webcore-links li::before {
    color: var(--accent-link); 
    text-shadow: none; 
}
div.widget-box[style="text-align: center;"] + .widget-box .webcore-links a:hover {
    text-decoration: none; 
    text-shadow: 
        0 0 4px #FFF,  
        0 0 8px var(--accent-link); 
}

/* --- Widget: "Listas" (Estilo Stats Bar) --- */
#links-widget-left,
#listas-widget {
    padding: 3px; 
    background-color: var(--box-bg-alt); 
    border: 2px outset var(--border-color); 
    background-image: none !important; 
}
#links-widget-left .widget-title,
#listas-widget .widget-title {
    background-color: var(--accent-link); 
    color: var(--box-bg); 
    font-family: 'Silkscreen', monospace;
    font-size: 1.1em;
    padding: 4px 8px;
    margin: 0; 
    border-bottom: none;
    line-height: 1.2;
}

#links-widget-left .widget-title,
#listas-widget .widget-title,
#jogos-widget .widget-title,
#webrings-widget .widget-title {
    font-family: 'Silkscreen', monospace;
    font-size: 1.1em;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}
#links-widget-left .widget-link-list,
#listas-widget .widget-link-list {
    background-color: var(--box-bg); 
    border: 2px inset var(--border-color); 
    margin-top: 3px; 
    padding: 10px; 
}
#links-widget-left .widget-link-list {
    max-height: 168px;
    overflow-y: auto;
}
.widget-link-list {
    list-style-type: none;
    padding-left: 0;
}
.widget-link-list li {
    margin-bottom: 6px;
}
.widget-link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    background-color: var(--box-bg);
    border: 1px solid var(--border-color-light);
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}
.widget-link-list a:hover {
    background-color: var(--accent-link);
    border-color: var(--accent-link);
}
.widget-link-list .link-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 10pt;
    color: var(--accent-link); /* <-- COR MUDADA PARA ROSA */
    font-weight: 500;
}
.widget-link-list a:hover .link-label {
    color: var(--box-bg);
}
.widget-link-list img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.widget-link-list a:hover img {
    filter: brightness(0) invert(1);
}
.widget-link-list .link-value {
    background-color: var(--box-bg-alt);
    border: 1px solid var(--border-color-light);
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 1em;
    color: var(--accent-link);
    font-weight: bold;
    font-family: 'Silkscreen', monospace;
    transition: all 0.2s;
}
.widget-link-list a:hover .link-value {
    background-color: var(--box-bg);
    color: var(--accent-link);
    border-color: var(--box-bg);
}
/* Ajustes para #listas-widget */
#links-widget-left .widget-link-list a,
#listas-widget .widget-link-list a {
    border: 1px solid var(--border-color-light);
    justify-content: flex-start;
}
#links-widget-left .widget-link-list a:hover,
#listas-widget .widget-link-list a:hover {
    background-color: var(--border-color-light);
    border-color: var(--border-color);
}
#links-widget-left .widget-link-list .link-value,
#listas-widget .widget-link-list .link-value {
    display: none;
}

#links-widget-left .widget-link-list-text a {
    min-height: 40px;
}

#links-widget-left .widget-link-list-text .link-label {
    width: 100%;
    justify-content: flex-start;
    gap: 0;
}

/* --- Widget: "Links" (com Borda "LIXU" e Rolagem) --- */
#links-widget-box {
    border: none;
    background-color: var(--box-bg); 
    padding: 0; 
    border-width: 12px;
    border-style: solid;
    border-image: url("https://i.imgur.com/gTFIwdW.png") 11 round;
}
#scrollable-links-widget {
    overflow-y: auto;
    max-height: 120px; 
    padding-right: 5px;
    /* Estilos do "UNDO" - revertendo para o padrão */
    list-style-type: none; 
    padding-left: 10px;
}
#scrollable-links-widget li::before {
    content: "- "; 
    color: var(--accent-link);
}
#scrollable-links-widget li {
    padding-bottom: 8px; 
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 10pt;
}
#scrollable-links-widget a {
    display: inline;
    padding: 0;
    color: var(--accent-link); /* <-- 1. Cor mudada para o rosa */
    text-decoration: none;
    border-width: 0;
    border-image: none;
    font-family: 'Balsamiq Sans', cursive, sans-serif; /* <-- 2. Fonte adicionada */
    font-weight: 400; /* Garante o peso correto da fonte */
}
#scrollable-links-widget a:hover {
    color: var(--accent-link);
    text-decoration: underline; 
    filter: none;
}
/* Estilo base para links webcore (usado por "Social" e "Links") */
.webcore-links {
    list-style-type: none; 
    padding-left: 10px;
}
.webcore-links li {
    padding-bottom: 8px;
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 10pt;
}
.webcore-links li::before {
    content: "- ";
    color: var(--accent-link); 
}
.webcore-links a {
    text-decoration: none;
    color: var(--text-dark);
}
.webcore-links a:hover {
    color: var(--accent-link);
    text-decoration: underline;
}

/* --- Widget: Webring --- */
.webring-collection {
    display: flex;
    flex-direction: column; 
    gap: 8px; 
    align-items: center; 
    margin-top: 5px;
    max-height: 157px; 
    overflow-y: auto; 
    padding-right: 5px; 
}
.webring-collection a {
    max-width: 100%; 
    width: 100%; 
    display: block;
    border: 1px solid var(--border-color); 
    transition: all 0.2s;
}
.webring-collection img {
    width: 100%; 
    height: 45px; 
    object-fit: cover; 
    image-rendering: pixelated;
    display: block;
}
.webring-collection a:hover {
    border-color: var(--accent-link); 
    filter: grayscale(100%); 
}

/* ===============================================
   --- 6. CONTEÚDO CENTRAL (GRID) ---
=============================================== */

main.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 10px;
    align-items: stretch; 
}
.content {
    border: 1px dashed var(--border-color);
    background-color: var(--box-bg);
    padding: 15px;
    margin-bottom: 0px; 
    margin-top: 0px; 
}
.content.full-width {
    grid-column: 1 / -1;
}
.content h2 {
    font-size: 1.5em;
    color: var(--header-text);
    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.content a {
    color: var(--accent-link);
    font-weight: bold;
    text-decoration: none;
}
.content a:hover { text-decoration: underline; }

/* --- Conteúdo: "Sobre Mim" (Janela Rosa) --- */
.content#about {
    border: 2px outset var(--border-color);
    background-color: var(--box-bg);
    padding: 18px;
    min-height: 0;
    overflow: visible;
}
.content#about h2 {
    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 1.2em;
}
.content#about p, .content#about div {
    color: var(--text-dark);
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-weight: 400;
}
.about-button {
    text-align: center; 
    text-decoration: none;
    color: var(--text-dark);
    background-color: var(--box-bg);
    border: 2px solid var(--border-color-light);
    border-bottom: 4px solid var(--border-color);
    border-right: 4px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 16px; 
    font-size: 0.82em; 
    font-family: 'Silkscreen', monospace;
    width: auto; 
    transition: all 0.1s ease;
}
.about-button:hover {
    background-color: var(--border-color-light);
    border-color: var(--border-color);
    transform: translateY(1px);
    border-bottom-width: 3px;
}
.about-button:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

/* --- Conteúdo: "Internet" (Widget com Botões Rosa) --- */
.content#internet {
    display: flex;
    flex-direction: column;
    padding: 20px 20px 20px 20px;
    background-image: url('../images/interestsbg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--box-bg);
    border: 4px ridge var(--border-color); 
    border-radius: 6px; 
}
.widget-pink-buttons {
    list-style-type: none;
    padding-left: 0;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-around; 
}
.widget-pink-buttons li {
    margin-bottom: 0; 
}

#internet .widget-pink-buttons {
    gap: 9px;
    justify-content: flex-start;
}

.widget-pink-buttons a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    background-color: var(--accent-link);
    border: 1px solid var(--accent-link);
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}
.widget-pink-buttons a:hover {
    background-color: var(--box-bg);
    border-color: var(--accent-link);
}
.widget-pink-buttons .link-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 10pt;
    color: var(--box-bg);
    font-weight: 500;
}
.widget-pink-buttons a:hover .link-label {
    color: var(--text-dark);
}
.widget-pink-buttons img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.widget-pink-buttons a:hover img {
    filter: none;
}
.widget-pink-buttons .link-value {
    background-color: var(--box-bg);
    border: 1px solid var(--box-bg);
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 1em;
    color: var(--accent-link);
    font-weight: bold;
    font-family: 'Silkscreen', monospace;
    transition: all 0.2s;
}
.widget-pink-buttons a:hover .link-value {
    background-color: var(--box-bg-alt);
    border-color: var(--border-color-light);
}

.widget-pink-buttons a.animated-button {
    /* Aplica a animação 'pulse-button' que já existe no seu CSS */
    animation: pulse-button 2s infinite ease-in-out;
    
    /* Bônus: faz o ícone de estrela ficar mais nítido */
    image-rendering: pixelated; 

    /* --- ADIÇÃO: Largura menor --- */
    width: fit-content; /* Faz o botão ter a largura do seu conteúdo */
    margin: 0 auto;     /* Centraliza o botão dentro do <li> */
    /* --- FIM DA ADIÇÃO --- */
}

/* Pausa a animação quando o mouse está em cima */
.widget-pink-buttons a.animated-button:hover {
    animation-play-state: paused;
}

.widget-pink-buttons a.animated-button .link-value {
    display: none;
}

.internet-symbol {
    display: inline-flex;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Tahoma', sans-serif;
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
}

/* --- Conteúdo: "Bio" (Página Sobre) --- */
.profile-bio {
    text-align: center; 
}
section#bio {
    padding: 0; 
    background-image: url('../images/fundonamikawai.jpg');
    background-size: 100% 100%; 
    background-position: center;
    background-repeat: no-repeat;
    border-width: 7px;
    border-style: solid;
    border-image: url("https://i.imgur.com/ROjUrNz.gif") 7 round; 
}
section#bio h2 {
    border-bottom: none;
    margin-bottom: 0; 
    border: none; 
    background-color: rgba(255, 255, 255, 0.2); 
    border-radius: 8px; 
    display: flex;
    justify-content: center; 
    align-items: center;   
    min-height: 48px; 
    margin: 8px 14px 0; 
    text-shadow: 
        0 0 4px #FFF,  
        0 0 8px var(--accent-link); 
    padding: 4px 10px; 
    font-size: 1.65em;
}
.bio-about-panel {
    margin: 10px 14px 14px;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-image: linear-gradient(rgba(250, 243, 247, 0.72), rgba(247, 236, 242, 0.76)), url('../images/bio/fundobio.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    text-align: left;
    display: grid;
    grid-template-columns: 1.45fr 0.9fr;
    gap: 14px;
    align-items: center;
}
.bio-about-copy {
    min-width: 0;
}
.bio-about-panel h3 {
    margin: 0 0 10px;
    color: var(--header-text);
    font-family: 'Silkscreen', monospace;
    font-size: 1em;
}
.bio-about-panel p {
    margin: 0;
    color: var(--accent-link);
    font-family: 'Balsamiq Sans', cursive, sans-serif;
    font-weight: 400;
    font-size: 0.95em;
    line-height: 1.6;
}
.bio-about-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-direction: column;
    text-align: center;
    align-self: start;
}
.bio-about-gif {
    width: 140px;
    height: 110px;
    margin: 2px;
    object-fit: contain;
}

@media (min-width: 981px) {
    section#bio {
        display: flex;
        flex-direction: column;
    }

    section#bio .bio-about-panel {
        flex: 1 1 auto;
        min-height: 225px;
    }

    section#bio .bio-about-actions {
        align-self: center;
    }
}
.lain-link-container {
    display: flex;            
    justify-content: center; 
    align-items: center;     
    gap: 8px;                
}
.arrow-gif {
    width: 50px;  
    height: 50px; 
    image-rendering: pixelated; 
}
.arrow-flipped {
    transform: scaleX(-1);
}
.lain-love-link {
    display: block;
    margin: 0 auto; 
    text-align: center;
    border: 2px dashed var(--border-color); 
    background-color: var(--box-bg);
    padding: 5px;
    transition: all 0.2s;
}
.lain-love-link img {
    display: block;
    width: 100%; 
    max-width: 150px; 
    height: auto;
    image-rendering: pixelated;
    margin: 0 auto; 
}
.lain-love-link:hover {
    border-color: var(--accent-link);
    box-shadow: 0 0 10px var(--border-color-light);
    filter: contrast(110%);
}

/* --- Conteúdo: "Blog" (Home Page) --- */
#blog {
    border: none;
    padding: 0; 
    border-style: solid;
    border-width: 30px 0;
    border-image-source: url('../images/blogfundo.png'); 
    border-image-slice: 35; 
    border-image-repeat: round; 
    background-image: url('../images/fundoblog.jpg');  
    background-size: cover;                        
    background-position: center;                   
    background-clip: border-box;
    padding: 20px;
}
section#blog h2 {
    background-image: url('../images/faixa.png'); 
    background-repeat: repeat-x;
    background-size: auto 100%;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    color: var(--box-bg); 
    text-align: center;
    font-size: 1.3em;
    letter-spacing: 2px;
    animation: subtle-glow 2.5s infinite ease-in-out;
    padding: 10px;
    margin: 0 0 15px 0; 
}
#section-blog {
    border: none;
    padding: 0;
    background: transparent;
}
.blog-post-summary {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    align-items: center; 
    transition: all 0.2s ease-in-out;
    padding: 5px; 
    border-radius: 4px;
}
.blog-post-summary:hover {
    transform: scale(1.03); 
    background-color: rgba(255, 255, 255, 0.3); 
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.blog-post-summary a:first-child {
    display: block; 
    width: 80px;
}
.blog-post-summary img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    border: 2px solid var(--border-color);
    background-color: var(--border-color-light);
}
.blog-post-summary div {
    min-width: 0; 
}
.blog-post-summary h3 {
    margin: 0; 
    color: var(--accent-link);
    font-size: 1.1em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.blog-post-summary .post-meta {
    font-size: 0.8em;
    color: var(--text-light);
    margin: 3px 0 5px 0; 
}
.blog-post-summary p {
    margin: 0; 
}
.blog-home-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 8px;
}
.blog-home-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid rgba(227, 136, 174, 0.45);
    background: rgba(255, 255, 255, 0.78);
    color: var(--accent-link);
    font-family: 'Tahoma', sans-serif;
    font-size: 8.5pt;
    border-radius: 999px;
}
.blog-post-summary-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    border: 1px dashed var(--border-color);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text-light);
    font-family: 'Tahoma', sans-serif;
    font-size: 9pt;
}
.blog-post-summary:not(:last-of-type)::after {
    content: '';
    display: block;
    width: 95%;
    height: 16px;
    background-image: url('../images/gifs/estrelas.gif');
    background-size: auto 16px;
    background-repeat: repeat-x;
    image-rendering: pixelated;
    margin: 12px 0; 
    grid-column: 1 / -1; 
    margin-left: auto;
    margin-right: auto;
}
.view-all-link {
    display: block;
    text-align: right;
    margin-top: 15px;
    font-size: 0.9em;
    color: var(--accent-link);
    text-decoration: none;
    font-weight: bold;
}
.view-all-link:hover {
    text-decoration: underline;
}

/* --- Conteúdo: Trabalhos na TV --- */
.content#trabalhos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    overflow: visible;
}
.content#blog {
    margin-top: -4px;
}
.works-tv-button {
    position: relative;
    display: block;
    width: min(100%, 470px);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    filter: drop-shadow(5px 7px 3px rgba(109, 76, 90, 0.24));
    transition: transform 0.18s ease, filter 0.18s ease;
}
.works-tv-button:hover {
    transform: translateY(-2px) rotate(-0.3deg);
    filter: drop-shadow(7px 9px 4px rgba(109, 76, 90, 0.3));
}
.works-tv-button:active {
    transform: translateY(1px) scale(0.99);
}
.works-tv-button > img {
    display: block;
    width: 100%;
    height: auto;
}
.works-tv-screen {
    position: absolute;
    top: 8%;
    left: 5.6%;
    width: 70.8%;
    height: 84.5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    overflow: hidden;
    border-radius: 16% / 12%;
    color: #9e3f69;
    background:
        linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 247, 251, 0.94)),
        #fff;
    font-family: 'Silkscreen', 'VT323', monospace;
    text-align: center;
    text-shadow: 0 0 3px #fff, 0 0 7px #ffb2d0;
}
.works-tv-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.08) 0,
        rgba(255, 255, 255, 0.08) 1px,
        rgba(0, 0, 0, 0.18) 2px,
        rgba(0, 0, 0, 0.18) 4px
    );
    animation: works-scanlines 5s linear infinite;
}
.works-tv-screen::after {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        repeating-radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1px 4px),
        repeating-radial-gradient(circle at 70% 60%, #ff94c1 0 1px, transparent 1px 5px);
    animation: works-static 0.22s steps(2) infinite;
}
.works-tv-screen > * {
    position: relative;
    z-index: 2;
}
.works-tv-mascot {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 74%;
    height: auto;
    opacity: 0.42;
    pointer-events: none;
    filter: saturate(1.35) contrast(1.05);
    transform: translate(-50%, -50%);
}
.works-tv-channel {
    position: absolute;
    top: 10%;
    left: 9%;
    font-size: 0.82em;
    color: #f9acc9;
}
.works-tv-screen strong {
    font-size: clamp(1.15rem, 3.2vw, 1.85rem);
    letter-spacing: 1px;
    animation: works-flicker 2.8s infinite;
}
.works-tv-screen small {
    font-family: 'Balsamiq Sans', cursive, sans-serif;
    font-size: clamp(0.78rem, 1.9vw, 1.05rem);
}
.works-tv-cta {
    margin-top: 7px;
    padding: 5px 8px;
    border: 1px solid #ffd7e8;
    color: #2b1522;
    background: #ffc5dc;
    font-size: clamp(0.65rem, 1.6vw, 0.85rem);
    text-shadow: none;
    box-shadow: 2px 2px 0 #8a3f64;
}
@keyframes works-static {
    0% { transform: translate(0, 0); }
    25% { transform: translate(2%, -1%); }
    50% { transform: translate(-1%, 2%); }
    75% { transform: translate(1%, 1%); }
    100% { transform: translate(-2%, -1%); }
}
@keyframes works-scanlines {
    from { background-position-y: 0; }
    to { background-position-y: 40px; }
}
@keyframes works-flicker {
    0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; }
    20%, 63% { opacity: 0.58; }
}

.works-modal {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(35, 18, 29, 0.62);
    backdrop-filter: blur(2px);
}
body.works-modal-open {
    overflow: hidden;
}
.works-modal-content {
    width: min(94vw, 610px);
    max-height: min(88vh, 680px);
    padding: 3px;
    overflow: hidden;
    border: 2px outset var(--border-color);
    background: var(--box-bg-alt);
    box-shadow: 8px 8px 0 rgba(45, 20, 34, 0.34);
}
.works-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 8px;
    color: var(--box-bg);
    background: var(--accent-link);
    font-family: 'Silkscreen', monospace;
    font-size: 0.94em;
}
.works-modal-close {
    flex: 0 0 auto;
    width: 23px;
    height: 23px;
    color: var(--accent-link);
    background: var(--box-bg);
    border: 2px outset var(--border-color);
    font-family: 'Silkscreen', monospace;
    line-height: 1;
    cursor: pointer;
}
.works-modal-body {
    max-height: calc(min(88vh, 680px) - 38px);
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 2px inset var(--border-color);
    background:
        linear-gradient(rgba(255, 248, 251, 0.92), rgba(255, 248, 251, 0.92)),
        radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: auto, 6px 6px;
}
.works-modal-intro,
.works-modal-signoff {
    margin: 0;
    color: var(--header-text);
    font-family: 'Silkscreen', monospace;
    font-size: 0.78em;
    text-align: center;
}
.works-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}
.works-channel-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 74px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 14px 12px 12px;
    overflow: hidden;
    color: var(--text-dark);
    border: 2px outset var(--border-color);
    background: linear-gradient(135deg, #fff 0%, #fff0f7 52%, #ffd9e9 100%);
    text-decoration: none;
    box-shadow: inset 0 0 0 2px #fff;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.works-channel-card::after {
    content: ">";
    position: absolute;
    right: 10px;
    bottom: 7px;
    color: var(--accent-link);
    font-family: 'Silkscreen', monospace;
}
.works-channel-card:hover {
    text-decoration: none;
    transform: translateY(-2px);
    filter: saturate(1.18);
}
.works-channel-card-pending {
    cursor: default;
    filter: grayscale(0.25);
    opacity: 0.78;
}
.works-channel-card-pending::after {
    content: "...";
}
.works-channel-card-pending:hover {
    transform: none;
    filter: grayscale(0.25);
}
.works-channel-name {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding-right: 20px;
}
.works-channel-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid #fff;
    background: var(--accent-link);
    box-shadow: 1px 1px 0 #a75c7b;
    font-family: 'VT323', monospace;
    font-size: 0.88em;
    line-height: 1;
}
.works-channel-icon img {
    display: block;
    width: 15px;
    height: 15px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.works-channel-card strong {
    color: var(--header-text);
    font-family: 'Silkscreen', monospace;
    font-size: 0.9em;
}
.works-channel-card small {
    padding-right: 20px;
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 9pt;
}
.works-channel-number {
    color: #a76a82;
    font-family: 'VT323', monospace;
    font-size: 1.05em;
}
.works-channel-card-wide {
    grid-column: 1 / -1;
}

@media (prefers-reduced-motion: reduce) {
    .works-tv-screen::before,
    .works-tv-screen::after,
    .works-tv-screen strong,
    .mobile-menu-launcher,
    .mobile-menu-launcher::before,
    .mobile-menu-launcher::after {
        animation: none;
    }
}

/* ===============================================
   --- 7. PÁGINAS DO BLOG (LISTA E POST) ---
=============================================== */

/* --- Janela da Lista do Blog (blog.html) --- */
.blog-window-container {
    border: 2px outset var(--border-color);
    background: var(--box-bg-alt);
    padding: 3px;
    margin-top: 10px; 
}
.blog-window-header {
    background-color: var(--accent-link);
    color: var(--box-bg);
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.blog-window-header h2 {
    font-family: 'Silkscreen', monospace;
    font-size: 1.1em;
    color: var(--box-bg);
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1.2;
}
.blog-back-button {
    background-color: var(--border-color-light);
    color: var(--accent-link);
    border: 1px outset var(--border-color);
    font-family: 'Silkscreen', monospace;
    font-size: 0.8em;
    font-weight: bold;
    padding: 2px 5px;
    text-decoration: none;
    cursor: pointer;
}
.blog-back-button:hover {
    filter: brightness(1.1);
}
.blog-back-button:active {
    border-style: inset;
}
.blog-window-content {
    background-color: var(--box-bg);
    border: 2px inset var(--border-color);
    margin-top: 3px;
    padding: 10px; 
}
.blog-toolbar {
    background-color: var(--box-bg);
    border: 2px inset var(--border-color);
    margin-top: 3px;
    padding: 10px 14px;
}
.blog-toolbar p {
    margin: 0;
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 10pt;
    color: var(--text-dark);
}
.blog-search-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.blog-search-form input {
    flex: 1;
    border: 1px solid var(--border-color);
    background-color: var(--box-bg-alt);
    padding: 8px 10px;
    font-family: 'Tahoma', 'Verdana', sans-serif;
}
.blog-search-form button {
    border: 1px solid var(--accent-link);
    background-color: var(--accent-link);
    color: var(--box-bg);
    padding: 8px 12px;
    font-family: 'Silkscreen', monospace;
    cursor: pointer;
}
.blog-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 10px;
}
.blog-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--border-color-light);
    background-color: #fff7fb;
    color: var(--header-text);
    font-family: 'Silkscreen', monospace;
    font-size: 0.72em;
}
#blog-posts-all .blog-list-item {
    padding: 15px 5px; 
}
.blog-list-item {
    display: grid;
    grid-template-columns: 150px 1fr; 
    gap: 15px;
    padding: 15px 0;
    border-bottom: 2px dashed var(--border-color-light);
}
.blog-list-item:last-of-type {
    border-bottom: none;
}
.blog-list-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border: 2px solid var(--border-color);
}
.blog-list-item h3 {
    font-size: 1.5em;
    color: var(--header-text);
    margin: 0 0 5px 0;
}
.blog-list-item .post-meta {
    font-size: 0.9em;
    color: var(--accent-link);
    margin-bottom: 10px;
}
.blog-list-item p { 
    color: var(--text-dark);
    margin-bottom: 15px;
}
.blog-list-item a {
    text-decoration: none;
    color: var(--accent-link);
    font-weight: bold;
    font-family: 'Silkscreen', monospace;
}
.blog-list-item a:hover {
    text-decoration: underline;
}
.blog-read-more {
    display: inline-block;
    margin-top: 8px;
}

/* --- Paginação do Blog --- */
.blog-pagination {
    background-color: var(--box-bg);
    border: 2px inset var(--border-color);
    margin-top: 3px;
    padding: 10px;
    text-align: center;
}
.page-link {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 3px;
    font-family: 'Silkscreen', monospace;
    font-size: 1em;
    text-decoration: none;
    background-color: var(--box-bg-alt);
    border: 1px solid var(--border-color-light);
    color: var(--accent-link);
    cursor: pointer;
}
.page-link:hover {
    background-color: var(--border-color-light);
}
.page-link.active {
    background-color: var(--accent-link);
    color: var(--box-bg);
    border-color: var(--accent-link);
    cursor: default;
}

/* --- Página de Post Individual (post.html) --- */
.blog-post-full {
    padding: 15px;
}
.blog-post-full h2 {
    font-size: 1.8em;
    color: var(--header-text);
    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.blog-post-full .post-meta {
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 25px;
}
.blog-post-full img.post-main-image {
    max-width: 100%;
    border: 2px solid var(--border-color);
    margin-bottom: 25px;
}
.blog-post-full .post-content {
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 10pt;
    color: var(--text-dark);
    line-height: 1.7;
}
.blog-post-full .post-content p {
    margin-bottom: 15px;
}
.blog-post-full .post-content a {
    color: var(--accent-link);
    font-weight: bold;
}
.blog-comments-shell {
    margin-top: 12px;
}
.blog-comment-status {
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 9pt;
    color: var(--box-bg);
}
.blog-comment-identity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, #fff8fb 0%, #ffeff6 100%);
}
.blog-comment-identity strong {
    font-family: 'Silkscreen', monospace;
    color: var(--header-text);
    font-size: 0.9em;
}
.blog-comment-identity p {
    margin: 3px 0 0;
}
.blog-comment-identity-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
#blog-comment-nickname,
.blog-comment-form textarea {
    border: 1px solid var(--border-color);
    background-color: var(--box-bg);
    padding: 8px 10px;
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 10pt;
    color: var(--text-dark);
}
#blog-comment-nickname {
    width: 170px;
}
#blog-randomize-nickname {
    background-color: var(--box-bg);
    color: var(--accent-link);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    font-family: 'Silkscreen', monospace;
    font-size: 0.8em;
    cursor: pointer;
}
#blog-randomize-nickname:hover {
    background-color: var(--accent-link);
    color: var(--box-bg);
}
.blog-comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.blog-comment-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.blog-comment-form-meta span {
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 8.5pt;
    color: var(--text-light);
}
.blog-comment-form textarea {
    resize: vertical;
    min-height: 110px;
}
.blog-comment-form button {
    align-self: flex-end;
    background-color: var(--accent-link);
    color: var(--box-bg);
    border: none;
    padding: 10px 14px;
    font-family: 'Silkscreen', monospace;
    cursor: pointer;
}
.blog-comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.blog-comment-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: #fff9fc;
    box-shadow: 0 2px 0 var(--border-color-light);
}
.blog-comment-avatar-shell {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.blog-comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    object-fit: cover;
    background-color: var(--border-color-light);
}
.blog-comment-avatar-placeholder {
    border-radius: 50%;
}
.blog-comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.blog-comment-meta strong {
    color: var(--header-text);
    font-family: 'Silkscreen', monospace;
    font-size: 0.85em;
}
.blog-comment-meta span {
    color: var(--text-light);
    font-size: 8.5pt;
    font-family: 'Tahoma', 'Verdana', sans-serif;
}
.blog-comment-body p {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.blog-post-full a.back-link {
    display: inline-block;
    text-decoration: none;
    color: var(--text-dark);
    background-color: var(--box-bg);
    border: 2px solid var(--border-color-light);
    border-bottom: 4px solid var(--border-color);
    border-right: 4px solid var(--border-color);
    border-radius: 4px;
    padding: 12px 10px;
    font-size: 1em;
    font-family: 'Silkscreen', monospace; 
    margin-top: 25px;
    transition: all 0.1s ease;
}
.blog-post-full a.back-link:hover {
    background-color: var(--border-color-light);
    border-color: var(--border-color);
    transform: translateY(1px);
    border-bottom-width: 3px;
}
.blog-post-full a.back-link:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

/* ===============================================
   --- 8. CHATBOX E AUTENTICAÇÃO DISCORD ---
=============================================== */

.chatbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color-light);
    margin-bottom: 10px;
    gap: 12px;
    flex-wrap: wrap;
}
.chatbox-header h2 {
    border-bottom: none;
    margin-bottom: 0;
}
.chatbox-header-note {
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 8.5pt;
    color: var(--text-light);
    margin-left: auto;
}
#chat-discord-login-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    white-space: nowrap;
}
#chat-discord-login-top img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}
.chat-discord-login-label {
    display: inline-block;
    color: var(--box-bg);
    font-family: 'Silkscreen', monospace;
    font-size: 0.8em;
    line-height: 1;
}
#chatbox.content {
    border: 3px ridge #f0c0d4;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 245, 249, 0.98));
    box-shadow:
        inset 0 0 0 1px #fff,
        inset 0 0 0 4px rgba(247, 209, 224, 0.65);
    padding: 15px;
    margin-top: -30px;
    align-self: start;
    height: auto;
}
.chatbox-container {
    border: 2px outset #f4cade;
    background: linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(255, 245, 250, 0.96));
    padding: 8px;
    border-radius: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.92);
}
.chat-identity-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 180px) 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border-color-light);
    background: #fff8fb;
}
.chat-identity-bar label {
    font-family: 'Silkscreen', monospace;
    font-size: 0.8em;
    color: var(--header-text);
}
#chat-nickname-input {
    border: 1px solid var(--border-color);
    background-color: var(--box-bg);
    padding: 8px 10px;
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 10pt;
    color: var(--text-dark);
}
.chat-identity-note {
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 8.5pt;
    color: var(--text-light);
}
.chat-reply-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 8px;
    padding: 7px 10px;
    border: 1px solid var(--border-color-light);
    border-left: 4px solid var(--accent-link);
    background: #fff8fb;
}
.chat-reply-bar div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.chat-reply-bar p {
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 9pt;
    color: var(--text-dark);
    margin: 0;
}
#chat-cancel-reply-btn {
    background-color: transparent;
    color: var(--header-text);
    border: none;
    padding: 2px 4px;
    font-family: 'Silkscreen', monospace;
    font-size: 0.8em;
    cursor: pointer;
}
#chat-cancel-reply-btn:hover {
    color: var(--accent-link);
}
.chat-reply-bar[hidden] {
    display: none;
}
/* Bloco Corrigido */
.chatbox-messages {
    width: 100%;
    height: 430px; 
    overflow-y: auto; 
    background-color: var(--box-bg);
    border: 2px inset #f0c3d6;
    padding: 10px;
    margin-bottom: 8px;
    background-image: linear-gradient(
        45deg, 
        var(--box-bg-alt) 25%, 
        transparent 25%, 
        transparent 75%, 
        var(--box-bg-alt) 75%, 
        var(--box-bg-alt)
    ), linear-gradient(
        -45deg, 
        var(--box-bg-alt) 25%, 
        transparent 25%, 
        transparent 75%, 
        var(--box-bg-alt) 75%, 
        var(--box-bg-alt)
    );
    background-size: 10px 10px;
    
    /* --- CORREÇÃO (Alinha mensagens embaixo) --- */
    display: flex;
    flex-direction: column;
}
.chat-message {
    background: linear-gradient(180deg, #fffdfd 0%, #fff4f8 100%);
    border: 1px solid #efbfd3;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 10pt;
    position: relative;
    box-shadow: 0 2px 2px var(--border-color-light), inset 0 0 0 1px rgba(255, 255, 255, 0.78);
    /* --- CORREÇÃO DO AVATAR (Flexbox) --- */
    display: flex;
    gap: 10px; 
    align-items: flex-start; /* <-- ADICIONE ESTA LINHA */
}
.chat-message .nickname {
    font-weight: bold;
    color: var(--header-text); 
    display: block;
    margin-bottom: 4px;
    font-size: 9pt;
    /* Impede que o nickname passe por cima do timestamp */
    display: inline-block; 
    max-width: 70%;
}
.chat-message .heart {
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 1.2em;
    color: var(--border-color); 
    opacity: 0.8;
}
/* Bloco Corrigido */
.message-header-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.chat-message .chat-timestamp {
    font-size: 8pt; 
    color: var(--text-light); 
    margin-left: 0;
    font-family: 'Tahoma', 'Verdana', sans-serif;
}
.chat-system-message {
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 9pt;
    color: var(--text-light);
    text-align: center;
    padding: 10px;
}

/* ===============================================
   --- 13. ESTILOS DO CHAT (LER MAIS) ---
=============================================== */

/* O botão "...Ler Mais" */
.chat-ler-mais-btn {
    font-size: 9pt;
    font-weight: bold;
    color: var(--accent-link); /* Reutiliza a cor rosa dos links */
    text-decoration: none;
    display: inline-block;
    margin-left: 5px;
    cursor: pointer;
}

.chat-text-hidden {
    margin-right: 4px; /* Opcional: Adiciona um espaço antes do botão */
}

.chat-ler-mais-btn:hover {
    text-decoration: underline;
}

/* --- CORREÇÃO DO CHAT (ALINHAMENTO E TIMESTAMP) --- */

/* REGRAS DE .chatbox-messages e .chat-message .chat-timestamp
   FORAM MOVIDAS PARA CIMA.
*/

/* Bloco Corrigido */
.anonymous-avatar-container {
    flex-shrink: 0;
    width: 40px;
    /* height: 40px; (removido para auto-ajuste) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4px; /* Alinha o ícone com o nick */
}
.anonymous-avatar-container .heart {
    font-size: 1.5em;
    color: var(--border-color);
    line-height: 1;
    position: static; /* Reseta o position:absolute */
    opacity: 1;
}

/* NOVO: Estilo para o ícone aleatório */
.anonymous-avatar-container .anonymous-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    object-fit: cover;
    background-color: var(--border-color-light); 
}
.anonymous-icon-placeholder {
    border-radius: 50%;
}

.anonymous-message-content {
    flex-grow: 1;
    min-width: 0;
    /* NOVO: Empilha nick, p, timestamp */
    display: flex;
    flex-direction: column;
}

.anonymous-message-content .message-header {
    display: flex;
    /* justify-content: space-between; (REMOVIDO) */
    align-items: baseline;
    margin-bottom: 4px;
}
.anonymous-message-content p {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-grow: 1; /* NOVO: Ocupa o espaço do meio */
}
/* --- Correção do Avatar do Chat (Flexbox) --- */
.discord-avatar-container {
    flex-shrink: 0;
    width: 40px;
    /* height: 40px; (removido para auto-ajuste) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4px; /* Alinha o ícone com o nick */
}
.discord-avatar-chat {
    width: 40px;  
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}
/* Bloco Corrigido */
.discord-message-content {
    flex-grow: 1;
    min-width: 0;
    /* NOVO: Empilha nick, p, timestamp */
    display: flex;
    flex-direction: column;
}
.discord-message-content p {
    margin-top: 5px; 
    word-wrap: break-word; 
    overflow-wrap: break-word;
    flex-grow: 1; /* NOVO: Ocupa o espaço do meio */
}
.chat-reply-preview-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    margin: 4px 0 10px;
    padding: 8px 10px 8px 14px;
    border: 1px solid var(--border-color-light);
    border-left: 4px solid var(--accent-link);
    background-color: #fff6fb;
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
}
.chat-reply-preview-btn:hover {
    background-color: #ffeef8;
}
.chat-reply-preview-author {
    font-family: 'Silkscreen', monospace;
    font-size: 0.8em;
    color: var(--header-text);
}
.chat-message-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}
.chat-reply-trigger {
    background: transparent;
    border: 1px solid var(--border-color-light);
    color: var(--accent-link);
    padding: 4px 8px;
    font-family: 'Silkscreen', monospace;
    font-size: 0.75em;
    cursor: pointer;
}
.chat-reply-trigger:hover {
    background-color: var(--accent-link);
    color: var(--box-bg);
}
.links-lixu-scroll {
    max-height: 152px;
    overflow-y: auto;
    padding-right: 6px;
}
.chat-message .discord-nick {
    color: #5865F2; /* Cor do Discord para o nick */
    font-weight: bold;
}

/* --- Input do Chat --- */
.chatbox-input-form {
    display: flex;
    gap: 8px;
}
/* Bloco Corrigido */
.chatbox-input-form input[type="text"] {
    flex-grow: 1; 
    border: 1px solid var(--border-color);
    background-color: var(--box-bg);
    padding: 10px;
    font-family: 'Tahoma', 'Verdana', sans-serif; /* <-- FONTE MUDADA */
    font-size: 10pt; /* <-- TAMANHO AJUSTADO */
    color: var(--text-dark);
}
.chatbox-input-form input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-link);
}
.chatbox-input-form input[type="text"]:disabled {
    background-color: var(--box-bg-alt);
    opacity: 0.7;
}
.chatbox-input-form button {
    background-color: var(--accent-link);
    color: var(--box-bg);
    border: none;
    padding: 0 15px;
    font-family: 'Silkscreen', monospace;
    font-size: 0.9em;
    cursor: pointer;
}
.chatbox-input-form button:hover {
    filter: brightness(1.1);
}
.chatbox-input-form button:disabled {
    background-color: var(--text-light) !important;
    cursor: not-allowed !important;
    filter: none !important;
}

/* Estilo para a nova Textarea do Chat */
.chatbox-input-form textarea {
    /* 1. Herda o estilo do input original */
    flex-grow: 1; 
    border: 1px solid var(--border-color);
    background-color: var(--box-bg);
    padding: 10px;
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 10pt;
    color: var(--text-dark);
    
    /* 2. Estilos específicos do Textarea */
    resize: none; /* Remove o redimensionador */
    line-height: 1.5; /* Espaçamento de linha */
    max-height: 120px; /* Altura máxima antes da barra de rolagem */
    overflow-y: auto; /* Barra de rolagem se necessário */
}

.chatbox-input-form textarea:focus {
    outline: none;
    border-color: var(--accent-link);
}

.chatbox-input-form textarea:disabled {
    background-color: var(--box-bg-alt);
    opacity: 0.7;
}
.chatbox-meta-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.chat-identity-switch {
    border: 1px solid var(--border-color-light);
    background-color: var(--box-bg);
    color: var(--accent-link);
    padding: 4px 8px;
    font-family: 'Silkscreen', monospace;
    font-size: 0.7em;
    cursor: pointer;
}
.chat-identity-switch:hover {
    background-color: #fff6fb;
}
.chat-feedback-status,
.chat-character-counter {
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 8.5pt;
    color: var(--text-light);
}
.chat-feedback-status {
    text-align: center;
}
.chat-character-counter {
    justify-self: end;
}
.chat-message-highlight {
    animation: chat-highlight-flash 1.6s ease;
    border-color: var(--accent-link);
    box-shadow: 0 0 0 2px rgba(233, 136, 169, 0.22);
}
@keyframes chat-highlight-flash {
    0% {
        transform: translateX(0);
        background-color: #fff1f7;
    }
    35% {
        transform: translateX(4px);
        background-color: #ffe3f0;
    }
    100% {
        transform: translateX(0);
        background-color: var(--box-bg);
    }
}

/* ===============================================
   --- 8. CHATBOX E AUTENTICAÇÃO DISCORD ---
=============================================== */

/* ... (as classes .chatbox-header e .chat-settings-btn ficam aqui) ... */
/* ... */

/* --- Modal de Configurações (Estilo "Janela") --- */
.chat-settings-modal {
    position: fixed; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 1. A "Janela" (borda 'outset') */
.chat-settings-modal .modal-content {
    border: 2px outset var(--border-color);
    background: var(--box-bg-alt);
    padding: 3px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 2. O Título (barra rosa) */
.chat-settings-modal .widget-title {
    background-color: var(--accent-link);
    color: var(--box-bg);
    font-family: 'Silkscreen', monospace;
    font-size: 1.1em;
    padding: 4px 8px;
    margin: 0; 
    border-bottom: none;
    line-height: 1.2;
}

/* 3. O Conteúdo (borda 'inset') */
.modal-body-content {
    background-color: var(--box-bg);
    border: 2px inset var(--border-color);
    margin-top: 3px;
    padding: 15px;
    text-align: center; /* Centraliza tudo no modal */
}

/* 4. O box "Logado Como" (remove a borda feia) */
.modal-body-content .logged-in-user {
    border: none; /* Remove a borda tracejada */
    background-color: var(--box-bg-alt);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px; /* Espaço antes do botão Fechar */
    /* (O resto do estilo é herdado de .logged-in-user) */
}

/* 5. O novo Botão "Login (Local)" */
.modal-local-login-btn {
    /* Herda o estilo do botão discord... */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--box-bg);
    border: 2px outset var(--accent-link);
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Silkscreen', monospace;
    font-size: 0.9em;
    transition: all 0.1s ease;
    
    /* ... mas tem cor e tamanho diferentes */
    background-color: var(--text-light); /* Cor cinza-rosa */
    border-color: var(--text-light);
    width: 100%; /* Ocupa o espaço todo */
    justify-content: center; /* Centraliza o texto */
}
.modal-local-login-btn:hover {
    filter: brightness(1.1);
}
.modal-local-login-btn:active {
    border-style: inset;
    transform: translateY(1px);
}


/* 6. O botão "Fechar" (agora rosa e bonito) */
.modal-body-content #chat-close-settings {
    background-color: var(--accent-link);
    color: var(--box-bg);
    border: none;
    padding: 8px 12px;
    font-family: 'Silkscreen', monospace;
    cursor: pointer;
    margin: 15px 0 0 0; /* Espaçamento (margin-top) */
    width: 100%; /* Ocupa o espaço todo */
    font-size: 0.9em;
}
.modal-body-content #chat-close-settings:hover {
    filter: brightness(1.1);
}
.modal-body-content #chat-close-settings:active {
    filter: brightness(0.9);
}

/* ... (o resto do seu CSS continua abaixo) ... */

/* ===============================================
   --- 14. CORREÇÃO DO CHAT (PRESERVAR ESPAÇOS) ---
=============================================== */

/*
   Aplica a regra 'pre-wrap' aos parágrafos que contêm
   as mensagens, tanto de usuários Discord quanto Anônimos.
*/
.discord-message-content p,
.anonymous-message-content p {
    /* * Esta é a mágica:
     * 'pre-wrap' diz ao navegador para preservar todos os
     * espaços em branco e quebras de linha, mas
     * também quebrar a linha se a mensagem for
     * muito longa para a caixa (o melhor dos dois mundos).
    */
    white-space: pre-wrap;
    
    /* * Garante que uma palavra gigante (sem espaços) 
     * não quebre o layout da caixa.
    */
    word-wrap: break-word;
}

/* --- Botões de Login Discord (Webcore Rosa) --- */
.discord-login-link-index {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-family: 'Tahoma', sans-serif;
    font-size: 0.9em;
    color: var(--accent-link); 
    text-decoration: none;
}
.discord-login-link-index:hover {
    text-decoration: underline;
    filter: brightness(1.1);
}
.discord-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-link); 
    color: var(--box-bg); 
    border: 2px outset var(--accent-link);
    border-top-color: var(--border-color-light);
    border-left-color: var(--border-color-light);
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Silkscreen', monospace;
    font-size: 0.9em;
    transition: all 0.1s ease;
}
.discord-login-btn img {
    height: 16px; 
    filter: brightness(0) invert(1); 
}
.discord-login-btn:hover {
    filter: brightness(1.1); 
}
.discord-login-btn:active {
    border-style: inset; 
    transform: translateY(1px);
}
.logged-in-user {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--box-bg-alt); 
    border: 1px dashed var(--border-color); 
    padding: 5px 10px;
    border-radius: 4px;
    font-family: 'Tahoma', sans-serif;
    font-size: 9pt;
    color: var(--text-dark);
}
.discord-avatar-small {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid var(--border-color); 
}
.discord-logout-btn {
    font-size: 8pt;
    color: var(--accent-link);
    font-weight: bold;
    text-decoration: none;
}
.discord-logout-btn:hover {
    text-decoration: underline;
}

/* --- ESTILOS DO MODAL DE CONFIGURAÇÃO (LOGIN CORRIGIDO) --- */

/* Centraliza o botão de login e o "Logado como..." */
#user-auth-status {
    text-align: center;
    margin-bottom: 15px; 
    margin-top: 10px; /* <-- ADICIONE ESTA LINHA */
}

/* O botão de login em si (CAIXA MENOR) */
.chat-settings-modal .discord-login-btn {
    /* 1. Layout: Ícone na esquerda, texto na direita */
    display: inline-flex;  /* Faz a caixa ter o tamanho do conteúdo */
    align-items: center;
    justify-content: center;
    gap: 8px;              /* Espaço entre o ícone e o texto */

    /* 2. Tamanho ("Caixa menor") */
    padding: 5px 12px;     /* Padding bem menor */
    font-size: 0.9em;      /* Fonte um pouco menor */
    width: auto;           /* Largura automática (NÃO 100%) */

    /* 3. Estilo (O que já tínhamos) */
    background-color: var(--accent-link);
    color: var(--box-bg);
    border: 2px outset var(--accent-link);
    border-top-color: var(--border-color-light);
    border-left-color: var(--border-color-light);
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Silkscreen', monospace;
    transition: all 0.1s ease;
}

/* Ícone dentro do botão */
.chat-settings-modal .discord-login-btn img {
    height: 16px; 
    width: 16px;  /* Garante o tamanho */
    filter: brightness(0) invert(1); 
}

/* Efeitos Hover/Active */
.chat-settings-modal .discord-login-btn:hover {
    filter: brightness(1.1);
    /* Garante que a cor do texto mude no hover (se não foi herdada) */
    color: var(--box-bg); 
}
.chat-settings-modal .discord-login-btn:active {
    border-style: inset;
    transform: translateY(1px);
}

/* O texto "ou" */
.chat-modal-separator {
    font-family: 'Tahoma', sans-serif;
    font-size: 10pt;
    color: var(--text-light);
    margin: 10px 0 0 0;
    text-align: center; /* Garante que o "ou" fique centralizado */
}

/* --- ESTILO DO BOTÃO "ENTRAR COM DISCORD" (Página Index) --- */

.discord-login-link-index {
    /* 1. Faz o <a> se comportar como um botão */
    display: inline-block; 
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    
    /* 2. Espaçamento */
    margin-top: 15px; /* Espaço do formulário de cima */
    
    /* 3. Estilo (baseado no seu botão "ENTRAR") */
    background-color: var(--accent-link);
    color: var(--box-bg);
    border: 2px solid var(--accent-link);
    
    /* 4. "Menorzinho" */
    padding: 8px 12px; 
    font-family: 'Silkscreen', monospace;
    font-size: 0.9em; 
}

.discord-login-link-index:hover {
    /* Efeito hover (baseado no seu botão "ENTRAR") */
    background-color: var(--box-bg);
    color: var(--accent-link);
    
    /* Garante que não tenha sublinhado ou brilho */
    text-decoration: none; 
    filter: none; 
}

/* ===============================================
   --- 9. MODAIS POP-UP (SOBRE, SITES, SORTE) ---
=============================================== */

/* --- Modal: Sobre Mim --- */
#about-modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none; 
    justify-content: center;
    align-items: center;
}
.about-modal-content {
    width: 90%;
    max-width: 650px; 
    border: 2px outset var(--border-color); 
    background: var(--box-bg-alt); 
    padding: 3px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.about-modal-header {
    background-color: var(--accent-link); 
    color: var(--box-bg); 
    font-family: 'Silkscreen', monospace;
    font-size: 1.1em;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.2;
}
.about-modal-close-btn {
    background-color: var(--border-color-light);
    color: var(--accent-link);
    border: 1px outset var(--border-color);
    font-family: 'Silkscreen', monospace;
    font-size: 0.8em;
    font-weight: bold;
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.about-modal-close-btn:active {
    border-style: inset;
}
.about-modal-body {
    background-color: var(--box-bg); 
    border: 2px inset var(--border-color); 
    margin-top: 3px; 
    padding: 20px; 
    text-align: left; 
    max-height: 550px; 
    overflow-y: auto; 
    font-family: 'Comic Sans MS', 'Balsamiq Sans', cursive, sans-serif;
    font-size: 11pt; 
    color: var(--text-dark);
    line-height: 1.7; 
    background-image: linear-gradient(
        45deg, 
        var(--box-bg-alt) 25%, 
        transparent 25%, 
        transparent 75%, 
        var(--box-bg-alt) 75%, 
        var(--box-bg-alt)
    ), linear-gradient(
        -45deg, 
        var(--box-bg-alt) 25%, 
        transparent 25%, 
        transparent 75%, 
        var(--box-bg-alt) 75%, 
        var(--box-bg-alt)
    );
    background-size: 10px 10px;
}
.about-modal-body p {
    margin-bottom: 15px;
}

/* --- Modal: Siteslist --- */
#siteslist-modal {
    position: fixed;
    z-index: 2001; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
}
.siteslist-modal-content {
    width: 90%;
    max-width: 550px; /* <-- MUDANÇA: Aumentei de 450px */
    border: 2px outset var(--border-color); 
    background: var(--box-bg-alt); 
    padding: 3px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.siteslist-modal-header {
    background-color: var(--accent-link); 
    color: var(--box-bg); 
    font-family: 'Silkscreen', monospace;
    font-size: 1.1em;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.2;
}
.siteslist-modal-close-btn {
    background-color: var(--border-color-light);
    color: var(--accent-link);
    border: 1px outset var(--border-color);
    font-family: 'Silkscreen', monospace;
    font-size: 0.8em;
    font-weight: bold;
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.siteslist-modal-close-btn:active {
    border-style: inset;
}
.siteslist-modal-body {
    background-color: var(--box-bg); 
    border: 2px inset var(--border-color); 
    margin-top: 3px; 
    padding: 20px; 
    text-align: left; 
    max-height: 500px; /* <-- MUDANÇA: Aumentei de 400px */
    overflow-y: auto; 
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 10pt;
    color: var(--text-dark);
    line-height: 1.4; /* <-- MUDANÇA: Diminuí de 1.6 */
}
.siteslist-modal-body p {
    margin-bottom: 8px; /* <-- MUDANÇA: Diminuí de 15px */
}
.siteslist-modal-body p strong {
    color: var(--header-text); 
}

/* --- Modal: Oráculo (Sorte) --- */
#fortune-modal {
    position: fixed;
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    display: none; 
    justify-content: center;
    align-items: center;
}
.fortune-modal-content {
    width: 90%;
    max-width: 350px;
    border: 2px outset var(--border-color); 
    background: var(--box-bg-alt); 
    padding: 3px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.fortune-modal-header {
    background-color: var(--accent-link); 
    color: var(--box-bg); 
    font-family: 'Silkscreen', monospace;
    font-size: 1.1em;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    line-height: 1.2;
}
.fortune-modal-close-btn {
    background-color: var(--border-color-light);
    color: var(--accent-link);
    border: 1px outset var(--border-color);
    font-family: 'Silkscreen', monospace;
    font-size: 0.8em;
    font-weight: bold;
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.fortune-modal-close-btn:active {
    border-style: inset;
}
.fortune-modal-body {
    background-color: var(--box-bg); 
    border: 2px inset var(--border-color); 
    margin-top: 3px; 
    padding: 20px; 
    text-align: center;
}
.fortune-modal-body img {
    width: 80px;
    image-rendering: pixelated;
    margin-bottom: 10px;
}
.fortune-modal-body h2 {
    font-size: 1.8em;
    color: var(--header-text);
    margin: 0;
    border: none;
}
.fortune-modal-body p {
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 10pt;
    color: var(--text-dark);
    margin-top: 10px;
}

/* ===============================================
   --- 10. COMPONENTES (PLAYER, ORÁCULO, ETC) ---
=============================================== */

/* --- Componente: Music Player --- */
.player-widget {
    background-image: url('../images/music.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 8px;
    padding: 30px 25px 50px; 
    margin-bottom: 10px;
}
.mobile-music-row {
    display: contents;
}
.mobile-music-girl {
    display: none;
}
.mobile-music-cd {
    display: none;
}
.player-container {
    font-family: 'MS PGothic', sans-serif;
    color: var(--text-dark); 
    text-align: center;
}
.now-playing {
    font-size: 0.9em;
    margin-bottom: 10px;
    overflow: hidden;  
    white-space: nowrap; 
}
.now-playing .scrolling-text-inner {
     display: inline-block;
     padding-left: 100%; 
     animation: marquee-scroll 10s linear infinite; 
}
#current-song-title {
    font-weight: bold;
}
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.progress-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 5px; 
}
#current-time,
#total-time {
    font-size: 0.8em;
    color: var(--header-text); 
    width: 30px; 
    flex-shrink: 0; 
}
.progress-bar-wrapper {
    flex-grow: 1; 
    position: relative;
    height: 10px; 
    background-color: var(--border-color-light); 
    border-radius: 5px;
}
/* Sliders de Progresso e Volume */
#progress-bar,
#volume-slider {
    width: 100%; 
    height: 10px; 
    background: transparent;
    border-radius: 5px;
    outline: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    -webkit-appearance: none; 
    appearance: none;         
}
#volume-slider {
    width: 150px; 
    position: static; /* Volume não é absoluto */
    margin: 13px;
    --value: 50%; 
}
/* Trilha (Track) - WEBKIT */
#progress-bar::-webkit-slider-runnable-track,
#volume-slider::-webkit-slider-runnable-track {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, var(--accent-link) var(--value, 0%), var(--border-color-light) var(--value, 0%));
    border: 2px inset var(--border-color); 
    box-sizing: border-box;
}
/* Trilha (Track) - FIREFOX */
#progress-bar::-moz-range-track,
#volume-slider::-moz-range-track {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, var(--accent-link) var(--value, 0%), var(--border-color-light) var(--value, 0%));
    border: 2px inset var(--border-color);
    box-sizing: border-box;
}
/* Seletor (Thumb) - WEBKIT */
#progress-bar::-webkit-slider-thumb,
#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;   
    width: 12px;    
    background: var(--border-color-light); 
    border: 2px outset var(--accent-link); 
    border-radius: 3px; 
    cursor: pointer;
    margin-top: -7px; 
}
/* Seletor (Thumb) - FIREFOX */
#progress-bar::-moz-range-thumb,
#volume-slider::-moz-range-thumb {
    height: 20px;
    width: 12px;
    background: var(--border-color-light);
    border: 2px outset var(--accent-link);
    border-radius: 3px;
    cursor: pointer;
}
/* Efeitos Hover/Active dos Sliders */
#progress-bar::-webkit-slider-thumb:hover,
#volume-slider::-webkit-slider-thumb:hover,
#progress-bar::-moz-range-thumb:hover,
#volume-slider::-moz-range-thumb:hover {
    background-color: var(--border-color); 
}
#progress-bar::-webkit-slider-thumb:active,
#volume-slider::-webkit-slider-thumb:active,
#progress-bar::-moz-range-thumb:active,
#volume-slider::-moz-range-thumb:active {
    background-color: var(--accent-link); 
    border-style: inset; 
}
/* Controles do Player */
.controls {
    display: flex;
    justify-content: center;
    align-items: center; 
    gap: 8px; 
    margin-top: 10px;
}
.player-btn {
    background-color: var(--border-color-light); 
    border: 2px outset var(--accent-link); 
    border-radius: 4px;
    padding: 5px;
    cursor: pointer;
    transition: background-color 0.1s ease;
    width: 40px; 
    height: 30px; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.player-btn:hover {
    background-color: var(--border-color); 
}
.player-btn img {
    width: 100%; 
    height: 100%;
    object-fit: contain; 
    image-rendering: pixelated; 
}
#play-pause-btn {
    width: 50px; 
    height: 35px;
}
.volume-area {
    display: flex;
    justify-content: center; 
    align-items: center;
    margin-top: 8px; 
}

/* --- Componente: Oráculo (O-mikuji) --- */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 8px 3px rgba(231, 142, 169, 0.3); 
    }
    50% {
        box-shadow: 0 0 18px 6px rgba(231, 142, 169, 0.7); 
    }
}
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}
@keyframes cookie-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-2deg); }
}
#omikuji-widget {
    animation: none;
    border: none;
    background-color: transparent; 
    height: auto; 
    background-image: none;
    padding: 62px 8px 10px 0; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 220px;
    border-radius: 0;
    box-shadow: none;
}
#omikuji-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    background-image: url('../images/pinkwindows.jpg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border: 2px outset var(--border-color);
    padding: 14px 10px;
    align-self: stretch;
    height: 100%;
}
#omikuji-side.content {
    min-height: 0;
}
.omikuji-link-card {
    display: grid;
    grid-template-columns: 18px 1fr 18px;
    align-items: center;
    gap: 4px;
    width: 100%;
    max-width: 150px;
    padding: 18px 0 0;
    margin-left: -28px;
    border: none;
    background-color: transparent;
    text-decoration: none;
}
.omikuji-desktop-lain {
    max-width: 165px;
    margin: 0;
    padding: 0;
}
#lain-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 10px 8px;
}
#lain-widget .omikuji-link-card {
    width: 100%;
    max-width: 160px;
    margin: 0;
    padding: 0;
}
.omikuji-link-preview {
    display: block;
    width: 100%;
    height: 34px;
    object-fit: cover;
    border: 2px solid var(--border-color);
}
.omikuji-link-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
}
.omikuji-link-arrow img {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
}
.omikuji-link-arrow-left img {
    transform: scaleX(-1);
}
.omikuji-link-arrow-right img {
    transform: none;
}
.omikuji-link-card:hover {
    filter: brightness(1.05);
}
.omikuji-title {
    display: block !important; 
    font-size: 1.1em;
    color: var(--header-text);
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 
        0 0 4px #FFF,  
        0 0 8px var(--accent-link); 
}
#fortune-cookie-btn {
    width: 132px;
    height: 132px;
    cursor: pointer;
    image-rendering: pixelated;
    transition: transform 0.1s ease;
    animation: cookie-float 2.8s ease-in-out infinite;
}
.omikuji-side-gif {
    display: none;
}
#fortune-cookie-btn:hover {
    transform: scale(1.06);
}
#fortune-cookie-btn:active {
    transform: scale(0.95);
}
#fortune-cookie-btn.shaking {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both infinite;
}
#fortune-cookie-btn.shaking:hover {
    transform: none;
}
#fortune-cooldown-text {
    margin-top: 12px;
    color: var(--header-text);
    font-family: 'Silkscreen', 'VT323', monospace;
    font-size: 0.78em;
    text-align: center;
}

/* --- Componente: Marquee (Texto Rolante) e Footer --- */
.scrolling-text {
    background-image: url('../images/faixa.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: center;
    color: var(--box-bg);
    padding: 6px 0;
    font-family: 'Silkscreen', 'VT323', monospace;
    font-size: 1em;
    letter-spacing: 2px;
    margin-left: -10px;
    margin-right: -10px;
    overflow: hidden;
}
.retro-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.retro-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 42px;
    min-width: max-content;
    animation: retro-marquee-scroll 20s linear infinite;
}
.retro-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding-right: 28px;
}
.retro-marquee-item img {
    height: 16px;
    width: auto;
    vertical-align: middle;
    image-rendering: pixelated;
}
.retro-marquee-footer .retro-marquee-track {
    gap: 20px;
    animation-duration: 14s;
}
.footer-marquee-item {
    gap: 12px;
    padding-right: 12px;
}
.footer-marquee-item img {
    height: 30px;
    width: auto;
    vertical-align: middle;
    image-rendering: pixelated;
}
@keyframes retro-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.footer-container {
    width: 100%;
    margin-top: 10px;
    border-top: 2px dashed var(--border-color-light);
}
.footer-marquee {
    width: 100%;
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: center;
    padding: 6px 0;
}
.footer-static-text {
    text-align: center;
    padding: 10px;
    font-size: 0.8em;
    color: var(--text-light); 
}
.footer-static-text p {
    margin: 0;
    font-family: 'Silkscreen', 'VT323', monospace; 
    font-size: 1.1em; 
    color: var(--accent-link); 
}

@media (max-width: 980px) {
    .container {
        width: min(100% - 4px, 1024px);
        margin: 2px auto;
        padding: 6px;
    }

    .header img {
        height: clamp(180px, 36vw, 280px) !important;
    }

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

    .sidebar-left,
    .sidebar-right,
    .main-grid,
    main.main-grid {
        display: contents;
        width: auto;
    }

    #bio,
    #links-widget-left,
    #internet,
    #omikuji-side,
    #trabalhos,
    #chatbox,
    #blog,
    #menu-widget,
    #visits-widget,
    #music-player,
    .mobile-music-row,
    #lain-widget,
    .siteslist-button-container,
    #webrings-widget,
    #calendar-widget,
    .sidebar-feature-panel {
        grid-column: 1 / -1;
        width: 100%;
    }

    #visits-widget { order: 5; }
    #lain-widget { order: 5; }
    #mobile-menu-open { order: 6; }
    #bio { order: 10; }
    #internet { order: 11; }
    #omikuji-side { order: 12; }
    #listas-widget { order: 30; }
    #jogos-widget { order: 31; }
    .mobile-widgets-divider { order: 32; }
    #links-widget-left { order: 50; }
    .sidebar-feature-panel { order: 35; }
    .mobile-music-row { order: 35; }
    #trabalhos { order: 39; }
    #chatbox { order: 70; }
    #blog { order: 80; }
    #menu-widget { order: 90; }
    #webrings-widget { order: 110; }
    #calendar-widget { order: 110; }
    .siteslist-button-container { order: 130; }

    .sidebar-decor {
        display: none !important;
    }

    .mobile-widgets-divider {
        display: block;
        grid-column: 1 / -1;
        width: 100%;
        height: 42px;
        margin: -2px 0;
        object-fit: cover;
        object-position: center 58%;
        pointer-events: none;
    }

    #listas-widget,
    #jogos-widget {
        grid-column: span 1;
        width: 100%;
        align-self: stretch;
    }

    #jogos-widget {
        margin-top: 0;
    }

    #visits-widget,
    #lain-widget {
        grid-column: span 1;
        width: 100%;
        min-width: 0;
        align-self: stretch;
        margin-top: 0;
    }

    #lain-widget {
        min-height: 64px;
        padding: 8px;
    }

    #lain-widget .omikuji-link-card {
        max-width: 150px;
    }

    .mobile-menu-launcher {
        position: relative;
        isolation: isolate;
        display: block;
        grid-column: 1 / -1;
        width: 100%;
        padding: 9px 42px 9px 14px;
        overflow: hidden;
        color: var(--box-bg);
        background:
            repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 12px, rgba(255,255,255,0) 12px 24px),
            linear-gradient(180deg, #ef9ebb 0%, var(--accent-link) 48%, #d8799c 100%);
        background-size: 48px 100%, 100% 100%;
        border: 2px outset var(--border-color);
        font-family: 'Silkscreen', 'VT323', monospace;
        font-size: 1em;
        text-align: left;
        letter-spacing: 1px;
        text-shadow: 1px 1px 0 #c36387, 0 0 5px #fff;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.62), 0 0 0 rgba(231,142,169,0);
        cursor: pointer;
        animation: mobile-menu-pulse 2.4s ease-in-out infinite, mobile-menu-stripes 4s linear infinite;
    }

    .mobile-menu-launcher::before {
        content: "";
        position: absolute;
        top: -60%;
        bottom: -60%;
        left: -28%;
        z-index: 0;
        width: 20%;
        pointer-events: none;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.82), transparent);
        transform: skewX(-18deg);
        animation: mobile-menu-shine 2.8s ease-in-out infinite;
    }

    .mobile-menu-label {
        position: relative;
        z-index: 1;
    }

    .mobile-menu-launcher::after {
        content: "✦";
        position: absolute;
        top: 50%;
        right: 15px;
        color: #fff5fa;
        font-family: 'Tahoma', sans-serif;
        font-size: 1.05em;
        text-shadow: 0 0 4px #fff, 0 0 9px #ffd0e4;
        transform: translateY(-50%);
        animation: mobile-menu-star 1.15s steps(2, end) infinite;
    }

    .mobile-menu-launcher:active {
        border-style: inset;
        transform: translateY(1px);
    }

    @keyframes mobile-menu-shine {
        0%, 18% { left: -28%; opacity: 0; }
        30% { opacity: 0.9; }
        58%, 100% { left: 112%; opacity: 0; }
    }

    @keyframes mobile-menu-star {
        0%, 44% { opacity: 1; transform: translateY(-50%) scale(1); }
        45%, 100% { opacity: 0.38; transform: translateY(-50%) scale(0.82); }
    }

    @keyframes mobile-menu-pulse {
        0%, 100% { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.62), 0 0 0 rgba(231,142,169,0); }
        50% { box-shadow: inset 0 0 0 1px #fff, 0 0 10px rgba(231,142,169,0.65); }
    }

    @keyframes mobile-menu-stripes {
        from { background-position: 0 0, 0 0; }
        to { background-position: 48px 0, 0 0; }
    }

    #mobile-menu-backdrop:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 9998;
        background: rgba(109, 76, 90, 0.42);
        backdrop-filter: blur(2px);
    }

    #menu-widget {
        display: none;
    }

    #menu-widget.is-mobile-open {
        display: block;
        position: fixed;
        top: 50%;
        left: 50%;
        z-index: 9999;
        width: min(88vw, 360px);
        padding: 8px;
        transform: translate(-50%, -50%);
        background: var(--body-bg);
        border: 2px outset var(--border-color);
        box-shadow: 6px 6px 0 rgba(109, 76, 90, 0.28);
    }

    #menu-widget.is-mobile-open .widget-title {
        margin: 0 0 6px;
        padding: 5px 36px 5px 8px;
        color: var(--box-bg);
        background: var(--accent-link);
    }

    #menu-widget.is-mobile-open .navigation {
        margin-top: 0;
    }

    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 1;
        width: 24px;
        height: 24px;
        color: var(--accent-link);
        background: var(--box-bg);
        border: 2px outset var(--border-color);
        font-family: 'Silkscreen', monospace;
        line-height: 1;
        cursor: pointer;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    .sidebar-feature-panel {
        grid-column: span 1;
        width: 100% !important;
        min-width: 0;
        align-self: start;
    }

    .sidebar-feature-panel {
        display: none !important;
        height: auto;
        object-fit: contain;
    }

    .mobile-music-row {
        display: none;
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
        align-items: center;
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    #music-player {
        grid-column: span 1;
        order: 0;
        width: 100% !important;
        min-width: 0;
        aspect-ratio: 1 / 1;
        margin: 0;
        padding: 30px 16px 42px;
        border: 0;
        border-radius: 0;
        background-color: transparent;
        box-shadow: none;
    }

    .mobile-music-girl {
        display: none;
        grid-column: span 1;
        width: 100%;
        max-width: 180px;
        height: auto;
        justify-self: center;
        align-self: center;
        object-fit: contain;
        image-rendering: pixelated;
    }

    .mobile-music-cd {
        position: fixed;
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        z-index: 9000;
        display: block;
        width: 76px;
        height: 76px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
        cursor: pointer;
        filter: drop-shadow(0 4px 5px rgba(111, 63, 85, 0.4));
        transition: transform 0.18s ease, filter 0.18s ease;
    }

    .mobile-music-cd img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 50%;
    }

    .mobile-music-cd:hover,
    .mobile-music-cd:focus-visible {
        transform: scale(1.07);
        filter: drop-shadow(0 5px 7px rgba(111, 63, 85, 0.5));
    }

    .mobile-music-cd.spinning img {
        animation: mobile-music-cd-spin 3s linear infinite;
    }

    .mobile-music-cd:not(.spinning) {
        animation: mobile-music-cd-idle-pulse 2.4s ease-in-out infinite;
    }

    @keyframes mobile-music-cd-spin {
        to { transform: rotate(360deg); }
    }

    @keyframes mobile-music-cd-idle-pulse {
        0%, 100% {
            box-shadow: 0 0 0 0 rgba(229, 133, 168, 0);
        }
        50% {
            box-shadow: 0 0 0 8px rgba(229, 133, 168, 0.2);
        }
    }

    #music-player .now-playing {
        margin-bottom: 7px;
        font-size: 0.76em;
    }

    #music-player .progress-area {
        gap: 3px;
        margin-bottom: 9px;
    }

    #music-player #current-time,
    #music-player #total-time {
        width: 24px;
        font-size: 0.68em;
    }

    #music-player .controls {
        gap: 5px;
        margin-top: 7px;
    }

    #music-player .player-btn {
        width: 32px;
        height: 26px;
        padding: 4px;
    }

    #music-player #play-pause-btn {
        width: 40px;
        height: 30px;
    }

    #music-player .volume-area {
        margin-top: 5px;
    }

    #music-player #volume-slider {
        width: min(100%, 104px);
        margin: 8px 0;
    }

    #links-widget-left {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        align-self: stretch;
    }

    #webrings-widget,
    #calendar-widget {
        grid-column: span 1;
        width: 100%;
        min-width: 0;
        align-self: stretch;
    }

    #webrings-widget {
        padding: 3px;
        border: 2px outset var(--border-color);
    }

    #webrings-widget .widget-title {
        margin: 0;
        padding: 4px 8px;
        color: var(--box-bg);
        background: var(--accent-link);
        border-bottom: none;
        font-family: 'Silkscreen', monospace;
        font-size: 1.1em;
        font-weight: 400;
        line-height: 1.2;
    }

    #webrings-widget .webring-collection {
        max-height: 190px;
        margin-top: 3px;
        padding: 8px 5px 8px 8px;
        background: var(--box-bg);
        border: 2px inset var(--border-color);
    }

    #links-widget-left .widget-link-list,
    #listas-widget .widget-link-list,
    #jogos-widget .widget-console-links {
        display: grid;
        gap: 8px;
        align-items: stretch;
    }

    #listas-widget .widget-link-list,
    #jogos-widget .widget-console-links {
        grid-template-columns: 1fr;
    }

    #links-widget-left .widget-link-list {
        grid-template-columns: 1fr;
        max-height: 152px;
        overflow-y: auto;
        padding-right: 6px;
    }

    #links-widget-left .widget-link-list li,
    #listas-widget .widget-link-list li,
    #jogos-widget .widget-console-links li {
        margin-bottom: 0;
        display: block;
    }

    #links-widget-left .widget-link-list a,
    #listas-widget .widget-link-list a,
    #jogos-widget .widget-console-links a {
        width: 100%;
        height: 100%;
        min-height: 40px;
        align-items: center;
    }

    #links-widget-left .widget-link-list a {
        padding: 7px 10px;
    }

    #links-widget-left .widget-link-list .link-label {
        font-family: 'Tahoma', 'Verdana', sans-serif;
        font-size: 10pt;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #jogos-widget .widget-console-links {
        margin-top: 3px;
        padding: 10px;
    }

    .content {
        padding: 12px;
    }

    section#bio h2 {
        font-size: 1.25em;
        min-height: 40px;
        margin: 8px 10px 0;
    }

    .bio-about-panel {
        margin: 8px 10px 10px;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bio-about-panel p {
        font-size: 0.92em;
    }

    .bio-about-copy h3 {
        width: 100%;
        text-align: center;
    }

    #about-modal {
        padding: 8px;
        overflow: hidden;
    }

    .about-modal-content {
        width: min(94vw, 650px);
        max-width: 94vw;
        min-width: 0;
        max-height: calc(100svh - 16px);
        overflow: hidden;
    }

    .about-modal-body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        max-height: calc(100svh - 70px);
        padding: 14px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .about-modal-body .bio {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .about-modal-body img {
        display: block;
        width: auto;
        max-width: min(100%, 280px);
        height: auto;
        margin: 8px auto;
    }

    .bio-about-actions {
        justify-content: center;
        align-items: center;
    }

    .bio-about-gif {
        width: min(160px, 52vw);
        height: auto;
    }

    #omikuji-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
        gap: 10px;
        width: 100%;
        justify-self: auto;
        min-height: 0;
        padding: 0;
        background: transparent;
        border: 0;
        align-self: auto;
        height: auto;
        overflow: hidden;
    }

    .omikuji-desktop-lain {
        display: none;
    }

    #omikuji-widget {
        width: 100%;
        height: auto;
        aspect-ratio: 720 / 902;
        min-width: 0;
        padding: 42px 12px 18px 6px;
        max-width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        border: 2px outset var(--border-color);
        background-color: var(--box-bg-alt);
        background-image: url('../images/pinkwindows.jpg');
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }

    #fortune-cookie-btn {
        width: min(148px, 100%);
        height: auto;
    }

    .omikuji-side-gif {
        display: block;
        width: 100%;
        max-width: 190px;
        height: auto;
        aspect-ratio: 720 / 902;
        justify-self: center;
        object-fit: cover;
        object-position: center;
    }

    .omikuji-link-preview {
        height: 30px;
    }

    .omikuji-link-arrow img {
        width: 16px;
        height: 16px;
    }

    .content#internet {
        padding: 14px;
    }

    .widget-pink-buttons {
        gap: 10px;
        justify-content: flex-start;
    }

    .content#trabalhos {
        gap: 6px;
        margin-bottom: 0;
        padding: 6px 0;
    }

    .works-tv-button {
        width: min(100%, 440px);
    }

    .works-tv-channel {
        font-size: 0.9em;
    }

    .works-tv-screen strong {
        font-size: clamp(1.4rem, 6vw, 1.7rem);
    }

    .works-tv-screen small {
        font-size: clamp(0.9rem, 3.4vw, 1.05rem);
    }

    .works-tv-cta {
        font-size: clamp(0.76rem, 3vw, 0.9rem);
        padding: 6px 9px;
    }

    #chatbox.content {
        margin-top: 0;
        padding: 8px;
    }

    .chatbox-container {
        padding: 5px;
    }

    .chatbox-messages {
        padding: 6px;
    }

    .chat-message {
        padding: 8px 9px;
        gap: 8px;
    }

    .chat-identity-bar,
    .chat-reply-bar,
    .chatbox-input-form,
    .blog-comment-identity,
    .blog-comment-identity-actions,
    .blog-window-header,
    .blog-search-form {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .chatbox-header {
        align-items: flex-start;
    }

    .chatbox-header-note {
        margin-left: 0;
    }

    .chatbox-meta-row {
        grid-template-columns: 1fr;
    }

    .chat-character-counter {
        justify-self: start;
    }

    #chat-nickname-input,
    #blog-comment-nickname {
        width: 100%;
    }

    .chat-identity-bar {
        padding: 6px 8px;
        gap: 6px;
    }

    .chat-identity-note {
        font-size: 8pt;
    }

    .chatbox-input-form textarea {
        padding: 8px;
    }

    .chatbox-input-form button {
        padding: 10px 12px;
    }

    .blog-list-item,
    .blog-post-summary,
    .blog-comment-card {
        grid-template-columns: 1fr;
    }

    .blog-window-content {
        padding: 12px;
    }

    .blog-post-full .post-content {
        font-size: 9.5pt;
    }

    .siteslist-modal-content {
        width: min(96vw, 550px);
        max-height: 84vh;
    }

    .siteslist-modal-body {
        max-height: 70vh;
        overflow-y: auto;
    }

    .mobile-collapsible {
        align-self: start;
    }

    .mobile-widget-toggle {
        cursor: pointer;
    }

    #links-widget-left[data-mobile-static="true"] .mobile-widget-toggle,
    #listas-widget[data-mobile-static="true"] .mobile-widget-toggle,
    #jogos-widget[data-mobile-static="true"] .mobile-widget-toggle {
        cursor: default;
    }

    .mobile-widget-toggle-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
    }

    #links-widget-left[data-mobile-static="true"] .mobile-widget-toggle-icon,
    #listas-widget[data-mobile-static="true"] .mobile-widget-toggle-icon,
    #jogos-widget[data-mobile-static="true"] .mobile-widget-toggle-icon {
        display: none;
    }

    .mobile-collapsible.is-collapsed .mobile-widget-content {
        display: none;
    }
}

@media (max-width: 560px) {
    #links-widget-left .widget-link-list {
        max-height: 190px;
    }

    .works-modal-body {
        padding: 10px;
    }

    .works-channel-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .works-channel-card-wide {
        grid-column: auto;
    }

    .works-channel-card {
        min-height: 70px;
    }
}

/* ===============================================
   --- 11. EFEITOS GLOBAIS (SCROLL, CURSOR) ---
=============================================== */

/* --- Barra de Rolagem Customizada --- */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--body-bg);
    border-left: 1px solid var(--border-color-light);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 6px;
    border: 2px solid var(--body-bg);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-link);
}

/* --- Cursor Trail (Rastro) --- */
.sparkle {
    position: fixed; 
    top: 0;
    left: 0;
    pointer-events: none; 
    font-size: 1.5em;
    color: var(--accent-link);
    opacity: 0;
    animation: sparkle-trail 0.5s ease-out;
    z-index: 9999;
    text-shadow: 0 0 5px #ffffff, 0 0 10px var(--accent-link);
}
@keyframes sparkle-trail {
    0% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translate(50px, -50px); 
    }
}

/* --- ESTILO DO CD GIRATÓRIO (Página Index) --- */

#spinning-cd-player {
    /* 1. Posição absoluta (relativa ao .splash-box) */
    position: absolute; 
    
    /* 2. Coloca no canto superior direito DA CAIXA */
    /* (O 'top' e 'right' negativos empurram ele para fora) */
    top: -68px;
    right: -52px;
    z-index: 10;  /* Garante que fique EM CIMA da caixa */
    
    /* 3. Aparência */
    width: 112px; 
    height: 112px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    
    /* 4. Interação */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#spinning-cd-player:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

#spinning-cd-player:not(.spinning) {
    animation: cd-idle-pulse 2.4s ease-in-out infinite;
}

#spinning-cd-player.spinning {
    animation: spin 3s linear infinite;
}

@keyframes cd-idle-pulse {
    0%, 100% {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(229, 133, 168, 0);
    }
    50% {
        box-shadow: 0 5px 13px rgba(0, 0, 0, 0.24), 0 0 0 8px rgba(229, 133, 168, 0.2);
    }
}

/* 6. A DEFINIÇÃO DA ANIMAÇÃO (COLE ISSO NO FINAL) */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* --- Correção do Estilo do Post Individual --- */
/* Remove a borda/fundo do container do post quando ele está dentro da "janela" */
.blog-window-content .blog-post-full {
    border: none;
    background: transparent;
    padding: 10px 5px; /* Um padding mais suave */
}

/* Remove a margem extra do título */
.blog-window-content .blog-post-full h2 {
    margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
    #spinning-cd-player:not(.spinning),
    .mobile-music-cd:not(.spinning) {
        animation: none;
    }
}
