:root {
    --orange: #ff8500;
    --gold: #ffc66d;
    --border: rgba(255,153,51,.35);
    --text: #fff4e7;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(ellipse at 10% 0%, #632800 0%, transparent 40%),
        radial-gradient(ellipse at 95% 40%, #492000 0%, transparent 40%),
        #090706;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(255,125,0,.09) 48%,
        transparent 70%
    );
    background-size: 200% 200%;
    animation: ambient 12s ease infinite alternate;
}

@keyframes ambient {
    from { background-position: 0% 0%; }
    to { background-position: 100% 100%; }
}

/* AMBER GLASS */

.glass {
    background: linear-gradient(
        145deg,
        rgba(255,175,85,.14),
        rgba(30,16,8,.85) 45%,
        rgba(255,125,0,.07)
    );
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    box-shadow:
        inset 0 1px 0 rgba(255,220,180,.25),
        inset 0 -1px 0 rgba(255,120,0,.15),
        0 8px 30px rgba(0,0,0,.4),
        0 0 18px rgba(255,120,0,.07);
    border-radius: 18px;
}

/* HEADER */

.topbar {
    max-width: 1500px;
    margin: 16px auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(
        180deg,
        #51321f,
        #21130c 48%,
        #100b08 51%,
        #29170c
    );
}

.logo {
    width: 190px;
    max-width: 42%;
    height: auto;
    object-fit: contain;
}

.brand-label {
    font-size: 20px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 18px #ff8500;
}

.edition {
    margin-left: auto;
    font-size: 11px;
    letter-spacing: 3px;
    color: #ffc17c;
}

.container {
    width: min(1500px, 96%);
    margin: auto;
}

/* BANNER */

.hero {
    overflow: hidden;
    position: relative;
    padding: 5px;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 13px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        120deg,
        transparent 35%,
        rgba(255,255,255,.12) 50%,
        transparent 65%
    );
    background-size: 250% 100%;
    animation: reflection 9s linear infinite;
}

@keyframes reflection {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* STATISTICS */

.statistics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.stat {
    padding: 22px 10px;
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 34px;
    color: #ffbd62;
    text-shadow: 0 0 20px rgba(255,133,0,.5);
}

.stat span {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    color: #d5b99e;
}

/* PANELS */

.panel {
    padding: 22px;
    margin-bottom: 20px;
}

h2 {
    margin: 0 0 20px;
    font-size: 21px;
    color: var(--gold);
    letter-spacing: 1px;
}

/* PROVIDERS */

#providers {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 2px 12px;
}

.provider-card {
    flex: 0 0 130px;
    min-height: 85px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(
        180deg,
        #53351f,
        #20130c 50%,
        #100b08
    );
    color: white;
    cursor: pointer;
    transition: .25s ease;
}

.provider-card img {
    width: 100%;
    height: 42px;
    object-fit: contain;
}

.provider-card:hover,
.provider-card.active {
    border-color: #ffb34d;
    box-shadow: 0 0 20px rgba(255,125,0,.3);
    background: linear-gradient(#78410f,#321807);
}

/* SEARCH */

#search {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: rgba(0,0,0,.45);
    color: white;
    font-size: 15px;
}

#search:focus {
    border-color: var(--orange);
    box-shadow: 0 0 15px rgba(255,125,0,.2);
}

/* GAME GRID */

#games {
    display: grid;
    grid-template-columns: repeat(8,minmax(0,1fr));
    gap: 14px;
}

.game-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: linear-gradient(
        155deg,
        #482b16,
        #170f09 55%,
        #291609
    );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.15),
        0 5px 15px rgba(0,0,0,.35);
    transition: .25s ease;
}

.game-card:hover {
    transform: translateY(-3px);
    border-color: #ff9d35;
    box-shadow: 0 0 18px rgba(255,125,0,.25);
}

.game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.game-info {
    padding: 10px;
}

.game-name {
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
}

.game-provider {
    color: #bfa48b;
    font-size: 11px;
    margin-top: 5px;
}

.rtp-value {
    margin-top: 10px;
    padding: 8px 4px;
    text-align: center;
    border-radius: 7px;
    font-size: 11px;
    color: #ffd5a1;
    background: linear-gradient(
        180deg,
        #553719,
        #2b1a0c
    );
    border: 1px solid #795024;
}

/* PAGINATION */

#pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

#pagination button {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(#53351c,#211208);
    color: white;
    cursor: pointer;
}

#pagination button.active {
    background: linear-gradient(#ffae42,#b84b00);
    color: white;
}

#pagination button:disabled {
    opacity: .4;
    cursor: default;
}

footer {
    text-align: center;
    padding: 30px 15px;
    font-size: 12px;
    color: #bca28b;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: #a95513;
    border-radius: 10px;
}

@media(max-width:1200px) {
    #games {
        grid-template-columns: repeat(6,minmax(0,1fr));
    }
}

@media(max-width:850px) {
    #games {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }
}

@media(max-width:600px) {
    .topbar {
        margin: 8px;
        padding: 10px;
        gap: 10px;
    }

    .edition {
        display: none;
    }

    .brand-label {
        font-size: 15px;
    }

    .panel {
        padding: 12px;
    }

    #games {
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 8px;
    }

    .stat strong {
        font-size: 24px;
    }

    .stat span {
        font-size: 11px;
    }

    .game-info {
        padding: 7px;
    }

    .game-name {
        font-size: 11px;
    }

    .provider-card {
        flex-basis: 105px;
    }
}

@media(max-width:360px) {
    #games {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(prefers-reduced-motion:reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* PROVIDER LABELS */

.provider-name {
    font-size: 11px;
    font-weight: 700;
    margin-top: 8px;
    color: #ffddb0;
}

.provider-total {
    font-size: 10px;
    margin-top: 5px;
    color: #c5a17c;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #ffc66d;
}

#pagination span {
    padding: 10px 5px;
    color: #ffc66d;
}

.game-name {
    min-height: 36px;
    overflow-wrap: anywhere;
}

#games {
    scroll-margin-top: 20px;
}
