/* =========================================
   SPOTIFY WRAPPED – BUTIKSANALYS
   ========================================= */

/* — RESET — */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
    background: #000;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* — SLIDES — */
.slide {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s cubic-bezier(.4, 0, .2, 1);
    z-index: 1;
    overflow-y: auto;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

.scrollable {
    padding-top: 32px;
    padding-bottom: 40px;
}

.bg-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.slide-inner {
    position: relative;
    z-index: 2;
    max-width: 560px;
    width: 100%;
}

#slide-1 .slide-inner {
    max-width: 700px;
    padding: 56px 28px;
}

.center-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* — BACKGROUNDS — */
[data-bg="bg-intro"] {
    background: linear-gradient(145deg, #1DB954 0%, #148f3f 35%, #0a0a0a 100%);
}

[data-bg="bg-dark"] {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 45%, #0a0f1f 100%);
}

[data-bg="bg-gold"] {
    background: linear-gradient(145deg, #fbbf24 0%, #d97706 45%, #301705 100%);
}

[data-bg="bg-teal"] {
    background: linear-gradient(145deg, #0d9488 0%, #134e4a 45%, #0a1a19 100%);
}

[data-bg="bg-purple"] {
    background: linear-gradient(145deg, #7c3aed 0%, #4c1d95 45%, #0f0520 100%);
}

[data-bg="bg-green"] {
    background: linear-gradient(145deg, #059669 0%, #064e3b 45%, #021a12 100%);
}

[data-bg="bg-orange"] {
    background: linear-gradient(145deg, #ea580c 0%, #9a3412 40%, #1a0e07 100%);
}

[data-bg="bg-red"] {
    background: linear-gradient(145deg, #dc2626 0%, #7f1d1d 45%, #1a0505 100%);
}

[data-bg="bg-dark2"] {
    background: linear-gradient(145deg, #1e1e3f 0%, #111128 50%, #050510 100%);
}

[data-bg="bg-magenta"] {
    background: linear-gradient(145deg, #db2777 0%, #831843 40%, #1a0510 100%);
}

[data-bg="bg-blue"] {
    background: linear-gradient(145deg, #2563eb 0%, #1e3a8a 45%, #050d20 100%);
}

[data-bg="bg-finale"] {
    background: linear-gradient(145deg, #1DB954 0%, #7c3aed 40%, #db2777 70%, #0a0a1a 100%);
}

/* — ANIMATIONS — */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.slide.active .fade-up {
    opacity: 1;
    transform: translateY(0);
}

.slide.active .d1 {
    transition-delay: .15s;
}

.slide.active .d2 {
    transition-delay: .35s;
}

.slide.active .d3 {
    transition-delay: .6s;
}

.slide.active .d4 {
    transition-delay: .85s;
}

.slide:not(.active) .fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: none;
}

/* — INTRO — */
.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    margin-bottom: 28px;
    animation: bob 3s ease-in-out infinite;
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.title-xl {
    font-size: clamp(3rem, 9vw, 4.6rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.03em;
    text-transform: uppercase;
}

.amp {
    font-size: .6em;
    font-weight: 700;
    color: rgba(255, 255, 255, .45);
    letter-spacing: .15em;
}

.tag {
    margin-top: 10px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .3em;
    color: rgba(255, 255, 255, .5);
}

.sub {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, .4);
    margin-top: 8px;
}

.tap-hint {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: .92rem;
    color: rgba(255, 255, 255, .35);
    letter-spacing: .1em;
}

.chevron {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, .35);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translateY(0);
        opacity: .4;
    }

    50% {
        transform: translateY(5px);
        opacity: .8;
    }
}

/* — LABELS & TYPOGRAPHY — */
.label {
    font-family: 'Inter', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .45);
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.title-hero {
    font-size: clamp(2.6rem, 8vw, 3.8rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.title-lg {
    font-size: clamp(2.2rem, 6.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.number-giant {
    font-size: clamp(5rem, 16vw, 8.5rem);
    font-weight: 900;
    line-height: .92;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, .78));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.number-label {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .45);
    margin-top: 2px;
    margin-bottom: 16px;
}

.body {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255, 255, 255, .58);
    margin-top: 14px;
}

.body strong {
    color: #fff;
    font-weight: 600;
}

.body em {
    color: #1DB954;
    font-style: normal;
    font-weight: 600;
}

/* — HERO IMAGE — */
.hero-image {
    width: 100%;
    max-width: 640px;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .05);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.line-divider {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, .2);
    border-radius: 2px;
    margin: 14px auto;
}

/* — PILLS — */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 22px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.pill-gold {
    background: rgba(217, 119, 6, .15);
    border: 1px solid rgba(217, 119, 6, .3);
    color: #f59e0b;
}

.pill-green {
    background: rgba(29, 185, 84, .12);
    border: 1px solid rgba(29, 185, 84, .25);
    color: #1DB954;
}

.pill-warn {
    background: rgba(251, 191, 36, .12);
    border: 1px solid rgba(251, 191, 36, .25);
    color: #fbbf24;
}

.pill-red {
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .25);
    color: #ef4444;
}

/* — CARDS — */
.card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 20px 24px;
    text-align: left;
    backdrop-filter: blur(10px);
    margin-top: 4px;
    width: 100%;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.card p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, .6);
}

.card p strong {
    color: #fff;
}

.card p em {
    color: #1DB954;
    font-style: normal;
    font-weight: 600;
}

.card-gold {
    border-color: rgba(217, 119, 6, .25);
    background: rgba(217, 119, 6, .06);
}

.card-gold h3 {
    color: #f59e0b;
}

.card-warn {
    border-color: rgba(251, 191, 36, .25);
    background: rgba(251, 191, 36, .06);
}

.card-warn h3 {
    color: #fbbf24;
}

.card-crit {
    border-color: rgba(239, 68, 68, .25);
    background: rgba(239, 68, 68, .06);
}

.card-crit h3 {
    color: #ef4444;
}

.card-solution {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-color: rgba(29, 185, 84, .2);
    background: rgba(29, 185, 84, .06);
}

.card-solution h3 {
    color: #1DB954;
}

.card-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* — EFFECT LIST — */
.effect-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    width: 100%;
}

.effect {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .65);
    background: rgba(255, 255, 255, .04);
    border-radius: 10px;
    padding: 12px 16px;
}

/* — SHORTCUT DIAGRAM — */
.shortcut-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    width: 100%;
}

.sc-node {
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.sc-hot {
    background: rgba(29, 185, 84, .15);
    border: 1px solid rgba(29, 185, 84, .3);
    color: #1DB954;
}

.sc-cold {
    background: rgba(100, 116, 139, .15);
    border: 1px solid rgba(100, 116, 139, .3);
    color: rgba(255, 255, 255, .45);
}

.sc-path {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    justify-content: center;
}

.sc-line {
    height: 3px;
    width: 40px;
    flex-shrink: 0;
}

.sc-line-good {
    background: #1DB954;
}

.sc-line-bad {
    background: repeating-linear-gradient(90deg, #ef4444 0 6px, transparent 6px 10px);
}

.sc-skip {
    padding: 5px 16px;
    border-radius: 20px;
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .25);
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: .05em;
    white-space: nowrap;
}

/* — RANKING LIST — */
.rank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    padding: 14px 16px;
    backdrop-filter: blur(8px);
}

.rank-pos {
    font-size: 1.15rem;
    font-weight: 900;
    color: rgba(255, 255, 255, .35);
    min-width: 28px;
}

.rank-pos.rank-1 {
    color: #1DB954;
}

.rank-info {
    flex: 1;
    text-align: left;
}

.rank-name {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.rank-bar {
    height: 5px;
    background: rgba(255, 255, 255, .06);
    border-radius: 2px;
    overflow: hidden;
}

.rank-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, #1DB954, #1ed760);
    transition: width 1s cubic-bezier(.4, 0, .2, 1) .4s;
}

.rank-fill-warn {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.rank-fill-crit {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.slide.active .rank-fill {
    width: var(--pct, 50%);
}

.slide:not(.active) .rank-fill {
    width: 0;
    transition: none;
}

.rank-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .55);
    min-width: 40px;
    text-align: right;
}

.rank-badge {
    font-size: 1.1rem;
    min-width: 24px;
    text-align: center;
}

/* — ABC LIST — */
.abc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.abc-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 18px 20px;
    text-align: left;
    backdrop-filter: blur(8px);
}

.abc-letter {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(219, 39, 119, .3);
    flex-shrink: 0;
    min-width: 30px;
}

.abc-item strong {
    font-size: 1.1rem;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}

.abc-item span {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, .55);
}

