/* ============================================================
   Ezoterium — Wróżba z numerologii
   Wspólne style wszystkich etapów wróżby (/wrozba/numerologia/).
   Ten sam kosmos, co w astrologii, ale chłodniejszy — w barwie
   systemu (#5AA0E8) zamiast złota.
   ============================================================ */

:root {
  --bg: #04060f;
  --ink: #eef4ff;
  --ink-soft: rgba(234, 242, 254, .93);
  --ink-mute: rgba(214, 226, 246, .78);
  --ink-faint: rgba(202, 214, 238, .58);
  --accent: #5aa0e8;
  --accent-rgb: 90, 160, 232;
  --accent-light: #b0d4f6;
  --light-rgb: 176, 212, 246;
  --hot: #eaf4ff;
  --bad-rgb: 236, 120, 146;
  --serif-display: 'Cormorant Garamond', Georgia, serif;
  --serif-text: 'Manrope', 'Segoe UI', system-ui, sans-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; margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- animacje ---------- */
@keyframes tw        { 0%, 100% { opacity: .22; } 50% { opacity: 1; } }
@keyframes driftBg   { 0%, 100% { transform: translate(0, 0); }
                       50%      { transform: translate(1.2%, -1.2%); } }
@keyframes riseIn    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulseGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

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

.scene {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: radial-gradient(130% 100% at 50% 46%,
    #0f1734 0%, #090e26 42%, #04060f 78%, #020308 100%);
}

.scene__nebula {
  position: absolute;
  inset: -4%;
  pointer-events: none;
  filter: blur(16px);
  animation: driftBg 44s ease-in-out infinite;
  background:
    radial-gradient(ellipse 180px 80px at 18% 28%, rgba(90, 160, 232, .14), transparent 70%),
    radial-gradient(ellipse 150px 60px at 76% 22%, rgba(120, 110, 230, .12), transparent 70%),
    radial-gradient(ellipse 220px 90px at 60% 80%, rgba(70, 190, 210, .08), transparent 70%),
    radial-gradient(ellipse 260px 115px at 42% 48%, rgba(80, 120, 220, .08), transparent 70%);
}

.scene__sky { position: absolute; inset: 0; pointer-events: none; }

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

/* kanwa lecących cyfr */
.scene__flight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scene__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background: radial-gradient(120% 120% at 50% 50%, transparent 46%, rgba(2, 3, 8, .72) 100%);
}

/* ============================================================
   GÓRNA BELKA
   ============================================================ */

.topbar {
  position: relative;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(12px, 2.4vh, 24px) clamp(16px, 4vw, 44px);
}

.topbar__back {
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--ink-mute);
  text-transform: uppercase;
  text-decoration: none;
  transition: color .3s ease;
}
.topbar__back:hover { color: var(--ink); }

.topbar__mark {
  font-family: var(--serif-display);
  font-size: clamp(15px, 2vw, 19px);
  letter-spacing: .42em;
  text-indent: .42em;
  color: #eaf1ff;
}

