@font-face {
    font-family: "IsidoraSans-Bold";
    src: url(../fonts/IsidoraSans-Bold.woff) format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IsidoraSans-SemiBold";
    src: url(../fonts/IsidoraSans-SemiBold.woff) format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IsidoraSans-Regular";
    src: url(../fonts/IsidoraSans-Regular.woff) format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IsidoraSans-Medium";
    src: url(../fonts/IsidoraSans-Medium.woff) format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "ArchivoBlack-Regular";
    src: url(../fonts/ArchivoBlack-Regular.woff) format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --shade-0: #ffffff;
    --shade-1: #e2e4ec;
    --shade-2: #808495;
    --shade-3: #323644;
    --shade-4: #1e2029;
    --shade-5: #14151c;
    --shade-5b: #0c0d12;
    --shade-6: #050508;
    --accent-0: #a46bff;
    --accent-1: #8f44ff;
    --ink-icon: #ffffff;
    --ink-icon-soft: #e0e0e5;
    --ok-bg: rgba(35, 165, 90, 0.15);
    --ok-line: rgba(35, 165, 90, 0.4);
    --ok-ink: #3dd68c;
    --err-bg: rgba(220, 70, 70, 0.12);
    --err-line: rgba(220, 70, 70, 0.35);
    --err-ink: #f07178;
}

:root[data-theme="light"] {
    --shade-0: #050508;
    --shade-1: #1e2029;
    --shade-2: #5c6070;
    --shade-3: #c2c6d4;
    --shade-4: #e3e5ed;
    --shade-5: #f0f2f7;
    --shade-5b: #f7f8fc;
    --shade-6: #ffffff;
    --accent-0: #a46bff;
    --accent-1: #a46bff;
    --ink-icon: #13141b;
    --ink-icon-soft: #13141b;
    --ok-bg: rgba(35, 165, 90, 0.12);
    --ok-line: rgba(35, 165, 90, 0.35);
    --ok-ink: #1a7a45;
    --err-bg: rgba(200, 50, 50, 0.1);
    --err-line: rgba(200, 50, 50, 0.3);
    --err-ink: #c0392b;
}

::selection {
    color: var(--shade-0);
    background: var(--accent-1);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--shade-6);
    overflow-x: hidden;
    padding-bottom: 120px;
}

body:has(dialog[open]) {
    overflow: hidden;
}

:focus-visible {
    outline: 2px solid var(--accent-0);
    outline-offset: 2px;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--shade-3);
    color: var(--shade-1);
    font-family: "IsidoraSans-SemiBold";
    text-decoration: none;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

.icon {
    flex-shrink: 0;
    fill: currentColor;
    color: var(--ink-icon);
    pointer-events: none;
}

.icon--soft {
    color: var(--ink-icon-soft);
}

.icon--external {
    stroke-width: 2;
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: var(--shade-2);
    color: var(--shade-2);
}

.icon--sm {
    width: 0.75rem;
    height: 0.75rem;
}

h1 {
    font-family: "ArchivoBlack-Regular";
    color: var(--shade-0);
    font-size: 2rem;
    text-align: center;
    margin: 0;
}

h1.error-title {
    word-break: keep-all;
    white-space: normal;
}

h2 {
    font-family: "ArchivoBlack-Regular";
    color: var(--shade-0);
    font-size: 1.25rem;
    text-align: center;
}

h3 {
    font-family: "IsidoraSans-SemiBold";
    color: var(--shade-0);
    font-size: 1.125rem;
    text-align: center;
}

p {
    font-family: "IsidoraSans-Medium";
    color: var(--shade-2);
    text-align: center;
    font-size: 1rem;
}

p.emoticon {
    font-family: "Noto Emoji", sans-serif;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--shade-0);
    margin: 0.83em 0;
    white-space: nowrap;
}

#loading {
    position: fixed;
    inset: 0;
    background-color: var(--shade-6);
    z-index: 1000;
    transition: opacity 250ms ease;
    display: none;
    pointer-events: none;
}

