:root {
    --background: #17191b;
    --background-soft: #1d2022;
    --text: #f2f0eb;
    --muted: #a4a7a3;
    --border: #34383a;
    --orange: #ff7b00;
    --gold: #e2b96f;
    --button: #252a2c;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

.home-page {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.home-header {
    height: 78px;
    flex: 0 0 78px;
    padding: 0 5.2vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ffffff14;
}

.home-brand,
.wrapped-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.home-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.home-wordmark {
    width: auto;
    height: 27px;
    max-width: 175px;
    object-fit: contain;
}

.home-year,
.header-year {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 2px;
}

.home-main {
    width: min(1120px, 100%);
    flex: 1;
    margin: 0 auto;
    padding: 70px 40px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.home-intro {
    width: min(700px, 100%);
}

.eyebrow {
    margin: 0 0 20px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.4px;
}

.home-intro h1 {
    margin: 0;
    font-size: clamp(48px, 7.5vw, 88px);
    line-height: .98;
    letter-spacing: -3px;
    font-weight: 900;
}

.home-intro h1 span {
    color: var(--orange);
}

.home-lead {
    margin: 28px 0 8px;
    color: var(--text);
    font-size: clamp(21px, 2.8vw, 30px);
    line-height: 1.25;
    font-weight: 700;
}

.home-description {
    max-width: 590px;
    margin: 0;
    color: #c2c4bf;
    font-size: 17px;
    line-height: 1.7;
}

.home-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.button {
    min-height: 48px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--orange);
    color: #17191b;
    border: 1px solid var(--orange);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.button:hover {
    background: #ff922b;
    border-color: #ff922b;
    transform: translateY(-2px);
}

.button span {
    font-size: 20px;
    line-height: 14px;
}

.discord-button {
    min-height: 48px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: var(--text);
    border: 1px solid #555b5e;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.discord-button:hover {
    background: #252a2c;
    border-color: #858b8e;
    transform: translateY(-2px);
}

.discord-button svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.home-footnote {
    margin: 18px 0 0;
    color: #858b88;
    font-size: 13px;
}

.login-notice {
    margin: 18px 0 0;
    color: #ffb4a8;
    font-size: 14px;
}

.home-side {
    width: 230px;
    flex: 0 0 230px;
    padding: 28px 0 28px 30px;
    border-left: 1px solid var(--border);
}

.side-year {
    color: var(--gold);
    font-size: 64px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -3px;
}

.side-rule {
    width: 54px;
    height: 3px;
    margin: 24px 0;
    background: var(--orange);
}

.side-caption {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 2px;
}

.home-footer {
    min-height: 58px;
    padding: 0 5.2vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #ffffff14;
    color: #858b88;
    font-size: 11px;
    letter-spacing: 1.5px;
}

.home-footer a {
    color: #aeb1ac;
    text-decoration: none;
    letter-spacing: 0;
    font-size: 12px;
}

.home-footer a:hover {
    color: var(--orange);
}

.wrapped-page {
    height: 100vh;
    height: 100dvh;
    min-height: 360px;
    overflow: hidden;
}

.wrapped-header {
    position: fixed;
    z-index: 5;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    padding: 0 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--background);
    border-bottom: 1px solid #ffffff14;
}

.brand-logo {
    width: 43px;
    height: 43px;
    object-fit: contain;
}

.brand-wordmark {
    width: auto;
    height: 28px;
    max-width: 180px;
    object-fit: contain;
}

.brand-divider {
    width: 1px;
    height: 27px;
    margin: 0 3px;
    background: #ffffff35;
}

.brand-wrapped {
    color: var(--orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

#progress {
    position: fixed;
    z-index: 7;
    top: 75px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--orange);
    transition: width 8500ms linear;
    will-change: width;
}

#progress.progress-paused {
    transition: none;
}

#screen {
    position: fixed;
    top: 79px;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 40px 100px 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    text-align: center;
}

.wrapped-content {
    width: min(900px, 100%);
    flex: 0 0 auto;
    margin: auto;
    padding: 22px 0;
    transform-origin: center;
}

