/* ═══════════════════════════════════════════════════════════
   SPOTIFY WRAPPED – AUTHENTIC BLACK, WHITE & SPOTIFY GREEN
   FUTURISTIC EDITION
   ═══════════════════════════════════════════════════════════ */

/* ── RESET & VARIABLES ──────────────────────────────────── */
:root {
  --bg: #0d0d0d;
  --bg-surface: #121212;
  --bg-card: #181818;
  --bg-card-hover: #222222;
  --spotify-green: #1DB954;
  --spotify-green-bright: #1ed760;
  --spotify-glow: rgba(29, 185, 84, 0.45);
  --spotify-glow-soft: rgba(30, 215, 96, 0.15);
  --text: #ffffff;
  --text-dim: #b3b3b3;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(29, 185, 84, 0.12) 0%, transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  color: var(--text);
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* ── INTRO (TURNTABLEN EDITION 2026) ───────────────────── */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background-color: #050505;
  overflow-y: auto;
  overflow-x: hidden;
  transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.intro.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* Czysta GPU aura bez ciężkiego filtra blur(60px) */
.intro-aura {
  position: absolute;
  inset: -15%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(29, 185, 84, 0.22) 0%, rgba(29, 185, 84, 0.06) 34%, transparent 62%),
    radial-gradient(circle at 80% 20%, rgba(30, 215, 96, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(20, 140, 60, 0.14) 0%, transparent 50%);
  animation: auraBreathe 16s ease-in-out infinite alternate;
  will-change: transform, opacity;
  z-index: 1;
}

@keyframes auraBreathe {
  0% {
    transform: translate3d(0, 0, 0) scale(0.97);
    opacity: 0.78;
  }

  100% {
    transform: translate3d(12px, -10px, 0) scale(1.06);
    opacity: 0.98;
  }
}

.intro-content {
  text-align: center;
  z-index: 2;
  animation: introPopIn 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2.1rem 2rem 1.85rem;
  max-width: 560px;
  width: 100%;
  margin: auto;
  background: linear-gradient(165deg, #161616 0%, #0b0b0b 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(29, 185, 84, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes introPopIn {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.intro-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(30, 215, 96, 0.55);
  color: var(--spotify-green-bright);
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-badge span {
  color: var(--spotify-green-bright);
}

.intro-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spotify-green-bright);
  flex-shrink: 0;
}

.intro-edition-tag {
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.intro-title {
  font-family: var(--font-display);
  margin: 0;
  width: 100%;
}

.intro-names {
  display: block;
  font-size: clamp(2rem, 6vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.06;
}

.intro-sub {
  font-size: 0.94rem;
  color: var(--text-dim);
  margin: 0.55rem 0 0;
  letter-spacing: 0.01em;
  font-weight: 400;
  line-height: 1.45;
}

/* ── INTRO TURNTABLE DECK & PŁYTA WINYLOWA E&F WRAPPED ──── */
.intro-turntable-deck {
  width: 100%;
  margin: 1.25rem 0 1.45rem;
  padding: 1rem 1.25rem 1.15rem;
  background: linear-gradient(180deg, #111111 0%, #090909 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.turntable-meta-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.55rem;
}

.turntable-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--spotify-green-bright);
}

.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.eq-bars i {
  display: block;
  width: 2.5px;
  height: 100%;
  background: var(--spotify-green-bright);
  border-radius: 2px;
  transform-origin: bottom;
  animation: eqBounce 0.95s ease-in-out infinite alternate;
}

.eq-bars i:nth-child(2) {
  animation-delay: 0.25s;
}

.eq-bars i:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes eqBounce {
  0% {
    transform: scaleY(0.32);
  }

  100% {
    transform: scaleY(1);
  }
}

.intro-visual-center {
  position: relative;
  width: 228px;
  height: 204px;
  margin: 0.25rem auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-platter-ring {
  position: absolute;
  width: 206px;
  height: 206px;
  border-radius: 50%;
  border: 1px solid rgba(30, 215, 96, 0.22);
  background: radial-gradient(circle, rgba(29, 185, 84, 0.08) 0%, transparent 72%);
  pointer-events: none;
}

/* Płyta winylowa (wyraźnie widoczny obrót tarczy, znaczników stroboskopowych i dwukolorowej etykiety) */
.intro-vinyl {
  position: relative;
  width: 192px;
  height: 192px;
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.92),
    0 0 0 2px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.vinyl-rotor {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinVinyl 5.5s linear infinite;
  will-change: transform;
  pointer-events: none;
}

@keyframes spinVinyl {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Pierścień stroboskopowych znaczników na rancie płyty */
.vinyl-strobe-dots {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2.5px dashed rgba(255, 255, 255, 0.32);
  z-index: 1;
  pointer-events: none;
}

.vinyl-grooves {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%,
      transparent 0,
      transparent 4px,
      rgba(255, 255, 255, 0.05) 5px,
      transparent 6px);
}

/* Wyraźne przerywane wycięcia ścieżek obracające się z płytą */
.vinyl-track-cuts {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.16);
  border-top-color: rgba(30, 215, 96, 0.38);
}

.vinyl-track-cuts::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(30, 215, 96, 0.3);
}

/* Mocniejsze refleksy świetlne wirujące wraz z winylem */
.vinyl-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 25deg,
      transparent 0deg,
      rgba(255, 255, 255, 0.18) 28deg,
      rgba(30, 215, 96, 0.08) 48deg,
      transparent 76deg,
      transparent 180deg,
      rgba(255, 255, 255, 0.18) 208deg,
      rgba(30, 215, 96, 0.08) 228deg,
      transparent 256deg);
}

.vinyl-static-gloss {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 36%,
      transparent 70%,
      rgba(255, 255, 255, 0.04) 100%);
}

/* Dwukolorowa asymetryczna etykieta winylowa kręcąca się z płytą */
.vinyl-label {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(180deg,
      #121212 0%,
      #121212 39%,
      var(--spotify-green-bright) 39.5%,
      var(--spotify-green) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 13px 6px 12px;
  color: #000000;
  box-shadow: 0 0 0 3px #0a0a0a, 0 0 0 4.5px rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.vinyl-label-top {
  font-family: var(--font-display);
  font-size: 0.4rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--spotify-green-bright);
  text-align: center;
  white-space: nowrap;
}

.vinyl-label-mid {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}

.vinyl-label-side {
  font-family: var(--font-display);
  font-size: 0.44rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #000000;
}

.vinyl-hole {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #000000;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.vinyl-label-bottom {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1;
  color: #000000;
  text-align: center;
  white-space: nowrap;
}

/* Minimalistyczne ramię gramofonu SVG */
.turntable-tonearm {
  position: absolute;
  right: -8px;
  top: 4px;
  z-index: 4;
  transform-origin: 45px 18px;
  transform: rotate(7deg);
  pointer-events: none;
}

/* Pasek postępu odtwarzacza na decku */
.intro-player-scrubber {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.scrubber-track-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.scrubber-song {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.scrubber-pill {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--spotify-green-bright);
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
}

.scrubber-bar {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.scrubber-fill {
  width: 78%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--spotify-green), var(--spotify-green-bright));
}

.scrubber-knob {
  position: absolute;
  left: 78%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px #090909;
}

.scrubber-times {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

/* Authentic Spotify Play Pill Button */
.intro-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.98rem 2.6rem;
  border: none;
  border-radius: 999px;
  background: var(--spotify-green);
  color: #000000;
  cursor: pointer;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease;
  will-change: transform;
}

.intro-play-btn:hover {
  background: var(--spotify-green-bright);
  transform: scale(1.04);
}

.intro-play-btn:active {
  transform: scale(0.98);
}

.intro-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-chapters-hint {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.48);
}

.intro-chapters-hint .hint-dot {
  color: var(--spotify-green);
}

/* ── PARTICLES ──────────────────────────────────────────── */
.intro-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}

/* ── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.85rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-brand::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--spotify-green);
  box-shadow: 0 0 10px var(--spotify-green);
}

.nav-brand.clickable {
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-brand.clickable:hover {
  opacity: 0.8;
  transform: scale(0.98);
}

.nav-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 50px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.tab.active {
  color: #000000;
  background: var(--spotify-green);
  box-shadow: none;
}

/* ── TAB CONTENT ────────────────────────────────────────── */
.tab-content {
  display: none;
  padding: 2.5rem 1.5rem 5rem;
  max-width: 960px;
  margin: 0 auto;
  animation: fadeInUp 0.45s ease-out;
}

.tab-content.active {
  display: block;
}

.section-header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-dim);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

/* ── LIVE TIMER ─────────────────────────────────────────── */
.live-timer {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.2rem 1.5rem;
  margin-bottom: 2.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(29, 185, 84, 0.35);
  box-shadow: 0 0 35px rgba(29, 185, 84, 0.12), inset 0 0 20px rgba(29, 185, 84, 0.03);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
  user-select: none;
}

.live-timer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--spotify-green), transparent 40%, transparent 60%, var(--spotify-green-bright));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.live-timer:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(29, 185, 84, 0.65);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85);
}

.live-timer:hover::before {
  opacity: 1;
}

.timer-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--spotify-green);
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.live-timer:hover .timer-label {
  color: var(--spotify-green-bright);
  text-shadow: 0 0 15px rgba(30, 215, 96, 0.6);
}

.timer-digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.timer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.5rem;
}

.timer-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  color: #ffffff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.timer-seconds {
  color: var(--spotify-green-bright) !important;
  text-shadow: 0 0 20px rgba(30, 215, 96, 0.65);
}

.timer-unit {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

.timer-sep {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: rgba(255, 255, 255, 0.15);
  padding-bottom: 1rem;
}

/* ── PODSUMOWANIE: WYŚRODKOWANY ZEGAR + BENTO NA CAŁY EKRAN ── */
.tab-podsumowanie-section {
  max-width: 1140px;
}

.tab-podsumowanie-section.active {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  padding: 2.5rem 1.5rem clamp(0.75rem, 1.8vh, 1.35rem);
}

.tab-podsumowanie-section .section-header {
  flex-shrink: 0;
  margin-bottom: clamp(0.6rem, 1.5vh, 1.35rem);
}

.tab-podsumowanie-section .live-timer {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  padding: clamp(0.68rem, 1.6vh, 1.4rem) 1.5rem;
  margin-bottom: clamp(0.65rem, 1.5vh, 1.25rem);
  border-radius: 20px;
}

.tab-podsumowanie-section .timer-label {
  margin-bottom: clamp(0.32rem, 0.85vh, 0.8rem);
}

.tab-podsumowanie-section .timer-block {
  min-width: 3.35rem;
}

.tab-podsumowanie-section .timer-value {
  font-size: clamp(1.5rem, 3.6vh, 2.5rem);
}

.tab-podsumowanie-section .timer-sep {
  font-size: clamp(1.2rem, 2.8vh, 1.95rem);
  padding-bottom: 0.78rem;
}

/* ── STATS GRID (BENTO 2-RZĘDOWY + IKONY SVG) ───────────── */
.stats-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(104px, 1fr));
  grid-auto-rows: minmax(104px, 1fr);
  gap: clamp(0.65rem, 1.2vw, 1.05rem);
}

