/* ============================================================
   Ezoterium — Portal Wróżb
   ============================================================ */

:root {
  --bg: #07061a;
  --ink: #f4eefe;
  --ink-soft: rgba(232, 226, 250, .72);
  --ink-mute: rgba(214, 206, 240, .6);
  --ink-faint: rgba(200, 192, 230, .44);
  --gold: #f3e6c4;
  --line: rgba(232, 196, 120, .16);
  --serif-display: 'Cormorant Garamond', Georgia, serif;
  --serif-text: 'EB Garamond', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-text);
  -webkit-text-size-adjust: 100%;
}

body { overflow-x: hidden; }

h1, h2 { font-family: var(--serif-display); font-weight: 500; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: #12092e;
  color: var(--gold);
  border: 1px solid var(--line);
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- animacje ---------- */
@keyframes tw     { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes fl     { 0%, 100% { transform: translateY(8px);  opacity: .35; } 50% { transform: translateY(-8px);  opacity: .7; } }
@keyframes dr     { 0%, 100% { transform: translateY(6px) rotate(var(--r, 0deg)); opacity: .3; } 50% { transform: translateY(-10px) rotate(var(--r, 0deg)); opacity: .6; } }
@keyframes nebula { 0%, 100% { transform: scale(1) translate(0, 0); } 50% { transform: scale(1.08) translate(2%, -2%); } }

/* ============================================================
   SCENA
   ============================================================ */

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 18%, #1a1142 0%, #0d0930 45%, #07061a 100%);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.stage.is-dragging { cursor: grabbing; }

/* w trakcie obracania orbity nic poniżej nie powinno się zaznaczać */
body.is-orbit-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.nebula {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  animation: nebula 26s ease-in-out infinite;
  background:
    radial-gradient(40% 30% at 22% 30%, rgba(126, 80, 200, .30), transparent 70%),
    radial-gradient(45% 35% at 80% 26%, rgba(70, 90, 210, .22), transparent 70%),
    radial-gradient(50% 40% at 60% 78%, rgba(180, 70, 150, .16), transparent 72%);
}

.stage__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 40%, rgba(255, 255, 255, .04), transparent 70%);
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 45%, transparent 55%, rgba(4, 3, 14, .7) 100%);
}

/* ---------- warstwy nieba ---------- */
.sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.stage[data-system="astrologia"]  .sky--astrologia,
.stage[data-system="tarot"]       .sky--tarot,
.stage[data-system="runy"]        .sky--runy,
.stage[data-system="numerologia"] .sky--numerologia,
.stage[data-system="kabala"]      .sky--kabala { opacity: 1; }

.sky__halo {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 86vmin;
  height: 86vmin;
  transform: translate(-50%, -50%);
  filter: blur(8px);
  border-radius: 50%;
}
.sky--astrologia  .sky__halo { background: radial-gradient(circle, rgba(232, 184, 75, .20), transparent 60%); }
.sky--tarot       .sky__halo { background: radial-gradient(circle, rgba(212, 90, 168, .20), transparent 60%); }
.sky--runy        .sky__halo { background: radial-gradient(circle, rgba(69, 201, 176, .18), transparent 60%); }
.sky--numerologia .sky__halo { background: radial-gradient(circle, rgba(90, 160, 232, .18), transparent 60%); }
.sky--kabala      .sky__halo { background: radial-gradient(circle, rgba(154, 124, 232, .18), transparent 60%); }

