/* ============================================================
   KOSMOS I PLANETY UKŁADU SŁONECZNEGO — style.css
   ============================================================ */

:root {
  --bg-0: #010208;
  --bg-1: #050a1c;
  --bg-2: #0a1230;
  --cyan: #57e0ff;
  --violet: #9b6bff;
  --teal: #37ffd0;
  --gold: #ffd166;
  --text: #dfe9ff;
  --text-dim: #8fa2c9;
  --glass: rgba(10, 18, 44, 0.55);
  --glass-border: rgba(87, 224, 255, 0.18);
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg-0);
}

body {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- TŁO: GWIAZDY I MGŁAWICE ---------- */

#stars-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

.nebula-layer {
  position: fixed;
  inset: -12%;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: nebulaDrift 46s ease-in-out infinite alternate;
}

.nebula-blue {
  width: 55vw; height: 55vw;
  left: -8%; top: -12%;
  background: radial-gradient(circle at 40% 40%, rgba(38, 92, 220, 0.55), transparent 65%);
}

.nebula-violet {
  width: 50vw; height: 50vw;
  right: -10%; top: 30%;
  background: radial-gradient(circle at 50% 50%, rgba(140, 70, 235, 0.45), transparent 65%);
  animation-delay: -18s;
}

.nebula-teal {
  width: 44vw; height: 44vw;
  left: 25%; bottom: -16%;
  background: radial-gradient(circle at 50% 50%, rgba(30, 190, 190, 0.32), transparent 65%);
  animation-delay: -32s;
}

@keyframes nebulaDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, -5%, 0) scale(1.14); }
}

/* ---------- PODPIS ---------- */

.signature {
  position: fixed;
  top: 18px;
  left: 22px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  pointer-events: none;
}

.signature-name {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(87, 224, 255, 0.55));
}

.signature-class {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--text-dim);
  text-shadow: 0 0 8px rgba(155, 107, 255, 0.5);
}

/* ---------- PASEK POSTĘPU I LICZNIK ---------- */

.progress-track {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 70;
}

.progress-fill {
  height: 100%;
  width: 6.25%;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--teal));
  box-shadow: 0 0 12px rgba(87, 224, 255, 0.8);
  transition: width 0.7s var(--ease);
}

.slide-counter {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 60;
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  padding: 7px 14px;
  border-radius: 30px;
  pointer-events: none;
}

.slide-counter #slideCurrent {
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(87, 224, 255, 0.7);
}

.slide-counter-sep { margin: 0 5px; opacity: 0.5; }

/* ---------- UKŁAD PREZENTACJI ---------- */

.presentation {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 84px 5vw calc(var(--nav-h) + 110px);
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(48px) scale(0.97);
  filter: blur(14px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease),
    filter 0.85s var(--ease),
    visibility 0s linear 0.85s;
  will-change: opacity, transform, filter;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease),
    filter 0.85s var(--ease),
    visibility 0s;
}

.slide.leaving-up {
  transform: translateY(-48px) scale(0.97);
}

.slide-body {
  width: 100%;
  max-width: 1240px;
  margin: auto;
}

.slide-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4vw;
  align-items: center;
}

.slide-wide .slide-body { max-width: 1320px; }

/* ---------- TYPOGRAFIA SLAJDÓW ---------- */

.slide-kicker {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  text-shadow: 0 0 10px rgba(55, 255, 208, 0.45);
}

.slide-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.08;
  background: linear-gradient(92deg, #ffffff 10%, var(--cyan) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 26px rgba(87, 224, 255, 0.3));
  margin-bottom: 22px;
}

.slide-lead {
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 500;
  line-height: 1.65;
  color: var(--text);
  opacity: 0.92;
  margin-bottom: 20px;
}

.slide-lead-center { text-align: center; margin: 0 auto 30px; max-width: 640px; }

.slide-note {
  font-size: 14.5px;
  color: var(--text-dim);
  border-left: 2px solid var(--cyan);
  padding-left: 12px;
  margin-bottom: 18px;
}

/* ---------- KAFELKI PLANET (SLAJD 3) ---------- */

.planet-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.planet-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 13px 6px 11px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s,
    box-shadow 0.4s,
    background 0.4s;
}

.planet-tile:hover {
  transform: translateY(-7px) scale(1.05);
  border-color: rgba(87, 224, 255, 0.6);
  background: rgba(14, 26, 60, 0.8);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 24px rgba(87, 224, 255, 0.35);
}

.planet-tile:active { transform: translateY(-3px) scale(1.01); }

.tile-visual {
  display: block;
  width: 52px;
  height: 52px;
  position: relative;
  transition: transform 0.45s var(--ease);
}

.planet-tile:hover .tile-visual { transform: scale(1.14) rotate(6deg); }

.tile-visual .card-sphere { animation: tileSpin 20s linear infinite; }

@keyframes tileSpin { to { filter: hue-rotate(14deg) brightness(1.08); } }

.tile-sun {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fffbe8, #ffd34d 55%, #ff8a1f);
  box-shadow: 0 0 20px rgba(255, 190, 60, 0.95), 0 0 44px rgba(255, 140, 30, 0.5);
  animation: sunBreath 3.4s ease-in-out infinite;
}

.tile-name {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #fff;
}

