/* =============================================
   ODKRYJ.CSS - Galeria APOD, Kalkulator, Wydarzenia
   ============================================= */

/* ---- Page tabs ---- */
.page-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  animation: fadeDown 1s var(--ease-out-expo) 0.6s both;
}

.page-tab {
  padding: 0.5em 1.3em;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--clr-muted);
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.page-tab:hover,
.page-tab.active {
  background: rgba(124,92,252,0.15);
  border-color: var(--clr-accent);
  color: var(--clr-text);
}

/* =============================================
   SECTION WRAPPERS
   ============================================= */
.odkryj-section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  background: rgba(8,10,22,0.97);
}

.odkryj-dark {
  background: rgba(4,5,12,0.99);
}

/* =============================================
   APOD GALERIA
   ============================================= */
.apod-loader {
  text-align: center;
  padding: 4rem 0;
  color: var(--clr-muted);
  font-size: 0.9rem;
}

.loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(124,92,252,0.2);
  border-top-color: var(--clr-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

.apod-error {
  text-align: center;
  padding: 3rem;
  color: var(--clr-muted);
}

.apod-error.hidden,
.apod-grid.hidden,
.apod-loader.hidden { display: none; }

/* Masonry-like grid */
.apod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.apod-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--clr-border);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.3s;
  animation: fadeUp 0.6s var(--ease-out-expo) both;
}

.apod-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border-color: rgba(124,92,252,0.4);
}

/* Pierwsze zdjęcie - wyróżnione, pełna szerokość */
.apod-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}

.apod-card:first-child .apod-img-wrap { height: 400px; }

.apod-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #05050f;
}

.apod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}

.apod-card:hover .apod-img-wrap img {
  transform: scale(1.06);
}

/* Overlay z datą */
.apod-date-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  color: var(--clr-accent-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25em 0.65em;
  border-radius: 50px;
}

.apod-video-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25em 0.65em;
  border-radius: 50px;
}

.apod-zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,92,252,0.25);
  opacity: 0;
  transition: opacity 0.25s;
  font-size: 1.8rem;
}
.apod-card:hover .apod-zoom-hint { opacity: 1; }

.apod-info {
  padding: 1rem 1.1rem 1.2rem;
}

.apod-card:first-child .apod-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apod-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
  color: var(--clr-text);
}

.apod-card:first-child .apod-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.apod-excerpt {
  color: var(--clr-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.apod-card:first-child .apod-excerpt {
  -webkit-line-clamp: 5;
  margin-bottom: 1.25rem;
}

.apod-copyright {
  font-size: 0.7rem;
  color: rgba(136,146,176,0.5);
  margin-top: 0.5rem;
}

.apod-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2,3,8,0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.25s ease;
}

.lightbox.hidden { display: none; }

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

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--clr-text);
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.lightbox-close:hover { background: rgba(255,255,255,0.15); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--clr-text);
  font-size: 2rem;
  width: 48px;
  height: 80px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(124,92,252,0.25); }

.lightbox-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
}

.lightbox-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.lightbox-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.lightbox-date {
  font-size: 0.75rem;
  color: var(--clr-accent-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox-copyright {
  font-size: 0.72rem;
  color: var(--clr-muted);
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.3;
}

.lightbox-desc {
  color: var(--clr-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  max-height: 40vh;
  overflow-y: auto;
}

.lightbox-hd {
  display: inline-block;
  color: var(--clr-accent);
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.lightbox-hd:hover { opacity: 0.7; }
.lightbox-hd[hidden] { display: none; }

.lightbox-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

/* =============================================
   WYDARZENIA - COUNTDOWN
   ============================================= */
.next-event-banner {
  background: linear-gradient(135deg,
    rgba(124,92,252,0.12) 0%,
    rgba(0,212,255,0.08) 100%);
  border: 1px solid rgba(124,92,252,0.25);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.next-event-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent-2);
  margin-bottom: 0.5rem;
}

.next-event-name {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}

.next-event-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.cdown-num {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cdown-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-muted);
  margin-top: 0.25rem;
}

.countdown-sep {
  font-size: 2rem;
  color: var(--clr-muted);
  align-self: flex-start;
  margin-top: 0.1rem;
  line-height: 1;
}

/* =============================================
   WYDARZENIA - KARTY
   ============================================= */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.event-card {
  display: grid;
  grid-template-columns: 56px auto 1fr;
  gap: 0 1rem;
  align-items: start;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 1.25rem;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-2));
  opacity: 0;
  transition: opacity 0.3s;
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124,92,252,0.35);
}

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

