/* =========================================================
   ROOT / VARIABLES
========================================================= */

:root {
    --bg: #29235f;
    --bg2: #352d73;
    --panel: #253969;
    --panel2: #314878;
    --ink: #fff;
    --muted: #b7bee0;
    --cyan: #16c9e8;
    --coral: #ff4b5f;
    --violet: #8150ff;
    --line: #ffffff18;
    --shadow: 0 10px 22px #09062155;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
}

body {
    margin: 0;

    background-color: var(--bg);

    background-image:
        linear-gradient(
            90deg,
            #ffffff05 1px,
            transparent 1px
        ),
        linear-gradient(
            #ffffff05 1px,
            transparent 1px
        );

    background-size: 44px 44px;
}

.container {
    width: min(1500px, calc(100% - 34px));
    margin: auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(31, 27, 78, .98);

    /* Strong separation from main content */
    border-bottom: 3px solid #ffffff;

    box-shadow: 0 8px 25px rgba(7, 5, 30, .35);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* =========================================================
   MAIN NAV WRAPPER
========================================================= */

.nav {
    min-height: 76px;

    display: flex;
    align-items: center;

    gap: 18px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    width: 205px;

    display: block;

    flex: 0 0 auto;
}

.logo img {
    display: block;

    width: 100%;
    height: auto;
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav-links {
    display: flex;

    align-items: center;

    gap: 6px;

    min-width: 0;
}


/* =========================================================
   NAV LINKS
========================================================= */

.nav-links a {
    min-height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 0 12px;

    border: 1px solid transparent;

    border-radius: 10px;

    color: #e3e5f7;

    text-decoration: none;

    font-size: 13px;

    font-weight: 800;

    white-space: nowrap;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}


.nav-links a:hover {
    color: #fff;

    background: rgba(255,255,255,.09);

    border-color: rgba(255,255,255,.11);

    transform: translateY(-1px);
}


/* =========================================================
   CATEGORY ICONS
========================================================= */

.nav-links a::before {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    border-radius: 6px;

    background: rgba(255,255,255,.08);

    font-size: 14px;

    line-height: 1;
}


/* HOME */

.nav-links a[href="/"]::before {
    content: "⌂";
}


/* 2 PLAYER */

.nav-links a[href*="2-player"]::before {
    content: "👥";
}


/* RACING */

.nav-links a[href*="racing"]::before {
    content: "🏎️";
}


/* SHOOTING */

.nav-links a[href*="shooting"]::before {
    content: "🎯";
}


/* SPORTS */

.nav-links a[href*="sports"]::before {
    content: "⚽";
}


/* PUZZLE */

.nav-links a[href*="puzzle"]::before {
    content: "🧩";
}


/* ARCADE */

.nav-links a[href*="arcade"]::before {
    content: "🕹️";
}


/* MULTIPLAYER */

.nav-links a[href*="multiplayer"]::before {
    content: "🌐";
}


/* ADVENTURE */

.nav-links a[href*="adventure"]::before {
    content: "⚔️";
}


/* ACTION */

.nav-links a[href*="action"]::before {
    content: "💥";
}


/* SOCCER */

.nav-links a[href*="soccer"]::before {
    content: "⚽";
}


/* COOKING */

.nav-links a[href*="cooking"]::before {
    content: "🍳";
}


/* GIRLS */

.nav-links a[href*="girls"]::before {
    content: "✨";
}


/* BOYS */

.nav-links a[href*="boys"]::before {
    content: "🎮";
}


/* CLICKER */

.nav-links a[href*="clicker"]::before {
    content: "👆";
}


/* 3D */

.nav-links a[href*="/3d"]::before {
    content: "🧊";
}


/* AI */

.nav-links a[href*="/ai"]::before {
    content: "🤖";
}


/* FALLBACK FOR OTHER LINKS */

.nav-links a:not([href="/"]):not([href*="2-player"]):not([href*="racing"]):not([href*="shooting"]):not([href*="sports"]):not([href*="puzzle"]):not([href*="arcade"]):not([href*="multiplayer"]):not([href*="adventure"]):not([href*="action"]):not([href*="soccer"]):not([href*="cooking"]):not([href*="girls"]):not([href*="boys"]):not([href*="clicker"]):not([href*="/3d"]):not([href*="/ai"])::before {
    content: "🎮";
}


/* =========================================================
   SEARCH
========================================================= */

.search-form {
    margin-left: auto;

    display: flex;

    align-items: center;

    flex: 0 0 auto;

    overflow: hidden;

    border: 3px solid rgba(255,255,255,.11);

    border-radius: 11px;

    background: rgba(255,255,255,.07);

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}


.search-form:focus-within {
    background: rgba(255,255,255,.10);

    border-color: rgba(22,201,232,.55);

    box-shadow:
        0 0 0 3px rgba(22,201,232,.10);
}


.search-form input {
    width: 170px;

    min-height: 42px;

    padding: 0 13px;

    border: 0;
    outline: 0;

    color: #fff;

    background: transparent;

    font-size: 13px;
}


.search-form input::placeholder {
    color: #aeb4d1;
}


.search-form button {
    width: 44px;
    height: 42px;

    flex: 0 0 44px;

    display: grid;

    place-items: center;

    border: 0;

    background:
        linear-gradient(
            135deg,
            #8150ff,
            #a03df2
        );

    color: #fff;

    cursor: pointer;

    transition: filter .18s ease;
}


.search-form button:hover {
    filter: brightness(1.12);
}


/* =========================================================
   MENU TOGGLE
========================================================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    padding: 0;

    border: 1px solid rgba(255,255,255,.10);

    border-radius: 10px;

    background: rgba(255,255,255,.08);

    color: #fff;

    font-size: 23px;

    cursor: pointer;
}


/* =========================================================
   ICONS
========================================================= */

.icon {
    width: 21px;
    height: 21px;

    display: inline-block;

    vertical-align: middle;

    fill: currentColor;
}


/* =========================================================
   DESKTOP - PREVENT NAV FROM BREAKING
========================================================= */

@media (max-width: 1250px) {

    .nav {
        gap: 12px;
    }

    .logo {
        width: 185px;
    }

    .nav-links {
        gap: 3px;
    }

    .nav-links a {
        padding: 0 9px;

        font-size: 12px;
    }

    .nav-links a::before {
        width: 20px;
        height: 20px;

        flex-basis: 20px;

        font-size: 13px;
    }

    .search-form input {
        width: 135px;
    }

}


/* =========================================================
   TABLET / MOBILE NAV
========================================================= */

@media (max-width: 950px) {

    .site-header {
        background: rgba(31,27,78,.98);
    }

    .nav {
        position: relative;

        min-height: 68px;

        gap: 10px;
    }


    /* -----------------------------------------
       LOGO
    ----------------------------------------- */

    .logo {
        width: 165px;
    }


    /* -----------------------------------------
       MENU BUTTON
    ----------------------------------------- */

    .menu-toggle {
        display: grid;

        place-items: center;

        order: 3;
    }


    /* -----------------------------------------
       SEARCH
    ----------------------------------------- */

    .search-form {
        margin-left: auto;
    }

    .search-form input {
        width: 140px;
    }


    /* -----------------------------------------
       MOBILE MENU PANEL
    ----------------------------------------- */

    .nav-links {
        display: none;

        position: absolute;

        top: calc(100% + 8px);

        left: 0;
        right: 0;

        z-index: 100;

        max-height: calc(100vh - 90px);

        overflow-y: auto;

        padding: 12px;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 8px;

        border: 1px solid rgba(255,255,255,.09);

        border-radius: 14px;

        background: #201c52;

        box-shadow:
            0 18px 45px rgba(6,4,25,.45);
    }


    .nav-links.open {
        display: grid;
    }


    /* -----------------------------------------
       BIG VISUAL MOBILE CATEGORY BUTTONS
    ----------------------------------------- */

    .nav-links a {
        min-height: 66px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 5px;

        padding: 7px;

        text-align: center;

        font-size: 11px;

        line-height: 1.2;

        white-space: normal;

        background: rgba(255,255,255,.055);

        border-color: rgba(255,255,255,.06);
    }


    .nav-links a::before {
        width: 30px;
        height: 30px;

        flex: 0 0 30px;

        font-size: 18px;

        border-radius: 8px;

        background: rgba(255,255,255,.09);
    }


    .nav-links a:hover {
        transform: none;

        background: rgba(255,255,255,.11);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .nav {
        min-height: 64px;

        gap: 7px;
    }


    /* -----------------------------------------
       LOGO
    ----------------------------------------- */

    .logo {
        width: 142px;
    }


    /* -----------------------------------------
       SEARCH
    ----------------------------------------- */

    .search-form {
        flex: 1;

        max-width: 170px;

        min-width: 0;
    }


    .search-form input {
        width: 100%;

        min-width: 0;

        padding: 0 9px;

        font-size: 12px;
    }


    .search-form button {
        width: 40px;

        flex-basis: 40px;
    }


    /* -----------------------------------------
       MENU BUTTON
    ----------------------------------------- */

    .menu-toggle {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }


    /* -----------------------------------------
       CATEGORY MENU
    ----------------------------------------- */

    .nav-links {
        left: -2px;
        right: -2px;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 7px;

        padding: 9px;
    }


    .nav-links a {
        min-height: 64px;

        padding: 6px 3px;

        border-radius: 9px;

        font-size: 10px;
    }


    .nav-links a::before {
        width: 28px;
        height: 28px;

        flex-basis: 28px;

        font-size: 17px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .container {
        width: calc(100% - 14px);
    }


    .nav {
        gap: 5px;
    }


    .logo {
        width: 125px;
    }


    .search-form {
        max-width: 135px;
    }


    .search-form input {
        font-size: 11px;

        padding-left: 8px;
    }


    .search-form input::placeholder {
        font-size: 11px;
    }


    .search-form button {
        width: 36px;

        flex-basis: 36px;
    }


    .menu-toggle {
        width: 37px;
        height: 37px;

        flex-basis: 37px;

        font-size: 20px;
    }


    .nav-links {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   EXTREMELY SMALL MOBILE
========================================================= */

@media (max-width: 350px) {

    .logo {
        width: 110px;
    }


    .search-form {
        max-width: 115px;
    }


    .nav-links {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   HOME MAIN
========================================================= */

.home-main {
    padding-top: 18px;
}
/* =========================================================
   ARCADE GRID
========================================================= */

.arcade-grid {
    display: grid;

    grid-template-columns: repeat(10, 1fr);

    grid-auto-rows: minmax(74px, 7vw);

    grid-auto-flow: dense;

    gap: 11px;
}

.arcade-tile {
    grid-column: span 1;
    grid-row: span 1;

    min-width: 0;
}

.arcade-tile.tile-wide {
    grid-column: span 2;
}

.arcade-tile.tile-xl {
    grid-column: span 2;
    grid-row: span 2;
}

.arcade-tile a {
    height: 100%;

    display: block;

    position: relative;

    overflow: hidden;

    border-radius: 12px;

    background: #1b1945;

    box-shadow: var(--shadow);

    isolation: isolate;
}

.arcade-tile img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .22s;
}


/* =========================================================
   TILE FALLBACK
========================================================= */

.tile-fallback {
    height: 100%;

    display: grid;

    place-items: center;

    background: linear-gradient(
        135deg,
        #5438c8,
        #d14078
    );
}

.tile-fallback img {
    width: 65%;
    height: 65%;

    object-fit: contain;
}


/* =========================================================
   TILE OVERLAY - CLEAR WHITE TEXT
========================================================= */

.tile-overlay {
    position: absolute;
    inset: auto 0 0;
    z-index: 3;

    width: 100%;

    padding: 42px 10px 9px;

    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(8, 6, 28, .65) 45%,
        rgba(8, 6, 28, .96) 100%
    );

    color: #ffffff;

    opacity: 0;
    transform: translateY(5px);

    transition:
        opacity .2s ease,
        transform .2s ease;

    pointer-events: none;
}


/* =========================================================
   GAME TITLE
========================================================= */

.tile-overlay b {
    display: block;

    width: 100%;

    margin: 0;

    color: #ffffff !important;

    font-size: 13px;
    font-weight: 800;

    line-height: 1.3;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    text-shadow:
        0 1px 2px rgba(0, 0, 0, .9),
        0 0 5px rgba(0, 0, 0, .6);
}


/* =========================================================
   CATEGORY / SMALL TEXT
========================================================= */

.tile-overlay small {
    display: flex;
    align-items: center;

    gap: 4px;

    margin-top: 2px;

    color: #ffffff !important;

    font-size: 10px;
    font-weight: 700;

    line-height: 1.2;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    opacity: .9;

    text-shadow:
        0 1px 2px rgba(0, 0, 0, .9);
}


/* =========================================================
   OVERLAY ICON
========================================================= */

.tile-overlay .icon {
    width: 11px;
    height: 11px;

    flex: 0 0 11px;

    color: #ffffff;
    fill: currentColor;
}


/* =========================================================
   TILE HOVER
========================================================= */

.arcade-tile img {
    transition:
        transform .25s ease,
        filter .25s ease;
}

.arcade-tile:hover img {
    transform: scale(1.06);

    filter: brightness(.88);
}

.arcade-tile:hover .tile-overlay {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   TOUCH DEVICES
   Always show title because phones don't have real hover
========================================================= */

@media (hover: none), (pointer: coarse) {

    .tile-overlay {
        opacity: 1;

        transform: none;

        padding:
            30px 7px 6px;

        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(8, 6, 28, .50) 45%,
            rgba(8, 6, 28, .94) 100%
        );
    }

    .tile-overlay b {
        font-size: 11px;
    }

    .tile-overlay small {
        font-size: 9px;
    }
}

/* =========================================================
   SECTION TITLES
========================================================= */

.section-title {
    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 15px;
}

.section-title span,
.eyebrow {
    font-size: 11px;

    letter-spacing: 1.8px;

    color: var(--cyan);

    font-weight: 900;
}

.section-title h2 {
    margin: 2px 0;

    font-size: 26px;
}

.section-title > a {
    color: #fff;

    text-decoration: none;

    font-weight: 800;
}


/* =========================================================
   CATEGORY / GAME SECTIONS
========================================================= */

.category-zone,
.game-section {
    margin: 44px 0;
}


/* =========================================================
   CATEGORY GRID
========================================================= */

.category-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 13px;
}

.category-card {
    min-height: 86px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    overflow: hidden;

    border-radius: 12px;

    background:
        linear-gradient(
            110deg,
            #344d80,
            #263967
        );

    box-shadow: var(--shadow);

    color: #fff;

    text-decoration: none;
}

.category-card div {
    padding: 15px;

    min-width: 0;
}

.category-card strong,
.category-card small {
    display: block;
}

.category-card strong {
    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.category-card small {
    color: #aab6d8;

    font-size: 11px;

    margin-top: 4px;
}

.category-card img,
.category-icon {
    width: 45%;
    height: 86px;

    object-fit: cover;

    clip-path:
        polygon(
            26% 0,
            100% 0,
            100% 100%,
            0 100%
        );
}

.category-icon {
    display: grid;

    place-items: center;

    font-size: 32px;

    background: #8150ff;
}

.category-card:hover {
    transform: translateY(-2px);

    filter: brightness(1.09);
}


/* =========================================================
   GAME GRID
========================================================= */

.game-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 15px;
}

.game-card a {
    color: #fff;

    text-decoration: none;
}

.game-thumb {
    position: relative;

    overflow: hidden;

    border-radius: 12px;

    box-shadow: var(--shadow);

    background: #24204f;
}

.game-thumb img,
.thumb-placeholder {
    display: block;

    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;
}

.play-badge {
    position: absolute;

    inset: 50% auto auto 50%;

    transform:
        translate(-50%, -35%);

    opacity: 0;

    background: #fff;

    color: #1d1945 !important;

    border-radius: 30px;

    padding: 7px 12px;

    font-size: 11px;
    font-weight: 900;
}

.game-card:hover .play-badge {
    opacity: 1;

    transform:
        translate(-50%, -50%);
}

.game-card-body {
    padding: 9px 3px;
}

.game-card h3 {
    margin: 0;

    font-size: 14px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.game-card-body span {
    color: #aeb6d5;

    font-size: 11px;
}


/* =========================================================
   CONTENT BOXES
========================================================= */

.home-copy,
.game-content,
.content-section {
    margin: 38px 0;

    padding: 34px;

    border: 1px solid var(--line);

    border-radius: 17px;

    background-color: #29416ee8;

    background-image:
        radial-gradient(
            circle at 40% 40%,
            transparent 0 80px,
            #ffffff06 81px 83px,
            transparent 84px
        );

    box-shadow: var(--shadow);
}

.home-copy h1 {
    margin: 4px 0 12px;

    font-size: 34px;
}

.home-copy h2,
.game-content h2 {
    font-size: 21px;

    margin: 25px 0 7px;
}

.home-copy p,
.game-content p {
    color: #c2c9e2;
}

.copy-columns {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 32px;
}


/* =========================================================
   EMPTY / WELCOME
========================================================= */

.welcome-empty {
    text-align: center;

    padding: 80px;
}

.welcome-empty img {
    width: 300px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;

    align-items: center;

    border: 0;

    border-radius: 10px;

    padding: 11px 17px;

    background: var(--violet);

    color: #fff !important;

    text-decoration: none;

    font-weight: 800;

    cursor: pointer;
}

.btn.secondary {
    background: #ffffff15;
}


/* =========================================================
   BREADCRUMBS
========================================================= */

.breadcrumbs {
    display: flex;

    gap: 8px;

    padding: 18px 0;

    color: #9da6c7;

    font-size: 12px;
}

.breadcrumbs a {
    color: var(--cyan);

    text-decoration: none;
}


/* =========================================================
   GAME PLAY STAGE
========================================================= */

.play-stage {
    display: grid;

    grid-template-columns:
        150px
        minmax(0, 1fr)
        150px;

    gap: 14px;

    align-items: start;
}


/* =========================================================
   LEFT / RIGHT GAME RAIL
========================================================= */

.game-rail {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9px;
}

.game-rail a {
    position: relative;

    border-radius: 11px;

    overflow: hidden;

    box-shadow: var(--shadow);

    aspect-ratio: 1;

    color: #fff;
}

.game-rail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.game-rail span {
    position: absolute;

    inset: auto 0 0;

    background:
        linear-gradient(
            transparent,
            #0a0925df
        );

    padding: 20px 5px 5px;

    font-size: 9px;

    opacity: 0;
}

.game-rail a:hover span {
    opacity: 1;
}


/* =========================================================
   PLAYER COLUMN
========================================================= */

.player-column {
    min-width: 0;
}


/* =========================================================
   GAME PLAYER SHELL
========================================================= */

.game-player-shell {
    width: 100%;

    overflow: hidden;

    border: 3px solid #17143f;

    border-radius: 14px;

    background: #1b1744;

    box-shadow:
        0 12px 30px #09061d99;
}


/* =========================================================
   NORMAL GAME PLAYER

   16:9 keeps the player consistent on normal page.
   No fixed min-height or vh iframe height.
========================================================= */

.game-player {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    background: #05050d;
}

.game-player iframe {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    border: 0;

    background: #05050d;
}


/* =========================================================
   GAME LAUNCH SCREEN
========================================================= */

.launch-screen {
    width: 100%;
    height: 100%;

    display: grid;

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

    text-align: center;
}

.launch-screen img {
    width: 130px;
    height: 130px;

    object-fit: cover;

    border-radius: 20px;
}


/* =========================================================
   PLAYER TOOLBAR
========================================================= */

.player-toolbar {
    min-height: 62px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 7px 9px;

    background:
        linear-gradient(
            90deg,
            #7650ec,
            #303c79
        );
}


/* =========================================================
   GAME IDENTITY
========================================================= */

.game-identity {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}

.game-identity img {
    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    object-fit: cover;

    border-radius: 8px;
}

.game-identity div {
    min-width: 0;
}

.game-identity h1 {
    margin: 0;

    font-size: 14px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.game-identity span {
    font-size: 10px;

    color: #d4d8ec;
}


/* =========================================================
   PLAYER TOOLBAR ACTIONS
========================================================= */

.toolbar-actions {
    display: flex;

    align-items: center;

    gap: 3px;

    margin-left: auto;

    flex-shrink: 0;
}

.toolbar-actions button,
.rating-compact {
    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

    border: 0;

    border-radius: 8px;

    background: #ffffff10;

    color: #fff;

    padding: 0 9px;

    font: inherit;

    cursor: pointer;
}

.toolbar-actions button:hover,
.toolbar-actions button.active {
    background: #ffffff25;
}

.toolbar-actions .maximize {
    background: #17143f;
}

.rating-compact {
    color: #ffd24b;

    cursor: default;
}

.rating-compact .icon {
    width: 17px;
}


/* =========================================================
   TRUE FULLSCREEN
========================================================= */

.game-player-shell:fullscreen {
    width: 100vw !important;
    height: 100vh !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    display: flex !important;

    flex-direction: column !important;

    background: #05050d !important;

    box-shadow: none !important;
}

.game-player-shell:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    display: flex !important;

    flex-direction: column !important;

    background: #05050d !important;

    box-shadow: none !important;
}


/* =========================================================
   GAME AREA WHILE FULLSCREEN
========================================================= */

.game-player-shell:fullscreen .game-player,
.game-player-shell:-webkit-full-screen .game-player {
    position: relative;

    flex: 1 1 0 !important;

    width: 100% !important;
    height: auto !important;

    min-width: 0 !important;
    min-height: 0 !important;

    aspect-ratio: auto !important;

    overflow: hidden !important;

    background: #05050d;
}


/* =========================================================
   IFRAME WHILE FULLSCREEN
========================================================= */

.game-player-shell:fullscreen .game-player iframe,
.game-player-shell:-webkit-full-screen .game-player iframe {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;

    border: 0 !important;
}


/* =========================================================
   TOOLBAR WHILE FULLSCREEN
========================================================= */

.game-player-shell:fullscreen .player-toolbar,
.game-player-shell:-webkit-full-screen .player-toolbar {
    width: 100% !important;

    flex: 0 0 auto !important;

    position: relative;

    z-index: 20;

    border-radius: 0;

    margin: 0;
}


/* =========================================================
   BELOW PLAYER
========================================================= */

.below-player {
    width: min(1040px, 100%);

    margin: 16px auto;
}


/* =========================================================
   RELATED GAMES BELOW PLAYER

   DESKTOP = 4 PER ROW
   8 TOTAL FROM GAME.PHP = 2 ROWS
========================================================= */

.game-related-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;

    margin-top: 15px;
}


/* =========================================================
   RELATED GAME CARD
========================================================= */

.game-related-card {
    display: block;

    min-width: 0;

    overflow: hidden;

    color: #fff;

    text-decoration: none;

    background: #ffffff0d;

    border: 1px solid var(--line);

    border-radius: 13px;

    box-shadow: var(--shadow);

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.game-related-card:hover {
    transform: translateY(-3px);

    background: #ffffff15;

    border-color: #ffffff2c;
}


/* =========================================================
   RELATED GAME THUMBNAIL
========================================================= */

.game-related-thumb {
    position: relative;

    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #1b1945;
}

.game-related-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    transition:
        transform .22s ease;
}

.game-related-card:hover
.game-related-thumb img {
    transform: scale(1.05);
}


/* =========================================================
   RELATED PLAY BUTTON
========================================================= */

.related-play-icon {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    transform:
        translate(-50%, -50%)
        scale(.8);

    border-radius: 50%;

    background: #17143fdd;

    color: #fff;

    font-size: 15px;

    opacity: 0;

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.game-related-card:hover
.related-play-icon {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}


/* =========================================================
   RELATED GAME TEXT
========================================================= */

.game-related-info {
    padding: 10px 11px 11px;
}

.game-related-info strong {
    display: block;

    color: #fff;

    font-size: 13px;

    line-height: 1.35;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.game-related-info span {
    display: block;

    margin-top: 3px;

    color: #aeb6d5;

    font-size: 11px;
}


/* =========================================================
   GAME CONTENT
========================================================= */

.game-content {
    width: min(1040px, 100%);

    margin: 32px auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        190px;

    gap: 30px;
}

.content-cover img {
    width: 100%;

    aspect-ratio: 1;

    object-fit: cover;

    border-radius: 15px;

    box-shadow: var(--shadow);
}

.content-cover strong {
    display: block;

    text-align: center;

    margin-top: 8px;
}

.game-content details {
    border-top:
        1px solid var(--line);

    padding: 14px 0;
}

.game-content summary {
    cursor: pointer;

    font-weight: 800;
}


/* =========================================================
   DIALOG / REPORT
========================================================= */

dialog {
    width:
        min(
            450px,
            calc(100% - 24px)
        );

    border: 0;

    border-radius: 17px;

    background: #fff;

    color: #202139;

    box-shadow:
        0 30px 80px #09051a99;

    padding: 0;
}

dialog::backdrop {
    background: #090620bb;

    backdrop-filter: blur(4px);
}

dialog form {
    padding: 28px;

    position: relative;
}

.dialog-icon {
    width: 34px;
    height: 34px;

    color: var(--coral);
}

.dialog-close {
    position: absolute;

    right: 14px;
    top: 10px;

    border: 0;

    background: none;

    font-size: 28px;

    cursor: pointer;
}

dialog label {
    display: grid;

    gap: 7px;

    font-weight: 800;
}

dialog select {
    padding: 12px;

    border: 1px solid #dfe2e9;

    border-radius: 9px;
}

.dialog-actions {
    display: flex;

    justify-content: flex-end;

    gap: 8px;

    margin-top: 20px;
}


/* =========================================================
   TOAST
========================================================= */

.toast {
    position: fixed;

    left: 50%;
    bottom: 22px;

    transform:
        translate(-50%, 15px);

    opacity: 0;

    background: #101126;

    color: #fff;

    border-radius: 30px;

    padding: 11px 18px;

    z-index: 100;

    transition: .2s;
}

.toast.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}


/* =========================================================
   PAGE HEADING
========================================================= */

.page-heading {
    padding: 32px 0;
}

.page-heading h1 {
    font-size: 38px;

    margin: 3px 0;
}

.page-heading p,
.result-count {
    color: #b6beda;
}


/* =========================================================
   EMPTY
========================================================= */

.empty {
    padding: 50px;

    text-align: center;

    border-radius: 14px;

    background: #ffffff0b;
}


/* =========================================================
   FOOTER - MATCH HEADER
========================================================= */

.site-footer {
    margin-top: 55px;

    padding: 42px 0 18px;

    background: rgba(31, 27, 78, .98);

    /* Clear separation from main content */
    border-top: 3px solid #ffffff;

    box-shadow: 0 -8px 25px rgba(7, 5, 30, .35);
}


/* =========================================================
   FOOTER GRID
========================================================= */

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 35px;

    align-items: start;
}


/* =========================================================
   FOOTER BRAND / LOGO
========================================================= */

.footer-brand {
    display: block;
    width: 205px;
    max-width: 100%;
    height: auto;
}
/* =========================================================
   FOOTER HEADINGS
========================================================= */

.footer-grid h3 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 14px;

    font-weight: 800;
}


/* =========================================================
   FOOTER LINKS
========================================================= */

.site-footer a {
    display: block;

    margin: 7px 0;

    color: #cdd2eb;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition:
        color .18s ease,
        transform .18s ease;
}

.site-footer a:hover {
    color: var(--cyan);

    transform: translateX(3px);
}


/* =========================================================
   FOOTER TEXT
========================================================= */

.footer-grid p {
    max-width: 430px;

    margin: 12px 0 0;

    color: #b9c0dd;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   COPYRIGHT
========================================================= */

.copyright {
    margin-top: 32px;

    padding-top: 17px;

    border-top:
        1px solid rgba(255, 255, 255, .10);

    text-align: center;

    font-size: 12px;

    color: #aeb5d3;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    .site-footer {
        margin-top: 45px;

        padding-top: 35px;
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 30px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {

    .site-footer {
        margin-top: 40px;

        padding:
            30px 0
            16px;
    }

    .footer-grid {
        grid-template-columns:
            1fr 1fr;

        gap:
            28px 18px;
    }

    /* Brand takes full first row */

    .footer-grid > :first-child {
        grid-column:
            1 / -1;
    }

    .footer-brand {
        width: 160px;
    }

    .footer-grid p {
        font-size: 12px;

        line-height: 1.65;
    }

    .footer-grid h3 {
        font-size: 13px;
    }

    .site-footer a {
        font-size: 12px;
    }

    .copyright {
        margin-top: 26px;

        padding-top: 15px;

        font-size: 11px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .footer-grid > :first-child {
        grid-column: auto;
    }

}

/* =========================================================
   RESPONSIVE - 1180PX
========================================================= */

@media (max-width: 1180px) {

    .arcade-grid {
        grid-template-columns:
            repeat(8, 1fr);
    }

    .category-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }

    .game-grid {
        grid-template-columns:
            repeat(5, 1fr);
    }

    .play-stage {
        grid-template-columns:
            110px
            minmax(0, 1fr)
            110px;
    }

    .game-rail {
        grid-template-columns: 1fr;
    }

    .game-rail a:nth-child(n+5) {
        display: none;
    }

    .toolbar-actions button span {
        display: none;
    }

}


/* =========================================================
   RESPONSIVE - 850PX
========================================================= */

@media (max-width: 850px) {

    .nav-links {
        display: none;

        position: absolute;

        top: 70px;
        left: 12px;
        right: 12px;

        padding: 14px;

        background: #201c52;

        border-radius: 12px;
    }

    .nav-links.open {
        display: grid;
    }

    .menu-toggle {
        display: block;

        order: 3;

        border: 0;

        border-radius: 9px;

        background: #ffffff13;

        color: #fff;

        padding: 9px;
    }

    .search-form {
        margin-left: auto;
    }

    .arcade-grid {
        grid-template-columns:
            repeat(6, 1fr);

        grid-auto-rows: 13vw;
    }

    .category-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .game-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }

    .play-stage {
        display: block;
    }

    .game-rail {
        display: none;
    }


    /* -----------------------------------------
       RELATED GAMES - TABLET
    ----------------------------------------- */

    .game-related-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    /* -----------------------------------------
       GAME CONTENT
    ----------------------------------------- */

    .game-content {
        grid-template-columns:
            minmax(0, 1fr)
            150px;
    }


    /* -----------------------------------------
       FOOTER
    ----------------------------------------- */

    .footer-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================================
   RESPONSIVE - 650PX
========================================================= */

@media (max-width: 650px) {

    .player-toolbar {
        align-items: flex-start;

        flex-wrap: wrap;
    }

    .game-identity {
        width: 100%;
    }

    .toolbar-actions {
        width: 100%;

        margin-left: 0;

        overflow-x: auto;

        justify-content: flex-start;

        padding-bottom: 2px;
    }

    .toolbar-actions button,
    .rating-compact {
        flex: 0 0 auto;
    }

}


/* =========================================================
   RESPONSIVE - 560PX
========================================================= */

@media (max-width: 560px) {

    .container {
        width:
            min(
                calc(100% - 18px),
                1500px
            );
    }


    /* -----------------------------------------
       HEADER
    ----------------------------------------- */

    .nav {
        min-height: 66px;
    }

    .logo {
        width: 150px;
    }

    .search-form input {
        width: 105px;
    }


    /* -----------------------------------------
       HOME ARCADE
    ----------------------------------------- */

    .arcade-grid {
        grid-template-columns:
            repeat(4, 1fr);

        grid-auto-rows: 22vw;

        gap: 7px;
    }

    .arcade-tile.tile-wide {
        grid-column: span 2;
    }

    .arcade-tile.tile-xl {
        grid-column: span 2;
        grid-row: span 2;
    }


    /* -----------------------------------------
       CATEGORIES
    ----------------------------------------- */

    .category-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .category-card:nth-child(n+9) {
        display: none;
    }


    /* -----------------------------------------
       GAME GRID
    ----------------------------------------- */

    .game-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;
    }


    /* -----------------------------------------
       COPY
    ----------------------------------------- */

    .copy-columns {
        grid-template-columns: 1fr;
    }

    .home-copy,
    .game-content {
        padding: 22px;
    }


    /* -----------------------------------------
       NORMAL GAME PLAYER

       IMPORTANT:
       no 360px min-height
       no 58vh iframe height
    ----------------------------------------- */

    .game-player {
        width: 100%;

        aspect-ratio: 16 / 9;

        min-height: 0;
    }


    /* -----------------------------------------
       PLAYER TOOLBAR
    ----------------------------------------- */

    .player-toolbar {
        align-items: flex-start;

        flex-wrap: wrap;
    }

    .game-identity {
        width: 100%;
    }

    .toolbar-actions {
        width: 100%;

        margin-top: 6px;
        margin-left: 0;

        overflow-x: auto;

        justify-content: flex-start;
    }

    .toolbar-actions button,
    .rating-compact {
        flex: 0 0 auto;
    }


    /* -----------------------------------------
       RELATED GAMES MOBILE
       2 PER ROW
    ----------------------------------------- */

    .game-related-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .game-related-info {
        padding: 8px 8px 9px;
    }

    .game-related-info strong {
        font-size: 12px;
    }

    .related-play-icon {
        width: 36px;
        height: 36px;

        font-size: 13px;
    }


    /* -----------------------------------------
       GAME CONTENT
    ----------------------------------------- */

    .game-content {
        grid-template-columns: 1fr;
    }

    .content-cover {
        order: -1;

        display: flex;

        align-items: center;

        gap: 12px;
    }

    .content-cover img {
        width: 90px;
    }


    /* -----------------------------------------
       FOOTER
    ----------------------------------------- */

    .footer-grid {
        grid-template-columns:
            1fr 1fr;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .logo {
        width: 135px;
    }

    .search-form input {
        width: 82px;
    }

    .toolbar-actions {
        gap: 3px;
    }

    .toolbar-actions button,
    .rating-compact {
        height: 36px;

        padding: 0 7px;
    }

    .game-related-grid {
        gap: 8px;
    }

    .game-related-info strong {
        font-size: 11px;
    }

    .game-related-info span {
        font-size: 10px;
    }

}
/* =========================================================
   SEARCH PAGE
========================================================= */

.search-page {
    padding-top: 35px;
    padding-bottom: 40px;
}


.search-page-header {
    width: 100%;
    margin: 0 0 28px;
}


.search-page-header .eyebrow {
    display: inline-block;

    margin-bottom: 7px;

    color: var(--cyan);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 1.3px;
}


.search-page-header h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;

    line-height: 1.1;
}


.search-intro {
    margin: 9px 0 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;
}



/* =========================================================
   LARGE PAGE SEARCH
========================================================= */

.page-search-form {
    width: 100%;
    max-width: 720px;

    margin-top: 22px;

    display: flex;
    align-items: stretch;

    padding: 5px;

    border: 1px solid rgba(255, 255, 255, .14);

    border-radius: 13px;

    background: rgba(255, 255, 255, .07);

    box-shadow:
        0 8px 22px rgba(7, 5, 30, .22);
}


.page-search-form input {
    min-width: 0;
    width: 100%;
    height: 48px;

    padding: 0 15px;

    border: 0;
    outline: 0;

    border-radius: 9px;

    background: transparent;

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
}


.page-search-form input::placeholder {
    color: #aeb5d1;

    opacity: 1;
}


.page-search-form input:focus {
    background: rgba(255, 255, 255, .04);
}


.page-search-form button {
    min-width: 118px;
    height: 48px;

    padding: 0 18px;

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

    gap: 7px;

    border: 0;
    border-radius: 9px;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            var(--violet),
            #a340ff
        );

    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 900;

    white-space: nowrap;

    transition:
        transform .18s ease,
        filter .18s ease;
}


.page-search-form button:hover {
    filter: brightness(1.08);

    transform: translateY(-1px);
}


.page-search-form button .icon {
    width: 17px;
    height: 17px;
}



/* =========================================================
   RESULT COUNT
========================================================= */

.search-result-heading {
    width: 100%;

    margin: 0 0 16px;
}


.search-result-heading p {
    margin: 0;

    color: #cbd1e8;

    font-size: 14px;
}


.search-result-heading strong {
    color: #ffffff;
}



/* =========================================================
   GLOBAL RESPONSIVE GAME GRID
   USES SAME GRID ON SEARCH / GAMES / CATEGORY PAGES
========================================================= */

.game-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 16px;

    align-items: stretch;
}


/* IMPORTANT:
   prevent cards from forcing grid wider than viewport */

.game-grid > * {
    min-width: 0;
}



/* =========================================================
   GAME CARD PROTECTION
========================================================= */

.game-card,
.arcade-tile {
    width: 100%;
    min-width: 0;
    max-width: 100%;

    overflow: hidden;
}


.game-card img,
.arcade-tile img {
    display: block;

    width: 100%;
    max-width: 100%;

    height: auto;
}



/* =========================================================
   CATEGORY GRIDS
========================================================= */

.category-grid,
.categories-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 16px;
}


.category-grid > *,
.categories-grid > * {
    min-width: 0;
}



/* =========================================================
   EMPTY SEARCH
========================================================= */

.search-empty {
    margin-top: 25px;

    text-align: center;
}



/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1400px) {

    .game-grid,
    .category-grid,
    .categories-grid {
        grid-template-columns:
            repeat(6, minmax(0, 1fr));
    }

}



/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1200px) {

    .game-grid,
    .category-grid,
    .categories-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .search-page {
        padding-top: 27px;
    }


    .game-grid,
    .category-grid,
    .categories-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 13px;
    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .search-page {
        padding-top: 22px;
        padding-bottom: 30px;
    }


    .search-page-header {
        margin-bottom: 22px;
    }


    .search-page-header h1 {
        font-size: 28px;
    }


    .search-intro {
        font-size: 13px;
    }



    /* SEARCH */

    .page-search-form {
        max-width: none;

        margin-top: 17px;

        padding: 4px;

        border-radius: 11px;
    }


    .page-search-form input {
        height: 44px;

        padding: 0 11px;

        font-size: 13px;
    }


    .page-search-form button {
        min-width: 94px;
        height: 44px;

        padding: 0 13px;

        font-size: 12px;
    }



    /* GAME CARDS */

    .game-grid,
    .category-grid,
    .categories-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }


    .search-result-heading {
        margin-bottom: 12px;
    }


    .search-result-heading p {
        font-size: 12px;
    }

}