.topbar__reset {
  border: 1px solid rgba(var(--accent-rgb), .6);
  background: rgba(var(--accent-rgb), .08);
  color: var(--accent-light);
  font-family: var(--serif-text);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 22px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  transition: background .3s ease, color .3s ease;
}
.topbar__reset:hover { background: rgba(var(--accent-rgb), .2); color: #fff; }
.topbar__reset--off { opacity: 0; pointer-events: none; }

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

.stage {
  position: relative;
  z-index: 70;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(14px, 4vw, 40px) clamp(14px, 3vh, 30px);
}

.stage__sub {
  margin: 0 auto;
  max-width: 46ch;
  flex-shrink: 0;
  text-align: center;
  font-size: clamp(13px, 1.7vw, 16px);
  line-height: 1.55;
  letter-spacing: .1em;
  color: rgba(205, 218, 244, .62);
  animation: riseIn .6s ease both;
}

.eyebrow {
  color: rgba(var(--light-rgb), .72);
  font-size: 12.5px;
  letter-spacing: .42em;
  text-transform: uppercase;
}

/* ============================================================
   ETAP 1 — ODŁAMKI DATY URODZENIA

   Każde pole to trzy warstwy:
   .shard       — lot w kosmosie (transform liczy numero-fields.js),
   .shard__body — szkło: nadlot z głębi (CSS), pobłysk, iskra,
   .shard__halo — poświata za szkłem, gdy data jest kompletna.
   Rozdział warstw sprawia, że animacje CSS i JS nie walczą o transform.
   ============================================================ */

@keyframes shardIn {
  from { opacity: 0; transform: scale(.06); filter: blur(6px); }
  60%  { opacity: 1; filter: blur(0); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* pas światła przebiega po szkle, potem długo nic */
@keyframes sheen {
  0%        { transform: translateX(-70%) rotate(0.001deg); }
  24%, 100% { transform: translateX(70%) rotate(0.001deg); }
}

/* iskra w rogu: rozbłysk z obrotem */
@keyframes glint {
  0%, 84%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  90%           { opacity: 1; transform: scale(1) rotate(45deg); }
  96%           { opacity: 0; transform: scale(.4) rotate(90deg); }
}

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

.fields {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fields__space {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 5vw, 72px);
  perspective: 900px;
}

.shard {
  position: relative;
  flex: none;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

/* nierówny szyk — jakby rozsypane w przestrzeni */
.shard--d { margin-top: -9vh; }
.shard--m { margin-top: 9vh; }
.shard--y { margin-top: -4vh; }

.shard.is-focus { z-index: 5; }

.shard__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px clamp(18px, 2.4vw, 28px) 12px;
  overflow: hidden;
  border: 1px solid rgba(var(--light-rgb), .26);
  border-radius: 24px 18px 26px 16px;       /* odłamek, nie pastylka */
  background:
    linear-gradient(155deg,
      rgba(var(--light-rgb), .15) 0%,
      rgba(var(--accent-rgb), .05) 42%,
      rgba(18, 28, 70, .16) 100%);
  -webkit-backdrop-filter: blur(9px) saturate(140%);
  backdrop-filter: blur(9px) saturate(140%);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .38),
    0 0 30px rgba(var(--accent-rgb), .12),
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 0 26px rgba(var(--accent-rgb), .08);
  animation: shardIn 1.25s cubic-bezier(.18, .7, .25, 1) calc(.2s + var(--i) * .24s) both;
  transition: border-color .4s ease, box-shadow .4s ease, background .4s ease;
}

.shard--m .shard__body { border-radius: 16px 26px 18px 24px; }
.shard--y .shard__body { border-radius: 20px 16px 24px 28px; }

/* pobłysk — ukośny pas światła */
.shard__body::before {
  content: '';
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 40%,
    rgba(255, 255, 255, .16) 47%,
    rgba(var(--light-rgb), .34) 50%,
    rgba(255, 255, 255, .14) 53%,
    transparent 60%);
  mix-blend-mode: screen;
  transform: translateX(-70%);
  animation: sheen 7s ease-in-out calc(1.8s + var(--i) * 2.1s) infinite;
}

/* błysk po wpisaniu poprawnej wartości (klasę is-flash dokłada JS) */
.shard__body::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 55%, rgba(234, 244, 255, .42), rgba(var(--accent-rgb), .12) 55%, transparent 80%);
}
.shard.is-flash .shard__body::after { animation: flash .75s ease-out both; }

.shard__glint {
  position: absolute;
  top: 9px;
  right: 11px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent 44%, #fff 50%, transparent 56%),
    linear-gradient(0deg,  transparent 44%, #fff 50%, transparent 56%);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 70%);
  mask-image: radial-gradient(circle, #000 18%, transparent 70%);
  filter: drop-shadow(0 0 4px rgba(var(--light-rgb), .9));
  animation: glint 5.5s ease-in-out calc(2.6s + var(--i) * 1.7s) infinite;
}
.shard--m .shard__glint { top: auto; bottom: 12px; right: auto; left: 12px; }

.shard__label {
  font-size: 11px;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: rgba(var(--light-rgb), .72);
  cursor: text;
}

.shard__input {
  width: 2.4ch;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--hot);
  caret-color: var(--accent-light);
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(46px, 6.6vw, 78px);
  line-height: 1.05;
  letter-spacing: .03em;
  text-align: center;
  text-shadow: 0 0 22px rgba(var(--accent-rgb), .55);
  font-variant-numeric: lining-nums tabular-nums;
}
.shard--y .shard__input { width: 4.3ch; }
.shard__input::placeholder { color: rgba(var(--light-rgb), .2); text-shadow: none; }
.shard__input:focus-visible { outline: none; }

.shard__hint {
  min-height: 1.3em;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--ink-faint);
  white-space: nowrap;
  transition: color .3s ease;
}

/* pole w użyciu — szkło jaśnieje */
.shard.is-focus .shard__body {
  border-color: rgba(var(--light-rgb), .62);
  background:
    linear-gradient(155deg,
      rgba(var(--light-rgb), .2) 0%,
      rgba(var(--accent-rgb), .08) 42%,
      rgba(18, 28, 70, .2) 100%);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, .42),
    0 0 44px rgba(var(--accent-rgb), .3),
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 0 30px rgba(var(--accent-rgb), .14);
}

.shard.is-ok .shard__body { border-color: rgba(var(--accent-rgb), .6); }
.shard.is-ok .shard__hint { color: var(--accent-light); }

