:root {
    --bg: #04121b;
    --panel: #071a25;
    --line: #183747;
    --text: #f8fbff;
    --muted: #8ca5b3;
    --yellow: #ffb80f;
    --orange: #ff7900;
    --green: #14e29b;
    --cyan: #08d9c7
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0 !important;
    background: #04121b !important;
    color: var(--text) !important;
    font-family: Inter, Arial, sans-serif !important;
    font-size: 12px !important;
    overflow-x: hidden
}

a {
    text-decoration: none !important;
    color: inherit
}

.h5-container {
    width: calc(100% - 42px);
    max-width: 900px;
    margin: 0 auto
}

.h5-header {
    height: 45px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #04111aee;
    border-bottom: 1px solid #15303d;
    backdrop-filter: blur(15px)
}

.h5-nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px
}

.h5-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap
}

.h5-logo b {
    font-size: 17px;
    letter-spacing: .2px;
    font-weight: 900
}

.h5-pad {
    font-size: 20px;
    color: #ffad0a;
    filter: drop-shadow(0 0 7px #ff9b0033)
}

.h5-search {
    width: 255px;
    height: 31px;
    border: 1px solid #1b3544;
    background: #0c202c;
    border-radius: 7px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-left: 8px
}

.h5-search>i {
    margin-left: 11px;
    color: #8fa3b0
}

.h5-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    padding: 0 9px;
    font-size: 9px
}

.h5-search button {
    height: 100%;
    width: 38px;
    border: 0;
    border-left: 1px solid #143444;
    background: #0b2938;
    color: #15d5ce
}

.h5-main-nav {
    display: flex;
    align-items: center;
    gap: 21px;
    margin-left: auto;
    height: 100%
}

.h5-main-nav>a,
.h5-nav-drop>a {
    font-weight: 700;
    font-size: 9px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    white-space: nowrap
}

.h5-main-nav>a.active {
    color: var(--yellow)
}

.h5-main-nav>a.active:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    background: var(--yellow);
    box-shadow: 0 0 8px #ffb80f
}

.h5-main-nav .fa-fire {
    color: #ff7112
}

.h5-nav-drop {
    height: 100%;
    position: relative
}

.h5-nav-drop>div {
    display: none;
    position: absolute;
    right: 0;
    top: 42px;
    width: 170px;
    padding: 8px;
    background: #081b26;
    border: 1px solid #1a3c4d;
    border-radius: 8px;
    box-shadow: 0 18px 50px #000b
}

.h5-nav-drop:hover>div {
    display: grid
}

.h5-nav-drop>div a {
    padding: 7px 9px;
    border-radius: 5px;
    color: #b8c6cd
}

.h5-nav-drop>div a:hover {
    background: #102c3a;
    color: #ffbd20
}

.h5-social {
    display: flex;
    gap: 13px;
    color: #8194a5;
    font-size: 11px
}

.h5-social a:hover {
    color: #fff
}

.h5-menu {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 18px
}

.h5-hero {
    height: 272px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #17313e;
    background: #07151e
}

.h5-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 40%;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity .8s, transform 5s
}

.h5-hero-bg.active {
    opacity: 1;
    transform: scale(1.08)
}

.h5-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(125deg, rgba(0, 255, 215, .11), transparent 20%, transparent 77%, rgba(255, 139, 0, .14))
}

.h5-hero-lines:before,
.h5-hero-lines:after {
    content: "";
    position: absolute;
    z-index: 1;
    width: 260px;
    height: 2px;
    box-shadow: 0 0 12px currentColor
}

.h5-hero-lines:before {
    left: -75px;
    top: 135px;
    background: #00e9cb;
    color: #00e9cb;
    transform: rotate(-44deg)
}

.h5-hero-lines:after {
    right: -65px;
    bottom: 65px;
    background: #ff9700;
    color: #ff9700;
    transform: rotate(-45deg)
}

.h5-hero-grid {
    height: 100%;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.18fr .82fr;
    align-items: center;
    gap: 42px
}

.h5-hero-copy {
    width: auto;
    max-width: 420px;
    justify-self: start;
    align-self: center
}

.h5-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    background: #075a3bde;
    border: 1px solid #128958;
    color: #6dffbd;
    border-radius: 14px;
    font-size: 7px;
    font-weight: 800
}

.h5-hero h1 {
    font-size: 42px !important;
    line-height: .92 !important;
    margin: 9px 0 6px !important;
    font-weight: 900 !important;
    letter-spacing: -1.8px
}

.h5-hero h1 em {
    font-style: normal;
    color: var(--yellow)
}

.h5-hero h3 {
    font-size: 12px !important;
    margin: 0 0 7px !important;
    font-weight: 700
}

.h5-hero p {
    max-width: 360px;
    color: #c5d0d6;
    font-size: 9px;
    line-height: 1.5;
    margin: 0
}

.h5-actions {
    display: flex;
    gap: 12px;
    margin: 15px 0 13px
}

.h5-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 34px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800
}

.h5-btn.primary {
    background: linear-gradient(135deg, #ffd230, #ffa407);
    color: #07121a;
    box-shadow: 0 5px 20px #ff9f0525
}

.h5-btn.ghost {
    border: 1px solid #ffb20d;
    background: #091722c9;
    color: #fff
}

.h5-benefits {
    display: flex;
    gap: 19px;
    color: #d0d9dd;
    font-size: 7px
}

.h5-benefits i {
    color: #17dc9b;
    margin-right: 4px
}

.h5-featured-stage {
    height: 174px;
    position: relative
}

.h5-featured {
    position: absolute;
    inset: 0;
    border: 1.5px solid var(--cyan);
    border-radius: 12px;
    overflow: hidden;
    background: #091923;
    box-shadow: 0 0 18px #00f5df40;
    opacity: 0;
    transform: translateX(18px) perspective(900px) rotateY(-3deg);
    transition: .55s;
    pointer-events: none
}

.h5-featured.active {
    opacity: 1;
    transform: translateX(0) perspective(900px) rotateY(-3deg);
    pointer-events: auto
}

.h5-featured>img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.h5-featured:after {
    content: "";
    position: absolute;
    inset: 42% 0 0;
    background: linear-gradient(transparent, #04111af5)
}

.h5-feature-label {
    position: absolute;
    z-index: 4;
    top: 11px;
    left: 11px;
    background: var(--yellow);
    color: #07121a;
    padding: 5px 8px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 7px
}

.h5-feature-info {
    position: absolute;
    z-index: 4;
    left: 13px;
    right: 11px;
    bottom: 10px;
    display: flex;
    align-items: end;
    justify-content: space-between
}

.h5-feature-info h2 {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 700
}

.h5-feature-info small {
    font-size: 7px;
    color: #b7c5cc
}

.h5-feature-info>a {
    width: 34px;
    height: 34px;
    border: 1px solid #dbe8ed;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 27px;
    line-height: 1
}

.h5-dots {
    position: absolute;
    z-index: 5;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px
}

.h5-dots button {
    border: 0;
    padding: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #75848c
}

.h5-dots button.active {
    background: var(--yellow);
    width: 13px;
    border-radius: 5px
}

.h5-section {
    padding: 18px 0 2px
}

.h5-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px
}

.h5-section-head>div {
    display: flex;
    align-items: baseline;
    gap: 17px
}

.h5-section-head h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    margin: 0;
    font-weight: 700
}

.h5-section-head h2 span {
    color: var(--yellow)
}

.h5-section-head small {
    color: var(--muted);
    font-size: 8px
}

.h5-section-head>a {
    font-size: 7px;
    color: #8ce8dd
}

.h5-card-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px
}