/* Minione wydarzenia */
.event-card.past {
  opacity: 0.45;
  filter: grayscale(0.4);
}

.event-card.past::after {
  content: 'Minione';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted);
  background: rgba(255,255,255,0.05);
  padding: 0.2em 0.6em;
  border-radius: 50px;
}

.event-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: rgba(124,92,252,0.12);
  border-radius: 10px;
  padding: 0.5rem 0.4rem;
  line-height: 1;
  border: 1px solid rgba(124,92,252,0.2);
}

.ev-day {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--clr-accent);
}

.ev-month {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--clr-muted);
  margin-top: 0.2rem;
}

.event-icon {
  font-size: 1.4rem;
  line-height: 1;
  padding-top: 0.15rem;
}

.event-type {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent-2);
  margin-bottom: 0.3rem;
}

.event-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.event-body p {
  color: var(--clr-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.event-tags span {
  font-size: 0.68rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.2em 0.55em;
  border-radius: 50px;
  color: var(--clr-muted);
}

.events-note {
  color: rgba(136,146,176,0.45);
  font-size: 0.78rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* =============================================
   KALKULATOR
   ============================================= */
.calc-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

.calc-inputs {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  padding: 2rem;
}

.calc-inputs h3,
.calc-results h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--clr-accent-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.calc-group {
  margin-bottom: 1.1rem;
}

.calc-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--clr-muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.calc-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-group input[type="number"],
.calc-group select {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.65em 0.9em;
  color: var(--clr-text);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.calc-group input[type="number"]:focus,
.calc-group select:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.15);
}

.calc-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238892b0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  cursor: pointer;
}

.calc-group select option { background: #0a0c18; }

.calc-unit {
  color: var(--clr-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.calc-btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85em;
  font-size: 1rem;
}

/* Wyniki */
.result-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.result-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  transition: border-color 0.3s;
}

.result-card.wide {
  grid-column: 1 / -1;
}

.result-card.highlight {
  border-color: rgba(124,92,252,0.4);
  background: rgba(124,92,252,0.06);
}

.result-value {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.3rem;
  font-variant-numeric: tabular-nums;
  min-height: 2.2rem;
}

.result-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.25rem;
}

.result-hint {
  font-size: 0.72rem;
  color: var(--clr-muted);
  line-height: 1.4;
}

/* Ocena */
.calc-rating {
  margin-top: 1.25rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
}

.calc-rating.hidden { display: none; }

.calc-rating h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-muted);
  margin-bottom: 0.5rem;
}

#rating-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--clr-muted);
}

#rating-text strong { color: var(--clr-text); }
#rating-text .good  { color: #4ade80; }
#rating-text .warn  { color: var(--clr-gold); }
#rating-text .bad   { color: #f87171; }

/* Tabela okularów */
.eyepiece-table { margin-top: 1rem; }

.eyepiece-table h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.eyepiece-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.eyepiece-preset {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 0.55em 1em;
  font-size: 0.82rem;
  color: var(--clr-muted);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.eyepiece-preset:hover {
  background: rgba(124,92,252,0.12);
  border-color: var(--clr-accent);
  color: var(--clr-text);
}

/* =============================================
   ISS TRACKER
   ============================================= */
.iss-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.iss-map-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: #05080f;
  height: 440px;
}

/* Leaflet mapa */
#iss-map {
  width: 100%;
  height: 100%;
}