.shard.is-bad .shard__body {
  border-color: rgba(var(--bad-rgb), .8);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .38),
    0 0 34px rgba(var(--bad-rgb), .28),
    inset 0 0 26px rgba(var(--bad-rgb), .1);
}
.shard.is-bad .shard__hint { color: rgb(var(--bad-rgb)); }

/* poświata za szkłem — zapala się, gdy wszystkie trzy pola się zgadzają */
.shard__halo {
  position: absolute;
  inset: -22px;
  border-radius: 40px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .34), rgba(var(--accent-rgb), .08) 60%, transparent);
  filter: blur(8px);
  transition: opacity .8s ease;
}
.fields.is-aligned .shard__halo {
  opacity: 1;
  animation: pulseGlow 2.6s ease-in-out infinite;
}
.fields.is-aligned .shard__body { border-color: rgba(var(--light-rgb), .6); }

/* ---------- dół: odczyt i przycisk ---------- */

.fields__foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: riseIn .8s ease .9s both;
  transition: opacity .6s ease;
}
.fields.is-leaving .fields__foot { opacity: 0; }

.fields__error {
  margin: 0;
  padding: 8px 18px;
  border: 1px solid rgba(var(--bad-rgb), .5);
  border-radius: 18px;
  background: rgba(90, 30, 50, .3);
  font-size: 13.5px;
  color: #f8dbe2;
  text-align: center;
}
.fields__error[hidden] { display: none; }

.readout { text-align: center; }

.readout__label {
  color: rgba(var(--light-rgb), .6);
  font-size: 10px;
  letter-spacing: .42em;
  text-transform: uppercase;
}

.readout__date {
  margin-top: 3px;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(16px, 2.2vw, 23px);
  letter-spacing: .03em;
  color: var(--ink);
  text-shadow: 0 0 22px rgba(var(--accent-rgb), .4);
  white-space: nowrap;
}

.cta {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 26px;
  padding: 12px 34px;
  background: rgba(var(--accent-rgb), .14);
  color: var(--accent-light);
  font-family: var(--serif-text);
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(var(--accent-rgb), .2);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease,
              opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1), visibility .5s;
}
.cta:hover, .cta:focus-visible {
  background: rgba(var(--accent-rgb), .28);
  color: #fff;
  box-shadow: 0 0 34px rgba(var(--accent-rgb), .45);
}

/* dopóki data nie jest kompletna, przycisk czeka niewidoczny (klasa od JS) */
.cta.is-waiting {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.94);
  pointer-events: none;
}

/* ============================================================
   ETAP 2 — IMIĘ I NAZWISKO

   Te same szklane odłamki, tylko szersze i ułożone w słup.
   Pod każdym wisi mgławica (.forge), w której numero-names.js
   formuje cyfry liter; drobiny światła rysuje kanwa .forge-canvas.
   ============================================================ */

@keyframes nebDrift {
  0%, 100% { transform: translateX(-3%) scale(1);    opacity: .75; }
  50%      { transform: translateX(3%)  scale(1.07); opacity: 1; }
}

/* cyfra dostaje miejsce płynnie, nie wskakuje między sąsiadki */
@keyframes glyphOpen { from { max-width: 0; } }

/* scena może urosnąć ponad ekran — dwa rzędy cyfr potrafią być wysokie */
.scene--tall {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
}
.scene--tall .scene__nebula,
.scene--tall .scene__sky,
.scene--tall .scene__flight,
.scene--tall .scene__vignette { position: fixed; }

.fields--names .fields__space {
  flex-direction: column;
  gap: clamp(16px, 3.2vh, 34px);
  padding: clamp(12px, 3vh, 30px) 0;
}

.shard--first { margin-right: clamp(0px, 7vw, 90px); }
.shard--last  { margin-left: clamp(0px, 7vw, 90px); }

.fields--names .shard__body {
  width: min(520px, 86vw);
  padding: 14px 24px 10px;
}

.fields--names .shard__input {
  width: 100%;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: .04em;
}
.fields--names .shard__input::placeholder { font-size: .6em; letter-spacing: .06em; }

/* ---------- mgławica z cyframi liter ---------- */

.forge {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 4px 2px;
  width: min(520px, 86vw);
  min-height: 62px;
  margin: 10px auto 0;
  padding: 6px 12px;
}

.forge::before {
  content: '';
  position: absolute;
  inset: -6px -26px;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 48% 62% at 30% 50%, rgba(var(--accent-rgb), .17), transparent 70%),
    radial-gradient(ellipse 44% 56% at 72% 44%, rgba(130, 110, 230, .14), transparent 70%),
    radial-gradient(ellipse 72% 50% at 50% 62%, rgba(70, 190, 210, .07), transparent 75%);
  filter: blur(12px);
  animation: nebDrift 14s ease-in-out infinite;
}
.shard--last .forge::before { animation-delay: -6s; }

