:root {
    --sky-top: #7ec8f7;
    --sky-bottom: #b8e6ff;
    --water-top: #2f9fd8;
    --water-bottom: #1a6fa8;
    --sand: #f2d489;
    --sand-dark: #d9b45f;
    --grass: #5cbf4a;
    --grass-dark: #3f9433;
    --ink: #23303a;
    --card: #fffdf5;
    --jungle-accent: #2f8f2f;
    --neon-accent: #b418c8;
    --locked-bg: #e4e4e4;
    --locked-ink: #626262;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: "Fredoka", Arial, Helvetica, sans-serif;
    background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
}

.hero {
    width: min(100% - 32px, 1080px);
    margin: 0 auto;
    padding: 28px 0 12px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 6px;
    color: #14405c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: #14405c;
    font-size: clamp(2.15rem, 6vw, 4.35rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.64);
    overflow-wrap: anywhere;
}

.tagline {
    margin: 8px auto 0;
    max-width: 620px;
    color: #2a5e80;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.35;
}

main {
    padding: 12px 16px 24px;
}

.world {
    max-width: 1080px;
    margin: 0 auto;
}

.map {
    position: relative;
    min-height: clamp(540px, 60vw, 660px);
    overflow: hidden;
    border: 4px solid #14405c;
    border-radius: var(--radius);
    background: linear-gradient(
        to bottom,
        var(--sky-top) 0%,
        var(--sky-bottom) 26%,
        var(--water-top) 26%,
        var(--water-bottom) 100%
    );
    box-shadow: 0 8px 0 rgba(20, 64, 92, 0.35);
}

.deco {
    position: absolute;
    pointer-events: none;
}

.sky-band {
    inset: 0;
}

.sun {
    position: absolute;
    top: 18px;
    right: 4%;
    width: 56px;
    height: 56px;
    border: 3px solid #f0b429;
    border-radius: var(--radius);
    background: #ffd93b;
    transform: rotate(45deg);
}

.cloud {
    position: absolute;
    height: 26px;
    border-radius: var(--radius);
    background: #ffffff;
    opacity: 0.9;
    animation: drift 14s ease-in-out infinite alternate;
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    bottom: 6px;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    background: #ffffff;
}

.cloud::before {
    left: 18px;
}

.cloud::after {
    right: 18px;
}

.cloud-1 {
    top: 24px;
    left: 8%;
    width: 110px;
}

.cloud-2 {
    top: 62px;
    left: 34%;
    width: 80px;
    animation-duration: 18s;
}

.cloud-3 {
    top: 32px;
    left: 62%;
    width: 95px;
    animation-duration: 11s;
}

@keyframes drift {
    from {
        transform: translateX(-14px);
    }

    to {
        transform: translateX(14px);
    }
}

.island-sand {
    left: 6%;
    right: 6%;
    top: 30%;
    bottom: 5%;
    background: linear-gradient(to bottom, var(--sand), var(--sand-dark));
    clip-path: polygon(
        6% 30%, 14% 18%, 26% 22%, 36% 10%, 50% 14%, 62% 6%,
        74% 16%, 86% 12%, 95% 28%, 100% 48%, 94% 70%, 98% 86%,
        84% 96%, 66% 90%, 50% 100%, 34% 92%, 18% 98%, 6% 84%,
        0% 62%, 4% 44%
    );
}

.island-grass {
    left: 10%;
    right: 10%;
    top: 34%;
    bottom: 10%;
    background: linear-gradient(to bottom, var(--grass), var(--grass-dark));
    clip-path: polygon(
        8% 28%, 18% 16%, 30% 22%, 40% 8%, 54% 14%, 66% 6%,
        78% 18%, 90% 14%, 98% 34%, 94% 56%, 98% 76%, 84% 92%,
        64% 86%, 48% 96%, 30% 88%, 14% 94%, 4% 74%, 0% 50%
    );
}

.waves {
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    background: repeating-linear-gradient(
        to right,
        rgba(255, 255, 255, 0.25) 0 18px,
        transparent 18px 60px
    );
    background-position: 0 20%;
    background-repeat: repeat-x;
    background-size: 120px 6px;
    opacity: 0.5;
    animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: 120px;
    }
}

