:root {
    --bg: #12130f;
    --bg-soft: #1b1c16;
    --panel: #20231a;
    --panel-strong: #292714;
    --text: #fffaf0;
    --muted: #c9c1ae;
    --line: rgba(255, 250, 240, 0.14);
    --gold: #f4b84a;
    --gold-deep: #a6691b;
    --teal: #16c5a4;
    --coral: #e65b3d;
    --green: #78c956;
    --shadow: rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

img {
    display: block;
    max-width: 100%;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(18, 19, 15, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner,
.hero-inner,
.section,
.footer-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--muted);
    font-size: 15px;
}

.site-nav a {
    position: relative;
    padding: 8px 0;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.header-action,
.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 6px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid transparent;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-action,
.primary-btn {
    color: #1c1607;
    background: var(--gold);
    box-shadow: 0 12px 28px rgba(244, 184, 74, 0.22);
}

.secondary-btn {
    color: var(--text);
    background: rgba(255, 250, 240, 0.1);
    border-color: var(--line);
}

.header-action:hover,
.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-2px);
}

.disabled-btn,
.disabled-btn:hover {
    cursor: default;
    opacity: 0.68;
    transform: none;
}

.btn-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(18, 19, 15, 0.16);
    font-size: 16px;
    line-height: 1;
}

.secondary-btn .btn-icon {
    background: rgba(244, 184, 74, 0.18);
    color: var(--gold);
}

.hero {
    position: relative;
    min-height: 76svh;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background-color: #17170f;
    background-image:
        url("../images/games/symbol-8.png"),
        url("../images/games/symbol-9.png");
    background-repeat: no-repeat;
    background-size: 136px auto, 118px auto;
    background-position: 7% 18%, 91% 78%;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 19, 15, 0.96) 0%, rgba(18, 19, 15, 0.78) 42%, rgba(18, 19, 15, 0.2) 100%),
        linear-gradient(180deg, rgba(244, 184, 74, 0.18) 0%, rgba(18, 19, 15, 0) 34%, rgba(22, 197, 164, 0.12) 100%);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 96px;
    background: linear-gradient(180deg, rgba(18, 19, 15, 0), rgba(18, 19, 15, 0.82));
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 76svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 0 48px;
}

.eyebrow,
.section-kicker,
.game-code {
    margin: 0;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero h1 {
    margin: 14px 0 18px;
    font-size: 72px;
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 0 0;
}

.hero-stats div {
    min-width: 118px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.07);
}

.hero-stats dt {
    margin: 0;
    color: var(--text);
    font-size: 28px;
    font-weight: 900;
}

.hero-stats dd {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.hero-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.scene-symbol {
    position: absolute;
    filter: drop-shadow(0 26px 30px var(--shadow));
    animation: floatSymbol 5.8s ease-in-out infinite;
}

.symbol-a {
    width: 154px;
    top: 12%;
    right: 16%;
}

.symbol-b {
    width: 150px;
    right: 29%;
    bottom: 16%;
    animation-delay: 700ms;
}

.symbol-c {
    width: 130px;
    top: 47%;
    right: 7%;
    animation-delay: 1100ms;
}

.symbol-d {
    width: 132px;
    right: 5%;
    top: 19%;
    animation-delay: 1600ms;
}

.reel-stack {
    position: absolute;
    right: 12%;
    top: 29%;
    width: 230px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(244, 184, 74, 0.45);
    border-radius: 8px;
    background: rgba(24, 20, 11, 0.72);
    box-shadow: 0 28px 60px var(--shadow);
    transform: rotate(-6deg);
}

.reel-stack span {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.08);
}

.reel-stack img {
    width: 86%;
    max-height: 88px;
    object-fit: contain;
}

@keyframes floatSymbol {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

.section {
    padding: 82px 0;
}

.section-heading {
    display: grid;
    gap: 10px;
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading.compact {
    max-width: 680px;
    margin-bottom: 28px;
}

.section-heading h2,
.download-layout h2,
.support-layout h2 {
    margin: 0;
    font-size: 40px;
    line-height: 1.18;
    letter-spacing: 0;
}

.section-heading p,
.download-copy,
.support-layout p,
.platform-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.games-section {
    padding-top: 58px;
}

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

.game-card {
    min-height: 218px;
    display: grid;
    grid-template-rows: 118px auto;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
}

.game-card.featured {
    background: #28220f;
    border-color: rgba(244, 184, 74, 0.36);
}

.game-card img {
    align-self: center;
    justify-self: center;
    width: 104px;
    height: 104px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.24));
}

.game-card h3 {
    margin: 6px 0 8px;
    font-size: 22px;
    line-height: 1.24;
    letter-spacing: 0;
}

.game-card p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.72;
}

.platform-section {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100% - 1180px) / 2));
    padding-right: max(20px, calc((100% - 1180px) / 2));
    background: #181b15;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.platform-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 54px;
    align-items: center;
}

.feature-list {
    display: grid;
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.feature-list strong {
    color: var(--text);
    font-size: 17px;
}

.feature-list span {
    color: var(--muted);
    line-height: 1.75;
}

.phone-shell {
    width: 100%;
    max-width: 380px;
    justify-self: end;
    padding: 18px;
    border: 1px solid rgba(244, 184, 74, 0.32);
    border-radius: 8px;
    background: #242116;
    box-shadow: 0 24px 52px var(--shadow);
}

.phone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 6px;
    color: #1d1708;
    background: var(--gold);
    font-weight: 900;
}

