/* ==================================================
   WLK Game
================================================== */

* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}


body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #dbe6d2;
}


/* ==================================================
   Game Screen
================================================== */

.game-screen {
    position: relative;

    width: 100vw;

    height: 100vh;
    height: 100dvh;

    overflow: hidden;

    background-image:
        var(--game-background);

    background-position:
        center center;

    background-repeat:
        no-repeat;

    background-size:
        cover;
}


/* ==================================================
   Moving World
================================================== */

.world-layer {
    position: absolute;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 1;
}


.world-object {
    position: absolute;

    width: 24px;
    height: 24px;

    transform-origin:
        center center;

    will-change:
        left,
        top,
        transform;
}


/* ==================================================
   Temporary Plant
================================================== */

.world-object.plant {
    width: 22px;
    height: 30px;
}


.world-object.plant::before,
.world-object.plant::after {
    content: "";

    position: absolute;

    bottom: 0;

    width: 8px;
    height: 27px;

    border-radius:
        100% 0 100% 0;

    background:
        #527b45;
}


.world-object.plant::before {
    left: 4px;

    transform:
        rotate(-24deg);
}


.world-object.plant::after {
    right: 4px;

    transform:
        scaleX(-1)
        rotate(-24deg);
}


/* ==================================================
   Temporary Rock
================================================== */

.world-object.rock {
    width: 28px;
    height: 19px;

    border-radius:
        55% 45% 48% 52%;

    background:
        #70746b;

    box-shadow:
        inset 3px 3px 0
        rgba(255, 255, 255, 0.12);
}


/* ==================================================
   Step Counter
================================================== */

.step-counter {
    position: absolute;

    top: 40px;
    left: 50%;

    transform:
        translateX(-50%);

    text-align: center;

    color: #263026;

    z-index: 10;
}


.step-count {
    font-size: 32px;
    font-weight: 800;

    line-height: 1;
}


.step-label {
    margin-top: 5px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 3px;

    opacity: 0.65;
}


/* ==================================================
   Walk Button
================================================== */

.walk-button {
    position: absolute;

    left: 50%;

    bottom: max(
        35px,
        env(safe-area-inset-bottom)
    );

    transform:
        translateX(-50%);

    width: 180px;
    height: 58px;

    border: 0;

    border-radius: 29px;

    background:
        #252c25;

    color:
        #ffffff;

    font-size: 16px;
    font-weight: 800;

    letter-spacing: 4px;

    cursor: pointer;

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.18);

    -webkit-tap-highlight-color:
        transparent;

    user-select: none;

    touch-action: manipulation;

    z-index: 20;
}


.walk-button:active {
    transform:
        translateX(-50%)
        scale(0.96);
}