span {
    transform: none;
    text-shadow: none;
}

.header {
    padding-top: 5%;
    position: relative;
    text-transform: uppercase;
    -webkit-user-select: none;
    user-select: none;
}

.header__container {
    position: -webkit-sticky;
    position: sticky;
}

.terminal {
    max-height: 60%;
    height: 60%;
    margin-bottom: 5%;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    align-self: flex-end;
}

.footer-mobile {
    margin-top: 20%;
    margin-bottom: 20%;
    font-size: 1.5rem;
}

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    margin: 0;
}

img,
video {
    height: auto;
    max-width: 100%;
}

body {
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
}

a:not([class]) {
    -webkit-text-decoration-skip: ink;
    text-decoration-skip-ink: auto;
}

img {
    max-width: 100%;
    display: block;
}

@font-face {
    font-family: 'VCR OSD Mono';
    src: url('/fonts/VCROSDMono.woff2') format('woff2'),
    url('/fonts/VCROSDMono.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

.tv-effect.--crt::before {
    background: linear-gradient(
            180deg,
            transparent 0,
            rgba(255, 250, 250, 0.14902) 50%,
            transparent
    );
    animation: vline 8s linear infinite;
}

.tv-effect.--crt::after {
    height: 100%;
    background-image: repeating-linear-gradient(
            transparent,
            transparent 6px,
            rgba(255, 255, 255, 0.03) 6px,
            rgba(255, 255, 255, 0.03) 12px
    );
}

.tv-content {
    position: relative;
    z-index: 13;
    z-index: var(--layer-content);
    overflow-x: hidden;
    overflow-y: hidden;
    overflow: hidden auto;
    background-color: rgba(0, 0, 0, 0.4);
}

@keyframes vline {
    0% {
        transform: translateY(-100%);
    }

    80%,
    100% {
        transform: translateY(100vh);
    }
}

.tv-screen {
    animation: turn-on-transform 0.3s, turn-on-filter 2s;
}

@keyframes turn-on-transform {
    0% {
        transform: scale(1, 0.6) translate(0, 0) skew(2deg);
    }

    6% {
        transform: scale(2) translate(0, -20%) skew(2deg);
    }

    30% {
        transform: scale(1) translate(0, -20%) skew(-2deg);
    }

    50% {
        transform: scale(1, 0.8) translate(0, 40%) skew(-2deg);
    }

    100% {
        transform: scale(1) translate(0, 0) skew(0);
    }
}

@keyframes turn-on-filter {
    0% {
        filter: brightness(1) invert(1) saturate(1.2);
    }

    3% {
        filter: brightness(4) invert(1) saturate(2);
    }

    15% {
        filter: brightness(4) invert(0) saturate(2);
    }

    30%,
    50% {
        filter: brightness(10) invert(0) saturate(1);
    }

    70% {
        filter: contrast(1) brightness(1) invert(0) saturate(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@media (min-width: 500px) {
    .header__container {
        display: flex;
        justify-content: space-between;
    }

    .header__info {
        text-align: right;
    }
}

@media (max-width: 480px) {
    .nav {
        margin-bottom: 2rem;
    }

    .nav__menu li {
        margin-top: 0.6rem;
    }
}

.text-nav {
    position: relative;
    caret-color: transparent;
    -webkit-user-select: text;
    user-select: text
}

.text-nav:focus {
    outline: none
}

.text-nav:focus::before {
    content: '_';
    position: absolute;
    bottom: 0;
    left: calc(-9999 * 1ch);
    left: calc(var(--caret-position, -9999) * 1ch);
    animation: blink 0.8s step-end infinite;
}

.big-text {
    font-size: clamp(24px, 4.6vw, 63px);
    font-size: var(--font-size-secondary);
    text-transform: uppercase;
}

.button-text {
    /** for backwards compatibility */
    font-family: inherit;
    color: inherit;
    text-decoration: inherit;
    font-size: inherit;
    background: inherit;
    text-transform: inherit;
    text-shadow: inherit;

    /* copy style from parent */
    all: inherit;

    /* overrides */
    padding: 0;
    border: none;
    display: inline;
    color: #fff;
    color: var(--text-secondary);
    line-height: 0.9;
    -webkit-appearance: none;
    appearance: none;
}

a,
.button-text {
    position: relative;
    text-decoration: none;
    color: white;
    transition: background-size 0.2s cubic-bezier(0.29, 0.8, 0.21, 0.63);
    background-position: center center;
    background-size: 90% 0;
    background-repeat: no-repeat
}

html:not(.webp) a,
html:not(.webp) .button-text {
    background-image: url(/images/rainbow-static.gif)
}

html.webp a,
html.webp .button-text {
    background-image: url(/images/rainbow-static.webp)
}

a:hover, .button-text:hover {
    cursor: url(/images/cursor-pointer.png) 14 8, auto
}

a:hover, .button-text:hover {
    background-size: 100% 100%
}

a:hover::after, .button-text:hover::after {
    visibility: visible;
    transition: visibility 0s 0.7s;
}

a[href^='http']::after, a[href^='mailto']::after, .button-text[href^='http']::after, .button-text[href^='mailto']::after {
    display: block;
    content: attr(href);
    min-width: -webkit-max-content;
    min-width: max-content;
    position: absolute;
    z-index: 21;
    z-index: var(--layer-content-hover);
    background-color: rgba(0, 0, 0, 0.8);
    bottom: 100%;
    left: 0;
    margin-bottom: 0.5rem;
    font-size: 0.6rem;
    visibility: hidden;
    transition: none;
}

a:focus, .button-text:focus {
    outline: none;
    background-size: 100% 100%
}

a:focus::after, .button-text:focus::after {
    visibility: visible;
}

.tv {
    position: relative;
    background-color: #000;
    overflow: hidden;
    margin: 0 auto;
}

.tv-effect {
    position: absolute;
    z-index: 8;
    z-index: var(--layer-tv-effects);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tv-effect.--static {
    background-size: cover;
    opacity: 0.1;
    background-image: url(/images/effect-static.gif)
}

body[channel='0'] .tv-effect.--static, body:not([channel]) .tv-effect.--static {
    opacity: 0.2
}

html.webp .tv-effect.--static {
    background-image: url(/images/effect-static.webp)
}

.tv-effect.--artifacts {
    background-image: url(/images/effect-artifacts.gif);
    background-size: cover;
    opacity: 0.4
}

html.webp .tv-effect.--artifacts {
    background-image: url(/images/effect-artifacts.webp)
}

.tv-effect.--vignette {
    background: radial-gradient(circle, transparent 60%, black 100%), transparent;
}

.tv-effect.--decontrast {
    background-color: #fff;
    opacity: 0.2
}

body:not([camera]) .tv-effect.--decontrast {
    display: none
}

.tv-effect.--crt::before,
.tv-effect.--crt::after {
    content: '';
    display: block;
    position: absolute;
    z-index: 8;
    z-index: var(--layer-tv-effects);
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

body.loading-channel .tv-screen {
    filter: brightness(3) saturate(0.15) contrast(1.2);
}

body.loading-channel .tv-effect.--static {
    opacity: 0.4;
}

body.loading-channel .tv-effect.--artifacts {
    opacity: 0.7;
}

body.loading-page .tv-screen {
    filter: brightness(3) grayscale(1) contrast(1.2);
}

body.loading-page .tv-effect.--decontrast {
    display: block;
    opacity: 0.2;
}

body.loading-page .tv-effect.--static {
    opacity: 0.3;
}

body.loading-page .tv-effect.--artifacts {
    opacity: 0.8;
}

body.loading-page .tv-effect.--crt::before {
    animation-duration: 0.25s;
}

body.loading-page .tv-content {
    filter: blur(5px);
    pointer-events: none;
}

:root {
    --text-primary: #fff;
    --text-secondary: #fff;

    --font-primary: 'VCR OSD Mono', monospace;
    --font-size-primary: clamp(16px, 1.8vw, 34px);
    --font-size-secondary: clamp(24px, 4.6vw, 63px);
    --line-height: 1.4;

    --layer-top: 55;
    --layer-me-hover: 34;
    --layer-content-hover: 21;
    --layer-content: 13;
    --layer-tv-effects: 8;
    --layer-channels: 5;

    --glitchy-blue: rgba(2, 183, 182, 0.4);
    --glitchy-red: rgba(183, 2, 2, 0.4);
    --container-width: 80%;
    --gui-side: calc((100% - var(--container-width)) / 2);
    --gui-bottom: 5%;
}

/* scrollbar */

* {
    scrollbar-width: thin;
    scrollbar-color: #28272a transparent
}

*::-webkit-scrollbar-track {
    background-color: transparent;
}

*::-webkit-scrollbar {
    width: 3px;
}

*::-webkit-scrollbar-thumb {
    background-color: #28272a;
}

::selection {
    background-color: #fff;
    color: #000;
}

html {
    font-family: 'VCR OSD Mono', monospace;
    font-family: var(--font-primary);
    font-weight: normal;
    font-style: normal;
    color: #a0a0a0;
    color: var(--text-primary);
    font-size: clamp(16px, 1.8vw, 34px);
    font-size: var(--font-size-primary);
    line-height: 1.4;
    line-height: var(--line-height);
}

body {
    background-color: #000;
    overflow: hidden;
}

html,
body,
.tv,
.tv-screen,
.tv-content {
    height: 100%;
}

.page-container {
    display: block;
    grid-template-rows: auto 1fr auto;
    max-width: 100%;
    height: 100%;
    width: 80%;
    margin: 0 auto
}

body.hide-content .page-container {
    visibility: hidden
}

.glitchy-text {
    --shadow-x-distance: 2px;
    --shadow-y-distance: 1px;
    text-shadow: var(--shadow-x-distance) var(--shadow-y-distance) 0 rgba(2, 183, 182, 0.4),
    calc(var(--shadow-x-distance) * -1) calc(var(--shadow-y-distance) * -1) 0 rgba(183, 2, 2, 0.4);
    text-shadow: var(--shadow-x-distance) var(--shadow-y-distance) 0 var(--glitchy-blue),
    calc(var(--shadow-x-distance) * -1) calc(var(--shadow-y-distance) * -1) 0 var(--glitchy-red)
}

@media (min-width: 481px) {

    .glitchy-text {
        --shadow-x-distance: 3px;
        --shadow-y-distance: 2px
    }
}

@media (min-width: 960px) {

    .glitchy-text {
        --shadow-x-distance: 4px;
        --shadow-y-distance: 3px
    }
}

.cursor-default {
    cursor: url(/images/cursor-default.png) 0 0, auto;
}

.cursor-pointer {
    cursor: url(/images/cursor-pointer.png) 14 8, auto;
}

.skip-link {
    position: absolute;
    z-index: 55;
    z-index: var(--layer-top);
    top: 0;
    left: 0
}

.skip-link:not(:focus) {
    transform: translateX(-100%);
}

.visually-hidden {
    visibility: hidden;
}

html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-weight: normal;
}
