/* GameWorld - Custom Styles */
/* Same theme as original: dark blue #091840, gold #ebb058, red #ca113d */

:root {
    --blue-dark: #091840;
    --blue-mid: #0a1b49;
    --blue-light: #0e1f4e;
    --blue-border: #1b3a8e;
    --gold: #ebb058;
    --red: #ca113d;
    --red-dark: #a10331;
    --header-height: 60px;
    --footer-bar-height: 75px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Titillium Web', sans-serif;
    background-color: var(--blue-dark);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.app-container {
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

@media (min-width: 1024px) {
    .app-container {
        padding: 0 1rem;
    }
}

/* ===== HEADER ===== */
.app-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--blue-dark);
}

.app-header .app-container {
    position: relative;
    display: grid;
    align-items: center;
    height: var(--header-height);
    grid-template-columns: auto 1fr auto;
    grid-column-gap: 0.5rem;
}

@media (min-width: 1024px) {
    .app-header .app-container {
        grid-template-columns: 1fr auto 1fr auto;
        grid-template-rows: auto;
        align-items: center;
        grid-column-gap: 1.5rem;
        padding: 0 1rem;
    }

    .app-header .app-container::before {
        display: none;
    }
}

/* Slogan bar */
.app-header__slogan {
    display: none;
    position: absolute;
    width: calc(100% + 3rem);
    grid-column: 2 / 3;
    justify-self: center;
    top: 100%;
    z-index: -1;
    color: #fff;
    font-weight: 700;
    font-style: italic;
    padding: 0.5rem;
    transform: translateY(-150%);
    background: linear-gradient(180deg, var(--blue-mid) 0, var(--red));
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
    .app-header__slogan {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 1180px) {
    .app-header__slogan.slogan-visible {
        transform: translate(0);
    }
}

.app-header__slogan h2 {
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-transform: uppercase;
}

/* Menu toggle (mobile hamburger) */
.app-header__menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
}

@media (min-width: 1024px) {
    .app-header__menu-toggle {
        display: none;
    }
}

/* Logo */
.app-header__logo {
    grid-column: 2 / 3;
    justify-self: center;
    position: relative;
    display: flex;
    align-items: center;
    height: calc(var(--header-height) - 0.5rem);
}

.app-header__logo img {
    display: block;
    height: 100%;
    max-height: 50px;
}

@media (min-width: 1024px) {
    .app-header__logo {
        grid-column: 2 / 3;
        grid-row: 1;
        align-self: center;
        justify-self: center;
    }
}

/* Nav links (left and right of logo) */
.app-header__left,
.app-header__right {
    display: none;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .app-header__left,
    .app-header__right {
        display: flex;
        align-items: center;
        height: 100%;
    }
}

.app-header__left {
    justify-content: flex-start;
    gap: 0.75rem;
}

.app-header__right {
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Home icon */
.app-header__left > a:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.25rem;
}

.app-header__nav ul {
    display: flex;
    height: 100%;
    gap: 0.75rem;
    justify-content: space-between;
}

