/* =========================================================
   OKGames Games Hub
   File: /web/games.css
   Version: V1
========================================================= */

/* =========================================================
   01. Section Reset
========================================================= */

.okg-top-games,
.okg-top-games *,
.okg-top-games *::before,
.okg-top-games *::after {
    box-sizing: border-box;
}

.okg-top-games {
    --okg-top-brand: #0564C8;
    --okg-top-brand-hover: #044F9F;
    --okg-top-brand-light: #EAF4FF;

    --okg-top-title: #173B74;
    --okg-top-text: #58677D;
    --okg-top-muted: #7C8A9D;

    --okg-top-page-bg: #F4F7FB;
    --okg-top-card-bg: #FFFFFF;
    --okg-top-soft-bg: #EDF5FD;

    --okg-top-border: #DCE5F2;
    --okg-top-border-strong: #B9D4F4;

    --okg-top-success: #16A765;
    --okg-top-success-soft: #E7F7EF;

    --okg-top-warning: #D79522;
    --okg-top-danger: #EF3D45;

    --okg-top-radius: 10px;

    --okg-top-shadow:
        0 8px 24px rgba(23, 59, 116, 0.08);

    --okg-top-shadow-hover:
        0 13px 30px rgba(5, 100, 200, 0.14);

    position: relative;

    width: calc(100% - 1px);
    max-width: 1200px;

    margin: 0 auto 20px;
    padding: 20px;

    overflow: hidden;

    border: 1px solid var(--okg-top-border);
    border-radius: var(--okg-top-radius);

    background:
        radial-gradient(
            circle at 6% 10%,
            rgba(5, 100, 200, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 95% 90%,
            rgba(47, 140, 255, 0.07),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #FFFFFF 0%,
            #F5F9FE 52%,
            #EDF5FD 100%
        );

    color: var(--okg-top-text);
    font-family: inherit;

    box-shadow: var(--okg-top-shadow);
}

.okg-top-games::before {
    position: absolute;
    top: -95px;
    right: -75px;

    width: 230px;
    height: 230px;

    border: 1px solid rgba(5, 100, 200, 0.08);
    border-radius: 50%;

    content: "";
    pointer-events: none;
}

.okg-top-games::after {
    position: absolute;
    bottom: -105px;
    left: -80px;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    background: rgba(5, 100, 200, 0.025);

    content: "";
    pointer-events: none;
}


/* =========================================================
   02. Section Heading
========================================================= */

.okg-top-games-heading {
    position: relative;
    z-index: 2;

    display: flex;
    width: 100%;
    min-width: 0;

    align-items: center;
    justify-content: flex-start;

    margin: 0 0 14px;
}

.okg-top-games-heading-main {
    display: flex;
    min-width: 0;

    align-items: center;
    gap: 10px;
}

.okg-top-games-heading-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(5, 100, 200, 0.15);
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #FFFFFF,
            #D9E9FA
        );

    color: var(--okg-top-danger);

    font-size: 20px;
    line-height: 1;

    box-shadow:
        0 5px 12px rgba(23, 59, 116, 0.07);
}

.okg-top-games-heading-copy {
    min-width: 0;
}

.okg-top-games-eyebrow {
    display: block;

    margin: 0 0 2px;

    color: var(--okg-top-brand);

    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.okg-top-games-title {
    margin: 0;

    color: var(--okg-top-title);

    font-family: inherit;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.3px;
}


/* =========================================================
   03. Slider Viewport
========================================================= */

.okg-top-games-slider {
    position: relative;
    z-index: 2;

    width: 100%;
    min-width: 0;

    overflow: hidden;
    border-radius: 10px;
}

.okg-top-games-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    width: 100%;
    min-width: 0;

    gap: 10px;

    transform: translate3d(0, 0, 0);
    transition: transform 0.55s ease;

    will-change: transform;
}


/* =========================================================
   04. Game Card
========================================================= */

.okg-top-game-card {
    position: relative;

    display: flex;
    min-width: 0;
    min-height: 250px;
    flex-direction: column;

    padding: 10px;
    overflow: hidden;

    border: 1px solid var(--okg-top-border);
    border-radius: 10px;

    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(5, 100, 200, 0.07),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #FFFFFF 0%,
            #F8FBFF 100%
        );

    box-shadow:
        0 6px 18px rgba(23, 59, 116, 0.06);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.okg-top-game-card::before {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #0564C8,
            #2F8CFF,
            #0564C8
        );

    content: "";
}

.okg-top-game-card:hover {
    border-color: var(--okg-top-border-strong);
    box-shadow: var(--okg-top-shadow-hover);
    transform: translateY(-3px);
}


/* =========================================================
   05. Card Main Content
========================================================= */

