/* ==========================================================================
   CONFIGURAÇÕES GERAIS E VARIÁVEIS DE AJUSTE MILIMÉTRICO
   ========================================================================== */
:root {
    /* Dimensões Reais da imagem do seu 3DS (Baseado na proporção da sua imagem) */
    --console-width: 440px;
    --console-height: 720px;

    /* TELA SUPERIOR: Mova e redimensione até encaixar no retângulo preto de cima */
    --top-screen-width: 413px;
    --top-screen-height: 275px;
    --top-screen-top: 49px;
    --top-screen-left: 9px;

    /* CONTROLE DOS BOTÕES DO MENU (TELA SUPERIOR) */
    --menu-padding-top: 60px;      /* Espaçamento interno superior do menu */
    --menu-padding-left: 50px;     /* Recuo lateral esquerdo dos botões */
    --menu-item-gap: 8px;          /* Espaçamento vertical entre um botão e outro */
    --menu-btn-max-width: 175px;    /* Largura máxima individual de cada botão do menu */

    /* TELA INFERIOR: Mova e redimensione até encaixar no retângulo preto de baixo */
    --bottom-screen-width: 323px;
    --bottom-screen-height: 248px;
    --bottom-screen-top: 417px;
    --bottom-screen-left: 55px;

    /* BOTÕES FÍSICOS: Mova os botões transparentes < prev e > next sobre o D-Pad/Botões */
    --btn-prev-top: 800px;
    --btn-prev-left: 30px;
    --btn-next-top: 800px;
    --btn-next-left: 370px;

    /* Ajustes das Abas 1 e 2 (Games Played / Favorite Games) */
    --game-thumb-width: 51px;
    --game-thumb-height: 53px;
    --game-grid-gap: 5px;
    --game-grid-top: 57px;
    --game-grid-left: 22px;
    

    /* Ajustes da Aba 3 (Favorite Starters - Miniaturas Pixeladas Uniformes) */
    --starter-thumb-width: 28px;
    --starter-thumb-height: 28px;
    --starter-grid-gap: 5px;
    --starter-grid-top: 70px;
    --starter-grid-left: 115px;

    /* Ajustes da Aba 4 (Favorite Pokémon - Padronização de Tamanho dos GIFs) */
    --fav-pkmn-size: 45px;         /* Controla uniformemente a caixa dos GIFs flutuantes */
    
        /* ==========================================================================
       NOVAS VARIÁVEIS DE DECORAÇÃO (AJUSTE MILIMÉTRICO AQUI)
       ========================================================================== */
    /* Widget Mewtwo (Canto Superior Esquerdo) */
   /* Ajustes da Imagem 1 (GIF padrão estático) */
    --mewtwo-gif-scale: cover;      /* Pode ser cover, contain ou fill */
    --mewtwo-gif-width-scale: 100%; /* Ajuste a largura se quiser encolher/esticar */
    --mewtwo-gif-height-scale: 100%;

    /* Ajustes da Imagem 2 (WebP largo de Hover/Click) */
    --mewtwo-webp-scale: cover;     /* Mude para 'cover' para ele preencher o frame todo! */
    --mewtwo-webp-width-scale: 100%;/* Se ele vazar muito, diminua aqui (ex: 95%) */
    --mewtwo-webp-height-scale: 100%;

    /* Bloco de Notas (Canto Superior Direito) */
    --note-widget-top: 20px;
    --note-widget-right: 20px;
    --note-bg-width: 320px;        /* Largura da imagem do Glaceon/Umbreon */
    --note-bg-height: 220px;       /* Altura da imagem do Glaceon/Umbreon */
    --note-text-size: 16px;        /* Tamanho da fonte VT323 */
    --note-text-color: #333333;    /* Cor do texto dentro da nota */
    --note-padding-top: 30px;      /* Afastamento interno superior do texto */
    --note-padding-bottom: 30px;   /* Afastamento interno inferior do texto */
    --note-padding-left: 35px;     /* Afastamento interno esquerdo do texto */
    --note-padding-right: 35px;    /* Afastamento interno direito do texto */

    /* Widget Eeveelutions (Canto Inferior Direito) */
    --eeveelution-widget-bottom: 25px;   /* Distância em relação à base da página */
    --eeveelution-widget-right: 20px;    /* Distância em relação à borda direita */
    --eeveelution-img-width: 330px;      /* Largura da imagem blue-eeveelutions.jpg */
    --eeveelution-img-height: 180px;     /* Altura da imagem blue-eeveelutions.jpg */

    /* Widget da Rádio do Umbreon (Canto Inferior Esquerdo) */
    --radio-widget-bottom: 35px;
    --radio-widget-left: 70px;
    --radio-img-width: 150px;   /* Ajuste a largura original da imagem aqui */
    --radio-img-height: 150px;  /* Ajuste a altura original da imagem aqui */

    /* Widget do Umbreon Olhando (Lado direito da rádio) */
    --look-widget-bottom: 30px; /* Alinhado na mesma altura da base da rádio */
    --look-widget-left: calc(20px + 320px + 24px + 15px); /* Calcula o início da rádio + a largura dela + as bordas da renda + um espaço extra de 15px */
    --look-img-width: 120px;    /* Ajuste o tamanho real da largura da imagem aqui */
    --look-img-height: 120px;   /* Ajuste o tamanho real da altura da imagem aqui */

    /* Furret com Balões (Ao lado direito do Mewtwo) */
    --furret-top: 30px;      
    --furret-left: calc(35px + 550px + 20px); 
    --furret-width: 130px;   
    --furret-height: auto;    

    /* Sleepy Eevee (Ao lado direito do 3DS) */
    --eevee-sleepy-top: 100px;    
    --eevee-sleepy-left: calc(var(--console-width) + 215px); 
    --eevee-sleepy-width: 200px;    
    --eevee-sleepy-height: auto;

    /* Glaceon Maid (Sobreposição no painel inferior direito) */
    --glaceon-maid-width: 180px;   
    --glaceon-maid-height: auto;  
    --glaceon-maid-bottom: calc(var(--eeveelution-widget-bottom) + 12px); 
    --glaceon-maid-right: calc(var(--eeveelution-widget-right) + var(--eeveelution-img-width) - 40px);

    /* Ajustes Individuais do Suicune (Esquerda) e da Treinadora (Direita) */
    --suicune-width: 190px;         /* Ajuste a largura do Suicune aqui */
    --suicune-height: 130px;
    --suicune-offset-left: 20px;   /* Distância dele a partir do canto esquerdo do painel */

    /* Ajustes Individuais da Treinadora */
    --trainer-img-width: 200px;     /* Ajuste a largura da sua personagem aqui */
    --trainer-img-height: 400px;
    --trainer-img-offset-right: 40px; /* Distância dela a partir do canto direito do painel */

    /* CÁLCULO BASE AUTOMÁTICO DO TOPO (PISANDO NA RENDA DO REFUGO) */
    /* Pega o bottom do widget (50px), soma a altura total (300px) e desconta 12px para casar em cima da borda da renda */
    --eevee-top-lace-edge: calc(50px + 300px - 12px);

    /* Popplio Chorando (Canto Inferior Direito do 3DS) */
    /* Pega a altura total do 3DS (720px) e desconta 90px para ele sentar na borda de baixo */
    --popplio-top: calc(var(--console-height) - 90px); 
    /* Pega o início esquerdo do console, soma a largura dele e recua 50px para ele ficar em cima do plástico */
    --popplio-left: calc(var(--console-width) + 20px); /* Ajuste esse valor para colar mais no 3DS ou afastar */
    --popplio-width: 160px;    /* Tamanho fofinho para manter a proporção com o console */
    --popplio-height: 140px;

    /* Botão de Voltar (Abaixo do 3DS) */
    --back-btn-bottom: 15px;       /* Distância em relação à base da página */
    --back-btn-width: auto;        /* Deixe auto ou mude para pixels se quiser redimensionar */

}