.constellation { position: absolute; height: auto; overflow: visible; }
.constellation circle { fill: #f7e2a0; }
.constellation--a { left: 14%; top: 24%; width: 24vmin; opacity: .5; }
.constellation--b { right: 12%; bottom: 22%; width: 22vmin; opacity: .45; }

.star, .spark {
  position: absolute;
  left: var(--l);
  top: var(--t);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  animation: tw var(--du) ease-in-out var(--d) infinite;
}
.star  { background: #fff;     box-shadow: 0 0 6px #fff; }
.spark { background: #f2aad4;  box-shadow: 0 0 7px #f2aad4; }

.tcard {
  position: absolute;
  left: var(--l);
  top: var(--t);
  width: var(--s);
  height: calc(var(--s) * 1.5);
  border-radius: calc(var(--s) * .12);
  border: 1px solid rgba(212, 90, 168, .5);
  background: rgba(212, 90, 168, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(212, 90, 168, .22);
  animation: dr var(--du) ease-in-out var(--d) infinite;
}
.tcard span { color: rgba(240, 168, 210, .8); font-size: 13px; font-style: normal; }

.glyph {
  position: absolute;
  left: var(--l);
  top: var(--t);
  font-size: var(--s);
  font-style: normal;
  line-height: 1;
  animation: fl var(--du) ease-in-out var(--d) infinite;
}
.glyph--rune { font-family: var(--serif-text);    color: rgba(69, 201, 176, .55);  text-shadow: 0 0 12px rgba(69, 201, 176, .5); }
.glyph--num  { font-family: var(--serif-display); color: rgba(90, 160, 232, .5);   text-shadow: 0 0 12px rgba(90, 160, 232, .5); }
.glyph--heb  { font-family: var(--serif-display), 'Times New Roman', serif; color: rgba(178, 150, 244, .55); text-shadow: 0 0 14px rgba(154, 124, 232, .6); }

/* ---------- nagłówek sceny ---------- */
.stage__header {
  position: absolute;
  top: clamp(22px, 5vh, 48px);
  left: 0;
  width: 100%;
  padding: 0 18px;
  text-align: center;
  pointer-events: none;
  z-index: 50;
}
.stage__mark {
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  letter-spacing: .5em;
  margin-bottom: 10px;
}
.stage__brand {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(22px, 3.4vw, 32px);
  letter-spacing: .42em;
  text-indent: .42em;
  color: #efeaff;
  text-transform: uppercase;
}
.stage__tagline {
  max-width: 46ch;
  margin: 14px auto 0;
  font-size: clamp(13px, 1.7vw, 16px);
  line-height: 1.55;
  letter-spacing: .1em;
  color: rgba(214, 205, 244, .62);
  text-wrap: pretty;
}
/* każde zdanie w osobnym wierszu — bez przypadkowych łamań */
.stage__tagline span { display: block; }

/* ---------- orbita ---------- */
.orbit {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255, 255, 255, .10);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
}
.orbit.is-ready { opacity: 1; }

/* ---------- planety / glify ---------- */
.planets {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.planet {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  visibility: hidden; /* do czasu wyliczenia geometrii przez JS */
}
.planets.is-ready .planet { visibility: visible; }

.planet__face {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--c-60);
  background: radial-gradient(circle at 50% 50%, var(--c-16), transparent 72%);
  box-shadow: 0 0 16px var(--c-28), inset 0 0 22px var(--c-22);
  transition: box-shadow .45s ease, border-color .45s ease;
}
.planet.is-selected .planet__face {
  border-color: var(--c-95);
  box-shadow: 0 0 44px var(--c-60), inset 0 0 22px var(--c-22);
}
.planet.is-boosting .planet__face {
  box-shadow: 0 0 70px var(--c-60), inset 0 0 26px var(--c-22);
}

/* wektorowy sigil systemu — rysuje się w currentColor */
.sigil {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--c);
  overflow: visible;
}
.planet__face .sigil {
  width: 78%;
  height: 78%;
  filter: drop-shadow(0 0 5px var(--c-60));
  transition: filter .45s ease;
}
.planet.is-selected .planet__face .sigil {
  filter: drop-shadow(0 0 10px var(--c-90));
}

.planet__name {
  position: absolute;
  top: 112%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  pointer-events: none;
}
.planet.is-selected .planet__name { display: none; }

/* ---------- strzałki ---------- */
.arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .7);
  font-family: var(--serif-display);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .3s ease, color .3s ease;
}
.arrow:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.arrow--left  { left: clamp(10px, 4vw, 56px); }
.arrow--right { right: clamp(10px, 4vw, 56px); }

/* ---------- panel wybranego systemu ---------- */
.panel {
  position: absolute;
  bottom: clamp(28px, 6vh, 64px);
  left: 0;
  width: 100%;
  padding: 0 24px;
  text-align: center;
  z-index: 55;
  pointer-events: none;
}
.panel__title {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: .01em;
  color: var(--ink);
}
.panel__desc {
  margin: 14px auto 0;
  max-width: 480px;
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.panel__actions {
  margin-top: 26px;
  pointer-events: auto;
}
.cta {
  display: inline-block;
  border: 1.5px solid var(--sel);
  background: var(--sel-soft);
  color: var(--sel);
  font-family: var(--serif-text);
  font-size: 16px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 38px;
  border-radius: 2px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 20px var(--sel-glow);
  transition: background .35s ease, box-shadow .35s ease, color .35s ease, border-color .35s ease;
}
.cta:hover, .cta:focus-visible {
  background: var(--sel-glow);
  box-shadow: 0 0 30px var(--sel-glow);
  color: #fff;
}
.panel__status {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(200, 192, 230, .5);
}
.dots {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}
.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .25);
  cursor: pointer;
  transition: width .4s ease, background .4s ease, box-shadow .4s ease;
}
.dot.is-active {
  width: 26px;
  background: var(--c);
  box-shadow: 0 0 12px var(--c-70);
}
.panel__hint {
  margin: 16px 0 0;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(200, 192, 230, .4);
}

