:root {
    --bg: #020818;
    --bg-deep: #01030b;
    --panel: rgba(6, 22, 61, 0.84);
    --panel-strong: rgba(8, 39, 92, 0.94);
    --panel-soft: rgba(4, 17, 47, 0.72);
    --border: rgba(38, 190, 255, 0.42);
    --border-hot: rgba(255, 54, 93, 0.58);
    --text: #f5fbff;
    --muted: #a9c4e6;
    --cyan: #18d8ff;
    --blue: #116cf7;
    --red: #fb1745;
    --gold: #ffd36b;
    --green: #27da76;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
    --radius: 22px;
    --max: 1180px;
    --header-height: 74px;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-padding-top: calc(var(--header-height) + 14px);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    padding-top: var(--header-height);
    color: var(--text);
    font-family: "Kanit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    line-height: 1.65;
    background:
        radial-gradient(circle at 50% 0, rgba(18, 96, 211, 0.4), transparent 34rem),
        linear-gradient(180deg, rgba(2, 8, 24, 0.68), rgba(2, 8, 24, 0.96)),
        url("../assets/911Faz_BG.webp") center top / cover fixed,
        var(--bg);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 23, 69, 0.12), transparent 18%, transparent 82%, rgba(24, 216, 255, 0.12)),
        radial-gradient(circle at 50% 45%, rgba(24, 216, 255, 0.12), transparent 24rem);
}

body::after {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(105deg, transparent 26%, rgba(24, 216, 255, 0.12) 44%, rgba(255, 54, 93, 0.1) 50%, transparent 64%),
        radial-gradient(circle at 70% 20%, rgba(24, 216, 255, 0.14), transparent 15rem);
    mix-blend-mode: screen;
    animation: ambientSweep 12s ease-in-out infinite;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

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

button,
input {
    font: inherit;
}

strong,
b {
    font-weight: 500;
}

@keyframes ambientSweep {
    0% {
        transform: translate3d(-38%, -8%, 0) rotate(10deg);
        opacity: 0;
    }

    18%,
    58% {
        opacity: 0.5;
    }

    100% {
        transform: translate3d(38%, 8%, 0) rotate(10deg);
        opacity: 0;
    }
}

@keyframes shineSweep {
    0% {
        transform: translateX(-150%) skewX(-22deg);
    }

    42%,
    100% {
        transform: translateX(180%) skewX(-22deg);
    }
}

@keyframes logoGlow {
    0%,
    100% {
        filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 8px rgba(24, 216, 255, 0.22));
    }

    50% {
        filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(24, 216, 255, 0.5));
    }
}

@keyframes cardFloat {
    0%,
    100% {
        transform: rotate(8deg) translate3d(0, 0, 0);
    }

    50% {
        transform: rotate(6deg) translate3d(0, -9px, 0);
    }
}

