:root {
    --sojang-blue: #2f7cff;
    --sojang-cyan: #64d8ff;
    --sojang-ink: #030711;
    --sojang-text: #f4f8ff;
}

html, body {
    margin: 0;
    background: var(--sojang-ink);
    color: var(--sojang-text);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: dark;
    background: rgba(7, 13, 27, 0.98);
    bottom: 0;
    border-top: 1px solid rgba(255, 86, 120, 0.72);
    box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.42);
    box-sizing: border-box;
    color: #9ba9bf;
    display: none;
    left: 0;
    padding: 1rem clamp(3.5rem, 6vw, 6rem) 1rem clamp(1.25rem, 4vw, 4rem);
    position: fixed;
    width: 100%;
    z-index: 1000;
    font: 600 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.04em;
}

#blazor-error-ui strong {
    color: #ff7893;
    margin-right: 1rem;
    letter-spacing: 0.12em;
}

#blazor-error-ui .reload {
    color: var(--sojang-cyan);
    margin-left: 1rem;
    font-weight: 800;
    text-decoration: none;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 50%;
    right: clamp(1.25rem, 4vw, 4rem);
    width: 30px;
    height: 30px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(121, 171, 242, 0.24);
    color: #9ba9bf;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
}


.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiI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gNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    height: 3px;
    overflow: visible;
    background: rgba(121, 171, 242, 0.13);
}

.loading-progress::before,
.loading-progress::after {
    content: "";
    position: absolute;
    top: -3px;
    width: 1px;
    height: 9px;
    background: rgba(121, 171, 242, 0.32);
}

.loading-progress::before {
    left: 0;
}

.loading-progress::after {
    right: 0;
}

.loading-progress > span {
    position: relative;
    display: block;
    width: var(--blazor-load-percentage, 0%);
    height: 100%;
    background: linear-gradient(90deg, var(--sojang-blue), var(--sojang-cyan));
    box-shadow: 0 0 9px rgba(100, 216, 255, 0.9), 0 0 28px rgba(47, 124, 255, 0.5);
    transition: width 120ms ease-out;
}

.loading-progress > span::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -3px;
    width: 6px;
    height: 9px;
    transform: translateY(-50%);
    background: #d9f7ff;
    box-shadow: 0 0 14px var(--sojang-cyan);
}

.loading-progress-text {
    min-width: 4ch;
    color: #d9f7ff;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "0%");
}

#app {
    min-height: 100vh;
}

.boot-screen {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 48%, rgba(30, 87, 186, 0.2), transparent 31%),
        radial-gradient(circle at 82% 12%, rgba(47, 124, 255, 0.14), transparent 28%),
        linear-gradient(180deg, #050a16 0%, var(--sojang-ink) 55%, #02050c 100%);
}

.boot-screen::before,
.boot-screen::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.boot-screen::before {
    inset: 0;
    opacity: 0.32;
    background-image: linear-gradient(rgba(100, 216, 255, 0.06) 1px, transparent 1px);
    background-size: 100% 56px;
    -webkit-mask-image: linear-gradient(transparent 3%, #000 30%, #000 70%, transparent 97%);
    mask-image: linear-gradient(transparent 3%, #000 30%, #000 70%, transparent 97%);
}

.boot-screen::after {
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 17, 0.85), transparent 16%, transparent 84%, rgba(3, 7, 17, 0.85));
}

.boot-grid {
    position: absolute;
    z-index: -2;
    left: 50%;
    bottom: -31vh;
    width: min(1280px, 130vw);
    height: 71vh;
    transform: translateX(-50%) perspective(620px) rotateX(60deg);
    transform-origin: center top;
    background-image:
        linear-gradient(rgba(100, 216, 255, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 216, 255, 0.13) 1px, transparent 1px);
    background-size: 56px 44px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, transparent 89%);
    mask-image: linear-gradient(to bottom, transparent, #000 35%, transparent 89%);
}

.boot-ambient {
    position: absolute;
    z-index: -1;
    top: 17%;
    width: 42vw;
    height: 42vw;
    max-width: 620px;
    max-height: 620px;
    border: 1px solid rgba(100, 216, 255, 0.08);
    transform: rotate(45deg);
    pointer-events: none;
}

.boot-ambient::before,
.boot-ambient::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(47, 124, 255, 0.07);
}

.boot-ambient::before {
    inset: 11%;
}

.boot-ambient::after {
    inset: 24%;
}

.boot-ambient-left {
    left: -33vw;
}

.boot-ambient-right {
    right: -33vw;
}