.okg-top-game-main {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);

    width: 100%;
    min-width: 0;

    align-items: start;
    gap: 12px;
}


/* =========================================================
   06. Game Cover
========================================================= */

.okg-top-game-media {
    position: relative;

    width: 112px;
    height: 112px;

    overflow: hidden;

    border: 1px solid var(--okg-top-border);
    border-radius: 10px;

    background: var(--okg-top-soft-bg);

    box-shadow:
        0 5px 14px rgba(23, 59, 116, 0.1);
}

.okg-top-game-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: 10px;

    transition: transform 0.35s ease;
}

.okg-top-game-card:hover
.okg-top-game-image {
    transform: scale(1.04);
}

.okg-top-game-rank {
    position: absolute;
    top: 6px;
    left: 6px;

    display: inline-flex;
    width: 28px;
    height: 28px;

    align-items: center;
    justify-content: center;

    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #D7A321,
            #FFB428
        );

    color: #FFFFFF;

    font-size: 12px;
    font-weight: 950;
    line-height: 1;

    box-shadow:
        0 5px 12px rgba(91, 63, 0, 0.22);
}


/* =========================================================
   07. Game Identity
========================================================= */

.okg-top-game-info {
    min-width: 0;
}

.okg-top-game-title-row {
    display: flex;
    width: 100%;
    min-width: 0;

    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;

    margin-bottom: 5px;
}

.okg-top-game-name {
    min-width: 0;
    margin: 0;

    color: var(--okg-top-title);

    font-family: inherit;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

.okg-top-game-live {
    display: inline-flex;
    min-height: 22px;
    flex: 0 0 auto;

    align-items: center;
    justify-content: center;

    padding: 3px 7px;

    border: 1px solid rgba(239, 61, 69, 0.18);
    border-radius: 999px;

    background: rgba(239, 61, 69, 0.08);
    color: var(--okg-top-danger);

    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.okg-top-game-live::before {
    width: 6px;
    height: 6px;

    margin-right: 4px;

    border-radius: 50%;

    background: var(--okg-top-danger);

    content: "";

    animation:
        okgTopGameLivePulse 1.4s ease-in-out infinite;
}


/* =========================================================
   08. Rating
========================================================= */

.okg-top-game-rating {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    gap: 5px;

    margin-bottom: 8px;
}

.okg-top-game-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;

    color: #E6A520;

    font-size: 12px;
    line-height: 1;
}

.okg-top-game-rating-value {
    color: var(--okg-top-title);

    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
}

.okg-top-game-winners {
    display: flex;
    align-items: center;
    gap: 5px;

    margin: 0;

    color: var(--okg-top-text);

    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.okg-top-game-winners strong {
    color: var(--okg-top-danger);

    font-size: 14px;
    font-weight: 950;
}


/* =========================================================
   09. Game Statistics
========================================================= */

.okg-top-game-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    width: 100%;
    min-width: 0;

    gap: 0;

    margin-top: 12px;
    padding: 10px 0;

    border-top: 1px solid var(--okg-top-border);
    border-bottom: 1px solid var(--okg-top-border);
}

.okg-top-game-stat {
    min-width: 0;

    padding: 0 8px;

    text-align: center;
}

.okg-top-game-stat + .okg-top-game-stat {
    border-left: 1px solid var(--okg-top-border);
}

.okg-top-game-stat-label {
    display: block;

    min-height: 28px;
    margin: 0 0 4px;

    color: var(--okg-top-muted);

    font-size: 9px;
    font-weight: 750;
    line-height: 1.35;
}

.okg-top-game-stat-value {
    display: block;

    overflow-wrap: anywhere;

    color: var(--okg-top-title);

    font-size: 15px;
    font-weight: 950;
    line-height: 1.2;
}


/* =========================================================
   10. Winner Meter
========================================================= */

.okg-top-game-meter {
    display: grid;
    grid-template-columns: auto minmax(80px, 1fr);

    width: 100%;
    min-width: 0;

    align-items: center;
    gap: 10px;

    margin-top: 10px;
}

.okg-top-game-meter-label {
    color: var(--okg-top-text);

    font-size: 11px;
    font-weight: 750;
    line-height: 1.3;
    white-space: nowrap;
}

.okg-top-game-meter-label strong {
    color: var(--okg-top-danger);
    font-weight: 950;
}

.okg-top-game-meter-track {
    position: relative;

    width: 100%;
    height: 9px;

    overflow: hidden;

    border-radius: 999px;

    background: #E8EDF4;
}

.okg-top-game-meter-fill {
    display: block;

    width: var(--okg-meter, 90%);
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #0564C8,
            #2F8CFF
        );

    box-shadow:
        0 0 10px rgba(5, 100, 200, 0.22);
}


/* =========================================================
   11. Card Buttons
========================================================= */