@keyframes panelGlow {
    0%,
    100% {
        box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 rgba(24, 216, 255, 0);
    }

    50% {
        box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 22px rgba(24, 216, 255, 0.14);
    }
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 2000;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: #00133c;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

.btn {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.72rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.1;
    text-align: center;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.btn::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -70%;
    width: 45%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    animation: shineSweep 4.8s ease-in-out infinite;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(180deg, #ff4967 0%, #e40731 48%, #98001e 100%);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 12px 30px rgba(251, 23, 69, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-ghost,
.btn-glass {
    background: linear-gradient(180deg, rgba(28, 126, 255, 0.32), rgba(4, 26, 75, 0.62));
    border-color: rgba(73, 202, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-large {
    min-height: 52px;
    padding-inline: 1.55rem;
    font-size: 1.04rem;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 900;
    background: rgba(1, 6, 20, 0.72);
    border-bottom: 1px solid rgba(28, 159, 255, 0.28);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(24, 216, 255, 0.8), rgba(255, 54, 93, 0.55), transparent);
    transform: translateX(-100%);
    animation: shineSweep 7s ease-in-out infinite;
}

.site-header.sticky {
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.navcontainer {
    width: min(100% - 28px, var(--max));
    min-height: var(--header-height);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(430px, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.brand img {
    width: 166px;
    height: auto;
    animation: logoGlow 4.6s ease-in-out infinite;
}

.sidebarbtn {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(61, 194, 255, 0.42);
    border-radius: 14px;
    background: rgba(5, 24, 65, 0.72);
    color: #fff;
    cursor: pointer;
}

.sidebarbtn span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 4px;
    background: #fff;
}

.desktop-menu,
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.72rem;
}

.desktop-menu {
    justify-content: center;
    min-width: 0;
    flex-wrap: nowrap;
}

.desktop-menu a {
    padding: 0.5rem 0.25rem;
    color: #c7dcff;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.desktop-menu a:hover {
    color: #fff;
}

.header-actions {
    justify-content: flex-end;
}

#sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    z-index: 1100;
    width: 280px;
    max-width: 86vw;
    height: 100vh;
    padding: 1.2rem;
    overflow-y: auto;
    color: #fff;
    background: linear-gradient(180deg, rgba(4, 18, 50, 0.98), rgba(2, 5, 16, 0.98));
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: left 0.28s ease;
}

#sidebar.active {
    left: 0;
}

#dismiss {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 23, 69, 0.75);
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
}

.sidebar-logo img {
    width: 180px;
    height: auto;
    margin: 1.8rem 0 1rem;
}

.sidebar-menu {
    display: grid;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-menu a {
    display: flex;
    padding: 0.82rem 0.9rem;
    border: 1px solid rgba(67, 189, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #eaf4ff;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.68;
    background:
        linear-gradient(180deg, rgba(1, 5, 18, 0.18), rgba(1, 5, 18, 0.92)),
        url("../assets/911Faz_BG.webp") center / cover no-repeat;
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 20%, rgba(24, 216, 255, 0.18) 44%, rgba(255, 54, 93, 0.16) 49%, transparent 62%),
        radial-gradient(circle at 50% 42%, rgba(24, 216, 255, 0.2), transparent 17rem);
    mix-blend-mode: screen;
    transform: translateX(-55%);
    animation: ambientSweep 10s ease-in-out infinite;
}

.hero-inner,
.affbonus-shell,
.feature-band,
.video-section,
.promotion-section,
.seo-content,
.faq-section,
.footer-inner {
    width: min(100% - 28px, var(--max));
    margin: 0 auto;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
    gap: clamp(1.4rem, 4vw, 4rem);
    align-items: center;
}

.hero-copy {
    padding-top: 0.5rem;
}

.hero-logo {
    width: min(360px, 78vw);
    height: auto;
    margin-bottom: 0.9rem;
    animation: logoGlow 4.2s ease-in-out infinite;
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.05rem, 5vw, 4.9rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-wrap: balance;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.62);
}

.hero p {
    max-width: 620px;
    margin: 1rem 0 0;
    color: #c8ddff;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-actions,
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.hero-stats {
    gap: 0.8rem;
}

.hero-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(69, 194, 255, 0.3);
    border-radius: 14px;
    color: #d9ecff;
    background: rgba(4, 18, 50, 0.56);
}

.hero-stats strong {
    margin-right: 0.35rem;
    color: var(--cyan);
}

.play-preview {
    position: relative;
    justify-self: end;
    width: min(100%, 460px);
    padding: 0.65rem;
}

.phone-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(26, 203, 255, 0.62);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(8, 44, 101, 0.92), rgba(2, 8, 25, 0.96)),
        url("../assets/911Faz_BG.webp") center / cover;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55), inset 0 0 42px rgba(26, 203, 255, 0.15);
    animation: panelGlow 6.5s ease-in-out infinite;
}

.phone-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 14%, rgba(255, 255, 255, 0.18) 28%, transparent 42%);
    transform: translateX(-125%);
    animation: shineSweep 6.4s ease-in-out infinite;
}

.phone-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 38%, rgba(255, 23, 69, 0.12));
}

.play-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.95rem;
    border-bottom: 1px solid rgba(32, 174, 255, 0.32);
    background: rgba(0, 8, 30, 0.7);
}

.play-topbar > img {
    width: 126px;
    height: auto;
}

.topbar-icons {
    display: flex;
    gap: 0.55rem;
}

.topbar-icons img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.play-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
}