.stat-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.035) 0%, #171717 50%, #121212 100%);
  border-radius: 18px;
  padding: clamp(0.78rem, 1.65vh, 1.55rem) clamp(1.05rem, 1.65vw, 1.55rem);
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 104px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  user-select: none;
  contain: layout paint;
  -webkit-tap-highlight-color: transparent;
}

.stat-card:nth-child(even):not(.stat-card--featured) {
  background: linear-gradient(160deg, rgba(29, 185, 84, 0.045) 0%, #161616 46%, #111111 100%);
}

.stat-card--wide {
  grid-column: span 2;
}

.stat-card--featured {
  grid-column: span 2;
  border-radius: 20px;
  padding: clamp(1.2rem, 2.4vh, 1.85rem) clamp(1.35rem, 2vw, 1.85rem);
  background:
    radial-gradient(circle at 86% 18%, rgba(30, 215, 96, 0.18) 0%, rgba(29, 185, 84, 0.05) 38%, transparent 65%),
    linear-gradient(145deg, #16221a 0%, #141414 56%, #111813 100%);
  border-color: rgba(29, 185, 84, 0.34);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), inset 0 0 28px rgba(29, 185, 84, 0.04);
}

.stat-card-glow {
  position: absolute;
  top: -42px;
  right: -42px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 185, 84, 0.13) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.stat-card--featured .stat-card-glow {
  width: 240px;
  height: 240px;
  top: -62px;
  right: -50px;
  background: radial-gradient(circle, rgba(30, 215, 96, 0.2) 0%, transparent 70%);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--spotify-green), transparent 50%, var(--spotify-green-bright));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 3;
}

.stat-card--featured::before {
  opacity: 0.42;
}

.stat-card:focus-visible {
  outline: none;
  border-color: var(--spotify-green-bright);
  box-shadow: 0 0 0 2px rgba(30, 215, 96, 0.35);
}

.stat-main {
  width: 100%;
  height: 100%;
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  transition: opacity 0.22s ease;
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.stat-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.stat-kicker-num {
  color: var(--spotify-green-bright);
}

.stat-kicker-sep {
  opacity: 0.45;
}

.stat-card--featured .stat-kicker {
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.32);
  padding: 0.3rem 0.76rem;
  border-radius: 999px;
  font-size: 0.7rem;
  color: #e6f9ed;
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(29, 185, 84, 0.1);
  border: 2px solid rgba(29, 185, 84, 0.36);
  color: var(--spotify-green-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(29, 185, 84, 0.12);
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.stat-icon-wrap svg {
  display: block;
  flex-shrink: 0;
}

.stat-card--featured .stat-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(29, 185, 84, 0.14);
  border-color: rgba(30, 215, 96, 0.52);
  box-shadow: 0 0 22px rgba(29, 185, 84, 0.24);
}

.stat-emoji-fallback {
  font-size: 1.25rem;
  line-height: 1;
}

.stat-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.stat-value-group {
  min-width: 0;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 3.5vw, 2.85rem);
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.stat-value--symbol {
  font-size: clamp(3.1rem, 5vw, 4.15rem);
  line-height: 0.74;
}

.stat-card--featured .stat-value {
  font-size: clamp(2.75rem, 4.8vw, 4rem);
  line-height: 0.96;
  text-shadow: 0 6px 26px rgba(29, 185, 84, 0.22);
}

.stat-label {
  color: var(--text-dim);
  font-size: clamp(0.76rem, 1vw, 0.86rem);
  margin-top: 0.42rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.28;
}

.stat-card--featured .stat-label {
  font-size: clamp(0.84rem, 1.15vw, 0.98rem);
  letter-spacing: 0.12em;
  color: #e8f5ec;
  margin-top: 0.48rem;
}

.stat-bottom-right {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.stat-featured-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
}

.stat-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spotify-green-bright);
  box-shadow: 0 0 8px rgba(30, 215, 96, 0.7);
}

.stat-fact-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.34);
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.stat-card.is-fact-open .stat-main,
.stat-card:focus-visible .stat-main {
  opacity: 0.04;
}

@media (hover: hover) {
  .stat-card:hover {
    transform: translate3d(0, -4px, 0);
    border-color: rgba(29, 185, 84, 0.55);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
  }

  .stat-card:hover::before {
    opacity: 1;
  }

  .stat-card:hover .stat-main {
    opacity: 0.04;
  }

  .stat-card:hover .stat-fact {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
}

/* ── Nakładka faktu po najechaniu / kliknięciu ───────────── */
.stat-fact {
  position: absolute;
  inset: 0;
  padding: 1.35rem 1.25rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(29, 185, 84, 0.12) 0%, transparent 65%),
    rgba(16, 16, 16, 0.98);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.98);
  transition: opacity 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 5;
  border: 1px solid var(--spotify-green);
}

.stat-card.is-fact-open .stat-fact,
.stat-card:focus-visible .stat-fact {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.stat-fact-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  margin: 0 auto;
  max-width: 96%;
}

.stat-card--featured .stat-fact-text {
  font-size: 1.04rem;
  line-height: 1.58;
  max-width: 84%;
}

@media (max-width: 860px) {
  .tab-podsumowanie-section.active {
    min-height: 0;
  }

  .stats-grid {
    flex: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 0.85rem;
  }

  .stat-card {
    min-height: 158px;
  }

  .stat-card--featured,
  .stat-card--wide {
    grid-column: 1 / -1;
  }
}

/* ── TIMELINE MONTH QUICK-JUMP AXIS (PO LEWEJ STRONIE) ────── */
.tab-wspomnienia-section {
  max-width: 1140px;
}

.timeline-workspace {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.75rem);
  align-items: start;
}

.timeline-month-nav {
  position: sticky;
  top: calc(var(--sticky-nav-height, 63px) + 1.4rem);
  z-index: 30;
  padding: 1rem 0.85rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 12%, rgba(30, 215, 96, 0.14) 0%, rgba(29, 185, 84, 0.04) 40%, transparent 70%),
    linear-gradient(145deg, #16221a 0%, #141414 56%, #111813 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(29, 185, 84, 0.34);
  box-shadow: 0 0 35px rgba(29, 185, 84, 0.1), inset 0 0 20px rgba(29, 185, 84, 0.03);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-month-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--spotify-green), transparent 40%, transparent 60%, var(--spotify-green-bright));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.45;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.timeline-month-nav.is-stuck {
  border-color: rgba(29, 185, 84, 0.48);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.72), 0 0 28px rgba(29, 185, 84, 0.14);
}

.timeline-month-nav.is-stuck::before {
  opacity: 0.72;
}

.timeline-axis-header {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--spotify-green);
  margin: 0 0 0.8rem 0.18rem;
  user-select: none;
}

.timeline-month-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.28rem;
  padding-left: 1.25rem;
}

.timeline-month-inner::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--spotify-green), rgba(29, 185, 84, 0.28), var(--spotify-green));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.42);
}

.timeline-month-pill {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.015em;
  padding: 0.46rem 0.66rem;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
  width: 100%;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.timeline-axis-dot {
  position: absolute;
  left: -19px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #141414;
  border: 2px solid rgba(29, 185, 84, 0.55);
  box-shadow: 0 0 8px rgba(29, 185, 84, 0.22);
  transition: width 0.2s ease, height 0.2s ease, left 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
}

.timeline-pill-label {
  transition: transform 0.18s ease;
}

.timeline-month-pill.is-bonus-pill {
  margin-top: 0.2rem;
}

.timeline-month-pill:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

.timeline-month-pill:hover .timeline-pill-label {
  transform: translateX(2px);
}

.timeline-month-pill:hover .timeline-axis-dot {
  border-color: var(--spotify-green-bright);
  background: rgba(29, 185, 84, 0.35);
}

.timeline-month-pill.active {
  background: rgba(29, 185, 84, 0.14);
  border-color: rgba(29, 185, 84, 0.42);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.14);
}

.timeline-month-pill.active .timeline-axis-dot {
  width: 12px;
  height: 12px;
  left: -20px;
  background: var(--spotify-green-bright);
  border-color: #000000;
  box-shadow: 0 0 14px var(--spotify-green-bright);
}

.timeline-month-pill:focus-visible {
  outline: none;
  border-color: var(--spotify-green-bright);
  box-shadow: 0 0 0 2px rgba(30, 215, 96, 0.35);
}

.timeline-month-group {
  display: flex;
  flex-direction: column;
}

.timeline-month-sublist {
  display: none;
  flex-direction: column;
  gap: 0.16rem;
  margin: 0.2rem 0 0.38rem 0.62rem;
  padding-left: 0.68rem;
  border-left: 1px dashed rgba(29, 185, 84, 0.35);
}

.timeline-month-group.is-expanded .timeline-month-sublist {
  display: flex;
}

