
:root {
    color-scheme: dark;
    --header-height: 104px;
    --gold: #f8ca06;
    --gold-deep: #c7822f;
    --page-bg: #0b0b0b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--page-bg);
}

body.hgdj-landing-page {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: #fff;
    background: var(--page-bg);
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(11, 11, 11, 0.98);
}

.header-inner {
    display: grid;
    grid-template-columns: 248px minmax(540px, 1fr) 225px;
    align-items: center;
    width: min(100% - 80px, 1414px);
    height: 100%;
    margin: 0 auto;
    gap: 48px;
}

.brand-link {
    display: block;
    width: 248px;
    height: 72px;
}

.brand-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    min-width: 0;
    height: 100%;
}

.section-nav a {
    position: relative;
    flex: 0 0 auto;
    padding: 12px 0 17px;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.section-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    border-radius: 5px;
    content: "";
    opacity: 0;
    background: var(--gold);
    transform: scaleX(0.45);
    transition: opacity 160ms ease, transform 160ms ease;
}

.section-nav a.is-active {
    color: var(--gold);
    font-weight: 700;
}

.section-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 225px;
    height: 66px;
    gap: 16px;
    border-radius: 12px;
    color: #050505;
    background: linear-gradient(180deg, #f5bf5a, var(--gold-deep));
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
}

.download-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #e9a53a;
    background: #050505;
    font-size: 31px;
    line-height: 1;
}

.landing-shell,
.visual-section {
    position: relative;
    width: 100%;
}

.visual-section {
    scroll-margin-top: var(--header-height);
    overflow: hidden;
    background: #000;
}

.section-art,
.section-art picture,
.section-art img {
    width: 100%;
}

.section-art img {
    height: auto;
}

.mobile-only {
    display: none;
}

.hit-area {
    position: absolute;
    z-index: 5;
    display: block;
    border-radius: 18px;
    color: transparent;
    text-indent: -9999px;
}

.hit-area:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.desktop-qr-card {
    position: absolute;
    left: clamp(36px, 5.2vw, 100px);
    bottom: clamp(26px, 4vw, 64px);
    z-index: 8;
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.05vw, 20px);
    padding: clamp(11px, .78vw, 15px) clamp(15px, 1.15vw, 22px) clamp(11px, .78vw, 15px) clamp(11px, .78vw, 15px);
    border: 1px solid rgba(255, 222, 166, .82);
    border-radius: clamp(16px, 1.2vw, 23px);
    background: radial-gradient(ellipse 112% 162% at 98% 0%, rgba(91, 48, 9, .94) 0%, rgba(31, 17, 4, .94) 58%, rgba(11, 7, 2, .96) 100%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
    backdrop-filter: blur(6px);
}

.desktop-qr-code {
    flex: 0 0 auto;
    width: clamp(126px, 8.2vw, 158px);
    height: clamp(126px, 8.2vw, 158px);
    padding: 7px;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}

.desktop-qr-code canvas,
.desktop-qr-code img {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.desktop-qr-copy {
    display: grid;
    gap: 8px;
    min-width: 118px;
}

.desktop-qr-copy strong {
    color: #fffb79;
    font-size: clamp(22px, 1.46vw, 28px);
    line-height: 1.1;
    letter-spacing: .04em;
}

.desktop-qr-copy span {
    color: rgba(255, 255, 255, .9);
    font-size: clamp(13px, .84vw, 16px);
    line-height: 1.6;
}

.mobile-download-actions {
    display: none;
}

.download-section-heading {
    display: none;
}

.home-download {
    left: 51.615%;
    top: 79.655%;
    width: 16.458%;
    height: 11.097%;
}

.home-explore {
    left: 70.938%;
    top: 79.655%;
    width: 16.563%;
    height: 11.097%;
}

.desktop-download-actions {
    position: relative;
    z-index: 9;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: 8%;
    margin: -2.5vw 12.5% clamp(10px, 1.2vw, 24px) 51.615%;
}

.desktop-download-button,
.mac-chip-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(40px, 4.69vw, 88px);
    gap: clamp(5px, .9vw, 16px);
    border-radius: clamp(8px, .9vw, 18px);
    color: #050505;
    background: linear-gradient(180deg, #f5bf5a, var(--gold-deep));
    font-size: clamp(14px, 1.45vw, 30px);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.desktop-download-button svg,
.mac-chip-picker svg {
    flex: 0 0 auto;
    width: clamp(18px, 1.8vw, 34px);
    height: auto;
}

.desktop-download-picker {
    position: relative;
    --mac-panel-bg: #171614;
    --mac-panel-border: #706558;
}

.desktop-download-picker > summary,
.desktop-download-help > summary {
    cursor: pointer;
    list-style: none;
}

.desktop-download-picker > summary::-webkit-details-marker,
.desktop-download-help > summary::-webkit-details-marker {
    display: none;
}

.desktop-download-picker > summary::after,
.desktop-download-help > summary::after {
    width: .45em;
    height: .45em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    content: "";
}

.desktop-download-picker[open] > summary::after,
.desktop-download-help[open] > summary::after {
    transform: rotate(225deg);
}

.desktop-download-picker[open]::after {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    width: 11px;
    height: 11px;
    border-top: 1px solid var(--mac-panel-border);
    border-left: 1px solid var(--mac-panel-border);
    background: var(--mac-panel-bg);
    transform: translateX(-50%) rotate(45deg);
    pointer-events: none;
    content: "";
}

.desktop-download-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    gap: 8px;
    width: max(100%, min(22.5rem, calc(100vw - 24px)));
    padding: 10px 12px;
    border: 1px solid var(--mac-panel-border);
    border-radius: 14px;
    background: var(--mac-panel-bg);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .48);
}