.game-rail {
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.rail-item {
    display: grid;
    place-items: center;
    gap: 0.1rem;
    min-height: 76px;
    padding: 0.4rem 0.2rem;
    border: 1px solid rgba(73, 202, 255, 0.25);
    border-radius: 16px;
    color: #d6ebff;
    background: rgba(0, 10, 32, 0.68);
    font-size: 0.78rem;
}

.rail-item.active {
    border-color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(180deg, #ff4265, #a70023);
}

.rail-item img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.play-content {
    display: grid;
    gap: 0.75rem;
}

.wallet-panel,
.main-menu-panel,
.play-search {
    border: 1px solid rgba(26, 203, 255, 0.5);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(13, 85, 157, 0.82), rgba(3, 18, 55, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.wallet-panel {
    padding: 0.85rem;
}

.wallet-panel p,
.wallet-panel span,
.main-menu-panel h2 {
    margin: 0;
}

.wallet-panel p {
    font-size: 1.02rem;
    font-weight: 500;
}

.wallet-panel strong {
    color: #ff4d65;
}

.wallet-panel > span {
    display: block;
    margin-top: 0.65rem;
    color: #d2e8ff;
    font-size: 0.85rem;
}

.balance {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #11e5ff;
    font-size: 1.65rem;
    font-weight: 500;
}

.balance img {
    width: 34px;
    height: 34px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.quick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    gap: 0.3rem;
    border-radius: 14px;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
}

.quick img {
    width: 25px;
    height: 25px;
}

.quick.deposit {
    background: linear-gradient(180deg, #25d9ff, #0068d9);
}

.quick.withdraw {
    background: linear-gradient(180deg, #ff4665, #c60027);
}

.quick.soft {
    color: #061128;
    background: linear-gradient(180deg, #fff, #dce7f6);
}

.play-search {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.7rem;
    color: #cfe4ff;
    background: rgba(0, 3, 12, 0.84);
}

.play-search img {
    width: 24px;
    height: 24px;
}

.main-menu-panel {
    padding: 0.85rem;
}

.main-menu-panel h2 {
    color: #ff536d;
    font-size: 1rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.7rem;
}

.menu-grid a {
    display: grid;
    justify-items: center;
    gap: 0.25rem;
    min-height: 82px;
    padding: 0.55rem;
    border: 1px solid rgba(50, 177, 255, 0.34);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(14, 86, 164, 0.78), rgba(5, 23, 68, 0.9));
    color: #eef8ff;
    font-size: 0.82rem;
}

.menu-grid img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.card-art {
    position: absolute;
    right: -1.8rem;
    bottom: -2rem;
    z-index: 2;
    width: clamp(112px, 20vw, 190px);
    border-radius: 16px;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5);
    animation: cardFloat 5.8s ease-in-out infinite;
}

.affbonus-priority,
.feature-band,
.video-section,
.promotion-section,
.seo-content,
.faq-section {
    padding: clamp(2.2rem, 5vw, 4.5rem) 0;
}

.affbonus-priority {
    background:
        linear-gradient(180deg, rgba(1, 5, 17, 0), rgba(1, 6, 20, 0.68) 10%, rgba(1, 6, 20, 0.8)),
        radial-gradient(circle at 50% 0, rgba(255, 23, 69, 0.17), transparent 34rem);
}

.affbonus-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 1.1rem;
    align-items: stretch;
}

.bonus-card,
.affbonus-copy,
.feature-grid article,
.video-frame,
.promotion-grid a,
.seo-content,
.faq-grid article {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(45, 187, 255, 0.34);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(7, 34, 82, 0.9), rgba(2, 9, 28, 0.93));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: panelGlow 8s ease-in-out infinite;
}

.bonus-card::before,
.affbonus-copy::before,
.feature-grid article::before,
.video-frame::before,
.promotion-grid a::before,
.seo-content::before,
.faq-grid article::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 18%, rgba(24, 216, 255, 0.13) 42%, rgba(255, 255, 255, 0.12) 49%, transparent 62%);
    transform: translateX(-120%);
    animation: shineSweep 7.5s ease-in-out infinite;
}

.bonus-card > *,
.affbonus-copy > *,
.feature-grid article > *,
.video-frame > *,
.promotion-grid a > *,
.seo-content > *,
.faq-grid article > * {
    position: relative;
    z-index: 1;
}

.bonus-card {
    overflow: hidden;
}

.affbonus-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(1.2rem, 3vw, 1.8rem);
}