.okg-top-game-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);

    width: 100%;
    min-width: 0;

    align-items: center;
    gap: 8px;

    margin-top: auto;
    padding-top: 12px;
}

.okg-top-game-trend,
.okg-top-game-play {
    display: inline-flex;
    min-height: 40px;

    align-items: center;
    justify-content: center;

    padding: 8px 14px;

    border-radius: 10px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


/* View Trend */

.okg-top-game-trend,
.okg-top-game-trend:link,
.okg-top-game-trend:visited {
    min-width: 100px;

    border: 1px solid var(--okg-top-brand);

    background: #FFFFFF;
    color: var(--okg-top-brand) !important;

    text-decoration: none !important;
}

.okg-top-game-trend:hover,
.okg-top-game-trend:focus {
    border-color: var(--okg-top-brand-hover);

    background: var(--okg-top-brand-light);
    color: var(--okg-top-brand-hover) !important;

    transform: translateY(-1px);
}

.okg-top-game-trend:focus-visible,
.okg-top-game-play:focus-visible {
    outline: 3px solid rgba(5, 100, 200, 0.25);
    outline-offset: 3px;
}


/* Play Now */

.okg-top-game-play,
.okg-top-game-play:link,
.okg-top-game-play:visited {
    width: 100%;

    border: 1px solid var(--okg-top-brand);

    background:
        linear-gradient(
            135deg,
            #2F8CFF,
            #0564C8
        );

    color: #FFFFFF !important;

    text-decoration: none !important;

    box-shadow:
        0 7px 17px rgba(5, 100, 200, 0.22);
}

.okg-top-game-play:hover,
.okg-top-game-play:focus {
    border-color: var(--okg-top-brand-hover);

    background:
        linear-gradient(
            135deg,
            #0564C8,
            #044F9F
        );

    color: #FFFFFF !important;

    box-shadow:
        0 10px 22px rgba(5, 100, 200, 0.28);

    transform: translateY(-1px);
}


/* =========================================================
   12. Slider Navigation Dots
========================================================= */

.okg-top-games-dots {
    display: none;
    width: 100%;

    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 12px;
}

.okg-top-games-dot {
    display: inline-flex;
    width: 8px;
    height: 8px;

    padding: 0;

    border: 0;
    border-radius: 999px;

    background: #B9C8D9;

    font-size: 0;
    line-height: 0;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        width 0.22s ease,
        background-color 0.22s ease;
}

.okg-top-games-dot.is-active,
.okg-top-games-dot[aria-current="true"] {
    width: 24px;
    background: var(--okg-top-brand);
}

.okg-top-games-dot:focus-visible {
    outline: 2px solid rgba(5, 100, 200, 0.3);
    outline-offset: 3px;
}


/* =========================================================
   13. Slider States for JavaScript
========================================================= */

.okg-top-games.is-dragging
.okg-top-games-track {
    transition: none;
    cursor: grabbing;
}

.okg-top-games.is-paused
.okg-top-games-track {
    animation-play-state: paused;
}

.okg-top-games-slider {
    touch-action: pan-y;
}

.okg-top-games-track {
    cursor: grab;
}

.okg-top-games-track:active {
    cursor: grabbing;
}


/* =========================================================
   14. Live Animation
========================================================= */

@keyframes okgTopGameLivePulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.78);
    }
}


/* =========================================================
   15. Medium Desktop
========================================================= */

@media (max-width: 1100px) {
    .okg-top-game-main {
        grid-template-columns: 98px minmax(0, 1fr);
        gap: 10px;
    }

    .okg-top-game-media {
        width: 98px;
        height: 98px;
    }

    .okg-top-game-name {
        font-size: 16px;
    }

    .okg-top-game-stat {
        padding-right: 5px;
        padding-left: 5px;
    }

    .okg-top-game-stat-value {
        font-size: 13px;
    }
}


/* =========================================================
   16. Tablet
========================================================= */