#loading2 {
    position: fixed;
    height: 80px;
    width: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1003;
    transition: opacity 250ms ease;
    background: var(--ink-icon);
    -webkit-mask: url(../img/logo.svg) no-repeat center / contain;
    mask: url(../img/logo.svg) no-repeat center / contain;
    display: none;
    pointer-events: none;
}

html.is-loading #loading {
    display: block;
    pointer-events: auto;
}

html.is-loading #loading2 {
    display: block;
}

html.is-loading.is-leaving #loading,
html.is-loading.is-leaving #loading2 {
    opacity: 0;
    pointer-events: none;
}

.footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    padding: 10px;
    border-radius: 10px;
    background: var(--shade-3);
    text-align: center;
}

.footer p {
    font-family: "IsidoraSans-Medium";
    color: var(--shade-1);
    text-align: center;
    font-size: 0.875rem;
    margin: 0;
    padding: 0;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 51px;
    height: 51px;
    border-radius: 10px;
    background: var(--shade-3);
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    color: var(--shade-1);
}

.scroll-to-top[hidden] {
    display: none;
}

.scroll-to-top .icon {
    width: 17.5px;
    height: 20px;
    color: var(--shade-1);
}

.scroll-to-top:active {
    transform: translate(calc(-50%), 1px);
}

.btn {
    border-radius: 10px;
    background-color: var(--shade-3);
    cursor: pointer;
    border: none;
    font-family: "IsidoraSans-SemiBold";
    font-size: 1rem;
    color: var(--shade-1);
    padding: 12px;
    text-decoration: none;
}

.btn:active {
    transform: translate(0, 1px);
}

.btn--icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    box-sizing: border-box;
}

.btn--icon .icon:not(.icon--external) {
    width: 18px;
    height: 18px;
}

.home {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    height: auto;
}

.home__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-height: 100%;
}

.home__row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.home__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 670px;
    margin: 0 auto;
}

.join {
    flex: none;
    display: flex;
    width: 200px;
    height: 250px;
    border-radius: 22px;
    border: solid var(--shade-3) 1px;
    background-color: var(--shade-5);
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 22px 12px 12px;
}

.qr-button {
    display: block;
    width: 150px;
    min-height: 150px;
    padding: 0;
    border: 0;
    background: none;
    align-self: center;
    cursor: pointer;
    user-select: none;
}

.qr-button:hover {
    transform: scale(1.03);
}

.qr-button:active {
    transform: scale(0.97);
}

.qr {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

:root[data-theme="light"] .qr {
    filter: brightness(0) saturate(100%) invert(6%) sepia(12%) saturate(1400%) hue-rotate(190deg) brightness(95%) contrast(95%);
}

.join-btn {
    display: grid;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    box-sizing: border-box;
    background-color: var(--shade-3);
    cursor: pointer;
    text-decoration: none;
    place-items: center;
}

.join-btn:active {
    transform: scale(0.97);
}

.join-label {
    font-family: "IsidoraSans-SemiBold";
    color: var(--shade-1);
    font-size: 1.125rem;
    text-align: center;
    padding: 0;
    margin: 0;
    user-select: none;
}

.join-label .icon--discord {
    width: 0.99rem;
    height: 0.75rem;
    color: var(--ink-icon-soft);
}

.discord {
    display: none;
    width: 450px;
    height: 250px;
    border-radius: 22px;
    border: solid var(--shade-3) 1px;
    background-color: var(--shade-5);
    padding: 14px;
    box-sizing: border-box;
    flex-direction: column;
}

.discord__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "IsidoraSans-SemiBold";
    font-size: 1rem;
    color: var(--shade-1);
    padding-bottom: 8px;
    margin-bottom: 10px;
    position: relative;
    width: 100%;
}

.discord__header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background-color: var(--shade-3);
}

.status-dot {
    width: 9px;
    height: 9px;
    background-color: #23a55a;
    border-radius: 50%;
    display: inline-block;
}

.discord__channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    height: 100%;
    text-align: left;
    padding-right: 4px;
}

.discord__channels::-webkit-scrollbar {
    width: 6px;
}

