@font-face {
    font-family: 'terrariaFont';
    src: url(fonts/PixelOperator-Bold.ttf);
    font-weight: normal;
    font-style: normal;
}

/* Fondo exacto importado del archivo original */
body {
    background-image: url(Eff_gifs&pngs/nana_1.gif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* El fondo nunca se mueve */
    display: flex;
    font-family: terrariaFont;
    justify-content: center;
    align-items: flex-start; /* Hace que el cuadro empiece desde arriba */
    min-height: 100vh;
    margin: 0;
    padding: 60px 0; /* Respiro arriba y abajo */
    zoom: 67%; /* Escala visual al 67% permanentemente */
}

body::before {
    content: "";
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Filtro oscuro */
    backdrop-filter: blur(5px); /* Efecto de desenfoque */
    z-index: 1;
}

/* El recuadro de contenido importado y adaptado para Fisher */
.content {
    background-color: rgb(240, 231, 231);
    filter: opacity(90%);
    width: 82%; 
    max-width: 1000px; 
    min-height: 750px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    position: relative;
    z-index: 2;
    
    /* ESTO ES LO NUEVO: Borramos los paddings raros y forzamos el centrado interno */
    padding: 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; /* Permite que las fotos sobresalgan del recuadro sin recortarse */
}

/* Agrupa el texto y las dos fotos inamovibles en el centro */
.contenedor-central {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px; /* Espacio entre la foto izquierda, el texto y la foto derecha */
    z-index: 10;
}

/* Texto base en NEGRO */
.texto-principal {
    font-size: 4.5rem;
    color: black; 
    text-align: center;
    margin: 0;
    user-select: none;
    font-family: sans-serif;
    font-weight: bold;
}

/* Estilo Neón Rosa para "Fisher" usando la fuente de Terraria */
.neon-pink {
    font-family: 'terrariaFont', sans-serif;
    color: #ff107a;
    text-shadow: 
        0 0 5px #ff107a, 
        0 0 10px #ff107a, 
        0 0 20px #ff107a, 
        0 0 40px #ff107a;
}

/* -------------------------------------------
   ESTILO DE FOTO IMPRESA (Reusable)
   ------------------------------------------- */
.foto-impresa {
    background-color: #fdfdfd;
    padding: 10px 10px 35px 10px; /* Marco blanco estilo impreso/polaroid */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    display: inline-block;
    user-select: none;
    transition: transform 0.2s ease-in-out;
}

.foto-impresa img {
    display: block;
    max-width: 160px; /* Tamaño de las fotos ajustado para que quepan */
    height: auto;
    pointer-events: none; /* Evita arrastrar solo la imagen por defecto del navegador */
}

/* Fotos inamovibles al lado del texto */
.foto-fija {
    position: relative;
    cursor: default;
    transform: rotate(0deg) !important;
}

/* Fotos que se pueden mover libremente */
.foto-arrastrable {
    position: absolute;
    cursor: grab;
    z-index: 5; /* Asegura que estén por encima del recuadro */
}

.foto-arrastrable:active {
    cursor: grabbing;
    transform: scale(1.05); /* Efecto visual de agarrar la foto */
}

.quick-top-nav {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 20;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.25);
}

.back-home-black {
    color: #070707;
    font-size: 19px;
}

.back-home-neon {
    color: #ff2442;
    font-size: 20px;
    text-shadow:
        0 0 5px rgba(255, 36, 66, 0.95),
        0 0 11px rgba(255, 36, 66, 0.8),
        0 0 21px rgba(255, 36, 66, 0.5);
}

.edge-arrow {
    position: fixed;
    top: 50%;
    z-index: 20;
    transform: translateY(-50%);
    font-size: 60px;
    line-height: 1;
    text-decoration: none;
    color: rgba(20, 20, 20, 0.92);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.65);
    transition: transform 160ms ease, filter 160ms ease;
}

.edge-arrow:hover,
.edge-arrow:focus-visible {
    transform: translateY(-50%) scale(1.1);
    filter: brightness(1.2);
    outline: none;
}

.edge-arrow-left {
    left: 12px;
}

.edge-arrow-right {
    right: 12px;
}

.kitty-key-drop {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 4;
    width: 128px;
    border: 0;
    background: transparent;
    transform: translateX(-50%);
    cursor: pointer;
    transition: transform 180ms ease, filter 180ms ease;
    filter: drop-shadow(0 9px 11px rgba(0, 0, 0, 0.33));
}

.kitty-key-drop img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.kitty-key-drop:hover,
.kitty-key-drop:focus-visible {
    transform: translateX(-50%) translateY(-4px);
    filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.4));
    outline: none;
}

.kitty-key-drop.is-picked {
    animation: keyMiniHopFall 900ms cubic-bezier(.18,.88,.24,1) forwards;
}

.kitty-key-drop.is-collected {
    display: none;
}

.music-toast {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 30;
    width: min(390px, calc(100vw - 34px));
    padding: 22px 22px 20px;
    border: 1px solid rgba(255, 57, 160, 0.55);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(52, 9, 41, 0.96), rgba(15, 8, 21, 0.97));
    box-shadow: 0 13px 28px rgba(6, 3, 15, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #ffd3ea;
    transform: translateX(132%);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.music-toast::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 24% 25%, rgba(255, 87, 190, 0.22), transparent 36%),
        radial-gradient(circle at 82% 78%, rgba(132, 98, 255, 0.22), transparent 34%);
    z-index: -1;
}

.music-toast.is-visible {
    animation: fisherToastIn 620ms cubic-bezier(.2, .82, .24, 1) both;
}

.music-toast.is-leaving {
    animation: fisherToastOut 560ms ease both;
}

.music-toast-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    line-height: 1;
    text-shadow: 0 0 9px rgba(255, 130, 206, 0.72);
}

.music-toast-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    fill: none;
    stroke: #ffe9f8;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(255, 206, 243, 0.46));
}

.music-toast-line {
    height: 5px;
    margin: 10px 0 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff89ce, #8f8bff 50%, #6ce4ff);
    box-shadow: 0 0 8px rgba(255, 139, 206, 0.52), 0 0 11px rgba(108, 228, 255, 0.46);
}

.music-toast-song {
    color: #ffeaf8;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.15;
    letter-spacing: 0.5px;
    text-shadow: 0 0 7px rgba(255, 160, 221, 0.44);
}

@keyframes fisherToastIn {
    from {
        transform: translateX(132%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fisherToastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(132%);
        opacity: 0;
    }
}

@keyframes keyMiniHopFall {
    0% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
        opacity: 1;
    }
    26% {
        transform: translateX(-50%) translateY(-26px) rotate(-10deg);
    }
    100% {
        transform: translateX(-50%) translateY(360px) rotate(22deg);
        opacity: 0;
    }
}