@media (max-width: 900px) {
    .okg-top-games-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .okg-top-game-card {
        min-height: 245px;
    }

    .okg-top-game-main {
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .okg-top-game-media {
        width: 105px;
        height: 105px;
    }
}


/* =========================================================
   17. Mobile Slider
========================================================= */

@media (max-width: 767px) {
    .okg-top-games {
        width: calc(100% - 1px);

        margin-right: auto;
        margin-bottom: 20px;
        margin-left: auto;

        padding: 15px;
    }

    .okg-top-games-heading {
        margin-bottom: 12px;
    }

    .okg-top-games-heading-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;

        font-size: 18px;
    }

    .okg-top-games-eyebrow {
        font-size: 10px;
    }

    .okg-top-games-title {
        font-size: 18px;
    }

    .okg-top-games-slider {
        width: 100%;
        overflow: visible;
    }

    .okg-top-games-track {
        display: flex;

        width: 100%;
        max-width: 100%;

        gap: 10px;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 0 0 7px;

        scroll-snap-type: x mandatory;
        scrollbar-width: none;

        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;

        transform: none;
        transition: none;
    }

    .okg-top-games-track::-webkit-scrollbar {
        display: none;
    }

    .okg-top-game-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;

        min-height: 245px;

        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .okg-top-game-main {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 10px;
    }

    .okg-top-game-media {
        width: 100px;
        height: 100px;
    }

    .okg-top-game-name {
        font-size: 17px;
    }

    .okg-top-game-winners {
        font-size: 10px;
    }

    .okg-top-game-winners strong {
        font-size: 13px;
    }

    .okg-top-game-stats {
        margin-top: 10px;
        padding: 9px 0;
    }

    .okg-top-game-stat-label {
        min-height: 26px;
        font-size: 8px;
    }

    .okg-top-game-stat-value {
        font-size: 13px;
    }

    .okg-top-game-meter {
        gap: 8px;
        margin-top: 9px;
    }

    .okg-top-game-meter-label {
        font-size: 10px;
    }

    .okg-top-game-actions {
        padding-top: 10px;
    }

    .okg-top-game-trend,
    .okg-top-game-play {
        min-height: 38px;
        padding: 8px 11px;
        font-size: 11px;
    }

    .okg-top-game-trend {
        min-width: 90px;
    }

    .okg-top-games-dots {
        display: flex;
    }
}


/* =========================================================
   18. Small Mobile
========================================================= */