.boot-header,
.boot-footer {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: clamp(22px, 4vw, 64px);
    padding-left: clamp(22px, 4vw, 64px);
    color: #5f718d;
    font: 700 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.18em;
}

.boot-header {
    min-height: 76px;
    border-bottom: 1px solid rgba(121, 171, 242, 0.12);
}

.boot-footer {
    min-height: 62px;
    border-top: 1px solid rgba(121, 171, 242, 0.09);
}

.boot-system-label,
.boot-privacy {
    display: flex;
    align-items: center;
}

.boot-system-label {
    gap: 13px;
}

.boot-system-label > span:first-child {
    color: #a7b7ce;
}

.boot-system-label > i {
    width: clamp(30px, 5vw, 80px);
    height: 1px;
    background: rgba(121, 171, 242, 0.2);
}

.boot-privacy {
    gap: 9px;
    color: var(--sojang-cyan);
}

.boot-privacy > i,
.boot-loader-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sojang-cyan);
    box-shadow: 0 0 11px rgba(100, 216, 255, 0.9);
    animation: boot-pulse 1.8s ease-in-out infinite;
}

.boot-stage {
    box-sizing: border-box;
    min-width: 0;
    max-width: calc(100vw - 44px);
    align-self: center;
    width: min(680px, calc(100% - 44px));
    margin: auto;
    padding: clamp(40px, 8vh, 88px) 0;
    text-align: center;
}

.boot-emblem {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(62px, 7vw, 78px);
    height: clamp(62px, 7vw, 78px);
    margin: 0 auto 32px;
    transform: rotate(45deg);
    border: 1px solid rgba(100, 216, 255, 0.65);
    background: rgba(5, 13, 29, 0.7);
    box-shadow: 0 0 48px rgba(47, 124, 255, 0.14), inset 0 0 24px rgba(47, 124, 255, 0.08);
}

.boot-emblem::before,
.boot-emblem::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: #d8f6ff;
    opacity: 0.7;
}

.boot-emblem::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid;
    border-left: 2px solid;
}

.boot-emblem::after {
    right: -1px;
    bottom: -1px;
    border-right: 2px solid;
    border-bottom: 2px solid;
}

.boot-emblem > span {
    transform: rotate(-45deg);
    color: var(--sojang-cyan);
    font: 900 clamp(19px, 2.2vw, 25px)/1 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.08em;
    text-shadow: 0 0 18px rgba(100, 216, 255, 0.48);
}

.boot-kicker,
.boot-intro {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.boot-kicker {
    margin: 0 0 17px;
    color: var(--sojang-cyan);
    font-size: 9px;
}

.boot-stage h1 {
    margin: 0;
    color: #f4f8ff;
    font-size: clamp(46px, 7.7vw, 92px);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: -0.07em;
}

.boot-stage h1 > span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(100, 216, 255, 0.8);
    text-shadow: 0 0 42px rgba(47, 124, 255, 0.16);
}

.boot-intro {
    margin: 24px 0 0;
    color: #70809a;
    font-size: 8px;
}

.boot-loader {
    width: min(560px, 100%);
    margin: clamp(44px, 7vh, 68px) auto 0;
}

.boot-loader-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #8d9db5;
    font: 800 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.15em;
}

.boot-loader-status > span:first-child {
    display: flex;
    align-items: center;
    gap: 9px;
}

.boot-ticks {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    color: #3c4c66;
    font: 700 7px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.08em;
}

.boot-footer-center {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 12px;
}

.boot-footer-center > i {
    display: block;
    width: 2px;
    background: #4d6381;
    animation: boot-level 1.1s ease-in-out infinite alternate;
}

.boot-footer-center > i:nth-child(1) { height: 4px; animation-delay: -0.8s; }
.boot-footer-center > i:nth-child(2) { height: 8px; animation-delay: -0.2s; }
.boot-footer-center > i:nth-child(3) { height: 12px; animation-delay: -0.5s; }
.boot-footer-center > i:nth-child(4) { height: 7px; animation-delay: -0.9s; }
.boot-footer-center > i:nth-child(5) { height: 3px; animation-delay: -0.35s; }

@keyframes boot-pulse {
    0%, 100% { opacity: 0.42; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.12); }
}

@keyframes boot-level {
    to { height: 2px; opacity: 0.42; }
}