/* Loader overlay na mapie */
.iss-map-status {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(5,8,15,0.85);
  color: var(--clr-muted);
  font-size: 0.9rem;
  pointer-events: none;
  transition: opacity 0.4s;
}

.iss-map-status.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ISS marker */
.iss-marker-inner {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.8));
}

.iss-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0,212,255,0.6);
  animation: issPulse 2s ease-out infinite;
}

@keyframes issPulse {
  0%   { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2);   opacity: 0; }
}

/* Leaflet dark popup */
.leaflet-popup-content-wrapper {
  background: rgba(10,12,24,0.95) !important;
  border: 1px solid rgba(124,92,252,0.3) !important;
  color: #e8eaf6 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
  font-family: system-ui, sans-serif !important;
  font-size: 0.85rem !important;
}

.leaflet-popup-tip {
  background: rgba(10,12,24,0.95) !important;
}

.leaflet-popup-content strong {
  color: #00d4ff;
}

.iss-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.iss-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.iss-stat-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.iss-stat-card strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-muted);
  margin-bottom: 0.2rem;
}

.iss-stat-card div div,
.iss-coords {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--clr-accent-2);
}

.iss-passes {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 1.25rem;
}

.iss-passes h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.iss-passes p {
  color: var(--clr-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.iss-passes a {
  color: var(--clr-accent-2);
  font-weight: 600;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .iss-layout {
    grid-template-columns: 1fr;
  }
  .iss-iframe { height: 320px; }
  .lightbox-inner {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }
  .lightbox-caption { max-height: 35vh; }
}

@media (max-width: 768px) {
  .apod-grid {
    grid-template-columns: 1fr 1fr;
  }
  .apod-card:first-child {
    grid-template-columns: 1fr;
  }
  .apod-card:first-child .apod-img-wrap { height: 220px; }
  .events-grid { grid-template-columns: 1fr; }
  .result-cards { grid-template-columns: 1fr; }
  .result-card.wide { grid-column: 1; }
  .next-event-banner { padding: 1.5rem 1rem; }
}

@media (max-width: 560px) {
  .apod-grid { grid-template-columns: 1fr; }
  .apod-card:first-child { grid-column: 1; }
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
  .apod-actions { flex-direction: column; align-items: stretch; }
  .apod-actions > * { text-align: center; }
}

/* Dziś na niebie (z kalendarza 2026), obok mapy ISS */
.iss-today-date {
  color: var(--clr-muted);
  font-weight: 600;
}

.iss-today-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.iss-today-list li {
  font-size: 0.85rem;
  line-height: 1.5;
}

.iss-today-list small {
  color: var(--clr-muted);
  font-size: 0.78rem;
}

/* =============================================
   QUIZ - zajawka strony quiz.html
   ============================================= */
.quiz-teaser {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  border: 1px solid rgba(124,92,252,0.25);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124,92,252,0.12) 0%, rgba(0,212,255,0.08) 100%);
  text-align: center;
}
.quiz-teaser-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.quiz-teaser-levels li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
}
.quiz-teaser-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--clr-gold);
}
.quiz-teaser-desc {
  font-size: 0.9rem;
  color: var(--clr-text);
}
.quiz-teaser-btn { display: inline-block; }
@media (max-width: 640px) {
  .quiz-teaser { padding: 1.5rem 1.25rem; }
  .quiz-teaser-levels { grid-template-columns: 1fr; }
}

/* Galeria bez zdjęć z serwerów NASA: notka nad kartami, karty z lokalnymi planszami */
.apod-note {
  max-width: 760px;
  margin: 0 auto 2rem;
  color: var(--clr-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}
.apod-note a { color: var(--clr-text); text-decoration: underline; }
.apod-img-wrap { height: 150px; }
.apod-card:first-child .apod-img-wrap { height: 300px; }
@media (max-width: 768px) {
  .apod-card:first-child .apod-img-wrap { height: 180px; }
}
@media (max-width: 640px) {
  .apod-note { font-size: 0.82rem; }
}
