@font-face {
    font-family: IceMono;
    src: url('assets/mono.ttf') format('truetype');
    font-display: swap
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #000;
    color: #d7e9f5
}

body {
    font-family: IceMono, 'Courier New', monospace
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer
}

a {
    color: inherit;
    text-decoration: none
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #79d4ff;
    outline-offset: 6px
}

.world {
    position: relative;
    min-height: 760px;
    height: 100svh;
    overflow: hidden;
    isolation: isolate
}

.eye-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    perspective: 1100px;
    z-index: -3
}

#eye {
    width: min(94vh, 85vw);
    max-width: 1100px;
    height: auto;
    flex-shrink: 0;
    will-change: transform;
    user-select: none
}

#snow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1
}

.scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: repeating-linear-gradient(0deg, transparent 0 3px, #02080b22 3px 4px);
    opacity: .28
}

header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 3.6vw;
    font-size: 12px;
    letter-spacing: .12em
}

.ticker {
    color: #acd9f1
}

.network {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #71838d;
    font-size: 11px
}

#motion {
    border: 0;
    background: none;
    font-size: 10px;
    letter-spacing: .08em;
    padding: 10px 0;
    color: #8398a4
}

#motion span {
    color: #d8eaff;
    margin-left: 12px
}

.title {
    position: absolute;
    z-index: 1;
    top: 11%;
    left: 0;
    width: 100%;
    text-align: center;
    pointer-events: none
}

.title p {
    font-size: 13px;
    letter-spacing: .65em;
    margin: 0 0 19px;
    color: #7e9eaf
}

h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(40px, 6.8vw, 100px);
    line-height: .88;
    font-weight: 900;
    letter-spacing: -.065em;
    margin: 0;
    color: #d6e6ec;
    text-shadow: 2px 0 #219cca77, -2px 0 #b8e9ff22
}

footer {
    position: absolute;
    z-index: 3;
    bottom: 38px;
    left: 3.6vw;
    right: 3.6vw;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px
}

.contract {
    width: 400px;
    max-width: 40vw
}

.label {
    font-size: 9px;
    letter-spacing: .2em;
    color: #708b99;
    display: block;
    margin-bottom: 13px
}

#copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: 100%;
    padding: 13px 0;
    border: 0;
    border-top: 1px solid #365b6b;
    border-bottom: 1px solid #162e39;
    background: #02090bcc;
    font-size: 12px
}

#ca {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

#copy-label {
    font-size: 9px;
    letter-spacing: .1em;
    color: #97cce4
}

nav {
    display: flex;
    gap: 9px;
    flex-wrap: wrap
}

nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 19px;
    border: 1px solid #274655;
    background: #051019e8;
    box-shadow: inset 0 1px #94d8ff22;
    font-size: 11px;
    letter-spacing: .05em;
    transition: transform .2s, border-color .2s, background .2s;
    cursor: pointer
}

nav a:hover {
    transform: translateY(-4px);
    border-color: #89dcff;
    background: #102936
}

nav a[aria-disabled=true] {
    opacity: .55;
    cursor: default
}

nav img {
    width: 17px;
    height: 17px;
    object-fit: contain
}

nav a[data-link=x] img {
    filter: invert(1)
}

[hidden] {
    display: none !important
}

#toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translate(-50%, 10px);
    opacity: 0;
    pointer-events: none;
    background: #07121be8;
    border: 1px solid #557b8e;
    padding: 12px 20px;
    font-size: 12px;
    transition: .2s;
    z-index: 10
}

#toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}

@media(min-aspect-ratio:2/1) {
    #eye {
        width: 89vh
    }

    .title {
        top: 11%
    }

    h1 {
        font-size: min(11vh, 100px)
    }
}

@media(max-width:850px) {
    .world {
        min-height: 780px
    }

    header {
        padding: 24px
    }

    footer {
        left: 24px;
        right: 24px;
        bottom: 28px;
        flex-direction: column;
        align-items: stretch;
        gap: 24px
    }

    .contract {
        width: 100%;
        max-width: none
    }

    nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr)
    }

    nav a {
        padding: 12px 8px;
        font-size: 9px;
        gap: 7px
    }

    .title {
        top: 17%
    }

    #eye {
        width: 111vw;
        max-width: none
    }

    .title p {
        font-size: 8px;
        letter-spacing: .35em
    }

    .network {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important
    }

    #eye {
        will-change: auto
    }
}