.tsa-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
    background: #f2f3f1;
    color: #191c1b;
    font-family: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.tsa-loading-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .5;
    background-image:
        linear-gradient(90deg, #e4e7e5 1px, transparent 1px),
        linear-gradient(#e4e7e5 1px, transparent 1px);
    background-size: 56px 56px;
    animation: tsa-drift 24s linear infinite;
}

.tsa-loading-cont {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    padding: 10vmin;
    text-align: center;
}

.tsa-mark {
    display: grid;
    grid-template-columns: repeat(3, 26px);
    grid-template-rows: repeat(3, 26px);
    gap: 4px;
}

.tsa-mark i {
    display: block;
    background: #191c1b;
    opacity: .16;
    animation: tsa-set 2.4s ease-in-out infinite;
}

.tsa-mark i.tsa-slate { background: #4e5b5e; }
.tsa-mark i.tsa-patina { background: #2f6e5e; }
.tsa-mark i:nth-child(1) { animation-delay: 0s; }
.tsa-mark i:nth-child(2),
.tsa-mark i:nth-child(4) { animation-delay: .14s; }
.tsa-mark i:nth-child(5),
.tsa-mark i:nth-child(7) { animation-delay: .28s; }
.tsa-mark i:nth-child(3) { animation-delay: .46s; }

.tsa-loading-word {
    color: #191c1b;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1;
}

.tsa-loading-note {
    color: #6c7472;
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

@keyframes tsa-drift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 56px 56px, 56px 56px; }
}

@keyframes tsa-set {
    0% { opacity: .16; }
    18% { opacity: 1; }
    62% { opacity: 1; }
    100% { opacity: .16; }
}

@media (prefers-reduced-motion: reduce) {
    .tsa-loading-field { animation: none; }
    .tsa-mark i { animation: none; opacity: 1; }
}
