@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #071426;
    --panel: rgba(12, 30, 51, 0.94);
    --gold: #e8bd45;
    --gold-light: #ffd65a;
    --blue: #61b8f5;
    --green: #42d78a;
    --text: #eef6ff;
    --muted: #b6c7d9;
    --border: rgba(92, 169, 225, 0.24);
}

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.background-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 18% 8%, rgba(50, 155, 225, 0.16), transparent 42%),
        radial-gradient(ellipse at 85% 55%, rgba(58, 205, 132, 0.09), transparent 38%),
        linear-gradient(145deg, #071426, #102b48 55%, #06101d);
}

.header {
    width: 100%;
    background: rgba(7, 20, 37, 0.97);
    border-bottom: 1px solid var(--border);
}

.banner {
    display: block;
    width: 100%;
    line-height: 0;
}

.banner img {
    display: block;
    width: 100%;
    height: clamp(105px, 20vw, 220px);
    max-height: 220px;
    object-fit: cover;
    object-position: center;
}

.top-nav {
    min-height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 8px 16px;
    font-size: 12px;
    letter-spacing: 1px;
}

.top-nav a,
.back-link {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.top-nav a:hover,
.back-link:hover {
    color: var(--gold-light);
}

.nav-separator {
    color: var(--gold);
    font-size: 8px;
}

.current-page {
    color: var(--gold-light);
}

.main {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 55px 0 45px;
    flex: 1;
}

.intro {
    text-align: center;
    margin-bottom: 42px;
}

.eyebrow,
.card-type {
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.eyebrow {
    margin-bottom: 12px;
}

.intro h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 2px;
}

.intro h1 span {
    color: var(--gold-light);
}

.intro-text {
    max-width: 600px;
    margin: 17px auto 18px;
    color: var(--muted);
    font-size: 14px;
}

.status-line {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(66, 215, 138, 0.8);
}

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

.game-card {
    min-height: 330px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 24px 27px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}

.game-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--blue);
    opacity: 0.8;
}

.game-card:hover {
    transform: translateY(-7px);
    border-color: var(--gold);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.mobile-card::before {
    background: var(--blue);
}

.auto-card {
    border-color: rgba(66, 215, 138, 0.48);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(66, 215, 138, 0.10), transparent 58%),
        var(--panel);
}

.auto-card::before {
    background: var(--green);
}

.auto-card:hover {
    border-color: var(--green);
    box-shadow: 0 18px 42px rgba(66, 215, 138, 0.12);
}

.pc-card::before {
    background: var(--gold);
}

.card-icon {
    min-height: 75px;
    display: grid;
    place-items: center;
    font-size: 48px;
    filter: drop-shadow(0 0 14px rgba(97, 184, 245, 0.22));
}

.card-type {
    margin: 12px 0 4px;
    font-size: 9px;
    letter-spacing: 2px;
}

.game-card h2 {
    color: var(--gold-light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 35px;
    letter-spacing: 3px;
}

.auto-card h2 {
    color: var(--green);
}

.card-description {
    max-width: 260px;
    margin: 9px auto 22px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.card-action {
    width: 100%;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.card-action span {
    margin-left: 7px;
    font-size: 15px;
}

.auto-card .card-action {
    color: var(--green);
}

.recommended {
    position: absolute;
    top: 13px;
    right: 13px;
    padding: 4px 8px;
    color: #071426;
    background: var(--green);
    border-radius: 3px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.mission-note {
    max-width: 760px;
    display: flex;
    align-items: center;
    gap: 17px;
    margin: 38px auto 28px;
    padding: 17px 22px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(12, 30, 51, 0.68);
}

.note-symbol {
    color: var(--blue);
    font-size: 32px;
}

.mission-note p {
    color: var(--muted);
    font-size: 11px;
}

.mission-note strong {
    color: var(--gold-light);
    font-size: 10px;
    letter-spacing: 1.5px;
}

.back-link {
    display: block;
    width: fit-content;
    margin: 0 auto;
    font-size: 12px;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 4%;
    border-top: 1px solid var(--border);
    background: rgba(7, 20, 37, 0.88);
    color: #8298ad;
    font-size: 9px;
    letter-spacing: 1.5px;
}

@media (max-width: 800px) {
    .main {
        padding-top: 38px;
    }

    .game-grid {
        grid-template-columns: 1fr;
        max-width: 470px;
        margin: 0 auto;
        gap: 16px;
    }

    .game-card {
        min-height: 290px;
    }

    .intro {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .main {
        width: 90%;
        padding-top: 30px;
    }

    .top-nav {
        font-size: 10px;
    }

    .game-card {
        padding: 30px 20px 23px;
    }

    .mission-note {
        align-items: flex-start;
        padding: 14px;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