.timeline-sub-pill {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: left;
  padding: 0.28rem 0.48rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.timeline-sub-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.timeline-sub-pill.active {
  color: var(--spotify-green-bright);
  background: rgba(29, 185, 84, 0.12);
  border-color: rgba(29, 185, 84, 0.32);
  font-weight: 700;
}

.timeline-mobile-subrail {
  display: none;
}

@media (min-width: 861px) and (max-height: 760px) {
  .tab-podsumowanie-section.active {
    padding-bottom: 0.7rem;
  }

  .tab-podsumowanie-section .section-header {
    margin-bottom: 0.65rem;
  }

  .tab-podsumowanie-section .live-timer {
    padding: 0.68rem 1.4rem;
    margin-bottom: 0.65rem;
  }

  .tab-podsumowanie-section .timer-label {
    margin-bottom: 0.3rem;
  }

  .tab-podsumowanie-section .timer-value {
    font-size: 1.65rem;
  }

  .tab-podsumowanie-section .timer-sep {
    font-size: 1.3rem;
    padding-bottom: 0.65rem;
  }

  .tab-podsumowanie-section .stats-grid {
    gap: 0.65rem;
    grid-template-rows: repeat(2, minmax(96px, 1fr));
    grid-auto-rows: minmax(96px, 1fr);
  }

  .tab-podsumowanie-section .stat-card {
    min-height: 96px;
    padding: 0.72rem 1.15rem;
  }

  .tab-podsumowanie-section .stat-value {
    font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  }

  .tab-podsumowanie-section .stat-card--featured .stat-value {
    font-size: clamp(2.15rem, 3.6vw, 3.1rem);
  }
}

@media (max-width: 820px) {
  .timeline-workspace {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline-month-nav {
    width: 100%;
    top: calc(var(--sticky-nav-height, 63px) + 0.45rem);
    padding: 0.36rem;
    border-radius: 16px;
    background: rgba(14, 14, 14, 0.95);
    overflow: hidden;
  }

  .timeline-month-scroll {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .timeline-month-scroll::-webkit-scrollbar {
    display: none;
  }

  .timeline-axis-header,
  .timeline-month-nav::before,
  .timeline-month-inner::before,
  .timeline-axis-dot,
  .timeline-month-sublist {
    display: none !important;
  }

  .timeline-month-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-left: 0;
    width: max-content;
    gap: 0.36rem;
  }

  .timeline-month-group {
    flex-direction: row;
  }

  .timeline-month-pill {
    width: auto;
    justify-content: center;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    background: #141414;
    border-color: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
  }

  .timeline-month-pill.is-bonus-pill {
    margin-top: 0;
  }

  .timeline-month-pill.active {
    background: var(--spotify-green);
    border-color: var(--spotify-green);
    color: #000000;
    box-shadow: 0 4px 14px rgba(29, 185, 84, 0.28);
  }

  .timeline-mobile-subrail {
    display: flex;
    gap: 0.34rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-top: 0.36rem;
    padding-top: 0.36rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .timeline-mobile-subrail::-webkit-scrollbar {
    display: none;
  }

  .timeline-mobile-subrail .timeline-sub-pill {
    flex-shrink: 0;
    padding: 0.24rem 0.62rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
  }
}

/* ── TIMELINE ───────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--spotify-green), rgba(29, 185, 84, 0.3), var(--spotify-green));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(29, 185, 84, 0.5);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.8rem;
  opacity: 0;
  transform: translate3d(-18px, 0, 0);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: none;
}

.timeline-dot {
  position: absolute;
  left: -2.55rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--spotify-green);
  box-shadow: 0 0 16px var(--spotify-green);
  border: 2px solid #000000;
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
  background: #ffffff;
  box-shadow: 0 0 16px #ffffff;
}

.timeline-date {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--spotify-green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.45rem;
}

.timeline-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 0.48rem;
}

.timeline-card p {
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.62;
}

/* ── TIMELINE BONUS SECTION (Wydarzenia całoroczne) ──────── */
.timeline-bonus-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3.5rem 0 2.8rem -1.2rem;
  position: relative;
  width: 100%;
}

.timeline-bonus-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 185, 84, 0.45), transparent);
}

.timeline-bonus-pill {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #e6f9ed;
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.36);
  box-shadow: 0 0 25px rgba(29, 185, 84, 0.22);
  padding: 0.5rem 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.timeline-item.is-bonus .timeline-dot {
  background: var(--spotify-green);
  box-shadow: 0 0 16px var(--spotify-green), 0 0 28px rgba(29, 185, 84, 0.6);
  border-color: #ffffff;
}

.timeline-item.is-bonus .timeline-date {
  color: var(--spotify-green-bright);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-item.is-bonus .timeline-card {
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 18%, rgba(30, 215, 96, 0.18) 0%, rgba(29, 185, 84, 0.05) 38%, transparent 65%),
    linear-gradient(145deg, #16221a 0%, #141414 56%, #111813 100%);
  border-color: rgba(29, 185, 84, 0.34);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), inset 0 0 28px rgba(29, 185, 84, 0.04);
}

.timeline-item.is-bonus .timeline-card::before {
  opacity: 0.42;
}

.timeline-item.is-bonus .timeline-card-glow {
  width: 220px;
  height: 220px;
  top: -56px;
  right: -46px;
  background: radial-gradient(circle, rgba(30, 215, 96, 0.2) 0%, transparent 70%);
}

/* ── TIMELINE ROW & SQUARE PHOTO BOX ────────────────────── */
.timeline-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.timeline-card {
  flex: 1;
  min-width: 0;
  position: relative;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.035) 0%, #171717 50%, #121212 100%);
  border-radius: 18px;
  padding: 1.3rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease 0.18s, box-shadow 0.25s ease 0.18s;
}

.timeline-item:nth-child(even):not(.is-bonus) .timeline-card {
  background: linear-gradient(160deg, rgba(29, 185, 84, 0.045) 0%, #161616 46%, #111111 100%);
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--spotify-green), transparent 50%, var(--spotify-green-bright));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 3;
}

.timeline-card-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.timeline-card-glow {
  position: absolute;
  top: -42px;
  right: -42px;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 185, 84, 0.13) 0%, transparent 70%);
  pointer-events: none;
}

.timeline-card-inner {
  position: relative;
  z-index: 2;
}

.timeline-card-footer {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem 0.75rem;
}

.timeline-photo-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 0.24rem 0.68rem;
}

.timeline-card {
  z-index: 4;
}

/* Invisible bridge extending across the 24px gap so transit to media box never loses hover */
.timeline-card:has(~ .timeline-media-wrap)::after {
  content: "";
  position: absolute;
  top: -10px;
  bottom: -10px;
  right: -32px;
  width: 32px;
  z-index: 5;
}

.timeline-card:hover,
.timeline-card.is-photo-active,
.timeline-card:has(~ .timeline-media-wrap:hover),
.timeline-card:has(~ .timeline-media-wrap.is-visible) {
  transform: translate3d(0, -3px, 0);
  border-color: rgba(29, 185, 84, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 20px rgba(29, 185, 84, 0.14);
  transition-delay: 0s;
}

.timeline-card:hover::before,
.timeline-card.is-photo-active::before,
.timeline-card:has(~ .timeline-media-wrap:hover)::before,
.timeline-card:has(~ .timeline-media-wrap.is-visible)::before {
  opacity: 1;
}

.timeline-media-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.timeline-media-stage {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
}

/* Polaroid stacked shadow cards behind photo box */
.timeline-media-stage.has-multi::before,
.timeline-media-stage.has-multi::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 265px;
  height: 265px;
  border-radius: 18px;
  background: linear-gradient(145deg, #1b241d, #111111);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-media-stage.has-multi::before {
  transform: rotate(-5deg) translate(-4px, 3px) scale(0.96);
}

.timeline-media-stage.has-multi::after {
  transform: rotate(4.5deg) translate(5px, 4px) scale(0.95);
}

.timeline-card:hover~.timeline-media-wrap .timeline-media-stage.has-multi::before,
.timeline-media-wrap:hover .timeline-media-stage.has-multi::before,
.timeline-media-wrap.is-visible .timeline-media-stage.has-multi::before {
  opacity: 0.85;
  transform: rotate(-4.5deg) translate(-6px, 2px) scale(0.97);
}

.timeline-card:hover~.timeline-media-wrap .timeline-media-stage.has-multi::after,
.timeline-media-wrap:hover .timeline-media-stage.has-multi::after,
.timeline-media-wrap.is-visible .timeline-media-stage.has-multi::after {
  opacity: 0.65;
  transform: rotate(4deg) translate(6px, 4px) scale(0.96);
}

/* Drawer slide-out reveal from behind timeline card */
.timeline-photo-box {
  width: 265px;
  height: 265px;
  min-width: 265px;
  min-height: 265px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid rgba(29, 185, 84, 0.4);
  background: #0d0d0d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-44px, 0, 0) scale(0.94);
  transition: opacity 0.26s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  flex-shrink: 0;
  user-select: none;
}

.timeline-photo-box.has-carousel {
  overflow: visible;
}

/* ONLY show when timeline-card is hovered OR when the media wrap / photo box itself is hovered/active */
.timeline-card:hover~.timeline-media-wrap .timeline-photo-box,
.timeline-media-wrap:hover .timeline-photo-box,
.timeline-media-wrap.is-visible .timeline-photo-box,
.timeline-photo-box:hover,
.timeline-photo-box.is-visible,
.timeline-item.active .timeline-photo-box {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  border-color: var(--spotify-green);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.9);
  transition-delay: 0s;
}

.photo-single-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  image-rendering: auto;
  cursor: zoom-in;
  transform-origin: var(--tl-origin, 50% 50%);
  transform: scale(var(--tl-scale, 1));
}

.photo-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  cursor: grab;
  touch-action: pan-y;
}

.photo-carousel-track.is-dragging {
  cursor: grabbing;
}

/* ── POLAROID PEEL ANIMATION ────────────────────────────── */
.photo-carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border: none;
  border-radius: 0;
  image-rendering: auto;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  backface-visibility: hidden;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: var(--tl-origin, 50% 50%);
  transform: translate3d(26px, 12px, 0) rotate(5deg) scale(calc(0.95 * var(--tl-scale, 1)));
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.22s ease;
}

.photo-carousel-track img.no-trans {
  transition: none !important;
}

.timeline-photo-box[data-dir="prev"] .photo-carousel-track img:not(.active):not(.exiting) {
  transform: translate3d(-26px, 12px, 0) rotate(-5deg) scale(calc(0.95 * var(--tl-scale, 1)));
}

.photo-carousel-track img.active,
.timeline-photo-box[data-dir="prev"] .photo-carousel-track img.active,
.timeline-photo-box[data-dir="next"] .photo-carousel-track img.active {
  transform: scale(var(--tl-scale, 1)) !important;
  opacity: 1 !important;
  pointer-events: auto;
  z-index: 3;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.22s ease;
}

.photo-carousel-track img.exiting {
  transform: translate3d(-72px, -18px, 0) rotate(-11deg) scale(calc(0.94 * var(--tl-scale, 1)));
  opacity: 0 !important;
  z-index: 4;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.32, 0, 0.67, 0.3), opacity 0.24s ease;
}