.h5-game-card {
    background: linear-gradient(180deg, #0b202b, #071720);
    border: 1px solid #203d4c;
    border-radius: 7px;
    overflow: hidden;
    transition: .25s;
    min-width: 0
}

.h5-game-card:hover {
    transform: translateY(-3px);
    border-color: #19d9bd;
    box-shadow: 0 8px 22px #0007
}

.h5-thumb-wrap {
    height: 91px;
    position: relative;
    overflow: hidden
}

.h5-thumb-wrap>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .35s
}

.h5-game-card:hover img {
    transform: scale(1.05)
}

.h5-play {
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 18px;
    height: 18px;
    border: 1px solid #d8e6ed;
    border-radius: 50%;
    background: #071722cc;
    display: grid;
    place-items: center;
    font-size: 6px
}

.h5-rank {
    position: absolute;
    z-index: 3;
    left: 7px;
    top: 6px;
    width: 21px;
    height: 21px;
    border-radius: 7px;
    background: #f5c21b;
    color: #06131c;
    display: grid;
    place-items: center;
    font-size: 10px
}

.h5-card-body {
    padding: 7px 8px
}

.h5-card-body strong,
.h5-card-body small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.h5-card-body strong {
    font-size: 9px
}

.h5-card-body small {
    font-size: 7px;
    color: #8da0ab;
    margin: 2px 0 5px
}

.h5-meta {
    display: flex;
    gap: 14px;
    font-size: 7px;
    color: #aebdc4
}

.h5-meta span:first-child {
    color: #ffd34b
}

.h5-cat-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 9px
}

