/* ================================================================
   EDUTRACK WRAPPED — SPOTIFY STYLE
   Full-screen animated story slides
================================================================ */

/* ─── KEYFRAMES ─── */
@keyframes recapFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes recapSlideUp { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes recapSlideLeft { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes recapBigPop { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes recapPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .85; } }
@keyframes recapOrb1 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px, -60px) scale(1.2); } }
@keyframes recapOrb2 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px, 50px) scale(1.15); } }
@keyframes recapOrb3 { 0%, 100% { transform: translate(0,0) scale(1.1); } 50% { transform: translate(30px, 30px) scale(0.9); } }
@keyframes recapFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes recapShimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes recapCountUp { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
@keyframes confettiFall { 0% { transform: translateY(-20px) rotate(0deg); opacity: 1; } 100% { transform: translateY(110vh) rotate(720deg); opacity: 0; } }
@keyframes tapHint { 0%, 100% { opacity: .6; transform: translateY(0); } 50% { opacity: 1; transform: translateY(4px); } }
@keyframes wbOrb1 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px, -20px) scale(1.1); } }
@keyframes wbOrb2 { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(-20px, 20px) scale(1.15); } }
@keyframes wbPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); } 70% { box-shadow: 0 0 0 16px rgba(168, 85, 247, 0); } }
@keyframes rankItemIn { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }

