:root {
    color-scheme: light;
    --page: #f5f5f7;
    --surface: #fff;
    --ink: #1c2030;
    --muted: #454955;
    --line: #e3e3e9;
    --brand: #5525c2;
    --arrow: #ff7a00;
    --radius: 16px;
    --gutter: clamp(16px, 3vw, 56px);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--page);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

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

a:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
}

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

.shell {
    width: min(calc(100% - 2 * var(--gutter)), 1600px);
    margin-inline: auto;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

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

.header-inner {
    min-height: 80px;
}

.brand {
    display: block;
    flex-shrink: 0;
    width: 122px;
}

.brand img {
    width: 100%;
    height: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 44px);
}

nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 1rem;
    font-weight: 650;
}

nav a:hover,
.card-heading a:hover {
    color: var(--brand);
}

.hero {
    padding-block: clamp(42px, 4vw, 70px) clamp(38px, 4vw, 66px);
    text-align: center;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 5.15vw, 5rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.056em;
}

.hero h1 span {
    display: block;
}

.hero h1 span + span {
    color: var(--brand);
}

.games {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: clamp(48px, 5.2vw, 92px);
    scroll-margin-top: 16px;
}

.game-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.game-cover {
    display: grid;
}

.game-banner {
    display: block;
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
    overflow: hidden;
}

.game-banner img {
    width: 100%;
    height: auto;
}

.game-icon {
    display: block;
    z-index: 1;
    justify-self: center;
    width: 38%;
    aspect-ratio: 1;
    margin-top: -19%;
    overflow: hidden;
    border: 6px solid var(--surface);
    border-radius: 25%;
    background: var(--surface);
}

.game-icon img {
    width: 100%;
    height: auto;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 17px clamp(21px, 1.9vw, 32px) 16px;
}

.card-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    min-height: 60px;
}

.card-heading h2 {
    margin: 0;
    font-size: clamp(1.5rem, 1.7vw, 1.75rem);
    font-weight: 775;
    letter-spacing: -0.035em;
    line-height: 1.13;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 8px;
    margin-top: -7px;
    white-space: nowrap;
    font-weight: 680;
    font-size: 1rem;
}

.more-arrow {
    position: relative;
    width: 16px;
    height: 2px;
    background: var(--arrow);
}

.more-arrow::after {
    position: absolute;
    top: 50%;
    right: 0;
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--arrow);
    border-right: 2px solid var(--arrow);
    transform: translateY(-50%) rotate(45deg);
    content: "";
}

.card-body p {
    margin: 9px 0 25px;
    color: var(--muted);
    font-size: clamp(1rem, 1.04vw, 1.125rem);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.stores {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.stores a {
    display: grid;
    width: 44px;
    min-height: 44px;
    place-items: center;
    border-radius: 8px;
}

.stores a:hover {
    background: var(--page);
}

.stores img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

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

.footer-inner {
    min-height: 104px;
    flex-wrap: wrap;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.footer-inner small {
    font-size: 0.875rem;
    color: var(--muted);
}

@media (max-width: 1279px) {
    .games {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .header-inner {
        min-height: 66px;
    }

    .brand {
        width: 104px;
    }

    .hero h1 {
        font-size: clamp(2rem, 8.4vw, 2.625rem);
    }

    .games {
        grid-template-columns: minmax(0, 1fr);
        max-width: 540px;
        gap: 20px;
    }

    .card-heading {
        min-height: 0;
    }

    .card-body p {
        margin: 12px 0 22px;
    }

    .footer-inner {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding-block: 26px;
        text-align: center;
    }
}

/* 页脚新增服务条款后允许自然换行。 */
.footer-inner nav { flex-wrap: wrap; justify-content: center; }
