@font-face {
    font-family: "DMWeb TinyFont";
    src: url("/assets/common/fonts/tinyfont.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 400 900;
}

:root {
    color-scheme: dark;
    --info-bg: #06101a;
    --info-deep: #02060d;
    --info-panel: #06101a;
    --info-panel-soft: #102535;
    --info-ink: #f7fbff;
    --info-muted: #9ab0b9;
    --info-line: #10506b;
    --info-line-bright: #20dcff;
    --info-accent: #ff347d;
    --info-green: #50d79a;
    --info-shadow: #020711;
    --info-header-height: 80px;
    font-family: "DMWeb TinyFont", "Courier New", ui-monospace, monospace;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 300px;
    background: var(--info-deep);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    padding-top: var(--info-header-height);
    overflow-x: hidden;
    color: var(--info-ink);
    background:
        linear-gradient(rgba(2, 7, 17, .9), rgba(2, 6, 13, .98)),
        linear-gradient(rgba(16, 80, 107, .1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 80, 107, .1) 1px, transparent 1px),
        url("/assets/common/SystemBackground.png") center / 384px repeat;
    background-size: auto, 32px 32px, 32px 32px, 384px 384px;
    image-rendering: pixelated;
}

body::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: .22;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .04) 3px 4px);
}

body::after {
    position: fixed;
    z-index: 0;
    inset: 80px 0 auto;
    height: 420px;
    pointer-events: none;
    content: "";
    opacity: .2;
    background:
        radial-gradient(circle at 14% 30%, rgba(32, 220, 255, .28), transparent 32%),
        radial-gradient(circle at 86% 18%, rgba(255, 52, 125, .2), transparent 30%);
}

body * {
    scrollbar-width: thin;
    scrollbar-color: #23a1bc #08111e;
}

body *::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

body *::-webkit-scrollbar-track {
    border-left: 2px solid #1a4b61;
    background: #08111e;
}

body *::-webkit-scrollbar-thumb {
    border: 3px solid #08111e;
    background: #23a1bc;
    box-shadow: inset 0 0 0 2px #24def9;
}

body *::-webkit-scrollbar-corner {
    background: #08111e;
}

a {
    color: var(--info-line-bright);
    text-underline-offset: 3px;
}

a:hover {
    color: #8beeff;
}

a:focus-visible {
    outline: 3px solid var(--info-accent);
    outline-offset: 3px;
}

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: var(--info-header-height);
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 13px clamp(16px, 4vw, 58px);
    border-bottom: 4px solid var(--info-line);
    background: rgba(2, 7, 17, .97);
    box-shadow: 0 6px 0 rgba(0, 0, 0, .45);
}

.brand {
    display: flex;
    min-width: 210px;
    align-items: center;
    gap: 14px;
    color: var(--info-ink);
    text-decoration: none;
}

.brand img {
    width: auto;
    max-width: 190px;
    max-height: 52px;
    height: auto;
    object-fit: contain;
    image-rendering: auto;
}

.brand span {
    padding-left: 14px;
    border-left: 2px solid var(--info-line);
    color: #ff74ad;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    padding: 8px;
    border: 2px solid transparent;
    color: var(--info-muted);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    border-color: var(--info-line);
    color: var(--info-ink);
    background: #07111c;
    box-shadow: 3px 3px 0 var(--info-shadow);
}

main {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 48px));
    margin: 32px auto 28px;
    padding: clamp(38px, 6vw, 72px);
    overflow: hidden;
    border: 3px solid var(--info-line);
    color: var(--info-ink);
    background:
        linear-gradient(145deg, rgba(9, 38, 55, .86), rgba(2, 7, 17, .97) 420px),
        url("/assets/common/welcome/bg_room_2.png") top center / 100% 420px no-repeat,
        var(--info-panel);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, .55);
}

main::before {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    content: "";
    background: linear-gradient(90deg, var(--info-line-bright) 0 58%, var(--info-accent) 58% 100%);
}

main::after {
    position: absolute;
    z-index: 0;
    top: -120px;
    right: -100px;
    width: 360px;
    height: 280px;
    border: 20px solid rgba(32, 220, 255, .06);
    content: "";
    pointer-events: none;
    transform: rotate(45deg);
}

main > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--info-line-bright);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    font-weight: 900;
}

h1 {
    max-width: 900px;
    margin: 0;
    color: var(--info-ink);
    font-size: clamp(40px, 5vw, 56px);
    line-height: .98;
    letter-spacing: -.04em;
    text-transform: uppercase;
    text-shadow: 5px 5px 0 #173b40;
}