/* Força o cursor personalizado do Wobbuffet em tudo */
* {
    cursor: url('/pkmn/journey/wobbufett.gif'), auto !important;
}

/* Remove barras de rolagem e centraliza o console perfeitamente no meio do navegador */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Remove o espaço morto e scroll da página */
}

body {
    background-image: url('/pkmn/trainer/decor/trainerprofilebg.png?v=1.0');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center;     /* Centraliza verticalmente */
}

/* ==========================================================================
   ESTRUTURA E ALINHAMENTO DO CONSOLE 3DS
   ========================================================================== */
#console-container {
    position: relative;
    width: var(--console-width);
    height: var(--console-height);
    display: flex;
    justify-content: center;
}

#3ds-overlay {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    pointer-events: none; /* Cliques passam direto para as telas e botões */
}

/* Base comum para as duas telas digitais */
.screen {
    position: absolute;
    overflow: hidden;
    z-index: 5;
    background-size: 100% 100%; /* Força o fundo a preencher a tela inteira */
    background-position: center;
    background-repeat: no-repeat;
}

/* Tela Superior Corrigida */
#top-screen {
    width: var(--top-screen-width);
    height: var(--top-screen-height);
    top: var(--top-screen-top);
    left: var(--top-screen-left);
    background-image: url('/pkmn/trainer/decor/umbreontopscreen.png');
}

