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

:root {
    --page-bg: #101112;
    --panel-bg: rgba(18, 20, 22, 0.82);
    --panel-border: rgba(255, 255, 255, 0.09);
    --text-main: #f2f2f2;
    --text-soft: #d4d4d4;
    --text-muted: #a7abad;
    --accent: #bbfcfb;
}

body {
    min-height: 100vh;
    padding-top: 70px;
    font-family: Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background:
        radial-gradient(circle at top, rgba(187, 252, 251, 0.08), transparent 35%),
        linear-gradient(180deg, #151617 0%, var(--page-bg) 100%);
    background-color: var(--page-bg);
}

.game-page {
    min-height: calc(100vh - 70px);
    padding: 26px;
    background-position: center;
    background-size: cover;
}

.game-page::before {
    content: "";
    position: fixed;
    inset: 70px 0 0 0;
    background:
        linear-gradient(90deg, rgba(8, 9, 10, 0.92) 0%, rgba(8, 9, 10, 0.72) 55%, rgba(8, 9, 10, 0.88) 100%);
    pointer-events: none;
}

.game-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
    gap: 22px;
    align-items: stretch;
}

.hero-panel,
.side-panel {
    backdrop-filter: blur(12px);
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-panel {
    padding: 34px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(187, 252, 251, 0.08);
    border: 1px solid rgba(187, 252, 251, 0.16);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4.3rem);
    line-height: 0.98;
    margin-bottom: 14px;
}

.hero-subtitle {
    max-width: 70ch;
    color: var(--text-soft);
    font-size: 1.05rem;
    margin-bottom: 26px;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.meta-card {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.meta-value {
    display: block;
    color: var(--text-main);
    font-weight: bold;
    font-size: 1rem;
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.platform-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-soft);
    font-size: 0.92rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button,
.button-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.button {
    color: #141414;
    background: linear-gradient(180deg, #f5f5f5 0%, #d8d8d8 100%);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.button-muted {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.button:hover,
.button-muted:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.side-panel {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.status-card,
.info-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-badge {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: bold;
}

.status-badge.available {
    background: rgba(0, 209, 102, 0.18);
    color: #99efc0;
}

.status-badge.unavailable {
    background: rgba(255, 170, 0, 0.18);
    color: #ffd17a;
}

.status-badge.discontinued {
    background: rgba(255, 81, 81, 0.18);
    color: #ff9b9b;
}

.card-title {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-card p,
.status-card p {
    color: var(--text-soft);
}

.loading-state,
.error-state {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 820px;
    margin: 50px auto 0 auto;
    padding: 26px;
    border-radius: 20px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    text-align: center;
}

@media (max-width: 980px) {
    .game-shell {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .game-page {
        padding: 16px;
    }

    .hero-panel,
    .side-panel {
        border-radius: 18px;
    }

    .hero-panel {
        padding: 22px 18px;
    }

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

    .actions a {
        width: 100%;
    }
}
