/* css/anatomist.css */

@font-face {
    font-family: 'Arisawa-Kaisho';
    src: url('../fonts/Arisawa-Kaisho.TTF') format('truetype');
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ==========================================================================
   EFEITO CRT (ブラウン管)
   ========================================================================== */
.crt::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

@keyframes flicker {
    0% { opacity: 0.27861; }
    5% { opacity: 0.34769; }
    10% { opacity: 0.23604; }
    15% { opacity: 0.10626; }
    20% { opacity: 0.18128; }
    25% { opacity: 0.10626; }
    30% { opacity: 0.18128; }
    35% { opacity: 0.23604; }
}

.crt::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 9998;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

/* ==========================================================================
   LAYOUT DO CONTAINER (1844x934)
   ========================================================================== */
#viewport-container {
    position: relative;
    width: 1844px;
    height: 934px;
    background: url('../anatomist/anatomistbg.png') no-repeat center center;
    background-size: cover;
    flex-shrink: 0;
}


/* ==========================================================================
   📌 COORDENADAS: INK BRUSH (PRIVATE ROOM DECORATION)
   ========================================================================== */
.ink-brush {
    position: absolute;
    
    /* 🛠️ ADJUST THESE PIXELS TO SLIDE IT ANYWHERE ON THE PRIVATE ROOM MAP 🛠️ */
    top: 500px;         
    left: 39px;        
    
    width: 200px;       /* Scale up or down depending on your layout size */
    height: auto;       
    
    z-index: 5;         
    pointer-events: none; 
    user-select: none;  
}




/* ==========================================================================
   TEXTO FLUTUANTE ACIMA DA FOTO (LENTO E SUAVE)
   ========================================================================== */
.chambers-smoke-text {
    position: absolute;
    top: 180px; /* Posicionado milimetricamente acima da foto no painel esquerdo */
    left: 332px;
    width: 320px;
    font-family: 'Arisawa-Kaisho', sans-serif;
    text-align: center;
    color: #ffffff;
    user-select: none;
    pointer-events: none;
}

.chambers-jp {
    font-size: 17px;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.chambers-en {
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Injeção para o movimento independente das letras via JS */
.letter-wrap {
    position: relative;
    display: inline-block;
    will-change: transform, opacity;
}


/* ==========================================================================
   ESTRUTURA DA MOLDURA DO PERFIL (DIREITA)
   ========================================================================== */
.profile-frame-container {
    position: absolute;
    top: 270px;     /* Encaixa certinho dentro da sua caixa ornamental vermelha */
    right: 210px;  
    width: 340px;  
    height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Alinha todo o cabeçalho no centro para podermos aproximar os elementos */
.profile-header {
    width: 100%;
    display: flex;
    justify-content: center; /* Mudado de space-between para center */
    align-items: center;
    margin-bottom: 12px;
}

.doll-gif {
    width: 30px;
    height: auto;
    user-select: none;
    
    /* REMOVE O FUNDO PRETO: Torna a cor preta do GIF totalmente transparente */
    mix-blend-mode: screen; 
    
    /* MARGEM NEGATIVA: Puxa as bonecas fisicamente para dentro, espremendo-as contra o texto */
    margin: 0 02px; /* Se precisar que fiquem ainda mais perto, mude para -20px ou -25px */
}


.profile-titles {
    text-align: center;
    font-family: 'Arisawa-Kaisho', sans-serif;
    color: #ffffff;
    flex-shrink: 0; /* Garante que o bloco de texto não quebre linha ao ser prensado pelas bonecas */
}


.main-kanji-title {
    font-size: 20px;
    margin: 0 0 2px 0;
    font-weight: normal;
    letter-spacing: 0.5px;
}

.sub-roman-title {
    font-size: 13px;
    margin: 0;
    font-weight: normal;
    letter-spacing: 1px;
}

/* CAIXA DE TEXTO COM SCROLLBAR INVISÍVEL */
.profile-text-box {
    width: 100%;
    height: 310px; 
    font-family: 'Arisawa-Kaisho', sans-serif;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.55;
    overflow-y: auto;
}

.profile-text-box p {
    margin-top: 0;
    margin-bottom: 14px;
    white-space: pre-wrap;
}

/* Sumir com o scrollbar em todos os motores */
.profile-text-box::-webkit-scrollbar {
    display: none;
}
.profile-text-box {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.highlight-red {
    color: #FF0000;
}

/* ==========================================================================
   BOTÃO DE RETORNO (CANTINHO INFERIOR ESQUERDO)
   ========================================================================== */
#leave-back-button {
    position: absolute;
    bottom: 00px;
    left: -20px;
    cursor: pointer;
    z-index: 20;
    transition: filter 0.3s ease;
}

#leave-back-button:hover {
    filter: brightness(1.3) drop-shadow(0 0 6px rgba(255, 0, 0, 0.4));
}