.forge__hint {
  align-self: center;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(var(--light-rgb), .3);
}
.forge.has-glyphs .forge__hint { display: none; }

.glyph {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: .62em;
  max-width: 1.6em;
  font-size: clamp(24px, 3vw, 32px);
  animation: glyphOpen .3s ease backwards;
  transition: max-width .4s ease, min-width .4s ease, opacity .35s ease;
}
.forge.is-dense .glyph { font-size: clamp(18px, 2.3vw, 24px); }

.glyph__num {
  font-family: var(--serif-display);
  font-weight: 500;
  line-height: 1;
  color: var(--hot);
  font-variant-numeric: lining-nums;
  text-shadow: 0 0 14px rgba(var(--accent-rgb), .85), 0 0 30px rgba(var(--accent-rgb), .35);
  /* wyostrza się, gdy drobiny prawie się zbiegną (klasa is-formed) */
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.5);
  transition: opacity .55s ease, filter .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1);
}

.glyph__ch {
  margin-top: 3px;
  font-family: var(--serif-text);
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .06em;
  color: rgba(var(--light-rgb), .5);
  opacity: 0;
  transition: opacity .6s ease .15s;
}

.glyph.is-formed .glyph__num { opacity: 1; filter: none; transform: none; }
.glyph.is-formed .glyph__ch  { opacity: 1; }

.glyph.is-leaving {
  min-width: 0;
  max-width: 0;
  opacity: 0;
}

/* łącznik nazwiska dwuczłonowego — kreska między członami, bez liczby */
.glyph--sep {
  justify-content: center;
  min-width: .7em;
  max-width: .7em;
  align-self: stretch;
}
.glyph--sep::before {
  content: '';
  width: .34em;
  height: 1.5px;
  margin-bottom: .5em;
  background: rgba(var(--light-rgb), .55);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), .7);
}

.forge-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}

.fields__note {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--ink-faint);
}
.fields__note a { color: var(--accent-light); }
.fields__note a:hover { color: #fff; }

/* ============================================================
   ETAP 3 — LICZBY Z MGŁAWICY

   Każda liczba to przycisk z kanwą, na której numero-nebula.js
   składa cyfrę z drobin światła. Najechanie: podpowiedź nad liczbą,
   kliknięcie: karta znaczenia (.sheet).
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* otwarta karta znaczenia blokuje przewijanie sceny */
html.is-locked, html.is-locked body { overflow: hidden; }

.numhead {
  text-align: center;
  animation: riseIn .6s ease both;
}

.numhead__title {
  margin: 2px 0 6px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: .02em;
  color: var(--ink);
  text-shadow: 0 0 30px rgba(var(--accent-rgb), .35);
}

.numhead__who {
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: .04em;
  color: var(--accent-light);
}

.numhead__edit {
  margin: 6px 0 0;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.numhead__edit a { color: var(--ink-mute); text-decoration: none; transition: color .3s ease; }
.numhead__edit a:hover { color: var(--accent-light); }

/* Liczby rozsypane wokół Drogi Życia — środek każdej w punkcie (--x, --y) pola.
   Pole ma stałą wysokość i wjeżdża pod nagłówek: górny pas (ok. 30 px od
   jego szczytu) wypada na wysokości imienia i nazwiska. Samo pole przepuszcza
   kliknięcia, żeby linki nagłówka („zmień imię") dalej działały. */
.numbers {
  position: relative;
  list-style: none;
  width: min(920px, 100%);
  height: 510px;
  margin: -62px auto clamp(10px, 2vh, 20px);
  padding: 0;
  pointer-events: none;
}

.numbers__item {
  pointer-events: auto;
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;        /* osobno od transform — ten należy do animacji wejścia */
  display: flex;
  justify-content: center;
  animation: riseIn .7s ease both;
  animation-delay: calc(.15s + var(--i) * .12s);
}
.numbers__item:hover,
.numbers__item:focus-within { z-index: 10; }

.numcard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 8px 10px;
  border: 0;
  border-radius: 22px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.numcard:focus-visible { outline: none; }

.numcard {
  --orb: clamp(112px, 14vw, 164px);   /* średnica mgławicy; Droga Życia dostaje większą */
}
.numbers__item--main .numcard { --orb: clamp(180px, 23vw, 260px); }

.numcard__orb {
  position: relative;
  width: var(--orb);
  aspect-ratio: 1;
  border-radius: 50%;
}

/* szklana obręcz zapala się pod kursorem */
.numcard__orb::before {
  content: '';
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid rgba(var(--light-rgb), 0);
  background: radial-gradient(circle, rgba(var(--accent-rgb), .07), transparent 68%);
  transition: border-color .45s ease, box-shadow .45s ease, background .45s ease;
}
.numcard:hover .numcard__orb::before,
.numcard:focus-visible .numcard__orb::before {
  border-color: rgba(var(--light-rgb), .22);
  background: radial-gradient(circle, rgba(var(--accent-rgb), .15), transparent 70%);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), .2), inset 0 0 30px rgba(var(--accent-rgb), .12);
}
.numcard:focus-visible .numcard__orb::before { border-color: var(--accent); }