@media (max-width: 430px) {
    .okg-top-games {
        padding: 10px;
    }

    .okg-top-game-card {
        min-height: 238px;
        padding: 9px;
    }

    .okg-top-game-main {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 9px;
    }

    .okg-top-game-media {
        width: 88px;
        height: 88px;
    }

    .okg-top-game-name {
        font-size: 15px;
    }

    .okg-top-game-live {
        min-height: 20px;
        padding: 2px 6px;
        font-size: 8px;
    }

    .okg-top-game-rating {
        gap: 4px;
        margin-bottom: 5px;
    }

    .okg-top-game-stars {
        font-size: 10px;
    }

    .okg-top-game-rating-value {
        font-size: 10px;
    }

    .okg-top-game-stats {
        margin-top: 9px;
    }

    .okg-top-game-stat {
        padding-right: 3px;
        padding-left: 3px;
    }

    .okg-top-game-stat-label {
        min-height: 24px;
        font-size: 7px;
    }

    .okg-top-game-stat-value {
        font-size: 11px;
    }

    .okg-top-game-meter {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .okg-top-game-meter-label {
        white-space: normal;
    }

    .okg-top-game-actions {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 7px;
    }
}


/* =========================================================
   19. Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .okg-top-games-track,
    .okg-top-game-card,
    .okg-top-game-image,
    .okg-top-game-trend,
    .okg-top-game-play,
    .okg-top-games-dot {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .okg-top-game-live::before {
        animation: none;
    }

    .okg-top-game-card:hover,
    .okg-top-game-trend:hover,
    .okg-top-game-play:hover {
        transform: none;
    }

    .okg-top-game-card:hover
    .okg-top-game-image {
        transform: none;
    }
}


/* =========================================================
   20. Forced Colors
========================================================= */

@media (forced-colors: active) {
    .okg-top-games,
    .okg-top-game-card,
    .okg-top-game-media,
    .okg-top-game-trend,
    .okg-top-game-play {
        border: 1px solid CanvasText;
    }

    .okg-top-game-trend:focus-visible,
    .okg-top-game-play:focus-visible,
    .okg-top-games-dot:focus-visible {
        outline: 3px solid Highlight;
    }
}

/* =========================================================
   01. Variables
========================================================= */

.okg-games-page {
    --okg-brand: #0564C8;
    --okg-brand-hover: #044F9F;
    --okg-brand-light: #EAF4FF;

    --okg-accent: #FFB428;
    --okg-accent-hover: #E99A00;

    --okg-title: #173B74;
    --okg-text: #58677D;
    --okg-muted: #7C8A9D;

    --okg-page-bg: #F4F7FB;
    --okg-card-bg: #FFFFFF;
    --okg-soft-bg: #EDF5FD;
    --okg-border: #DCE5F2;

    --okg-success: #18A75A;
    --okg-success-bg: #E9F8F0;

    --okg-warning: #E58A00;
    --okg-warning-bg: #FFF6E4;

    --okg-radius: 10px;
    --okg-section-gap: 20px;
    --okg-container: 1200px;

    --okg-shadow:
        0 8px 24px rgba(23, 59, 116, 0.08);

    width: 100%;
    margin: 0;
    padding: 0;

    background: var(--okg-page-bg);
    color: var(--okg-text);

    font-family: inherit;
    box-sizing: border-box;
}

.okg-games-page *,
.okg-games-page *::before,
.okg-games-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   02. Shared Layout
========================================================= */

.okg-games-hero,
.okg-games-highlights,
.okg-games-section,
.okg-games-cta {
    width: calc(100% - 1px);
    max-width: var(--okg-container);

    margin: 0 auto var(--okg-section-gap);
    padding: 0;

    border-radius: var(--okg-radius);
}

.okg-games-section,
.okg-games-highlights {
    overflow: hidden;

    background: var(--okg-card-bg);
    box-shadow: var(--okg-shadow);
}

.okg-games-container {
    width: 100%;
    margin: 0 auto;
    padding: 10px;
}

.okg-games-section:last-child,
.okg-games-cta:last-child {
    margin-bottom: 0;
}

/* =========================================================
   03. Typography
========================================================= */

.okg-games-page h1,
.okg-games-page h2,
.okg-games-page h3,
.okg-games-page h4,
.okg-games-page p {
    margin-top: 0;
}

.okg-games-page h1,
.okg-games-page h2,
.okg-games-page h3,
.okg-games-page h4 {
    color: var(--okg-title);
}

.okg-games-page h1 {
    margin-bottom: 14px;

    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1.3px;
}

.okg-games-page h2 {
    margin-bottom: 10px;

    font-size: clamp(25px, 3vw, 30px);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.7px;
}

.okg-games-page h3 {
    margin-bottom: 6px;

    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.okg-games-page p {
    margin-bottom: 0;

    color: var(--okg-text);
    font-size: 16px;
    line-height: 1.75;
}

.okg-games-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 10px;
    padding: 6px 10px;

    border-radius: 10px;

    background: var(--okg-brand-light);
    color: var(--okg-brand);

    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.okg-games-section-heading {
    max-width: 800px;
    margin-bottom: 18px;
}

.okg-games-section-heading p {
    max-width: 740px;
}

/* =========================================================
   04. Buttons
========================================================= */

.okg-games-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;

    margin-top: 20px;
}

.okg-games-button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 22px;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 15px;
    line-height: 1;
    font-weight: 800;
    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.okg-games-button:hover {
    transform: translateY(-2px);
}

.okg-games-button--primary,
.okg-games-button--primary:link,
.okg-games-button--primary:visited,
.okg-games-button--primary:hover,
.okg-games-button--primary:active,
.okg-games-button--primary:focus {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.okg-games-button--primary {
    background: var(--okg-brand);
    border-color: var(--okg-brand);
    box-shadow: 0 8px 18px rgba(5, 100, 200, 0.22);
}

.okg-games-button--primary:hover {
    background: var(--okg-brand-hover);
    border-color: var(--okg-brand-hover);
}

.okg-games-button--secondary,
.okg-games-button--secondary:link,
.okg-games-button--secondary:visited {
    background: #FFFFFF;
    border-color: var(--okg-border);
    color: var(--okg-title) !important;
    text-decoration: none !important;
}

.okg-games-button--secondary:hover {
    background: var(--okg-brand-light);
    border-color: var(--okg-brand);
    color: var(--okg-brand) !important;
}

/* =========================================================
   05. Hero
========================================================= */

.okg-games-hero {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 86% 22%,
            rgba(255, 255, 255, 0.25),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #0564C8 0%,
            #0D79E6 52%,
            #48A3FF 100%
        );

    box-shadow: var(--okg-shadow);
}

.okg-games-hero::before {
    content: "";

    position: absolute;
    top: -90px;
    right: -60px;

    width: 260px;
    height: 260px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.okg-games-hero::after {
    content: "";

    position: absolute;
    right: 20%;
    bottom: -125px;

    width: 230px;
    height: 230px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.okg-games-hero-inner {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: center;
    gap: 28px;

    min-height: 430px;
    padding: 34px;
}

.okg-games-hero-content {
    max-width: 650px;
}

.okg-games-hero .okg-games-eyebrow {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.okg-games-hero h1 {
    color: #FFFFFF;
}

.okg-games-hero p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
}

.okg-games-hero .okg-games-button--secondary,
.okg-games-hero .okg-games-button--secondary:link,
.okg-games-hero .okg-games-button--secondary:visited {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    color: #FFFFFF !important;
}

.okg-games-hero .okg-games-button--secondary:hover {
    background: #FFFFFF;
    color: var(--okg-brand) !important;
}

.okg-games-hero-media {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
}

.okg-games-hero-image {
    display: block;

    width: 100%;
    max-width: 490px;
    height: 360px;

    object-fit: contain;
    object-position: center;

    border-radius: 10px;
}

/* =========================================================
   06. Highlights
========================================================= */

.okg-games-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;

    padding: 10px;
}

.okg-games-highlight-item {
    min-width: 0;

    padding: 10px;

    border: 1px solid var(--okg-border);
    border-radius: 10px;

    background: #FFFFFF;
}

.okg-games-highlight-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 9px;

    border-radius: 10px;

    background: var(--okg-brand-light);
    color: var(--okg-brand);

    font-size: 20px;
    line-height: 1;
    font-weight: 900;
}

.okg-games-highlight-item p {
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   07. Two Column Sections
========================================================= */

.okg-games-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 24px;
}

.okg-games-two-column--reverse {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
}

.okg-games-content {
    min-width: 0;
    padding: 10px;
}

.okg-games-image-box {
    min-width: 0;
    overflow: hidden;

    padding: 10px;

    border-radius: 10px;

    background: var(--okg-soft-bg);
}

.okg-games-image {
    display: block;

    width: 100%;
    height: 350px;

    object-fit: cover;
    object-position: center;

    border-radius: 10px;
}

/* =========================================================
   08. Overview List
========================================================= */

.okg-games-list {
    display: grid;
    gap: 10px;

    margin: 18px 0 0;
    padding: 0;

    list-style: none;
}

.okg-games-list li {
    position: relative;

    padding: 10px 10px 10px 42px;

    border: 1px solid var(--okg-border);
    border-radius: 10px;

    background: #FFFFFF;

    color: var(--okg-text);
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
}

.okg-games-list li::before {
    content: "✓";

    position: absolute;
    top: 10px;
    left: 10px;

    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--okg-success-bg);
    color: var(--okg-success);

    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}