.mountain {
    left: 38%;
    top: 24%;
    width: 150px;
    height: 120px;
    background: linear-gradient(to bottom, #ffffff 0 30%, #8fa3b0 30% 100%);
    clip-path: polygon(50% 0%, 78% 55%, 100% 100%, 0% 100%, 24% 52%);
}

.volcano {
    right: 14%;
    bottom: 12%;
    width: 130px;
    height: 100px;
    background: linear-gradient(to bottom, #e2542e 0 22%, #6e4632 22% 100%);
    clip-path: polygon(34% 0%, 66% 0%, 100% 100%, 0% 100%);
}

.tree {
    width: 44px;
    height: 64px;
}

.tree::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 46px;
    background: var(--grass-dark);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.tree::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 44px;
    width: 10px;
    height: 20px;
    background: #7a4b26;
}

.tree-1 {
    left: 14%;
    top: 46%;
}

.tree-2 {
    left: 21%;
    top: 55%;
    transform: scale(0.8);
}

.tree-3 {
    left: 11%;
    top: 60%;
    transform: scale(0.65);
}

.trail {
    left: 26%;
    top: 40%;
    width: 46%;
    height: 6px;
    background: repeating-linear-gradient(to right, #fffdf5 0 16px, transparent 16px 30px);
    opacity: 0.85;
    transform: rotate(14deg);
}

.landmark {
    position: absolute;
    display: flex;
    align-items: center;
    max-width: 250px;
    min-height: 76px;
    gap: 10px;
    padding: 10px 14px;
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--card);
    box-shadow: 4px 4px 0 rgba(20, 48, 58, 0.4);
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

a.landmark:hover,
a.landmark:focus-visible {
    box-shadow: 6px 8px 0 rgba(20, 48, 58, 0.4);
    outline: none;
    transform: translateY(-4px);
}

a.landmark:focus-visible {
    outline: 3px solid #14405c;
    outline-offset: 2px;
}

.pin {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 3px solid currentColor;
    border-radius: var(--radius);
    background: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.25;
}

.place {
    font-size: 1.12rem;
    font-weight: 700;
}

.game {
    color: #4a5a64;
    font-size: 0.92rem;
    font-weight: 600;
}

.cta {
    margin-top: 4px;
    font-size: 0.86rem;
    font-weight: 700;
}

.jungle {
    left: 6%;
    bottom: 16%;
    border-color: var(--jungle-accent);
}

.jungle .cta {
    color: var(--jungle-accent);
}

.speedway {
    right: 5%;
    top: 14%;
    border-color: var(--neon-accent);
}

.speedway .cta {
    color: var(--neon-accent);
}

.locked {
    border-color: #8a8a8a;
    border-style: dashed;
    color: var(--locked-ink);
    background: var(--locked-bg);
    box-shadow: 3px 3px 0 rgba(20, 48, 58, 0.25);
}

.locked .game,
.locked .cta {
    color: var(--locked-ink);
}

.locked .pin {
    background: #f5f5f5;
    font-size: 1.2rem;
    animation: none;
}

.frost-peak {
    left: 33%;
    top: 8%;
}

.lava-caves {
    right: 4%;
    bottom: 8%;
}

.site-footer {
    padding: 8px 16px 28px;
    color: #2a5e80;
    font-weight: 600;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 760px) {
    .hero {
        width: min(100% - 22px, 1080px);
        padding-top: 20px;
    }

    .hero h1 {
        max-width: 340px;
        margin-right: auto;
        margin-left: auto;
        font-size: clamp(1.85rem, 8vw, 2.45rem);
        line-height: 1;
    }

    .tagline {
        max-width: 330px;
        font-size: 1rem;
        line-height: 1.35;
    }

    main {
        padding: 10px 10px 20px;
    }

    .deco {
        display: none;
    }

    .map {
        display: flex;
        min-height: 0;
        flex-direction: column;
        gap: 14px;
        padding: 14px;
        background: linear-gradient(to bottom, var(--water-top), var(--water-bottom));
        box-shadow: 0 6px 0 rgba(20, 64, 92, 0.35);
    }

    .landmark,
    .frost-peak,
    .lava-caves,
    .jungle,
    .speedway {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        min-height: 96px;
        gap: 14px;
        padding: 16px;
    }

    .pin {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
    }

    .place {
        font-size: 1.28rem;
    }

    .game {
        font-size: 1rem;
    }

    .cta {
        font-size: 0.95rem;
    }

    a.landmark:hover {
        transform: none;
    }

    a.landmark:active {
        box-shadow: 2px 2px 0 rgba(20, 48, 58, 0.4);
        transform: translateY(2px);
    }
}

@media (max-width: 420px) {
    .hero {
        width: min(100% - 18px, 1080px);
    }

    .map {
        padding: 12px 10px;
    }

    .landmark,
    .frost-peak,
    .lava-caves,
    .jungle,
    .speedway {
        padding: 14px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cloud,
    .waves,
    .pin {
        animation: none;
    }

    .landmark,
    a.landmark:hover,
    a.landmark:focus-visible,
    a.landmark:active {
        transition: none;
        transform: none;
    }
}