.discord__channels::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.nobody {
    font-family: "IsidoraSans-SemiBold";
    font-size: 0.95rem;
    color: var(--shade-1);
    margin: auto 0;
    text-align: center;
    padding: 8px;
    line-height: 1.4;
}

.nobody p {
    font-size: 1rem;
    font-weight: 300;
    margin-top: 8px;
}

.nobody p.emoticon {
    font-weight: bold;
    margin: 0.83em 0;
}

.channel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    padding: 4px 0;
}

.channel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-family: "IsidoraSans-SemiBold";
    font-size: 1rem;
    font-weight: 600;
    color: var(--shade-1);
    padding-bottom: 4px;
}

.channel__head .btn {
    padding: 8px 16px;
    font-size: 1rem;
    border-radius: 9px;
}

.channel__users {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 10px;
}

.user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-family: "IsidoraSans-SemiBold";
    font-size: 0.95rem;
    color: var(--shade-1);
}

.user img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user span {
    font-size: 1rem;
}

.stage {
    padding: 0;
}

.window {
    width: 90%;
    max-width: 500px;
    padding: 22px 12px 12px;
    box-sizing: border-box;
    border-radius: 22px;
    border: solid var(--shade-3) 1px;
    background-color: var(--shade-5);
    margin: 40px auto 20px;
    position: relative;
    z-index: 995;
}

.window :is(h1, h2, h3, p),
.form-subtitle {
    padding-inline: 24px;
}

.window p,
.form-subtitle {
    text-wrap: pretty;
}

.window p.emoticon {
    padding-inline: 24px;
}

.ip {
    display: flex;
    align-items: center;
    background-color: var(--shade-5b);
    border-radius: 10px;
    padding: 12px;
    font-family: monospace;
    font-size: 0.875rem;
    justify-content: space-between;
    margin: 0;
    overflow: hidden;
    max-width: 100%;
}

.ip code {
    font-family: monospace;
    color: var(--shade-0);
    user-select: all;
    overflow-wrap: anywhere;
}

.copy-btn {
    font-family: "IsidoraSans-SemiBold";
    background-color: var(--shade-3);
    color: var(--shade-1);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.875rem;
}

.copy-btn:active {
    transform: translate(0, 1px);
}

.form-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 2rem 1rem;
    z-index: 1;
}

.form-window {
    width: min(500px, 100%);
    margin: auto 0;
    padding: 22px 12px 12px;
    box-sizing: border-box;
    border-radius: 22px;
    border: solid 1px var(--shade-3);
    background-color: var(--shade-5);
}

.form-window h1 {
    margin-bottom: 8px;
}

.form-subtitle {
    font-family: "IsidoraSans-Medium";
    color: var(--shade-2);
    font-size: 1rem;
    text-align: center;
    margin: 0 0 24px 0;
    line-height: 1.4;
}

.status {
    font-family: "IsidoraSans-Medium";
    font-size: 1rem;
    text-align: center;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.status[hidden] {
    display: none;
}

.status--success {
    background-color: var(--ok-bg);
    border: 1px solid var(--ok-line);
    color: var(--ok-ink);
}

.status--error {
    background-color: var(--err-bg);
    border: 1px solid var(--err-line);
    color: var(--err-ink);
}

.hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-family: "IsidoraSans-SemiBold";
    font-size: 1rem;
    color: var(--shade-1);
    margin-bottom: 8px;
}

.field .req {
    color: var(--accent-0);
    font-size: 1rem;
}

.field input,
.field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--shade-3);
    background-color: var(--shade-4);
    color: var(--shade-0);
    font-family: "IsidoraSans-Medium";
    font-size: 1rem;
    outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--shade-2);
    opacity: 0.8;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--accent-1);
    background-color: var(--shade-5);
}

:root[data-theme="light"] .field input:focus,
:root[data-theme="light"] .field textarea:focus {
    background-color: var(--shade-6);
}

.field input:focus-visible,
.field textarea:focus-visible {
    outline: none;
}