.desktop-download-options-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-left: 5px;
}

.desktop-download-options-header h2 {
    margin: 0;
    color: #fff8ed;
    font-size: 16px;
}

.mac-chip-close {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    color: #e1dbd3;
    background: transparent;
    cursor: pointer;
}

.mac-chip-close svg,
.desktop-download-arrow {
    width: 20px;
    height: 20px;
}

.desktop-download-option {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px;
    border: 1px solid #46413a;
    border-radius: 10px;
    color: #fff8ed;
    background: #22211f;
    text-decoration: none;
}

.desktop-download-option-apple {
    border-color: #5c4c30;
    background: linear-gradient(120deg, #30271b, #22211f);
}

.desktop-download-option:hover,
.desktop-download-option:focus-visible {
    border-color: #eab456;
}

.desktop-download-chip {
    width: 32px;
    color: #d0cfcb;
}

.desktop-download-chip text {
    fill: currentColor;
    stroke: none;
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.desktop-download-option-apple .desktop-download-chip,
.desktop-download-arrow {
    color: #ffdea6;
}

.desktop-download-option strong,
.desktop-download-option small {
    display: block;
    line-height: 1.3;
}

.desktop-download-option strong {
    font-size: 14px;
}

.desktop-download-option small {
    margin-top: 4px;
    color: #c3bdb3;
    font-size: 12px;
}

.desktop-download-help {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.desktop-download-help > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    color: #ffdea6;
    font-size: 13px;
}

.desktop-download-help > summary span {
    width: 15px;
    height: 15px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
    line-height: 13px;
    text-align: center;
}

.desktop-download-help p {
    margin: 0 5px 5px;
    color: #e1dbd3;
    font-size: 12px;
    line-height: 1.6;
}

.desktop-download-button:focus-visible,
.mac-chip-picker:focus-visible,
.mac-chip-close:focus-visible,
.desktop-download-option:focus-visible,
.desktop-download-help > summary:focus-visible {
    outline: 2px solid #ffdea6;
    outline-offset: 2px;
}

.wishlist-action {
    left: 39.583%;
    top: 81.804%;
    width: 20.833%;
    height: 6.431%;
}

.creator-action {
    left: 14.063%;
    top: 62.207%;
    width: 20.833%;
    height: 8.789%;
}

.site-footer {
    min-height: 265px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.35);
    background: #121211;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(430px, 1fr) repeat(3, 150px);
    width: min(100% - 80px, 1440px);
    min-height: 265px;
    margin: 0 auto;
    padding: 38px 0 30px;
    column-gap: 90px;
    row-gap: 0;
}

.footer-brand img {
    width: 190px;
    height: 44px;
    object-fit: contain;
}

.footer-tagline {
    margin: 14px 0 18px;
    font-size: 12px;
}

.footer-addresses {
    display: grid;
    gap: 8px;
    font-size: 12px;
}

.footer-addresses a {
    color: #ffd21c;
    text-decoration: none;
}

.footer-column h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 14px;
}

