﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    overflow: hidden;
    position: fixed;
    left: 0;
    top: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    overscroll-behavior: none;
    /* Разрешаем скролл на canvas для модальных окон на мобильных */
    touch-action: pan-y;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background-color: #8fcf6a;
    background-image: url('farm_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-color 0.3s ease;
}

#game-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    overflow: hidden;
    background-image: url('farm_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

canvas {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: none;
}

img {
    -webkit-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

button, input, select, textarea {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

button, a {
    touch-action: manipulation;
}

button, input[type="button"], input[type="submit"] {
    -webkit-appearance: none;
    appearance: none;
}

::-webkit-scrollbar {
    display: none;
}

* {
    scrollbar-width: none;
}

@supports (padding: max(0px)) {
    body {
        padding: 0;
    }
}

@supports (height: 100dvh) {
    html, body, #game-container {
        height: 100dvh;
        min-height: 100dvh;
    }
}

