body {
    background: hsl(0, 0%, 13%);
    font-family: "Press Start 2P", monospace;
    font-smooth: never;
    height: 98vh;
}

.back-to-home {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin: 10px 5px;
}

.back-to-home:is(:hover, :focus) {
    color: gray;
}

/* UI */
.topUI {
    position: absolute;
    z-index: 1000;
    transform: translate(-50%, 25px);
    text-shadow: -2px 0 hsl(0, 0%, 0%), 0 2px hsl(0, 0%, 0%), 2px 0 hsl(0, 0%, 0%)hsl(0, 0%, 0%)2px black;
    letter-spacing: 2px;
    color: hsl(0, 0%, 100%);
    font-size: 17px;
}

.topUI::before {
    display: inline-block;
    height: 17px;
    padding: 1px 2px;
    line-height: 19px;
    font-size: 17px;
    background: hsl(0, 0%, 100%);
    text-shadow: none;
    font-weight: 900;
    letter-spacing: 0;
    border-radius: 6px;
    margin-right: 30px;
    border: 2px solid hsl(170, 54%, 67%);
}

#time {
    left: 13%;
    color: hsl(60, 90%, 57%);
}

#time::before {
    content: "TIME";
    color: hsl(25, 92%, 52%);
}

#score {
    left: 45%;
}

#score::before {
    content: "SCORE";
    color: hsl(304, 73%, 38%);
}

#lap {
    left: 88%;
    width: 45%;
}

#lap::before {
    content: "LAP";
    color: hsl(205, 100%, 44%);
}

#tacho {
    position: absolute;
    text-align: right;
    width: 23%;
    bottom: 5%;
    z-index: 2000;
    color: hsl(8, 85%, 49%);
    text-shadow: -2px 0 hsl(0, 0%, 0%), 0 2px hsl(0, 0%, 0%), 2px 0 hsl(0, 0%, 0%), 0 -2px hsl(0, 0%, 0%);
    letter-spacing: 2px;
    font-size: 23px;
}

#tacho::after {
    content: "km/h";
    color: hsl(35, 94%, 65%);
    font-size: 18px;
    margin-left: 5px;
}

/* Road */
#game {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    background: hsl(0, 0%, 13%);
    user-select: none;
    transition: opacity 10s;
}

#road {
    transition: opacity 2s;
    transition-timing-function: steps(8, end);
}

#road * {
    position: absolute;
    image-rendering: pixelated;
}

#hero {
    background-repeat: no-repeat;
    background-position: -110px 0;
    z-index: 2000;
    transform: scale(1.4);
}

#cloud {
    background-size: auto 100%;
    width: 100%;
    height: 57%;
}

/* Home */
#road {
    position: absolute;
    width: 100%;
    height: 100%;
}

#home {
    position: absolute;
    color: hsl(0, 0%, 100%);
    width: 100%;
    height: 100%;
    z-index: 1000;
}

#highscore {
    position: absolute;
    width: 100%;
    height: 20%;
    bottom: 0;
    column-count: 3;
    column-fill: auto;
}

#highscore * {
    color: hsl(268, 10%, 62%);
    margin: 0 0 6px 27px;
}

h1 {
    position: absolute;
    left: 50%;
    top: 25%;
    transform: translate(-50%, -50%);
    font-size: 5em;

    background: -webkit-linear-gradient(hsl(167, 71%, 50%), hsl(284, 64%, 84%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    color: hsl(272, 70%, 84%);
    text-shadow: 0 0 hsl(0, 0%, 0%)00, 0 2px hsl(0, 0%, 0%), 2px 0 hsl(0, 0%, 0%), 0 0 hsl(0, 0%, 0%);
}

.blink {
    animation: blinker 2s steps(4, end) infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* Guide */
#controls {
    color: hsl(0, 0%, 53%);
    font-size: 13px;
    line-height: 13px;
    margin: 10px;
    text-align: center;
}

#controls>span {
    margin-left: 20px;
}

#controls>span>span {
    border: 2px solid hsl(0, 0%, 53%);
    border-radius: 5px;
    padding: 7px;
    margin-right: 10px;
    display: inline-block;
}

#controls>span:last-child>span {
    transform: rotate(90deg);
}