.tile-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.slide-head-center { text-align: center; margin-bottom: 34px; }
.slide-head-center .slide-title { margin-bottom: 12px; }

/* ---------- LISTA FAKTÓW ---------- */

.fact-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }

.fact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: clamp(15px, 1.25vw, 17.5px);
  font-weight: 500;
  line-height: 1.5;
  padding: 11px 16px;
  background: linear-gradient(90deg, rgba(87, 224, 255, 0.07), rgba(10, 18, 44, 0.25));
  border: 1px solid rgba(87, 224, 255, 0.1);
  border-left: 3px solid var(--cyan);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.fact-list li:hover {
  transform: translateX(8px);
  background: linear-gradient(90deg, rgba(87, 224, 255, 0.16), rgba(10, 18, 44, 0.4));
  border-color: rgba(87, 224, 255, 0.4);
  box-shadow: 0 6px 26px rgba(87, 224, 255, 0.16);
}

.fact-list li i {
  color: var(--cyan);
  font-size: 15px;
  margin-top: 4px;
  flex-shrink: 0;
  text-shadow: 0 0 9px rgba(87, 224, 255, 0.7);
}

.fact-list strong { color: #ffffff; font-weight: 700; }

/* ---------- SLAJD TYTUŁOWY ---------- */

.slide-title .slide-body,
.slide-title .title-content { text-align: center; position: relative; z-index: 2; }

.title-stars-field {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  pointer-events: none;
}

.title-sun {
  position: absolute;
  width: clamp(340px, 46vw, 640px);
  height: clamp(340px, 46vw, 640px);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, rgba(255, 226, 150, 0.5), rgba(255, 150, 40, 0.28) 45%, transparent 70%);
  filter: blur(6px);
  animation: sunBreath 7s ease-in-out infinite;
}

@keyframes sunBreath {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.07); opacity: 1; }
}

.title-orbit {
  position: absolute;
  border: 1px solid rgba(87, 224, 255, 0.16);
  border-radius: 50%;
  transform: rotateX(74deg);
  animation: orbitSpin linear infinite;
}

.title-orbit-1 { width: clamp(300px, 38vw, 520px); height: clamp(300px, 38vw, 520px); animation-duration: 14s; }
.title-orbit-2 { width: clamp(430px, 54vw, 740px); height: clamp(430px, 54vw, 740px); animation-duration: 24s; animation-direction: reverse; }
.title-orbit-3 { width: clamp(560px, 70vw, 960px); height: clamp(560px, 70vw, 960px); animation-duration: 38s; }

@keyframes orbitSpin { to { transform: rotateX(74deg) rotate(360deg); } }

.title-planet {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-left: -7px;
}

.title-planet-earth { background: radial-gradient(circle at 35% 30%, #7fd4ff, #1f6fd0 60%, #0a2f66); box-shadow: 0 0 14px rgba(87, 224, 255, 0.85); }
.title-planet-red { background: radial-gradient(circle at 35% 30%, #ff9a6c, #c1440e 65%); box-shadow: 0 0 14px rgba(255, 120, 60, 0.7); }
.title-planet-gas { background: radial-gradient(circle at 35% 30%, #ffe0b0, #d8a05f 65%); box-shadow: 0 0 14px rgba(255, 190, 110, 0.7); width: 19px; height: 19px; top: -9px; margin-left: -9px; }

.title-content { display: flex; flex-direction: column; align-items: center; }

.title-kicker {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  text-shadow: 0 0 12px rgba(55, 255, 208, 0.6);
}

.title-main {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(58px, 13vw, 168px);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 12%, var(--cyan) 52%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(87, 224, 255, 0.4));
  animation: titleFloat 6s ease-in-out infinite;
}

@keyframes titleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.title-sub {
  margin-top: 16px;
  font-size: clamp(17px, 2.3vw, 30px);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text);
  opacity: 0.94;
}

.title-line {
  width: min(360px, 60%);
  height: 2px;
  margin: 30px auto;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  box-shadow: 0 0 14px rgba(87, 224, 255, 0.6);
}

/* ---------- INSTRUKCJA POD TEMATEM ---------- */

.title-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
}

.title-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 9px 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  backdrop-filter: blur(10px);
  transition: color 0.35s, border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
}

.title-hint:hover {
  color: var(--text);
  border-color: rgba(87, 224, 255, 0.5);
  box-shadow: 0 0 18px rgba(87, 224, 255, 0.25);
  transform: translateY(-3px);
}

.title-hint i {
  color: var(--cyan);
  font-size: 14px;
  text-shadow: 0 0 8px rgba(87, 224, 255, 0.7);
}

.title-hint b {
  color: var(--teal);
  font-weight: 700;
  padding: 1px 6px;
  border: 1px solid rgba(55, 255, 208, 0.4);
  border-radius: 5px;
  font-size: 12.5px;
}

/* ---------- PRZYCISK CTA ---------- */

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #031018;
  padding: 17px 40px;
  border-radius: 50px;
  background: linear-gradient(120deg, var(--cyan), var(--teal));
  box-shadow: 0 0 30px rgba(87, 224, 255, 0.5), inset 0 0 18px rgba(255, 255, 255, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.cta-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3.6s ease-in-out infinite;
}

@keyframes btnShine {
  0% { left: -80%; }
  55%, 100% { left: 130%; }
}

.cta-btn:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 0 46px rgba(87, 224, 255, 0.8); }
.cta-btn:active { transform: translateY(-1px) scale(0.99); }

.cta-btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 18px rgba(87, 224, 255, 0.25);
}
.cta-btn-ghost::after { display: none; }
.cta-btn-ghost:hover { background: rgba(87, 224, 255, 0.12); box-shadow: 0 0 34px rgba(87, 224, 255, 0.5); }