.numcard__orb canvas,
.sheet__orb {
  /* miękki brzeg — mgła nie urywa się na krawędzi kanwy */
  -webkit-mask-image: radial-gradient(circle closest-side, #000 70%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 70%, transparent 100%);
}

.numcard__orb canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* cyfra tekstem — dla czytników ekranu i bez JS; przy JS rysuje ją mgławica */
.numcard__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: calc(var(--orb) * .55);
  color: var(--hot);
  text-shadow: 0 0 26px rgba(var(--accent-rgb), .8);
  opacity: 0;
}
.no-js .numcard__value { opacity: 1; }

.numcard__title {
  margin-top: 2px;
  font-size: 11.5px;
  letter-spacing: .26em;
  text-indent: .26em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: rgba(var(--light-rgb), .78);
  transition: color .3s ease;
}
.numbers__item--main .numcard__title { font-size: 13px; color: var(--accent-light); }
.numcard--master .numcard__title::after { content: ' ✦'; color: var(--accent-light); }

.numcard:hover .numcard__title,
.numcard:focus-visible .numcard__title { color: var(--hot); }

/* ---------- podpowiedź po najechaniu ----------
   Domyślnie nad liczbą, wyśrodkowana. tip-below — pod liczbą (górna
   połowa pola), tip-left / tip-right — przy brzegu, dosunięta do środka.
   Środkowanie robi „translate", wjazd przy pokazaniu — „transform". */

.numcard__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 6px);
  z-index: 30;
  width: min(290px, 80vw);
  padding: 12px 16px 11px;
  border: 1px solid rgba(var(--light-rgb), .3);
  border-radius: 16px;
  background: rgba(10, 16, 40, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5), 0 0 30px rgba(var(--accent-rgb), .15);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  color: var(--ink-soft);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  translate: -50% 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.numcard__tip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 12px; height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-right: 1px solid rgba(var(--light-rgb), .3);
  border-bottom: 1px solid rgba(var(--light-rgb), .3);
  background: rgb(12, 18, 44);
  transform: rotate(45deg);
}

.tip-below .numcard__tip {
  bottom: auto;
  top: calc(100% - 4px);
  transform: translateY(-8px);
}
.tip-below .numcard__tip::after {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: -6px;
  transform: rotate(225deg);
}

.tip-left .numcard__tip { left: 0; translate: none; }
.tip-left .numcard__tip::after { left: calc(var(--orb) / 2 + 8px); }

.tip-right .numcard__tip { left: auto; right: 0; translate: none; }
.tip-right .numcard__tip::after {
  left: auto;
  right: calc(var(--orb) / 2 + 8px);
  margin-left: 0;
  margin-right: -6px;
}
.numcard__tip em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(var(--light-rgb), .6);
}
.numcard:hover .numcard__tip,
.numcard:focus-visible .numcard__tip {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: .15s;
}

/* na dotyku nie ma najechania — dotknięcie od razu otwiera kartę znaczenia */
@media (hover: none) {
  .numcard__tip { display: none; }
}

.numfoot {
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
  animation: riseIn .8s ease .9s both;
}
.cta--row  { padding: 10px 22px; font-size: 12px; letter-spacing: .16em; }

/* ---------- karta znaczenia ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sheet[hidden] { display: none; }

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 12, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s ease;
}

.sheet__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px clamp(20px, 4vw, 38px) 26px;
  border: 1px solid rgba(var(--light-rgb), .28);
  border-radius: 26px;
  background: linear-gradient(170deg, rgba(20, 30, 70, .86), rgba(8, 11, 30, .92));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(var(--accent-rgb), .15),
              inset 0 1px 0 rgba(255, 255, 255, .12);
  text-align: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--light-rgb), .3) transparent;
  opacity: 0;
  transform: scale(.94) translateY(10px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}

.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { opacity: 1; transform: none; }

.sheet__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(var(--light-rgb), .3);
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .08);
  color: var(--accent-light);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
}
.sheet__close:hover { background: rgba(var(--accent-rgb), .22); color: #fff; }

.sheet__orb {
  display: block;
  width: 170px;
  height: 170px;
  margin: 0 auto -4px;
}

.detail[hidden] { display: none; }

.detail__arch {
  margin: 8px 0 0;
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: .02em;
  color: var(--hot);
}
.detail__num { color: var(--accent-light); }
.detail__sep { color: rgba(var(--light-rgb), .4); margin: 0 .15em; }

.detail__keys {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.detail__keys li {
  padding: 4px 12px;
  border: 1px solid rgba(var(--accent-rgb), .35);
  border-radius: 14px;
  background: rgba(var(--accent-rgb), .08);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.detail__lens {
  margin: 16px 0 0;
  font-family: var(--serif-display);
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.45;
  color: var(--accent-light);
  text-wrap: balance;
}

.detail__text {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.detail .cta { display: inline-block; margin-top: 18px; }

/* bez JS karty znaczeń leżą zwyczajnie pod siatką liczb */
.no-js .sheet { position: static; display: block; padding: 0 0 30px; }
.no-js .sheet[hidden], .no-js .detail[hidden] { display: block; }
.no-js .sheet__backdrop, .no-js .sheet__close, .no-js .sheet__orb { display: none; }
.no-js .sheet__panel { opacity: 1; transform: none; max-height: none; margin: 0 auto; }
.no-js .detail + .detail { margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(var(--light-rgb), .2); }