.field [aria-invalid="true"] {
    border-color: var(--err-ink);
}

.field textarea {
    min-height: 140px;
    line-height: 1.5;
    resize: none;
}

.turnstile {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.noscript-note {
    font-size: 0.875rem;
    margin: 0 0 18px;
}

.noscript-note a {
    color: var(--shade-1);
}

.submit {
    display: grid;
    width: 100%;
    height: 50px;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    box-sizing: border-box;
    background-color: var(--shade-3);
    color: var(--shade-1);
    font-family: "IsidoraSans-SemiBold";
    font-size: 1rem;
    padding: 12px;
    cursor: pointer;
    place-items: center;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.submit:not(:disabled):active {
    transform: scale(0.97);
}

.submit:disabled {
    opacity: 0.4;
    background-color: var(--shade-4);
    color: var(--shade-2);
    cursor: not-allowed;
    transform: none;
}

.wrapper {
    width: min(900px, 100% - 3rem);
    margin-inline: auto;
    padding-inline: 1rem;
    box-sizing: border-box;
}

.wrapper--hub {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hub {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 80px auto;
    padding: 22px 12px 12px;
    box-sizing: border-box;
    border-radius: 22px;
    border: solid 1px var(--shade-3);
    background-color: var(--shade-5);
}

.hub h1 {
    margin-bottom: 24px;
}

.tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tile {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 10px;
    background-color: var(--shade-3);
    border: none;
    cursor: pointer;
    font-family: "IsidoraSans-SemiBold";
    font-size: 1rem;
    color: var(--shade-1);
    text-decoration: none;
    box-sizing: border-box;
    height: 100%;
}

.tile:active {
    transform: scale(0.97);
}

.back-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--shade-5);
    border: solid var(--shade-3) 1px;
    border-radius: 22px;
    padding: 12px;
    color: var(--shade-0);
    font-family: "IsidoraSans-SemiBold";
    font-size: 1.125rem;
    width: 100%;
    min-width: 0;
    min-height: 77px;
    margin: 0 0 2rem 0;
    box-sizing: border-box;
    position: sticky;
    top: 1rem;
    z-index: 1;
    overflow-x: hidden;
}

.back-bar p {
    flex: 1;
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    min-width: 0;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    text-align: center;
}

.back-bar a {
    color: inherit;
    text-decoration: none;
}

.table-container {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    box-sizing: border-box;
    position: relative;
    padding: 0;
    margin-bottom: 80px;
}

table {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-spacing: 12px;
    border-radius: 22px;
    border: solid var(--shade-3) 1px;
    background-color: var(--shade-5);
    font-family: "IsidoraSans-SemiBold";
    font-size: 1rem;
    box-sizing: border-box;
    table-layout: auto;
    min-width: 0;
}

th {
    color: var(--shade-1);
    background: var(--shade-3);
    border-radius: 10px;
    padding: 12px;
    text-align: left;
    white-space: nowrap;
}

td {
    color: var(--shade-2);
    border-radius: 10px;
    padding: 12px;
    word-break: break-word;
}

tr:nth-of-type(1n) {
    background-color: var(--shade-4);
}

tr:nth-of-type(2n) {
    background-color: var(--shade-5b);
}

.data-table--offset tbody tr:nth-of-type(odd) {
    background-color: var(--shade-5b);
}

.data-table--offset tbody tr:nth-of-type(even) {
    background-color: var(--shade-4);
}

.data-table .group-header th {
    background: var(--shade-3);
    padding: 12px;
    text-align: center;
}

a.table {
    color: inherit;
    text-align: center;
    text-decoration: none;
    background-color: transparent;
    padding: 0;
    display: inline-block;
}

a.table:hover {
    color: var(--shade-0);
}

.navbar {
    background-color: var(--shade-5b);
    position: fixed;
    left: 0;
    z-index: 996;
    user-select: none;
}

.navbar__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar__item {
    width: 100%;
    justify-items: center;
    box-sizing: border-box;
}

.navbar__item--link {
    position: relative;
}

.navbar__item--link:hover {
    background-color: var(--shade-4);
    border-radius: 10px;
}

.navbar__item--link:active {
    transform: scale(0.93);
}

.navbar__item--link.is-active {
    background-color: var(--shade-5);
    outline: 1px solid var(--shade-3);
    border-radius: 10px;
    box-sizing: border-box;
}

.navbar__item--link.is-active:hover {
    background-color: var(--shade-4);
}

.navbar__link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
}