/* Tela Inferior Corrigida */
#bottom-screen {
    width: var(--bottom-screen-width);
    height: var(--bottom-screen-height);
    top: var(--bottom-screen-top);
    left: var(--bottom-screen-left);
    transition: background-image 0.15s ease-in-out;
}

#dynamic-content {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ==========================================================================
   MENU INTERNO DA TELA SUPERIOR (CORRIGIDO PARA EXIBIR OS GENGARS)
   ========================================================================== */
#main-menu {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none; /* Oculta scroll no Firefox */
    padding-top: var(--menu-padding-top);
    padding-left: var(--menu-padding-left);
    gap: var(--menu-item-gap);
    box-sizing: border-box;
}

#main-menu::-webkit-scrollbar {
    display: none; /* Oculta scroll no Chrome/Safari */
}

/* 
   NOVO SELETOR ADICIONADO: 
   Gerencia a linha de cada menu, forçando o botão e o Gengar 
   a ficarem um ao lado do outro na horizontal, centralizados verticalmente.
*/
.menu-item {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.menu-btn {
    width: var(--menu-btn-max-width);
    height: auto;
    object-fit: contain;
}

.news-indicator {
    /* MUDADO DE none PARA block PARA O GENGAR APARECER IMEDIATAMENTE */
    display: block !important; 
    
    height: 20px !important;    /* Mantido exatamente o seu tamanho de 20px */
    width: auto !important;
    margin-left: 5px !important; /* Mantido o seu afastamento original de 5px */
    object-fit: contain;
    image-rendering: pixelated; /* Deixa o GIF do Gengar nítido em pixel art */
}


/* ==========================================================================
   ZONAS DE CLIQUE INVISÍVEIS (NOME 100% VALIDADO SEM NÚMERO NA FRENTE)
   ========================================================================== */
.hardware-btn-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0); /* Totalmente transparente */
    border: none;
    outline: none;
    z-index: 99; /* Fica na camada mais alta por cima da carcaça do 3DS */
    width: 28px;
    height: 40px;
}

/* Seus cálculos originais perfeitos que alinham com as setas laterais */
#btn-prev {
    top: calc(var(--bottom-screen-top) + 104px); 
    left: calc(var(--bottom-screen-left) + 2px); 
}

#btn-next {
    top: calc(var(--bottom-screen-top) + 104px);
    left: calc(var(--bottom-screen-left) + var(--bottom-screen-width) - 30px); 
}

/* Camada visual dos botões decorativos que você pediu */
.decor-prev-next {
    position: absolute;
    bottom: 70px; 
    left: 50%;
    transform: translateX(-50%);
    width: 100%; 
    height: auto;
    pointer-events: none; 
    z-index: 6; 
}


/* ==========================================================================
   DECLARAÇÃO DA FONTE RETRÔ DE POKÉMON
   ========================================================================== */
@font-face {
    font-family: 'Pokemon-Classic';
    src: url('/fonts/Pokemon Classic.ttf') format('truetype');
}

/* ==========================================================================
   CAIXA DE TEXTO / TOOLTIP AZUL BEBÊ (CORRIGIDO TAMANHO E ANCORAGEM)
   ========================================================================== */
#custom-tooltip {
    position: fixed;
    display: none;
    z-index: 1000 !important;
    pointer-events: none;
    box-shadow: 2px 2px 6px rgba(146, 187, 236, 0.3);
    
    /* Encolhido os espaçamentos internos para a pílula ficar menor e delicada */
    padding: 4px 10px; 
    border-radius: 50px; 
    
    background-color: #d0e7ff; 
    color: #1a3a60;            
    
    font-family: 'Pokemon-Classic', monospace;
    font-size: 8px; /* Reduzido de 9px para 8px para a pixel art ficar bem compacta */
    text-transform: lowercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Impede o texto de quebrar linha sozinho */

    /* 
       A MÁGICA DO ALINHAMENTO: 
       Isso avisa ao navegador que as coordenadas do mouse devem mirar no CENTRO BASE da pílula.
    */
    transform: translate(-50%, -100%); 
}