.wrapped-content h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(36px, 6.3vw, 76px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -2px;
    overflow-wrap: anywhere;
}

.category {
    margin-bottom: 25px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.subtitle {
    max-width: 760px;
    margin: 23px auto 0;
    color: #c9c9c2;
    font-size: clamp(18px, 2.1vw, 23px);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.number {
    margin-top: 8px;
    color: var(--gold);
    font-size: clamp(76px, 13vw, 142px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -4px;
    overflow-wrap: anywhere;
    animation: number-arrive .7s cubic-bezier(.2, .8, .2, 1) both;
}

.number-small {
    font-size: clamp(66px, 10vw, 115px);
}

.number-unit {
    margin-top: 2px;
    color: var(--gold);
    font-size: clamp(18px, 2.2vw, 25px);
    font-weight: 700;
    letter-spacing: .5px;
}

.note {
    max-width: 760px;
    margin: 22px auto 0;
    color: #c9d2cf;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.scene-in {
    animation: scene-enter .65s cubic-bezier(.2, .75, .25, 1) both;
}

.scene-in-reverse {
    animation: scene-enter-reverse .65s cubic-bezier(.2, .75, .25, 1) both;
}

.scene-out {
    opacity: 0;
    transform: translateY(-12px) scale(.985);
    filter: blur(3px);
    transition: opacity .24s ease, transform .24s ease, filter .24s ease;
    pointer-events: none;
}

.scene-in .category,
.scene-in-reverse .category {
    animation: item-enter .55s .05s ease both;
}

.scene-in .number,
.scene-in-reverse .number {
    animation: number-arrive .75s .08s cubic-bezier(.2, .8, .2, 1) both;
}

.scene-in h1,
.scene-in-reverse h1 {
    animation: item-enter .6s .12s ease both;
}

.scene-in .subtitle,
.scene-in-reverse .subtitle {
    animation: item-enter .6s .2s ease both;
}

.scene-in .note,
.scene-in-reverse .note {
    animation: item-enter .6s .3s ease both;
}

.scene-in .summary-stats,
.scene-in-reverse .summary-stats {
    animation: item-enter .6s .25s ease both;
}

@keyframes scene-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.985);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes scene-enter-reverse {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(.985);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes item-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes number-arrive {
    from {
        opacity: 0;
        transform: scale(.88);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.summary-stats {
    width: min(760px, 100%);
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 38px;
    text-align: left;
}

.summary-stat {
    min-width: 0;
    padding: 15px 0 13px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.summary-stat span {
    color: var(--muted);
    font-size: 17px;
}

.summary-stat strong {
    color: var(--gold);
    font-size: clamp(20px, 2.8vw, 30px);
    text-align: right;
    overflow-wrap: anywhere;
}

.slide-arrow {
    position: fixed;
    z-index: 8;
    top: 50%;
    width: 52px;
    height: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: #252a2c;
    border: 1px solid #414749;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .18s ease, border-color .18s ease, transform .18s ease, opacity .18s ease;
}

.slide-arrow:hover {
    background: #343a3c;
    border-color: var(--orange);
    transform: translateY(-50%) scale(1.07);
}

.slide-arrow:active {
    transform: translateY(-50%) scale(.94);
}

.slide-arrow svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.slide-arrow-left {
    left: 28px;
}

.slide-arrow-right {
    right: 28px;
}

.slide-counter {
    position: fixed;
    z-index: 5;
    bottom: 24px;
    left: 50%;
    color: #858b88;
    font-size: 12px;
    letter-spacing: 1.5px;
    transform: translateX(-50%);
}

.wrapped-error {
    display: none;
}

@media (max-width: 700px) {
    .home-header {
        height: 66px;
        flex-basis: 66px;
        padding: 0 18px;
    }

    .home-logo {
        width: 36px;
        height: 36px;
    }

    .home-wordmark {
        height: 23px;
        max-width: 140px;
    }

    .home-main {
        padding: 55px 24px 65px;
    }

    .home-side {
        display: none;
    }

    .home-intro h1 {
        font-size: clamp(43px, 11vw, 68px);
        letter-spacing: -2px;
    }

    .home-description {
        font-size: 16px;
    }

    .home-footer {
        padding: 0 18px;
    }

    .home-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-actions .button,
    .home-actions .discord-button {
        width: 100%;
    }

    .wrapped-header {
        height: 66px;
        padding: 0 14px;
    }

    .brand-logo {
        width: 35px;
        height: 35px;
    }

    .brand-wordmark {
        height: 22px;
        max-width: 125px;
    }

    .wrapped-brand {
        gap: 8px;
    }

    .brand-divider {
        height: 22px;
        margin: 0 1px;
    }

    .brand-wrapped {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .header-year {
        font-size: 10px;
    }

    #progress {
        top: 65px;
    }

    #screen {
        top: 69px;
        padding: 28px 62px 60px;
    }

    .wrapped-content h1 {
        font-size: clamp(32px, 8.5vw, 56px);
        letter-spacing: -1.2px;
    }

    .category {
        margin-bottom: 20px;
        font-size: 11px;
        letter-spacing: 1.8px;
    }

    .number {
        font-size: clamp(62px, 17vw, 105px);
        letter-spacing: -3px;
    }

    .number-small {
        font-size: clamp(56px, 14vw, 90px);
    }

    .number-unit {
        font-size: 19px;
    }

    .subtitle {
        margin-top: 17px;
        font-size: 17px;
    }

    .note {
        margin-top: 16px;
        font-size: 16px;
    }

    .summary-stats {
        gap: 0 18px;
        margin-top: 20px;
    }

    .summary-stat {
        padding: 11px 0;
        gap: 6px;
    }

    .summary-stat span {
        font-size: 14px;
    }

    .summary-stat strong {
        font-size: clamp(18px, 5vw, 24px);
    }

    .slide-arrow {
        width: 40px;
        height: 40px;
    }

    .slide-arrow svg {
        width: 20px;
        height: 20px;
    }

    .slide-arrow-left {
        left: 10px;
    }

    .slide-arrow-right {
        right: 10px;
    }

    .slide-counter {
        bottom: 17px;
        font-size: 11px;
    }
}

@media (max-width: 390px) {
    .brand-wordmark {
        max-width: 105px;
    }

    .brand-wrapped {
        letter-spacing: .5px;
    }

    .summary-stats {
        grid-template-columns: 1fr;
    }

    .summary-stat {
        padding: 8px 0;
    }

    .slide-arrow {
        width: 36px;
        height: 36px;
    }

    #screen {
        padding-right: 50px;
        padding-left: 50px;
    }
}

@media (max-height: 650px) and (min-width: 701px) {
    #screen {
        align-items: flex-start;
        padding-top: 22px;
        padding-bottom: 45px;
    }

    .wrapped-content {
        margin: auto 0;
        padding: 8px 0;
    }

    .wrapped-content h1 {
        font-size: clamp(32px, 5vw, 58px);
    }

    .category {
        margin-bottom: 12px;
    }

    .number {
        margin-top: 4px;
        font-size: clamp(58px, 9vw, 100px);
    }

    .subtitle,
    .note {
        margin-top: 10px;
    }

    .summary-stats {
        margin-top: 12px;
    }

    .summary-stat {
        padding: 8px 0;
    }
}

@media (max-height: 520px) {
    .wrapped-header {
        height: 54px;
    }

    .brand-logo {
        width: 31px;
        height: 31px;
    }

    .brand-wordmark {
        height: 20px;
    }

    #progress {
        top: 53px;
    }

    #screen {
        top: 57px;
        padding-top: 10px;
        padding-bottom: 35px;
    }

    .category {
        margin-bottom: 8px;
    }

    .number {
        font-size: clamp(48px, 9vh, 75px);
    }

    .subtitle,
    .note {
        margin-top: 8px;
        font-size: 15px;
    }

    .slide-counter {
        bottom: 8px;
    }

    .slide-arrow {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}