@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Roboto:wght@400;500&display=swap');

:root
{
    --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --font-description: var(--font-body);
    --bg-custom: #ffffff !important;
    --bg-custom-op1: #fff1 !important;
    --fg-custom: #222 !important;
    --muted-custom: #6b7280 !important;;
    --accent-custom: #434077 !important;;
    --accent-2-custom: #6366f1 !important;;
    --shadow-custom: 0 8px 24px rgba(0, 0, 0, .12) !important;;
    --blur-custom: 12px !important;;
    --radius-custom: 16px !important;;
    --glass-panel-bg: color-mix(in oklab, var(--bg-custom) 73%, transparent);
    --glass-panel-border: 1px solid color-mix(in oklab, #fff 32%, transparent);
    --glass-panel-shadow: 0 12px 28px color-mix(in oklab, #111827 16%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    --glass-panel-blur: blur(calc(var(--blur-custom) + 8px)) saturate(145%);
    --app-viewport-height: 100dvh;
    --app-viewport-stable-height: 100lvh;
    --app-viewport-width: 100vw;
    --app-viewport-offset-top: 0px;
    --app-viewport-offset-left: 0px;
    --app-keyboard-offset: 0px;
    --app-bottom-inset: env(safe-area-inset-bottom, 0px);
    --app-safe-area-top: env(safe-area-inset-top, 0px);
    --app-safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

body, html
{
    overscroll-behavior: none;
    background: #fff;
    position: relative;
    font-family: var(--font-body);
    height: 100%;
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6,
button:not(.material-symbols-rounded),
[role="button"]:not(.material-symbols-rounded)
{
    font-family: var(--font-display);
}

#app
{
    position: relative;
    z-index: 1;
}

@media (prefers-color-scheme: dark)
{
    :root
    {
    }

    .tg-msg
    {
    }
}

[data-scroll-block-wrapper]
{
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    max-height: 100vh;
    padding: 60px 5px 80px;
}

.scroll-to-top
{
    position: fixed;
    right: calc((100vw - min(100vw, 680px)) / 2 + min(100vw, 680px) * 0.1 - 20px);
    bottom: calc(84px + var(--app-bottom-inset, 0px));
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.22));
    color: #10243b;
    border: 1px solid rgba(255, 255, 255, 0.55);
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 12px 28px rgba(6, 23, 45, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    opacity: 0;
    transform: translateY(12px) scale(0.94);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    z-index: 1001;
}

.scroll-to-top--visible
{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    cursor: pointer;
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible
{
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.3));
    box-shadow: 0 14px 30px rgba(6, 23, 45, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}


.scroll-to-top__icon
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.scroll-to-top__icon .mi
{
    font-size: inherit;
}
