.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

li .marquee-container {
    flex: 1;
    min-width: 0;
}

.marquee-content {
    display: block;
    overflow: hidden;
    width: 100%;
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
}

.marquee-item {
    white-space: nowrap;
    flex: none;
}

.marquee-track.is-animating {
    animation: none;
}

li:not(.active) .marquee-track.is-animating {
    width: 100%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

li:not(.active) .marquee-track.is-animating .marquee-item:nth-child(2) {
    display: none;
}

#now-name-card .marquee-track.is-animating,
li.active .marquee-track.is-animating {
    animation: marquee-scroll var(--marquee-duration, 10s) linear infinite;
    display: inline-flex;
    width: max-content;
}

@keyframes marquee-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(calc(-1 * var(--marquee-distance, 0px)), 0, 0);
    }
}

li.search-hidden {
    display: none !important;
}

.rename-input {
    width: 100%;
    box-sizing: border-box;
    font-size: inherit;
    font-family: inherit;
    padding: 2px 4px;
    border: 1px solid var(--outline);
    border-radius: 4px;
    background: var(--surface-container-high);
    color: var(--on-surface);
    outline: none;
}

.rename-input:focus {
    border-color: var(--primary);
}

body.dark,
html.dark {
    --primary: #9ed75b;
    --on-primary: #1e3700;
    --primary-container: #2e4f00;
    --on-primary-container: #b9f474;
    --secondary: #bfcbad;
    --on-secondary: #2a331e;
    --secondary-container: #404a33;
    --on-secondary-container: #dbe7c8;
    --tertiary: #a0d0cc;
    --on-tertiary: #003735;
    --tertiary-container: #1f4e4b;
    --on-tertiary-container: #bbece8;
    --error: #ffb4ab;
    --on-error: #690005;
    --error-container: #93000a;
    --on-error-container: #ffb4ab;
    --background: #1b1c18;
    --on-background: #e3e3db;
    --surface: #121410;
    --on-surface: #e3e3db;
    --surface-variant: #44483d;
    --on-surface-variant: #c5c8ba;
    --outline: #8e9285;
    --outline-variant: #44483d;
    --shadow: #000000;
    --scrim: #000000;
    --inverse-surface: #e3e3db;
    --inverse-on-surface: #30312c;
    --inverse-primary: #3e6a00;
    --surface-dim: #121410;
    --surface-bright: #383a35;
    --surface-container-lowest: #0d0f0b;
    --surface-container-low: #1b1c18;
    --surface-container: #1f201c;
    --surface-container-high: #292a26;
    --surface-container-highest: #343530;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

body {
    padding: 0px !important;
}

.black-div {
    background: #000000;
    background: -webkit-linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.95) 50%, rgba(0, 0, 0, 0.75) 75%, rgba(255, 255, 255, 0) 100%);
    background: -moz-linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.95) 50%, rgba(0, 0, 0, 0.75) 75%, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.95) 50%, rgba(0, 0, 0, 0.75) 75%, rgba(255, 255, 255, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",
            endColorstr="#FFFFFF",
            GradientType=0);
}

#viz {
    position: fixed;
    top: 2rem;
    left: 2rem;
    width: calc(100vw - 4rem);
    height: calc(100vh - 4rem);
    display: block;
    z-index: 0;
}

.viz-header nav {
    min-height: 48px;
}

.viz-header nav button,
.viz-header nav i,
.viz-header nav h5 {
    color: #fff !important;
}

.viz-controls-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 0.75rem env(safe-area-inset-bottom, 0);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.viz-info {
    padding: 2rem 1rem 0.25rem;
    text-align: center;
}

.viz-info h5 {
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.viz-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0.1rem 0 0;
    font-size: 0.75rem;
}

body.viz-ui-hidden .viz-header,
body.viz-ui-hidden .viz-controls-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

dialog {
    max-width: min(90vw, 80ch) !important;
}

@media (max-width: 1000px) {
    dialog {
        max-width: min(90vw, 50ch) !important;
    }
}

@media (max-width: 600px) {
    dialog {
        max-width: min(95vw, 30ch) !important;
    }
}