* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    background-color: var(--tg-bg);
    color: var(--tg-text);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    overscroll-behavior: none;
    user-select: none;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: var(--tg-viewport-stable-height);
    padding-top: var(--tg-safe-top);
    padding-bottom: var(--tg-safe-bottom);
    overflow: hidden;
}

button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
}

a {
    color: var(--tg-link);
    text-decoration: none;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
}
