:root {
    --bg: #000010;
    --green: #00ff08;
    --green-bright: #00ff3c;
    --green-soft: #00ff7b;
    --violet: #4c00ff;
    --text: #c9c8ff;
    --text-muted: #a7a5d9;
    --surface: rgba(8, 10, 28, 0.82);
    --surface-border: rgba(0, 255, 123, 0.24);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg);
    color: var(--green);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

body::before {
    width: 300px;
    height: 300px;
    top: 20%;
    left: 25%;
    background: radial-gradient(circle, rgba(102, 252, 102, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    animation: float 8s ease-in-out infinite alternate;
}

body::after {
    width: 400px;
    height: 400px;
    right: 20%;
    bottom: 15%;
    background: radial-gradient(circle, rgba(78, 205, 78, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    animation: float 12s ease-in-out infinite alternate-reverse;
}

.container {
    position: relative;
    z-index: 1;
    width: min(100%, 980px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.logo {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: var(--green-bright);
    font-size: clamp(3rem, 9vw, 5rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    text-transform: lowercase;
    animation: pulse 3s ease-in-out infinite;
}

.logo-small {
    font-size: clamp(2.4rem, 7vw, 3.6rem);
}

.logo-accent {
    color: var(--violet);
}

.tagline {
    margin-bottom: 1.4rem;
    color: var(--green-soft);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.2rem;
}

.site-nav a,
.site-footer a {
    color: var(--green-soft);
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.24em;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible,
.site-nav a[aria-current="page"] {
    color: var(--green-bright);
}

.site-nav a[aria-current="page"] {
    text-decoration: underline;
}

.divider {
    width: 50px;
    height: 2px;
    margin: 2rem auto;
    background-color: var(--violet);
}

.intro {
    max-width: 760px;
    margin: 0 auto 2rem;
}

.intro h1,
.game-detail h1 {
    color: var(--green-bright);
    line-height: 1.1;
}

.intro h1 {
    margin-bottom: 0.9rem;
    font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.intro p,
.game-detail p,
.game-detail li {
    color: var(--text);
    line-height: 1.7;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    text-align: left;
}

.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 300px;
    padding: 1.4rem;
    border: 1px solid var(--surface-border);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 18, 40, 0.96) 0%, var(--surface) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
}

.game-card-link {
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card-link:hover,
.game-card-link:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 123, 0.55);
    box-shadow: 0 22px 50px rgba(76, 0, 255, 0.22);
}

.game-card-image,
.game-hero-image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(0, 255, 123, 0.18);
    border-radius: 14px;
    object-fit: cover;
}

.game-card-image {
    aspect-ratio: 300 / 155;
}

.game-card-visual,
.game-hero-placeholder {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 123, 0.18);
    border-radius: 14px;
    background:
        radial-gradient(circle at 25% 30%, rgba(0, 255, 123, 0.14), transparent 25%),
        radial-gradient(circle at 70% 65%, rgba(76, 0, 255, 0.24), transparent 35%),
        linear-gradient(145deg, rgba(16, 28, 34, 0.98), rgba(10, 7, 32, 0.98));
}

.game-card-visual {
    min-height: 155px;
}

.game-hero-placeholder {
    min-height: 280px;
}

.microbe {
    position: absolute;
    display: block;
    width: 54px;
    height: 54px;
    border: 2px solid rgba(0, 255, 123, 0.65);
    border-radius: 52% 48% 57% 43%;
    background: radial-gradient(circle at 35% 30%, rgba(0, 255, 123, 0.56), rgba(0, 140, 78, 0.22) 55%, transparent 70%);
    box-shadow: 0 0 24px rgba(0, 255, 123, 0.18);
}

.microbe::before,
.microbe::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(200, 255, 220, 0.8);
}

.microbe::before {
    top: 14px;
    left: 14px;
}

.microbe::after {
    right: 11px;
    bottom: 12px;
}

.microbe-one {
    top: 18%;
    left: 14%;
    transform: rotate(12deg) scale(1.12);
}

.microbe-two {
    top: 48%;
    left: 44%;
    transform: rotate(-20deg) scale(0.82);
}

.microbe-three {
    top: 16%;
    right: 12%;
    transform: rotate(34deg) scale(0.62);
}

.microbe-four {
    right: 18%;
    bottom: 12%;
    transform: rotate(-8deg) scale(1.3);
}

.game-card-badge {
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(76, 0, 255, 0.18);
    color: var(--green-soft);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.game-card-title {
    color: var(--green-bright);
    font-size: 1.55rem;
    line-height: 1.1;
}

.game-card-text {
    flex: 1;
    color: var(--text);
    line-height: 1.6;
}

.game-card-cta {
    color: var(--green-soft);
    font-size: 0.95rem;
    font-weight: 700;
}

.game-page {
    text-align: left;
}

.compact-header {
    margin-bottom: 2rem;
    text-align: center;
}

.game-detail {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem;
    border: 1px solid var(--surface-border);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 18, 40, 0.96) 0%, var(--surface) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.game-detail > * + * {
    margin-top: 1.1rem;
}

.game-detail h1 {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
}

.game-detail h2 {
    margin-bottom: 0.45rem;
    color: var(--green-bright);
    font-size: 1.45rem;
}

.game-detail .lead {
    color: #e2e1ff;
    font-size: 1.08rem;
}

.game-detail section {
    margin-top: 2rem;
}

.feature-list {
    padding-left: 1.35rem;
}

.feature-list li + li {
    margin-top: 0.45rem;
}

.launch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(0, 255, 123, 0.42);
    border-radius: 999px;
    background: rgba(76, 0, 255, 0.14);
    color: var(--green-bright);
    font-weight: 700;
    text-decoration: none;
}

.launch-button:hover,
.launch-button:focus-visible {
    border-color: rgba(0, 255, 123, 0.7);
    box-shadow: 0 0 24px rgba(0, 255, 123, 0.18);
}

.site-footer {
    margin-top: 2.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(20px) scale(1.1);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.95;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
    }
}

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

@media (max-width: 640px) {
    .container {
        padding: 2rem 1.25rem 1.5rem;
    }

    .site-nav {
        flex-direction: column;
        gap: 0.55rem;
    }

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

    .game-detail {
        padding: 1.15rem;
    }

    .game-hero-placeholder {
        min-height: 210px;
    }
}