/* ============================================================
   WYBÓR NUMEROLOGA — KOŁO Z DEKAGRAMEM
   ============================================================ */

:root {
  --accent-12: rgba(90, 160, 232, .12);
  --accent-24: rgba(90, 160, 232, .24);
  --accent-38: rgba(90, 160, 232, .38);
  --accent-60: rgba(90, 160, 232, .60);
}

@keyframes seatIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.circle {
  position: relative;
  width: min(560px, 92vw, 68svh);
  aspect-ratio: 1;
  margin: clamp(10px, 2.4vh, 24px) auto;
  flex-shrink: 0;
}

.circle__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--accent-light);
  animation: riseIn .8s ease both;
}

.circle__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.circle__core canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 70%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 70%, transparent 100%);
}

/* cyfra tekstem — dla czytników ekranu i bez JS */
.circle__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-display);
  font-size: clamp(56px, 10vw, 110px);
  color: var(--hot);
  text-shadow: 0 0 26px rgba(var(--accent-rgb), .8);
  opacity: 0;
}
.no-js .circle__value { opacity: 1; }

.circle__label {
  position: absolute;
  left: 50%;
  bottom: -2%;
  transform: translateX(-50%);
  font-size: clamp(9px, 1.2vw, 11px);
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(var(--light-rgb), .6);
}

.seat {
  position: absolute;
  z-index: 2;
  width: 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  text-decoration: none;
  transform: translate(-50%, -50%);
  animation: seatIn .6s cubic-bezier(.2, .8, .2, 1) backwards;
  animation-delay: calc(.25s + var(--i) * .07s);
  transition: transform .3s ease;
}
.seat:hover, .seat:focus-visible { transform: translate(-50%, -50%) scale(1.12); z-index: 5; }
.seat:focus-visible { outline: none; }

.seat__photo {
  width: 66%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--light-rgb), .4);
  background: rgba(10, 14, 34, .75);
  color: var(--accent-light);
  font-family: var(--serif-display);
  font-size: 20px;
  box-shadow: 0 0 16px rgba(3, 4, 14, .7);
  filter: saturate(.75) brightness(.85);
  transition: box-shadow .3s ease, border-color .3s ease, filter .3s ease;
}
.seat__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
}

/* dyżurujący teraz — jasne zdjęcie i świecąca obręcz */
.seat.is-online .seat__photo {
  border-color: var(--accent-light);
  filter: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2), 0 0 24px rgba(var(--accent-rgb), .5);
}
.seat:hover .seat__photo, .seat:focus-visible .seat__photo {
  border-color: #fff;
  filter: none;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .25), 0 0 30px rgba(var(--accent-rgb), .6);
}

.seat__name {
  font-size: clamp(9.5px, 1.25vw, 12.5px);
  line-height: 1.15;
  letter-spacing: .03em;
  color: var(--ink-soft);
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(2, 3, 9, .95), 0 0 8px rgba(2, 3, 9, .8);
}
.seat:hover .seat__name { color: var(--hot); }

.seat__status {
  font-size: clamp(8px, 1vw, 10px);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-faint);
  text-shadow: 0 1px 4px rgba(2, 3, 9, .95);
}
.seat.is-online .seat__status { color: #8fe3b4; }
.seat.is-online .seat__status::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin: 0 5px 1px 0;
  border-radius: 50%;
  background: #6fe0a0;
  box-shadow: 0 0 8px #6fe0a0;
  vertical-align: middle;
}

