:root {
    --ink: #2d2017;
    --ink-soft: #645240;
    --paper: #f8efdd;
    --paper-deep: #e3cfac;
    --panel: rgba(255, 248, 233, 0.82);
    --line: rgba(106, 71, 42, 0.2);
    --accent: #9c471d;
    --accent-strong: #6e2f12;
    --green: #2f6c4c;
    --shadow: 0 14px 32px rgba(63, 39, 21, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

.game-body {
    min-height: 100vh;
    color: var(--ink);
    font-family: "STKaiti", "KaiTi", "SimSun", serif;
    background:
        radial-gradient(circle at 10% 12%, rgba(169, 101, 52, 0.25) 0, transparent 35%),
        radial-gradient(circle at 88% 10%, rgba(90, 51, 27, 0.22) 0, transparent 34%),
        linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
    position: relative;
}

.game-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 34px,
            rgba(121, 79, 44, 0.06) 35px
        );
}

.game-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 1rem auto 2.2rem;
    position: relative;
    z-index: 1;
}

.home-top {
    position: sticky;
    top: 0.8rem;
    z-index: 8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-logo {
    width: auto;
    height: 64px;
    max-width: 64px;
    border-radius: 12px;
    border: 1px solid rgba(118, 75, 39, 0.24);
    object-fit: contain;
    background: #fff5e2;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: clamp(1.35rem, 2.1vw, 1.7rem);
    letter-spacing: 0.05em;
}

.brand-text small {
    margin-top: 0.1rem;
    letter-spacing: 0.2em;
    color: var(--ink-soft);
    font-size: 0.76rem;
}

.top-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.top-links a {
    border-radius: 999px;
    border: 1px solid rgba(123, 78, 44, 0.2);
    color: #fff8ec;
    background: linear-gradient(120deg, var(--accent-strong) 0%, var(--accent) 100%);
    padding: 0.38rem 0.84rem;
    box-shadow: 0 8px 15px rgba(111, 52, 21, 0.22);
    transition: all 0.24s ease;
}

.top-links a:hover {
    transform: translateY(-2px);
    filter: saturate(1.12);
    box-shadow: 0 11px 18px rgba(111, 52, 21, 0.3);
}

.top-links .is-active {
    border-color: rgba(255, 229, 197, 0.28);
    background: linear-gradient(120deg, #6a2a10 0%, #8d3714 100%);
    box-shadow: 0 10px 18px rgba(96, 40, 15, 0.28);
}

.game-hero {
    margin-top: 1rem;
    border-radius: 24px;
    padding: clamp(1.1rem, 3vw, 2.1rem);
    color: #f7f0e4;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 76% 32%, rgba(188, 107, 57, 0.22) 0, transparent 36%),
        linear-gradient(112deg, rgba(57, 31, 18, 0.93) 0%, rgba(120, 56, 27, 0.88) 56%, rgba(54, 30, 16, 0.9) 100%);
    box-shadow: var(--shadow);
    animation: rise-in 0.7s ease both;
}

.game-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 228, 194, 0.3);
    border-radius: 24px;
    pointer-events: none;
}

.kicker {
    font-size: 0.84rem;
    letter-spacing: 0.18em;
    opacity: 0.84;
}

.game-hero h1 {
    margin-top: 0.24rem;
    margin-bottom: 0.64rem;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    letter-spacing: 0.06em;
}

.game-hero p {
    max-width: 38ch;
    line-height: 1.68;
}

.game-grid {
    margin-top: 1rem;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.game-card {
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
    min-height: 212px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 249, 237, 0.92);
    box-shadow: 0 10px 25px rgba(73, 43, 21, 0.12);
    padding: 0.9rem;
    transform: translateY(18px);
    opacity: 0;
    animation: rise-in 0.7s ease forwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.18s; }
.game-card:nth-child(3) { animation-delay: 0.26s; }
.game-card:nth-child(4) { animation-delay: 0.34s; }
.game-card:nth-child(5) { animation-delay: 0.42s; }
.game-card:nth-child(6) { animation-delay: 0.5s; }

.game-card h2 {
    font-size: 1.75rem;
    line-height: 1;
}

.game-card p {
    color: #4c3829;
    line-height: 1.66;
}

.tag {
    width: fit-content;
    border-radius: 999px;
    padding: 0.2rem 0.62rem;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}

.live {
    color: #f4fff9;
    background: linear-gradient(120deg, #256243 0%, var(--green) 100%);
}

.soon {
    color: #fff8ee;
    background: linear-gradient(120deg, #8c6c2d 0%, #b18735 100%);
}

.card-action {
    margin-top: auto;
    color: var(--accent);
    font-weight: 700;
}

.is-live {
    border-color: rgba(47, 108, 76, 0.3);
    background:
        linear-gradient(180deg, rgba(232, 255, 244, 0.66) 0%, rgba(249, 255, 252, 0.9) 100%);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.poetry-card {
    border-color: rgba(99, 72, 128, 0.2);
    background:
        linear-gradient(180deg, rgba(243, 246, 255, 0.7) 0%, rgba(251, 252, 255, 0.92) 100%);
}

.banquet-card {
    border-color: rgba(91, 123, 130, 0.28);
    background:
        linear-gradient(180deg, rgba(233, 247, 248, 0.72) 0%, rgba(250, 255, 255, 0.92) 100%);
}

.is-live:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 29px rgba(36, 98, 68, 0.23);
}

.poetry-card:hover {
    box-shadow: 0 14px 29px rgba(77, 88, 140, 0.22);
}

.banquet-card:hover {
    box-shadow: 0 14px 29px rgba(61, 102, 112, 0.24);
}

.is-live:hover .card-action {
    color: #245d41;
}

.is-soon {
    filter: saturate(0.78);
}

.guide {
    margin-top: 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 0.92rem 1rem;
}

.guide h3 {
    font-size: 1.32rem;
    color: var(--accent-strong);
    margin-bottom: 0.52rem;
}

.guide ul {
    margin-left: 1.1rem;
    color: var(--ink-soft);
    display: grid;
    gap: 0.4rem;
}

.guide li {
    line-height: 1.62;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 860px) {
    .home-top {
        position: static;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .game-shell {
        width: calc(100% - 1rem);
        margin-top: 0.56rem;
    }

    .home-top {
        padding: 0.8rem 0.85rem;
        gap: 0.8rem;
    }

    .brand {
        width: 100%;
        min-width: 0;
    }

    .brand-text {
        min-width: 0;
    }

    .brand-text strong {
        font-size: 1.18rem;
        line-height: 1.1;
    }

    .brand-text small {
        font-size: 0.66rem;
        letter-spacing: 0.12em;
        line-height: 1.25;
    }

    .top-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        justify-content: stretch;
        gap: 0.35rem;
    }

    .top-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        text-align: center;
        white-space: nowrap;
        font-size: 0.88rem;
        letter-spacing: 0.01em;
        padding: 0.42rem 0.18rem;
    }

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

    .game-card h2 {
        font-size: 1.58rem;
    }

    .brand-logo {
        width: auto;
        height: 56px;
        max-width: 56px;
    }
}

@media (max-width: 420px) {
    .brand-text strong {
        font-size: 1.08rem;
    }

    .brand-text small {
        font-size: 0.6rem;
        letter-spacing: 0.08em;
    }

    .top-links {
        gap: 0.28rem;
    }

    .top-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.1rem;
    }
}
