:root {
    --void: #040a12;
    --teal: #3ba3b4;
    --cyan: #5fd0e8;
    --ice: #d6f2ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
    background: var(--void);
    font-family: 'Jura', sans-serif;
    color: var(--ice);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6vh 1.5rem;
}

.grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(90,170,185,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90,170,185,.045) 1px, transparent 1px);
    background-size: 54px 54px;
}

.brand {
    position: fixed;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-family: 'Share Tech Mono', monospace;
    font-size: 22px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: #8fe0f2;
    text-shadow: 0 0 22px rgba(59,163,180,.55);
    white-space: nowrap;
}

.brand span { font-size: .55em; letter-spacing: .3em; color: rgba(95,208,232,.45); }

.gate {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.gate.wide { max-width: 460px; }

.orb {
    width: 92px;
    height: 92px;
    margin: 0 auto 2.2rem;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, #bfeeff 16%, rgba(95,208,232,.42) 42%, rgba(59,163,180,.12) 70%, transparent 100%);
}

h1 {
    font-size: 21px;
    font-weight: 400;
    letter-spacing: .1em;
    color: #8fe0f2;
    margin-bottom: .5rem;
}

.lead {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: .08em;
    color: rgba(214,242,255,.5);
    margin-bottom: 2rem;
}

label {
    display: block;
    text-align: left;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(95,208,232,.5);
    margin-bottom: 7px;
}

input {
    width: 100%;
    background: rgba(59,163,180,.05);
    border: 1px solid rgba(95,208,232,.26);
    color: var(--ice);
    font-family: 'Share Tech Mono', monospace;
    font-size: 15px;
    letter-spacing: .16em;
    text-align: center;
    padding: 14px 12px;
    margin-bottom: 1.1rem;
    transition: border-color .25s, box-shadow .25s;
}

input::placeholder { color: rgba(214,242,255,.2); letter-spacing: .16em; }
input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 22px rgba(59,163,180,.28); }

.row { display: flex; gap: 12px; }
.row > div { flex: 1; }
.row input { text-align: center; }

button {
    width: 100%;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--ice);
    background: rgba(59,163,180,.07);
    border: 1px solid rgba(95,208,232,.34);
    padding: 14px;
    cursor: pointer;
    transition: background .25s, border-color .25s, box-shadow .25s;
}

button:hover { background: rgba(59,163,180,.16); border-color: var(--cyan); box-shadow: 0 0 26px rgba(59,163,180,.3); }
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.error {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: .1em;
    color: #ff8b7d;
    margin: -.4rem 0 1.1rem;
}

.note {
    margin-top: 1.8rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: .12em;
    color: rgba(214,242,255,.24);
    line-height: 1.7;
}

.result {
    margin-top: 2rem;
    padding: 1.4rem 1rem;
    border: 1px solid rgba(95,208,232,.3);
    background: rgba(59,163,180,.05);
}

.result .label {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(95,208,232,.5);
    margin-bottom: 12px;
}

.result code {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 17px;
    letter-spacing: .12em;
    color: #8fe0f2;
    text-shadow: 0 0 18px rgba(59,163,180,.45);
    word-break: break-all;
    line-height: 1.6;
    user-select: all;
}

.result .meta {
    display: block;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: .06em;
    color: rgba(214,242,255,.42);
    line-height: 1.6;
}

@media (max-width: 480px) {
    .brand { font-size: 17px; }
    .orb { width: 72px; height: 72px; }
}
