:root {
    color-scheme: dark;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #111522;
    color: #f4f5fa;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(ellipse at 80% 0%, #252b46 0, transparent 55%);
    min-height: 100vh;
}

main {
    max-width: 1080px;
    margin: auto;
    padding: 72px 28px 32px;
}

.eyebrow,
.genre {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .16em;
}

.eyebrow {
    color: #abaeca;
}

h1 {
    font-size: clamp(42px, 7vw, 76px);
    letter-spacing: -.055em;
    line-height: 1.1;
    margin: 20px 0;
}

h1 span {
    color: #b9ed8d;
}

.intro {
    color: #b9bed0;
    line-height: 1.7;
    font-size: 18px;
}

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

.card {
    color: inherit;
    text-decoration: none;
    border: 1px solid #363c51;
    border-radius: 20px;
    overflow: hidden;
    background: #1a1f30;
    transition: transform .18s, border-color .18s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #b9ed8d;
}

.card:focus-visible {
    outline: 3px solid #f8d47d;
    outline-offset: 6px;
}

.art {
    height: 230px;
    overflow: hidden;
    position: relative;
    display: grid;
    place-items: center;
}

.meadow {
    background: #dceac7;
}

.meadow::before,
.meadow::after {
    content: "";
    position: absolute;
    width: 150%;
    height: 180px;
    border-radius: 50%;
    background: #7f9b59;
    left: -15%;
    top: 140px;
    transform: rotate(-12deg);
}

.meadow::after {
    background: #4e703c;
    top: 185px;
    transform: rotate(9deg);
}

.sun {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff4b1;
    top: 28px;
    right: 50px;
}

.meadow img {
    width: 112px;
    height: 112px;
    z-index: 1;
    transform: rotate(-14deg);
}

.city {
    background: repeating-linear-gradient(0deg, transparent 0 29px, #283054 30px 31px), repeating-linear-gradient(90deg, #171d37 0 29px, #283054 30px 31px);
}

.flappy {
    background: #172018;
    border-color: #3b4634;
}

.flappy .genre {
    color: #d8f483;
}

.flappy:hover {
    border-color: #d8f483;
}

.cavern {
    background: radial-gradient(circle at 22% 28%, #d8f48366 0 1px, transparent 2px), radial-gradient(circle at 62% 62%, #d8f48366 0 1px, transparent 2px), linear-gradient(#142b28, #263a28);
    background-size: 83px 71px, 113px 97px, auto;
}

.cavern::before,
.cavern::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 32px;
    background: #101f19;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 92% 100%, 85% 25%, 77% 70%, 68% 20%, 60% 100%, 51% 30%, 43% 80%, 34% 20%, 25% 100%, 17% 30%, 8% 75%, 0 25%);
}

.cavern::after {
    inset: auto 0 0;
    transform: rotate(180deg);
}

.cavern-moon {
    position: absolute;
    right: 35px;
    top: 35px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: -12px 6px 0 #c7d59b;
}

.flappy-title {
    position: absolute;
    left: 28px;
    top: 42px;
    color: #f3eedf;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.04em;
    z-index: 1;
}

.flappy-title strong {
    color: #d8f483;
}

.cavern img {
    position: absolute;
    right: 22px;
    bottom: 32px;
    width: 86px;
    height: 86px;
    transform: rotate(-10deg);
}

.cavern-caption {
    position: absolute;
    left: 28px;
    bottom: 35px;
    color: #a6b299;
    font-size: 8px;
    letter-spacing: .15em;
}

.city-label {
    position: absolute;
    left: 28px;
    font-weight: 900;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
    letter-spacing: -.05em;
    color: #f6da72;
    z-index: 1;
}

.reactor {
    position: absolute;
    right: 40px;
    font-size: 56px;
    color: #ffdf71;
}

.orbit {
    position: absolute;
    right: -20px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid #ae70f4;
    box-shadow: 0 0 45px #a361ed44, inset 0 0 45px #a361ed33;
}

.details {
    padding: 28px;
}

.genre {
    color: #b9ed8d;
    margin: 0 0 12px;
}

.vibes .genre {
    color: #dcc0ff;
}

h2 {
    font-size: 29px;
    margin: 0 0 12px;
    letter-spacing: -.035em;
}

.details>p:not(.genre) {
    color: #b9bed0;
    line-height: 1.65;
    margin: 0;
}

.play {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    font-weight: 700;
    padding-top: 20px;
    border-top: 1px solid #363c51;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    color: #929bb5;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    main {
        padding: 42px 20px 24px;
    }

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

    .art {
        height: 210px;
    }

    footer {
        flex-direction: column;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }
}

.merca .genre {
    color: #cfa963;
}

.merca:hover {
    border-color: #cfa963;
}

.resort {
    background: radial-gradient(ellipse at top right, #47634d, #10231c 75%);
    color: #eee5cc;
}

.merca-title {
    position: absolute;
    left: 28px;
    z-index: 1;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    line-height: .9;
    letter-spacing: -.02em;
    text-shadow: 3px 3px #162922;
}

.merca-title>span {
    color: #ea5944;
}

.merca-title small {
    display: block;
    margin-top: 16px;
    font-family: system-ui, sans-serif;
    font-size: 10px;
    letter-spacing: .16em;
    color: #cfa963;
}

.resort img {
    position: absolute;
    right: 24px;
    bottom: 0;
    width: 128px;
    height: 144px;
    image-rendering: pixelated;
}

.merca-star {
    position: absolute;
    right: 42px;
    top: 20px;
    font-size: 48px;
    color: #cfa963;
}

.eggs .genre {
    color: #8edbd4;
}

.eggs:hover {
    border-color: #8edbd4;
}

.egg-desktop {
    background: #008080;
    padding: 26px 32px;
}

.egg-window {
    position: relative;
    width: 100%;
    height: 100%;
    background: #c0c0c0;
    border: 3px solid;
    border-color: #fff #404040 #404040 #fff;
    box-shadow: 8px 8px 0 #005b5b;
    color: #202020;
}

.egg-titlebar {
    display: flex;
    justify-content: space-between;
    margin: 3px;
    padding: 5px 7px;
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    font: bold 12px Tahoma, sans-serif;
}

.egg-character {
    position: absolute;
    top: 41px;
    left: calc(50% - 36px);
    width: 72px;
    height: 91px;
    border: 3px solid #34312d;
    border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
    background: #fff8e5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font: bold 22px/1.1 system-ui, sans-serif;
}

.egg-caption {
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    font: bold 9px Tahoma, sans-serif;
}

.job {
    background: #1c2423;
}

.job .genre {
    color: #fa9d52;
}

.job:hover {
    border-color: #fa9d52;
}

.job-store {
    background: linear-gradient(90deg, #14201ff5, #14201f66), repeating-linear-gradient(0deg, #35433b 0 44px, #62705c 45px 49px, #1a2823 50px 58px);
}

.job-title {
    position: absolute;
    left: 28px;
    top: 28px;
    color: #edf1e8;
    font: 900 clamp(38px, 5vw, 54px)/.95 Impact, "Arial Narrow", sans-serif;
    letter-spacing: -.025em;
}

.job-title strong {
    color: #fa9d52;
    display: block;
}

.job-store img {
    position: absolute;
    right: 28px;
    top: 45px;
    width: 64px;
    height: 64px;
    transform: rotate(8deg);
}

.job-caption {
    position: absolute;
    left: 28px;
    bottom: 22px;
    color: #bac8b5;
    font-size: 9px;
    letter-spacing: .12em;
}