.timeline-photo-box[data-dir="prev"] .photo-carousel-track img.exiting {
  transform: translate3d(72px, -18px, 0) rotate(11deg) scale(calc(0.94 * var(--tl-scale, 1)));
  opacity: 0 !important;
  z-index: 4;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.32, 0, 0.67, 0.3), opacity 0.24s ease;
}

/* ── BENTO CAROUSEL ARROWS & INDICATORS ─────────────────── */
.timeline-photo-box .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(155deg, rgba(25, 34, 28, 0.92), rgba(14, 14, 14, 0.92));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(29, 185, 84, 0.45);
  color: #ffffff;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65), 0 0 12px rgba(29, 185, 84, 0.16);
}

.timeline-photo-box .carousel-btn svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  pointer-events: none !important;
}

.timeline-photo-box .carousel-btn:hover {
  background: linear-gradient(155deg, rgba(29, 185, 84, 0.52), rgba(14, 28, 19, 0.94));
  border-color: var(--spotify-green-bright);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 18px rgba(29, 185, 84, 0.65);
}

.timeline-photo-box .carousel-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.timeline-photo-box .carousel-prev {
  left: 8px;
}

.timeline-photo-box .carousel-next {
  right: 8px;
}

.timeline-photo-box .carousel-indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  align-items: center;
  z-index: 5;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.timeline-photo-box .carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.22s ease;
}

.timeline-photo-box .carousel-dot:hover {
  background: #ffffff;
}

.timeline-photo-box .carousel-dot.active {
  width: 14px;
  border-radius: 6px;
  background: var(--spotify-green);
  box-shadow: 0 0 8px rgba(29, 185, 84, 0.9);
}

.timeline-photo-box .carousel-counter {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 5;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ── PHOTO LIGHTBOX MODAL (4x Zoom na środku ekranu) ────── */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overscroll-behavior: contain;
  transition: opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.25s;
}

.photo-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: zoom-out;
}

.photo-lightbox-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 94vw;
  max-height: 94vh;
  gap: 20px;
}

.photo-lightbox-media-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Format HD wycentrowany na ekranie – naturalne proporcje, ostre krawędzie i maksymalna rozdzielczość */
.photo-lightbox-img {
  max-width: min(92vw, 1150px);
  max-height: min(84vh, 880px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(29, 185, 84, 0.55);
  background: #000000;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 45px rgba(29, 185, 84, 0.35);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.24s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s ease;
  user-select: none;
  image-rendering: auto;
  filter: contrast(1.02) saturate(1.03);
}

.photo-lightbox.open .photo-lightbox-img {
  transform: none;
  opacity: 1;
}

.photo-lightbox-caption {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(14, 14, 14, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 20px;
  border-radius: 30px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.photo-lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0;
}

.photo-lightbox-close:hover {
  background: var(--spotify-green);
  border-color: var(--spotify-green);
  color: #000000;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(29, 185, 84, 0.85);
}

.photo-lightbox-nav {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0;
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.photo-lightbox-nav:hover {
  background: var(--spotify-green);
  border-color: var(--spotify-green);
  color: #000000;
  transform: scale(1.12);
  box-shadow: 0 0 22px rgba(29, 185, 84, 0.85);
}

.photo-lightbox-nav:active {
  transform: scale(0.95);
}

.photo-lightbox-nav.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .photo-lightbox-container {
    gap: 8px;
  }

  .photo-lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .photo-lightbox-img {
    min-width: 0;
    min-height: 0;
    max-width: 90vw;
    max-height: 72vh;
  }
}

/* ── TOP 5 (EDITORIAL / WRAPPED BENTO REDESIGN) ────────── */
.tab-top5-section {
  max-width: 1240px;
}

/* ── KATEGORIE KART (NUMEROWANE PIGUŁKI NAWIGACJI) ──────── */
.top5-category-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.6rem 0;
}

.top5-cat-pill {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.52rem 1.05rem;
  border-radius: 50px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.top5-cat-pill:hover {
  background: #1e1e1e;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.top5-cat-pill.active {
  background: var(--spotify-green);
  border-color: var(--spotify-green);
  color: #000000;
  font-weight: 800;
  transform: translateY(-2px);
}

/* ── PRZESUWANA KARUZELA / SLIDER ──────────────────────── */
.top5-slider-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.top5-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  z-index: 15;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
  user-select: none;
}

.top5-slider-btn svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  pointer-events: none !important;
}

.top5-slider-btn:hover {
  background: var(--spotify-green);
  border-color: var(--spotify-green);
  color: #000000;
  transform: translateY(-50%) scale(1.08);
}

.top5-slider-btn:active {
  transform: translateY(-50%) scale(0.94);
}

.top5-slider-prev {
  left: -8px;
}

.top5-slider-next {
  right: -8px;
}

/* ── REVEAL DECK TRACK ─────────────────────────────────── */
.reveal-deck {
  display: flex;
  flex-direction: row;
  gap: 1.8rem;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 1.4rem 1.5rem 2.2rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(29, 185, 84, 0.35) transparent;
  margin: 0;
  contain: layout;
}

.reveal-deck::-webkit-scrollbar {
  height: 6px;
}

.reveal-deck::-webkit-scrollbar-track {
  background: transparent;
}

.reveal-deck::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

.reveal-deck::-webkit-scrollbar-thumb:hover {
  background: var(--spotify-green);
}

/* ── KARTY TOP 5 (BENTO EDITORIAL) ─────────────────────── */
.reveal-card {
  flex: 0 0 332px;
  width: 332px;
  min-height: 515px;
  position: relative;
  border-radius: 22px;
  cursor: pointer;
  user-select: none;
  scroll-snap-align: center;
  background: #121212;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  contain: paint;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.72);
}

.reveal-card:hover {
  transform: translate3d(0, -6px, 0);
}

.reveal-card.active-category {
  transform: translate3d(0, -8px, 0);
  box-shadow: 0 0 0 1.5px var(--spotify-green), 0 18px 38px rgba(0, 0, 0, 0.88);
}

.reveal-card.active-category:hover {
  transform: translate3d(0, -10px, 0);
}

.reveal-card.active-category .reveal-card-mask {
  border-color: var(--spotify-green) !important;
}

.reveal-card.active-category .reveal-card-content {
  border-color: var(--spotify-green) !important;
}

/* ── WARSTWA TREŚCI (WINNER) ───────────────────────────── */
.reveal-card-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(180deg, #191919 0%, #121212 55%, #0c0c0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity, filter;
}

.reveal-card:not(.revealed) .reveal-card-content {
  opacity: 0;
  transform: scale(0.95);
  filter: blur(12px);
  pointer-events: none;
}

.reveal-card.revealed .reveal-card-content {
  opacity: 1;
  transform: scale(1);
  filter: none;
  pointer-events: auto;
}

/* ── MASKA TAJEMNICY (UNREVEALED) ──────────────────────── */
.reveal-card-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 22%, #1d221f 0%, #131313 60%, #0b0b0b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.45rem 1.4rem 1.55rem;
  overflow: hidden;
  z-index: 5;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  opacity: 1;
  transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.38s ease,
    filter 0.44s ease;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.reveal-card:hover:not(.revealed) .reveal-card-mask {
  border-color: rgba(29, 185, 84, 0.55);
}

.reveal-card.revealed .reveal-card-mask {
  transform: translate3d(0, 0, 0) scale(1.06);
  filter: blur(12px);
  opacity: 0;
  pointer-events: none;
}

/* Znak wodny numeru karty na masce */
.card-watermark-num {
  position: absolute;
  right: 1rem;
  bottom: 2.8rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 6.4rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* Shimmer na masce z akceleracją sprzętową GPU */
.card-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: linear-gradient(105deg,
      transparent 35%,
      rgba(255, 255, 255, 0.045) 50%,
      transparent 65%);
  transform: translate3d(-100%, 0, 0);
  animation: maskShimmer 3.8s infinite ease-in-out;
  pointer-events: none;
  will-change: transform;
}

@keyframes maskShimmer {
  0% {
    transform: translate3d(-100%, 0, 0);
  }

  60%,
  100% {
    transform: translate3d(100%, 0, 0);
  }
}

.reveal-card.revealed .card-shimmer,
.reveal-card.revealed .mystery-glow-circle {
  animation: none !important;
  opacity: 0 !important;
}

/* Mask header */
.card-mask-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  z-index: 2;
}

.card-step-tag {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  white-space: nowrap;
}

.card-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: #1ed760;
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.35);
  padding: 0.34rem 0.82rem;
  border-radius: 50px;
  white-space: nowrap;
}

/* Mask center */
.card-mystery-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  position: relative;
  z-index: 2;
  margin: auto 0;
}

.mystery-glow-circle {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 185, 84, 0.22) 0%, transparent 70%);
  transform: scale3d(0.85, 0.85, 1);
  animation: mysteryPulse 2.8s infinite ease-in-out;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes mysteryPulse {

  0%,
  100% {
    transform: scale3d(0.85, 0.85, 1);
    opacity: 0.45;
  }

  50% {
    transform: scale3d(1.22, 1.22, 1);
    opacity: 0.9;
  }
}

.mystery-icon-box {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(29, 185, 84, 0.45);
  color: #1ed760;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  margin-bottom: 0.25rem;
}

.reveal-card:hover .mystery-icon-box {
  transform: scale(1.06);
  border-color: var(--spotify-green);
  background: rgba(29, 185, 84, 0.1);
}

.mystery-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-align: center;
}

.mystery-sublabel {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  text-align: center;
}

.card-front-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.reveal-touch-prompt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.68rem 1.3rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.reveal-card:hover .reveal-touch-prompt {
  background: var(--spotify-green);
  border-color: var(--spotify-green);
  color: #000000;
  transform: translateY(-2px);
}

/* ── SZCZEGÓŁY ODKRYTEJ KARTY ──────────────────────────── */
.reveal-card-content .card-image-box {
  flex: 0 0 232px;
  height: 232px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #141414;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: zoom-in;
}

.reveal-card-content .card-image-box .card-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-card-content .card-image-box:hover .card-img {
  transform: translate3d(0, 0, 0) scale(1.05);
}

.card-img-vignette {
  position: absolute;
  inset: -4px;
  z-index: 2;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 38%, rgba(20, 20, 20, 0.92) 89%, #141414 95%, #141414 100%);
  pointer-events: none;
}

.card-rank-chip {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  background: #1ed760;
  color: #000000;
  padding: 0.28rem 0.68rem;
  border-radius: 50px;
  pointer-events: none;
}

