* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #1a1a2e;
    font-family: 'Bangers', cursive;
}

#canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#touch-joystick {
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 100;
    pointer-events: auto;
}

#joystick-base {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 3px solid rgba(255,255,255,0.25);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#joystick-thumb {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(253,216,53,0.65);
    border: 2px solid rgba(253,216,53,0.85);
    position: absolute;
    transition: none;
}

#skate-btn {
    position: fixed;
    bottom: 35px;
    right: 20px;
    z-index: 100;
    pointer-events: auto;
}

#skate-btn-inner {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(141,110,99,0.55);
    border: 3px solid rgba(253,216,53,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    position: relative;
    transition: background 0.2s;
}

#skate-btn-inner:active {
    background: rgba(253,216,53,0.5);
}

#skate-spare-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #E53935;
    color: white;
    font-size: 14px;
    font-family: 'Bangers', cursive;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

#footer {
    position: fixed;
    bottom: 4px;
    text-align: center;
    width: 100%;
    z-index: 200;
    pointer-events: none;
}

#footer a {
    color: #FDD835;
    text-decoration: none;
    font-family: 'Bangers', cursive;
    font-size: 13px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    pointer-events: auto;
}

#footer a:hover {
    text-decoration: underline;
}

@media (min-width: 769px) {
    #touch-joystick {
        display: none !important;
    }
    #skate-btn {
        display: none !important;
    }
}