/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .page-search-form button {
        min-width: 46px;

        padding: 0 12px;
    }


    .page-search-form button span {
        display: none;
    }


    .game-grid,
    .category-grid,
    .categories-grid {
        gap: 8px;
    }

}
/* =========================================================
   GAME RATING PANEL
========================================================= */

.rating-panel {
    width: 100%;

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

    gap: 25px;

    margin: 16px 0;
    padding: 17px 20px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.055),
            rgba(129,80,255,.08)
        );

    box-shadow:
        0 8px 22px rgba(8,5,35,.14);
}


/* LEFT SIDE */

.rating-panel-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.rating-title {
    color: #ffffff;

    font-size: 14px;
    font-weight: 900;

    line-height: 1.35;
}


.rating-subtitle {
    color: #9fa8cb;

    font-size: 10px;
    font-weight: 600;

    line-height: 1.4;
}


/* =========================================================
   RIGHT AREA
========================================================= */

.rating-panel-action {
    display: flex;
    align-items: center;

    gap: 18px;
}


/* =========================================================
   STARS
========================================================= */

.rating-panel .stars {
    display: flex;
    align-items: center;

    gap: 3px;
}


.rating-panel .stars button {
    width: 31px;
    height: 31px;

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

    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;

    color: #747da3;

    cursor: pointer;

    transition:
        color .15s ease,
        transform .15s ease;
}