.okg-games-list strong {
    display: block;

    margin-bottom: 2px;

    color: var(--okg-title);
    font-weight: 800;
}

.okg-games-list span {
    display: block;

    color: var(--okg-text);
}

/* =========================================================
   09. Game Categories
========================================================= */

.okg-games-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.okg-games-category-card {
    min-width: 0;
    overflow: hidden;

    border: 1px solid var(--okg-border);
    border-radius: 10px;

    background: #FFFFFF;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.okg-games-category-card:hover {
    transform: translateY(-3px);
    border-color: rgba(5, 100, 200, 0.38);
    box-shadow: var(--okg-shadow);
}

.okg-games-category-link,
.okg-games-category-link:link,
.okg-games-category-link:visited {
    display: block;
    height: 100%;

    color: inherit;
    text-decoration: none;
}

.okg-games-category-image {
    display: block;

    width: 100%;
    height: 170px;

    object-fit: cover;
    object-position: center;

    border-radius: 10px 10px 0 0;
}

.okg-games-category-content {
    padding: 10px;
}

.okg-games-category-content h3 {
    transition: color 0.25s ease;
}

.okg-games-category-card:hover h3 {
    color: var(--okg-brand);
}

.okg-games-category-content p {
    font-size: 14px;
    line-height: 1.65;
}

.okg-games-category-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    margin-top: 9px;

    color: var(--okg-brand);

    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
}

/* =========================================================
   10. Popular Games
========================================================= */

.okg-games-popular-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.okg-games-popular-card {
    position: relative;
    min-width: 0;
    overflow: hidden;

    border: 1px solid var(--okg-border);
    border-radius: 10px;

    background: #FFFFFF;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.okg-games-popular-card:hover {
    transform: translateY(-3px);
    border-color: rgba(5, 100, 200, 0.38);
    box-shadow: var(--okg-shadow);
}

.okg-games-popular-link,
.okg-games-popular-link:link,
.okg-games-popular-link:visited {
    display: block;
    height: 100%;

    color: inherit;
    text-decoration: none;
}

.okg-games-popular-media {
    position: relative;
    overflow: hidden;

    aspect-ratio: 16 / 10;

    background: var(--okg-soft-bg);
}

.okg-games-popular-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.35s ease;
}

.okg-games-popular-card:hover .okg-games-popular-image {
    transform: scale(1.04);
}

.okg-games-popular-badge {
    position: absolute;
    top: 10px;
    left: 10px;

    display: inline-flex;
    align-items: center;

    padding: 5px 8px;

    border-radius: 10px;

    background: rgba(5, 100, 200, 0.92);
    color: #FFFFFF;

    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.okg-games-popular-content {
    padding: 10px;
}

.okg-games-popular-content h3 {
    transition: color 0.25s ease;
}

.okg-games-popular-card:hover h3 {
    color: var(--okg-brand);
}

.okg-games-popular-content p {
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   11. Why Players Enjoy OKGames
========================================================= */

.okg-games-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.okg-games-feature-card {
    min-width: 0;

    padding: 10px;

    border: 1px solid var(--okg-border);
    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            #FFFFFF 0%,
            #F8FBFF 100%
        );
}

.okg-games-feature-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;

    border-radius: 10px;

    background: var(--okg-brand-light);
    color: var(--okg-brand);

    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.okg-games-feature-card p {
    font-size: 14px;
    line-height: 1.65;
}

/* =========================================================
   12. Mobile Gaming
========================================================= */

.okg-games-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin-top: 18px;
}

