@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Rubik:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --clr-black: #1c1c1c;
    --clr-gray: #ececec;
    --clr-white: #f7f7f7;

    --type-normal: #A8A878;
    --type-fire: #F08030;
    --type-water: #6890F0;
    --type-grass: #78C850;
    --type-electric: #F8D030;
    --type-ice: #98D8D8;
    --type-fighting: #C03028;
    --type-poison: #A040A0;
    --type-ground: #E0C068;
    --type-flying: #A890F0;
    --type-psychic: #F85888;
    --type-bug: #A8B820;
    --type-rock: #B8A038;
    --type-ghost: #705898;
    --type-dark: #705848;
    --type-dragon: #7038F8;
    --type-steel: #B8B8D0;
    --type-fairy: #F0B6BC;

    --retro-yellow: #FFD60A;
    --retro-red: #FF006E;
    --retro-blue: #4A90E2;
    --retro-green: #06D6A0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 3rem -1rem rgba(0, 0, 0, .25);
    }
    50% {
        box-shadow: 0 0 4rem -0.5rem rgba(0, 0, 0, .35);
    }
}

@keyframes neonGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 214, 10, 0.5), 0 0 20px rgba(255, 214, 10, 0.3);
        box-shadow: 0 0 15px rgba(255, 214, 10, 0.4);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 214, 10, 0.8), 0 0 30px rgba(255, 214, 10, 0.5);
        box-shadow: 0 0 25px rgba(255, 214, 10, 0.6);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes arcade {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--clr-black);
    font-family: 'Rubik', sans-serif;
}

ul {
    list-style-type: none;
}

button {
    background-color: transparent;
    border: 0;
    border-radius: 0;
}

body {
    min-height: 100vh;
    background: linear-gradient(45deg, #FF006E 0%, #4A90E2 25%, #FFD60A 50%, #06D6A0 75%, #FF006E 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 0, 110, 0.03),
            rgba(255, 0, 110, 0.03) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 1;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(10px);
    }
}