/* ============================================================
   BAZA WIEDZY
   ============================================================ */

.kb {
  position: relative;
  background: radial-gradient(120% 80% at 50% 0%, #120c34 0%, #0b0824 55%, #07061a 100%);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 9vw, 110px) clamp(18px, 5vw, 56px) clamp(48px, 7vw, 88px);
}
.kb__inner { max-width: 1180px; margin: 0 auto; }
.kb__head { text-align: center; margin-bottom: clamp(34px, 5vw, 60px); }

.eyebrow {
  font-size: 12px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
}
.kb__title {
  margin: 14px 0 10px;
  font-size: clamp(30px, 5vw, 50px);
  letter-spacing: .02em;
  line-height: 1.08;
  color: var(--ink);
}
.kb__lead {
  max-width: 520px;
  margin: 0 auto;
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.6;
  color: rgba(214, 206, 240, .68);
  text-wrap: pretty;
}

.kb__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.book {
  display: block;
  text-decoration: none;
  background: rgba(18, 12, 42, .5);
  border: 1px solid var(--c-30);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.book:hover, .book:focus-visible {
  transform: translateY(-6px);
  border-color: var(--c);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.book__cover {
  position: relative;
  display: flex;
  height: 152px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px 10px 10px 6px;
  border-left: 5px solid var(--c);
  background: linear-gradient(150deg, var(--c-24), #0e0b22 72%);
  box-shadow: inset 0 0 40px var(--c-16);
}
.book__glyph {
  display: block;
  width: 88px;
  height: 88px;
  color: var(--c-light);
  filter: drop-shadow(0 0 8px var(--c-85));
}
.book__spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--serif-display);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--c-light);
  opacity: .75;
  background: var(--c-12);
}
.book__body { display: block; padding: 14px 14px 16px; }
.book__name {
  display: block;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.book__sub {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-mute);
  text-wrap: pretty;
}
.book__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}
.badge {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(200, 192, 230, .42);
  border: 1px solid rgba(232, 196, 120, .18);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}
.book__cta {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c);
}

/* ============================================================
   STOPKA
   ============================================================ */