.okg-games-mobile-card {
    padding: 10px;

    border: 1px solid var(--okg-border);
    border-radius: 10px;

    background: #FFFFFF;
}

.okg-games-mobile-card strong {
    display: block;

    margin-bottom: 3px;

    color: var(--okg-title);
    font-size: 15px;
    font-weight: 800;
}

.okg-games-mobile-card span {
    display: block;

    color: var(--okg-text);
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   13. Responsible Gaming
========================================================= */

.okg-games-responsible-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;

    margin-top: 18px;
}

.okg-games-responsible-card {
    padding: 10px;

    border: 1px solid var(--okg-border);
    border-radius: 10px;

    background: #FFFFFF;
}

.okg-games-responsible-card h3 {
    font-size: 16px;
}

.okg-games-responsible-card p {
    font-size: 14px;
    line-height: 1.65;
}

.okg-games-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 18px;
    padding: 10px;

    border: 1px solid #FFD993;
    border-radius: 10px;

    background: var(--okg-warning-bg);
}

.okg-games-notice-icon {
    flex: 0 0 auto;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #FFFFFF;
    color: var(--okg-warning);

    font-weight: 900;
}

.okg-games-notice strong {
    display: block;

    margin-bottom: 2px;

    color: #8B5A00;
}

.okg-games-notice p {
    color: #74581F;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   14. Related Guides
========================================================= */

.okg-games-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.okg-games-guide-card {
    min-width: 0;

    padding: 10px;

    border: 1px solid var(--okg-border);
    border-radius: 10px;

    background: #FFFFFF;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.okg-games-guide-card:hover {
    transform: translateY(-3px);
    border-color: rgba(5, 100, 200, 0.38);
    box-shadow: var(--okg-shadow);
}

.okg-games-guide-link,
.okg-games-guide-link:link,
.okg-games-guide-link:visited {
    display: block;

    color: inherit;
    text-decoration: none;
}

.okg-games-guide-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;

    border-radius: 10px;

    background: var(--okg-brand-light);
    color: var(--okg-brand);

    font-size: 21px;
    line-height: 1;
    font-weight: 900;
}

.okg-games-guide-card p {
    font-size: 14px;
    line-height: 1.65;
}

.okg-games-guide-arrow {
    display: inline-flex;

    margin-top: 9px;

    color: var(--okg-brand);

    font-size: 13px;
    font-weight: 800;
}

/* =========================================================
   15. FAQ
========================================================= */

.okg-games-faq-list {
    display: grid;
    gap: 10px;
}

.okg-games-faq-item {
    overflow: hidden;

    border: 1px solid var(--okg-border);
    border-radius: 10px;

    background: #FFFFFF;
}

.okg-games-faq-item summary {
    position: relative;

    display: block;

    padding: 10px 42px 10px 10px;

    color: var(--okg-title);

    font-size: 16px;
    line-height: 1.5;
    font-weight: 800;

    cursor: pointer;
    list-style: none;
}

.okg-games-faq-item summary::-webkit-details-marker {
    display: none;
}

.okg-games-faq-item summary::after {
    content: "+";

    position: absolute;
    top: 50%;
    right: 10px;

    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border-radius: 10px;

    background: var(--okg-brand-light);
    color: var(--okg-brand);

    font-size: 18px;
    line-height: 1;
    font-weight: 800;
}

.okg-games-faq-item[open] summary::after {
    content: "−";
}

.okg-games-faq-content {
    padding: 0 10px 10px;
}

.okg-games-faq-content p {
    padding-top: 10px;

    border-top: 1px solid var(--okg-border);

    font-size: 15px;
    line-height: 1.7;
}

/* =========================================================
   16. CTA
========================================================= */

.okg-games-cta {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(255, 255, 255, 0.2),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0564C8 0%,
            #0D79E6 100%
        );

    box-shadow: var(--okg-shadow);
}

.okg-games-cta-inner {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
    align-items: center;
    gap: 24px;

    padding: 28px;
}

.okg-games-cta-content {
    min-width: 0;
}

.okg-games-cta h2 {
    margin-bottom: 8px;
    color: #FFFFFF;
}

.okg-games-cta p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
}

.okg-games-cta .okg-games-eyebrow {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.okg-games-cta .okg-games-button--secondary,
.okg-games-cta .okg-games-button--secondary:link,
.okg-games-cta .okg-games-button--secondary:visited {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--okg-brand) !important;
}

