:root {
    color-scheme: dark;
    --ink: #fff7df;
    --muted: #d9c5a6;
    --panel: rgba(33, 16, 54, 0.78);
    --panel-strong: rgba(22, 10, 38, 0.9);
    --gold: #ffd36b;
    --coral: #ff765d;
    --cyan: #50e3d4;
    --border: rgba(255, 211, 107, 0.24);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Cairo", "Noto Kufi Arabic", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 14%, rgba(80, 227, 212, 0.16), transparent 28rem),
        radial-gradient(circle at 88% 18%, rgba(255, 118, 93, 0.2), transparent 28rem),
        linear-gradient(135deg, #12081d 0%, #23103b 52%, #341c3f 100%);
}

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

.landing-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 42px;
}

.hero {
    position: relative;
    min-height: min(680px, calc(100vh - 72px));
    display: grid;
    align-items: end;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #180b29;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 8, 29, 0.95) 0%, rgba(18, 8, 29, 0.76) 42%, rgba(18, 8, 29, 0.18) 100%),
        linear-gradient(0deg, rgba(18, 8, 29, 0.92) 0%, rgba(18, 8, 29, 0.08) 62%);
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: url("/game/assets/Main%20lobby/main-lobby-bg.png");
    background-size: cover;
    background-position: center;
    opacity: 0.82;
    transform: scale(1.02);
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(660px, 100%);
    padding: clamp(28px, 6vw, 72px);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0;
}

h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5.6rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.summary {
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.34rem);
    line-height: 1.8;
}

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

.actions a,
.game-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    padding: 0 22px;
    font-weight: 900;
}

.primary-action,
.game-card a {
    color: #241325;
    background: linear-gradient(180deg, #ffe49a, var(--gold));
    box-shadow: 0 12px 28px rgba(255, 211, 107, 0.24);
}

.secondary-action {
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.games-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.game-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 170px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
}

.game-card.muted {
    background: var(--panel-strong);
    opacity: 0.72;
}

.game-status {
    margin: 0 0 6px;
    color: var(--cyan);
    font-size: 0.86rem;
    font-weight: 900;
}

.game-card h2 {
    margin: 0;
    font-size: 1.7rem;
    letter-spacing: 0;
}

.game-card p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 760px) {
    .landing-shell {
        width: min(100% - 20px, 1180px);
        padding: 10px 0 24px;
    }

    .hero {
        min-height: 72vh;
    }

    .hero::after {
        background:
            linear-gradient(0deg, rgba(18, 8, 29, 0.96) 0%, rgba(18, 8, 29, 0.54) 68%, rgba(18, 8, 29, 0.12) 100%);
    }

    .hero-copy {
        padding: 24px;
    }

    .actions {
        display: grid;
    }

    .games-section {
        grid-template-columns: 1fr;
    }

    .game-card {
        align-items: stretch;
        flex-direction: column;
    }
}