/* ---------- WIZUALIZACJA KOSMOSU (SLAJD 2) ---------- */

.slide-visual { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.visual-caption {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

.cosmos-viz {
  position: relative;
  width: min(420px, 80%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cosmos-galaxy {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg,
      transparent 0deg, rgba(155, 107, 255, 0.5) 40deg, transparent 90deg,
      transparent 150deg, rgba(87, 224, 255, 0.45) 200deg, transparent 250deg,
      transparent 300deg, rgba(55, 255, 208, 0.3) 340deg, transparent 360deg);
  filter: blur(14px);
  animation: galaxySpin 30s linear infinite;
}

.cosmos-galaxy::after {
  content: "";
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 225, 150, 0.5) 55%, transparent 75%);
  filter: blur(4px);
  animation: sunBreath 5s ease-in-out infinite;
}

@keyframes galaxySpin { to { transform: rotate(360deg); } }

.cosmos-orbit {
  position: absolute;
  border: 1px dashed rgba(87, 224, 255, 0.28);
  border-radius: 50%;
  animation: plainSpin linear infinite;
}

.cosmos-orbit-a { inset: 24%; animation-duration: 9s; }
.cosmos-orbit-b { inset: 11%; animation-duration: 17s; animation-direction: reverse; }
.cosmos-orbit-c { inset: 0; animation-duration: 27s; }

@keyframes plainSpin { to { transform: rotate(360deg); } }

.cosmos-body {
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--cyan) 60%, #0b4f8a);
  box-shadow: 0 0 12px rgba(87, 224, 255, 0.9);
}

.cosmos-orbit-b .cosmos-body { background: radial-gradient(circle at 35% 30%, #ffd9a8, #e07b39 65%); box-shadow: 0 0 12px rgba(255, 150, 70, 0.8); }
.cosmos-orbit-c .cosmos-body { background: radial-gradient(circle at 35% 30%, #d6b5ff, var(--violet) 65%); box-shadow: 0 0 12px rgba(155, 107, 255, 0.85); width: 15px; height: 15px; top: -7px; margin-left: -7px; }

.cosmos-comet {
  position: absolute;
  top: 14%; left: 8%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #fff;
  animation: cometFly 7s linear infinite;
}

.cosmos-comet::after {
  content: "";
  position: absolute;
  right: 60%; top: 50%;
  width: 90px; height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(180, 235, 255, 0.9));
  border-radius: 2px;
}

@keyframes cometFly {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate(340px, 300px); opacity: 0; }
}

/* ---------- MODEL ORBIT (SLAJD 3, 15, 16) ---------- */

.orbit-model {
  position: relative;
  width: min(460px, 88%);
  aspect-ratio: 1;
  margin: 0 auto;
  transform-style: preserve-3d;
}

.orbit-model-lg { width: min(500px, 90%); }
.orbit-model-md { width: min(420px, 80%); }
.orbit-model-sm { width: min(760px, 130vw); opacity: 0.5; }

.orbit-sun {
  position: absolute;
  top: 50%; left: 50%;
  width: 9%;
  height: 9%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff6d8, #ffc73d 52%, #ff8a1f);
  box-shadow: 0 0 26px rgba(255, 190, 60, 0.95), 0 0 70px rgba(255, 140, 30, 0.55);
  animation: sunBreath 4.5s ease-in-out infinite;
  z-index: 5;
}

.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid rgba(87, 224, 255, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(72deg);
}

.orbit-rotor {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(72deg);
  animation: rotorSpin linear infinite;
}

@keyframes rotorSpin {
  from { transform: translate(-50%, -50%) rotateX(72deg) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotateX(72deg) rotate(360deg); }
}

.orbit-dot {
  position: absolute;
  top: 50%; left: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: box-shadow 0.3s, filter 0.3s;
}

.orbit-dot::after {
  content: attr(data-name);
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  font-family: "Orbitron", sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
  pointer-events: none;
}

.orbit-dot:hover { filter: brightness(1.5); box-shadow: 0 0 18px currentColor; z-index: 9; }
.orbit-dot:hover::after { opacity: 1; transform: translateX(-50%) translateY(-5px); }

/* ---------- SŁOŃCE (SLAJD 4) ---------- */

.sun-stage {
  position: relative;
  width: min(400px, 78%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sun-corona {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 170, 50, 0.4) 40%, rgba(255, 120, 30, 0.12) 62%, transparent 74%);
  animation: coronaPulse 5s ease-in-out infinite;
}

@keyframes coronaPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.09); opacity: 1; }
}

.sun-body {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, #fffbe8 0%, #ffe07a 30%, #ffb32e 62%, #ff7a14 100%);
  box-shadow:
    0 0 50px rgba(255, 190, 60, 0.95),
    0 0 130px rgba(255, 140, 30, 0.6),
    inset -18px -14px 60px rgba(220, 90, 0, 0.55);
  overflow: hidden;
  animation: sunSurface 22s linear infinite;
}