/* ==========================================================================
   INTERFACES DINÂMICAS DA TELA INFERIOR
   ========================================================================== */
.grid-container {
    position: absolute;
    box-sizing: border-box;
}

/* Novo Wrapper Geral de Jogos (Abas 1 e 2) */
.games-grid-wrapper {
    top: var(--game-grid-top);
    left: var(--game-grid-left);
    width: calc(100% - (var(--game-grid-left) * 2));
    display: flex;
    flex-direction: column;
    gap: var(--game-grid-gap);
}

/* Estrutura base de cada fileira de jogos */
.games-row {
    display: flex;
    justify-content: space-between; /* Distribui os itens igualmente na linha */
    width: 100%;
}


/* Aplica em todas as imagens de jogos de todas as fileiras */
.games-row img {
    margin: 0 1px; 
    /* ==========================================================================
       NOVA TRANSIÇÃO SUAVE PARA O ZOOM
       ========================================================================== */
    transition: transform 0.30s ease-in-out !important; /* Faz o zoom nascer e sumir de forma macia */
}

/* ==========================================================================
   EFEITO DE HOVER NOS CARTUCHOS DOS JOGOS
   ========================================================================== */
.games-row img:hover {
    /* 
       Aumenta a imagem em 8% (1.08). 
       Se quiser que aumente mais, mude para 1.10. Se quiser menos, mude para 1.05.
    */
    transform: scale(1.3) !important; 
    z-index: 10 !important; /* Garante que o cartucho aumentado fique NA FRENTE dos vizinhos dele */
}



.row-5-items img {
    width: var(--game-thumb-width);
    height: var(--game-thumb-height);
    object-fit: contain;
}

.row-6-items img {
    width: calc((100% / 6) - 5px); /* Se aumentar a margem acima, aumente o desconto aqui (ex: - 6px ou - 7px) */
    height: var(--game-thumb-height);
    object-fit: contain;
}

.row-5-items img {
    width: var(--game-thumb-width);
    height: var(--game-thumb-height);
    object-fit: contain;
}


.row-6-items img {
    width: calc((100% / 6) - 3px); 
    height: var(--game-thumb-height);
    object-fit: contain;
}

/* Grid dos Iniciais (Aba 3) */
.starters-grid {
    top: var(--starter-grid-top);
    left: var(--starter-grid-left);
    grid-template-columns: repeat(6, var(--starter-thumb-width));
    gap: var(--starter-grid-gap);
}

/* Grid dos Iniciais (Aba 3) */
.starters-grid img {
    width: var(--starter-thumb-width);
    height: var(--starter-thumb-height);
    object-fit: contain;
    
    /* ==========================================================================
       NOVA TRANSIÇÃO SUAVE PARA OS STARTERS
       ========================================================================== */
    transition: transform 0.20s ease-in-out !important;
}

/* ==========================================================================
   EFEITO DE HOVER NAS MINIATURAS DOS STARTERS
   ========================================================================== */
.starters-grid img:hover {
    /* 
       Aumenta o ícone pixelado em 12% (1.12) para dar um destaque fofo 
       e compensar o fato de serem sprites pequenininhos!
    */
    transform: scale(1.5) !important; 
    z-index: 10 !important; /* Impede que o sprite expandido fique cortado ou por trás dos outros */
}


/* Mini-interface da aba de Starters */
#starter-preview-area {
    position: absolute;
    left: 17px;
    top: 35px;
    width: 75px;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#starter-preview-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


#starter-desc-area {
    position: absolute;
    left: 10px;
    bottom: 12px;
    width: 90px;
    height: 100px;
    color: #333;
    overflow-y: auto;
    scrollbar-width: none;
    
    display: flex;
    flex-direction: column;   
    justify-content: center;  
    align-items: center;      
    text-align: center;       
    
    font-family: 'Pokemon-Classic', monospace;
    font-size: 7px;          
    text-transform: lowercase; 
    line-height: 1.4;         

    /* ==========================================================================
       OUTLINE PIXELADO BRANCO (MELHORA A LEITURA)
       ========================================================================== */
    /* Cria uma barreira de pixels brancos sólidos nos 4 cantos de cada letra */
    text-shadow: 
        -1px -1px 0px #ffffff,  
         1px -1px 0px #ffffff,
        -1px  1px 0px #ffffff,
         1px  1px 0px #ffffff,
         1px  2px 0px #77D0F0;
}

#starter-desc-area::-webkit-scrollbar {
    display: none;
}

#starter-desc-area::-webkit-scrollbar {
    display: none;
}



