/**
 * easter_egg.css
 * Styles for the hidden RPG void.
 */

.rpg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default;
}

.rpg-world {
    text-align: center;
    background: white;
}

.rpg-board {
    display: grid;
    grid-template-columns: repeat(8, 60px);
    grid-template-rows: repeat(8, 60px);
    border: 4px solid #000;
}

.rpg-sq {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rpg-sq.light { background-color: #ffffff; }
.rpg-sq.dark { background-color: #000000; }

.rpg-player {
    width: 45px;
    height: 45px;
    z-index: 5001;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 1px #fff);
    user-select: none;
    pointer-events: none;
}

.rpg-player img {
    width: 100%;
    height: 100%;
}

.rpg-door {
    width: 100%;
    height: 100%;
    border-top: 6px solid #000;
    opacity: 1;
}

/* ─── Dialogue ─────────────────────────────────────────────── */
.rpg-dialogue {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 500px;
    background: white;
    border: 3px solid #000;
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
    z-index: 5005;
}

.rpg-dialogue p {
    margin: 0;
}

.rpg-dialogue::after {
    content: "▼";
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.8rem;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}