.navbar__item:not(.navbar__item--link) .navbar__link:active {
    transform: translate(0, 1px);
}

.navbar__link .icon--logo {
    width: 25px;
    height: 25px;
}

.navbar__link .icon--minecraft {
    height: 25px;
    width: auto;
    aspect-ratio: 36 / 45;
}

.navbar__link .icon--mail {
    width: 25px;
    height: auto;
    aspect-ratio: 30 / 25;
}

.navbar__link .icon--archive {
    width: 25px;
    height: 25px;
}

.navbar__link .icon--menu {
    width: 30px;
    height: auto;
    aspect-ratio: 32 / 22;
}

.navbar__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #8f44ff;
    box-shadow: 0 0 0 3px rgba(143, 68, 255, 0.35), inset 0 1px 2px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    animation: pulse-badge 1.9s infinite ease-in-out;
    z-index: 10;
}

.navbar__badge[hidden] {
    display: none;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        opacity: 0.92;
    }
    50% {
        transform: scale(1.22);
        opacity: 1;
    }
}

.menu {
    display: none;
    position: absolute;
    background: var(--shade-5);
    box-sizing: border-box;
    overflow: auto;
}

.menu:not([hidden]) {
    display: flex;
    flex-direction: column;
}

.menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.menu__list li:not(.menu__divider):active {
    transform: scale(0.97);
}

