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

:root {
    --bg: #111417;
    --bg-soft: #171b20;
    --surface: rgba(24, 29, 34, 0.9);
    --surface-strong: #1b2025;
    --surface-alt: #20262c;
    --line: rgba(214, 198, 169, 0.14);
    --line-strong: rgba(214, 198, 169, 0.28);
    --text-main: #f1eadf;
    --text-soft: #b7aea0;
    --text-dim: #8f887d;
    --accent: #c8a56b;
    --accent-deep: #946b38;
    --accent-soft: rgba(200, 165, 107, 0.12);
    --accent-moss: #6c7b68;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    --radius-lg: 26px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --display-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --body-font: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.65;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(200, 165, 107, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(108, 123, 104, 0.12), transparent 24%),
        linear-gradient(180deg, #0f1215 0%, #12161a 48%, #0f1215 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.16;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 92%);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 13, 16, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar-scrolled {
    background: rgba(10, 13, 16, 0.9);
    border-color: var(--line);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    height: 52px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-en {
    font-family: var(--display-font);
    font-size: 1.45rem;
    letter-spacing: 0.06em;
    color: var(--text-main);
}

.logo-cn {
    font-size: 0.78rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.22s ease;
}

.nav-menu a:hover,
.nav-active {
    color: var(--accent) !important;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch-btn {
    border: 1px solid var(--line-strong);
    color: var(--text-main);
    background: transparent;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.lang-switch-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

section {
    position: relative;
    padding: 112px 0;
}

.hero {
    min-height: 100vh;
    padding-top: 150px;
    display: flex;
    align-items: center;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 40px;
    align-items: stretch;
}

.eyebrow,
.panel-label,
.game-label,
.contact-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.eyebrow::before,
.panel-label::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.hero-copy {
    align-self: center;
    max-width: 760px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 18px 0 22px;
}

.title-main {
    font-family: var(--display-font);
    font-size: clamp(3.5rem, 8vw, 5.7rem);
    letter-spacing: 0.04em;
    line-height: 0.95;
}

.title-sub {
    font-size: 0.95rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.hero-subtitle {
    font-family: var(--display-font);
    font-size: clamp(1.3rem, 2.3vw, 2rem);
    line-height: 1.35;
    max-width: 50ch;
    text-wrap: balance;
    margin-bottom: 18px;
}

.hero-description,
.section-subtitle,
.about-text p,
.team-manifesto p,
.feedback-note p,
.feedback-success p,
.game-info > p,
.contact-item p,
.submission-row {
    color: var(--text-soft);
}

.hero-description {
    max-width: 620px;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

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

.btn-primary {
    background: var(--accent);
    color: #17120d;
    box-shadow: 0 12px 26px rgba(148, 107, 56, 0.24);
}

.btn-primary:hover {
    background: #d8b57b;
}

.btn-primary.is-loading {
    opacity: 0.78;
    cursor: wait;
}

.btn-secondary {
    border-color: var(--line-strong);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.btn-steam {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--text-main);
}

.btn-steam:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.game-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.card,
.hero-panel,
.lang-btn,
.feedback-form-wrap,
.feedback-note,
.feedback-success {
    background: linear-gradient(180deg, rgba(28, 33, 38, 0.96), rgba(21, 25, 29, 0.95));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
}

.hero-note {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.hero-note:first-of-type {
    margin-top: 2px;
}

.hero-note-index,
.card-index,
.archive-mark,
.success-mark {
    font-family: var(--display-font);
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    color: var(--accent);
}

.hero-note h3,
.value-card h4,
.game-info h3,
.stat-item h3,
.contact-item h4,
.feedback-note h3,
.feedback-success h3 {
    color: var(--text-main);
    margin-bottom: 8px;
}

.hero-note p {
    color: var(--text-soft);
    font-size: 0.96rem;
}

.section-heading {
    margin-bottom: 30px;
}

.section-title {
    font-family: var(--display-font);
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    line-height: 1.04;
    margin: 14px 0 12px;
}

.section-subtitle {
    max-width: 760px;
    font-size: 1rem;
}

.about-layout,
.team-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 24px;
}

.about-text,
.team-manifesto,
.feedback-note,
.feedback-form-wrap,
.feedback-success,
.contact-form {
    padding: 32px;
}

.about-text h3,
.team-manifesto h3,
.feedback-note h3 {
    font-family: var(--display-font);
    font-size: 1.8rem;
    margin-bottom: 18px;
}

.about-values,
.team-stats {
    display: grid;
    gap: 18px;
}

.value-card,
.stat-item {
    padding: 26px;
}

.card-index {
    display: inline-block;
    margin-bottom: 18px;
}

.games-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 24px;
}

.game-card {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(28, 33, 38, 0.96), rgba(18, 22, 26, 0.96));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.game-card-feature .game-image {
    border-bottom: 1px solid var(--line);
}

.game-image {
    background: #111418;
}

.game-image img {
    display: block;
    width: 100%;
    height: auto;
}

.game-info {
    padding: 28px;
}

.game-status {
    color: var(--accent);
    margin-bottom: 18px;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-soft);
    font-size: 0.86rem;
}

.archive-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.team-manifesto {
    min-height: 100%;
    display: flex;
    align-items: center;
}

.contact-content {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
}

.contact-info {
    display: grid;
    gap: 18px;
}

.contact-item {
    padding: 24px 26px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
}

.contact-label {
    align-self: start;
    justify-self: start;
    padding-top: 2px;
}

.contact-form {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    color: var(--text-soft);
    margin-bottom: 10px;
    font-size: 0.92rem;
}

.form-group input,
.form-group textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(200, 165, 107, 0.06);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c8a56b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-select option {
    background: var(--bg-soft);
    color: var(--text-main);
}

.feedback-section {
    min-height: 100vh;
    padding-top: 146px;
}

.page-heading {
    max-width: 820px;
    margin: 0 auto 36px;
}

.feedback-shell {
    max-width: 820px;
    margin: 0 auto;
}

.feedback-form-wrap {
    position: static;
    padding: 34px 34px 30px;
}

.feedback-form-intro {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.feedback-form-note {
    color: var(--text-soft);
    font-size: 1rem;
}

.feedback-success {
    max-width: 820px;
    margin: 36px auto 0;
    text-align: center;
}

.success-mark {
    display: inline-block;
    margin-bottom: 14px;
}

.footer {
    padding: 42px 0;
    border-top: 1px solid var(--line);
    background: rgba(10, 13, 16, 0.7);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.footer-note {
    color: var(--text-soft);
    margin-bottom: 10px;
}

.footer p:last-child {
    color: var(--text-dim);
    font-size: 0.92rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.lang-selector-page {
    visibility: visible !important;
}

.lang-selector {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.lang-selector-inner {
    width: min(560px, 100%);
    text-align: center;
    padding: 44px 36px;
    background: linear-gradient(180deg, rgba(28, 33, 38, 0.96), rgba(18, 22, 26, 0.96));
    border: 1px solid var(--line);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.lang-selector-logo {
    height: 110px;
    width: auto;
    margin-bottom: 20px;
}

.lang-selector-title {
    font-family: var(--display-font);
    font-size: clamp(2.8rem, 7vw, 4.2rem);
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.lang-selector-subtitle {
    color: var(--text-soft);
    margin-bottom: 28px;
    letter-spacing: 0.08em;
}

.lang-selector-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.lang-btn {
    min-width: 160px;
    padding: 22px 18px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lang-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(37, 43, 49, 0.96), rgba(21, 25, 29, 0.96));
}

.lang-btn-main {
    display: block;
    font-family: var(--display-font);
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.lang-btn-sub {
    color: var(--text-dim);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
}

@media (max-width: 980px) {
    .hero-shell,
    .about-layout,
    .games-grid,
    .team-layout,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-subtitle {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 82px;
        left: 0;
        right: 0;
        padding: 22px 20px 28px;
        background: rgba(10, 13, 16, 0.96);
        border-bottom: 1px solid var(--line);
        display: grid;
        gap: 12px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    section {
        padding: 92px 0;
    }

    .hero {
        padding-top: 130px;
    }

    .contact-item {
        grid-template-columns: 1fr;
    }

    .lang-selector-buttons,
    .hero-buttons {
        flex-direction: column;
    }

    .btn,
    .lang-btn {
        width: 100%;
    }

    .about-text,
    .team-manifesto,
    .feedback-form-wrap,
    .feedback-success,
    .contact-form,
    .value-card,
    .stat-item,
    .archive-card,
    .hero-panel {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .logo-icon {
        height: 44px;
    }

    .logo-en {
        font-size: 1.25rem;
    }

    .logo-cn {
        font-size: 0.72rem;
        letter-spacing: 0.2em;
    }

    .section-title {
        font-size: 2rem;
    }
}