.rating-panel .stars button svg {
    width: 22px;
    height: 22px;

    fill: currentColor;
}


.rating-panel .stars button:hover {
    color: #ffd43b;

    transform: scale(1.12);
}


/*
 If your JS adds .active or .selected
 after a rating.
*/

.rating-panel .stars button.active,
.rating-panel .stars button.selected {
    color: #ffd43b;
}


/* =========================================================
   RATING TEXT
========================================================= */

.rating-summary {
    min-width: 170px;

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

    gap: 5px;

    color: #b8c0dd;

    font-size: 11px;

    white-space: nowrap;
}


.rating-summary > strong {
    color: #ffd43b;

    font-size: 16px;
    font-weight: 900;
}


.rating-out-of {
    color: #dce0f2;

    font-weight: 700;
}


.rating-divider {
    margin: 0 3px;

    color: #697398;
}


.rating-summary span strong {
    color: #ffffff;

    font-size: 11px;
    font-weight: 900;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 750px) {

    .rating-panel {
        align-items: flex-start;
        flex-direction: column;

        gap: 14px;
    }


    .rating-panel-action {
        width: 100%;

        justify-content: space-between;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {

    .rating-panel {
        margin: 12px 0;

        padding: 14px;

        gap: 12px;

        border-radius: 10px;
    }


    .rating-title {
        font-size: 13px;
    }


    .rating-subtitle {
        font-size: 9px;
    }


    .rating-panel-action {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
    }


    .rating-panel .stars {
        width: 100%;

        justify-content: flex-start;
    }


    .rating-panel .stars button {
        width: 34px;
        height: 34px;
    }


    .rating-panel .stars button svg {
        width: 23px;
        height: 23px;
    }


    .rating-summary {
        min-width: 0;

        justify-content: flex-start;

        font-size: 10px;
    }


    .rating-summary > strong {
        font-size: 14px;
    }

}

/* =========================================================
   GAME DETAILS / META PANEL
========================================================= */

.game-details-panel {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 36px;
    margin: 0 0 14px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    background: rgba(14, 13, 48, .34);
    box-shadow: 0 8px 22px rgba(8,5,35,.10);
}

.game-details-column {
    min-width: 0;
    display: grid;
    gap: 8px;
    align-content: start;
}

.game-detail-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    font-size: 12px;
    line-height: 1.5;
}

.game-detail-label {
    color: #ffffff;
    font-weight: 900;
}

.game-detail-value {
    min-width: 0;
    color: #c4cae5;
    overflow-wrap: anywhere;
}

.game-detail-tags {
    color: #d9ddf0;
}

.game-detail-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    color: #ffffff;
}

.game-detail-rating > strong {
    color: #ffffff;
    font-weight: 900;
}

.detail-star {
    color: #ffd43b;
    font-size: 15px;
    line-height: 1;
}

.detail-votes {
    color: #9fa8cb;
}

/* Final rating layout: keep it compact and aligned. */
.rating-panel,
.rating-panel * {
    box-sizing: border-box;
}

.rating-panel .rating-panel-info,
.rating-panel .rating-panel-action,
.rating-panel .rating-summary,
.rating-panel .stars {
    min-width: 0;
}

.rating-panel .rating-title,
.rating-panel .rating-subtitle,
.rating-panel .rating-summary span,
.rating-panel .rating-summary strong {
    display: inline;
}

.rating-panel .rating-panel-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rating-panel .rating-title,
.rating-panel .rating-subtitle {
    display: block;
}

.rating-panel .rating-panel-action {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rating-panel .rating-summary {
    line-height: 1.4;
}

@media (max-width: 700px) {
    .game-details-panel {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px;
    }

    .game-detail-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }
}

@media (max-width: 420px) {
    .game-detail-row {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 7px;
        font-size: 11px;
    }
}