.card-back-info {
  position: relative;
  z-index: 4;
  flex: 1;
  margin-top: -4px;
  padding: calc(1rem + 4px) 1.25rem 1.25rem;
  background: linear-gradient(180deg, #141414 0%, #111111 45%, #0c0c0c 100%);
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  text-align: center;
  align-items: center;
  overflow: visible;
}

.card-back-header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 0.15rem;
}

.card-badge-winner {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1ed760;
  background: rgba(29, 185, 84, 0.1);
  border: 1px solid rgba(29, 185, 84, 0.32);
  padding: 0.26rem 0.75rem;
  border-radius: 50px;
  text-align: center;
  margin: 0 auto;
}

.card-winner-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.24rem;
  color: #ffffff;
  margin: 0 auto;
  line-height: 1.22;
  text-align: center;
  width: 100%;
}

.card-winner-sub {
  font-weight: 600;
  font-size: 0.86rem;
  color: #b3b3b3;
  text-align: center;
  margin: 0 auto;
  width: 100%;
}

.card-winner-desc {
  font-size: 0.86rem;
  color: #e2e2e2;
  line-height: 1.48;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  border-left: 3px solid var(--spotify-green);
  margin-top: auto;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

/* ── KONTROLKI KART (ODKRYJ / ZAKRYJ WSZYSTKIE) ────────── */
.reveal-deck-controls,
.top5-details-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  margin: 0.6rem 0 2.4rem 0;
  flex-wrap: wrap;
}

.reveal-action-btn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.68rem 1.45rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.reveal-action-btn.primary {
  background: var(--spotify-green);
  border: 1px solid var(--spotify-green);
  color: #000000;
}

.reveal-action-btn.primary:hover {
  transform: translateY(-2px);
  background: #1ed760;
  border-color: #1ed760;
}

.reveal-action-btn.secondary {
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-dim);
}

.reveal-action-btn.secondary:hover {
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
  background: #1f1f1f;
  transform: translateY(-2px);
}

/* ── PANEL RANKINGÓW SZCZEGÓŁOWYCH (PLAYLISTA 01–05) ───── */
.top5-details-section {
  margin-top: 2rem;
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 2.2rem 2rem 2.4rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}

.top5-details-header {
  margin-bottom: 1.6rem;
}

.top5-details-header h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.top5-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto 1.6rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.top5-switcher {
  display: inline-flex;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem;
  border-radius: 50px;
}

.top5-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 0.5rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 50px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  user-select: none;
}

.top5-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.top5-btn.active {
  background: var(--spotify-green);
  color: #000000;
  font-weight: 800;
}

.top5-details-controls {
  margin: 0;
  gap: 0.5rem;
}

.top5-details-controls .reveal-action-btn {
  padding: 0.54rem 1.05rem;
  font-size: 0.72rem;
}

.top5-container {
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

.top5-list {
  display: none;
}

.top5-list.active {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeInUp 0.16s ease-out;
}

.top5-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #141414;
  border-radius: 16px;
  padding: 1rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.top5-item.rank-1 {
  background: linear-gradient(90deg, rgba(29, 185, 84, 0.09) 0%, #141414 55%);
  border-color: rgba(29, 185, 84, 0.35);
}

.top5-item.locked {
  cursor: pointer;
}

.top5-item.locked:hover {
  transform: translateX(4px);
  background: #191919;
  border-color: rgba(29, 185, 84, 0.45);
}

.top5-item.revealed:hover {
  transform: translateX(4px);
  background: #1a1a1a;
  border-color: rgba(29, 185, 84, 0.35);
}

.top5-rank {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #b3b3b3;
  font-variant-numeric: tabular-nums;
}

.top5-item.rank-1 .top5-rank {
  background: rgba(29, 185, 84, 0.14);
  border-color: rgba(29, 185, 84, 0.4);
  color: #1ed760;
}

.top5-item.rank-2 .top5-rank {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.top5-item.rank-3 .top5-rank {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #dcdcdc;
}

.top5-item.rank-4 .top5-rank,
.top5-item.rank-5 .top5-rank {
  color: rgba(255, 255, 255, 0.45);
}

.top5-info {
  flex: 1;
  min-width: 0;
}

.top5-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.04rem;
  color: #ffffff;
}

.top5-comment {
  color: var(--text-dim);
  font-size: 0.86rem;
  margin-top: 0.22rem;
  line-height: 1.42;
}

.top5-winner-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: #000000;
  background: #1ed760;
  padding: 0.28rem 0.72rem;
  border-radius: 50px;
  flex-shrink: 0;
}

/* Ukrycie informacji w zakrytym kafelku */
.top5-item.locked .top5-info {
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.top5-item.locked .top5-winner-tag {
  opacity: 0;
  visibility: hidden;
}

.top5-item.revealed .top5-info {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.28s ease 0.04s, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
}

/* Dyskretna maska zasłaniająca treść z poziomym odsłonięciem na GPU */
.top5-item-mask {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4.8rem;
  right: 0;
  background: linear-gradient(90deg, #161616 0%, #131313 65%, #111111 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.35rem 0 0.6rem;
  z-index: 2;
  transform: translate3d(0, 0, 0);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  pointer-events: none;
  will-change: transform, opacity;
}

.top5-mask-bars {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  flex: 1;
  max-width: 240px;
}

.mask-bar-title {
  display: block;
  height: 11px;
  width: 68%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.mask-bar-sub {
  display: block;
  height: 8px;
  width: 100%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.top5-mask-content {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.36rem 0.85rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.top5-item.locked:hover .top5-mask-content {
  color: #000000;
  background: var(--spotify-green);
  border-color: var(--spotify-green);
}

.top5-item.rank-1.locked {
  cursor: not-allowed;
}

.top5-item.rank-1.locked:hover {
  transform: none;
  border-color: rgba(29, 185, 84, 0.32);
}

.top5-item.rank-1.locked:hover .top5-mask-content {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.top5-item.is-top-locked-nudge,
.top5-strip-tile.is-top-locked-nudge {
  animation: top5LockNudge 0.38s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.top5-item.is-top-locked-nudge .top5-mask-content {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

@keyframes top5LockNudge {

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

  22% {
    transform: translate3d(-5px, 0, 0);
  }

  48% {
    transform: translate3d(5px, 0, 0);
  }

  74% {
    transform: translate3d(-3px, 0, 0);
  }
}

.top5-item.revealed .top5-item-mask {
  transform: translate3d(104%, 0, 0);
  opacity: 0;
  pointer-events: none;
}

/* ── TOP 5 ZDJĘCIA — INTERAKTYWNA GALERIA PODGLĄDU ─────── */
.top5-photos-workspace {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  width: 100%;
}

.top5-photo-stage {
  background: linear-gradient(180deg, #161b18 0%, #101211 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 0.9rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.68);
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
}

.top5-stage-viewport {
  position: relative;
  height: 416px;
  border-radius: 13px;
  overflow: hidden;
  background: #101412;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.top5-stage-ambients {
  position: absolute;
  inset: -14%;
  filter: blur(28px) brightness(0.48) saturate(1.3);
  transform: scale(1.04);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.top5-stage-ambient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.34s ease;
}

.top5-stage-ambient.is-active {
  opacity: 1;
}

.top5-stage-slides {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.top5-stage-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.96);
  transition: opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  pointer-events: none;
  z-index: 2;
}

.top5-stage-slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
  z-index: 3;
}

.top5-stage-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.78);
  cursor: zoom-in;
  transition: transform 0.24s ease;
}

.top5-stage-slide.is-active .top5-stage-img:hover {
  transform: scale(1.016);
}

.top5-stage-rank {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 4;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.72rem;
  border-radius: 50px;
  background: rgba(12, 14, 13, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.top5-stage-rank.is-winner {
  background: #1ed760;
  border-color: #1ed760;
  color: #000000;
}

.top5-stage-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(16, 22, 18, 0.92), rgba(22, 40, 29, 0.9));
  border: 1px solid rgba(29, 185, 84, 0.35);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.top5-stage-prev {
  left: 0.65rem;
}

.top5-stage-next {
  right: 0.65rem;
}

.top5-stage-nav:not(:disabled):hover {
  background: linear-gradient(135deg, rgba(24, 50, 34, 0.96), rgba(29, 185, 84, 0.42));
  border-color: var(--spotify-green-bright);
  color: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.top5-stage-nav:disabled {
  opacity: 0.32;
  cursor: default;
}

.top5-stage-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.48rem;
}

.top5-strip-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #141715;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.top5-strip-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease, transform 0.22s ease;
}

.top5-strip-tile:not(.is-locked):hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.38);
}

.top5-strip-tile:not(.is-locked):hover img {
  transform: scale(1.06);
}

.top5-strip-tile.is-active {
  border-color: var(--spotify-green-bright);
  box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.28);
  transform: translateY(-2px);
}

.top5-strip-lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, #1a211d 0%, #101211 100%);
  color: rgba(255, 255, 255, 0.52);
  transition: opacity 0.2s ease, color 0.2s ease;
}

.top5-strip-tile:not(.is-locked) .top5-strip-lock {
  opacity: 0;
  pointer-events: none;
}

.top5-strip-tile.is-locked {
  cursor: default;
  opacity: 0.78;
}

.top5-strip-num {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.62rem;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.72);
  color: rgba(255, 255, 255, 0.88);
  pointer-events: none;
}

.top5-strip-tile.is-active .top5-strip-num {
  background: #1ed760;
  color: #000000;
}

.top5-photos-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.top5-item--photo.revealed {
  cursor: pointer;
}

.top5-item-thumb {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0c0c0c;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.top5-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.26s ease;
}

.top5-item--photo.revealed:hover .top5-item-thumb img {
  transform: scale(1.07);
}

.top5-item--photo.is-previewing {
  border-color: rgba(30, 215, 96, 0.62);
  background: linear-gradient(90deg, rgba(29, 185, 84, 0.12) 0%, #151716 68%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.top5-item--photo.is-previewing .top5-item-thumb {
  border-color: #1ed760;
}

.top5-item-thumb.is-placeholder,
.top5-strip-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, #19221c 0%, #101311 100%);
  color: rgba(29, 185, 84, 0.55);
}

.top5-strip-placeholder {
  width: 100%;
  height: 100%;
}

.top5-stage-locked {
  position: absolute;
  inset: 16px;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
  pointer-events: none;
}

.top5-photo-stage.is-all-locked .top5-stage-locked {
  display: flex;
}

.top5-stage-locked-card,
.top5-stage-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
  width: 82%;
  max-width: 280px;
  padding: 2rem 1.4rem;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 30%, rgba(29, 185, 84, 0.08) 0%, #121613 100%);
  border: 1px dashed rgba(29, 185, 84, 0.32);
}