/* ==========================================================================
   FILTRO DE SATURAÇÃO ZERO PARA POKÉMONS NÃO JOGADOS
   ========================================================================== */
.pkmn-bw {
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important; /* Compatibilidade com Safari / Chrome antigos */
}


.floating-pkmn {
    position: absolute;
    /* Transição suave tanto para movimento (top/left) quanto para o fade (opacity) */
    transition: top 4.5s linear, left 4.5s linear, opacity 0.5s ease-in-out;
    
    max-width: var(--fav-pkmn-size);
    max-height: var(--fav-pkmn-size);
    width: auto;
    height: auto;
    
    object-fit: contain;
    
    opacity: 0; /* Começa invisível para o Fade In funcionar */
}

/* Classe utilitária que o JS vai aplicar para fazer o Fade In */
.floating-pkmn.fade-in {
    opacity: 1;
}


#fav-page-title {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e0f7fa;
    color: #006064;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
}

/* ==========================================================================
   IMPORTAÇÃO DA FONTE E ESTILOS DAS NOVAS DECORAÇÕES
   ========================================================================== */
@import url('https://googleapis.com');

/* Regra global para carregar a fonte baixada localmente caso prefira */
@font-face {
    font-family: 'VT323-Local';
    src: url('/fonts/VT323-Regular.ttf') format('truetype');
}

/* CONTAINER CENTRAL DO WIDGET GLOBAL */
#mewtwo-widget {
    position: absolute;
    top: 10px;
    left: 35px;
    width: 550px;
    height: 250px;
    z-index: 50; /* Base segura para o widget flutuar no site */
}

/* O SEU FRAME AZUL: Agora sim vai pra frente de tudo */
#mewtwo-frame {
    width: 100%;
    height: 100%;
    object-fit: fill;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99 !important; /* Força o Switch a ser a camada MAIS ALTA de todas dentro do widget */
    pointer-events: none; /* Mantém o mouse passando direto para as imagens agirem */
}

#mewtwo-gif-container {
    position: absolute;
    top: 25px;
    left: 70px;
    width: 370px;
    height: 200px;
    z-index: 5; /* Fica no meio: acima do fundo do site, mas abaixo do z-index 99 do frame! */
    overflow: hidden;
}

/* Base comum para as duas imagens ocuparem o mesmo espaço */
#mewtwo-default-gif, 
#mewtwo-hover-webp {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.1s ease-in-out;
}

/* Configurações exclusivas da PRIMEIRA imagem (GIF) */
#mewtwo-default-gif {
    width: var(--mewtwo-gif-width-scale);
    height: var(--mewtwo-gif-height-scale);
    object-fit: var(--mewtwo-gif-scale);
    z-index: 1; /* Camada interna baixa */
    opacity: 1;
}

/* Configurações exclusivas da SEGUNDA imagem (WebP Largo - Corrigindo o Corte do Bottom) */
#mewtwo-hover-webp {
    width: var(--mewtwo-webp-width-scale);
    
    /* 
       Aumentado sutilmente apenas a altura do segundo GIF.
       Ajuste esse valor (ex: 104%, 105%) caso precise descer ainda mais!
    */
    height: 89% !important; 
    
    object-fit: var(--mewtwo-webp-scale);
    z-index: 2; /* Fica acima do gif padrão, mas abaixo do frame geral do switch */
    opacity: 0; /* Começa invisível por padrão */
}

/* ==========================================================================
   MECÂNICA DE HOVER E CLICK CORRIGIDA (DISPARA CONFORME O CONTEXTO DAS CAMADAS)
   ========================================================================== */

/* Quando passamos o mouse no container principal ou o clique é travado pela classe active */
#mewtwo-gif-container:hover #mewtwo-default-gif,
#mewtwo-gif-container.active #mewtwo-default-gif {
    opacity: 0 !important; /* Esconde completamente o GIF padrão */
    z-index: 1 !important;
}

#mewtwo-gif-container:hover #mewtwo-hover-webp,
#mewtwo-gif-container.active #mewtwo-hover-webp {
    opacity: 1 !important; /* Força o WebP de hover a aparecer 100% visível */
    z-index: 6 !important; /* Passa o WebP para a frente do GIF padrão de forma absoluta */
}



/* ==========================================================================
   CONTAINER BLOCO DE NOTAS GLACEON/UMBREON (SISTEMA SEGURO DE BORDER-IMAGE)
   ========================================================================== */
