:root {
    --font-ui: "Segoe UI", Arial, sans-serif;
    --font-display: "Bodoni Moda", serif;
    --font-cjk: "Noto Serif SC", serif;
    --font-sign: "Rock Salt", sans-serif;
    --text-light: #fff;
    --text-muted: #595959;
    --text-subtle: #dedede;
    --panel-bg: #fff;
    --line-light: #e0e0e0;
    --status-bg: #949494;
    --timeline-offset: 16px;
    --content-width: 80%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    margin: 0;
    font-family: var(--font-ui);
    background: #000;
    color: var(--text-light);
}

a {
    color: inherit;
}

.timeline {
    position: relative;
    left: var(--timeline-offset);
    max-width: 700px;
    margin: 40px auto;
    padding: 20px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: var(--text-light);
}

.timeline-event {
    position: relative;
    width: 100%;
    min-width: 340px;
    padding: 20px 0 20px 60px;
    text-align: left;
}

.content,
.content-extra {
    display: inline-block;
    width: var(--content-width);
    background: var(--panel-bg);
    padding: 15px 25px;
}

.time-major,
.time-minor,
.time-extra {
    margin: 120px 0 12px;
    color: var(--text-light);
}

.time-major {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 3.5rem;
}

.time-minor {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: 3rem;
}

.time-extra {
    font-family: var(--font-sign);
    font-weight: 300;
    font-size: 2rem;
}

.picture {
    width: 100%;
    max-width: 100vw;
    height: auto;
}

.media-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.media-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.media-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.h-scroll {
    overflow-x: auto;
    white-space: nowrap;
}

.h-scroll .picture {
    display: inline-block;
}

.warplink {
    display: none;
    margin: 10px 0;
    font-family: var(--font-cjk);
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
}

.pconly {
    display: block;
}

.music-frame {
    margin-top: 120px;
    border: 0;
}

.music-frame.late {
    margin-top: 140px;
}

.title-logo {
    display: block;
    width: 90%;
    height: auto;
    margin: 100px auto 16px;
    mix-blend-mode: difference;
}

.divider {
    width: 150px;
    height: 1px;
    margin: 48px auto 16px;
    background: var(--line-light);
    mix-blend-mode: difference;
}

.subtitle {
    margin-bottom: 32px;
    font-family: var(--font-cjk);
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-subtle);
    mix-blend-mode: difference;
}

.author,
.comment {
    margin: 10px 0;
    font-family: var(--font-cjk);
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
}

.status {
    margin: 30px;
    padding: 8px 0;
    font-family: var(--font-cjk);
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-light);
    background: var(--status-bg);
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon {
    width: 64px;
    height: auto;
}

.status-text {
    color: var(--text-light);
    font-size: 1rem;
}

.finish {
    padding: 50vh 0;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 3.5rem;
    text-align: center;
    color: var(--text-light);
}

@media (max-width: 600px) {
    :root {
        --content-width: 100%;
        --timeline-offset: 0;
    }

    .timeline {
        max-width: 90vw;
        padding: 6px 0;
    }

    .timeline-event {
        min-width: 0;
        padding: 12px 0 12px 18px;
    }

    .content,
    .content-extra {
        padding: 12px 16px;
    }

    .pconly {
        display: none !important;
    }

    .warplink {
        display: block !important;
    }
}