.top5-stage-locked-card {
  width: 84%;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.52);
}

.top5-stage-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.3);
  color: #1ed760;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top5-stage-empty-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.96rem;
  color: #ffffff;
}

.top5-stage-empty-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.top5-winner-tag.is-pending,
.top5-stage-rank.is-pending {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-dim);
}

/* ── TOP 5 ARTYŚCI — KRĘCĄCE SIĘ PŁYTY WINYLOWE ────────── */
.top5-vinyl-disc {
  position: relative;
  width: 318px;
  height: 318px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.86), 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.top5-stage-slide.is-active .top5-vinyl-disc:hover {
  transform: scale(1.035);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.9), 0 0 28px rgba(46, 204, 113, 0.28), 0 0 0 1.5px rgba(46, 204, 113, 0.48);
}

.top5-vinyl-rotor {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center, #0d100e 0%, #090b0a 76%, #141715 100%);
  overflow: hidden;
  animation: spinVinyl 11s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.top5-stage-slide.is-active .top5-vinyl-rotor {
  animation-play-state: running;
}

.top5-vinyl-grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 4px);
  pointer-events: none;
}

.top5-vinyl-art {
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(29, 185, 84, 0.45);
  box-shadow: 0 0 0 3px #090b0a, inset 0 0 18px rgba(0, 0, 0, 0.45);
}

.top5-photos-workspace.is-vinyl .top5-stage-img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 50%;
  border: none;
  box-shadow: none;
  cursor: pointer;
}

.top5-photos-workspace.is-vinyl .top5-stage-slide.is-active .top5-stage-img:hover {
  transform: none;
}

.top5-vinyl-gloss {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.14) 0%, transparent 34%, transparent 68%, rgba(255, 255, 255, 0.06) 100%);
  pointer-events: none;
}

.top5-vinyl-tonearm {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  transform-origin: 38px 15px;
  transform: rotate(12deg);
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.72));
  transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.top5-photo-stage.is-all-locked .top5-vinyl-tonearm {
  opacity: 0.22;
  transform: rotate(-6deg);
}

.top5-photos-workspace.is-vinyl .top5-strip-tile {
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top5-strip-vinyl {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  background: radial-gradient(circle, #0b0d0c 58%, #1d221f 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.65);
}

.top5-strip-vinyl img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.top5-photos-workspace.is-vinyl .top5-strip-tile.is-active .top5-strip-vinyl {
  border-color: rgba(30, 215, 96, 0.65);
  animation: spinVinyl 7.5s linear infinite;
}

.top5-photos-workspace.is-vinyl .top5-item-thumb {
  border-radius: 50%;
  padding: 5px;
  background: radial-gradient(circle, #0b0d0c 58%, #1d2320 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
}

.top5-photos-workspace.is-vinyl .top5-item-thumb img {
  border-radius: 50%;
}

.top5-photos-workspace.is-vinyl .top5-item--photo.is-previewing .top5-item-thumb {
  border-color: #1ed760;
}

.top5-photos-workspace.is-vinyl .top5-item--photo.is-previewing .top5-item-thumb img,
.top5-photos-workspace.is-vinyl .top5-item--photo.revealed:hover .top5-item-thumb img {
  animation: spinVinyl 8s linear infinite;
  transform: none;
}

@media (max-width: 900px) {
  .top5-photos-workspace {
    grid-template-columns: 1fr;
  }

  .top5-stage-viewport {
    height: 350px;
  }

  .top5-vinyl-disc {
    width: 268px;
    height: 268px;
  }

  .top5-vinyl-art {
    inset: 24px;
  }
}

/* ── RWD MOBILE ────────────────────────────────────────── */
@media (max-width: 640px) {
  .top5-stage-viewport {
    height: 300px;
    padding: 12px;
  }

  .top5-vinyl-disc {
    width: 232px;
    height: 232px;
  }

  .top5-vinyl-art {
    inset: 20px;
  }

  .top5-vinyl-tonearm {
    width: 42px;
    height: 98px;
    top: 8px;
    right: 6px;
  }

  .top5-stage-nav {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .top5-stage-strip {
    gap: 0.36rem;
  }

  .top5-item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .top5-slider-btn {
    display: none !important;
  }

  .reveal-deck {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    gap: 1.1rem;
  }

  .reveal-card {
    flex: 0 0 290px;
    width: 290px;
    min-height: 485px;
  }

  .reveal-card-content .card-image-box {
    height: 205px;
    flex: 0 0 205px;
  }

  .card-winner-title {
    font-size: 1.12rem;
  }

  .card-winner-desc {
    font-size: 0.82rem;
  }

  .top5-details-section {
    padding: 1.4rem 1rem 1.6rem;
    border-radius: 18px;
  }

  .top5-toolbar {
    justify-content: center;
  }

  .top5-switcher {
    border-radius: 16px;
    padding: 0.35rem;
    justify-content: center;
  }

  .top5-item {
    padding: 0.85rem 1rem;
    gap: 0.85rem;
  }

  .top5-rank {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .top5-item-mask {
    left: 3.8rem;
    padding: 0 0.9rem 0 0.4rem;
  }

  .top5-mask-bars {
    max-width: 110px;
  }

  .top5-winner-tag {
    display: none;
  }
}

/* ── MAP (RETINA HD BENTO REDESIGN — BEZ SCROLLA W DÓŁ) ───── */
html.map-tab-active,
html:has(body.map-tab-active),
body.map-tab-active {
  overflow: hidden !important;
  height: 100vh !important;
}

body.map-tab-active #app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tab-mapa-section {
  max-width: 1140px;
}

.tab-mapa-section.active {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1140px;
  padding-top: 2.5rem;
  padding-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tab-mapa-section .section-header {
  margin-bottom: 1.15rem;
  flex-shrink: 0;
}

.map-shell {
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1 1 auto;
  min-height: 0;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.map-region-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  flex: 1 1 auto;
}

.map-region-pill {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.44rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #161616;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.map-region-pill:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: #1f1f1f;
}

.map-region-pill.active {
  background: var(--spotify-green-bright);
  border-color: var(--spotify-green-bright);
  color: #000000;
}

.map-style-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.24rem;
  flex-shrink: 0;
}

.map-style-btn {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.map-style-btn:hover {
  color: #ffffff;
}

.map-style-btn.active {
  background: var(--spotify-green-bright);
  color: #000000;
}

.map-stage-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121212;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.map-container {
  width: 100%;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  background: #121212;
  position: relative;
  contain: layout style;
}

/* Czyste kafelki Retina HD bez obciążającego filtra CSS */
.map-container .leaflet-tile-pane {
  background: #121212;
}

.map-container.is-moving .custom-pin,
.map-container.is-moving .custom-pin::after {
  transition: none !important;
}

.map-floating-bar {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 450;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.map-stats-pill {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: rgba(14, 14, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  pointer-events: auto;
}

.map-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #000000;
  background: var(--spotify-green-bright);
  border: none;
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.18s ease, background 0.18s ease;
}

.map-reset-btn:hover {
  background: #3be477;
  transform: translate3d(0, -1px, 0);
}

.map-container .leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75) !important;
  border-radius: 12px !important;
  overflow: hidden;
  margin: 14px !important;
}

.map-container .leaflet-control-zoom a {
  background: rgba(20, 20, 20, 0.94) !important;
  color: var(--spotify-green-bright) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  font-size: 1.05rem !important;
  transition: background 0.18s ease, color 0.18s ease;
}

.map-container .leaflet-control-zoom a:hover {
  background: var(--spotify-green-bright) !important;
  color: #000000 !important;
}

.map-container .leaflet-control-attribution {
  background: rgba(14, 14, 14, 0.85) !important;
  border-top-left-radius: 8px;
  color: var(--text-dim) !important;
  font-size: 0.65rem !important;
  padding: 3px 8px !important;
}

.map-container .leaflet-control-attribution a {
  color: var(--spotify-green-bright) !important;
  text-decoration: none;
}

/* Custom map popup */
.leaflet-popup-content-wrapper {
  background: #161616 !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  border: 1.5px solid var(--spotify-green) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85) !important;
}

.leaflet-popup-tip {
  background: #161616 !important;
  border: 1px solid var(--spotify-green) !important;
}

.leaflet-popup-close-button {
  color: var(--text-dim) !important;
  padding: 6px 8px !important;
  font-size: 1.2rem !important;
}

.leaflet-popup-close-button:hover {
  color: var(--spotify-green-bright) !important;
}

.map-popup {
  text-align: center;
  font-family: var(--font-body);
  min-width: 190px;
  padding: 4px 2px;
}

.map-popup-region {
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.map-popup-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--spotify-green-bright);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.map-popup-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.map-popup-img-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 230px;
  margin: 0.45rem auto 0;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.map-popup-img-wrap:hover {
  border-color: var(--spotify-green);
}

.map-popup-img {
  width: 100%;
  max-width: 100%;
  height: 145px;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

.map-popup-carousel {
  position: relative;
  width: 236px;
  max-width: 100%;
  margin: 0.45rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #121212;
  transition: border-color 0.2s ease;
}

.map-popup-carousel .map-popup-img {
  width: 100%;
  max-width: none;
  height: 150px;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  cursor: zoom-in;
  margin: 0;
}

.map-popup-carousel:hover {
  border-color: rgba(29, 185, 84, 0.72);
}

.map-popup-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  z-index: 10;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
  user-select: none;
}

.map-popup-nav svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  pointer-events: none !important;
}

.map-popup-nav:hover {
  background: var(--spotify-green-bright);
  border-color: var(--spotify-green-bright);
  color: #000000;
  transform: translateY(-50%) scale(1.12);
}

.map-popup-nav:active {
  transform: translateY(-50%) scale(0.92);
}

.map-popup-prev {
  left: 8px;
}

.map-popup-next {
  right: 8px;
}

.map-popup-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 8;
  letter-spacing: 0.04em;
}

/* Custom pin marker (zoptymalizowany pod 60/120 FPS bez ciągłej animacji wszystkich pinezek) */
.leaflet-marker-icon {
  overflow: visible !important;
}

.custom-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 50% 0;
  transform: translate3d(var(--fan-x, 0px), var(--fan-y, 0px), 0) rotate(-45deg);
  border: 2px solid #000000;
  background: var(--spotify-green) !important;
  color: var(--spotify-green) !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.65);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.22s ease, filter 0.22s ease;
  position: relative;
  cursor: pointer;
}

