:root {
    --bg: #000000;

    --text: #ffffff;
    --text-primary: rgba(255,255,255,0.92);
    --text-secondary: rgba(255,255,255,0.62);
    --text-muted: rgba(255,255,255,0.38);

    --surface: rgba(255,255,255,0.06);
    --surface-hover: rgba(255,255,255,0.10);
    --border: rgba(255,255,255,0.12);

    --selection-bg: #ffffff;
    --selection-color: #000000;

    --radius: 18px;
    --shadow: 0 8px 32px rgba(0,0,0,0.28),
              inset 0 1px 0 rgba(255,255,255,0.08);

    --transition-fast: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    /* убрать синий тап-хайлайт */
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "M PLUS Code Latin", monospace;
    color: var(--text);
    background-color: var(--bg);
}

/* выделение текста */
::selection {
    background: var(--selection-bg);
    color: var(--selection-color);
    text-shadow: none;
}

::-moz-selection {
    background: var(--selection-bg);
    color: var(--selection-color);
}

/* focus для кнопок и ссылок */
button,
a,
input,
textarea,
select {
    font: inherit;
    outline: none;
}

button:focus,
button:active,
a:focus,
a:active {
    outline: none;
    box-shadow: none;
}

/* если хочешь красивый кастомный focus с клавиатуры */
button:focus-visible,
a:focus-visible {
    outline: 1px solid rgba(255,255,255,.25);
    outline-offset: 2px;
    border-radius: 12px;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

.page-transition-overlay .transition-cell {
    background: #ffffff !important;
}