#notebook-widget {
    position: absolute;
    top: 40px;
    right: 220px;
    z-index: 50;
    box-sizing: border-box;

    /* Configura as dimensões exatas da imagem do Glaceon/Umbreon */
    width: 300px;
    height: 300px !important;

    /* Define a imagem do Glaceon como plano de fundo fixo e limpo */
    background-image: url('/pkmn/trainer/decor/glaceonumbreon-note.jpg') !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;

    /* 
       A SUA MÁGICA DA BEDROOM DA MOLDURA RENDADA EXTERNA (TILED JUSTO):
       Usa a borda transparente e corta a imagem do laceframe em 12px repetidos
    */
    border: 12px solid transparent !important;
    border-image: url('/bedroom/decor/laceframe.png') 12 repeat !important;
}

#notebook-text-area {
    position: absolute;
    top: -2px;
    left: -5px;
    width: 93%;
    height: 100%;
    box-sizing: border-box;
    
    padding-top: 75px;
    padding-bottom: var(--note-padding-bottom);
    padding-left: 65px;
    padding-right: var(--note-padding-right);
    
    font-family: 'VT323', 'VT323-Local', monospace;
    font-size: 11px;
    color: #1C1C1C; /* Cor padrão escura para o resto do seu texto */
    line-height: 1.2;
    overflow-y: auto; 
    scrollbar-width: none;

    /* ==========================================================================
       OUTLINE BRANCO INTEGRADO COM SOMBRA DE PROFUNDIDADE RETRÔ
       ========================================================================== */
    text-shadow: 
        /* Camada 1: O Contorno Branco Rígido colado nos 4 cantos dos caracteres */
        -1px -1px 0px #ffffff,  
         1px -1px 0px #ffffff,
        -1px  1px 0px #ffffff,
         1px  1px 0px #ffffff,
        /* Camada 2: A Sombra de leitura preta projetada logo abaixo */
         1px  1px 0px #000000; 
}

#notebook-text-area::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   CLASSE DE DESTAQUE PARA OS SPANS DENTRO DO BLOCO DE NOTAS (COM DROP SHADOW)
   ========================================================================== */
.highlight-text {
    color: #8DA9C4 !important; /* Força as palavras-chave a ficarem azul celeste */

    /* 
       A SUPER MÁGICA DA LEITURA CONTRA FUNDOS CLAROS:
       1. Mantém o outline branco nos 4 cantos para dar nitidez à letra.
       2. Adiciona uma sombra preta pura sólida (1px 1px e 2px 2px) deslocada por baixo.
       Isso cria uma "borda de profundidade" escura perfeita para destacar o azul céu da nuvem branca!
    */
    text-shadow: 
        /* Borda Branca de Isolamento */
        -1px -1px 0px #ffffff,  
         1px -1px 0px #ffffff,
        -1px  1px 0px #ffffff,
         1px  1px 0px #ffffff,
        /* Sombra de Profundidade Escura Extra */
         1px  1px 0px #1c1c1c,
         2px  2px 0px #1c1c1c !important;
}


/* ==========================================================================
   WIDGET EEVEELUTIONS COM MOLDURA RENDADA EXTERNA (TILED BORDER-IMAGE)
   ========================================================================== */
#eeveelutions-widget {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 45; /* Fica em uma camada segura de decoração */
    box-sizing: border-box;

    /* Define o tamanho exato da sua imagem de Eeveelutions usando o novo nome */
    width: var(--eeveelution-img-width) !important;
    height: 300px !important;

    /* Carrega o plano de fundo limpo e centralizado */
    background-image: url('/pkmn/trainer/decor/blue-eeveelutions.jpg') !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;

    /* 
       A SUA MÁGICA REUTILIZADA DO LACEFRAME (TILED JUSTO):
       Usa a borda transparente e divide a imagem da renda em 12px repetidos
    */
    border: 12px solid transparent !important;
    border-image: url('/bedroom/decor/laceframe.png') 12 repeat !important;
}

/* ==========================================================================
   WIDGET DA RÁDIO DO UMBREON (TILED BORDER-IMAGE)
   ========================================================================== */
#radio-widget {
    position: absolute;
    bottom: 30px;
    left: 20px;
    z-index: 45; /* Camada segura de decoração flutuante */
    box-sizing: border-box;

    /* Define o tamanho exato do painel da rádio */
    width: 320px;
    height: 200px;

    /* Carrega o plano de fundo do Umbreon no ar */
    background-image: url('/pkmn/trainer/decor/umbreon-onaiar.jpg') !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;

    /* A MÁGICA REUTILIZADA DO LACEFRAME (TILED JUSTO) */
    border: 12px solid transparent !important;
    border-image: url('/bedroom/decor/laceframe.png') 12 repeat !important;
}

