* {
    box-sizing: border-box;
}

:root {
    --bg: #111214;
    --panel: #1b1e24;
    --panel-soft: #242832;
    --text: #f5f7fb;
    --muted: #a7afbd;
    --line: rgba(255, 255, 255, 0.12);
    --lime: #b6f24a;
    --cyan: #39d5ff;
    --pink: #ff5ca8;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(120deg, rgba(57, 213, 255, 0.15), transparent 34rem),
        linear-gradient(240deg, rgba(255, 92, 168, 0.14), transparent 32rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
iframe {
    font: inherit;
}

code {
    color: var(--cyan);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 18px 0;
    backdrop-filter: blur(18px);
}

.brand,
.site-nav {
    display: inline-flex;
    align-items: center;
}

.brand {
    gap: 0.75rem;
    font-weight: 900;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #111214;
    background: var(--lime);
    border-radius: 8px;
    box-shadow: 0 0 28px rgba(182, 242, 74, 0.28);
}

.site-nav {
    gap: 0.35rem;
    padding: 6px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.site-nav a {
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    font-size: 0.92rem;
}

.site-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
}

.intro {
    display: grid;
    gap: 1rem;
    align-content: center;
    min-height: 34vh;
    padding: 4rem 0 2rem;
}

.eyebrow {
    margin: 0;
    color: var(--lime);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 840px;
    margin-bottom: 0;
    font-size: clamp(2.6rem, 7vw, 5.7rem);
    line-height: 1;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1;
}

.intro p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.game-list,
.play-section {
    padding: 2.5rem 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.game-card {
    display: grid;
    gap: 0.8rem;
    min-height: 220px;
    padding: 1.2rem;
    color: var(--text);
    text-align: left;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.game-card:hover,
.game-card.active {
    border-color: rgba(182, 242, 74, 0.52);
    background: rgba(255, 255, 255, 0.1);
}

.game-card:disabled {
    cursor: not-allowed;
    opacity: 0.68;
}

.game-card strong {
    margin-top: auto;
    font-size: 1.45rem;
}

.game-card span:last-child {
    color: var(--muted);
    line-height: 1.55;
}

.tag {
    width: max-content;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tag.live {
    color: #111214;
    background: var(--lime);
}

.tag.soon {
    color: var(--text);
    background: rgba(255, 255, 255, 0.12);
}

.frame-card {
    width: min(100%, 1080px);
    margin: 0 auto;
    padding: clamp(0.65rem, 2vw, 1rem);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

#gameFrame {
    display: block;
    width: 100%;
    height: min(84vh, 920px);
    min-height: 760px;
    background: var(--panel);
    border: 0;
    border-radius: 6px;
}

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

    #gameFrame {
        height: 920px;
        min-height: 920px;
    }
}

@media (max-width: 640px) {
    .site-header,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header,
    main {
        width: min(100% - 24px, 1180px);
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
    }

    .site-nav a {
        padding-inline: 0.7rem;
    }

    h1 {
        font-size: 3rem;
    }

    #gameFrame {
        height: 980px;
        min-height: 980px;
    }
}
