﻿:root {
    --bg: #f4efe3;
    --surface: rgba(255, 251, 240, 0.88);
    --ink: #203038;
    --muted: #5f6f74;
    --accent: #0f766e;
    --accent-strong: #0b5b55;
    --accent-warm: #c8791f;
    --line: rgba(32, 48, 56, 0.12);
    --shadow: 0 24px 48px rgba(32, 48, 56, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Trebuchet MS", "Avenir Next", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(200, 121, 31, 0.14), transparent 24%),
        radial-gradient(circle at right 20% top 10%, rgba(15, 118, 110, 0.18), transparent 20%),
        linear-gradient(180deg, #f7f3e8 0%, var(--bg) 52%, #efe5cf 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(6px);
}

body::before {
    width: 240px;
    height: 240px;
    top: 72px;
    right: -60px;
    background: rgba(15, 118, 110, 0.08);
}

body::after {
    width: 280px;
    height: 280px;
    left: -80px;
    bottom: 40px;
    background: rgba(200, 121, 31, 0.1);
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
    position: relative;
    z-index: 1;
}

h2,
h3,
p,
ul {
    margin: 0;
}

.hall {
    padding: 18px;
    border: 1px solid rgba(32, 48, 56, 0.08);
    border-radius: 32px;
    background: rgba(255, 252, 245, 0.64);
}

.hall-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    padding: 12px 12px 22px;
}

.section-kicker {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h2 {
    font-size: 1.6rem;
    letter-spacing: -0.03em;
}

.section-note {
    color: var(--muted);
    max-width: 24rem;
    line-height: 1.6;
    text-align: right;
}

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

.game-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 244, 233, 0.92));
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    padding: 22px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 56px rgba(32, 48, 56, 0.16);
}

.card-top,
.card-footer,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.card-top {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.card-status,
.card-difficulty,
.age-label,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.card-status {
    background: rgba(15, 118, 110, 0.12);
    color: var(--accent-strong);
}

.card-difficulty {
    background: rgba(200, 121, 31, 0.12);
    color: var(--accent-warm);
}

h3 {
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.card-summary {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.75;
    min-height: 84px;
}

.tag-list {
    margin-top: 16px;
}

.tag {
    background: #f4eee0;
    color: #40525a;
}

.card-footer {
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
}

.age-label {
    background: #f0ead8;
    color: var(--ink);
}

.enter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    background: var(--accent);
    color: #f8fbfa;
    text-decoration: none;
    font-weight: 700;
}

.enter-link:hover {
    background: var(--accent-strong);
}

.empty-card {
    display: grid;
    place-items: center;
    min-height: 220px;
    text-align: center;
}

.empty-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.empty-desc {
    margin-top: 8px;
    color: var(--muted);
}

@media (max-width: 820px) {
    .page-shell {
        width: min(100% - 20px, 1120px);
        padding-top: 20px;
    }

    .hall {
        padding: 14px;
    }

    .hall-header {
        align-items: start;
    }

    .section-note {
        text-align: left;
    }

    .card-summary {
        min-height: auto;
    }

    .game-card {
        border-radius: 24px;
    }

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

@media (max-width: 560px) {
    .page-shell {
        width: calc(100% - 16px);
    }

    .game-card {
        padding: 20px;
    }

    .hall-header {
        flex-direction: column;
        padding: 8px 8px 18px;
    }

    .card-footer {
        align-items: stretch;
    }

    .enter-link {
        width: 100%;
    }

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