/* ==========================================================================
   WIDGET DO UMBREON OLHANDO (MECÂNICA DE HOVER E CLICK INDEPENDENTES)
   ========================================================================== */
#umbreon-looking-widget {
    position: absolute;
    bottom: -12px;
    left: 365px;
    width: 320px;
    height: 320px;
    z-index: 45;
}

/* Base comum para as três imagens coexistirem no mesmo espaço */
#umbreon-looking-widget img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Impede a imagem de se deformar caso as dimensões mudem */
    transition: opacity 0.1s ease-in-out;
}

/* 1. ESTADO PADRÃO */
#umbreon-look-default {
    z-index: 3;
    opacity: 1;
}

/* 2. ESTADO HOVER */
#umbreon-look-hover {
    z-index: 2;
    opacity: 0;
}

/* 3. ESTADO CLIQUE (TRAVADO POR JS) */
#umbreon-look-click {
    z-index: 1;
    opacity: 0;
}

/* ==========================================================================
   TRANSIÇÕES DINÂMICAS DE EXIBIÇÃO (MECÂNICA DE CAMADAS)
   ========================================================================== */

/* Quando passamos o mouse por cima do widget (HOVER) */
#umbreon-looking-widget:hover #umbreon-look-default { opacity: 0; }
#umbreon-looking-widget:hover #umbreon-look-hover { opacity: 1; z-index: 4; }

/* Quando o JavaScript ativa a classe .clicked (Mantém o estado por 3.5 segundos) */
#umbreon-looking-widget.clicked #umbreon-look-default { opacity: 0 !important; }
#umbreon-looking-widget.clicked #umbreon-look-hover { opacity: 0 !important; }
#umbreon-looking-widget.clicked #umbreon-look-click { opacity: 1 !important; z-index: 5; }


/* ==========================================================================
   DECORAÇÃO DO FURRET FLUTUANDO (ANIMAÇÃO CONTÍNUA VERTICAL RETRÔ)
   ========================================================================== */
#furret-balloons-decor {
    position: absolute;
    top: var(--furret-top);
    left: var(--furret-left);
    width: var(--furret-width) !important;
    height: var(--furret-height) !important;
    z-index: 40; /* Fica um pouco abaixo do frame do Mewtwo para uma sobreposição bonita se necessário */
    pointer-events: none; /* Evita que a imagem atrapalhe cliques no fundo do site */

    /* 
       A MÁGICA DA FLUTUAÇÃO:
       Aplica a animação 'furretFloat' com duração de 4 segundos, 
       movimento suave (ease-in-out) e loop infinito (infinite alternado)
    */
    animation: furretFloat 4s ease-in-out infinite alternate;
}

/* 
   FÍSICA DO MOVIMENTO:
   Faz o Furret flutuar suavemente em um eixo vertical de 15px.
   Ajuste o valor '-15px' para ele subir mais alto ou mais baixo!
*/
@keyframes furretFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-15px);
    }
}


/* ==========================================================================
   DECORAÇÃO DO SLEEPY EEVEE (ANIMAÇÃO DE PINGENTE / ROCKING CHAIR)
   ========================================================================== */
#sleepy-eevee-decor {
    position: absolute;
    top: var(--eevee-sleepy-top);
    right: 555px;
    width: var(--eevee-sleepy-width) !important;
    height: var(--eevee-sleepy-height) !important;
    z-index: 40;
    pointer-events: none; /* Deixa os cliques passarem direto pelo sprite */
    transform-origin: top center;
    animation: eeveeRocking 5s ease-in-out infinite alternate;
}

/* 
   FÍSICA DO BALANÇO:
   Rotaciona o Eevee de -2.5 graus para +2.5 graus. 
   O movimento fica extremamente sutil, quase imperceptível, como você pediu!
*/
@keyframes eeveeRocking {
    0% {
        transform: rotate(-2.5deg);
    }
    100% {
        transform: rotate(2.5deg);
    }
}

/* ==========================================================================
   DECORAÇÃO DA GLACEON MAID (SISTEMA DE SOBREPOSIÇÃO CALCULADA)
   ========================================================================== */