header {
    padding-block: 1.5rem;
    box-shadow: 
        0 8px 0 3px rgba(0, 0, 0, 0.3),
        0 15px 0 5px rgba(255, 214, 10, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, #FFD60A 0%, #FF006E 50%, #4A90E2 100%);
    animation: slideInDown 0.8s ease-out;
    border: 6px solid #1c1c1c;
    position: relative;
    z-index: 10;
}

header::after {
    content: '★ POKÉDEX 2025 ★';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 900;
    color: #FFD60A;
    text-shadow: 3px 3px 0 #ff006e, 6px 6px 0 rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    padding-inline: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-top {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.logo {
    height: 60px;
    filter: drop-shadow(4px 4px 0 #1c1c1c);
    animation: pulse 2s ease-in-out infinite, bounce 0.6s ease-in-out 1s infinite;
}

.buscador {
    flex: 1;
    max-width: 350px;
    padding: 0.85rem 1.5rem;
    border: 4px solid #1c1c1c;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    background-color: #f7f7f7;
    box-shadow: 
        inset 2px 2px 0 rgba(255, 255, 255, 0.5),
        inset -2px -2px 0 rgba(0, 0, 0, 0.2),
        4px 4px 0 rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.buscador:focus {
    outline: none;
    border-color: #FF006E;
    box-shadow: 
        inset 2px 2px 0 rgba(255, 255, 255, 0.5),
        inset -2px -2px 0 rgba(0, 0, 0, 0.2),
        0 0 0 4px #FFD60A,
        0 0 20px rgba(255, 0, 110, 0.6),
        4px 4px 0 rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.buscador::placeholder {
    color: #999;
    text-transform: uppercase;
}

.nav-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    width: 100%;
    justify-content: center;
}

.btn-header {
    background: linear-gradient(180deg, #FFD60A 0%, #FF8C00 100%);
    padding: 0.75rem 1.2rem;
    border-radius: 0;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 1px;
    box-shadow: 
        inset 2px 2px 0 rgba(255, 255, 255, 0.6),
        inset -2px -2px 0 rgba(0, 0, 0, 0.3),
        5px 5px 0 rgba(0, 0, 0, 0.4);
    transition: all 0.1s ease;
    border: 3px solid #1c1c1c;
    color: #1c1c1c;
    position: relative;
}

.btn-header:hover {
    transform: translateY(-2px) translateX(-2px);
    box-shadow: 
        inset 2px 2px 0 rgba(255, 255, 255, 0.6),
        inset -2px -2px 0 rgba(0, 0, 0, 0.3),
        7px 7px 0 rgba(0, 0, 0, 0.4);
}

.btn-header:active {
    transform: translateY(2px) translateX(2px);
    box-shadow: 
        inset 2px 2px 0 rgba(255, 255, 255, 0.6),
        inset -2px -2px 0 rgba(0, 0, 0, 0.3),
        2px 2px 0 rgba(0, 0, 0, 0.4);
}

/* Estado activo del filtro con color del tipo */
.btn-header.active {
    transform: translateY(2px) translateX(2px);
    box-shadow: 
        inset 2px 2px 0 rgba(255, 255, 255, 0.4),
        inset -2px -2px 0 rgba(0, 0, 0, 0.4),
        2px 2px 0 rgba(0, 0, 0, 0.4),
        0 0 15px currentColor;
    border-color: #fff;
}

.btn-header.active.normal  { background: var(--type-normal); color: #1c1c1c; }
.btn-header.active.fire    { background: var(--type-fire); color: #fff; }
.btn-header.active.water   { background: var(--type-water); color: #fff; }
.btn-header.active.grass   { background: var(--type-grass); color: #1c1c1c; }
.btn-header.active.electric { background: var(--type-electric); color: #1c1c1c; }
.btn-header.active.ice     { background: var(--type-ice); color: #1c1c1c; }
.btn-header.active.fighting { background: var(--type-fighting); color: #fff; }
.btn-header.active.poison  { background: var(--type-poison); color: #fff; }
.btn-header.active.ground  { background: var(--type-ground); color: #1c1c1c; }
.btn-header.active.flying  { background: var(--type-flying); color: #1c1c1c; }
.btn-header.active.psychic { background: var(--type-psychic); color: #fff; }
.btn-header.active.bug     { background: var(--type-bug); color: #1c1c1c; }
.btn-header.active.rock    { background: var(--type-rock); color: #1c1c1c; }
.btn-header.active.ghost   { background: var(--type-ghost); color: #fff; }
.btn-header.active.dark    { background: var(--type-dark); color: #fff; }
.btn-header.active.dragon  { background: var(--type-dragon); color: #fff; }
.btn-header.active.steel   { background: var(--type-steel); color: #1c1c1c; }
.btn-header.active.fairy   { background: var(--type-fairy); color: #1c1c1c; }

main {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.pokemon-todos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    animation: fadeIn 0.8s ease-out;
}

@media screen and (min-width: 480px) {
    .pokemon-todos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 700px) {
    .pokemon-todos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .pokemon-todos {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pokemon {
    border-radius: 0;
    background: linear-gradient(135deg, #ffd60a 0%, #ff8c00 45%, #ff006e 100%);
    box-shadow: 
        inset 3px 3px 0 rgba(255, 255, 255, 0.5),
        inset -3px -3px 0 rgba(0, 0, 0, 0.3),
        8px 8px 0 rgba(0, 0, 0, 0.4);
    padding-block: 1.5rem;
    text-transform: uppercase;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: all 0.1s ease;
    cursor: pointer;
    animation: fadeIn 0.6s ease-out backwards;
    border: 5px solid #1c1c1c;
}

.pokemon:nth-child(1) { animation-delay: 0.05s; }
.pokemon:nth-child(2) { animation-delay: 0.1s; }
.pokemon:nth-child(3) { animation-delay: 0.15s; }
.pokemon:nth-child(4) { animation-delay: 0.2s; }
.pokemon:nth-child(5) { animation-delay: 0.25s; }
.pokemon:nth-child(n+6) { animation-delay: 0.3s; }

.pokemon:hover {
    transform: translateY(-10px) translateX(-5px) scale(1.08);
    box-shadow: 
        inset 3px 3px 0 rgba(255, 255, 255, 0.5),
        inset -3px -3px 0 rgba(0, 0, 0, 0.3),
        15px 15px 0 rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 0, 110, 0.7),
        0 0 60px rgba(74, 144, 226, 0.4);
}

.pokemon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: 2;
}

.pokemon:hover::before {
    left: 100%;
}

.pokemon-id-back {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    font-weight: 900;
    z-index: 0;
    color: rgba(0, 0, 0, 0.12);
    text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.5);
}

.pokemon-imagen {
    padding-inline: 1rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
    padding-block: 1rem;
    border: 3px solid #1c1c1c;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pokemon-imagen img {
    width: 100%;
    max-width: 9rem;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25)) brightness(1.1);
    transition: transform 0.2s ease;
}

.pokemon:hover .pokemon-imagen img {
    transform: scale(1.15) rotate(8deg) drop-shadow(0 12px 20px rgba(0, 0, 0, 0.3));
}

.pokemon-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-inline: 1rem;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.nombre-contenedor {
    display: flex;
    align-items: center;
    column-gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pokemon-id {
    background: linear-gradient(180deg, #FFD60A 0%, #FF8C00 100%);
    padding: 0.4rem 0.85rem;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 900;
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 0.6),
        inset -1px -1px 0 rgba(0, 0, 0, 0.2),
        2px 2px 0 rgba(0, 0, 0, 0.3);
    border: 2px solid #1c1c1c;
    letter-spacing: 1px;
}

.pokemon-nombre {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #1c1c1c;
    text-shadow: 
        2px 2px 0 rgba(255, 255, 255, 0.8),
        4px 4px 0 rgba(0, 0, 0, 0.2);
}

.pokemon-tipos {
    display: flex;
    gap: 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    flex-wrap: wrap;
    justify-content: center;
}

.tipo {
    padding: 0.45rem 0.8rem;
    border-radius: 0;
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 0.4),
        inset -1px -1px 0 rgba(0, 0, 0, 0.3),
        3px 3px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
    border: 2px solid #1c1c1c;
    letter-spacing: 0.5px;
}

.pokemon-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.stat {
    background: linear-gradient(180deg, #FFD60A 0%, #FF8C00 100%);
    padding: 0.5rem 0.9rem;
    border-radius: 0;
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 0.6),
        inset -1px -1px 0 rgba(0, 0, 0, 0.2),
        2px 2px 0 rgba(0, 0, 0, 0.3);
    border: 2px solid #1c1c1c;
    letter-spacing: 0.5px;
}

.click-hint {
    font-size: 0.65rem;
    color: #1c1c1c;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}



.normal {
    background-color: var(--type-normal);
    color: var(--clr-black);
}

.fire {
    background-color: var(--type-fire);
    color: var(--clr-black);
}

.water {
    background-color: var(--type-water);
    color: var(--clr-white);
}

.grass {
    background-color: var(--type-grass);
    color: var(--clr-black);
}

.electric {
    background-color: var(--type-electric);
    color: var(--clr-black);
}

.ice {
    background-color: var(--type-ice);
    color: var(--clr-black);
}

.fighting {
    background-color: var(--type-fighting);
    color: var(--clr-white);
}

.poison {
    background-color: var(--type-poison);
    color: var(--clr-white);
}

.ground {
    background-color: var(--type-ground);
    color: var(--clr-black);
}

.flying {
    background-color: var(--type-flying);
    color: var(--clr-black);
}

.psychic {
    background-color: var(--type-psychic);
    color: var(--clr-black);
}

.bug {
    background-color: var(--type-bug);
    color: var(--clr-black);
}

.rock {
    background-color: var(--type-rock);
    color: var(--clr-black);
}

.ghost {
    background-color: var(--type-ghost);
    color: var(--clr-white);
}

.dark {
    background-color: var(--type-dark);
    color: var(--clr-white);
}

.dragon {
    background-color: var(--type-dragon);
    color: var(--clr-white);
}

.steel {
    background-color: var(--type-steel);
    color: var(--clr-black);
}

.fairy {
    background-color: var(--type-fairy);
    color: var(--clr-black);
}

/* ═══════════════════════════════════════
   GAME BOY MODAL — Realistic DMG-01
   ═══════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(6px);
}

/* ─── Cuerpo principal ─── */
.gameboy {
    width: 370px;
    max-height: 97vh;
    background: #bfb9af;
    background-image:
        url("data:image/svg+xml,%3Csvg width='4' height='4' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1' fill='%23b8b2a8' opacity='0.3'/%3E%3C/svg%3E");
    border-radius: 10px 10px 10px 55px;
    padding: 0 18px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow:
        inset 1px 1px 0 0 #d4cfc7,
        inset -1px -1px 0 0 #9e998f,
        inset 3px 3px 8px rgba(255,255,255,0.35),
        inset -3px -3px 8px rgba(0,0,0,0.18),
        0 0 0 2px #a09a90,
        0 0 0 4px #888278,
        0 0 0 5px rgba(0,0,0,0.3),
        6px 10px 25px rgba(0,0,0,0.7),
        12px 20px 50px rgba(0,0,0,0.4);
    animation: slideInDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Textura extra plástico */
.gameboy::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        170deg,
        rgba(255,255,255,0.12) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0,0,0,0.06) 100%
    );
    pointer-events: none;
    z-index: 50;
}

/* ─── Ranura del cartucho ─── */
.gb-cartridge-slot {
    width: 55%;
    height: 8px;
    margin: 0 auto;
    background: linear-gradient(180deg, #9e998f 0%, #a8a29a 40%, #b5afa5 100%);
    border-radius: 0 0 4px 4px;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.35),
        inset 0 -1px 0 rgba(255,255,255,0.2),
        0 1px 0 rgba(255,255,255,0.15);
    border: 1px solid #8a857b;
    border-top: none;
}

/* ─── Power strip ─── */
.gb-top-strip {
    display: flex;
    align-items: center;
    padding: 4px 0 0 4px;
    height: 20px;
}

.gb-power-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gb-power-switch {
    width: 20px;
    height: 8px;
    background: linear-gradient(180deg, #8a857b, #706b62);
    border-radius: 2px;
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.15),
        inset 0 -1px 1px rgba(0,0,0,0.3),
        1px 0 0 rgba(255,255,255,0.1);
    border: 1px solid #605b52;
}

.gb-power-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff4444, #cc0000, #880000);
    box-shadow:
        0 0 4px 1px rgba(255, 0, 0, 0.6),
        0 0 10px 2px rgba(255, 0, 0, 0.25),
        inset 0 -1px 2px rgba(0,0,0,0.5);
    animation: ledGlow 2s ease-in-out infinite;
}

@keyframes ledGlow {
    0%, 100% { box-shadow: 0 0 4px 1px rgba(255,0,0,0.6), 0 0 10px 2px rgba(255,0,0,0.25), inset 0 -1px 2px rgba(0,0,0,0.5); }
    50% { box-shadow: 0 0 6px 2px rgba(255,0,0,0.8), 0 0 14px 4px rgba(255,0,0,0.35), inset 0 -1px 2px rgba(0,0,0,0.5); }
}

.gb-power-text {
    font-size: 0.42rem;
    font-weight: 700;
    color: #7a756b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}

/* ═══ PANTALLA ═══ */

.gb-screen-bezel {
    background: linear-gradient(180deg, #4a4455 0%, #3d3748 100%);
    border-radius: 10px 10px 20px 20px;
    padding: 10px 12px 16px;
    display: flex;
    gap: 0;
    box-shadow:
        inset 2px 2px 6px rgba(0,0,0,0.5),
        inset -1px -1px 3px rgba(255,255,255,0.08),
        0 1px 0 rgba(255,255,255,0.1),
        0 2px 4px rgba(0,0,0,0.2);
}

/* Rayas verticales del bisel izquierdo */
.gb-bezel-ridges {
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    padding-right: 10px;
    padding-left: 2px;
}

.gb-ridge {
    width: 3px;
    height: 30px;
    background: linear-gradient(90deg, #5a5465, #6b657a, #5a5465);
    border-radius: 1px;
    box-shadow: 1px 0 0 rgba(255,255,255,0.07);
}

.gb-screen-area {
    flex: 1;
}

.gb-screen-label {
    font-size: 0.35rem;
    font-weight: 600;
    color: #706a7a;
    letter-spacing: 2.5px;
    text-align: center;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* Pantalla LCD */
.gb-screen {
    background: #9bbc0f;
    border-radius: 3px;
    padding: 8px;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 4px 4px 8px rgba(0,0,0,0.3),
        inset -2px -2px 4px rgba(155,188,15,0.3),
        inset 0 0 20px rgba(0,0,0,0.08),
        0 0 1px rgba(0,0,0,0.5);
}

/* Pixel grid */
.gb-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(0deg, rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 3px 3px;
    pointer-events: none;
    z-index: 3;
}

/* Scanlines */
.gb-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.05),
        rgba(0,0,0,0.05) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 2;
}

.gb-screen-content {
    position: relative;
    z-index: 1;
}

/* Contenido pantalla: imagen + info */
.gb-screen-top {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 2px dashed #306230;
}

.gb-poke-img img {
    width: 100%;
    max-width: 85px;
    filter: drop-shadow(1px 1px 0 #306230) drop-shadow(-1px -1px 0 rgba(155,188,15,0.5));
}

.gb-poke-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gb-poke-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: #0f380f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.gb-poke-id {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: #306230;
}

.gb-poke-tipos {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.gb-poke-tipos .tipo {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.35rem;
    padding: 2px 5px;
    border: 1.5px solid #306230;
    border-radius: 0;
    background: rgba(48,98,48,0.2);
    color: #0f380f;
    font-weight: 400;
    text-shadow: none;
    box-shadow: none;
}

.gb-poke-medidas {
    display: flex;
    gap: 6px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.35rem;
    color: #306230;
    margin-top: 2px;
}

/* Stats */
.gb-screen-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gb-screen-stats .stat-row {
    display: grid;
    grid-template-columns: 90px 1fr 26px;
    gap: 3px;
    align-items: center;
}

.gb-screen-stats .stat-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.35rem;
    color: #0f380f;
    letter-spacing: 0;
    width: 100px;
}

.gb-screen-stats .stat-bar {
    height: 18px;
    background: #8bac0f;
    border: 1.5px solid #306230;
    border-radius: 0;
    box-shadow: inset 1px 1px 0 rgba(0,0,0,0.1);
    overflow: hidden;
}

.gb-screen-stats .stat-fill {
    height: 100%;
    background: #0f380f;
    box-shadow: none;
    border-radius: 0;
}

.gb-screen-stats .stat-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.32rem;
    color: #0f380f;
    text-align: right;
}

/* ═══ BRANDING ═══ */

.gb-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 0 0;
    gap: 0;
}

.gb-nintendo {
    font-family: 'Rubik', sans-serif;
    font-size: 0.55rem;
    font-weight: 500;
    font-style: italic;
    color: #8a857b;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    margin-bottom: 4px;
}

.gb-brand-row {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.gb-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    font-weight: 400;
    color: #2e3192;
    letter-spacing: 3px;
    text-shadow:
        1px 1px 0 rgba(255,255,255,0.4),
        -0.5px -0.5px 0 rgba(0,0,0,0.15);
}

.gb-tm {
    font-size: 0.35rem;
    font-weight: 700;
    color: #2e3192;
    vertical-align: super;
}

/* ═══ CONTROLES ═══ */

.gb-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 2px;
}

/* Foso del D-Pad */
.gb-dpad-well {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #aba59b 0%, #b5afa5 60%, #bfb9af 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 2px 2px 5px rgba(0,0,0,0.25),
        inset -1px -1px 3px rgba(255,255,255,0.15),
        0 1px 0 rgba(255,255,255,0.2);
}

.gb-dpad {
    width: 64px;
    height: 64px;
    position: relative;
}

/* Cruz del D-pad: barras vertical y horizontal */
.gb-dpad-v {
    position: absolute;
    width: 22px;
    height: 64px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #282828 0%, #3a3a3a 40%, #333 60%, #252525 100%);
    border-radius: 3px;
    box-shadow:
        inset 0 2px 3px rgba(255,255,255,0.1),
        inset 0 -2px 3px rgba(0,0,0,0.3),
        1px 2px 3px rgba(0,0,0,0.3);
}

.gb-dpad-h {
    position: absolute;
    width: 64px;
    height: 22px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #282828 0%, #3a3a3a 40%, #333 60%, #252525 100%);
    border-radius: 3px;
    box-shadow:
        inset 2px 0 3px rgba(255,255,255,0.1),
        inset -2px 0 3px rgba(0,0,0,0.3),
        1px 2px 3px rgba(0,0,0,0.3);
}

.gb-dpad-center {
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #333;
    border-radius: 50%;
    z-index: 2;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

/* Zona botones A/B */
.gb-action-area {
    padding-right: 8px;
}

.gb-action-buttons {
    display: flex;
    gap: 12px;
    transform: rotate(-25deg);
}

.gb-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.gb-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.08s ease;
}

.gb-btn-a,
.gb-btn-b {
    background: linear-gradient(
        145deg,
        #9e1a50 0%,
        #8a1545 30%,
        #751040 60%,
        #6b0d3a 100%
    );
    box-shadow:
        inset 1px 1px 2px rgba(255,255,255,0.2),
        inset -1px -1px 2px rgba(0,0,0,0.4),
        0 3px 0 1px #4a082a,
        0 4px 4px rgba(0,0,0,0.35);
}

.gb-btn:active {
    transform: translateY(3px);
    box-shadow:
        inset 1px 1px 2px rgba(0,0,0,0.4),
        inset -1px -1px 2px rgba(255,255,255,0.1),
        0 0px 0 #4a082a;
}

.gb-btn-label {
    font-family: 'Rubik', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    color: #2e3192;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    transform: rotate(25deg);
}

/* ═══ SELECT / START ═══ */

.gb-menu-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    transform: rotate(-25deg);
    padding: 0 50px;
}

.gb-menu-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.gb-menu-btn {
    width: 32px;
    height: 7px;
    background: linear-gradient(180deg, #8a857b, #7a756b);
    border: none;
    border-radius: 8px;
    cursor: default;
    box-shadow:
        inset 0 1.5px 2px rgba(0,0,0,0.45),
        inset 0 -0.5px 1px rgba(255,255,255,0.15),
        0 1px 0 rgba(255,255,255,0.15);
}

.gb-menu-label {
    font-family: 'Rubik', sans-serif;
    font-size: 0.38rem;
    font-weight: 700;
    margin: 5px;
    color: #2e3192;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transform: rotate(25deg);
    text-shadow: 0 0.5px 0 rgba(255,255,255,0.3);
}

/* ═══ SPEAKER ═══ */

.gb-speaker {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-self: flex-end;
    margin-right: 15px;
    transform: rotate(-25deg);
    margin-top: -6px;
}

.gb-speaker-line {
    width: 35px;
    height: 4px;
    background: linear-gradient(180deg, #a09a90, #b0aaa0);
    border-radius: 2px;
    box-shadow:
        inset 0 2px 2px rgba(0,0,0,0.35),
        inset 0 -1px 1px rgba(255,255,255,0.15),
        0 1px 0 rgba(255,255,255,0.12);
}

/* ═══ TORNILLO ═══ */

.gb-screw {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 40% 40%, #c8c4be, #9e998f, #888278);
    border-radius: 50%;
    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.3),
        0 1px 0 rgba(255,255,255,0.2);
}

.gb-screw::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(30deg);
    width: 6px;
    height: 1.5px;
    background: #706b62;
    border-radius: 1px;
    box-shadow: 0 0.5px 0 rgba(255,255,255,0.1);
}

/* ═══ Responsive ═══ */

@media screen and (max-width: 420px) {
    .gameboy {
        width: 96vw;
        padding: 0 12px 16px;
        border-radius: 8px 8px 8px 40px;
    }
    .gb-screen-top { grid-template-columns: 75px 1fr; }
    .gb-poke-img img { max-width: 68px; }
    .gb-poke-name { font-size: 0.5rem; }
    .gb-controls { padding: 6px 6px 0; }
    .gb-dpad-well { width: 75px; height: 75px; }
    .gb-dpad { width: 60px; height: 60px; }
    .gb-dpad-v { width: 20px; height: 60px; }
    .gb-dpad-h { width: 60px; height: 20px; }
    .gb-dpad-center { width: 16px; height: 16px; }
    .gb-btn { width: 34px; height: 34px; }
}

@media screen and (max-height: 700px) {
    .gameboy { padding: 0 14px 14px; gap: 4px; }
    .gb-cartridge-slot { height: 6px; }
    .gb-screen-bezel { padding: 6px 10px 10px; }
    .gb-screen { padding: 6px; }
    .gb-screen-top {
        grid-template-columns: 70px 1fr;
        gap: 5px;
        margin-bottom: 3px;
        padding-bottom: 3px;
    }
    .gb-poke-img img { max-width: 60px; }
    .gb-screen-stats .stat-bar { height: 6px; }
    .gb-controls { padding: 4px 10px 0; }
    .gb-dpad-well { width: 70px; height: 70px; }
    .gb-dpad { width: 56px; height: 56px; }
    .gb-dpad-v { width: 18px; height: 56px; }
    .gb-dpad-h { width: 56px; height: 18px; }
    .gb-dpad-center { width: 14px; height: 14px; }
    .gb-btn { width: 32px; height: 32px; }
    .gb-speaker-line { width: 28px; height: 3px; }
}

/* ═══════════════════════════════════════
   FOOTER — Copyright & Attribution
   ═══════════════════════════════════════ */

.footer {
    background: linear-gradient(180deg, #4A90E2 0%, #FF006E 50%, #FFD60A 100%);
    border-top: 6px solid #1c1c1c;
    padding: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 5;
    box-shadow: 
        0 -10px 0 rgba(0, 0, 0, 0.2),
        inset 0 8px 15px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.footer-text {
    font-size: 1rem;
    font-weight: 700;
    color: #1c1c1c;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

.footer-text strong {
    color: #1c1c1c;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-credit {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1c1c1c;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.footer-credit strong {
    color: #1c1c1c;
    font-weight: 800;
}

.footer-disclaimer {
    font-size: 0.75rem;
    font-weight: 500;
    color: #1c1c1c;
    opacity: 0.85;
    font-style: italic;
    letter-spacing: 0.5px;
}

@media screen and (max-width: 768px) {
    .footer {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    .footer-text {
        font-size: 0.9rem;
    }
    
    .footer-credit {
        font-size: 0.75rem;
    }
    
    .footer-disclaimer {
        font-size: 0.65rem;
    }
}