* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #f8fafc;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.22), transparent 34rem),
        #0f172a;
}

img {
    max-width: 100%;
    display: block;
}

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

.hero-section {
    min-height: 72vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    padding: 72px 0 48px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #67e8f9;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 18px;
    font-size: clamp(3rem, 8vw, 6.6rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-text {
    max-width: 620px;
    color: #cbd5e1;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.hero-button,
.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    color: #08111f;
    background: #22d3ee;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease;
}

.hero-button:hover,
.play-button:hover {
    transform: translateY(-2px);
    background: #67e8f9;
}

.hero-panel {
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.mini-arena {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 2px solid rgba(103, 232, 249, 0.35);
    border-radius: 24px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        #020617;
    background-size: 42px 42px;
}

.paddle,
.ball,
.obstacle {
    position: absolute;
    display: block;
}

.paddle {
    width: 12px;
    height: 76px;
    border-radius: 999px;
    background: #f8fafc;
}

.paddle-left {
    left: 28px;
    top: 38%;
}

.paddle-right {
    right: 28px;
    top: 28%;
}

.ball {
    width: 18px;
    height: 18px;
    left: 48%;
    top: 47%;
    border-radius: 50%;
    background: #facc15;
    box-shadow: 0 0 28px rgba(250, 204, 21, 0.8);
}

.obstacle {
    width: 16px;
    height: 84px;
    border-radius: 999px;
    background: #a78bfa;
}

.obstacle-one {
    left: 42%;
    top: 18%;
}

.obstacle-two {
    right: 38%;
    bottom: 16%;
}

.games-section {
    padding: 48px 0 86px;
}

.section-header {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-header h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.04em;
}

.section-header p:not(.eyebrow) {
    color: #cbd5e1;
    line-height: 1.7;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
    justify-content: start;
    gap: 24px;
}

.game-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.26);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.game-card:hover,
.game-card:focus-within {
    transform: translateY(-8px);
    border-color: rgba(103, 232, 249, 0.8);
    background: rgba(15, 23, 42, 0.94);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(34, 211, 238, 0.25),
        0 0 34px rgba(34, 211, 238, 0.22);
}

.game-image-link {
    display: block;
    background: #020617;
}

.game-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 220ms ease, filter 220ms ease;
}

.game-card:hover img,
.game-card:focus-within img {
    transform: scale(1.045);
    filter: brightness(1.12) saturate(1.12);
}

.game-card-body {
    padding: 22px;
}

.game-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.game-meta strong {
    color: #86efac;
}

.game-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.game-card p {
    min-height: 76px;
    color: #cbd5e1;
    line-height: 1.6;
}

.play-button {
    min-height: 44px;
    padding: 0 18px;
}

.game-card:hover .play-button,
.game-card:focus-within .play-button {
    background: #67e8f9;
}

@media (max-width: 820px) {
    .hero-section {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 48px;
    }

    .hero-panel {
        order: -1;
    }
}


@media (max-width: 640px) {
    .games-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-card {
        max-width: none;
    }
}