.footer {
  position: relative;
  background: #050412;
  color: rgba(214, 206, 240, .68);
  border-top: 1px solid var(--line);
  padding: clamp(44px, 6vw, 72px) clamp(18px, 5vw, 56px) 0;
}
.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__seal {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 34% 28%, #e8c478, #9a7ce8 100%);
  box-shadow: 0 0 14px rgba(232, 196, 120, .35);
  color: #1c1030;
  font-weight: 700;
  font-family: var(--serif-display);
}
.footer__name {
  font-family: var(--serif-display);
  font-size: 20px;
  letter-spacing: .24em;
  color: #efeaff;
  text-transform: uppercase;
}
.footer__about {
  margin: 16px 0 0;
  max-width: 280px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-mute);
  text-wrap: pretty;
}
.footer__head {
  margin: 0 0 14px;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
}
.footer__list a,
.footer__mini a {
  color: rgba(214, 206, 240, .68);
  text-decoration: none;
  transition: color .25s ease;
}
.footer__list a:hover,
.footer__mini a:hover { color: #fff; }

.footer__bar {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid rgba(232, 196, 120, .12);
  padding: 20px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-faint);
}
.footer__mini { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__mini a { color: rgba(200, 192, 230, .5); }
.footer__note {
  font-size: 11.5px;
  letter-spacing: .14em;
  color: rgba(200, 192, 230, .34);
}

/* ============================================================
   BAZA WIEDZY — ZAPOWIEDŹ (baza-wiedzy.php)
   ============================================================ */

.page-soon { background: var(--bg); }
.soon {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 12%, #1a1142 0%, #0d0930 46%, #07061a 100%);
}
.soon > .vignette { position: fixed; }

.soon__bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 3vh, 28px) clamp(18px, 5vw, 48px);
}
.soon__back, .soon__brand { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.soon__back { color: rgba(210, 200, 240, .6); text-decoration: none; transition: color .2s ease; }
.soon__back:hover { color: var(--ink); }
.soon__brand {
  flex: 1;
  text-align: center;
  font-family: var(--serif-display);
  font-size: clamp(15px, 2vw, 19px);
  letter-spacing: .42em;
  text-indent: .42em;
  color: #efeaff;
}
.soon__spacer { width: 64px; }

.soon__main {
  position: relative;
  z-index: 5;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(20px, 5vh, 56px) clamp(18px, 5vw, 32px) clamp(56px, 9vh, 110px);
  text-align: center;
}
.soon__seal {
  width: clamp(104px, 22vw, 150px);
  margin: 0 auto clamp(26px, 5vh, 40px);
  color: var(--c);
  filter: drop-shadow(0 0 16px var(--c-60));
}
.soon__title {
  margin: 16px 0 0;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.1;
  color: var(--ink);
}
.soon__lead {
  max-width: 52ch;
  margin: 18px auto 0;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.soon__actions { margin-top: clamp(28px, 5vh, 40px); }
.soon__cta {
  display: inline-block;
  border: 1.5px solid var(--c);
  background: var(--c-12);
  color: var(--c);
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 2px;
  box-shadow: 0 0 22px var(--c-28);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.soon__cta:hover, .soon__cta:focus-visible { background: var(--c-28); color: #fff; }

.soon__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: clamp(40px, 7vh, 72px);
  text-align: left;
}
.soon__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 12, 42, .5);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.soon__row:hover { border-color: var(--c); transform: translateY(-2px); box-shadow: 0 0 26px var(--c-16); }
.soon__row.is-current { border-color: var(--c-60); box-shadow: 0 0 26px var(--c-16); }
.soon__rowSeal {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  color: var(--c-light);
  filter: drop-shadow(0 0 7px var(--c-60));
}
.soon__rowText { flex: 1; min-width: 0; }
.soon__rowName {
  display: block;
  font-family: var(--serif-display);
  font-size: 19px;
  color: var(--ink);
}
.soon__rowSub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-mute);
  text-wrap: pretty;
}
.soon__row .badge { flex-shrink: 0; }
.badge--on {
  color: #0f0a24;
  font-weight: 600;
  background: var(--c-light);
  border-color: transparent;
}

@media (max-width: 520px) {
  .soon__row { gap: 12px; padding: 12px 14px; flex-wrap: wrap; }
  .soon__rowSeal { width: 38px; height: 38px; }
  .soon__row .badge { margin-left: 50px; }
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */

@media (max-width: 900px) {
  .arrow { width: 44px; height: 44px; font-size: 20px; }
}

@media (max-width: 639px) {
  .stage { min-height: 600px; }
  .arrow { display: none; }
  .panel { bottom: clamp(20px, 3.5vh, 40px); padding: 0 18px; }
  .cta { font-size: 15px; padding: 14px 28px; letter-spacing: .12em; }
  .panel__hint { letter-spacing: .18em; }
  .planet__name { font-size: 11px; letter-spacing: .14em; }

  /* rzadsze tło — mniej pracy dla słabszych urządzeń */
  .star:nth-child(2n),
  .spark:nth-child(2n),
  .tcard:nth-child(2n),
  .glyph:nth-child(3n) { display: none; }

  .kb__grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .book__cover { height: 124px; }
  .book__glyph { width: 70px; height: 70px; }
  .footer__bar { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
  .kb__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- brak JS: statyczna lista systemów ---------- */
.no-js .planets {
  position: absolute;
  inset: auto 0 auto 0;
  top: 34%;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  padding: 0 18px;
}
.no-js .planet {
  position: relative;
  transform: none;
  visibility: visible;
  width: 84px;
  height: 84px;
}
.no-js .planet.is-selected .planet__name { display: block; }
.no-js .orbit,
.no-js .arrow,
.no-js .dots,
.no-js .panel__hint { display: none; }

/* ---------- ograniczenie ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
  .nebula, .star, .spark, .tcard, .glyph { animation: none; }
  .sky, .planet__face, .dot, .book, .cta, .arrow { transition-duration: .01ms; }
}