.lead {
    max-width: 900px;
    margin: 28px 0 44px;
    padding: 18px 20px;
    border-left: 6px solid var(--info-accent);
    color: #dce7e8;
    background: rgba(2, 7, 17, .72);
    font-size: 16px;
    line-height: 1.75;
}

main > h2 {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 42px 0 18px;
    padding-top: 26px;
    border-top: 2px solid var(--info-line);
    color: var(--info-ink);
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: .02em;
    text-transform: uppercase;
}

main > h2::before {
    color: var(--info-accent);
    content: ">";
}

main > h2 + p,
main > h2 + ul {
    margin-top: 0;
}

p,
li,
dd {
    color: #b9c9cd;
    font-size: 16px;
    line-height: 1.75;
}

main > p:not(.lead) {
    max-width: 980px;
}

strong {
    color: var(--info-ink);
}

ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

li {
    position: relative;
    padding-left: 24px;
}

li::before {
    position: absolute;
    left: 0;
    color: var(--info-accent);
    content: ">";
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.card {
    position: relative;
    min-height: 180px;
    padding: 24px;
    overflow: hidden;
    border: 2px solid var(--info-line);
    background:
        linear-gradient(145deg, rgba(16, 37, 53, .9), rgba(2, 7, 17, .97)),
        var(--info-panel);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, .45);
    transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, var(--info-line-bright), var(--info-accent));
}

.card:hover {
    border-color: var(--info-line-bright);
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, .55);
}

.card h2,
.card h3 {
    margin: 4px 0 14px;
    padding: 0;
    border: 0;
    color: var(--info-ink);
    font-size: 24px;
    line-height: 1.2;
    text-transform: uppercase;
}

.card h2::before,
.card h3::before {
    color: var(--info-accent);
    content: "// ";
}

.card p {
    margin: 0;
}

.notice {
    margin: 30px 0;
    padding: 22px 24px;
    border: 2px solid var(--info-line);
    border-left: 7px solid var(--info-accent);
    color: #c9d8da;
    background:
        linear-gradient(90deg, rgba(32, 220, 255, .1), rgba(255, 52, 125, .08)),
        #07111c;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, .45);
    font-size: 16px;
    line-height: 1.75;
}

.notice strong {
    color: var(--info-line-bright);
    text-transform: uppercase;
}

dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 30px 0;
}

dl > div {
    position: relative;
    min-width: 0;
    padding: 22px;
    border: 2px solid var(--info-line);
    background: rgba(2, 7, 17, .86);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, .4);
}

dl > div::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 4px;
    content: "";
    background: var(--info-accent);
}

dt {
    color: var(--info-ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.5;
}

dt::before {
    margin-right: 8px;
    color: var(--info-line-bright);
    content: ">";
}

dd {
    margin: 12px 0 0;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 18px;
    border: 3px solid #ff8eb8;
    color: #08111e;
    background: var(--info-accent);
    box-shadow: 4px 4px 0 #851b4b;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
}

.button::after {
    content: ">";
}

.button:hover,
.button:focus-visible {
    color: #08111e;
    background: #ff74ad;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #851b4b;
}

.site-footer {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(1120px, calc(100% - 48px));
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto 28px;
    padding: 20px 24px;
    border: 2px solid var(--info-line);
    color: var(--info-muted);
    background: rgba(2, 7, 17, .92);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, .42);
    font-size: 16px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 16px;
}

.site-footer a {
    color: var(--info-muted);
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
    color: var(--info-line-bright);
}

@media (max-width: 1080px) {
    body {
        --info-header-height: 124px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .site-nav {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    body {
        --info-header-height: 142px;
    }

    .site-header {
        height: var(--info-header-height);
        min-height: 0;
        padding: 12px;
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: 160px;
        max-height: 52px;
    }

    .brand span {
        font-size: .66rem;
    }

    main {
        width: calc(100% - 24px);
        margin: 20px auto;
        padding: 28px 20px 36px;
        box-shadow: 5px 5px 0 rgba(0, 0, 0, .55);
    }

    h1 {
        font-size: 32px;
    }

    .lead {
        margin: 22px 0 30px;
        padding: 15px;
    }

    main > h2 {
        margin-top: 34px;
        font-size: 24px;
    }

    .card-grid,
    dl {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: 0;
    }

    .site-footer {
        width: calc(100% - 24px);
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .card,
    .button {
        transition: none;
    }
}