/* — MOVE BOX — */
.move-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.move-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 18px 14px;
    backdrop-filter: blur(8px);
}

.move-to {
    background: rgba(29, 185, 84, .06);
    border-color: rgba(29, 185, 84, .2);
}

.move-tag {
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .35);
    text-transform: uppercase;
}

.move-where {
    font-family: 'Inter', sans-serif;
    font-size: .98rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .6);
}

.move-pct {
    font-size: 1.35rem;
    font-weight: 900;
    color: rgba(255, 255, 255, .45);
}

.move-pct.glow {
    color: #1DB954;
    text-shadow: 0 0 14px rgba(29, 185, 84, .35);
}

.move-arrow {
    flex-shrink: 0;
    animation: nudge 1.4s ease-in-out infinite;
}

@keyframes nudge {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

/* — OUTRO — */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-bottom: 24px;
}

.summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 20px 12px;
    backdrop-filter: blur(8px);
}

.sc-num {
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 3px;
}

.sc-lbl {
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .4);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.sc-gold {
    background: rgba(217, 119, 6, .08);
    border-color: rgba(217, 119, 6, .2);
}

.sc-gold .sc-num {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sc-warn {
    background: rgba(251, 191, 36, .06);
    border-color: rgba(251, 191, 36, .15);
}

.sc-warn .sc-num {
    color: #fbbf24;
}

.sc-crit {
    background: rgba(239, 68, 68, .06);
    border-color: rgba(239, 68, 68, .15);
}

.sc-crit .sc-num {
    color: #ef4444;
}

.outro-quote {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .55);
    line-height: 1.7;
    font-style: italic;
}