.sun-body::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 230, 0.55) 0 7%, transparent 16%),
    radial-gradient(circle at 66% 30%, rgba(255, 240, 180, 0.5) 0 6%, transparent 15%),
    radial-gradient(circle at 52% 66%, rgba(255, 220, 130, 0.55) 0 8%, transparent 17%),
    radial-gradient(circle at 78% 60%, rgba(255, 245, 200, 0.45) 0 5%, transparent 13%),
    radial-gradient(circle at 20% 74%, rgba(255, 235, 170, 0.4) 0 6%, transparent 14%);
  animation: surfaceSwirl 16s linear infinite;
}

@keyframes sunSurface { to { filter: hue-rotate(8deg); } }

@keyframes surfaceSwirl {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(360deg) scale(1); }
}

.sun-flare {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 150, 0.9), rgba(255, 150, 40, 0.4) 55%, transparent 75%);
  filter: blur(3px);
  animation: flareBurst 4s ease-in-out infinite;
}

.sun-flare-1 { width: 60px; height: 60px; top: 8%; left: 62%; animation-delay: 0s; }
.sun-flare-2 { width: 46px; height: 46px; bottom: 14%; left: 16%; animation-delay: 1.3s; }
.sun-flare-3 { width: 54px; height: 54px; top: 44%; right: 4%; animation-delay: 2.6s; }

@keyframes flareBurst {
  0%, 100% { transform: scale(0.4); opacity: 0; }
  40% { transform: scale(1.25); opacity: 0.95; }
  70% { transform: scale(0.8); opacity: 0.35; }
}

/* ---------- SCENA PLANETY (UNIWERSALNA) ---------- */

.planet-stage {
  position: relative;
  width: min(380px, 76%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.planet-orbit-ring {
  position: absolute;
  inset: -6%;
  border: 1px dashed rgba(87, 224, 255, 0.22);
  border-radius: 50%;
  animation: plainSpin 40s linear infinite;
}

.planet-orbit-ring::before {
  content: "";
  position: absolute;
  top: 4%; left: 46%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--gold));
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.9);
}

.planet {
  position: relative;
  width: 68%;
  height: 68%;
  border-radius: 50%;
  overflow: hidden;
  animation: planetIdle 14s ease-in-out infinite;
}

@keyframes planetIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* --- Merkury --- */

.planet-mercury {
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.28) 0 4%, transparent 12%),
    radial-gradient(circle at 62% 30%, rgba(0, 0, 0, 0.35) 0 6%, transparent 13%),
    radial-gradient(circle at 44% 58%, rgba(0, 0, 0, 0.3) 0 8%, transparent 16%),
    radial-gradient(circle at 72% 70%, rgba(0, 0, 0, 0.32) 0 5%, transparent 12%),
    radial-gradient(circle at 30% 78%, rgba(0, 0, 0, 0.28) 0 4%, transparent 10%),
    radial-gradient(circle at 34% 30%, #b9b1a6, #7d766c 55%, #2f2c28 100%);
  box-shadow: inset -26px -18px 55px rgba(0, 0, 0, 0.85), 0 0 34px rgba(180, 170, 155, 0.4);
  animation: mercurySpin 26s linear infinite, planetIdle 14s ease-in-out infinite;
}

@keyframes mercurySpin {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: -320px 0, -320px 0, -320px 0, -320px 0, -320px 0, 0 0; }
}

/* --- Wenus --- */

.planet-venus {
  background:
    repeating-linear-gradient(115deg,
      rgba(255, 235, 190, 0.35) 0 14px,
      rgba(214, 168, 96, 0.3) 14px 30px,
      rgba(255, 214, 150, 0.32) 30px 46px),
    radial-gradient(circle at 34% 30%, #ffe6b8, #e5b368 55%, #7a5423 100%);
  box-shadow: inset -28px -20px 60px rgba(60, 30, 0, 0.85), 0 0 42px rgba(255, 205, 130, 0.5);
  animation: venusDrift 40s linear infinite, planetIdle 14s ease-in-out infinite;
}

@keyframes venusDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: -400px 0, 0 0; }
}

.planet-clouds {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 40% 16% at 30% 34%, rgba(255, 255, 255, 0.5), transparent 70%),
    radial-gradient(ellipse 46% 14% at 68% 58%, rgba(255, 255, 255, 0.42), transparent 70%),
    radial-gradient(ellipse 36% 12% at 46% 76%, rgba(255, 255, 255, 0.36), transparent 70%);
  animation: cloudSlide 24s linear infinite;
}

@keyframes cloudSlide {
  from { transform: translateX(-46%) rotate(0deg); }
  to { transform: translateX(46%) rotate(0deg); }
}

/* --- Ziemia --- */