.app-header__nav ul a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0 0.25rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-header__nav ul a:hover::after,
.app-header__nav ul a.active::after {
    position: absolute;
    display: block;
    left: 0;
    bottom: 0;
    content: "";
    width: 100%;
    height: 0.25rem;
    background-color: var(--gold);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.app-header__nav ul a.has-icon i {
    margin-right: 0.375rem;
}

/* Right side actions */
.app-header__actions {
    grid-column: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .app-header__actions {
        grid-column: auto;
        gap: 1rem;
    }
}

/* Guest login/register buttons */
.app-header__guest {
    grid-column: 3 / 4;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
}

@media (min-width: 1024px) {
    .app-header__guest {
        grid-column: 4 / 5;
        grid-row: 1;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        justify-content: flex-end;
        white-space: nowrap;
    }
}

.outlined-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    height: 28px;
    border: 1px solid #fff;
    transition: color 0.2s ease, border-color 0.2s ease;
    font-weight: 700;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.outlined-link span {
    display: block;
    padding-bottom: 0.125rem;
}

@media (hover: hover) and (min-width: 1024px) {
    .outlined-link:hover {
        border-color: #ebb058;
    }
}

.outlined-link--accent {
    color: #ffb400;
    border-color: #ffb400;
}

@media (hover: hover) and (min-width: 1024px) {
    .outlined-link--accent:hover {
        color: #ebb058;
        border-color: #ebb058;
    }
}

.outlined-link--primary {
    color: #fff;
    border-color: #1b3a8e;
    background-color: #0e2258;
}

@media (hover: hover) and (min-width: 1024px) {
    .outlined-link--primary:hover {
        color: #fff;
        border-color: #fff;
    }
}

/* ===== BOTTOM NAV - responsive ===== */
.app-header__bottom-nav {
    display: none;
}

@media (min-width: 1024px) {
    .app-header__bottom-nav {
        display: block;
        background-color: var(--blue-mid);
    }

    .app-header__bottom-nav ul {
        display: flex;
        height: 100%;
        gap: 0.75rem;
        justify-content: center;
    }

    .app-header__bottom-nav ul a {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        color: #fff;
        font-weight: 700;
        font-size: 0.875rem;
        padding: 0 0.5rem;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .app-header__bottom-nav ul a:hover::after {
        position: absolute;
        display: block;
        left: 0;
        bottom: 0;
        content: "";
        width: 100%;
        height: 0.25rem;
        background-color: var(--gold);
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .app-header__bottom-nav ul a i {
        margin-right: 0.5rem;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    opacity: 0.9;
}

.btn--primary {
    background-color: var(--red);
    color: #fff;
    padding: 0.5rem 1.5rem;
}

.btn--accent {
    background-color: var(--gold);
    color: #000;
    padding: 0.5rem 1.5rem;
}

.btn--outline {
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 0.5rem 1.5rem;
    background: transparent;
}

.btn--sm {
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 1rem 0;
    padding-bottom: calc(var(--footer-bar-height) + 2rem);
}

.main-content .app-container {
    min-height: 60vh;
}

/* Hero section placeholder */
.hero {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
    border: 1px solid var(--blue-border);
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    min-height: 250px;
}

@media (min-width: 1024px) {
    .hero__content {
        min-height: 350px;
        padding: 4rem 3rem;
    }
}

.hero__content h1 {
    font-size: 1.75rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--gold);
}

@media (min-width: 1024px) {
    .hero__content h1 {
        font-size: 2.5rem;
    }
}

.hero__content p {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
    max-width: 600px;
    line-height: 1.5;
}

@media (min-width: 1024px) {
    .hero__content p {
        font-size: 1.125rem;
    }
}

/* Category cards */
.categories {
    margin-bottom: 2rem;
}

.categories__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.categories__header h2 {
    color: var(--gold);
    font-size: 1.25rem;
    text-transform: uppercase;
}

.categories__header h2 span {
    color: #fff;
}

.categories__grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .categories__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .categories__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 10px;
    background-color: var(--blue-light);
    border: 1px solid var(--blue-border);
    transition: border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    min-height: 180px;
}

.category-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.category-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.category-card__title {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.category-card__desc {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Info sections */
.info-section {
    margin-bottom: 1.5rem;
}

.info-section h2 {
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.info-section p {
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* ===== STICKY FOOTER (mobile bottom bar) ===== */
.sticky-footer {
    position: fixed;
    width: 100%;
    bottom: 0;
    padding: 0 0.25rem;
    z-index: 101;
    height: calc(75px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 1024px) {
    .sticky-footer {
        display: none;
    }
}

.sticky-footer ul {
    display: grid;
    height: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sticky-footer ul li {
    position: relative;
}

.sticky-footer ul li:first-child {
    overflow: hidden;
    border-radius: 35px 0 0 35px;
    border-top: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
    border-left: 3px solid var(--red);
}

.sticky-footer ul li:last-child {
    overflow: hidden;
    border-radius: 0 35px 35px 0;
    border-top: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
    border-right: 3px solid var(--red);
}

.sticky-footer ul li:nth-child(2) {
    border-top: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
}

.sticky-footer ul li:nth-child(2) a::after {
    position: absolute;
    width: 50%;
    height: 100%;
    content: "";
    right: 0;
    transform: translateX(100%);
    background-color: var(--blue-dark);
}

.sticky-footer ul li:nth-child(2) a::before {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 2;
    width: 1px;
    height: 60%;
    content: "";
    transform: translateY(-50%);
    background-color: var(--red);
}

.sticky-footer ul li:nth-child(4) {
    border-top: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
}

.sticky-footer ul li:nth-child(4) a::before {
    position: absolute;
    width: 50%;
    height: 100%;
    content: "";
    left: 0;
    transform: translateX(-100%);
    background-color: var(--blue-dark);
}

.sticky-footer ul li:nth-child(4) a::after {
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 60%;
    content: "";
    transform: translateY(-50%);
    background-color: var(--red);
}

.sticky-footer ul a,
.sticky-footer ul button:not(.sticky-footer__toggle) {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    grid-gap: 0.25rem;
    align-items: center;
    justify-items: center;
    background-color: var(--blue-dark);
}

.sticky-footer ul a i {
    font-size: 1.25rem;
}

.sticky-footer ul a div,
.sticky-footer ul button:not(.sticky-footer__toggle) div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sticky-footer ul a div h4,
.sticky-footer ul button:not(.sticky-footer__toggle) div h4 {
    font-weight: 700;
    line-height: 0.875rem;
    font-size: 0.625rem;
}

.sticky-footer ul a div span,
.sticky-footer ul button:not(.sticky-footer__toggle) div span {
    font-size: 0.5rem;
    line-height: 0.5rem;
}

.sticky-footer ul a.active,
.sticky-footer ul button:not(.sticky-footer__toggle).active {
    color: var(--gold);
}

/* Center shield badge */
.sticky-footer__deposit {
    position: relative;
    width: 100%;
    z-index: 2;
    border-top: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-footer__deposit .sticky-footer__toggle {
    position: absolute;
    bottom: 0;
    height: 0;
    width: 95%;
    padding-bottom: 133.17757%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
}

.sticky-footer__deposit .sticky-footer__toggle img {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0.1rem 0.1rem 0.1rem rgba(0, 0, 0, 0.7));
}

.sticky-footer__deposit .sticky-footer__toggle div {
    position: absolute;
    top: 35%;
    z-index: 2;
    width: 100%;
    height: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sticky-footer__deposit .sticky-footer__toggle div h2 {
    font-weight: 700;
    line-height: 1.25rem;
}

.sticky-footer__deposit .sticky-footer__toggle div span {
    font-weight: 700;
    font-size: 0.5rem;
    line-height: 0.5rem;
}

/* ===== FOOTER ===== */
.app-footer {
    padding: 1rem;
    border-top: 1px solid var(--gold);
    padding-bottom: calc(var(--footer-bar-height) + 0.75rem);
}

@media (min-width: 1024px) {
    .app-footer {
        padding-bottom: 1rem;
    }
}

.app-footer .app-container > div {
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .app-footer .app-container {
        display: grid;
        grid-gap: 1rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .app-footer .app-container > div {
        margin: 0;
    }
}

/* Footer links */
.app-footer__links {
    display: grid;
    grid-gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-footer__links h3 {
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.app-footer__links a {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.app-footer__links a:hover {
    color: var(--gold);
}

/* Footer contact */
.app-footer__contact {
    text-align: center;
}

.app-footer__contact h3 {
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.app-footer__social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.app-footer__social a {
    font-size: 1.5rem;
    transition: color 0.2s;
}

.app-footer__social a:hover {
    color: var(--gold);
}

/* Footer misc & copyright */
.app-footer__misc {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 1024px) {
    .app-footer__misc {
        grid-column: span 3;
    }
}

.app-footer__copyright {
    font-weight: 600;
    font-size: 0.75rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .app-footer__copyright {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }
}

.app-footer__copyright span {
    color: var(--gold);
    font-size: 0.875rem;
}

/* ===== MOBILE DRAWER ===== */
.app-drawer__root {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
}

.app-drawer__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.app-drawer {
    position: relative;
    width: 280px;
    height: 100%;
    background-color: #2e3d66;
    overflow-y: auto;
    z-index: 1;
}

.app-drawer--left {
    float: left;
}

.app-drawer--right {
    float: right;
}

/* Side menu */
.side-menu {
    padding: 1rem;
    padding-top: 0.5rem;
    min-height: 100%;
    background-color: #2e3d66;
}

.side-menu__close {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0;
    color: var(--gold);
    font-size: 1.5rem;
}

.side-menu__group {
    margin: 0.5rem 0;
}

.side-menu__group h3 {
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.side-menu__group ul {
    display: grid;
    grid-gap: 0.25rem;
}

.side-menu__link a {
    position: relative;
    display: grid;
    width: 100%;
    align-items: center;
    grid-template-rows: 50px;
    grid-template-columns: 50px 1fr;
    text-align: left;
    font-weight: 600;
    overflow: hidden;
    border-radius: 5px;
    background: linear-gradient(180deg, #577fb1 0, #375376);
}

.side-menu__link a > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #476995 0, #375376);
    font-size: 1.5rem;
}

.side-menu__link a span {
    display: block;
    font-weight: 700;
    line-height: 1.125rem;
    padding: 0.5rem;
}

/* Contact link style */
.contact-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    border-radius: 5px;
    gap: 0.5rem;
}

.contact-link--live {
    background-color: var(--red);
}

.contact-link--live:hover {
    background-color: var(--red-dark);
}

/* ===== UTILITY ===== */
.text-gold {
    color: var(--gold);
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* ===== PAGE HERO (category pages) ===== */
.page-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
    border: 1px solid var(--blue-border);
}

.page-hero__icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.page-hero h1 {
    font-size: 1.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 0.9375rem;
    opacity: 0.75;
    max-width: 520px;
    line-height: 1.5;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    opacity: 0.65;
}

.breadcrumb a {
    color: var(--gold);
}

.breadcrumb span {
    color: #fff;
}

/* ===== GAMES FILTERS ===== */
.games-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.games-filter {
    padding: 0.375rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--blue-border);
    background: var(--blue-light);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.games-filter:hover,
.games-filter.active {
    border-color: var(--gold);
    background-color: var(--gold);
    color: #000;
}

/* ===== GAMES SECTION ===== */
.games-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.games-section__header h2 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold);
}

.games-section__header span {
    font-size: 0.75rem;
    opacity: 0.5;
}

/* ===== GAME GRID ===== */
.games-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 2rem;
}

@media (min-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1280px) {
    .games-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* ===== GAME CARD ===== */
.game-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--blue-light);
    border: 1px solid var(--blue-border);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
}

.game-card__thumb {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
}

.game-card__thumb-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.3);
}

.game-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.game-card:hover .game-card__overlay {
    opacity: 1;
}

.game-card__info {
    padding: 0.5rem 0.625rem;
}

.game-card__title {
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.game-card__badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    background-color: rgba(255,255,255,0.1);
    color: var(--gold);
}

/* Gradient backgrounds for thumb */
.thumb--1 { background: linear-gradient(135deg, #1a3a6e, #2d5fb5); }
.thumb--2 { background: linear-gradient(135deg, #3a1a1a, #8b2020); }
.thumb--3 { background: linear-gradient(135deg, #1a3a2a, #208b55); }
.thumb--4 { background: linear-gradient(135deg, #2a1a3a, #6020a0); }
.thumb--5 { background: linear-gradient(135deg, #3a2a10, #a06010); }
.thumb--6 { background: linear-gradient(135deg, #0a2a3a, #1080a0); }
.thumb--7 { background: linear-gradient(135deg, #3a1a3a, #a020a0); }
.thumb--8 { background: linear-gradient(135deg, #1a2a1a, #305030); }
.thumb--9 { background: linear-gradient(135deg, #2a2a1a, #707020); }
.thumb--10 { background: linear-gradient(135deg, #1a1a3a, #303090); }
.thumb--11 { background: linear-gradient(135deg, #3a2020, #a04040); }
.thumb--12 { background: linear-gradient(135deg, #102030, #204060); }

/* ===== AUTH PAGES (login / register) ===== */
.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 2rem 0;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--blue-light);
    border: 1px solid var(--blue-border);
    border-radius: 12px;
    padding: 2rem 1.75rem;
}

.auth-card__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.auth-card__logo img {
    height: 50px;
}

.auth-card__title {
    text-align: center;
    margin-bottom: 0.375rem;
    font-size: 1.375rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--gold);
}

.auth-card__subtitle {
    text-align: center;
    font-size: 0.8125rem;
    opacity: 0.6;
    margin-bottom: 1.75rem;
}

/* Form groups */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    opacity: 0.85;
}

.form-group .form-control {
    width: 100%;
    background: var(--blue-mid);
    border: 1px solid var(--blue-border);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    padding: 0.625rem 0.875rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group .form-control:focus {
    border-color: var(--gold);
}

.form-group .form-control::placeholder {
    opacity: 0.35;
}

.form-control--icon {
    position: relative;
}

.form-control--icon i {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    cursor: pointer;
    font-size: 0.9rem;
}

.form-control--icon .form-control {
    padding-right: 2.5rem;
}

/* Checkbox row */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
    opacity: 0.8;
}

.form-check input[type="checkbox"] {
    accent-color: var(--gold);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.form-check a {
    color: var(--gold);
    text-decoration: underline;
}

/* Auth submit button */
.btn--auth {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    opacity: 0.4;
    font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--blue-border);
}

/* Social auth buttons */
.auth-socials {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn--social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--blue-border);
    background: var(--blue-mid);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.btn--social:hover {
    border-color: var(--gold);
}

/* Switch link */
.auth-switch {
    text-align: center;
    font-size: 0.8125rem;
    opacity: 0.7;
}

.auth-switch a {
    color: var(--gold);
    font-weight: 700;
}

/* Error / info messages */
.auth-alert {
    padding: 0.625rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
}

.auth-alert--error {
    background: rgba(202,17,61,0.15);
    border: 1px solid var(--red);
    color: #ff6b8a;
}

.auth-alert--success {
    background: rgba(0,199,23,0.1);
    border: 1px solid #00c717;
    color: #4dff6a;
}

/* ===== HONEYPOT (anti-bot) ===== */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* ===== FORM FEEDBACK ALERTS ===== */
.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    line-height: 1.45;
}
.form-alert i { margin-top: 0.1rem; flex-shrink: 0; }
.form-alert--error {
    background: rgba(202,17,61,0.15);
    border: 1px solid rgba(202,17,61,0.4);
    color: #ff8fa3;
}
.form-alert--info {
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.4);
    color: #93c5fd;
}
.form-alert--success {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.4);
    color: #86efac;
}

/* ===== GAME ACCESS MODAL ===== */
.game-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,0.72);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
.game-modal.is-open {
    display: flex;
}
.game-modal__box {
    position: relative;
    background: #0e2154;
    border: 1px solid rgba(235,176,88,0.3);
    border-radius: 14px;
    padding: 2.5rem 2rem 2rem;
    max-width: 360px;
    width: calc(100% - 2rem);
    text-align: center;
    animation: modalIn .2s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(-16px) scale(.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.game-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.875rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color .2s;
}
.game-modal__close:hover { color: #fff; }
.game-modal__icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(235,176,88,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--gold);
}
.game-modal__box h2 {
    font-size: 1.1875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.game-modal__box p {
    font-size: 0.875rem;
    opacity: 0.65;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.game-modal__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.game-modal__actions .btn,
.game-modal__actions .outlined-link {
    min-width: 7rem;
    justify-content: center;
}
