.monsterland {
    width: min(100%, 56rem);
    margin-inline: auto;
    text-align: center;
}

.monsterland-landschaft {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
    align-items: end;
    column-gap: clamp(.5rem, 3vw, 2rem);
    min-height: clamp(24rem, 62vw, 35rem);
    padding: 6rem clamp(.35rem, 5vw, 4rem) 2rem;
    border: 3px solid #8bc2a5;
    border-radius: 2rem;
    background: linear-gradient(#a0dcfa, #e0f9ee 44%, #a9d87c 45%, #72b95e);
    box-shadow: inset 0 0 2rem #44683b29, 0 .7rem 2rem #0005;
}

.monsterland-kulisse {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.monsterland-sonne {
    position: absolute;
    top: 5%;
    right: 12%;
    width: clamp(3rem, 12vw, 6rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 31%, #fff8cc, #ffdb77 69%, #f9b851);
    box-shadow: 0 0 2rem #fff1a7;
    animation: monsterland-sonnenlauf 130s linear -42s infinite;
}

.monsterland-sonne::after {
    content: "";
    position: absolute;
    inset: -29%;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at center, #fff5b4 0 55%, transparent 65%) center top / 9% 15% no-repeat,
        radial-gradient(ellipse at center, #fff5b4 0 55%, transparent 65%) center bottom / 9% 15% no-repeat,
        radial-gradient(ellipse at center, #fff5b4 0 55%, transparent 65%) left center / 15% 9% no-repeat,
        radial-gradient(ellipse at center, #fff5b4 0 55%, transparent 65%) right center / 15% 9% no-repeat,
        radial-gradient(ellipse at center, #fff0a0 0 53%, transparent 66%) 12% 12% / 10% 12% no-repeat,
        radial-gradient(ellipse at center, #fff0a0 0 53%, transparent 66%) 88% 12% / 10% 12% no-repeat,
        radial-gradient(ellipse at center, #fff0a0 0 53%, transparent 66%) 12% 88% / 10% 12% no-repeat,
        radial-gradient(ellipse at center, #fff0a0 0 53%, transparent 66%) 88% 88% / 10% 12% no-repeat;
    opacity: .48;
    animation: monsterland-sonnenstrahlen 19s ease-in-out infinite;
}

.monsterland-wolke {
    position: absolute;
    top: 17%;
    left: 10%;
    width: 18%;
    height: 7%;
    border-radius: 5rem;
    background: #fff9f3;
    box-shadow: .9rem -.6rem #fff9f3, 1.9rem -.3rem #fff9f3;
    animation: monsterland-wolkenzug 76s linear -20s infinite;
}

.monsterland-wolke.zweite {
    top: 9%;
    left: 48%;
    scale: .58;
    animation-duration: 101s;
    animation-delay: -58s;
}

@keyframes monsterland-wolkenzug {
    from { left: calc(-20% - 3rem); }
    to { left: 110%; }
}

@keyframes monsterland-sonnenlauf {
    0% { left: 10%; top: 10%; opacity: 0; }
    8% { opacity: 1; }
    50% { top: 4%; }
    92% { opacity: 1; }
    100% { left: 82%; top: 10%; opacity: 0; }
}

@keyframes monsterland-sonnenstrahlen {
    0%, 62%, 88%, 100% { opacity: .24; scale: .95; }
    70%, 82% { opacity: .9; scale: 1.12; }
    76% { opacity: .54; scale: 1.03; }
}

.monsterland-huegel {
    position: absolute;
    left: -12%;
    right: -9%;
    top: 30%;
    height: 27%;
    border-radius: 50% 65% 35% 20%;
    background: linear-gradient(160deg, #cdf2a1, #97c96c 68%);
    box-shadow: 5rem -1.6rem #b1db97, inset 0 .45rem #e4fac266;
}

.monsterland-teich {
    position: absolute;
    bottom: 4%;
    right: 5%;
    width: 34%;
    height: 16%;
    border: .3rem solid #bfe58e;
    border-radius: 50% 45% 51% 42%;
    background: radial-gradient(ellipse at 38% 30%, #b8f6df, #61cbd2 64%, #479fb3);
    box-shadow: 0 .25rem .4rem #47784260, inset 0 .25rem #328aa53b;
}

.monsterland-pilz {
    position: absolute;
    left: 5%;
    bottom: 12%;
    width: 1.12rem;
    height: 1.55rem;
    border-radius: .55rem;
    background: linear-gradient(90deg, #fff5d5, #eab879);
    rotate: -9deg;
}

.monsterland-pilz::before {
    content: "";
    position: absolute;
    inset: -.65rem -.56rem .8rem;
    border-radius: 70% 70% 38% 38%;
    background: radial-gradient(circle at 35% 35%, #fff4d1 0 9%, transparent 12%), linear-gradient(#ffa2aa, #d76082);
}

.monsterland-pilz.zweiter { left: 10%; bottom: 10%; scale: .7; rotate: 11deg; }

.monsterland-blume {
    position: absolute;
    left: var(--blumen-x);
    bottom: var(--blumen-y);
    width: clamp(.85rem, 3vw, 1.55rem);
    height: clamp(1.05rem, 4vw, 2rem);
    transform-origin: 50% 100%;
    animation: monsterland-blume-wachsen 5s var(--blumen-start) ease-out both,
        monsterland-blumenwind 4.7s var(--blumen-start) ease-in-out infinite;
}

.monsterland-blume:nth-of-type(even) { animation-duration: 5s, 5.8s; }

.monsterland-blume::before {
    content: "";
    position: absolute;
    inset: 30% 46% 0;
    border-radius: 1rem;
    background: linear-gradient(90deg, #417e3e, #7aaf51);
}

.monsterland-blume::after {
    content: "";
    position: absolute;
    bottom: 20%;
    left: 16%;
    width: 39%;
    height: 23%;
    rotate: 18deg;
    border-radius: 80% 10% 65% 15%;
    background: linear-gradient(155deg, #a5ce64, #568b40);
}

.monsterland-blume > span {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 7%;
    width: 86%;
    aspect-ratio: 1;
    transform-origin: 50% 70%;
    background:
        radial-gradient(circle at 50% 50%, #fff8cc 0 8%, #e8ad51 11% 18%, transparent 20%),
        radial-gradient(circle at 50% 23%, var(--bluetenfarbe) 0 21%, transparent 23%),
        radial-gradient(circle at 76% 44%, var(--bluetenfarbe) 0 22%, transparent 24%),
        radial-gradient(circle at 66% 74%, var(--bluetenfarbe) 0 22%, transparent 24%),
        radial-gradient(circle at 34% 74%, var(--bluetenfarbe) 0 22%, transparent 24%),
        radial-gradient(circle at 24% 44%, var(--bluetenfarbe) 0 22%, transparent 24%);
    filter: drop-shadow(0 .08rem .08rem #75544148);
    animation: monsterland-bluete-aufgehen 2.8s calc(var(--blumen-start) + 2.1s) ease-out both;
}

@keyframes monsterland-blume-wachsen {
    0% { opacity: 0; scale: .36 0; }
    16% { opacity: 1; }
    100% { opacity: 1; scale: 1 1; }
}

@keyframes monsterland-bluete-aufgehen {
    0% { opacity: 0; scale: .28 .42; }
    28% { opacity: 1; }
    100% { opacity: 1; scale: 1; }
}

@keyframes monsterland-blumenwind {
    0%, 100% { rotate: -5deg; }
    50% { rotate: 6deg; }
}

.monsterland-bewohner:not([hidden]) {
    position: relative;
    display: grid;
    min-height: clamp(11rem, 27vw, 18rem);
    padding: .8rem;
    align-content: space-evenly;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: clamp(.55rem, 2vw, 1.1rem) .35rem;
    margin: 0;
    list-style: none;
}

.monsterland-monster {
    position: relative;
    display: grid;
    justify-items: center;
    gap: .18rem;
    min-width: 0;
}

.monsterland-monster .schleimmonster-figur {
    width: min(85%, 5.2rem);
    animation: monsterland-huepfen 3.8s var(--phase), monsterland-wackeln 3.8s calc(var(--phase) + var(--versatz));
    animation-iteration-count: infinite;
    transform-origin: center bottom;
}

.monsterland-leer {
    justify-self: center;
    margin-bottom: 2rem;
    padding: .6rem 1rem .85rem;
    border-radius: 1rem;
    background: #fff7db;
    color: #31452b;
}

.monsterland-leer p { margin: 0 0 .3rem; }
.monsterland-leer a { font-weight: bold; }

.monsterland-pause {
    margin-top: 1rem;
    padding: .38rem .8rem;
    border: 1px solid #8bc2a5;
    border-radius: .8rem;
    background: #23392d;
    color: #fff;
    cursor: pointer;
}

.monsterland-pause[aria-pressed="true"] { background: #436553; }
.monsterland-landschaft.pausiert .monsterland-sonne,
.monsterland-landschaft.pausiert .monsterland-sonne::after,
.monsterland-landschaft.pausiert .monsterland-wolke,
.monsterland-landschaft.pausiert .monsterland-blume,
.monsterland-landschaft.pausiert .monsterland-blume > span,
.monsterland-landschaft.pausiert .schleimmonster-figur,
.monsterland-bewohner:is(.bonbon-bereit, .labor-zieht, .labor-laeuft) .schleimmonster-figur { animation-play-state: paused; }

@keyframes monsterland-huepfen {
    0%, 62%, 79%, 100% { translate: 0 0; }
    71% { translate: 0 -.72rem; }
}

@keyframes monsterland-wackeln {
    0%, 59%, 84%, 100% { transform: none; }
    64%, 78% { transform: scale(1.1, .9); }
    71% { transform: scale(.94, 1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .monsterland-sonne,
    .monsterland-sonne::after,
    .monsterland-wolke,
    .monsterland-blume,
    .monsterland-blume > span,
    .monsterland-monster .schleimmonster-figur { animation: none; }
}

.futterautomat {
    position: relative;
    align-self: end;
    width: 100%;
    margin: 0 0 .45rem;
    padding: .5rem .55rem .65rem;
    border: 2px solid #944364;
    border-radius: 2.3rem 2.3rem 1rem 1rem;
    background: linear-gradient(110deg, #ffc4c9, #ef91af 45%, #cf5f8c);
    box-shadow: inset .19rem .22rem #ffe8d9aa, inset -.2rem -.18rem #a3426d55,
        0 .38rem 0 -.05rem #864268, 0 .65rem .6rem -.15rem #42613970;
    color: #52213c;
}

.futterautomat::before,
.futterautomat::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -.5rem;
    width: 1.65rem;
    height: 1.65rem;
    border: 2px solid #944364;
    border-radius: 50%;
    background: radial-gradient(circle, #ffdab7 0 41%, #eb8aa9 45%);
}

.futterautomat::before { left: .55rem; }
.futterautomat::after { right: .55rem; }

.futterautomat h2 {
    margin: .15rem 0 .4rem;
    color: #52213c;
    font-size: clamp(.89rem, 2.4vw, 1.15rem);
    line-height: 1.2;
}

.futterautomat-fenster {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: end;
    margin: 0 auto .42rem;
    min-height: 2.9rem;
    padding: .3rem .1rem;
    border: 2px solid #944364;
    border-radius: 1.2rem 1.2rem .7rem .7rem;
    background: linear-gradient(150deg, #d9fffa, #a9e3ec 58%, #b1b8ea);
    box-shadow: inset 0 -.22rem #747ca64d;
    font-size: clamp(1.05rem, 3.2vw, 1.5rem);
    line-height: 1.25;
}

.futterautomat-fenster::after {
    position: absolute;
    content: "";
    inset: .15rem .2rem;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 20%, #fff8 21% 28%, transparent 29% 37%, #fff5 38% 42%, transparent 43%);
    pointer-events: none;
}

.futterautomat-fenster span:first-child { rotate: -23deg; }
.futterautomat-fenster span:nth-child(2) { translate: 0 -.28rem; rotate: 14deg; }
.futterautomat-fenster span:last-child { rotate: -12deg; }

.bonbon-kaufen, .bonbon-vorrat {
    min-height: 2rem;
    padding: .22rem .42rem;
    border: 2px solid #642d55;
    border-radius: .55rem;
    background: #fff0bc;
    color: #482039;
    font-size: .79rem;
    font-weight: bold;
    cursor: pointer;
}

.bonbon-kaufen {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    box-shadow: inset 0 .15rem #fff8d8, 0 .15rem #a95277;
}

.bonbon-kaufen:hover { background: #ffda80; }

.futterautomat-muenzschlitz {
    display: grid;
    place-items: center;
    width: 1.04rem;
    height: 1.04rem;
    border: 1px solid #b47928;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff4ad, #edb04f);
}

.futterautomat-muenzschlitz::after {
    content: "";
    width: .56rem;
    height: .14rem;
    border-radius: 1rem;
    background: #673a24;
}

.futterautomat-ausgabe {
    display: grid;
    justify-items: center;
    margin: .47rem auto 0;
    padding: .22rem;
    border: 1px solid #84375d;
    border-radius: .65rem .65rem .45rem .45rem;
    background: linear-gradient(#56243e, #814262);
    box-shadow: inset 0 .14rem .26rem #31122594, 0 .1rem #ffbbce;
}

.bonbon-vorrat {
    touch-action: none;
    user-select: none;
    cursor: grab;
}

.bonbon-vorrat:disabled { opacity: .7; cursor: default; }
.bonbon-vorrat[aria-pressed="true"] { background: #ffcb66; }
#bonbon-hinweis, .bonbon-meldung { margin: .3rem 0 0; font-size: .9rem; }
.bonbon-meldung { min-height: 1.5em; }

@media (max-width: 35rem) {
    .monsterland-landschaft {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 1rem;
        padding-top: 5rem;
    }
    .futterautomat {
        justify-self: center;
        width: min(100%, 10rem);
        margin-bottom: 0;
    }
    .monsterland-leer { margin-bottom: 0; }
}

.monsterland-futterziel {
    position: relative;
    display: grid;
    justify-items: center;
    gap: .18rem;
    width: 100%;
    padding: .22rem .08rem;
    border: 0;
    border-radius: .8rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.bonbon-bereit .monsterland-futterziel { outline: 2px dashed #385838; }
.bonbon-bereit .monsterland-futterziel:is(:hover, :focus-visible, .bonbon-darueber) {
    background: #fff3a878;
    outline: 3px solid #385838;
}

.bonbon-im-flug {
    position: fixed;
    z-index: 1000;
    translate: -50% -50%;
    font-size: 2rem;
    pointer-events: none;
}

.monsterland-herzzaehler {
    position: absolute;
    top: 76%;
    left: 50%;
    translate: -50% 0;
    padding-inline: .12em;
    border-radius: .4em;
    background: #fff3e4db;
    color: #742442;
    font: bold clamp(.46rem, 1.35vw, .65rem)/1.12 system-ui, sans-serif;
    white-space: nowrap;
    pointer-events: none;
}

.monsterland-herz {
    position: absolute;
    inset: -.5rem 0 auto;
    color: #a32154;
    text-shadow: 0 1px 3px #fff3cc;
    font-size: 1.7rem;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .monsterland-herz { animation: monsterland-herzflug 1.5s linear both; }
}

@keyframes monsterland-herzflug {
    0% { transform: translateY(0) scale(.55); opacity: 1; }
    58% { transform: translateY(-2rem) scale(3.35); opacity: .63; }
    100% { transform: translateY(-3.8rem) scale(4.8); opacity: 0; }
}

.monsterland-futterziel:has(.schleimmonster-figur:is([data-stufe="2"], [data-stufe="3"], [data-stufe="4"], [data-stufe="5"])) {
    padding-block: .6rem;
}

.monsterland-futterziel .schleimmonster-figur {
    width: min(var(--stufenbreite, 61%), var(--stufenmaximum, 3.65rem));
}
.schleimmonster-figur[data-stufe="2"] { --stufenbreite: 70%; --stufenmaximum: 4.2rem; }
.schleimmonster-figur[data-stufe="3"] { --stufenbreite: 79%; --stufenmaximum: 4.8rem; }
.schleimmonster-figur[data-stufe="4"] { --stufenbreite: 88%; --stufenmaximum: 5.4rem; }
.schleimmonster-figur[data-stufe="5"] { --stufenbreite: 97%; --stufenmaximum: 6rem; }

.evolutionslabor {
    width: min(100%, 36rem);
    margin: 1.4rem auto 0;
    padding: .8rem clamp(.35rem, 3vw, 1.5rem);
    border: 3px solid #6f9ca8;
    border-radius: 1.3rem;
    color: #ebfff9;
    background: radial-gradient(ellipse at top, #3f686f, #233b49 76%);
    box-shadow: inset 0 .2rem #a7dfda55, 0 .3rem #142630;
}

.evolutionslabor h2 { margin: 0 0 .3rem; }
.evolutionslabor p { margin: .4rem 0; }

.labor-maschine {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(.35rem, 3vw, 1rem);
    margin-block: .85rem;
}

.labor-kammern {
    position: relative;
    container-type: inline-size;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
}

.labor-kammer {
    display: grid;
    place-items: center;
    align-content: center;
    gap: .18rem;
    color: #e6fff7;
    background: radial-gradient(ellipse at 38% 30%, #377981, #153340);
    border: 2px solid #78c5bf;
    border-radius: .65rem;
    font-size: clamp(.67rem, 2.4vw, .9rem);
    cursor: pointer;
}

.labor-kammer {
    min-height: 7rem;
    padding: .23rem;
    border-radius: 2rem 2rem .65rem .65rem;
    box-shadow: inset .19rem .2rem #a4ffea42, inset 0 -.36rem #7bc8c377;
}

.labor-kammer.labor-darueber, .monsterland-futterziel[aria-pressed="true"] {
    outline: 3px solid #ffe2a0;
    outline-offset: -3px;
}

.labor-kammer .schleimmonster-figur,
.labor-zugfigur .schleimmonster-figur, .labor-ergebnis .schleimmonster-figur {
    width: min(calc(var(--stufenbreite, 61%) * .75), calc(var(--stufenmaximum, 3.65rem) * .68));
}

.monsterland-futterziel {
    min-height: 3rem;
    touch-action: none;
    user-select: none;
    cursor: grab;
}

.monster-in-kammer { visibility: hidden; }

.labor-tipp { font-size: .88rem; }

.labor-hebel {
    display: grid;
    justify-items: center;
    align-content: end;
    gap: .22rem;
    min-width: 3.25rem;
    padding: .2rem;
    color: #fff3cc;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.labor-hebel span {
    display: block;
    position: relative;
    width: 1.65rem;
    height: 3.4rem;
    transform-origin: 50% 87%;
    background:
        radial-gradient(circle at 38% 13%, #ffd5c1, #ff876d 19%, transparent 21%),
        linear-gradient(90deg, transparent 39%, #d2e8e4 40% 58%, transparent 60%),
        linear-gradient(transparent 78%, #8ab1bd 79% 99%);
    border-radius: .6rem;
}

.labor-hebel:disabled { opacity: .6; cursor: default; }
.labor-verschmilzt .labor-hebel span { transform: rotate(35deg); transition: transform .18s; }
.labor-meldung { min-height: 1.45em; }

.labor-zugfigur {
    position: fixed;
    z-index: 1000;
    width: 5rem;
    display: grid;
    justify-items: center;
    translate: -50% -50%;
    pointer-events: none;
}

.labor-wolke, .labor-ergebnis {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    pointer-events: none;
    left: 50%;
    top: 50%;
    width: 6rem;
    height: 6rem;
    translate: -50% -50%;
    opacity: 0;
}

.labor-wolke {
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 41%, #fff8f8 0 17%, transparent 43%),
        radial-gradient(circle at 65% 38%, #f6caff 0 14%, transparent 43%),
        radial-gradient(circle at 50% 65%, #d4b8ff 0 22%, transparent 54%);
    filter: drop-shadow(0 0 .45rem #e9c2ff);
}

.labor-verschmilzt .labor-kammer:first-child .schleimmonster-figur { --flugrichtung: 1; }
.labor-verschmilzt .labor-kammer:nth-child(2) .schleimmonster-figur { --flugrichtung: -1; }

.labor-verschmilzt .labor-kammer .schleimmonster-figur {
    z-index: 1;
    animation: labor-zusammenflug .58s cubic-bezier(.45, .05, .7, .3) both;
}

.labor-verschmilzt .labor-wolke { animation: labor-wolkenflug .7s .49s both; }
.labor-verschmilzt .labor-ergebnis { animation: labor-erscheinen .48s .77s both; }

@keyframes labor-zusammenflug {
    75% { opacity: 1; }
    to { translate: calc(25cqw * var(--flugrichtung)) -.55rem; opacity: 0; scale: .68; }
}

@keyframes labor-wolkenflug {
    0% { opacity: 0; scale: .3; }
    35% { opacity: 1; scale: 1.1; }
    100% { opacity: 0; scale: 1.45; }
}

@keyframes labor-erscheinen {
    from { opacity: 0; scale: .45; }
    to { opacity: 1; scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .labor-verschmilzt .labor-kammer .schleimmonster-figur,
    .labor-verschmilzt .labor-wolke, .labor-verschmilzt .labor-ergebnis { animation: none; }
    .labor-verschmilzt .labor-hebel span { transition: none; }
}
