:root {
    --accent: #ffbf3b;
    --accent-soft: rgba(255,191,59,0.25);
    --bg-panel: #161616;
    --bg-panel-soft: #1b1b1b;
    --text-main: #e5e5e5;
}

body {
    margin: 0;
    font-family: 'Saira Semi Condensed', system-ui, sans-serif;
    background-image: url('images/bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-main);
}

.pokemon-page {
    max-width: auto;
    margin: auto;
    padding: 2rem;
}

.pokemon-top {
    display: grid;
    grid-template-columns: 20rem 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.pokemon-info {
    background: linear-gradient(180deg, #1a1a1a, #141414);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 0 1px rgba(255,191,59,0.4),
        0 0 18px rgba(255,191,59,0.25);
}

.pokemon-image-wrap {
    position: relative;
}


.image-fallback {
    display: none;
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
}


.pokemon-name {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.pokemon-role {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
}

.pokemon-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.85;
}

.pokemon-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.pokemon-tags span {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,191,59,0.35);
    color: #ffd97a;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    backdrop-filter: blur(6px);
}

.pokemon-stats {
    background: linear-gradient(180deg, #181818, #121212);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

.pokemon-stats h2 {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    color: var(--accent);
}


.stats-table-wrapper {
    overflow-x: auto;
}

.stats-table {
    width: 80%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.stats-table th,
.stats-table td {
    padding: 0.375rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-table thead th {
    background: linear-gradient(180deg, #222, #181818);
    position: sticky;
    top: 0;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.stats-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.025);
}

.stats-table tbody tr:hover {
    background: rgba(255,191,59,0.06);
}

.stats-table tbody td:first-child {
    font-weight: 700;
    color: var(--accent);
}
.stats-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth scroll for iOS */
}

.pokemon-skins {
    background: linear-gradient(180deg, #181818, #121212);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

.pokemon-skins h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 2fr));
    gap: 1.25rem;
}

.moveset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    gap: 1.25rem;
}
.skin-card {
    background: linear-gradient(180deg, #222, #181818);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.moveset-card {
    background: linear-gradient(180deg, #222, #181818);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-size: 16px;
}

.skin-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 30px rgba(0,0,0,0.5),
        0 0 14px rgba(255,191,59,0.2);
}

.pokemon-info img,
.skin-card img,
.moveset-card img {
    max-width: 100%;
    height: auto;
}


.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
    gap: 1rem;
    padding: 1.25rem;
    max-width: 75rem;
    margin: auto;
}

.home-card {
    background: linear-gradient(180deg, #2a233d, #1f1a2f);
    border-radius: 0.875rem;
    padding: 0.75rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: inset 0 0 0 1px rgba(255,191,59,0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 26px rgba(0,0,0,0.45),
        0 0 16px rgba(255,191,59,0.25);
}

.home-card img {
    width: 100%;
    height: auto;
    max-width: 6rem;
    margin-bottom: 0.5rem;
}

.home-name {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ================= BATTLE PASS ================= */

.battlepass-page {
    max-width: 95vw;
    margin: auto;
    padding: 2rem;
}

.battlepass-title {
    font-size: 2.5rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
}

/* 🔥 THIS IS THE GRID (MOST IMPORTANT PART) */
.bp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

/* ---------------- Cards ---------------- */

.bp-card {
    background: linear-gradient(180deg, #222, #181818);
    border-radius: 0.75rem;
    overflow: hidden;
    text-align: center;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.06),
        0 10px 26px rgba(0,0,0,0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bp-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 14px 30px rgba(0,0,0,0.55),
        0 0 18px rgba(255,191,59,0.25);
}

.bp-header {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bp-card.free .bp-header {
    background: linear-gradient(180deg, #7b2cbf, #5a189a);
    color: #ffd97a;
}

.bp-card.pass-paid .bp-header {
    background: linear-gradient(180deg, #f59e0b, #b45309);
    color: #ffe0fc;
}

.bp-card img {
    max-width: 50%;
    padding: 0.75rem;
}

.bp-title {
    font-size: 0.85rem;
    padding: 0.5rem 0.5rem 0.75rem;
}