#glaceon-maid-decor {
    position: absolute;
    bottom: var(--glaceon-maid-bottom);
    right: 350px;
    width: var(--glaceon-maid-width) !important;
    height: var(--glaceon-maid-height) !important;
    
    /* 
       A MÁGICA DA SOBREPOSIÇÃO:
       O widget das Eeveelutions está no z-index 45. Colocando o z-index 46 na Glaceon, 
       ela passa para a frente e cobre milimetricamente a renda e o canto do desenho!
    */
    z-index: 46 !important; 
    
    pointer-events: none; /* Cliques passam direto por ela caso precise clicar no fundo */
}

/* ==========================================================================
   DECORAÇÕES SUPERIORES DAS EEVEELUTIONS (SUICUNE & TRAINER IMG INDEPENDENTES)
   ========================================================================== */

/* Suicune Curious (À Esquerda do topo do painel) */
#suicune-curious-decor {
    position: absolute;
    bottom: var(--eevee-top-lace-edge); /* Alinha os pezinhos exatamente no topo da renda */
    
    /* Pega o início direito do painel (50px), soma a largura total dele (320px) e 
       recua a largura do próprio Suicune mais a folga que você definiu para ele ir para a esquerda */
    right: calc(105px + var(--eeveelution-img-width) - var(--suicune-width) - var(--suicune-offset-left));
    
    width: var(--suicune-width) !important;
    height: var(--suicune-height) !important;
    z-index: 46 !important; /* Camada alta por cima do laceframe */
    pointer-events: none;
}

/* Trainer Img (À Direita do topo do painel, ao lado do Suicune) */
#trainer-img-decor {
    position: absolute;
    bottom: var(--eevee-top-lace-edge); /* Alinha os pezinhos exatamente no topo da renda */
    
    /* Pega o início direito do painel (50px) e avança para a esquerda adicionando a folga da borda direita */
    right: calc(-5px + var(--trainer-img-offset-right));
    
    width: var(--trainer-img-width) !important;
    height: var(--trainer-img-height) !important;
    z-index: 46 !important; /* Camada alta por cima do laceframe */
    pointer-events: none;
}


/* ==========================================================================
   DECORAÇÃO DO POPPLIO CHORANDO (ANIMAÇÃO WIGGLE SUAVE E SUBTIL)
   ========================================================================== */
#sob-popplio-decor {
    position: absolute;
    bottom: 100px;
    right: 580px;
    width: var(--popplio-width) !important;
    height: var(--popplio-height) !important;
    z-index: 40;
    pointer-events: none;
    image-r    /* Mantém a base presa no chão para o balanço fazer sentido */
    transform-origin: bottom center;

    /* 
       AUMENTADO PARA 2.5 SEGUNDOS (BEM MAIS LENTO):
       Mudamos para ease-in-out e 'alternate' para ele ir e voltar 
       de forma extremamente suave, sem trancos.
    */
    animation: popplioSubtleSob 2.5s ease-in-out infinite alternate;
}

/* 
   FÍSICA DO CHORO SUAVE:
   Apenas uma oscilação mínima para as laterais. 
   O movimento fica super delicado, exatamente como você pediu!
*/
@keyframes popplioSubtleSob {
    0% {
        transform: rotate(-0.8deg);
    }
    100% {
        transform: rotate(0.8deg);
    }
}



/* LINK BOTÃO VOLTAR (ABAIXO DO CONSOLE 3DS) */
#back-shrine-link {
    position: absolute;
    bottom: var(--back-btn-bottom);
    left: 50%;
    /* Mantém a centralização original da sua página */
    transform: translateX(-50%); 
    z-index: 60;
    
    /* Configura a transição para o movimento de clique ser macio e responsivo */
    transition: transform 0.1s ease-in-out !important; 
}

#back-shrine-link img {
    width: var(--back-btn-width);
    height: auto;
    display: block;
}

/* ==========================================================================
   EFEITO DE TECLA AFUNDADA AO HOVER (CLICKED FEEDBACK VISUAL)
   ========================================================================== */
#back-shrine-link:hover {
    /* 
       A MÁGICA DO BOTÃO APERTADO:
       1. translateX(-50%): Mantém ele travado no meio da página.
       2. translateY(3px): Empurra a imagem 3 pixels para baixo, simulando o peso do dedo.
       3. scaleY(0.96): Achata o botão em 4% verticalmente, dando o efeito físico de mola/borracha!
    */
    transform: translateX(-50%) translateY(3px) scaleY(0.96) !important;
    
    /* Deixa o botão levemente opaco ou mais escuro para dar a sensação de sombra de aperto (opcional) */
    filter: brightness(0.9) !important; 
}