.menu__item {
    font-family: "IsidoraSans-SemiBold";
    font-size: 1rem;
    color: var(--shade-1);
    padding: 16px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.menu__item:hover {
    background-color: var(--shade-3);
    border-radius: 10px;
}

.menu__item .icon {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: var(--shade-2);
    color: var(--shade-2);
}

.menu__item .icon--external {
    stroke-width: 2.5;
}

.menu__item .icon--moon {
    display: none;
}

:root[data-theme="light"] .menu__item .icon--sun {
    display: none;
}

:root[data-theme="light"] .menu__item .icon--moon {
    display: block;
}

.menu__divider {
    height: 0;
    border-top: 1px solid var(--shade-3);
    margin: 8px 16px;
    padding: 0;
    flex-shrink: 0;
}

.dialog {
    border: solid var(--shade-3) 1px;
    background-color: var(--shade-5);
    color: inherit;
}

.dialog::backdrop {
    backdrop-filter: blur(6px);
    background-color: rgba(10, 11, 15, 0.5);
}

.dialog--info {
    width: 90%;
    max-width: 400px;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 24px;
    position: fixed;
    inset: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.dialog--info form,
.dialog--qr form {
    display: contents;
}

.dialog__body {
    margin-top: 0;
    padding: 24px;
}

.dialog__close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background-color: var(--shade-3);
    border: none;
    font-size: 1.5rem;
    color: var(--shade-1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.dialog__close:active {
    transform: scale(0.97);
}

.dialog--qr {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.dialog--qr[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog--qr::backdrop {
    background-color: var(--shade-5);
}

.dialog--qr .dialog__close {
    top: 16px;
    left: 16px;
}

.dialog--qr .qr {
    width: auto;
    height: auto;
    max-width: 50%;
    max-height: 50%;
}

@media (min-width: 769px) {
    :root {
        --navbar-item: 60px;
        --navbar-padding: 12px;
        --navbar-gap: 12px;
        --navbar-offset: 20px;
        --navbar-height: calc(var(--navbar-item) + 2 * var(--navbar-padding) + 2px);
        --navbar-space: calc(var(--navbar-offset) + var(--navbar-height));
    }

    .home {
        min-height: calc(100vh - var(--navbar-space));
        padding-bottom: var(--navbar-space);
    }

    .discord {
        display: flex;
    }

    .scroll-to-top {
        bottom: calc(var(--navbar-space) + 20px);
    }

    .stage {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow-y: auto;
        box-sizing: border-box;
        padding: 2rem 1rem calc(var(--navbar-space) + 2rem);
        z-index: 1;
    }

    .stage .window {
        width: 100%;
        margin: auto 0;
    }

    .form-stage {
        padding-bottom: calc(var(--navbar-space) + 2rem);
    }

    .wrapper--hub {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow-y: auto;
        box-sizing: border-box;
        padding: 2rem 1rem calc(var(--navbar-space) + 2rem);
        margin: 0;
        z-index: 1;
    }

    .hub {
        margin: auto 0;
    }

    .tiles {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar {
        top: auto;
        bottom: var(--navbar-offset);
        left: 0;
        right: 0;
        margin: 0 auto;
        width: fit-content;
        height: var(--navbar-height);
        padding: var(--navbar-padding);
        box-sizing: border-box;
        border: solid 1px var(--shade-3);
        border-radius: 22px;
    }

    .navbar__list {
        flex-direction: row;
        width: auto;
        gap: var(--navbar-gap);
    }

    .navbar__item {
        width: var(--navbar-item);
        height: var(--navbar-item);
        aspect-ratio: 1 / 1;
        flex: none;
        margin: 0;
    }

    .navbar__item--link:hover,
    .navbar__item--link.is-active {
        width: var(--navbar-item);
    }

    .menu {
        left: -1px;
        right: -1px;
        bottom: calc(100% + 13px);
        border-radius: 22px;
        border: solid 1px var(--shade-3);
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .home {
        height: calc(100vh - 80px);
        padding-bottom: 80px;
    }

    .home__row {
        flex-direction: column;
    }

    .home__body {
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .home__actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 320px;
        gap: 20px;
    }

    .scroll-to-top {
        bottom: 100px;
    }

    .window {
        width: calc(100% - 5rem);
        margin: 40px auto;
    }

    .form-stage {
        align-items: flex-start;
        padding: 2.5rem 1rem 10rem 1rem;
    }

    .form-window {
        width: min(500px, 100% - 3rem);
        margin: 0 auto;
    }

    .wrapper {
        padding-top: 2.5rem;
    }

    .wrapper--hub {
        padding-bottom: 10rem;
    }

    .hub {
        margin-bottom: 0;
    }

    body[data-page="archive"] {
        padding-bottom: 0;
    }

    .table-container {
        margin-bottom: 40px;
    }

    table {
        width: 100%;
        border-spacing: 0;
        border-collapse: separate;
        border-radius: 22px;
        overflow: hidden;
    }

    .data-table thead th {
        display: none;
    }

    .data-table .group-header th {
        display: table-cell;
        border-radius: 0;
    }

    .data-table td {
        display: block;
        padding: 0.75rem 1rem;
    }

    .data-table td:first-child {
        padding-top: 1rem;
    }

    .data-table td:last-child {
        padding-bottom: 1rem;
    }

    .data-table td::before {
        color: var(--shade-1);
        content: attr(data-label);
    }

    .navbar {
        height: 80px;
        width: 100vw;
        bottom: 0;
        border-top: solid 1px var(--shade-3);
    }

    .navbar__list {
        flex-direction: row;
        width: 100%;
    }

    .navbar__item {
        margin: 0 5px;
    }

    .navbar__item--link:hover,
    .navbar__item--link.is-active {
        width: 100%;
    }

    .navbar__badge {
        right: 4px;
    }

    .menu {
        left: 0;
        bottom: 81px;
        width: 100%;
        border: solid 1px var(--shade-3);
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-radius: 0;
        padding: 12px;
    }

    .menu__list li:not(.menu__divider) {
        display: flex;
        width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .navbar__badge {
        top: 3px;
        right: 3px;
        width: 15px;
        height: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar__badge {
        animation: none;
    }

    #loading,
    #loading2 {
        transition: none;
    }
}