.custom-pin::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--spotify-green-bright);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.custom-pin.is-region-match {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.65),
    0 0 8px rgba(29, 185, 84, 0.32);
}

.custom-pin.is-region-dimmed {
  opacity: 0.22;
  filter: grayscale(0.8);
  transform: translate3d(var(--fan-x, 0px), calc(var(--fan-y, 0px) + 3.5px), 0) rotate(-45deg) scale(0.88);
}

.custom-pin:hover,
.custom-pin.is-active {
  transform: translate3d(var(--fan-x, 0px), calc(var(--fan-y, 0px) - 5px), 0) rotate(-45deg) scale(1.18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.8);
  z-index: 9999 !important;
}

.custom-pin.is-region-dimmed:hover,
.custom-pin.is-region-dimmed.is-active {
  opacity: 1;
  filter: none;
}

.custom-pin:hover::after,
.custom-pin.is-active::after {
  opacity: 0.45;
  transform: scale(1.06);
}

.custom-pin.is-fanned {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  border-color: #ffffff;
}

.custom-pin.is-fanned .custom-pin-badge {
  opacity: 0;
  transform: rotate(45deg) scale(0.4);
  pointer-events: none;
}

.custom-pin-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 900;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  transform: rotate(45deg);
  border: 1.5px solid #000000;
  z-index: 10;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-pin-inner {
  transform: rotate(45deg);
  font-size: 1.1rem;
  line-height: 1;
  pointer-events: none;
}

/* Sztywny, idealnie okrągły kontener miniaturki (30x30px) dla każdego zdjęcia */
.custom-pin-avatar {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: rotate(45deg);
  flex-shrink: 0 !important;
  background: #121212;
  border: 1.5px solid rgba(0, 0, 0, 0.7);
  box-sizing: border-box !important;
  pointer-events: none;
}

.custom-pin-photo {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  aspect-ratio: 1 / 1 !important;
  display: block !important;
  image-rendering: auto;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  pointer-events: none;
}

/* ── EMILKA RUNNER (2026 REDESIGN) ─────────────────────── */
.tab-gra-section {
  max-width: 1225px;
}

/* Desktop: gra wypełnia dokładnie widoczny ekran — bez przewijania */
@media (min-width: 761px) {

  html.gra-tab-active,
  body.gra-tab-active {
    overflow: hidden !important;
    height: 100vh !important;
  }

  body.gra-tab-active #app {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body.gra-tab-active .tab-gra-section.active {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    padding-top: 2.5rem;
    padding-bottom: 0.9rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body.gra-tab-active .tab-gra-section .section-header {
    margin-bottom: 0.5rem;
    margin-bottom: 1.15rem;
    flex-shrink: 0;
  }

  body.gra-tab-active .tab-gra-section .section-header h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    margin-bottom: 0.12rem;
  }

  body.gra-tab-active .tab-gra-section .section-sub {
    font-size: 0.84rem;
  }

  body.gra-tab-active .game-container {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  body.gra-tab-active .game-hud,
  body.gra-tab-active .game-footer-bar {
    flex-shrink: 0;
  }

  body.gra-tab-active .canvas-wrapper {
    flex: 1 1 auto;
    min-height: 0;
  }

  body.gra-tab-active #dino-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  body.gra-tab-active .game-start-prompt,
  body.gra-tab-active .game-over-prompt {
    max-height: calc(100% - 1rem);
    overflow-y: auto;
  }
}

.game-container {
  background: #0b0d0c;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  position: relative;
}

.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.15rem;
  background: linear-gradient(180deg, #151816 0%, #101211 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-hud-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hud-stage-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.hud-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.38);
  color: #1ed760;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 0.3rem 0.72rem;
  border-radius: 50px;
  white-space: nowrap;
}

.hud-stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1ed760;
  box-shadow: 0 0 8px rgba(30, 215, 96, 0.7);
  flex-shrink: 0;
}

.hud-stage-progress {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.hud-stage-progress-fill {
  height: 100%;
  width: 10%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1db954, #1ed760);
  transition: width 0.28s ease;
}

.hud-status-pills {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.hud-combo-badge {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.7rem;
  padding: 0.26rem 0.58rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #b3b3b3;
  font-variant-numeric: tabular-nums;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.hud-combo-badge.is-hot {
  background: rgba(30, 215, 96, 0.18);
  border-color: rgba(30, 215, 96, 0.55);
  color: #1ed760;
  transform: scale(1.06);
}

.hud-shake-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.62rem;
  border-radius: 50px;
  background: rgba(29, 185, 84, 0.14);
  border: 1px solid rgba(30, 215, 96, 0.42);
  color: #1ed760;
  cursor: pointer;
  transition: all 0.18s ease;
}

.hud-shake-btn:hover:not(:disabled) {
  background: #1ed760;
  color: #000000;
}

.hud-shake-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.shake-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 0.62rem;
}

.game-hud-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}

.game-scores {
  font-family: var(--font-display);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.hud-stat {
  display: flex;
  align-items: baseline;
  gap: 0.34rem;
}

.hud-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #b3b3b3;
  letter-spacing: 0.09em;
}

.hud-val {
  font-size: 0.96rem;
  color: #ffffff;
}

#game-score {
  color: #1ed760;
}

#game-bonus {
  color: #ffffff;
}

.hud-sep {
  color: rgba(255, 255, 255, 0.18);
  margin: 0 0.18rem;
  font-weight: 300;
}

.hud-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hud-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.hud-btn:hover {
  border-color: var(--spotify-green);
  color: #1ed760;
  background: rgba(29, 185, 84, 0.12);
}

.hud-btn.muted {
  opacity: 0.45;
  color: #b3b3b3;
  border-color: rgba(255, 255, 255, 0.1);
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  cursor: crosshair;
  user-select: none;
  background: #070908;
  overflow: hidden;
  touch-action: none;
}

.game-container.is-keyboard-mode .canvas-wrapper {
  cursor: default;
}

#dino-canvas {
  width: 100%;
  height: auto;
  display: block;
  background: #070908;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  background: rgba(4, 7, 5, 0.44);
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.game-overlay.hidden {
  display: none !important;
}

.game-start-prompt,
.game-over-prompt {
  text-align: center;
  padding: 1.45rem 1.85rem;
  background: rgba(14, 17, 15, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 2px solid #1db954;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.9);
  pointer-events: auto;
  animation: fadeInUp 0.26s ease-out;
  max-width: 460px;
  width: 94%;
}

.game-start-prompt.hidden,
.game-over-prompt.hidden {
  display: none !important;
}

.game-prompt-badge,
.game-over-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #1ed760;
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.32);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 0.55rem;
}

.game-prompt-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.game-prompt-sub {
  font-size: 0.84rem;
  color: #b3b3b3;
  margin-top: 0.45rem;
  line-height: 1.48;
}

.game-start-prompt .game-restart-btn {
  margin-top: 1.15rem;
}

.game-over-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.55rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.game-rank-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  color: #000000;
  background: #1ed760;
  padding: 0.22rem 0.78rem;
  border-radius: 50px;
  margin-bottom: 0.45rem;
}

.game-over-sub {
  font-size: 0.82rem;
  color: #b3b3b3;
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

.game-over-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.go-stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  padding: 0.52rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.go-stat-lbl {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #b3b3b3;
}

.go-stat-pill strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

#go-score {
  color: #1ed760;
}

.go-stages-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.32rem;
  margin-bottom: 0.9rem;
}

.go-stage-chip {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.38);
}

.go-stage-chip.is-unlocked {
  background: rgba(29, 185, 84, 0.15);
  border-color: rgba(29, 185, 84, 0.45);
  color: #1ed760;
}

.game-restart-btn {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.78rem 1.8rem;
  width: 100%;
  background: #1db954;
  color: #000000;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.game-restart-btn:hover {
  background: #1ed760;
  transform: translateY(-2px);
}

.game-win-prompt {
  border-top-color: #1ed760;
  padding: 1.05rem 1.45rem;
}

.game-win-prompt .game-over-badge {
  margin-bottom: 0.35rem;
}

.game-win-disc {
  width: 64px;
  height: 64px;
  margin: 0.2rem auto 0.45rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #1ed760;
  box-shadow: 0 0 22px rgba(30, 215, 96, 0.36);
  background: #0b0e0d;
}

.game-win-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-win-title {
  color: #1ed760;
  font-size: 1.32rem;
}

.game-win-prompt .game-rank-pill {
  margin: 0.25rem 0 0.4rem;
}

.game-win-prompt .game-over-sub {
  font-size: 0.78rem;
  margin-bottom: 0.65rem;
}

.game-win-stats {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 0.72rem;
}

.game-win-stats .go-stat-pill {
  padding: 0.38rem 0.45rem;
}

#win-score {
  color: #1ed760;
}

.game-win-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.55rem;
}

.game-win-actions .game-restart-btn {
  padding: 0.68rem 1rem;
}

.game-restart-btn.is-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-restart-btn.is-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
}

.game-footer-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 0.85rem;
  flex-wrap: wrap;
  padding: 0.5rem 1.1rem;
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.game-ctrl-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem;
  border-radius: 50px;
  background: #181a19;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-ctrl-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.72rem;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: #b3b3b3;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  user-select: none;
}

.game-ctrl-btn:hover {
  color: #ffffff;
}

.game-ctrl-btn.active {
  background: var(--spotify-green);
  color: #000000;
  font-weight: 800;
}

.game-ctrl-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.game-ctrl-item > span {
  color: #cbd5cf;
  font-weight: 500;
}

.game-ctrl-sep {
  color: rgba(255, 255, 255, 0.22);
  font-weight: 700;
  user-select: none;
}

.key-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

/* ── MESSAGE (KOLEKCJONERSKI REDESIGN 2026) ────────────── */
.message-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0 1.25rem;
  position: relative;
}

.message-card {
  background: linear-gradient(165deg, #161616 0%, #0b0b0b 100%);
  border-radius: 26px;
  padding: 2.1rem 2.2rem 1.9rem;
  max-width: 600px;
  width: 100%;
  text-align: left;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(29, 185, 84, 0.14);
  overflow: hidden;
}

.message-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--spotify-green), var(--spotify-green-bright), rgba(30, 215, 96, 0.25));
}