.slot-window {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0;
    padding: 12px;
    border-radius: 8px;
    background: #17130b;
}

.slot-window img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 250, 240, 0.07);
}

.phone-games {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.phone-games span {
    display: grid;
    place-items: center;
    min-height: 92px;
    border-radius: 8px;
    background: #1b2419;
    border: 1px solid rgba(120, 201, 86, 0.22);
}

.phone-games img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.download-section {
    padding-bottom: 70px;
}

.download-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 36px;
    align-items: center;
    padding: 32px;
    border: 1px solid rgba(22, 197, 164, 0.28);
    border-radius: 8px;
    background: #17231f;
}

.download-layout h2 {
    margin: 8px 0 12px;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.text-link {
    color: var(--teal);
    font-weight: 800;
    padding: 10px 0;
}

.text-link:hover {
    color: var(--gold);
}

.qr-block {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.06);
}

.qr-block img {
    width: 150px;
    height: 150px;
    border-radius: 6px;
    background: #ffffff;
}

.qr-block p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.support-section {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100% - 1180px) / 2));
    padding-right: max(20px, calc((100% - 1180px) / 2));
    background: #1f1b13;
}

.support-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 44px;
    align-items: start;
}

.support-layout h2 {
    margin: 8px 0 12px;
}

.support-items {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.support-items div {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    background: #181813;
}

.support-items strong {
    color: var(--gold);
}

.support-items span {
    color: var(--muted);
    line-height: 1.7;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #10110e;
}

.footer-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
}

.footer-brand .brand-mark {
    width: 34px;
    height: 34px;
}

.footer-inner p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 980px) {
    .site-nav {
        gap: 16px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 56px;
    }

    .hero-copy {
        max-width: 560px;
        font-size: 17px;
    }

    .symbol-a {
        right: 9%;
    }

    .symbol-b {
        right: 18%;
    }

    .reel-stack {
        right: 5%;
        width: 200px;
    }

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

    .platform-layout,
    .support-layout {
        grid-template-columns: 1fr;
    }

    .phone-shell {
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .header-inner,
    .hero-inner,
    .section,
    .footer-inner {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: 64px;
        gap: 12px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 17px;
    }

    .site-nav {
        display: none;
    }

    .header-action {
        min-height: 38px;
        padding: 0 12px;
        font-size: 14px;
    }

    .hero {
        min-height: 68svh;
        background-size: 82px auto, 78px auto;
        background-position: 4% 16%, 96% 84%;
    }

    .hero::before {
        background:
            linear-gradient(90deg, rgba(18, 19, 15, 0.94), rgba(18, 19, 15, 0.62)),
            linear-gradient(180deg, rgba(244, 184, 74, 0.15), rgba(22, 197, 164, 0.08));
    }

    .hero-inner {
        min-height: 68svh;
        padding: 34px 0 32px;
    }

    .hero h1 {
        margin: 10px 0 14px;
        font-size: 44px;
    }

    .hero-copy {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.72;
    }

    .hero-actions {
        margin-top: 22px;
    }

    .primary-btn,
    .secondary-btn {
        min-height: 42px;
        padding: 0 14px;
        font-size: 14px;
    }

    .hero-stats {
        gap: 8px;
        margin-top: 22px;
    }

    .hero-stats div {
        min-width: 94px;
        padding: 10px 12px;
    }

    .hero-stats dt {
        font-size: 22px;
    }

    .hero-stats dd {
        font-size: 12px;
    }

    .scene-symbol {
        opacity: 0.55;
    }

    .symbol-a {
        width: 86px;
        top: 11%;
        right: 8%;
    }

    .symbol-b,
    .symbol-d {
        display: none;
    }

    .symbol-c {
        width: 78px;
        top: 53%;
        right: 2%;
    }

    .reel-stack {
        right: -42px;
        top: 26%;
        width: 162px;
        gap: 8px;
        padding: 10px;
        opacity: 0.8;
    }

    .section {
        padding: 56px 0;
    }

    .section-heading h2,
    .download-layout h2,
    .support-layout h2 {
        font-size: 30px;
    }

    .section-heading p,
    .download-copy,
    .support-layout p,
    .platform-copy p {
        font-size: 15px;
    }

    .games-section {
        padding-top: 42px;
    }

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

    .game-card {
        min-height: 0;
        grid-template-columns: 94px minmax(0, 1fr);
        grid-template-rows: auto;
        align-items: center;
        padding: 16px;
    }

    .game-card img {
        width: 82px;
        height: 82px;
    }

    .game-card h3 {
        font-size: 20px;
    }

    .platform-section,
    .support-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .feature-list li {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px 0;
    }

    .phone-shell {
        max-width: 100%;
    }

    .phone-games span {
        min-height: 78px;
    }

    .phone-games img {
        width: 58px;
        height: 58px;
    }

    .download-layout {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .qr-block {
        justify-self: start;
    }

    .support-items div {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 18px;
    }

    .footer-inner {
        min-height: 112px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
