body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 20% 20%, #f97316, transparent 40%),
        radial-gradient(circle at 80% 80%, #dc2626, transparent 40%),
        #7c2d12;
    color: white;

    overflow-x: hidden;
}

/* HEADER */
header {
    text-align: center;
    padding: 15px;
}

/* GRID ESTILO PC (5 LINHAS) */
.pokemon-list {
    height: calc(100vh - 80px);
    padding: 20px;

    display: grid;
    grid-template-rows: repeat(5, 110px);
    grid-auto-flow: column;
    grid-auto-columns: 110px;

    gap: 12px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
}

/* Remove scrollbar */
.pokemon-list::-webkit-scrollbar {
    display: none;
}
.pokemon-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* CARD */
.card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100px;
    height: 100px;

    border-radius: 14px;
    background: #1e293b;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.card::before {
    content: '';
    position: absolute;
    inset: -55%;
    background: linear-gradient(
        115deg,
        transparent 32%,
        rgba(255, 255, 255, 0.12) 45%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.12) 55%,
        transparent 68%
    );
    transform: translateX(-140%) rotate(12deg);
    transition: transform 0.55s ease;
    z-index: 0;
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 120%, rgba(56, 189, 248, 0.28), transparent 60%);
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 0;
    pointer-events: none;
}

.card:hover {
    background: #334155;
    transform: translateY(-2px) scale(1.06);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.16) inset,
        0 0 20px rgba(250, 204, 21, 0.42),
        0 0 42px rgba(56, 189, 248, 0.28);
}

.card:hover::before {
    transform: translateX(140%) rotate(12deg);
}

.card:hover::after {
    opacity: 1;
}

.card img {
    width: 72px;
    position: relative;
    z-index: 1;
}

/* PAINEL LATERAL */
.side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;

    background: linear-gradient(180deg, #1e3a8a, #1e40af);
    border-left: 4px solid #facc15;

    padding: 20px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.6);

    transition: transform 0.4s ease;
}

.side-panel.hidden {
    transform: translateX(100%);
}

.side-panel img {
    width: 150px;
}

#closePanel {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}