.outro-mark {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: .4;
}

.outro-mark span {
    font-size: 1.8rem;
}

.outro-mark p {
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
}

/* — PROGRESS BAR — */
.progress-rail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, .06);
    z-index: 200;
}

.progress-track {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1DB954, #1ed760);
    border-radius: 0 2px 2px 0;
    transition: width .5s cubic-bezier(.4, 0, .2, 1);
}

/* — NAV DOTS — */
.nav-dots {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 200;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    cursor: pointer;
    transition: all .3s ease;
}

.nav-dot.active {
    background: #1DB954;
    transform: scale(1.6);
    box-shadow: 0 0 6px rgba(29, 185, 84, .5);
}

.nav-dot:hover {
    background: rgba(255, 255, 255, .4);
    transform: scale(1.3);
}

/* — RESPONSIVE — */
@media (max-width: 520px) {
    .slide-inner {
        padding: 44px 20px;
    }

    .sc-node {
        padding: 10px 16px;
        font-size: .88rem;
    }

    .abc-item {
        padding: 14px 16px;
    }

    .abc-letter {
        font-size: 1.5rem;
    }

    .move-box {
        flex-direction: column;
        gap: 8px;
    }

    .move-arrow {
        transform: rotate(90deg);
    }

    @keyframes nudge {

        0%,
        100% {
            transform: rotate(90deg) translateX(0);
        }

        50% {
            transform: rotate(90deg) translateX(5px);
        }
    }

    .card-solution {
        flex-direction: column;
        gap: 8px;
    }

    .effect {
        font-size: .9rem;
        padding: 10px 14px;
    }

    .rank-item {
        padding: 12px 14px;
    }
}