.numfoot--pick {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.pick__note {
  margin: 0 auto;
  max-width: 54ch;
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: .04em;
  color: var(--ink-mute);
  text-wrap: pretty;
}

.pick__back {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color .3s ease;
}
.pick__back:hover { color: var(--accent-light); }

/* ---------- górna belka: dwa przyciski w kolumnie ---------- */

.topbar__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.topbar__actions .topbar__reset { padding: 7px 15px; font-size: 11.5px; }

/* ============================================================
   ROZMOWA Z NUMEROLOGIEM — EKRAN ŁĄCZENIA I CZAT
   (ten sam układ, co rozmowa z astrologiem; barwa numerologii)
   ============================================================ */

@keyframes connectSpin  { to { transform: rotate(360deg); } }
@keyframes connectPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes connectDot   { 0%, 60%, 100% { opacity: 0; } 30% { opacity: 1; } }
@keyframes dot { 0%, 70%, 100% { transform: translateY(0); opacity: .35; }
                 35%           { transform: translateY(-4px); opacity: 1; } }

.connect {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(30, 50, 110, .55), transparent 70%),
    rgba(4, 6, 15, .97);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 1;
  transition: opacity .7s ease, visibility .7s ease;
}
.no-js .connect { display: none; }
.connect.is-gone { opacity: 0; visibility: hidden; }

.connect__inner { text-align: center; animation: riseIn .8s ease both; }

.connect__orb {
  position: relative;
  width: clamp(132px, 22vh, 190px);
  aspect-ratio: 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connect__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-24);
  border-top-color: var(--accent-light);
  border-right-color: var(--accent-60);
  animation: connectSpin 2.6s linear infinite;
}
.connect__ring--slow {
  inset: 11px;
  border-color: var(--accent-12);
  border-bottom-color: var(--accent-60);
  border-left-color: var(--accent-24);
  animation: connectSpin 4.4s linear infinite reverse;
}

.connect__photo {
  width: calc(100% - 44px);
  height: calc(100% - 44px);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
  box-shadow: 0 0 34px rgba(var(--accent-rgb), .3), inset 0 0 26px rgba(60, 90, 170, .2);
  animation: connectPulse 3s ease-in-out infinite;
}

.connect__seal {
  font-family: var(--serif-display);
  font-size: clamp(34px, 6vh, 48px);
  color: var(--accent-light);
  animation: connectPulse 3s ease-in-out infinite;
}

.connect__text {
  margin: clamp(20px, 3.2vh, 32px) 0 0;
  font-family: var(--serif-display);
  font-size: clamp(17px, 2.4vw, 24px);
  letter-spacing: .14em;
  color: var(--accent-light);
}

.connect__dots i {
  font-style: normal;
  opacity: 0;
  animation: connectDot 1.5s ease-in-out infinite;
}
.connect__dots i:nth-child(2) { animation-delay: .25s; }
.connect__dots i:nth-child(3) { animation-delay: .5s; }

/* ---------- nagłówek rozmowy ---------- */

.ask {
  width: min(680px, 94vw);
  animation: riseIn .6s ease both;
}

.ask--chat {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 auto;
}

.ask__head {
  flex-shrink: 0;
  text-align: center;
  margin-bottom: clamp(10px, 1.8vh, 18px);
}

.ask__guide {
  width: clamp(60px, 8.6vh, 88px);
  aspect-ratio: 1;
  margin: 0 auto clamp(8px, 1.4vh, 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--accent-60);
  background: linear-gradient(160deg, rgba(28, 44, 90, .55), rgba(8, 11, 30, .75));
  box-shadow: 0 0 30px rgba(var(--accent-rgb), .25), inset 0 0 26px rgba(60, 90, 170, .2);
  color: var(--accent-light);
  font-family: var(--serif-display);
  font-size: 26px;
}
.ask__guide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
}

.ask__title {
  margin: 0;
  font-size: clamp(21px, 3vw, 30px);
  color: var(--ink);
  letter-spacing: .01em;
}

.ask__sub {
  margin: 4px 0 0;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- okno rozmowy ---------- */

.chat.chat--ask {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: clamp(10px, 2vh, 22px);
  border: 1px solid rgba(var(--light-rgb), .3);
  border-radius: 22px;
  background: rgba(9, 13, 32, .62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 50px rgba(var(--accent-rgb), .14),
              inset 0 0 44px rgba(60, 90, 170, .12);
  animation: riseIn .6s ease both;
}

.chat__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--light-rgb), .3) transparent;
}
.chat__scroll::-webkit-scrollbar { width: 7px; }
.chat__scroll::-webkit-scrollbar-thumb { background: rgba(var(--light-rgb), .3); border-radius: 6px; }
.chat__scroll::-webkit-scrollbar-track { background: transparent; }

.msg {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  animation: riseIn .4s ease both;
}
.msg--mine { justify-content: flex-end; }

.msg__avatar {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--accent-rgb), .55);
  border-radius: 50%;
  background: rgba(12, 18, 44, .6);
  color: var(--accent-light);
  font-family: var(--serif-display);
  font-size: 14px;
  box-shadow: 0 0 14px rgba(var(--accent-rgb), .3);
}