.footer-column a {
    display: block;
    margin: 0 0 13px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 14px;
    text-decoration: none;
}

.footer-copyright {
    grid-column: 2 / -1;
    justify-self: end;
    align-self: end;
    margin-top: -22px;
    font-size: 12px;
}

@media (max-width: 1180px) and (min-width: 769px) {
    .header-inner {
        grid-template-columns: 200px 1fr 180px;
        width: calc(100% - 40px);
        gap: 24px;
    }

    .brand-link {
        width: 200px;
    }

    .section-nav {
        gap: 24px;
    }

    .section-nav a,
    .header-download {
        font-size: 20px;
    }

    .header-download {
        width: 180px;
        height: 58px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 58px;
    }

    .site-header {
        position: relative;
        height: 58px;
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 12px;
    }

    .brand-link {
        width: 124px;
        height: 42px;
    }

    .header-download {
        width: 113px;
        height: 36px;
        gap: 8px;
        border-radius: 8px;
        font-size: 15px;
    }

    .download-symbol {
        width: 26px;
        height: 26px;
        font-size: 20px;
    }

    .section-nav {
        position: absolute;
        top: 58px;
        right: 0;
        left: 0;
        z-index: 60;
        justify-content: flex-start;
        height: 54px;
        gap: 26px;
        padding: 0 13px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        background: rgba(7, 7, 7, 0.72);
        backdrop-filter: blur(4px);
    }

    .section-nav::-webkit-scrollbar {
        display: none;
    }

    .section-nav a {
        padding: 15px 0 13px;
        font-size: 16px;
    }

    .section-nav a::after {
        height: 3px;
    }

    .visual-section {
        scroll-margin-top: 0;
    }

    .desktop-qr-card,
    .home-download,
    .home-explore {
        display: none;
    }

    .section-home > .section-art {
        position: relative;
        z-index: 1;
    }

    .mobile-download-actions,
    .desktop-download-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: clamp(8px, 2.4vw, 14px);
        padding-inline: 4%;
    }

    .download-section-heading {
        display: flex;
        grid-column: 1 / -1;
        align-items: center;
        gap: 8px;
        min-width: 0;
        margin-bottom: 3px;
        color: #fff8ed;
        font-size: clamp(15px, 3.8vw, 22px);
        font-weight: 700;
        line-height: 1.4;
    }

    .download-section-heading svg {
        flex: 0 0 auto;
        width: 22px;
        height: 22px;
        color: #ffdea6;
    }

    .download-section-heading::after {
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, #a78f60, transparent);
        content: "";
    }

    .mobile-download-actions {
        position: relative;
        z-index: 8;
        display: grid;
        row-gap: clamp(7px, 1.8vw, 12px);
        margin-top: -14.666667vw;
        padding-block: clamp(5px, 1.25vw, 10px);
        background: #000;
    }

    .desktop-download-actions {
        margin: clamp(4px, 1.1vw, 9px) 0 12px;
        row-gap: clamp(7px, 1.8vw, 12px);
    }

    .desktop-download-button,
    .mac-chip-picker {
        min-height: clamp(40px, 9.5vw, 70px);
        font-size: clamp(14px, 3.5vw, 24px);
    }

    .download-section-heading + .desktop-download-picker .desktop-download-options {
        right: auto;
        left: 0;
    }

    .mobile-download-button {
        display: flex;
        align-items: center;
        gap: clamp(7px, 2vw, 16px);
        width: 100%;
        min-height: clamp(50px, 12vw, 76px);
        min-width: 0;
        padding: 7px clamp(8px, 2.4vw, 18px);
        border: max(1px, .266667vw) solid #ffdea6;
        border-radius: min(23px, 3.066667vw);
        color: #fff;
        background: radial-gradient(ellipse 112% 162% at 98% 0%, #5b3009 0%, #331c05 50%, #1f1104 75%, #0b0702 100%);
        text-decoration: none;
    }

    .mobile-download-button > img {
        flex: 0 0 auto;
        width: clamp(22px, 5.6vw, 40px);
        height: auto;
    }

    .mobile-download-button > span {
        display: grid;
        min-width: 0;
        gap: 4px;
    }

    .mobile-download-button strong {
        color: transparent;
        background: linear-gradient(180deg, #fff2d9 0%, #fffb79 100%);
        background-clip: text;
        -webkit-background-clip: text;
        font-size: clamp(13px, 3.65vw, 22px);
        font-weight: 800;
        line-height: 1.2;
    }

    .mobile-download-button small {
        color: #fff;
        font-size: clamp(10px, 2.9vw, 13px);
        font-weight: 400;
        line-height: 1.25;
    }

    .mobile-download-ios small {
        letter-spacing: max(-.2643px, -.0352vw);
    }

    .mobile-download-button:focus-visible {
        outline: 2px solid #fff;
        outline-offset: -3px;
    }

    .pc-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .wishlist-action {
        left: 12.933%;
        top: 87.482%;
        width: 74.267%;
        height: 12.518%;
    }

    .mobile-creator-art,
    .mobile-about-art {
        position: relative;
        width: 100%;
    }

    .mobile-creator-art > img:first-child,
    .mobile-about-art > img:first-child {
        width: 100%;
        height: auto;
    }

    .mobile-creator-copy {
        position: absolute;
        left: 6.533%;
        top: 13.201%;
        width: 56.933%;
        height: auto;
    }

    .creator-action {
        left: 7.733%;
        top: 58.911%;
        width: 37.333%;
        height: 9.901%;
    }

    .mobile-about-content {
        position: absolute;
        left: 18.533%;
        top: 14.917%;
        width: 68.667%;
        height: auto;
    }

    .site-footer {
        min-height: 263px;
    }

    .footer-inner {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        min-height: 263px;
        padding: 24px 12px 18px;
        gap: 18px 10px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand img {
        width: 124px;
        height: 42px;
    }

    .footer-tagline {
        margin: 8px 0 0;
        font-size: 12px;
    }

    .footer-addresses {
        display: none;
    }

    .footer-column h2,
    .footer-column a {
        font-size: 12px;
    }

    .footer-column h2 {
        margin-bottom: 12px;
    }

    .footer-column a {
        margin-bottom: 9px;
    }

    .footer-copyright {
        grid-column: 1 / -1;
        justify-self: center;
        margin: 0;
        font-size: 11px;
    }

    .platform-item {
        width: calc(50% - 12px);
    }
}

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

.header-inner{grid-template-columns:190px minmax(0,1fr) 225px;gap:28px}.brand-link{width:190px}
.section-nav{gap:clamp(16px,2.7vw,48px)}.section-nav a{font-size:clamp(18px,2.05vw,26px)}
.desktop-platform-note{text-align:right;color:#b2a18a;font-size:12px;margin:0 12.5% 16px 0}
.install-dialog{width:min(92vw,520px);padding:26px;border:1px solid #8b6b37;border-radius:20px;color:#f5ecdf;background:#14120f;box-shadow:0 30px 100px #000c}
.install-dialog::backdrop{background:#000a;backdrop-filter:blur(6px)}.install-dialog h2{margin:0 0 16px;color:#ffdc83;font-size:22px}.install-dialog p,.install-dialog li{line-height:1.8;font-size:14px}.install-dialog ol{padding-left:24px;color:#d8cbb8}.install-close{float:right;border:0;background:transparent;color:#c8bda8;font-size:28px;cursor:pointer}.install-link{display:block;margin-top:12px;padding:13px;border-radius:10px;color:#17110a;background:linear-gradient(#f5bf5a,#c7822f);text-decoration:none;text-align:center;font-weight:700}.install-secondary{color:#ffe1a6;background:transparent;border:1px solid #72572e}.install-meta{color:#b5a58b;font-size:12px}.footer-column a:hover{color:#ffd21c}.desktop-qr-card{cursor:default}.mobile-home-open{display:none}.desktop-download-options p{font-size:13px;line-height:1.7;padding:4px;color:#ccc0af}.desktop-download-option{display:block}
@media(max-width:768px){.header-inner{gap:12px}.brand-link{width:150px}.desktop-platform-note{text-align:center;margin:0 12px 18px;font-size:11px}.mobile-home-open{display:block;margin:0 4% 14px;padding:11px;border:1px solid #72572e;border-radius:9px;color:#f5cc6c;text-decoration:none;text-align:center;font-size:14px}.footer-addresses{display:grid;margin-top:14px;font-size:11px}.desktop-qr-card{display:none}.section-nav a{font-size:16px}}