.h5-cat-grid a {
    height: 73px;
    border: 1px solid #25506a;
    border-radius: 8px;
    background: linear-gradient(160deg, #0d3a50, #071725);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .25s
}

.h5-cat-grid a:nth-child(1) {
    background: linear-gradient(160deg, #9b4308, #281706);
    border-color: #ff7600
}

.h5-cat-grid a:nth-child(2) {
    background: linear-gradient(160deg, #075b42, #061e17);
    border-color: #00a96c
}

.h5-cat-grid a:nth-child(4) {
    background: linear-gradient(160deg, #5b087e, #190529);
    border-color: #a70fe6
}

.h5-cat-grid a:nth-child(5) {
    background: linear-gradient(160deg, #695000, #201800);
    border-color: #b68a00
}

.h5-cat-grid a:nth-child(6) {
    background: linear-gradient(160deg, #00635f, #062320);
    border-color: #00b9b1
}

.h5-cat-grid a:nth-child(7) {
    background: linear-gradient(160deg, #7c123f, #270715);
    border-color: #c71e62
}

.h5-cat-grid a:hover {
    transform: translateY(-3px);
    filter: brightness(1.12)
}

.h5-cat-grid b {
    font-size: 17px;
    margin-bottom: 3px
}

.h5-cat-grid strong {
    font-size: 9px
}

.h5-cat-grid small {
    font-size: 6px;
    color: #b9c7cd
}

.h5-quick {
    padding: 16px 0 4px
}

.h5-quick-inner {
    min-height: 58px;
    border: 1px solid #1b756f;
    border-radius: 9px;
    background: linear-gradient(100deg, #2b1a05, #092029 50%, #07322e);
    display: flex;
    align-items: center;
    padding: 9px 17px;
    gap: 13px;
    box-shadow: inset 0 0 30px #ff970010
}

.h5-lightning {
    font-size: 34px;
    color: var(--yellow)
}

.h5-quick h2 {
    font-size: 12px;
    margin: 0
}

.h5-quick p {
    font-size: 7px;
    color: #aebbc1;
    margin: 1px 0
}

.h5-quick-points {
    margin-left: auto;
    display: flex;
    gap: 22px
}

.h5-quick-points span {
    display: grid;
    grid-template-columns: 20px auto;
    color: #32e2aa
}

.h5-quick-points b {
    font-size: 7px;
    color: #fff
}

.h5-quick-points small {
    grid-column: 2;
    font-size: 5px;
    color: #8da0aa
}

.h5-quick .h5-btn {
    height: 30px;
    font-size: 7px;
    margin-left: 6px
}

.h5-explore {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    grid-template-rows: 48px 48px;
    gap: 7px
}

.h5-explore a {
    position: relative;
    overflow: hidden;
    border: 1px solid #23404e;
    border-radius: 7px
}

.h5-explore a.wide {
    grid-row: 1/3
}

.h5-explore img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.h5-explore a:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #06131cc7, transparent 70%)
}

.h5-explore span {
    position: absolute;
    z-index: 2;
    left: 10px;
    bottom: 7px
}

.h5-explore b,
.h5-explore small {
    display: block
}

.h5-explore b {
    font-size: 8px
}

.h5-explore small {
    font-size: 6px;
    color: #c0ccd2
}

.h5-news {
    padding: 17px 0 0
}

.h5-news-inner {
    min-height: 52px;
    border: 1px solid #24505d;
    border-radius: 8px;
    background: linear-gradient(90deg, #0c3440, #0b2731);
    display: flex;
    align-items: center;
    padding: 8px 14px;
    gap: 11px
}

.h5-news .mail {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: #0bcf9a22;
    border: 1px solid #0bd29b;
    display: grid;
    place-items: center;
    color: #21efb4;
    font-size: 16px;
    box-shadow: 0 0 14px #00ffb730
}

.h5-news h3 {
    font-size: 10px;
    margin: 0
}

.h5-news small {
    font-size: 6px;
    color: #8fa5af
}

.h5-news form {
    margin-left: auto;
    width: 285px;
    height: 28px;
    border: 1px solid #24505d;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #0a2029
}

.h5-news form i {
    margin-left: 10px;
    color: #8aa1ad
}

.h5-news input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    padding: 0 8px;
    font-size: 7px
}

.h5-news button {
    height: 100%;
    width: 86px;
    border: 0;
    background: #19d99b;
    font-weight: 700;
    font-size: 7px
}

.play-note {
    margin-left: 20px;
    font-size: 8px;
    line-height: 1.05;
    transform: rotate(-8deg)
}

.h5-footer {
    padding: 14px 0 0;
    background: #031018
}

.h5-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.4fr 1fr;
    gap: 40px;
    padding: 0 0 14px
}

.foot-logo b {
    font-size: 10px
}

.foot-logo .h5-pad {
    font-size: 14px
}

.h5-footer p,
.h5-footer a {
    display: block;
    color: #81939e;
    font-size: 7px;
    line-height: 1.65
}

.h5-footer h4 {
    font-size: 8px;
    margin: 0 0 5px
}

.h5-social.foot {
    margin-top: 8px
}

.h5-social.foot a {
    display: inline
}

.h5-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr
}

.h5-footer .contact i {
    color: var(--yellow);
    width: 14px
}

.h5-copy {
    border-top: 1px solid #132934;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    color: #687c87;
    font-size: 6px
}

.h5-copy a {
    display: inline;
    font-size: 6px
}

.h5-copy span:last-child {
    display: flex;
    gap: 12px
}

@media(max-width:920px) {
    .h5-container {
        width: calc(100% - 30px)
    }

    .h5-nav {
        gap: 12px
    }

    .h5-search {
        width: 220px
    }

    .h5-main-nav {
        gap: 14px
    }

    .h5-social {
        display: none
    }
}

@media(max-width:760px) {
    .h5-header {
        height: 55px
    }

    .h5-search {
        flex: 1
    }

    .h5-main-nav {
        display: none;
        position: absolute;
        top: 55px;
        left: 0;
        right: 0;
        height: auto;
        background: #061722;
        padding: 12px 20px;
        z-index: 20
    }

    .h5-main-nav.open {
        display: grid
    }

    .h5-main-nav>a,
    .h5-nav-drop>a {
        height: auto;
        padding: 8px
    }

    .h5-menu {
        display: block
    }

    .h5-hero {
        height: auto;
        min-height: 430px
    }

    .h5-hero-grid {
        grid-template-columns: 1fr;
        padding: 30px 0 45px;
        gap: 22px
    }

    .h5-featured-stage {
        height: 190px
    }

    .h5-card-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .h5-thumb-wrap {
        height: 110px
    }

    .h5-cat-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .h5-quick-points {
        display: none
    }

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

    .h5-news form {
        width: 100%;
        order: 5
    }

    .h5-news-inner {
        flex-wrap: wrap
    }
}

@media(max-width:480px) {
    .h5-logo b {
        font-size: 14px
    }

    .h5-search {
        order: 3;
        flex-basis: 100%;
        height: 30px
    }

    .h5-header {
        height: auto;
        padding: 8px 0
    }

    .h5-nav {
        flex-wrap: wrap
    }

    .h5-hero h1 {
        font-size: 37px !important
    }

    .h5-card-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .h5-thumb-wrap {
        height: 105px
    }

    .h5-section-head>div {
        display: block
    }

    .h5-section-head small {
        display: block;
        margin-top: 3px
    }

    .h5-explore {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 95px 60px 60px
    }

    .h5-explore a.wide {
        grid-column: 1/3;
        grid-row: auto
    }

    .h5-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px
    }

    .h5-copy {
        flex-direction: column;
        gap: 8px
    }

    .h5-copy span:last-child {
        flex-wrap: wrap
    }
}

/* ===== H5 Games visual polish v3: larger, clearer, reference-inspired ===== */
:root {
    --brand-grad: linear-gradient(135deg, #ffd83d 0%, #ffb20c 48%, #ff7900 100%);
    --cyan-grad: linear-gradient(135deg, #22f0d0, #00aeea);
    --panel-grad: linear-gradient(145deg, #0b2532 0%, #071923 55%, #06131c 100%)
}

body {
    font-size: 13px !important
}

.h5-header {
    height: 58px;
    background: linear-gradient(180deg, rgba(4, 17, 26, .98), rgba(3, 15, 23, .96));
    border-bottom: 1px solid #1b3948;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .2)
}

.h5-nav {
    gap: 22px
}

.h5-logo {
    gap: 11px
}

.h5-logo .h5-pad {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffc62b, #ff8a00);
    color: #07131c;
    font-size: 25px;
    box-shadow: 0 0 0 1px rgba(255, 205, 55, .25), 0 7px 20px rgba(255, 145, 0, .22);
    transform: rotate(-2deg)
}

.h5-logo .h5-pad i {
    filter: none;
    transform: rotate(2deg)
}

.h5-logo b {
    font-size: 21px;
    letter-spacing: .25px;
    line-height: 1;
    font-weight: 900;
    background: linear-gradient(180deg, #fff, #e7eef2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.h5-search {
    width: 270px;
    height: 37px;
    border-color: #214354;
    border-radius: 9px;
    background: linear-gradient(135deg, #0d2633, #0a1e2a)
}

.h5-search>i {
    font-size: 13px
}

.h5-search input {
    font-size: 11px
}

.h5-search button {
    width: 43px;
    font-size: 13px;
    background: linear-gradient(135deg, #0c3343, #073044);
    color: #1ce6db
}

.h5-main-nav {
    gap: 24px
}

.h5-main-nav>a,
.h5-nav-drop>a {
    font-size: 11px;
    font-weight: 800;
    gap: 7px
}

.h5-main-nav>a i,
.h5-nav-drop>a i {
    font-size: 13px
}

.h5-main-nav>a.active {
    background: linear-gradient(90deg, #ffd43b, #ff9f0a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.h5-main-nav>a.active i {
    color: #ffc21d
}

.h5-main-nav>a.active:after {
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, #ffdc45, #ff8b00)
}

.h5-nav-drop>div {
    top: 55px;
    width: 195px;
    padding: 10px;
    border-color: #245064;
    background: linear-gradient(160deg, #0b2633, #061720);
    box-shadow: 0 20px 55px #000c
}

.h5-nav-drop>div a {
    font-size: 11px;
    padding: 9px 11px
}

.h5-social {
    gap: 14px;
    font-size: 16px;
    align-items: center
}

.h5-social a {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #aab9c3;
    transition: .2s
}

.h5-social a:hover {
    transform: translateY(-2px);
    background: #102b38;
    color: #fff
}

.h5-social a:nth-child(1) {
    color: #7289da
}

.h5-social a:nth-child(2) {
    color: #ff3040
}

.h5-social a:nth-child(3) {
    color: #8e9bad
}

.h5-social a:nth-child(4) {
    color: #e8edf0;
    font-size: 15px
}

.h5-pill {
    font-size: 8px;
    padding: 5px 11px;
    background: linear-gradient(135deg, #08794f, #07573e);
    border-color: #18b878
}

.h5-hero h3 {
    font-size: 13px !important
}

.h5-hero p {
    font-size: 10px
}

.h5-btn {
    font-size: 10px
}

.h5-benefits {
    font-size: 8px
}

.h5-feature-label {
    font-size: 8px
}

.h5-feature-info h2 {
    font-size: 15px
}

.h5-feature-info small {
    font-size: 8px
}

.h5-section-head h2 {
    font-size: 16px
}

.h5-section-head h2 span {
    font-size: 18px;
    background: linear-gradient(135deg, #ffd93f, #ff8500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.h5-section-head small {
    font-size: 9px
}

.h5-section-head>a {
    font-size: 8px
}

.h5-card-body {
    padding: 8px 9px 9px
}

.h5-card-body strong {
    font-size: 10px
}

.h5-card-body small {
    font-size: 8px
}

.h5-meta {
    font-size: 8px
}

.h5-play {
    width: 20px;
    height: 20px;
    font-size: 7px;
    box-shadow: 0 0 12px rgba(0, 229, 210, .12)
}

.h5-cat-grid a {
    height: 80px;
    background: linear-gradient(145deg, #0f4056, #071925);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04)
}

.h5-cat-grid b {
    font-size: 21px
}

.h5-cat-grid strong {
    font-size: 10px
}

.h5-cat-grid small {
    font-size: 7px
}

.h5-cat-grid a:nth-child(1) {
    background: linear-gradient(145deg, #a64a08, #311706)
}

.h5-cat-grid a:nth-child(2) {
    background: linear-gradient(145deg, #08704e, #061f18)
}

.h5-cat-grid a:nth-child(3) {
    background: linear-gradient(145deg, #07527a, #061d2b)
}

.h5-cat-grid a:nth-child(4) {
    background: linear-gradient(145deg, #6b0a91, #1c052d)
}

.h5-cat-grid a:nth-child(5) {
    background: linear-gradient(145deg, #806000, #261d00)
}

.h5-cat-grid a:nth-child(6) {
    background: linear-gradient(145deg, #007b73, #062923)
}

.h5-cat-grid a:nth-child(7) {
    background: linear-gradient(145deg, #97194c, #2c0718)
}

.h5-cat-grid a:nth-child(8) {
    background: linear-gradient(145deg, #163e98, #07183a)
}

.h5-cat-grid a:nth-child(9) {
    background: linear-gradient(145deg, #6330a1, #18092e)
}

.h5-quick h2 {
    font-size: 14px
}

.h5-quick p {
    font-size: 8px
}

.h5-quick-points b {
    font-size: 8px
}

.h5-quick-points small {
    font-size: 6px
}

.h5-quick-inner {
    background: linear-gradient(100deg, #362006 0%, #0b252d 48%, #073b34 100%);
    box-shadow: inset 0 0 34px rgba(255, 151, 0, .08), 0 8px 24px rgba(0, 0, 0, .16)
}

.h5-news h3 {
    font-size: 12px
}

.h5-news small {
    font-size: 7px
}

.h5-news input,
.h5-news button {
    font-size: 8px
}

.h5-footer {
    padding-top: 20px;
    background: linear-gradient(180deg, #04131c, #020b11)
}

.foot-logo {
    gap: 10px !important
}

.foot-logo .h5-pad {
    width: 35px;
    height: 35px;
    font-size: 22px;
    border-radius: 10px
}

.foot-logo b {
    font-size: 17px !important
}

.h5-footer h4 {
    font-size: 10px;
    margin-bottom: 7px;
    color: #f5f8fa
}

.h5-footer p,
.h5-footer a {
    font-size: 8px;
    line-height: 1.75
}

.h5-social.foot {
    display: flex !important;
    gap: 10px;
    font-size: 14px
}

.h5-social.foot a {
    width: 25px;
    height: 25px;
    display: grid;
    border: 1px solid #183746;
    background: #071923
}

.h5-copy,
.h5-copy a {
    font-size: 7px
}

@media(max-width:920px) {
    .h5-main-nav {
        gap: 15px
    }

    .h5-main-nav>a,
    .h5-nav-drop>a {
        font-size: 10px
    }

    .h5-logo b {
        font-size: 18px
    }

    .h5-logo .h5-pad {
        width: 35px;
        height: 35px;
        font-size: 22px
    }

    .h5-search {
        width: 220px
    }
}

@media(max-width:760px) {
    .h5-header {
        height: 64px
    }

    .h5-nav-drop>div {
        top: auto
    }

    .h5-main-nav>a,
    .h5-nav-drop>a {
        font-size: 12px
    }

    .h5-social {
        display: none
    }

    .h5-section-head h2 {
        font-size: 15px
    }
}

@media(max-width:480px) {
    .h5-logo b {
        font-size: 17px
    }

    .h5-logo .h5-pad {
        width: 34px;
        height: 34px;
        font-size: 21px
    }

    .h5-card-body strong {
        font-size: 10px
    }

    .h5-footer p,
    .h5-footer a {
        font-size: 8px
    }
}

/* ===== v5 reference SVG icons + footer/news alignment ===== */
.h5-logo .h5-pad {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transform: none !important;
    width: 38px !important;
    height: 29px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px
}

.h5-logo-svg {
    display: block;
    width: 38px;
    height: 29px;
    overflow: visible;
    filter: drop-shadow(0 0 6px rgba(255, 177, 10, .22))
}

.foot-logo {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important
}

.foot-logo .h5-pad {
    width: 27px !important;
    height: 20px !important;
    flex-basis: 27px !important
}

.foot-logo .h5-logo-svg {
    width: 27px;
    height: 20px
}

.foot-logo b {
    font-size: 13px !important;
    line-height: 20px !important
}

.h5-title-icon {
    display: inline-flex !important;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    color: #ffb20c !important;
    filter: drop-shadow(0 0 5px rgba(255, 157, 0, .28));
    flex: 0 0 22px
}

.h5-title-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor
}

.h5-title-icon-explore svg {
    fill: currentColor
}

.h5-section-head h2>span:has(.h5-title-icon) {
    display: inline-flex
}

.h5-section-head h2 span .h5-title-icon {
    font-size: initial;
    background: none;
    -webkit-text-fill-color: initial
}

.h5-news>.h5-container {
    max-width: 960px;
    width: calc(100% - 20px)
}

.h5-news-inner {
    min-height: 58px;
    padding-left: 18px;
    padding-right: 18px;
    border-color: #17616b;
    background: linear-gradient(90deg, #0a3440 0%, #0b2934 55%, #0a2f3a 100%);
    box-shadow: inset 0 0 25px rgba(0, 225, 203, .035)
}

.h5-news .mail {
    width: 38px;
    height: 38px;
    border-radius: 9px
}

.h5-news .mail svg {
    width: 25px;
    height: 20px
}

.h5-news h3 {
    font-size: 12px
}

.h5-news small {
    font-size: 7px
}

.h5-news form {
    width: 310px
}

.play-note {
    margin-left: 26px
}

@media(max-width:760px) {
    .h5-news>.h5-container {
        width: calc(100% - 24px)
    }

    .foot-logo {
        display: inline-flex !important
    }

    .h5-title-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px
    }
}

/* ===== v6 navbar: matched to supplied reference ===== */
.h5-header {
    height: 58px !important;
    background: linear-gradient(180deg, #07131d 0%, #05111a 100%) !important;
    border-top: 1px solid #18303e;
    border-bottom: 1px solid #26323a !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .28) !important
}

.h5-header:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #12bfb7 16%, transparent 35%, transparent 78%, #ff9b00 94%, transparent 100%);
    opacity: .55;
    pointer-events: none
}

.h5-header .h5-container {
    max-width: 1110px !important;
    width: calc(100% - 42px) !important
}

.h5-nav {
    gap: 20px !important;
    align-items: center !important
}

.h5-logo {
    gap: 10px !important;
    min-width: 168px
}

.h5-logo .h5-pad {
    width: 36px !important;
    height: 27px !important;
    flex-basis: 36px !important
}

.h5-logo-svg {
    width: 36px !important;
    height: 27px !important
}

.h5-logo b {
    font-size: 20px !important;
    letter-spacing: .35px !important;
    color: #f8f8f8 !important;
    background: none !important;
    -webkit-text-fill-color: #f8f8f8 !important
}

.h5-search {
    margin-left: 8px !important;
    width: 286px !important;
    height: 34px !important;
    border: 1px solid #1d3545 !important;
    border-radius: 8px !important;
    background: #102330 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2) !important
}

.h5-search>i {
    font-size: 12px !important;
    margin-left: 13px !important;
    color: #91a4b1 !important
}

.h5-search input {
    font-size: 10px !important;
    padding: 0 10px !important
}

.h5-search button {
    width: 40px !important;
    background: #0b2c3b !important;
    color: #16cbd1 !important;
    border-left: 1px solid #173c4c !important;
    font-size: 12px !important
}

.h5-main-nav {
    margin-left: auto !important;
    gap: 28px !important;
    height: 100% !important
}

.h5-main-nav>a,
.h5-nav-drop>a {
    font-size: 10px !important;
    font-weight: 700 !important;
    gap: 7px !important;
    color: #f0f3f5 !important;
    padding: 0 !important
}

.h5-main-nav>a i,
.h5-nav-drop>a i {
    font-size: 13px !important
}

.h5-main-nav>a.active {
    color: #ffb410 !important;
    background: none !important;
    -webkit-text-fill-color: #ffb410 !important
}

.h5-main-nav>a.active:after {
    left: -2px !important;
    right: -2px !important;
    bottom: 7px !important;
    height: 2px !important;
    background: linear-gradient(90deg, #ffca22, #ff8b00) !important;
    box-shadow: 0 0 9px rgba(255, 164, 0, .7) !important
}

.h5-main-nav .fa-home {
    color: #ffb410 !important
}

.h5-main-nav .fa-fire {
    color: #ff7513 !important
}

.h5-nav-drop>div {
    top: 54px !important
}

.h5-social {
    gap: 15px !important;
    font-size: 13px !important;
    margin-left: 12px !important
}

.h5-social a {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    color: #7f8d9f !important
}

.h5-social a:nth-child(1) {
    color: #65728a !important
}

.h5-social a:nth-child(2) {
    color: #ff2c35 !important
}

.h5-social a:nth-child(3) {
    color: #7789a9 !important
}

.h5-social a:nth-child(4) {
    color: #aeb7c0 !important;
    font-size: 13px !important
}

.h5-social a:hover {
    background: none !important;
    transform: translateY(-1px) !important;
    color: #fff !important
}

@media(max-width:920px) {
    .h5-header .h5-container {
        width: calc(100% - 24px) !important
    }

    .h5-main-nav {
        gap: 16px !important
    }

    .h5-search {
        width: 220px !important
    }

    .h5-logo {
        min-width: auto
    }

    .h5-social {
        display: none !important
    }
}

@media(max-width:760px) {
    .h5-header {
        height: 58px !important
    }

    .h5-main-nav {
        top: 58px !important
    }

    .h5-search {
        flex: 1 !important
    }

    .h5-logo b {
        font-size: 18px !important
    }
}

@media(max-width:480px) {
    .h5-header {
        height: auto !important
    }

    .h5-header .h5-container {
        width: calc(100% - 20px) !important
    }

    .h5-search {
        width: 100% !important;
        margin-left: 0 !important
    }

    .h5-logo .h5-pad {
        width: 33px !important;
        height: 25px !important;
        flex-basis: 33px !important
    }

    .h5-logo-svg {
        width: 33px !important;
        height: 25px !important
    }
}

/* ========================================================================
   V7 — 100% browser scale / full-site layout normalization
   Makes the 100% Chrome view visually match the previously preferred 125%
   presentation and gives every legacy page the same H5 Games design system.
   ======================================================================== */
:root {
    --site-max: 1280px;
    --site-gutter: 22px;
}

body {
    font-size: 16px !important;
}

.h5-container,
.homeSec2>.container,
.playPage .container,
.catHome .container {
    width: calc(100% - (var(--site-gutter) * 2)) !important;
    max-width: var(--site-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Shared header and content sizing */
.h5-header {
    height: 64px !important;
}

.h5-nav {
    gap: 22px !important;
}

.h5-logo b {
    font-size: 21px !important;
}

.h5-logo .h5-pad {
    width: 42px !important;
    height: 34px !important;
}

.h5-logo-svg {
    width: 42px !important;
    height: 34px !important;
}

.h5-search {
    width: 300px !important;
    height: 36px !important;
}

.h5-search input {
    font-size: 11px !important;
}

.h5-main-nav {
    gap: 25px !important;
}

.h5-main-nav>a,
.h5-nav-drop>a {
    font-size: 11px !important;
}

.h5-social {
    gap: 15px !important;
    font-size: 13px !important;
}

/* Home page: give the games and their labels room to read comfortably */
.h5-hero {
    height: 390px !important;
}

.h5-hero-copy h1 {
    font-size: 48px !important;
}

.h5-hero h3 {
    font-size: 18px !important;
}

.h5-hero p {
    font-size: 14px !important;
}

.h5-btn {
    font-size: 13px !important;
    min-height: 44px;
}

.h5-benefits {
    font-size: 11px !important;
}

.h5-featured-stage {
    height: 220px !important;
}

.h5-feature-info h2 {
    font-size: 20px !important;
}

.h5-feature-info small {
    font-size: 11px !important;
}

.h5-section {
    padding-top: 28px !important;
}

.h5-section-head h2 {
    font-size: 21px !important;
}

.h5-section-head small {
    font-size: 12px !important;
}

.h5-section-head>a {
    font-size: 11px !important;
}

.h5-card-grid {
    gap: 14px !important;
}

.h5-thumb-wrap {
    height: 138px !important;
}

.h5-card-body {
    padding: 10px 11px 11px !important;
}

.h5-card-body strong {
    font-size: 14px !important;
}

.h5-card-body small,
.h5-meta {
    font-size: 10px !important;
}

.h5-cat-grid a {
    height: 98px !important;
}

.h5-cat-grid strong {
    font-size: 12px !important;
}

.h5-cat-grid small {
    font-size: 9px !important;
}

.h5-news h3 {
    font-size: 14px !important;
}

.h5-news small {
    font-size: 9px !important;
}

.h5-footer h4 {
    font-size: 13px !important;
}

.h5-footer p,
.h5-footer a {
    font-size: 11px !important;
}

.h5-copy,
.h5-copy a {
    font-size: 9px !important;
}

/* Shared inner-page shell */
.homeSec2,
.playPage {
    min-height: calc(100vh - 58px);
    padding: 34px 0 48px !important;
    background:
        radial-gradient(circle at 10% 0%, rgba(0, 225, 202, .07), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(255, 174, 0, .06), transparent 24%),
        #04121b !important;
}

.heading1Flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 0 22px !important;
    padding-bottom: 14px;
    border-bottom: 1px solid #163747;
}

.heading1 {
    margin: 0 !important;
    color: #f8fbff !important;
    font-size: 25px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: -.4px;
}

.heading1 img {
    width: 28px !important;
    height: 28px;
    object-fit: contain;
}

.cfirst {
    color: #ffb80f !important;
}

.csecond {
    color: #18d8c1 !important;
}

.cgray {
    color: #91a7b4 !important;
}

.cwhite {
    color: #fff !important;
}

/* Category, subject and search result grids */
.homeSec2 .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -7px;
    margin-right: -7px;
}

.homeSec2 .row>.col-md-2 {
    width: 16.666667% !important;
    padding: 7px !important;
    float: none !important;
}

.gameBox2 {
    position: relative !important;
    display: block !important;
    height: 176px !important;
    overflow: hidden !important;
    border: 1px solid #1d4152 !important;
    border-radius: 10px !important;
    background: #081b26 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.gameBox2:hover {
    transform: translateY(-4px);
    border-color: #12d9c4 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28), 0 0 18px rgba(0, 217, 196, .08);
}

.gameBox2Img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.gameBox2Inner {
    position: absolute !important;
    inset: auto 0 0 !important;
    height: 68px;
    background: linear-gradient(transparent, rgba(2, 12, 18, .97));
}

.gameBox2Title {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 10px !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pagination */
.pagination {
    margin: 28px 0 0 !important;
}

.pagination>li>a,
.pagination>li>span {
    color: #c7d7df !important;
    background: #081c27 !important;
    border-color: #1d4152 !important;
}

.pagination>.active>a,
.pagination>.active>span {
    color: #07131c !important;
    background: #ffb80f !important;
    border-color: #ffb80f !important;
}

/* Contact + generic CMS pages */
.contact-form-section,
.homeSec2 .container>p,
.homeSec2 .container>article {
    color: #b7c8d0;
    font-size: 14px;
    line-height: 1.8;
}

.contact-form-wrap {
    padding: 26px !important;
    border: 1px solid #1c4050;
    border-radius: 14px;
    background: linear-gradient(145deg, #09202c, #06151e);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
}

.contact-form .form-control,
.urlTxt,
.embedTxt {
    min-height: 44px;
    color: #f5f9fb !important;
    background: #061721 !important;
    border: 1px solid #214758 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.contact-form textarea.form-control {
    min-height: 145px;
    resize: vertical;
}

.contact-form .form-control:focus,
.urlTxt:focus {
    border-color: #12d9c4 !important;
    box-shadow: 0 0 0 3px rgba(18, 217, 196, .08) !important;
}

.contact-form .btn,
.btn1,
.btn2 {
    border: 0 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #ffd32a, #ff9f00) !important;
    color: #07131c !important;
    font-weight: 800 !important;
}

.contact-form .btn {
    padding: 11px 24px;
}

/* Play page */
.catHome {
    margin-bottom: 22px;
}

.popSlider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: thin;
}

.popCont {
    flex: 0 0 150px;
}

.homeCatBox {
    display: block;
    overflow: hidden;
    border: 1px solid #1e4150;
    border-radius: 9px;
    background: #081c27;
}

.homeCatBox img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    display: block;
}

.homeCatBox p {
    margin: 0;
    padding: 8px 9px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iframeArea {
    padding-right: 16px !important;
}

.game-frame {
    display: block;
    width: 100% !important;
    min-height: 600px !important;
    border: 1px solid #204657 !important;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

.block1,
.playShare,
.underiframe {
    color: #c1d0d7;
    background: #081c27 !important;
    border: 1px solid #1c4050;
    border-radius: 10px !important;
}

.block1 {
    padding: 18px !important;
}

.playShare {
    padding: 12px 14px !important;
    margin-bottom: 14px;
}

.smallHead {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800;
}

.playShareBtn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-right: 6px;
    border-radius: 7px;
    color: #fff !important;
}

.playShareBtn.fb {
    background: #1877f2;
}

.playShareBtn.tw {
    background: #111;
}

.playShareBtn.whats {
    background: #20bd5a;
}

/* CMS content typography */
.homeSec2 .container h1 {
    font-size: 30px;
    color: #fff;
}

.homeSec2 .container h2 {
    color: #fff;
}

.homeSec2 .container h3 {
    color: #fff;
}

.homeSec2 .container p,
.homeSec2 .container li {
    color: #aebfc8;
    line-height: 1.75;
}

.homeSec2 .container a {
    color: #2ee3d0;
}

.homeSec2 .container img {
    max-width: 100%;
    height: auto;
}

.homeSec2 table {
    width: 100%;
    color: #b9cad2;
    background: #071a25;
}

.homeSec2 table th,
.homeSec2 table td {
    padding: 10px;
    border: 1px solid #1d3d4c;
}

@media (min-width: 1440px) {
    :root {
        --site-max: 1360px;
    }

    .h5-thumb-wrap {
        height: 148px !important;
    }
}

@media (max-width: 1180px) {
    :root {
        --site-gutter: 18px;
    }

    .h5-search {
        width: 250px !important;
    }

    .h5-main-nav {
        gap: 16px !important;
    }
}

@media (max-width: 992px) {
    .h5-header {
        height: 64px !important;
    }

    .h5-hero {
        height: 330px !important;
    }

    .h5-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .homeSec2 .row>.col-md-2 {
        width: 33.333333% !important;
    }

    .iframeArea {
        padding-right: 15px !important;
    }

    .game-frame {
        min-height: 500px !important;
    }
}

@media (max-width: 760px) {
    :root {
        --site-gutter: 13px;
    }

    .h5-header {
        height: 60px !important;
    }

    .h5-logo b {
        font-size: 18px !important;
    }

    .h5-search {
        width: auto !important;
        flex: 1;
    }

    .h5-hero {
        height: auto !important;
        min-height: 470px;
    }

    .h5-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .h5-thumb-wrap {
        height: 120px !important;
    }

    .h5-section-head>div {
        gap: 8px !important;
        align-items: center !important;
    }

    .h5-section-head h2 {
        font-size: 17px !important;
    }

    .h5-section-head small {
        display: none;
    }

    .homeSec2,
    .playPage {
        padding-top: 24px !important;
    }

    .heading1 {
        font-size: 21px !important;
    }

    .homeSec2 .row>.col-md-2 {
        width: 50% !important;
    }

    .gameBox2 {
        height: 170px !important;
    }

    .game-frame {
        min-height: 420px !important;
    }
}

@media (max-width: 430px) {
    .h5-search {
        display: none !important;
    }

    .h5-card-grid {
        gap: 10px !important;
    }

    .h5-thumb-wrap {
        height: 105px !important;
    }

    .homeSec2 .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .homeSec2 .row>.col-md-2 {
        padding: 5px !important;
    }

    .gameBox2 {
        height: 145px !important;
    }

    .gameBox2Title {
        font-size: 11px !important;
    }

    .game-frame {
        min-height: 330px !important;
    }
}
/* =========================================================
   H5 GAMES — 100% ZOOM / ALL-PAGES NORMALIZATION (2026-09-26)
   ========================================================= */
:root { --h5-page-width: 1160px; }
body { font-size: 15px !important; }
.h5-container { width: calc(100% - 32px) !important; max-width: var(--h5-page-width) !important; }
.h5-header { height: 58px !important; }
.h5-nav { gap: 22px !important; }
.h5-logo b { font-size: 22px !important; }
.h5-logo-svg { width: 39px !important; height: 29px !important; }
.h5-search { width: 300px !important; height: 38px !important; }
.h5-search input { font-size: 12px !important; }
.h5-main-nav { gap: 26px !important; }
.h5-main-nav > a, .h5-nav-drop > a { font-size: 12px !important; }
.h5-main-nav > a:hover, .h5-nav-drop > a:hover, .h5-main-nav > a.active, .h5-nav-drop > a.active { color: var(--yellow) !important; }
.h5-main-nav > a:after, .h5-nav-drop > a:after { content:""; position:absolute; left:0; right:0; bottom:5px; height:2px; transform:scaleX(0); background:linear-gradient(90deg,var(--yellow),var(--orange)); transition:transform .2s ease; transform-origin:center; }
.h5-main-nav > a:hover:after, .h5-nav-drop > a:hover:after, .h5-main-nav > a.active:after, .h5-nav-drop > a.active:after { transform:scaleX(1); }
.h5-social { font-size: 14px !important; gap: 15px !important; }
.h5-hero { height: 340px !important; }
.h5-hero h1 { font-size: 45px !important; }
.h5-hero p { font-size: 14px !important; line-height:1.55 !important; }
.h5-section-title h2 { font-size: 21px !important; }
.h5-game-title, .h5-card-title { font-size: 13px !important; }
.h5-footer { font-size: 12px !important; }

/* Shared inner-page system */
.h5-inner-page { min-height: 65vh; background: radial-gradient(circle at 12% 0%, rgba(0,217,199,.08), transparent 28%), #04121b; }
.h5-inner-hero { padding: 48px 0 40px; border-bottom:1px solid #163746; background:linear-gradient(120deg,rgba(8,217,199,.08),rgba(255,184,15,.05) 55%,transparent); }
.h5-inner-hero .h5-kicker { display:inline-flex; padding:6px 11px; border:1px solid #168f75; border-radius:999px; color:#42e7b0; background:#073a31; font-size:11px; font-weight:800; }
.h5-inner-hero h1 { margin:12px 0 7px; font-size:34px; line-height:1.15; font-weight:900; color:#fff; }
.h5-inner-hero h1 i { margin-right:10px; color:var(--yellow); }
.h5-inner-hero p { margin:0; color:var(--muted); font-size:14px; }
.h5-inner-content { padding:32px 0 48px; }
.h5-page-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:18px; }
.h5-page-heading h2 { margin:0; font-size:24px; font-weight:900; }
.h5-page-heading p { margin:5px 0 0; color:var(--muted); font-size:13px; }
.h5-list-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:16px; }
.h5-list-card { display:block; overflow:hidden; border:1px solid #1a3d4d; border-radius:9px; background:linear-gradient(180deg,#0a1e29,#071822); transition:transform .2s,border-color .2s,box-shadow .2s; }
.h5-list-card:hover { transform:translateY(-4px); border-color:#12c8ba; box-shadow:0 12px 30px rgba(0,0,0,.28),0 0 20px rgba(8,217,199,.08); color:#fff; }
.h5-list-thumb { position:relative; display:block; aspect-ratio:1.35/1; overflow:hidden; background:#0b1c26; }
.h5-list-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .25s; }
.h5-list-card:hover .h5-list-thumb img { transform:scale(1.045); }
.h5-card-play { position:absolute; right:8px; bottom:8px; width:27px; height:27px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.8); border-radius:50%; background:#06131bcc; color:#fff; font-size:9px; }
.h5-list-body { display:block; padding:11px; }
.h5-list-body strong { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:13px; color:#fff; }
.h5-list-body small { display:block; margin-top:4px; color:#75a2b5; font-size:10px; }
.h5-list-meta { display:flex; justify-content:space-between; margin-top:9px; color:#829eac; font-size:10px; }
.h5-list-meta b { color:#ffc21c; }
.h5-empty { grid-column:1/-1; padding:45px; text-align:center; border:1px dashed #285063; border-radius:12px; color:var(--muted); }
.h5-pagination { margin-top:28px; text-align:center; }
.h5-pagination .pagination { display:inline-flex; }
.h5-pagination .pagination > li > a, .h5-pagination .pagination > li > span { background:#091c27; border-color:#244655; color:#dbe9ef; }
.h5-pagination .pagination > .active > a { background:#ffb80f; border-color:#ffb80f; color:#07131c; }
.h5-content-card { padding:30px; border:1px solid #1a3d4d; border-radius:14px; background:linear-gradient(180deg,#081c27,#061720); color:#c6d5dc; font-size:14px; line-height:1.8; }
.h5-content-card h1,.h5-content-card h2,.h5-content-card h3,.h5-content-card h4 { color:#fff; font-weight:800; }
.h5-content-card a { color:#20d9c4; }

/* Legacy contact + play pages inherit the same visual language */
.homeSec2, .playPage { background:#04121b !important; color:#fff; }
.homeSec2 > .container, .playPage > .container, .catHome > .container { width:calc(100% - 32px) !important; max-width:var(--h5-page-width) !important; }
.homeSec2 { padding:36px 0 50px !important; min-height:65vh; }
.heading1Flex { margin-bottom:20px !important; }
.heading1 { font-size:27px !important; font-weight:900 !important; color:#fff !important; }
.contact-form-wrap, .playShare, .block1 { background:#081c27 !important; border:1px solid #1a3d4d !important; border-radius:12px !important; padding:22px !important; }
.contact-form .form-control, .urlTxt, .embedTxt { height:auto; min-height:44px; background:#06151e !important; border:1px solid #244655 !important; border-radius:8px !important; color:#fff !important; font-size:14px !important; }
.contact-form textarea.form-control { min-height:150px; }
.contact-form .btn { padding:11px 22px; border:0; border-radius:8px; background:linear-gradient(90deg,#ffb80f,#ff8a00); color:#07131c; font-weight:800; }
.game-frame { width:100% !important; min-height:620px; border:1px solid #1a3d4d !important; border-radius:12px; background:#000; }

@media (max-width: 1100px) {
  .h5-list-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .h5-main-nav { gap:14px !important; }
  .h5-search { width:240px !important; }
}
@media (max-width: 820px) {
  .h5-container,.homeSec2>.container,.playPage>.container,.catHome>.container { width:calc(100% - 24px) !important; }
  .h5-list-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
  .h5-inner-hero h1 { font-size:29px; }
  .h5-header { height:58px !important; }
}
@media (max-width: 560px) {
  body { font-size:14px !important; }
  .h5-list-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .h5-inner-hero { padding:32px 0; }
  .h5-inner-hero h1 { font-size:25px; }
  .h5-content-card { padding:20px; }
  .game-frame { min-height:430px; }
}

/* =========================================================
   H5 GAMES — MODERN RESPONSIVE PLAY PAGE
   ========================================================= */
.h5-play-page{min-height:70vh;background:#04121b;color:#fff}.h5-play-hero{padding:22px 0 30px;background:radial-gradient(circle at 50% -20%,rgba(0,217,199,.13),transparent 38%),linear-gradient(180deg,#061923,#04121b)}.h5-play-breadcrumb{display:flex;align-items:center;gap:9px;margin:0 0 15px;color:#6f94a5;font-size:12px}.h5-play-breadcrumb a{color:#8eb1c0}.h5-play-breadcrumb a:hover{color:#ffbd18}.h5-play-breadcrumb span{max-width:380px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d7e5eb}.h5-player-shell{overflow:hidden;border:1px solid #1b4050;border-radius:14px;background:#071923;box-shadow:0 20px 55px rgba(0,0,0,.35)}.h5-player-head{min-height:68px;padding:11px 17px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #193746;background:linear-gradient(90deg,#0a202b,#071923)}.h5-player-head>div{display:flex;align-items:center;gap:11px;min-width:0}.h5-player-head h1{margin:0 0 3px;font-size:19px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.h5-player-head p{margin:0;color:#7295a5;font-size:11px}.h5-live-dot{width:10px;height:10px;border-radius:50%;background:#15d4bd;box-shadow:0 0 0 5px rgba(21,212,189,.09),0 0 15px rgba(21,212,189,.65);flex:0 0 auto}.h5-fullscreen-btn{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #315364;border-radius:7px;background:#0b2430;color:#d9e8ed;font-size:11px;font-weight:800;transition:.2s}.h5-fullscreen-btn:hover{border-color:#ffb713;color:#ffbf1e;transform:translateY(-1px)}.h5-frame-wrap{position:relative;background:#000}.h5-play-page .game-frame{display:block;width:100%!important;height:min(70vh,680px)!important;min-height:560px!important;border:0!important;border-radius:0!important;background:#000}.h5-player-actions{min-height:58px;padding:10px 15px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #193746}.h5-player-badges,.h5-share-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.h5-player-badges span{padding:6px 9px;border:1px solid #194050;border-radius:999px;background:#09212c;color:#8fb0be;font-size:10px}.h5-player-badges i{margin-right:4px;color:#18d7c0}.h5-share-actions button,.h5-share-actions a{height:32px;min-width:32px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #284a59;border-radius:7px;background:#0a202b;color:#c9dce4;font-size:11px}.h5-share-actions button:hover,.h5-share-actions a:hover{border-color:#ffb813;color:#ffbd18}.h5-play-content{padding:6px 0 55px}.h5-game-info-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,.75fr);gap:18px;margin-top:22px}.h5-game-info-card,.h5-game-side-card,.h5-instruction-card{border:1px solid #193d4d;border-radius:12px;background:linear-gradient(180deg,#081e29,#061720);box-shadow:0 12px 30px rgba(0,0,0,.16)}.h5-game-info-card,.h5-instruction-card{padding:22px}.h5-info-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px}.h5-info-heading h2{margin:0 0 3px;font-size:19px;font-weight:900}.h5-info-heading p{margin:0;color:#7398a8;font-size:11px}.h5-info-icon{width:38px;height:38px;display:grid;place-items:center;border:1px solid #147d73;border-radius:9px;background:linear-gradient(135deg,#0a594e,#07362f);color:#35e0c7;font-size:15px}.h5-info-icon.orange{border-color:#865c0d;background:linear-gradient(135deg,#62420b,#302207);color:#ffc526}.h5-rich-text{color:#a9c0ca;font-size:13px;line-height:1.8}.h5-rich-text p:last-child{margin-bottom:0}.h5-game-side-card{padding:19px}.h5-game-side-card h3{margin:0 0 13px;padding-bottom:12px;border-bottom:1px solid #183846;font-size:15px;font-weight:900}.h5-game-side-card h3 i{margin-right:7px;color:#ffbc16}.h5-game-side-card>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid rgba(34,70,84,.5);font-size:11px}.h5-game-side-card>div:last-child{border-bottom:0}.h5-game-side-card span{color:#769aaa}.h5-game-side-card b,.h5-game-side-card a{color:#e7f0f4;font-weight:800}.h5-game-side-card a:hover{color:#1bd8c1}.h5-game-side-card .free{color:#2bdda5}.h5-instruction-card{margin-top:18px}.h5-related-section{margin-top:32px;padding-top:24px;border-top:1px solid #143440}.h5-related-head{margin-bottom:16px}.h5-related-head h2{display:flex;align-items:center;gap:9px}.h5-related-icon{width:31px;height:31px;display:inline-grid;place-items:center;border:1px solid #7c590c;border-radius:8px;background:linear-gradient(135deg,#5d420a,#2b2008);color:#ffc222;font-size:13px}.h5-related-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.h5-play-empty{margin:60px 0;padding:65px 20px;text-align:center;border:1px solid #1b4050;border-radius:14px;background:#071923}.h5-play-empty i{font-size:44px;color:#ffbd18}.h5-play-empty h1{font-size:26px}.h5-play-empty p{color:#789cab}.h5-play-empty a{display:inline-block;margin-top:10px;padding:10px 16px;border-radius:8px;background:linear-gradient(90deg,#ffc523,#ff8b00);color:#07131c;font-weight:900}.h5-embed-modal{background:#081c27!important;color:#d7e5eb;border:1px solid #244957}.h5-embed-modal .modal-header,.h5-embed-modal .modal-footer{border-color:#244957}.h5-embed-modal .close{color:#fff;opacity:.8}.h5-embed-modal textarea{min-height:120px!important}
@media(max-width:1100px){.h5-related-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.h5-play-page .game-frame{height:62vh!important;min-height:500px!important}}
@media(max-width:820px){.h5-game-info-grid{grid-template-columns:1fr}.h5-related-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.h5-play-page .game-frame{height:58vh!important;min-height:430px!important}.h5-player-badges span:nth-child(3){display:none}}
@media(max-width:560px){.h5-play-hero{padding-top:13px}.h5-play-breadcrumb{font-size:10px}.h5-player-shell{border-radius:10px}.h5-player-head{min-height:58px;padding:9px 11px}.h5-player-head h1{font-size:15px}.h5-fullscreen-btn{padding:8px}.h5-fullscreen-btn span{display:none}.h5-play-page .game-frame{height:58vh!important;min-height:360px!important}.h5-player-actions{align-items:flex-start;flex-direction:column}.h5-player-badges span{font-size:9px}.h5-game-info-card,.h5-instruction-card{padding:16px}.h5-info-heading h2{font-size:17px}.h5-related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.h5-related-head{align-items:flex-end}.h5-related-head h2{font-size:18px!important}.h5-related-head>a{font-size:10px!important}}

/* Client revision: 18-game home grids, header tabs, clickable hero, embed copy */
.h5-home .h5-card-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.h5-featured[data-play-url]{cursor:pointer}
.h5-feature-play{width:44px!important;height:44px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:linear-gradient(135deg,#ffd83d,#ff8a00)!important;color:#07131c!important;box-shadow:0 8px 24px rgba(255,166,0,.3);transition:.2s}
.h5-feature-play:hover{transform:scale(1.08);box-shadow:0 10px 30px rgba(255,166,0,.48)}
.h5-feature-play i{font-size:14px;margin-left:2px}
.h5-all-categories{margin-top:8px}
.h5-copy-embed{margin-top:12px;padding:10px 15px;border:0;border-radius:8px;background:linear-gradient(90deg,#ffc523,#ff8b00);color:#07131c;font-weight:900}
.h5-copy-status{display:inline-block;margin-left:10px;color:#27dfb8;font-weight:700}
@media(max-width:1100px){.h5-home .h5-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:820px){.h5-home .h5-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.h5-home .h5-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.h5-copy-status{display:block;margin:8px 0 0}}

/* =========================================================
   FINAL MOBILE RESPONSIVE FIX — NAV / HERO / FOOTER
   ========================================================= */
@media (max-width: 900px) {
  .h5-header{height:auto!important;min-height:62px;position:relative;z-index:1000}
  .h5-nav{min-height:62px!important;height:auto!important;display:grid!important;grid-template-columns:auto 1fr auto;align-items:center;gap:10px!important;padding:8px 0!important;position:relative}
  .h5-logo{min-width:max-content}.h5-logo b{font-size:18px!important}.h5-logo .h5-pad{width:34px!important}.h5-logo-svg{width:34px!important;height:auto!important}
  .h5-search{width:100%!important;max-width:none!important;min-width:0!important;height:38px!important;margin:0!important}
  .h5-menu{display:flex!important;align-items:center;justify-content:center;width:40px;height:38px;border:1px solid #214352;border-radius:7px;background:#0a202b;color:#fff;font-size:18px;cursor:pointer}
  .h5-main-nav{display:none!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;width:100%!important;height:auto!important;padding:10px!important;background:#061722!important;border:1px solid #173846!important;border-radius:0 0 10px 10px!important;box-shadow:0 18px 35px rgba(0,0,0,.45)!important;z-index:9999!important;gap:2px!important}
  .h5-main-nav.open{display:flex!important;flex-direction:column!important}
  .h5-main-nav>a,.h5-nav-drop>a{display:flex!important;align-items:center!important;width:100%!important;min-height:44px!important;height:auto!important;padding:10px 12px!important;border-radius:7px!important;font-size:13px!important}
  .h5-main-nav>a.active:after,.h5-nav-drop>a.active:after{display:none!important}
  .h5-nav-drop{width:100%!important}
  .h5-nav-drop>div{position:static!important;display:none!important;width:100%!important;max-height:260px;overflow:auto;margin-top:2px!important;padding:6px!important;border-radius:7px!important;box-shadow:none!important}
  .h5-nav-drop:hover>div,.h5-nav-drop:focus-within>div{display:block!important}

  .h5-hero{height:auto!important;min-height:0!important}
  .h5-hero-grid{height:auto!important;grid-template-columns:1fr!important;gap:20px!important;padding:30px 0 38px!important}
  .h5-hero-copy{width:100%!important;max-width:100%!important;justify-self:stretch!important}
  .h5-hero h1{font-size:42px!important;line-height:1!important}.h5-hero h3{font-size:16px!important}.h5-hero p{max-width:580px!important;font-size:12px!important;line-height:1.65!important}
  .h5-btn{height:42px!important;font-size:12px!important}.h5-benefits{font-size:10px!important;gap:14px!important;flex-wrap:wrap!important}
  .h5-featured-stage{width:100%!important;height:auto!important;aspect-ratio:16/8!important;min-height:210px!important}
  .h5-featured{transform:none!important}.h5-featured.active{transform:none!important}.h5-feature-info h2{font-size:17px!important}.h5-feature-info small{font-size:10px!important}

  .h5-footer{padding:32px 0 0!important}
  .h5-footer-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px 24px!important}
  .h5-footer-grid>div{min-width:0!important}.h5-footer h4{font-size:15px!important;margin-bottom:12px!important}.h5-footer p,.h5-footer a{font-size:12px!important;line-height:1.7!important}
  .h5-two-col{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:2px 14px!important}
  .h5-social.foot{display:flex!important;gap:8px!important;flex-wrap:wrap!important}
  .h5-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important;padding:16px 0!important}.h5-copy span:last-child{display:flex!important;gap:8px 14px!important;flex-wrap:wrap!important}.h5-copy a,.h5-copy span{font-size:10px!important}
}
@media (max-width: 600px) {
  .h5-container{width:calc(100% - 24px)!important}
  .h5-nav{grid-template-columns:1fr auto!important}.h5-logo{grid-column:1}.h5-menu{grid-column:2}.h5-search{grid-column:1/-1;grid-row:2;height:40px!important}
  .h5-hero-grid{padding:24px 0 30px!important}.h5-hero h1{font-size:36px!important}.h5-hero h3{font-size:15px!important}.h5-hero p{font-size:12px!important}.h5-actions{gap:8px!important;flex-wrap:wrap!important}.h5-btn{padding:0 15px!important;flex:1 1 145px!important}.h5-benefits{gap:8px 12px!important}
  .h5-featured-stage{aspect-ratio:16/10!important;min-height:190px!important}.h5-feature-label{font-size:9px!important}.h5-feature-info{left:10px!important;right:10px!important;bottom:9px!important}.h5-feature-info h2{font-size:15px!important}.h5-feature-info>a{width:36px!important;height:36px!important}
  .h5-hero-lines:before,.h5-hero-lines:after{opacity:.55}
  .h5-footer-grid{grid-template-columns:1fr!important;gap:24px!important}.h5-footer-brand{padding-bottom:4px}.h5-footer .foot-logo b{font-size:21px!important}.h5-footer .foot-logo .h5-logo-svg{width:40px!important}.h5-two-col{grid-template-columns:repeat(2,minmax(0,1fr))!important}.h5-footer-contact .contact{display:flex!important;align-items:flex-start!important;gap:8px!important}.h5-copy{border-top:1px solid #173440!important}.h5-copy span:last-child{width:100%!important}
}
@media (max-width: 380px) {
  .h5-logo b{font-size:16px!important}.h5-hero h1{font-size:32px!important}.h5-featured-stage{min-height:170px!important}.h5-two-col{grid-template-columns:1fr!important}
}
