:root {
    color-scheme: dark;
    font-family: Inter, system-ui, sans-serif;
    background: #07060a;
    color: #f4f4f5;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.chroma { background: #00ff00; }

#stage-root {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1080px;
    height: 1920px;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    overflow: hidden;
    background: #050309;
}

#floor {
    position: absolute;
    inset: 0;
    width: 1080px;
    height: 1920px;
    display: block;
}

#title-bar {
    position: absolute;
    top: 15%;
    left: 28px;
    right: 28px;
    height: 78px;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.title-track {
    display: flex;
    width: max-content;
    height: 100%;
    animation: title-run var(--title-seconds, 16s) linear infinite;
}

.title-run {
    display: block;
    padding-right: 120px;
    font: 800 42px/78px Inter, system-ui, sans-serif;
    letter-spacing: 0.5px;
    white-space: nowrap;
    background-image: linear-gradient(90deg,
        #ff2a2a 0%,
        #ff8c00 14%,
        #ffe14a 28%,
        #3dff6a 42%,
        #2ec8ff 57%,
        #5b6cff 71%,
        #e14bff 85%,
        #ff2a2a 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: title-colors 2.4s linear infinite;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.8));
}

@keyframes title-run {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes title-colors {
    from { background-position: 0 0; }
    to { background-position: 200% 0; }
}