@media (max-width: 640px) {
    .boot-header {
        min-height: 64px;
    }

    .boot-system-label > i,
    .boot-system-label > span:last-child,
    .boot-footer-center {
        display: none;
    }

    .boot-stage {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .boot-emblem {
        margin-bottom: 28px;
    }

    .boot-stage h1 {
        font-size: clamp(40px, 12vw, 52px);
    }

    .boot-loader {
        margin-top: 46px;
    }

    .boot-footer {
        min-height: 54px;
    }

    .boot-footer > span:last-child {
        display: none;
    }

    #blazor-error-ui strong,
    #blazor-error-ui span {
        display: block;
        margin-right: 0;
    }

    #blazor-error-ui .reload {
        display: inline-block;
        margin: 0.5rem 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .boot-privacy > i,
    .boot-loader-status i,
    .boot-footer-center > i {
        animation: none;
    }

    .loading-progress > span {
        transition: none;
    }
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
.mobile-gate[hidden] { display: none; }
.mobile-gate {
    position: relative; isolation: isolate; box-sizing: border-box;
    min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
    background: radial-gradient(circle at 50% 43%, rgba(30, 87, 186, 0.22), transparent 36%), linear-gradient(180deg, #050a16 0%, var(--sojang-ink) 58%, #02050c 100%);
}
.mobile-gate-grid {
    position: absolute; z-index: -1; inset: 0; opacity: 0.28;
    background-image: linear-gradient(rgba(100, 216, 255, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(100, 216, 255, 0.055) 1px, transparent 1px);
    background-size: 44px 44px; -webkit-mask-image: radial-gradient(circle at center, #000, transparent 74%); mask-image: radial-gradient(circle at center, #000, transparent 74%);
}
.mobile-gate-header, .mobile-gate-footer {
    display: flex; align-items: center; justify-content: space-between; box-sizing: border-box; min-height: 64px; padding: 0 22px;
    color: #667894; font: 700 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.16em;
}
.mobile-gate-header { justify-content: flex-start; border-bottom: 1px solid rgba(121, 171, 242, 0.12); }
.mobile-gate-footer { min-height: 54px; border-top: 1px solid rgba(121, 171, 242, 0.09); }
.mobile-gate-status { display: flex; align-items: center; gap: 8px; color: var(--sojang-cyan); }
.mobile-gate-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--sojang-cyan); box-shadow: 0 0 10px var(--sojang-cyan); }
.mobile-gate-stage { align-self: center; box-sizing: border-box; width: min(calc(100% - 40px), 480px); margin: auto; padding: 38px 0; text-align: center; }
.mobile-gate-emblem { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 30px; transform: rotate(45deg); border: 1px solid rgba(100, 216, 255, 0.65); background: rgba(5, 13, 29, 0.75); box-shadow: 0 0 44px rgba(47, 124, 255, 0.2); }
.mobile-gate-emblem span { transform: rotate(-45deg); color: var(--sojang-cyan); font-size: 22px; font-weight: 900; }
.mobile-gate-kicker, .mobile-gate-hint { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 800; letter-spacing: 0.17em; }
.mobile-gate-kicker { margin: 0 0 16px; color: var(--sojang-cyan); font-size: 9px; }
.mobile-gate-stage h1 { margin: 0; color: #f4f8ff; font-size: clamp(34px, 10vw, 48px); line-height: 1.12; letter-spacing: -0.055em; }
.mobile-gate-stage h1 span { color: transparent; -webkit-text-stroke: 1px rgba(100, 216, 255, 0.82); }
.mobile-gate-copy { margin: 22px auto 0; color: #8b9ab0; font-size: 13px; line-height: 1.8; word-break: keep-all; }
.mobile-gate-device { position: relative; width: 116px; margin: 38px auto 22px; padding-bottom: 13px; }
.mobile-gate-monitor { display: grid; place-items: center; box-sizing: border-box; width: 92px; height: 58px; margin: auto; border: 1px solid rgba(100, 216, 255, 0.5); background: rgba(47, 124, 255, 0.08); box-shadow: inset 0 0 20px rgba(47, 124, 255, 0.12); }
.mobile-gate-monitor::after { content: ""; position: absolute; bottom: 13px; width: 1px; height: 12px; background: rgba(100, 216, 255, 0.55); }
.mobile-gate-monitor i { color: var(--sojang-cyan); font-style: normal; font-weight: 900; }
.mobile-gate-keyboard { position: absolute; bottom: 0; left: 0; width: 116px; height: 7px; border: 1px solid rgba(100, 216, 255, 0.35); transform: perspective(30px) rotateX(48deg); }
.mobile-gate-hint { margin: 0; color: #d1deef; font-size: 9px; }
body.mobile-device #blazor-error-ui { display: none !important; }

@media (max-width: 640px) {
    .mobile-gate-copy br { display: none; }
    .mobile-gate-footer > span:last-child { display: none; }
}
