:root {
    --moss: #3f7d32;
    --moss-deep: #24521d;
    --leaf: #6fbf45;
    --sky: #8ed4ff;
    --cream: #fff6d8;
    --wood: #8a4f1e;
    --wood-dark: #5a3214;
    --ink: #2b3a1e;
    --bark: #3a2412;
    --honey: #ffd36a;
    --berry: #d94848;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: "Fredoka", Arial, Helvetica, sans-serif;
    background:
        linear-gradient(#8ed4ff 0 34%, #6fbf45 35% 58%, #3f7d32 59% 100%);
}

.woods {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.cloud {
    position: absolute;
    top: 7%;
    width: 120px;
    height: 36px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 28px 8px 0 rgba(255, 255, 255, 0.8), -22px 10px 0 rgba(255, 255, 255, 0.7);
}

.cloud-a { left: 8%; }
.cloud-b { right: 10%; top: 12%; transform: scale(0.8); }

.tree {
    position: absolute;
    bottom: 0;
    width: 120px;
    height: 280px;
    background:
        linear-gradient(#5a3214, #3a2412) 50% 100% / 28px 110px no-repeat,
        radial-gradient(circle at 50% 38%, #2f982c 0 70px, transparent 71px),
        radial-gradient(circle at 22% 48%, #247f30 0 46px, transparent 47px),
        radial-gradient(circle at 78% 50%, #247f30 0 50px, transparent 51px);
}

.tree-left { left: -18px; }
.tree-right { right: -18px; transform: scaleX(-1); }

.bush {
    position: absolute;
    bottom: -10px;
    width: 160px;
    height: 90px;
    background:
        radial-gradient(circle at 30% 60%, #2f982c 0 40px, transparent 41px),
        radial-gradient(circle at 70% 70%, #247f30 0 42px, transparent 43px),
        radial-gradient(circle at 50% 80%, #3f7d32 0 50px, transparent 51px);
}

.bush-left { left: 8%; }
.bush-right { right: 6%; }

.bear {
    position: absolute;
    right: 11%;
    bottom: 58px;
    width: 72px;
    height: 80px;
    background:
        radial-gradient(circle at 28% 14%, #8a5a2c 0 9px, transparent 10px),
        radial-gradient(circle at 72% 14%, #8a5a2c 0 9px, transparent 10px),
        radial-gradient(circle at 50% 32%, #8a5a2c 0 18px, transparent 19px),
        radial-gradient(circle at 50% 38%, #c99a62 0 8px, transparent 9px),
        radial-gradient(ellipse at 50% 76%, #8a5a2c 0 46%, transparent 47%),
        radial-gradient(ellipse at 50% 82%, #c99a62 0 24%, transparent 25%);
    filter: drop-shadow(0 5px 0 rgba(23, 63, 22, 0.28));
}

.bear::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 20px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3a2412;
    box-shadow: 16px 0 0 #3a2412, 8px 7px 0 #3a2412;
}

.shell {
    position: relative;
    z-index: 1;
    width: min(100% - 32px, 760px);
    margin: 0 auto;
    padding: 36px 0 72px;
}

.hero,
.game-card {
    background: linear-gradient(#fff8e4, #f4e2b6);
    border: 4px solid var(--wood-dark);
    box-shadow: 0 6px 0 rgba(58, 36, 18, 0.35);
}

.hero {
    padding: 28px 24px 24px;
    border-radius: 22px;
    text-align: center;
}

.eyebrow,
.card-kicker {
    margin: 0;
    color: #9a3a16;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 8px 0 10px;
    font-size: clamp(2rem, 8vw, 3.4rem);
    line-height: 0.95;
    color: #5a3214;
}

.lede {
    margin: 0 auto;
    max-width: 34rem;
    color: #4a3820;
    font-size: 1.05rem;
    line-height: 1.4;
}

.game-list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
    counter-reset: game;
}

.game-card {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
}

a.game-card:hover,
a.game-card:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.locked {
    opacity: 0.82;
}

.card-art {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 80%, #45a432 0 38px, transparent 39px),
        linear-gradient(#7ec8ff, #6fbf45 70%);
    overflow: hidden;
    border: 3px solid #5a3214;
}

.card-art.night {
    background: linear-gradient(#16325c, #24521d);
}

.card-art.berry {
    background: linear-gradient(#ffd36a, #d94848 78%);
}

.mini-bear {
    position: absolute;
    left: 18px;
    bottom: 10px;
    width: 38px;
    height: 44px;
    background:
        radial-gradient(circle at 28% 16%, #8a5a2c 0 6px, transparent 7px),
        radial-gradient(circle at 72% 16%, #8a5a2c 0 6px, transparent 7px),
        radial-gradient(circle at 50% 38%, #8a5a2c 0 12px, transparent 13px),
        radial-gradient(ellipse at 50% 78%, #8a5a2c 0 48%, transparent 49%);
}

.mini-basket {
    position: absolute;
    right: 8px;
    bottom: 12px;
    font-size: 1.3rem;
}

.mini-basket::before {
    content: "🧺";
}

.moon {
    position: absolute;
    left: 18px;
    top: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff6d8;
    box-shadow: 28px 28px 0 -6px #ffd36a;
}

.berry-dot {
    position: absolute;
    left: 28px;
    top: 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #7a1430;
    box-shadow: 16px 10px 0 #9a1d3c, -8px 16px 0 #d94848;
}

.card-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.card-copy strong {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    color: #5a3214;
}

.card-copy span:last-child {
    color: #4a3820;
    line-height: 1.35;
}

.play-pill,
.lock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 700;
    border: 3px solid #5a3214;
}

.play-pill {
    color: #fff8dd;
    background: linear-gradient(#b97932, #7d4519);
}

.lock-pill {
    color: #5a3214;
    background: #e7d3a2;
}

@media (max-width: 640px) {
    .tree,
    .bear {
        display: none;
    }

    .game-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .play-pill,
    .lock-pill {
        grid-column: 2;
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