.affbonus-copy img {
    width: 68px;
    height: 68px;
    animation: logoGlow 5.4s ease-in-out infinite;
}

.affbonus-copy h2,
.section-heading h2,
.video-copy h2,
.seo-content h2,
.faq-grid h3 {
    margin: 0;
    line-height: 1.22;
    letter-spacing: 0;
    font-weight: 500;
}

.affbonus-copy h2 {
    font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.affbonus-copy p,
.section-heading p,
.video-copy p,
.feature-grid p,
.seo-content p,
.faq-grid p,
.site-footer p {
    margin: 0;
    color: var(--muted);
}

.container#AffBonus {
    width: 100%;
    max-width: none;
    padding: clamp(1rem, 2.4vw, 1.45rem) !important;
    gap: 0.85rem;
}

.container#AffBonus h2 {
    color: #fff;
    font-size: clamp(1.45rem, 4vw, 2.35rem);
    font-weight: 500;
    text-shadow: 0 0 22px rgba(24, 216, 255, 0.48);
}

#AffBonus > [name="img_bonus"] {
    width: min(100%, 660px);
    padding: 0;
}

#AffBonus > [name="img_bonus"] > img {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.container#AffBonus span[name="guideNote"] {
    width: 100%;
    border-color: rgba(24, 216, 255, 0.28);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(16, 71, 154, 0.86), rgba(7, 22, 61, 0.92));
    color: #e8f5ff;
    font-size: 0.95rem;
}

.container#AffBonus span[name="guideNote"] > label {
    display: inline-flex;
    margin-right: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff4665, #bc0028);
    font-weight: 500;
}

.container#AffBonus div[name="FieldSearch"] {
    width: min(100%, 520px);
    height: 52px;
    border: 1px solid rgba(24, 216, 255, 0.45);
    border-radius: 18px;
    background: rgba(0, 4, 14, 0.86);
}

.container#AffBonus div[name="FieldSearch"] > input {
    width: 100%;
    color: #fff;
    background: transparent;
}

.container#AffBonus div[name="FieldSearch"] > input::placeholder {
    color: #a9c4e6;
}

.container#AffBonus div[name="FieldSearch"] > .icon {
    background-image: url("../assets/icons/icon_search.webp");
    background-size: 28px;
}

.container#AffBonus span[name="lastupdate"] {
    color: #d6ebff;
    font-size: 0.96rem;
}

.bonus-table-wrap {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(24, 216, 255, 0.36);
    border-radius: 16px;
    background: #fff;
}

.container#AffBonus table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    color: #051126;
    font-size: clamp(0.68rem, 1.7vw, 0.95rem);
}

.container#AffBonus table .col-rank {
    width: 12%;
}

.container#AffBonus table .col-user {
    width: 27%;
}

.container#AffBonus table .col-count {
    width: 17%;
}

.container#AffBonus table .col-per {
    width: 21%;
}

.container#AffBonus table .col-total {
    width: 23%;
}

.container#AffBonus table tr > th {
    padding: 0.58rem 0.25rem !important;
    white-space: normal;
    line-height: 1.18;
    background: linear-gradient(180deg, #1377ee, #073a9d);
}

.container#AffBonus table > tbody > tr > td {
    padding: 0.5rem 0.25rem !important;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

.container#AffBonus table > tbody > tr > td:nth-child(2) {
    text-align: left;
}

.container#AffBonus table > tbody > tr > td:nth-child(4),
.container#AffBonus table > tbody > tr > td:nth-child(5) {
    text-align: right;
}

.container#AffBonus button[name="BonusContact"] {
    min-height: 56px;
    max-width: 340px;
    border-radius: 18px;
    background: linear-gradient(180deg, #32e681, #058a3f);
    box-shadow: 0 12px 28px rgba(39, 218, 118, 0.28);
    font-weight: 500;
}

.container#AffBonus button[name="BonusContact"]::before {
    background-image: url("../assets/icon_line.png");
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 1.4rem;
    text-align: center;
}