.okg-games-cta-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.okg-games-cta-image {
    display: block;

    width: 100%;
    max-width: 340px;
    height: 220px;

    object-fit: contain;
    object-position: center;

    border-radius: 10px;
}

/* =========================================================
   17. Tablet
========================================================= */

@media (max-width: 1024px) {

    .okg-games-hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
        gap: 20px;

        min-height: 390px;
        padding: 24px;
    }

    .okg-games-highlight-grid,
    .okg-games-category-grid,
    .okg-games-popular-grid,
    .okg-games-feature-grid,
    .okg-games-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .okg-games-two-column,
    .okg-games-two-column--reverse {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .okg-games-responsible-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .okg-games-image {
        height: 320px;
    }

    .okg-games-cta-inner {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.4fr);
    }
}

/* =========================================================
   18. Mobile
========================================================= */

@media (max-width: 767px) {

    .okg-games-hero,
    .okg-games-highlights,
    .okg-games-section,
    .okg-games-cta {
        width: calc(100% - 1px);
    }

    .okg-games-hero-inner {
        grid-template-columns: 1fr;
        gap: 18px;

        min-height: auto;
        padding: 10px;
    }

    .okg-games-hero-content {
        order: 1;
    }

    .okg-games-hero-media {
        order: 2;
    }

    .okg-games-hero-image {
        max-width: 100%;
        height: 280px;
    }

    .okg-games-page h1 {
        font-size: 34px;
        line-height: 1.12;
    }

    .okg-games-page h2 {
        font-size: 27px;
    }

    .okg-games-page p {
        font-size: 15px;
        line-height: 1.7;
    }

    .okg-games-buttons {
        width: 100%;
    }

    .okg-games-button {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
        padding: 10px 12px;
    }

    .okg-games-highlight-grid,
    .okg-games-category-grid,
    .okg-games-popular-grid,
    .okg-games-feature-grid,
    .okg-games-guide-grid,
    .okg-games-mobile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .okg-games-responsible-grid {
        grid-template-columns: 1fr;
    }

    .okg-games-two-column,
    .okg-games-two-column--reverse {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .okg-games-two-column--reverse .okg-games-image-box {
        order: 2;
    }

    .okg-games-two-column--reverse .okg-games-content {
        order: 1;
    }

    .okg-games-content,
    .okg-games-image-box {
        padding: 10px;
    }

    .okg-games-image {
        height: 270px;
    }

    .okg-games-category-image {
        height: 150px;
    }

    .okg-games-cta-inner {
        grid-template-columns: 1fr;
        gap: 18px;

        padding: 18px 10px;
    }

    .okg-games-cta-media {
        order: 2;
    }

    .okg-games-cta-image {
        max-width: 100%;
        height: 220px;
    }
}

/* =========================================================
   19. Small Mobile
========================================================= */

@media (max-width: 520px) {

    .okg-games-highlight-grid,
    .okg-games-category-grid,
    .okg-games-popular-grid,
    .okg-games-feature-grid,
    .okg-games-guide-grid,
    .okg-games-mobile-grid {
        grid-template-columns: 1fr;
    }

    .okg-games-button {
        flex: 1 1 100%;
    }

    .okg-games-hero-image {
        height: 235px;
    }

    .okg-games-image {
        height: 230px;
    }

    .okg-games-category-image {
        height: 185px;
    }

    .okg-games-cta-image {
        height: 190px;
    }
}

/* =========================================================
   20. Accessibility
========================================================= */

.okg-games-button:focus-visible,
.okg-games-category-link:focus-visible,
.okg-games-popular-link:focus-visible,
.okg-games-guide-link:focus-visible,
.okg-games-faq-item summary:focus-visible {
    outline: 3px solid rgba(255, 180, 40, 0.8);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .okg-games-page *,
    .okg-games-page *::before,
    .okg-games-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================
   Infinite Slider
========================== */

.okg-games-slider{
    width:100%;
    overflow:hidden;
    position:relative;
}

.okg-games-slider-track{
    display:flex;
    gap:10px;
    width:max-content;
    animation:okgGamesSlider 40s linear infinite;
}

.okg-games-slider:hover .okg-games-slider-track{
    animation-play-state:paused;
}

.okg-games-category-card,
.okg-games-popular-card{
    flex:0 0 280px;
}

@keyframes okgGamesSlider{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(calc(-50% - 5px));
    }

}

@media (max-width:1024px){

.okg-games-category-card,
.okg-games-popular-card{

    flex:0 0 240px;

}

}

@media (max-width:767px){

.okg-games-category-card,
.okg-games-popular-card{

    flex:0 0 190px;

}

}