@font-face {
    font-family: "MyFont";
    src: url("/static/fonts/WallaceGromit-Regular rus.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

.hidden {
    display: none;
}

#lobbyIdBadge {
    position: sticky;
    top: 2px;
    left: 4px;
    z-index: 2500;

    width: fit-content;
    height: 0;

    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    text-transform: lowercase;

    color: rgba(0, 0, 0, 0.6);

    pointer-events: none;
    user-select: none;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: "MyFont", Arial, sans-serif;
}

body {
    min-height: 100dvh;
    min-height: 100dvh;

    background-image: url("/static/images/background2.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding-top: 0;
}

.page {
    position: relative;

    width: 100%;
    max-width: 420px;

    height: 100vh;
    height: 100dvh;
    min-height: 0;

    margin-top: 0;
    padding: 0;

    min-height: 100vh;

    overflow-y: auto;
    overflow-x: hidden;

    background: rgba(159, 159, 159, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.11);

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* старый Edge / IE */
}

.page::-webkit-scrollbar {
    display: none;                /* Chrome, Safari, новый Edge */
}

h1 {
    margin-top: 0;
    margin-bottom: 16px;
    text-align: center;
    font-size: 32px;
    line-height: 1.2;
}

h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.2;
}

label, span, div {
    font-size: 18px;
    line-height: 1.35;
}

button, input, select {
    font-size: 18px;
    line-height: 1.2;
}

input, select, button {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: none;
    padding: 10px 12px;
    margin-top: 8px;
    margin-bottom: 12px;
}

input, select {
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
}

button {
    background: rgba(0, 55, 0, 0.95);
    color: rgba(255, 255, 255, 0.95);
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    filter: brightness(1.15);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.section {
    border-radius: 16px;
    margin-bottom: 16px;
}

.row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (min-width: 900px) {
    .page {
        max-width: 520px;
        min-width: 380px;
    }

    .popup .popuptext {
        max-width: 520px;
        min-width: 380px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 0;
    }

    .page {
        height: 100dvh;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 20px;
    }

    label, span, div, button, input, select {
        font-size: 16px;
    }

    input, select, button {
        min-height: 42px;
        padding: 10px;
    }
}