/* ─── RECAP OVERLAY ─── */
.recap-overlay {
    position: fixed; inset: 0; z-index: 20000;
    background: #0a0a0f;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .4s ease;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}
.recap-overlay.active {
    opacity: 1; pointer-events: all;
}

/* ─── PROGRESS BARS ─── */
.recap-progress {
    position: absolute; top: calc(12px + env(safe-area-inset-top, 0px));
    left: 12px; right: 12px;
    display: flex; gap: 5px; z-index: 30;
}
.recap-bar {
    flex: 1; height: 3px; background: rgba(255,255,255,.25); border-radius: 4px; overflow: hidden;
}
.recap-fill {
    height: 100%; background: #fff; width: 0; border-radius: 4px;
    transition: none;
}

/* ─── CLOSE BUTTON ─── */
.recap-close {
    position: absolute; top: calc(24px + env(safe-area-inset-top, 0px)); right: 18px;
    z-index: 40; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; cursor: pointer; border: none;
    transition: background .2s; -webkit-tap-highlight-color: transparent;
}
.recap-close:hover { background: rgba(255,255,255,.3); }

/* ─── NAV AREAS (tap left/right) ─── */
.recap-nav-prev, .recap-nav-next {
    position: absolute; top: 60px; bottom: 0; z-index: 25; width: 35%;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.recap-nav-prev { left: 0; }
.recap-nav-next { right: 0; }

/* ─── SLIDE ─── */
.recap-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .35s ease;
    overflow: hidden;
}
.recap-slide.active { opacity: 1; pointer-events: all; }

/* ─── BG GRADIENTS PER SLIDE ─── */
.recap-bg-gradient {
    position: absolute; inset: 0; z-index: 0;
    transition: opacity .4s;
}
.s0-grad { background: radial-gradient(ellipse at 30% 40%, #1a1a40 0%, #0a0a1f 60%, #000 100%); }
.s1-grad { background: radial-gradient(ellipse at 70% 30%, #1e3a5f 0%, #0d1b2e 60%, #050810 100%); }
.s2-grad { background: radial-gradient(ellipse at 40% 60%, #1a3a1a 0%, #0d1f0d 60%, #050a05 100%); }
.s3-grad { background: radial-gradient(ellipse at 60% 40%, #3a2a00 0%, #1f1600 60%, #0a0800 100%); }
.s4-grad { background: radial-gradient(ellipse at 30% 60%, #3a1a00 0%, #1f0d00 60%, #0a0500 100%); }
.s5-grad { background: radial-gradient(ellipse at 70% 40%, #1a003a 0%, #0d001f 60%, #050010 100%); }
.s6-grad { background: radial-gradient(ellipse at 50% 30%, #3a0000 0%, #1f0000 60%, #0a0000 100%); }
.s7-grad { background: radial-gradient(ellipse at 30% 70%, #001a3a 0%, #000d1f 60%, #00050a 100%); }
.s8-grad { background: radial-gradient(ellipse at 50% 50%, #1a0a3a 0%, #0a0020 50%, #000 100%); }

/* ─── ORBS ─── */
.recap-orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.recap-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: .6;
}
.ro1 { width: 55vw; height: 55vw; max-width: 400px; max-height: 400px; background: rgba(99,102,241,.5); top: -15%; left: -15%; animation: recapOrb1 12s ease-in-out infinite; }
.ro2 { width: 45vw; height: 45vw; max-width: 350px; max-height: 350px; background: rgba(168,85,247,.4); bottom: -15%; right: -15%; animation: recapOrb2 16s ease-in-out infinite; }
.ro3 { width: 35vw; height: 35vw; max-width: 280px; max-height: 280px; background: rgba(236,72,153,.3); top: 50%; left: 50%; transform: translate(-50%,-50%); animation: recapOrb3 10s ease-in-out infinite; }

/* ─── CONTENT CENTER ─── */
.recap-content-center {
    position: relative; z-index: 10;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; color: #fff;
    padding: 80px 28px 40px;
    width: 100%; max-width: 480px;
    gap: 16px;
}
.recap-slide.active .recap-content-center > * {
    animation: recapSlideUp .6s cubic-bezier(.16,1,.3,1) both;
}
.recap-slide.active .recap-content-center > *:nth-child(1) { animation-delay: .05s; }
.recap-slide.active .recap-content-center > *:nth-child(2) { animation-delay: .15s; }
.recap-slide.active .recap-content-center > *:nth-child(3) { animation-delay: .25s; }
.recap-slide.active .recap-content-center > *:nth-child(4) { animation-delay: .35s; }
.recap-slide.active .recap-content-center > *:nth-child(5) { animation-delay: .45s; }
.recap-slide.active .recap-content-center > *:nth-child(6) { animation-delay: .55s; }

/* ─── TYPOGRAPHY ─── */
.recap-eyebrow {
    font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
    color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 8px;
}
.recap-mega-title {
    font-size: clamp(2.8rem, 9vw, 4.5rem); font-weight: 950; line-height: 1.05;
    letter-spacing: -2px; color: #fff;
}
.recap-gradient-text {
    background: linear-gradient(135deg, #a855f7, #ec4899, #f59e0b);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.recap-slide-title {
    font-size: clamp(1.6rem, 6vw, 2.5rem); font-weight: 800; line-height: 1.2;
    letter-spacing: -1px; color: #fff;
}
.recap-subtitle-big {
    font-size: 1.05rem; color: rgba(255,255,255,.7); font-weight: 500; line-height: 1.5;
    max-width: 340px;
}
.recap-fun-phrase {
    font-size: .95rem; color: rgba(255,255,255,.6); font-weight: 600; font-style: italic;
    margin-top: 4px;
}

/* ─── BIG NUMBERS ─── */
.recap-big-number {
    font-size: clamp(5rem, 20vw, 9rem); font-weight: 950; letter-spacing: -4px; color: #fff;
    line-height: 1;
    animation: recapBigPop .7s cubic-bezier(.34,1.56,.64,1) both .2s;
}
.recap-big-number.orange { color: #fb923c; text-shadow: 0 0 60px rgba(251,146,60,.5); }
.recap-big-number.purple { color: #a855f7; text-shadow: 0 0 60px rgba(168,85,247,.5); }
.recap-big-number.red    { color: #ef4444; text-shadow: 0 0 60px rgba(239,68,68,.5); }

/* ─── MEDIA CIRCLE ─── */
.recap-media-circle {
    width: 200px; height: 200px; border-radius: 50%;
    border: 6px solid rgba(255,255,255,.2);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); backdrop-filter: blur(12px);
    position: relative;
    animation: recapBigPop .7s cubic-bezier(.34,1.56,.64,1) both .2s;
}
.recap-media-circle::before {
    content: ''; position: absolute; inset: -6px; border-radius: 50%;
    background: conic-gradient(#22c55e 0%, #f59e0b 50%, #ef4444 100%);
    z-index: -1; opacity: .4;
}
.recap-media-val {
    font-size: 3.5rem; font-weight: 950; letter-spacing: -2px; color: #fff; line-height: 1;
}
.recap-media-label {
    font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.6); margin-top: 4px;
}

/* ─── INFO ROW ─── */
.recap-info-row {
    display: flex; gap: 16px; justify-content: center; width: 100%;
}
.recap-info-box {
    flex: 1; background: rgba(255,255,255,.1); border-radius: 16px;
    padding: 16px 20px; display: flex; flex-direction: column; align-items: center; gap: 4px;
    max-width: 140px;
}
.recap-info-val { font-size: 2rem; font-weight: 950; color: #fff; letter-spacing: -1px; }
.recap-info-lab { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .5px; }

/* ─── CHIPS ─── */
.recap-chip-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.recap-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
    border-radius: 20px; font-size: .9rem; font-weight: 800; backdrop-filter: blur(8px);
}
.recap-chip.green  { background: rgba(34,197,94,.25);  color: #4ade80; border: 1px solid rgba(34,197,94,.4); }
.recap-chip.red    { background: rgba(239,68,68,.25);  color: #f87171; border: 1px solid rgba(239,68,68,.4); }
.recap-chip.orange { background: rgba(249,115,22,.25); color: #fb923c; border: 1px solid rgba(249,115,22,.4); }
.recap-chip.blue   { background: rgba(59,130,246,.25); color: #60a5fa; border: 1px solid rgba(59,130,246,.4); }

/* ─── SUBJECT SLIDE ─── */
.recap-subject-icon {
    font-size: 5rem; line-height: 1;
    animation: recapFloat 3s ease-in-out infinite .3s;
}
.recap-subject-name {
    font-size: clamp(1.8rem, 6vw, 3rem); font-weight: 950; color: #fff;
    letter-spacing: -1px; max-width: 90%; overflow-wrap: break-word;
}
.recap-subject-media {
    display: flex; align-items: baseline; gap: 8px; color: rgba(255,255,255,.9);
}
.recap-subject-media span { font-size: 3rem; font-weight: 950; letter-spacing: -2px; color: #fbbf24; }
.recap-subject-media small { font-size: .95rem; font-weight: 700; color: rgba(255,255,255,.6); }
.recap-worst-box {
    background: rgba(255,255,255,.08); border-radius: 12px; padding: 10px 18px;
    font-size: .9rem; color: rgba(255,255,255,.7); font-weight: 600;
    border: 1px solid rgba(255,255,255,.12);
}
.recap-worst-box strong { color: #f87171; }
.recap-excl-note {
    font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.35);
    display: flex; align-items: center; gap: 5px; letter-spacing: .3px;
}
.recap-excl-note i { font-size: .7rem; }

/* ─── ASSENZE ─── */
.recap-ore-perse {
    background: rgba(255,255,255,.08); border-radius: 14px; padding: 12px 20px;
    font-size: .95rem; color: rgba(255,255,255,.8); font-weight: 600;
}
.recap-ore-perse strong { color: #fb923c; font-size: 1.2rem; }

/* ─── ARGOMENTI ─── */
.recap-compiti-box {
    display: flex; gap: 12px; width: 100%;
}
.recap-compiti-item {
    flex: 1; background: rgba(255,255,255,.1); border-radius: 16px;
    padding: 18px 14px; display: flex; align-items: center; gap: 12px;
    border: 1px solid rgba(255,255,255,.15);
}
.recap-compiti-item i { font-size: 1.4rem; color: #c084fc; }
.recap-compiti-item div { display: flex; flex-direction: column; align-items: flex-start; }
.recap-compiti-item strong { font-size: 1.8rem; font-weight: 950; color: #fff; letter-spacing: -1px; line-height: 1; }
.recap-compiti-item small { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; margin-top: 2px; }

/* ─── RANKING (Slide 7) ─── */
.recap-ranking-list {
    display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 380px;
}
.recap-rank-item {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,.08); border-radius: 14px; padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.12);
    animation: rankItemIn .5s var(--ease-out) both;
}
.recap-rank-num {
    font-size: 1.1rem; font-weight: 950; color: rgba(255,255,255,.4); width: 24px; flex-shrink: 0;
}
.recap-rank-num.gold   { color: #fbbf24; }
.recap-rank-num.silver { color: #94a3b8; }
.recap-rank-num.bronze { color: #d97706; }
.recap-rank-emoji { font-size: 1.4rem; flex-shrink: 0; }
.recap-rank-name {
    flex: 1; font-size: .95rem; font-weight: 800; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left;
}
.recap-rank-bar-wrap { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.recap-rank-val { font-size: 1.1rem; font-weight: 950; color: #fff; letter-spacing: -.5px; }
.recap-rank-bar { width: 60px; height: 5px; background: rgba(255,255,255,.15); border-radius: 4px; overflow: hidden; }
.recap-rank-bar-fill { height: 100%; background: linear-gradient(90deg, #a855f7, #ec4899); border-radius: 4px; }

/* ─── FINALE ─── */
.recap-finale-icon {
    font-size: 5rem; line-height: 1;
    animation: recapFloat 3s ease-in-out infinite, recapBigPop .8s cubic-bezier(.34,1.56,.64,1) both .1s;
}
.recap-finale-stats {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.recap-fs-item {
    background: rgba(255,255,255,.1); border-radius: 16px; padding: 16px 20px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    border: 1px solid rgba(255,255,255,.15); min-width: 90px;
}
.recap-fs-val { font-size: 2rem; font-weight: 950; color: #fff; letter-spacing: -1px; }
.recap-fs-lab { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .5px; }

.recap-restart-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3);
    border-radius: 30px; padding: 12px 28px; font-size: 1rem; font-weight: 800;
    cursor: pointer; font-family: inherit; backdrop-filter: blur(8px);
    transition: background .2s, transform .2s; margin-top: 4px;
}
.recap-restart-btn:hover { background: rgba(255,255,255,.25); transform: scale(1.03); }

/* ─── TAP HINT ─── */
.recap-tap-hint {
    font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.45);
    display: flex; align-items: center; gap: 8px;
    animation: tapHint 2s ease-in-out infinite;
    margin-top: 8px;
}

/* ─── CONFETTI ─── */
.recap-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.confetti-piece {
    position: absolute; top: -20px; border-radius: 3px; opacity: 0;
    animation: confettiFall linear forwards;
}

/* ─── WRAPPED BANNER (in Dashboard) ─── */
.wrapped-banner-card {
    position: relative; border-radius: 24px; overflow: hidden;
    padding: 28px 28px 24px; cursor: pointer;
    margin-bottom: 24px;
    min-height: 160px;
    display: flex; align-items: flex-end; justify-content: space-between;
    border: 1px solid rgba(168,85,247,.25);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.wrapped-banner-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 60px rgba(168,85,247,.35);
}
.wrapped-banner-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #1a0540 0%, #2d0066 40%, #0f1535 100%);
    z-index: 0;
}
.wrapped-banner-orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.wb-orb {
    position: absolute; border-radius: 50%; filter: blur(50px);
}
.wb-orb-1 { width: 200px; height: 200px; background: rgba(168,85,247,.4); top: -60px; right: -40px; animation: wbOrb1 8s ease-in-out infinite; }
.wb-orb-2 { width: 150px; height: 150px; background: rgba(236,72,153,.3); bottom: -40px; left: 20px; animation: wbOrb2 11s ease-in-out infinite; }

.wrapped-banner-content {
    position: relative; z-index: 2; flex: 1;
    display: flex; flex-direction: column; gap: 6px;
}
.wrapped-banner-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 2px;
    color: #c084fc; background: rgba(168,85,247,.2); border: 1px solid rgba(168,85,247,.4);
    border-radius: 8px; padding: 4px 10px; width: fit-content;
}
.wrapped-banner-title {
    font-size: 1.55rem; font-weight: 950; letter-spacing: -.5px; color: #fff;
    line-height: 1.1;
}
.wrapped-banner-sub {
    font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.65); line-height: 1.4;
    max-width: 280px;
}
.wrapped-banner-cta {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
    font-size: .9rem; font-weight: 800; color: #e9d5ff;
    background: rgba(168,85,247,.25); border: 1px solid rgba(168,85,247,.4);
    border-radius: 20px; padding: 8px 16px; width: fit-content;
    transition: background .2s; animation: wbPulse 2.5s ease-in-out infinite;
}

.wrapped-banner-preview {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
    margin-left: 16px; flex-shrink: 0;
}
.wb-stat-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px; padding: 8px 14px;
    font-size: .9rem; font-weight: 800; color: #fff;
    white-space: nowrap;
}
.wb-stat-pill i { font-size: .85rem; color: #c084fc; }

/* ─── MOBILE RESPONSIVE ─── */
/* ─── ACTION ROW (Rivedi + Condividi) ─── */
.recap-action-row {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.recap-share-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff; border: none;
    border-radius: 30px; padding: 12px 28px; font-size: 1rem; font-weight: 800;
    cursor: pointer; font-family: inherit;
    transition: transform .2s, box-shadow .2s; margin-top: 4px;
    box-shadow: 0 8px 24px rgba(168,85,247,.45);
}
.recap-share-btn:hover { transform: scale(1.05); box-shadow: 0 12px 32px rgba(168,85,247,.6); }
.recap-share-btn.loading { opacity: .75; pointer-events: none; }

/* ─── SHARE IMAGE PREVIEW MODAL ─── */
.wsi-modal-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.85); backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px; animation: recapFadeIn .3s ease;
}
.wsi-modal {
    display: flex; flex-direction: column; align-items: center; gap: 18px;
    max-width: 440px; width: 100%;
}
.wsi-modal img {
    width: 100%; max-width: 340px; border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    animation: recapSlideUp .4s cubic-bezier(.16,1,.3,1);
}
.wsi-modal-title {
    color: #fff; font-size: 1.1rem; font-weight: 800; text-align: center;
}
.wsi-modal-sub {
    color: rgba(255,255,255,.55); font-size: .85rem; font-weight: 600;
    text-align: center; margin-top: -10px;
}
.wsi-btn-row {
    display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.wsi-btn {
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: 24px; padding: 12px 22px; font-size: .95rem; font-weight: 800;
    cursor: pointer; font-family: inherit; border: none; transition: transform .2s;
}
.wsi-btn:hover { transform: scale(1.04); }
.wsi-btn-download { background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; }
.wsi-btn-native   { background: linear-gradient(135deg, #059669, #10b981); color: #fff; }
.wsi-btn-close    { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); }

/* ─── WRAPPED SHARE CARD DESIGN ─── */
.wsc-inner {
    width: 400px; height: 711px; position: relative; overflow: hidden;
    background: #0a0010;
    display: flex; flex-direction: column; align-items: center;
    padding: 36px 28px 24px; box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}
.wsc-bg {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
    background: radial-gradient(ellipse at 30% 20%, #1a003a 0%, #0a0020 50%, #000 100%);
}
.wsc-orb {
    position: absolute; border-radius: 50%; filter: blur(60px);
}
.wsc-orb-1 { width: 300px; height: 300px; background: rgba(124,58,237,.45); top: -80px; right: -60px; }
.wsc-orb-2 { width: 250px; height: 250px; background: rgba(236,72,153,.35); bottom: -60px; left: -50px; }
.wsc-orb-3 { width: 180px; height: 180px; background: rgba(245,158,11,.25); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.wsc-logo {
    position: relative; z-index: 1;
    font-size: .85rem; font-weight: 900; color: rgba(255,255,255,.5);
    text-transform: uppercase; letter-spacing: 2px;
    display: flex; align-items: center; gap: 6px;
    align-self: flex-start; margin-bottom: 4px;
}
.wsc-year-label {
    position: relative; z-index: 1;
    font-size: .75rem; font-weight: 800; color: rgba(255,255,255,.35);
    text-transform: uppercase; letter-spacing: 1.5px;
    align-self: flex-start; margin-bottom: 8px;
}
.wsc-hero-emoji {
    position: relative; z-index: 1;
    font-size: 4rem; line-height: 1; margin: 4px 0 2px;
}
.wsc-name {
    position: relative; z-index: 1;
    font-size: 1.5rem; font-weight: 950; color: #fff;
    letter-spacing: -.5px; margin-bottom: 16px;
}
.wsc-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%;
    margin-bottom: 14px;
}
.wsc-stat-card {
    border-radius: 16px; padding: 14px 12px; text-align: center;
    display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.wsc-blue   { background: rgba(59,130,246,.2);  border: 1px solid rgba(59,130,246,.3); }
.wsc-green  { background: rgba(16,185,129,.2);  border: 1px solid rgba(16,185,129,.3); }
.wsc-orange { background: rgba(249,115,22,.2);  border: 1px solid rgba(249,115,22,.3); }
.wsc-purple { background: rgba(168,85,247,.2);  border: 1px solid rgba(168,85,247,.3); }
.wsc-stat-icon { font-size: 1.3rem; line-height: 1; }
.wsc-stat-val  { font-size: 1.6rem; font-weight: 950; color: #fff; letter-spacing: -.5px; line-height: 1; }
.wsc-stat-lab  { font-size: .65rem; font-weight: 800; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .5px; }
.wsc-top-subject {
    position: relative; z-index: 1; width: 100%;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px; padding: 14px 16px; margin-bottom: 14px;
    display: flex; align-items: center; gap: 12px;
}
.wsc-ts-label { font-size: .7rem; font-weight: 800; color: #fbbf24; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.wsc-ts-name  { flex: 1; font-size: .95rem; font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsc-ts-media { font-size: 1.2rem; font-weight: 950; color: #fbbf24; letter-spacing: -.5px; white-space: nowrap; }
.wsc-phrase {
    position: relative; z-index: 1;
    font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.6);
    font-style: italic; text-align: center; max-width: 320px;
    margin-bottom: auto;
}
.wsc-footer {
    position: relative; z-index: 1;
    font-size: .65rem; font-weight: 700; color: rgba(255,255,255,.25);
    text-transform: uppercase; letter-spacing: 1.5px; margin-top: 14px;
}

@media (max-width: 480px) {
    .recap-action-row { gap: 8px; }
    .recap-share-btn { padding: 10px 20px; font-size: .9rem; }
    .wsi-btn { padding: 10px 18px; font-size: .85rem; }
    .recap-mega-title { font-size: 2.8rem; letter-spacing: -1.5px; }
    .recap-slide-title { font-size: 1.6rem; }
    .recap-big-number { font-size: 5.5rem; }
    .recap-content-center { padding: 70px 20px 30px; gap: 12px; }
    .recap-media-circle { width: 160px; height: 160px; }
    .recap-media-val { font-size: 2.8rem; }
    .recap-info-box { padding: 12px 14px; }
    .recap-info-val { font-size: 1.6rem; }
    .recap-compiti-item { padding: 14px 10px; }
    .recap-compiti-item strong { font-size: 1.5rem; }
    .recap-finale-stats { gap: 8px; }
    .recap-fs-val { font-size: 1.6rem; }
    .recap-fs-item { padding: 12px 14px; min-width: 75px; }
    .recap-rank-item { padding: 10px 12px; }
    .recap-rank-name { font-size: .85rem; }
    .wrapped-banner-card { padding: 20px; min-height: 140px; }
    .wrapped-banner-title { font-size: 1.25rem; }
    .wrapped-banner-preview { display: none; }
}

/* ─── SLIDE 9 GRADIENT ─── */
.s9-grad { background: radial-gradient(ellipse at 50% 20%, #1a2a00 0%, #0a1500 50%, #020502 100%); }

/* ─── LEADERBOARD CONSENT MODAL ─── */
@keyframes lbConsentIn {
    from { opacity: 0; transform: translateY(40px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.lb-consent-overlay {
    position: fixed; inset: 0; z-index: 30000;
    background: rgba(0,0,0,.75); backdrop-filter: blur(16px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px; opacity: 0; pointer-events: none;
    transition: opacity .35s ease;
}
.lb-consent-overlay.active { opacity: 1; pointer-events: all; }
.lb-consent-modal {
    background: linear-gradient(135deg, #1a1205 0%, #1f1a00 50%, #0d0a00 100%);
    border: 1px solid rgba(251,191,36,.25); border-radius: 28px;
    padding: 36px 32px 28px; max-width: 400px; width: 100%;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(251,191,36,.08);
    animation: lbConsentIn .5s cubic-bezier(.16,1,.3,1) both;
}
.lb-consent-icon { font-size: 4rem; line-height: 1; animation: recapFloat 3s ease-in-out infinite; }
.lb-consent-title {
    font-size: 1.6rem; font-weight: 950; color: #fbbf24;
    letter-spacing: -.5px; text-align: center; margin: 0;
}
.lb-consent-desc {
    font-size: .95rem; color: rgba(255,255,255,.75); line-height: 1.6;
    text-align: center; margin: 0; font-weight: 500;
}
.lb-consent-desc strong { color: #fde68a; }
.lb-consent-privacy {
    display: flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700; color: rgba(251,191,36,.5);
    background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.15);
    border-radius: 12px; padding: 8px 14px; text-align: center;
}
.lb-consent-privacy i { flex-shrink: 0; }
.lb-consent-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 6px; }
.lb-consent-yes {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, #d97706, #fbbf24); color: #1a0800;
    border: none; border-radius: 24px; padding: 15px 28px;
    font-size: 1.05rem; font-weight: 900; cursor: pointer; font-family: inherit;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 8px 28px rgba(251,191,36,.4);
}
.lb-consent-yes:hover { transform: scale(1.03); box-shadow: 0 12px 36px rgba(251,191,36,.55); }
.lb-consent-no {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.65);
    border: 1px solid rgba(255,255,255,.15); border-radius: 24px; padding: 12px 28px;
    font-size: .95rem; font-weight: 700; cursor: pointer; font-family: inherit;
    transition: background .2s;
}
.lb-consent-no:hover { background: rgba(255,255,255,.14); }

/* ─── LEADERBOARD SLIDE 9 ─── */
.lb-my-rank {
    display: flex; align-items: center; gap: 16px; width: 100%;
    background: linear-gradient(135deg, rgba(251,191,36,.15), rgba(245,158,11,.08));
    border: 1px solid rgba(251,191,36,.3); border-radius: 20px; padding: 18px 20px;
}
.lb-rank-badge {
    font-size: 2.2rem; font-weight: 950; color: #fbbf24;
    letter-spacing: -1px; min-width: 60px; text-align: center;
    text-shadow: 0 0 30px rgba(251,191,36,.6);
}
.lb-rank-info { flex: 1; text-align: left; }
.lb-rank-label { font-size: .7rem; font-weight: 800; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 1px; }
.lb-rank-media { font-size: 1.1rem; font-weight: 800; color: #fff; margin-top: 2px; }
.lb-rank-media strong { color: #fde68a; }
.lb-rank-total { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.4); white-space: nowrap; }

.lb-podium {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 8px; width: 100%;
}
.lb-podium-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    flex: 1; max-width: 110px;
}
.lb-podium-name {
    font-size: .78rem; font-weight: 800; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    width: 100%; text-align: center;
}
.lb-podium-block {
    width: 100%; border-radius: 12px 12px 0 0;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 10px;
    position: relative;
}
.lb-podium-block.p1 { height: 100px; background: linear-gradient(180deg, rgba(251,191,36,.4), rgba(251,191,36,.15)); border: 1px solid rgba(251,191,36,.4); }
.lb-podium-block.p2 { height: 75px;  background: linear-gradient(180deg, rgba(148,163,184,.35), rgba(148,163,184,.1)); border: 1px solid rgba(148,163,184,.35); }
.lb-podium-block.p3 { height: 55px;  background: linear-gradient(180deg, rgba(217,119,6,.35), rgba(217,119,6,.1)); border: 1px solid rgba(217,119,6,.3); }
.lb-podium-medal { font-size: 1.5rem; line-height: 1; }
.lb-podium-media { font-size: .8rem; font-weight: 950; color: rgba(255,255,255,.8); }

.lb-list {
    display: flex; flex-direction: column; gap: 8px; width: 100%;
    max-height: 200px; overflow-y: auto; padding-right: 4px;
}
.lb-list::-webkit-scrollbar { width: 3px; }
.lb-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }
.lb-list-item {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.08);
}
.lb-list-item.lb-is-me {
    background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.3);
}
.lb-list-rank { font-size: .95rem; font-weight: 950; color: rgba(255,255,255,.4); width: 28px; flex-shrink: 0; }
.lb-list-name { flex: 1; font-size: .9rem; font-weight: 700; color: #fff; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-list-media { font-size: 1rem; font-weight: 950; color: rgba(255,255,255,.8); letter-spacing: -.3px; }
.lb-is-me .lb-list-rank { color: #fbbf24; }
.lb-is-me .lb-list-media { color: #fde68a; }

.lb-no-part {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.2);
    border-radius: 16px; padding: 20px; width: 100%;
    font-size: .9rem; color: rgba(255,255,255,.5); font-weight: 600;
}
.lb-no-part i { font-size: 1.5rem; }
.lb-join-btn {
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #d97706, #fbbf24); color: #1a0800;
    border: none; border-radius: 20px; padding: 10px 22px;
    font-size: .9rem; font-weight: 900; cursor: pointer; font-family: inherit;
    transition: transform .2s;
}
.lb-join-btn:hover { transform: scale(1.04); }