.section-heading h2,
.video-copy h2,
.seo-content h2 {
    font-size: clamp(1.65rem, 3.4vw, 2.75rem);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.feature-grid article,
.faq-grid article {
    padding: 1.2rem;
}

.feature-grid img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    margin-bottom: 0.6rem;
    animation: logoGlow 5.8s ease-in-out infinite;
}

.feature-grid h3 {
    margin: 0 0 0.35rem;
    font-size: 1.16rem;
    font-weight: 500;
}

.video-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(280px, 420px);
    gap: clamp(1.2rem, 4vw, 3rem);
    align-items: center;
}

.video-copy {
    display: grid;
    gap: 0.9rem;
}

.video-frame {
    overflow: hidden;
    padding: 0.55rem;
}

.video-frame video {
    width: 100%;
    aspect-ratio: 9 / 14;
    max-height: 680px;
    border-radius: 17px;
    object-fit: cover;
    background: #000;
}

.promotion-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.promotion-grid a {
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.promotion-grid a:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 54, 93, 0.7);
}

.promotion-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.seo-content {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
    gap: 1.4rem;
    align-items: center;
    padding: clamp(1rem, 3vw, 1.5rem);
}

.seo-content img {
    width: 100%;
    border-radius: 16px;
}

.seo-content div {
    display: grid;
    gap: 0.85rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.site-footer {
    padding: 2.4rem 0 6rem;
    border-top: 1px solid rgba(31, 166, 255, 0.24);
    background: rgba(0, 4, 16, 0.74);
}

.footer-inner {
    display: grid;
    gap: 0.9rem;
    justify-items: center;
    text-align: center;
}

.footer-inner img {
    width: 220px;
    height: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.footer-links a {
    color: #cfe4ff;
}

.mobile-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0.55rem;
    z-index: 880;
    display: none;
    width: min(100% - 16px, 520px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    transform: translateX(-50%);
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(16, 77, 166, 0.96), rgba(5, 22, 78, 0.98));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.mobile-bottom-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.18) 48%, transparent 62%);
    transform: translateX(-120%);
    animation: shineSweep 5.6s ease-in-out infinite;
}

.mobile-bottom-nav a {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.1rem;
    min-height: 62px;
    color: #fff;
    font-size: 0.68rem;
    line-height: 1.1;
}

.mobile-bottom-nav img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.mobile-bottom-nav .home-action img {
    width: 48px;
    height: 48px;
    margin-top: 0;
    border-radius: 999px;
    filter: drop-shadow(0 7px 16px rgba(0, 0, 0, 0.45));
    animation: logoGlow 4s ease-in-out infinite;
}