.msg__bubble {
  max-width: 80%;
  padding: 11px 15px;
  border: 1px solid rgba(var(--light-rgb), .22);
  border-radius: 18px 18px 18px 5px;
  background: rgba(40, 60, 120, .28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3), inset 0 0 26px rgba(60, 90, 170, .16);
}
.msg--mine .msg__bubble {
  border-radius: 18px 18px 5px 18px;
  border-color: rgba(var(--accent-rgb), .4);
  background: rgba(var(--accent-rgb), .16);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28), 0 0 22px rgba(var(--accent-rgb), .12);
}

.msg__text {
  min-height: 1.2em;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(228, 238, 252, .92);
  white-space: pre-wrap;
  text-wrap: pretty;
}
.msg--mine .msg__text { color: #eef5ff; }

.msg__dots {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 3px 2px;
}
.msg__dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: dot 1.1s ease-in-out infinite;
}
.msg__dots span:nth-child(2) { animation-delay: .18s; }
.msg__dots span:nth-child(3) { animation-delay: .36s; }

.chat__form {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(var(--light-rgb), .16);
}

.chat__field {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid rgba(var(--light-rgb), .38);
  border-radius: 24px;
  background: rgba(12, 18, 44, .5);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 15.5px;
  line-height: 1.4;
  outline: none;
  resize: none;
  overflow: hidden;
  box-shadow: inset 0 0 24px rgba(60, 90, 170, .14);
}
.chat__field::placeholder { color: rgba(200, 214, 240, .42); }
.chat__field:focus { border-color: var(--accent-light); }

.chat__send {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .16);
  color: var(--accent-light);
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(var(--accent-rgb), .28);
  transition: all .3s ease;
}
.chat__send:hover { background: rgba(var(--accent-rgb), .28); color: #fff; }

.chat__form:has(.chat__field:placeholder-shown) .chat__send {
  border-color: rgba(var(--accent-rgb), .3);
  background: transparent;
  color: rgba(var(--accent-rgb), .45);
  box-shadow: none;
  cursor: not-allowed;
}

.no-js .chat--ask { display: none; }

/* ============================================================
   ETAP W PRZYGOTOWANIU
   ============================================================ */

.soon__when {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.soon {
  margin: auto;
  max-width: 540px;
  text-align: center;
  animation: riseIn .6s ease both;
}

.soon__date {
  margin: 18px 0 0;
  font-family: var(--serif-display);
  font-size: clamp(24px, 3.6vw, 36px);
  color: var(--accent-light);
  text-shadow: 0 0 26px rgba(var(--accent-rgb), .4);
}

.soon__note {
  margin: 14px 0 26px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mute);
  text-wrap: pretty;
}

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

@media (max-width: 640px) {
  .topbar__mark { display: none; }

  /* odłamki jeden pod drugim, rozsypane na boki */
  .fields__space {
    flex-direction: column;
    gap: clamp(10px, 2.4vh, 22px);
  }
  .shard--d { margin: 0 24vw 0 0; }
  .shard--m { margin: 0 0 0 20vw; }
  .shard--y { margin: 0 6vw 0 0; }

  .shard--first, .shard--last { margin: 0; }

  /* liczby w dwóch kolumnach: Droga Życia na całą szerokość u góry,
     reszta nierówno — co druga para zsunięta w dół */
  .numbers {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 4px;
    margin-top: 6px;
  }
  .numbers__item { position: relative; left: auto; top: auto; translate: none; }
  .numbers__item--main { grid-column: 1 / -1; }
  .numbers__item:nth-child(3),
  .numbers__item:nth-child(5) { margin-top: 38px; }
  .numcard { --orb: clamp(118px, 38vw, 160px); }
  .numbers__item--main .numcard { --orb: clamp(170px, 54vw, 230px); }

  .shard__body { padding: 10px 20px 8px; }
  .shard__input { font-size: clamp(38px, 11vw, 52px); }
}

@media (max-height: 620px) and (min-width: 641px) {
  .shard--d { margin-top: -5vh; }
  .shard--m { margin-top: 5vh; }
  .shard__input { font-size: clamp(38px, 8vh, 60px); }
}

@media (prefers-reduced-motion: reduce) {
  .scene__nebula, .star { animation: none; }
  .stage__sub, .fields__foot, .soon { animation: none; }
  .shard__body { animation: none; }
  .shard__body::before, .shard__glint { animation: none; opacity: 0; }
  .fields.is-aligned .shard__halo { animation: none; }
  .forge::before, .glyph { animation: none; }
  .glyph, .glyph__num, .glyph__ch { transition: none; }
  .numhead, .numbers__item, .numfoot { animation: none; }
  .sheet__backdrop, .sheet__panel, .numcard__tip { transition: none; }
}