.planet-earth {
  background:
    radial-gradient(ellipse 26% 15% at 30% 36%, #3f9e58 0 60%, transparent 75%),
    radial-gradient(ellipse 18% 22% at 62% 28%, #3f9e58 0 55%, transparent 75%),
    radial-gradient(ellipse 30% 16% at 70% 64%, #46a862 0 55%, transparent 78%),
    radial-gradient(ellipse 14% 10% at 44% 74%, #d9d2c4 0 45%, transparent 70%),
    radial-gradient(ellipse 20% 12% at 22% 62%, #2f8b4c 0 55%, transparent 75%),
    radial-gradient(circle at 34% 30%, #6fc0ff, #1f6fd0 55%, #062455 100%);
  box-shadow: inset -30px -20px 66px rgba(0, 10, 40, 0.9), 0 0 46px rgba(87, 224, 255, 0.55);
  animation: earthSpin 30s linear infinite, planetIdle 14s ease-in-out infinite;
}

@keyframes earthSpin {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: -360px 0, -360px 0, -360px 0, -360px 0, -360px 0, 0 0; }
}

.planet-atmosphere {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 2px solid rgba(140, 220, 255, 0.5);
  box-shadow: 0 0 26px rgba(87, 224, 255, 0.65), inset 0 0 26px rgba(87, 224, 255, 0.4);
  animation: atmoGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes atmoGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.planet-night {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 76% 44%, rgba(255, 214, 120, 0.75) 0 1.4%, transparent 3%),
    radial-gradient(circle at 70% 56%, rgba(255, 214, 120, 0.7) 0 1.1%, transparent 2.6%),
    radial-gradient(circle at 82% 60%, rgba(255, 214, 120, 0.65) 0 1.2%, transparent 2.8%),
    radial-gradient(circle at 74% 34%, rgba(255, 225, 150, 0.6) 0 1%, transparent 2.4%),
    radial-gradient(circle at 86% 48%, rgba(255, 225, 150, 0.6) 0 1.2%, transparent 2.6%),
    radial-gradient(circle at 66% 46%, rgba(255, 214, 120, 0.6) 0 1%, transparent 2.4%),
    linear-gradient(270deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 26%, transparent 52%);
  mix-blend-mode: multiply;
  animation: cityFlicker 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cityFlicker {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

.moon-track {
  position: absolute;
  width: 96%;
  height: 96%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  animation: moonOrbit 11s linear infinite;
}

.moon-earth {
  position: absolute;
  top: -6px; left: 50%;
  width: 26px; height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f2f0ec, #a8a49b 60%, #3a3833);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.55);
}

@keyframes moonOrbit { to { transform: rotate(360deg); } }

/* --- Mars --- */

.planet-mars {
  background:
    radial-gradient(ellipse 30% 16% at 36% 40%, rgba(120, 45, 20, 0.75) 0 60%, transparent 80%),
    radial-gradient(ellipse 22% 12% at 66% 62%, rgba(120, 45, 20, 0.65) 0 55%, transparent 80%),
    radial-gradient(ellipse 16% 9% at 50% 20%, rgba(240, 240, 245, 0.85) 0 50%, transparent 80%),
    radial-gradient(ellipse 14% 8% at 54% 84%, rgba(240, 240, 245, 0.7) 0 45%, transparent 78%),
    radial-gradient(circle at 30% 46%, #ff8a5c 0 10%, transparent 26%),
    radial-gradient(circle at 34% 30%, #f97c4a, #c1440e 55%, #451505 100%);
  box-shadow: inset -28px -20px 62px rgba(30, 5, 0, 0.88), 0 0 42px rgba(255, 110, 50, 0.5);
  animation: marsSpin 34s linear infinite, planetIdle 14s ease-in-out infinite;
}

@keyframes marsSpin {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: -340px 0, -340px 0, -340px 0, -340px 0, -340px 0, 0 0; }
}

.moon-track-mars-a { width: 88%; height: 88%; animation-duration: 7s; }
.moon-track-mars-b { width: 112%; height: 112%; animation-duration: 13s; animation-direction: reverse; }

.moon-mars {
  position: absolute;
  top: -5px; left: 50%;
  width: 15px; height: 15px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8cfc4, #8a8074 65%, #2c2823);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

.moon-mars-small { width: 10px; height: 10px; margin-left: -5px; top: -3px; }

/* --- Jowisz --- */

.planet-jupiter {
  background: radial-gradient(circle at 34% 30%, #f3ddb8, #d9a86c 55%, #6b4423 100%);
  box-shadow: inset -34px -24px 74px rgba(35, 14, 0, 0.88), 0 0 50px rgba(230, 175, 110, 0.45);
  animation: planetIdle 14s ease-in-out infinite;
}

.jupiter-bands {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    180deg,
    rgba(238, 210, 165, 0.9) 0 8%,
    rgba(186, 132, 78, 0.85) 8% 14%,
    rgba(245, 226, 190, 0.9) 14% 22%,
    rgba(160, 104, 58, 0.8) 22% 28%,
    rgba(232, 198, 150, 0.9) 28% 38%,
    rgba(199, 148, 92, 0.85) 38% 46%,
    rgba(245, 226, 190, 0.9) 46% 56%,
    rgba(172, 116, 64, 0.8) 56% 64%,
    rgba(238, 210, 165, 0.9) 64% 76%,
    rgba(205, 156, 100, 0.85) 76% 86%,
    rgba(240, 218, 180, 0.9) 86% 100%);
  background-size: 100% 200%;
  animation: jupiterBands 26s linear infinite;
}

@keyframes jupiterBands {
  from { background-position: 0 0; }
  to { background-position: 0 -200%; }
}

.jupiter-spot {
  position: absolute;
  width: 26%;
  height: 14%;
  top: 56%;
  left: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 45% 40%, #e8623c, #a8321c 60%, rgba(168, 50, 28, 0) 100%);
  box-shadow: inset 0 0 12px rgba(80, 15, 5, 0.7);
  animation: spotDrift 30s ease-in-out infinite;
  opacity: 0.92;
}

@keyframes spotDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(46%); }
}

/* --- Saturn --- */

.saturn-system {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: planetIdle 14s ease-in-out infinite;
}

.planet-saturn {
  position: relative;
  z-index: 2;
  width: 58%;
  height: 58%;
  background:
    repeating-linear-gradient(180deg,
      rgba(245, 224, 178, 0.75) 0 10%,
      rgba(206, 172, 118, 0.7) 10% 18%,
      rgba(238, 214, 168, 0.75) 18% 30%,
      rgba(194, 158, 106, 0.7) 30% 38%),
    radial-gradient(circle at 34% 30%, #f6e3bd, #d8b478 55%, #6d4e26 100%);
  box-shadow: inset -28px -20px 60px rgba(45, 25, 5, 0.88), 0 0 44px rgba(235, 200, 140, 0.42);
  animation: saturnSpin 30s linear infinite;
}

@keyframes saturnSpin {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 -160px, 0 0; }
}

.saturn-rings {
  position: absolute;
  top: 50%; left: 50%;
  width: 108%;
  height: 108%;
  border-radius: 50%;
  border: 12px solid rgba(216, 190, 140, 0.55);
  box-shadow:
    0 0 0 6px rgba(255, 235, 200, 0.28),
    0 0 0 20px rgba(190, 160, 110, 0.4),
    0 0 0 25px rgba(240, 220, 180, 0.22),
    inset 0 0 0 5px rgba(255, 235, 200, 0.3),
    inset 0 0 0 18px rgba(190, 160, 110, 0.35);
  transform: translate(-50%, -50%) rotateX(76deg) rotateZ(0deg);
  animation: ringTurn 46s linear infinite;
}

.saturn-rings-back {
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.saturn-rings-front {
  z-index: 3;
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}

@keyframes ringTurn {
  from { transform: translate(-50%, -50%) rotateX(76deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(76deg) rotateZ(360deg); }
}

/* --- Uran --- */

.uranus-tilt {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-24deg);
  animation: uranusWobble 18s ease-in-out infinite;
}

@keyframes uranusWobble {
  0%, 100% { transform: rotate(-24deg); }
  50% { transform: rotate(-16deg); }
}

.planet-uranus {
  width: 58%;
  height: 58%;
  background:
    repeating-linear-gradient(180deg,
      rgba(190, 240, 245, 0.4) 0 12%,
      rgba(130, 210, 220, 0.35) 12% 24%),
    radial-gradient(circle at 34% 30%, #c9f5f8, #6fd3de 55%, #1a5f6e 100%);
  box-shadow: inset -26px -22px 58px rgba(2, 30, 40, 0.85), 0 0 44px rgba(120, 230, 240, 0.5);
  animation: uranusSpin 22s linear infinite, planetIdle 14s ease-in-out infinite;
}

@keyframes uranusSpin {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 -240px, 0 0; }
}

.uranus-rings {
  position: absolute;
  top: 50%; left: 50%;
  width: 44%;
  height: 118%;
  border-radius: 50%;
  border: 4px solid rgba(150, 235, 245, 0.45);
  box-shadow: 0 0 0 7px rgba(110, 220, 235, 0.22), inset 0 0 0 5px rgba(110, 220, 235, 0.2);
  transform: translate(-50%, -50%) rotateY(74deg);
  animation: ringTurnY 34s linear infinite;
  z-index: 3;
}

@keyframes ringTurnY {
  from { transform: translate(-50%, -50%) rotateY(74deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateY(74deg) rotateZ(360deg); }
}

/* --- Neptun --- */

.planet-neptune {
  background: radial-gradient(circle at 34% 30%, #6ea8ff, #1f4fd0 52%, #071a55 100%);
  box-shadow: inset -30px -22px 64px rgba(0, 8, 45, 0.9), 0 0 46px rgba(70, 130, 255, 0.55);
  animation: planetIdle 14s ease-in-out infinite;
}

.neptune-clouds {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 44% 10% at 32% 30%, rgba(255, 255, 255, 0.55), transparent 72%),
    radial-gradient(ellipse 40% 9% at 66% 52%, rgba(255, 255, 255, 0.45), transparent 72%),
    radial-gradient(ellipse 48% 11% at 44% 72%, rgba(255, 255, 255, 0.5), transparent 72%),
    radial-gradient(ellipse 34% 8% at 74% 22%, rgba(255, 255, 255, 0.4), transparent 72%);
  animation: neptuneWind 9s linear infinite;
}

@keyframes neptuneWind {
  from { transform: translateX(-34%); }
  to { transform: translateX(34%); }
}

.neptune-storm {
  position: absolute;
  width: 30%;
  height: 16%;
  top: 36%;
  left: 24%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(6, 20, 70, 0.95), rgba(10, 30, 90, 0.4) 65%, transparent 85%);
  animation: spotDrift 22s ease-in-out infinite reverse;
}

/* ---------- KARTY PORÓWNAWCZE (SLAJD 13) ---------- */

.compare-columns { display: flex; flex-direction: column; gap: 30px; }

.compare-heading {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 0 12px rgba(87, 224, 255, 0.5);
}

.compare-group:last-child .compare-heading { color: var(--violet); text-shadow: 0 0 12px rgba(155, 107, 255, 0.5); }

.card-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.planet-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.45s, background 0.45s;
  position: relative;
  overflow: hidden;
}

.planet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(87, 224, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s;
}

.planet-card:hover {
  transform: translateY(-8px);
  border-color: rgba(87, 224, 255, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 26px rgba(87, 224, 255, 0.28);
}

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

.planet-card.expanded {
  transform: translateY(-10px) scale(1.07);
  border-color: var(--teal);
  background: rgba(14, 26, 60, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(55, 255, 208, 0.4);
  z-index: 5;
}

.card-visual {
  display: block;
  width: 74px;
  height: 74px;
  position: relative;
  transition: transform 0.5s var(--ease);
}

.planet-card:hover .card-visual,
.planet-card.expanded .card-visual { transform: scale(1.18); }

.card-sphere {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: cardSpin 18s linear infinite;
}

@keyframes cardSpin { to { filter: hue-rotate(12deg) brightness(1.06); } }

.card-sphere-mercury { background: radial-gradient(circle at 32% 28%, #c4bcb0, #7d766c 58%, #26231f); box-shadow: inset -10px -8px 20px rgba(0,0,0,0.8), 0 0 16px rgba(180,170,155,0.5); }
.card-sphere-venus { background: radial-gradient(circle at 32% 28%, #ffe9c2, #e0ac5e 58%, #6d4a1e); box-shadow: inset -10px -8px 20px rgba(0,0,0,0.75), 0 0 16px rgba(255,205,130,0.55); }
.card-sphere-earth { background: radial-gradient(circle at 32% 28%, #79c6ff, #1f6fd0 55%, #062455); box-shadow: inset -10px -8px 20px rgba(0,0,10,0.8), 0 0 16px rgba(87,224,255,0.6); }
.card-sphere-mars { background: radial-gradient(circle at 32% 28%, #ff9266, #c1440e 58%, #401204); box-shadow: inset -10px -8px 20px rgba(30,5,0,0.8), 0 0 16px rgba(255,110,50,0.55); }
.card-sphere-jupiter { background: repeating-linear-gradient(180deg, #eedac0 0 9%, #bb8a56 9% 16%, #f3e2c4 16% 26%, #a06c3e 26% 33%), radial-gradient(circle at 32% 28%, #f3ddb8, #d9a86c 60%, #6b4423); box-shadow: inset -10px -8px 22px rgba(35,14,0,0.8), 0 0 16px rgba(230,175,110,0.5); }
.card-sphere-saturn { background: repeating-linear-gradient(180deg, #f5e0b8 0 11%, #ceac76 11% 20%, #eed6a8 20% 32%, #c29e6a 32% 41%), radial-gradient(circle at 32% 28%, #f6e3bd, #d8b478 60%, #6d4e26); box-shadow: inset -10px -8px 22px rgba(45,25,5,0.8), 0 0 16px rgba(235,200,140,0.5); }
.card-sphere-uranus { background: radial-gradient(circle at 32% 28%, #d3f7fa, #6fd3de 58%, #17545f); box-shadow: inset -10px -8px 20px rgba(2,30,40,0.8), 0 0 16px rgba(120,230,240,0.55); }
.card-sphere-neptune { background: radial-gradient(circle at 32% 28%, #7db1ff, #1f4fd0 58%, #061548); box-shadow: inset -10px -8px 20px rgba(0,8,45,0.85), 0 0 16px rgba(70,130,255,0.55); }

.card-sphere-saturn::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 156%;
  height: 40%;
  transform: translate(-50%, -50%) rotateX(72deg);
  border-radius: 50%;
  border: 5px solid rgba(226, 200, 150, 0.65);
  box-shadow: 0 0 0 4px rgba(240, 220, 180, 0.25);
}

.card-name {
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #fff;
}

.card-info {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-dim);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.45s, margin 0.5s;
}

.planet-card.expanded .card-info { max-height: 130px; opacity: 1; margin-top: 2px; }

/* ---------- CIEKAWOSTKI (SLAJD 14) ---------- */

.trivia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trivia-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  animation: triviaFloat 7s ease-in-out infinite;
}

.trivia-card:nth-child(2n) { animation-delay: -2.2s; }
.trivia-card:nth-child(3n) { animation-delay: -4.5s; }

@keyframes triviaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.trivia-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(155, 107, 255, 0.6);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 26px rgba(155, 107, 255, 0.3);
}

.trivia-card i {
  font-size: 22px;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.7);
  margin-top: 3px;
  flex-shrink: 0;
}

.trivia-card p { font-size: 15.5px; line-height: 1.5; color: var(--text); }
.trivia-card strong { color: var(--cyan); font-weight: 700; }

/* ---------- PODSUMOWANIE (SLAJD 15) ---------- */

.summary-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4vw;
  align-items: center;
}

.summary-list { display: flex; flex-direction: column; gap: 14px; }

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px 18px;
  background: linear-gradient(90deg, rgba(155, 107, 255, 0.1), rgba(10, 18, 44, 0.3));
  border: 1px solid rgba(155, 107, 255, 0.18);
  border-left: 3px solid var(--violet);
  border-radius: 12px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}

.summary-item:hover {
  transform: translateX(8px);
  border-color: rgba(155, 107, 255, 0.5);
  box-shadow: 0 8px 28px rgba(155, 107, 255, 0.18);
}

.summary-item i { color: var(--violet); font-size: 17px; margin-top: 3px; text-shadow: 0 0 10px rgba(155, 107, 255, 0.7); }
.summary-item p { font-size: 15.5px; line-height: 1.5; }
.summary-item strong { color: #fff; }

/* ---------- SLAJD KOŃCOWY (SLAJD 16) ---------- */

.slide-end { overflow: hidden; }

.end-backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: endZoom 26s ease-in-out infinite alternate;
}

@keyframes endZoom {
  from { transform: scale(1.14); }
  to { transform: scale(0.94); }
}

.end-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.end-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(30px, 6.4vw, 84px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 15%, var(--cyan) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 44px rgba(87, 224, 255, 0.45));
}

.end-sign {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(15px, 1.9vw, 24px);
  letter-spacing: 0.3em;
  color: var(--text);
  text-shadow: 0 0 20px rgba(155, 107, 255, 0.7);
  margin-bottom: 34px;
}

/* ---------- NAWIGACJA ---------- */

.deck-nav {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}

.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--cyan);
  background: rgba(87, 224, 255, 0.08);
  border: 1px solid rgba(87, 224, 255, 0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, opacity 0.3s;
}

.nav-btn:hover:not(:disabled) {
  transform: scale(1.12);
  background: rgba(87, 224, 255, 0.2);
  box-shadow: 0 0 22px rgba(87, 224, 255, 0.55);
}

.nav-btn:disabled { opacity: 0.28; cursor: not-allowed; }

.nav-dots { display: flex; gap: 8px; align-items: center; }

.nav-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(143, 162, 201, 0.35);
  border: none;
  padding: 0;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
}

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

.nav-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(87, 224, 255, 0.9);
  transform: scale(1.35);
}

.nav-label {
  position: fixed;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 64;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(5, 10, 28, 0.5);
  padding: 5px 16px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.4s;
}

/* ---------- ANIMACJE WEJŚCIA (REVEAL) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.slide.active .reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSYWNOŚĆ ---------- */

@media (max-width: 1080px) {
  .card-row { grid-template-columns: repeat(2, 1fr); }
  .trivia-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .slide-grid { grid-template-columns: 1fr; gap: 30px; }
  .summary-grid { grid-template-columns: 1fr; gap: 30px; }
  .slide { padding: 78px 6vw calc(var(--nav-h) + 104px); align-items: flex-start; overflow-y: auto; }
  .slide-body { margin-top: auto; margin-bottom: auto; }
  .slide-visual { order: -1; }
  .planet-stage, .sun-stage { width: min(280px, 62vw); }
  .orbit-model-lg, .orbit-model-md { width: min(340px, 72vw); }
  .nav-label { display: none; }
}

@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .signature { top: 12px; left: 14px; }
  .signature-name { font-size: 11.5px; }
  .signature-class { font-size: 10px; }
  .slide-counter { top: 12px; right: 14px; font-size: 11px; padding: 6px 11px; }
  .slide { padding: 70px 5vw calc(var(--nav-h) + 100px); }
  .fact-list li { padding: 9px 12px; font-size: 14.5px; gap: 11px; }
  .card-row { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .trivia-grid { grid-template-columns: 1fr; gap: 12px; }
  .trivia-card { padding: 14px; }
  .deck-nav { gap: 10px; padding: 7px 12px; bottom: 12px; width: calc(100vw - 28px); justify-content: space-between; }
  .nav-btn { width: 40px; height: 40px; }
  .nav-dots { gap: 5.5px; flex-wrap: wrap; justify-content: center; }
  .nav-dot { width: 7px; height: 7px; }
  .title-main { letter-spacing: 0.06em; }
  .title-hints { gap: 8px; margin-bottom: 24px; }
  .title-hint { font-size: 12.5px; padding: 7px 14px; gap: 8px; }
  .title-line { margin: 22px auto; }
  .planet-tiles { gap: 8px; }
  .planet-tile { padding: 10px 4px 9px; border-radius: 11px; }
  .tile-visual { width: 40px; height: 40px; }
  .tile-name { font-size: 10.5px; letter-spacing: 0.06em; }
  .tile-tag { font-size: 9.5px; letter-spacing: 0.08em; }
  .cta-btn { padding: 14px 28px; }
  .cosmos-viz { width: min(300px, 74vw); }
  .planet-stage, .sun-stage { width: min(230px, 58vw); }
}

@media (max-height: 640px) and (min-width: 901px) {
  .slide { padding-top: 66px; padding-bottom: 130px; align-items: flex-start; overflow-y: auto; }
  .planet-stage, .sun-stage { width: min(280px, 34vh); }
  .title-main { font-size: clamp(48px, 11vh, 96px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; }
}