.message-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.message-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(30, 215, 96, 0.45);
  color: var(--spotify-green-bright);
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.message-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spotify-green-bright);
  flex-shrink: 0;
}

.message-meta-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.message-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 1.05rem;
}

.message-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(29, 185, 84, 0.45), rgba(255, 255, 255, 0.08), transparent);
  margin-bottom: 1.3rem;
}

.message-text {
  font-size: 1.04rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  white-space: pre-line;
  margin: 0 0 1.85rem;
}

.message-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.message-footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.message-footer-label {
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--spotify-green-bright);
  text-transform: uppercase;
}

.message-footer-sub {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.message-sign {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: var(--spotify-green-bright);
}

.message-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  90% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-20vh) scale(1);
    opacity: 0;
  }
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
  }

  .nav-tabs {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 0.3rem;
  }

  .tab {
    font-size: 0.75rem;
    padding: 0.5rem 0.9rem;
  }

  .tab-content {
    padding: 1.5rem 1rem 3.5rem;
  }

  .tab-podsumowanie-section.active {
    min-height: 0;
    padding: 1.5rem 1rem 2.2rem;
  }

  .tab-podsumowanie-section .section-header {
    margin-bottom: 0.95rem;
  }

  .tab-podsumowanie-section .live-timer {
    padding: 1rem 0.85rem;
    margin-bottom: 0.9rem;
  }

  .tab-podsumowanie-section .timer-block {
    min-width: 2.45rem;
  }

  .tab-podsumowanie-section .timer-value {
    font-size: 1.45rem;
  }

  .tab-podsumowanie-section .timer-sep {
    font-size: 1.15rem;
    padding-bottom: 0.7rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 0.72rem;
  }

  .stat-card {
    min-height: 138px;
    padding: 0.95rem 0.9rem;
  }

  .stat-card--featured {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 158px;
    padding: 1.1rem 1.05rem;
  }

  .stat-card--wide-mobile {
    grid-column: 1 / -1;
    min-height: 112px;
    padding: 0.95rem 1rem;
  }

  .stat-card--featured .stat-card-bottom {
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .stat-kicker {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .stat-card--featured .stat-kicker {
    font-size: 0.62rem;
    padding: 0.24rem 0.6rem;
  }

  .stat-icon-wrap {
    width: 34px;
    height: 34px;
  }

  .stat-icon-wrap svg {
    width: 16px;
    height: 16px;
  }

  .stat-card--featured .stat-icon-wrap {
    width: 40px;
    height: 40px;
  }

  .stat-card--featured .stat-icon-wrap svg {
    width: 20px;
    height: 20px;
  }

  .stat-value {
    font-size: 1.55rem;
  }

  .stat-value--symbol {
    font-size: 2.05rem;
  }

  .stat-card--featured .stat-value {
    font-size: 2.35rem;
  }

  .stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }

  .stat-card--featured .stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }

  .stat-featured-meta {
    font-size: 0.7rem;
    padding: 0.24rem 0.58rem;
  }

  .stat-fact {
    padding: 0.9rem 0.8rem;
    gap: 0.4rem;
  }

  .stat-fact-text {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .stat-card--featured .stat-fact-text {
    font-size: 0.86rem;
    max-width: 94%;
  }

  .live-timer {
    padding: 1.35rem 1rem;
  }

  .timer-block {
    min-width: 2.8rem;
  }

  .timer-sep {
    font-size: 1.2rem;
    padding-bottom: 0.8rem;
  }

  .timeline-month-nav {
    top: calc(var(--sticky-nav-height, 96px) + 0.45rem);
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .timeline-media-wrap {
    max-width: 100%;
  }

  .timeline-photo-box {
    width: 200px;
    height: 200px;
    min-width: 200px;
    min-height: 200px;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .timeline-media-stage.has-multi::before,
  .timeline-media-stage.has-multi::after {
    width: 200px;
    height: 200px;
    opacity: 0.72;
  }

  .message-card {
    padding: 1.6rem 1.25rem 1.45rem;
    border-radius: 22px;
  }

  .message-text {
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .intro-content {
    padding: 1.5rem 1.15rem 1.35rem;
    border-radius: 22px;
  }

  .intro-turntable-deck {
    padding: 0.85rem 0.9rem 1rem;
  }

  .intro-visual-center {
    width: 196px;
    height: 176px;
  }

  .vinyl-platter-ring {
    width: 178px;
    height: 178px;
  }

  .intro-vinyl {
    width: 164px;
    height: 164px;
  }

  .vinyl-label {
    width: 78px;
    height: 78px;
    padding: 11px 5px 10px;
  }

  .vinyl-label-top {
    font-size: 0.36rem;
  }

  .vinyl-label-side {
    font-size: 0.4rem;
  }

  .vinyl-label-bottom {
    font-size: 0.55rem;
  }

  .turntable-tonearm {
    width: 54px;
    height: 124px;
    right: -10px;
  }

  .map-shell {
    padding: 0.85rem;
    border-radius: 18px;
  }

  .map-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .map-style-switcher {
    align-self: flex-start;
  }

  .map-container {
    height: 100%;
    min-height: 0;
  }

  .map-floating-bar {
    left: 10px;
    bottom: 10px;
  }

  .game-hud {
    padding: 0.65rem 0.85rem;
    gap: 0.55rem;
  }

  .game-hud-left {
    width: 100%;
    justify-content: space-between;
  }

  .hud-stage-badge {
    font-size: 0.62rem;
    padding: 0.28rem 0.65rem;
  }

  .game-hud-right {
    width: 100%;
    justify-content: space-between;
  }

  .hud-val {
    font-size: 0.9rem;
  }

  .hud-label {
    font-size: 0.58rem;
  }

  .hud-sep {
    display: none;
  }

  .game-scores {
    gap: 0.35rem 0.75rem;
  }

  .game-overlay {
    padding: 0.45rem;
  }

  .game-prompt-title {
    font-size: 1rem;
  }

  .game-prompt-sub {
    font-size: 0.76rem;
  }

  .game-start-prompt .game-restart-btn {
    margin-top: 0.85rem;
  }

  .game-over-title {
    font-size: 1.25rem;
  }

  .game-over-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .game-over-sub {
    font-size: 0.76rem;
    margin-bottom: 0.65rem;
  }

  .game-start-prompt,
  .game-over-prompt {
    padding: 0.95rem 1.05rem;
    max-height: 94%;
    overflow-y: auto;
  }

  .game-footer-bar {
    gap: 0.45rem 0.8rem;
    font-size: 0.68rem;
    padding: 0.55rem 0.75rem;
  }

  .game-ctrl-sep {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   AUTHOR SCRATCH — Szmaragdowa zdrapka z falą dźwiękową
   (100% ręczne zdrapywanie, zdrapywacz +10%, bez wybuchu)
   ═══════════════════════════════════════════════════════════ */

.tab-wiadomosc-section.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: calc(100vh - var(--sticky-nav-height, 67px));
  min-height: calc(100dvh - var(--sticky-nav-height, 67px));
  padding: clamp(0.75rem, 1.6vh, 1.35rem) 1.5rem clamp(0.85rem, 1.8vh, 1.45rem);
  overflow: hidden;
  animation: scTabFadeIn 0.25s ease-out;
}

@keyframes scTabFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.tab-wiadomosc-section .message-particles {
  overflow: hidden;
}

/* ── SCENA ZDRAPKI & PASEK POSTĘPU ──────────────────────── */
.sc-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 610px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 1vh, 0.75rem);
}

.sc-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sc-pct-pill {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.24rem 0.68rem;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sc-pct-pill.is-complete {
  background: rgba(29, 185, 84, 0.18);
  border-color: rgba(30, 215, 96, 0.55);
  color: #1ed760;
}

.sc-progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.sc-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--spotify-green), var(--spotify-green-bright));
  transition: width 0.16s ease;
}

/* ── POWŁOKA SZMARAGDOWEJ KARTY & POWIĘKSZONY ZDRAPYWACZ ── */
.sc-shell {
  position: relative;
  width: 100%;
  border-radius: 26px;
}

.sc-card--emerald {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(30, 215, 96, 0.25);
}

.sc-canvas-host {
  position: relative;
  width: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.sc-under-card {
  max-width: none;
  margin: 0;
  user-select: none;
}

.sc-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  border-radius: inherit;
  touch-action: none;
  user-select: none;
  display: block;
}

/* Kursor szmaragdowej monety powiększony o ~10% (36x36, r=15) */
.sc-canvas.is-cursor-emerald {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='15' fill='%231DB954' stroke='%23e2ffec' stroke-width='2.2'/%3E%3Ccircle cx='18' cy='18' r='10.5' fill='none' stroke='%23082112' stroke-width='1.3' stroke-dasharray='2.2 2.2'/%3E%3C/svg%3E") 18 18, crosshair;
}

/* ── OPIŁKI PODCZAS ZDRAPYWANIA ─────────────────────────── */
.sc-flakes-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}

.sc-flake {
  position: absolute;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.95;
  animation: scFlakeFall 0.5s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
}

@keyframes scFlakeFall {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--fdx), var(--fdy), 0) rotate(var(--frot)) scale(0.45);
  }
}

/* ── RESPONSYWNOŚĆ (KRÓTKIE LAPTOPY 720p & TELEFONY) ────── */
@media (min-width: 861px) and (max-height: 760px) {
  .tab-wiadomosc-section.active {
    padding: 0.55rem 1.35rem 0.7rem;
  }

  .sc-under-card {
    padding: 1.4rem 1.75rem 1.3rem;
  }

  .sc-under-card .message-card-top {
    margin-bottom: 0.85rem;
  }

  .sc-under-card .message-headline {
    font-size: 1.4rem;
    margin-bottom: 0.65rem;
  }

  .sc-under-card .message-divider {
    margin-bottom: 0.85rem;
  }

  .sc-under-card .message-text {
    font-size: 0.94rem;
    line-height: 1.62;
    margin-bottom: 1.1rem;
  }

  .sc-under-card .message-footer {
    padding-top: 0.8rem;
  }
}

@media (max-width: 640px) {
  .tab-wiadomosc-section.active {
    min-height: 0;
    justify-content: flex-start;
    padding: 1.1rem 1rem 1.75rem;
    overflow: visible;
  }

  .sc-shell {
    border-radius: 22px;
  }
}