@media (max-width: 1040px) {
    .navcontainer {
        grid-template-columns: auto 160px 1fr;
    }

    .desktop-menu {
        display: none;
    }

    .sidebarbtn {
        display: block;
    }

    .header-actions {
        justify-self: end;
    }

    .hero-inner,
    .affbonus-shell,
    .video-section,
    .seo-content {
        grid-template-columns: 1fr;
    }

    .play-preview {
        justify-self: center;
    }

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

@media (max-width: 720px) {
    :root {
        --header-height: 66px;
    }

    body {
        background-attachment: scroll;
        font-size: 16px;
        padding-bottom: 76px;
    }

    .navcontainer {
        width: min(100% - 18px, var(--max));
        min-height: 66px;
        grid-template-columns: auto 128px 1fr;
        gap: 0.7rem;
    }

    .brand img {
        width: 126px;
    }

    .header-actions {
        gap: 0.45rem;
    }

    .header-actions .btn {
        min-height: 36px;
        padding: 0.58rem 0.7rem;
        font-size: 0.88rem;
    }

    .hero {
        padding-top: 1.6rem;
    }

    .hero-logo {
        width: min(280px, 82vw);
    }

    .hero-actions .btn {
        flex: 1 1 144px;
    }

    .hero-stats span {
        flex: 1 1 148px;
        min-height: 44px;
        font-size: 0.94rem;
    }

    .play-preview {
        padding: 0;
    }

    .phone-shell {
        border-radius: 20px;
    }

    .play-layout {
        grid-template-columns: 58px 1fr;
        gap: 0.5rem;
        padding: 0.55rem;
    }

    .play-topbar {
        padding: 0.62rem 0.7rem;
    }

    .play-topbar > img {
        width: 106px;
    }

    .topbar-icons img {
        width: 32px;
        height: 32px;
    }

    .rail-item {
        min-height: 62px;
        border-radius: 13px;
        font-size: 0.76rem;
    }

    .rail-item img {
        width: 34px;
        height: 34px;
    }

    .wallet-panel,
    .main-menu-panel {
        padding: 0.65rem;
        border-radius: 15px;
    }

    .wallet-panel p {
        font-size: 1rem;
    }

    .balance {
        font-size: 1.42rem;
    }

    .quick-actions {
        gap: 0.36rem;
    }

    .quick {
        min-height: 40px;
        font-size: 0.9rem;
    }

    .quick img {
        width: 22px;
        height: 22px;
    }

    .play-search {
        min-height: 42px;
        padding: 0.55rem;
        border-radius: 14px;
        font-size: 0.94rem;
    }

    .menu-grid {
        gap: 0.42rem;
    }

    .menu-grid a {
        min-height: 70px;
        border-radius: 13px;
        font-size: 0.84rem;
    }

    .menu-grid img {
        width: 36px;
        height: 36px;
    }

    .card-art {
        right: 0.15rem;
        bottom: -1.4rem;
        width: 112px;
    }

    .affbonus-priority,
    .feature-band,
    .video-section,
    .promotion-section,
    .seo-content,
    .faq-section {
        padding-block: 2rem;
    }

    .container#AffBonus {
        padding: 0.8rem !important;
    }

    .container#AffBonus h2 {
        font-size: clamp(1.55rem, 5.2vw, 1.85rem);
        line-height: 1.25;
    }

    .affbonus-copy h2,
    .section-heading h2,
    .video-copy h2,
    .seo-content h2 {
        font-size: clamp(1.45rem, 5vw, 1.8rem);
        line-height: 1.3;
    }

    .feature-grid h3,
    .faq-grid h3 {
        font-size: 1.12rem;
    }

    .affbonus-copy p,
    .section-heading p,
    .video-copy p,
    .feature-grid p,
    .seo-content p,
    .faq-grid p,
    .site-footer p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .container#AffBonus span[name="guideNote"] {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .container#AffBonus span[name="lastupdate"] {
        font-size: 0.9rem;
    }

    .container#AffBonus div[name="FieldSearch"] > input {
        font-size: 1rem;
    }

    .container#AffBonus table {
        font-size: clamp(0.76rem, 2.9vw, 0.88rem);
    }

    .container#AffBonus table tr > th {
        padding: 0.46rem 0.14rem !important;
    }

    .container#AffBonus table > tbody > tr > td {
        padding: 0.42rem 0.14rem !important;
    }

    .container#AffBonus table .col-rank {
        width: 11%;
    }

    .container#AffBonus table .col-user {
        width: 29%;
    }

    .container#AffBonus table .col-count {
        width: 17%;
    }

    .container#AffBonus table .col-per {
        width: 20%;
    }

    .container#AffBonus table .col-total {
        width: 23%;
    }

    .feature-grid,
    .promotion-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .promotion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .seo-content {
        padding: 0.85rem;
    }

    .site-footer {
        padding-bottom: 6.4rem;
    }

    .mobile-bottom-nav {
        display: grid;
    }

    .mobile-bottom-nav a {
        font-size: 0.76rem;
        font-weight: 400;
    }
}

@media (max-width: 420px) {
    .header-actions .btn-ghost {
        display: none;
    }

    .header-actions .btn {
        font-size: 0.84rem;
    }

    .navcontainer {
        grid-template-columns: auto 116px 1fr;
    }

    .brand img {
        width: 116px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .play-layout {
        grid-template-columns: 52px 1fr;
    }

    .container#AffBonus h2 {
        font-size: 1.42rem;
    }

    .container#AffBonus div[name="FieldSearch"] {
        height: 46px;
    }

    .container#AffBonus table {
        font-size: clamp(0.7rem, 2.75vw, 0.78rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
