/* Jak powstaje: manifest jako rozmowa z AI, przerywana scenami, które grają przy przewijaniu. */

.manifest-page-chat {
  --mc-mint: #8eeacb;
  --mc-mint-2: #d2fdee;
  --mc-red: #ff6f5e;
  --mc-gold: #f0c96b;
  --mc-violet: #c3a8ff;
  --mc-ink: #f4f1e8;
  --mc-muted: rgba(228, 246, 238, .68);
  --mc-dim: rgba(228, 246, 238, .38);
  --mc-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mc-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: clip;
}

/* Światło sceny: kolor zmienia się płynnie, w zależności od tego, gdzie jesteś. */
.mc-ambient {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.mc-ambient i {
  position: absolute;
  top: -20vh;
  right: -20vw;
  left: -20vw;
  height: 110vh;
  opacity: 0;
  transition: opacity 1600ms ease;
}

.mc-ambient [data-tint="mint"] { background: radial-gradient(50% 55% at 50% 0%, rgba(142, 234, 203, .15), transparent 72%); }
.mc-ambient [data-tint="red"] { background: radial-gradient(50% 55% at 50% 0%, rgba(255, 111, 94, .16), transparent 72%); }
.mc-ambient [data-tint="gold"] { background: radial-gradient(50% 55% at 50% 0%, rgba(240, 201, 107, .17), transparent 72%); }
.mc-ambient [data-tint="violet"] { background: radial-gradient(55% 60% at 50% 10%, rgba(150, 110, 255, .2), transparent 72%); }
.mc-ambient [data-tint="white"] { background: radial-gradient(50% 55% at 50% 0%, rgba(255, 246, 225, .14), transparent 72%); }

body[data-tint="mint"] .mc-ambient [data-tint="mint"],
body[data-tint="red"] .mc-ambient [data-tint="red"],
body[data-tint="gold"] .mc-ambient [data-tint="gold"],
body[data-tint="violet"] .mc-ambient [data-tint="violet"],
body[data-tint="white"] .mc-ambient [data-tint="white"] {
  opacity: 1;
}

.mc {
  --p: 1;
  position: relative;
  z-index: 1;
}

.mc-kicker {
  margin: 0 0 18px;
  color: var(--mc-mint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}

/* Otwarcie. */
.mc-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 58px);
  padding: 60px 20px 110px;
  overflow: hidden;
  text-align: center;
}

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

.mc-aurora i {
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 234, 203, .16), transparent 62%);
  animation: mc-drift 24s ease-in-out infinite alternate;
}

.mc-aurora i:nth-child(1) { top: -40vmax; left: -30vmax; }
.mc-aurora i:nth-child(2) { top: -20vmax; right: -40vmax; background: radial-gradient(circle, rgba(110, 160, 255, .11), transparent 62%); animation-duration: 30s; animation-delay: -8s; }
.mc-aurora i:nth-child(3) { bottom: -55vmax; left: 0; background: radial-gradient(circle, rgba(195, 168, 255, .09), transparent 62%); animation-duration: 36s; animation-delay: -14s; }

@keyframes mc-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(7vmax, 5vmax, 0) scale(1.18); }
}

.mc-hero-inner {
  position: relative;
}

.mc-title {
  margin: 0 auto 28px;
  font-size: clamp(48px, 9.4vw, 140px);
  font-weight: 780;
  line-height: .88;
  letter-spacing: -.058em;
}

.mc-title span {
  display: block;
  animation: mc-rise 1200ms cubic-bezier(.2, .8, .2, 1) both;
}

.mc-title span + span {
  background: linear-gradient(100deg, #fff 15%, var(--mc-mint) 50%, #fff 85%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: mc-rise 1200ms 180ms cubic-bezier(.2, .8, .2, 1) both, mc-sheen 7s 1.6s ease-in-out infinite;
}

@keyframes mc-rise {
  from { opacity: 0; transform: translateY(44px); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes mc-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mc-sheen {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0 0; }
}

.mc-lead {
  max-width: 34ch;
  margin: 0 auto 18px;
  color: var(--mc-muted);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  animation: mc-rise 1200ms 360ms cubic-bezier(.2, .8, .2, 1) both;
}

.mc-note {
  margin: 6px auto 0;
  color: var(--mc-dim);
  font-size: 13px;
  animation: mc-fade 1400ms 700ms both;
}

.mc-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 1px;
  height: 70px;
  background: linear-gradient(transparent, var(--mc-mint));
  transform-origin: top;
  animation: mc-cue 2.4s ease-in-out infinite;
}

@keyframes mc-cue {
  0% { opacity: 0; transform: scaleY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); }
}

/* Rozmowa. */
.mc-thread {
  position: relative;
}

.mc-chathead {
  position: sticky;
  z-index: 30;
  top: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 0 auto;
  padding: 7px 18px 7px 8px;
  border-radius: 999px;
  background: rgba(8, 13, 12, .74);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 450ms ease, transform 450ms cubic-bezier(.2, .8, .2, 1);
}

.mc-chathead.is-away {
  opacity: 0;
  transform: translateY(-14px) scale(.96);
}

.mc-avatars {
  display: flex;
}

.av {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -9px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #080d0c;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.av:first-child { margin-left: 0; }
.av-me { background: var(--mc-mint); color: #03130d; }
.av-ai { background: #22302c; color: var(--mc-ink); }
.av-suno { background: #2d2346; color: var(--mc-violet); font-size: 15px; }

.mc-chathead-text {
  display: grid;
  line-height: 1.2;
}

.mc-chathead-text strong {
  font-size: 15px;
}

.mc-chathead-text small {
  color: var(--mc-mint);
  font-size: 12px;
}

.mc-chathead-text small.is-typing::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  animation: mc-blink 1s infinite ease-in-out;
}

.mc-chat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(680px, calc(100% - 28px));
  margin: 0 auto;
  padding: 44px 0 80px;
}

.msg {
  position: relative;
  max-width: 84%;
  opacity: 0;
  transform: translateY(20px) scale(.96);
  transform-origin: bottom left;
  transition: opacity 500ms ease, transform 650ms cubic-bezier(.2, .9, .25, 1.15);
}

.msg.me {
  align-self: flex-end;
  transform-origin: bottom right;
}

.msg.in,
.msg.typing {
  opacity: 1;
  transform: none;
}

.msg.ai::before,
.msg.suno::before {
  display: block;
  margin: 0 0 6px 8px;
  color: var(--mc-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.msg.ai::before { content: "ChatGPT"; }
.msg.suno::before { content: "Suno"; color: rgba(195, 168, 255, .72); }

.mc-day {
  align-self: center;
  max-width: none;
  margin: 10px 0;
  color: var(--mc-dim);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
}

.bubble {
  padding: 13px 16px;
  border-radius: 22px;
  font-size: 16px;
  line-height: 1.5;
}

.me .bubble {
  border-bottom-right-radius: 6px;
  background: linear-gradient(160deg, #b0f6de, #7ad9b8);
  color: #03130d;
  box-shadow: 0 14px 34px rgba(142, 234, 203, .14);
}

.ai .bubble,
.suno .bubble {
  border-bottom-left-radius: 6px;
  background: rgba(24, 34, 31, .84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 16px 36px rgba(0, 0, 0, .38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.suno .bubble {
  background: rgba(40, 31, 62, .8);
}

.meta {
  display: block;
  margin: 6px 10px 0;
  color: var(--mc-dim);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.me .meta {
  text-align: right;
}

.msg.typing .bubble > :not(.dots) { display: none; }
.msg:not(.typing) .dots { display: none; }

.dots {
  display: inline-flex;
  gap: 5px;
  padding: 6px 2px;
}

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mc-muted);
  animation: mc-blink 1s infinite ease-in-out;
}

.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }

@keyframes mc-blink {
  0%, 80%, 100% { opacity: .25; transform: none; }
  40% { opacity: 1; transform: translateY(-3px); }
}

.lyric-lines {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid rgba(142, 234, 203, .3);
  font-family: var(--mc-serif);
  font-size: 17.5px;
  font-style: italic;
  transition: border-color 600ms ease, color 600ms ease;
}

.lyric-lines span {
  position: relative;
  width: fit-content;
  transition: color 500ms ease;
}

.lyric-lines span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  left: -5px;
  height: 3px;
  border-radius: 3px;
  background: var(--mc-red);
  box-shadow: 0 0 12px rgba(255, 111, 94, .55);
  transform: scaleX(0) rotate(-1.6deg);
  transform-origin: left center;
  transition: transform 560ms cubic-bezier(.6, 0, .2, 1) var(--delay, 0ms);
}

.lyric-lines.struck span { color: var(--mc-dim); }
.lyric-lines.struck span::after { transform: scaleX(1) rotate(-1.6deg); }

.lyric-lines.kept {
  border-left-color: var(--mc-mint);
  color: var(--mc-mint-2);
}

.lyric-lines.kept span {
  animation: mc-keep 1800ms ease both;
}

@keyframes mc-keep {
  0% { text-shadow: none; }
  30% { color: #fff; text-shadow: 0 0 30px rgba(142, 234, 203, 1); }
  100% { text-shadow: 0 0 18px rgba(142, 234, 203, .55); }
}

.voice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.voice .play {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #03130d;
  color: var(--mc-mint);
  font-size: 11px;
}

.voice .time {
  font-family: var(--mc-mono);
  font-size: 12px;
}

.wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 30px;
}

.wave i {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .3;
}

.msg.in .wave i {
  animation: mc-play 320ms ease both;
  animation-delay: calc(var(--k, 0) * 40ms + 200ms);
}

@keyframes mc-play {
  from { opacity: .3; }
  to { opacity: .9; }
}

.transcript {
  margin-top: 10px;
  font-size: 15px;
  opacity: .85;
}

.track-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: min(320px, 64vw);
  color: var(--mc-violet);
}

.track-card img {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}

.track-card > span {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.track-card strong {
  color: var(--mc-ink);
  font-size: 15px;
}

.track-card .wave {
  height: 20px;
}

.track-card small {
  color: var(--mc-dim);
  font-size: 12px;
}

.track-card a {
  width: fit-content;
  color: var(--mc-mint);
  font-size: 14px;
  font-weight: 650;
  text-underline-offset: 3px;
}

.track-stack {
  display: grid;
  gap: 12px;
}

.track-card.final {
  color: var(--mc-mint);
}

.track-card.final img {
  box-shadow: 0 0 28px rgba(142, 234, 203, .55), 0 8px 22px rgba(0, 0, 0, .45);
}

.mc-night {
  padding-block: 100px;
}

.bubble-glow {
  position: relative;
  overflow: visible;
}

.glow {
  position: relative;
  padding: 18px 10px;
  color: #fff;
  font-family: var(--mc-serif);
  font-size: clamp(27px, 4vw, 42px);
  font-style: italic;
  text-shadow: 0 0 30px rgba(195, 168, 255, .9);
}

.glow .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(195, 168, 255, .55), 0 0 24px rgba(195, 168, 255, .25);
  opacity: 0;
  pointer-events: none;
  animation: mc-ring 3.2s ease-out infinite;
}

.glow .ring + .ring {
  animation-delay: 1.6s;
}

@keyframes mc-ring {
  from { opacity: .8; transform: scale(.4); }
  to { opacity: 0; transform: scale(3.4); }
}

/* Sceny: przypięte do ekranu, grają, kiedy przewijasz. --p to postęp sceny od 0 do 1. */
.mc-scene {
  --p: 1;
  position: relative;
  height: 165svh;
}

.mc-pin {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 76px 20px 36px;
  overflow: hidden;
  text-align: center;
}

.mc-big {
  --wp: clamp(0, calc((var(--p) - .14) / .4), 1);
  position: relative;
  max-width: 15ch;
  margin: 0 auto;
  font-size: clamp(38px, 7.2vw, 108px);
  font-weight: 780;
  line-height: .95;
  letter-spacing: -.052em;
}

.mc-big .w {
  --lit: clamp(0, calc(var(--wp) * (var(--n, 1) + 1.5) - var(--i, 0)), 1);
  opacity: calc(.1 + var(--lit) * .9);
  text-shadow: 0 0 calc(var(--lit) * 34px) rgba(142, 234, 203, calc(var(--lit) * .32));
}

.mc-sub {
  --sp: clamp(0, calc((var(--p) - .5) * 5), 1);
  position: relative;
  max-width: 44ch;
  margin: 26px auto 0;
  color: var(--mc-muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.6;
  opacity: var(--sp);
  transform: translateY(calc((1 - var(--sp)) * 18px));
}

.mc-sub-strong {
  color: var(--mc-ink);
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 650;
  line-height: 1.4;
}

/* Puls: najpierw trzeba to przeżyć. */
.pulse-wrap {
  position: relative;
  width: min(1100px, 100%);
  height: clamp(90px, 15vh, 160px);
  margin-bottom: clamp(18px, 4vh, 44px);
}

.pulse-line {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pulse-line path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pulse-glow {
  stroke: rgba(142, 234, 203, .75);
  stroke-width: 7;
}

.pulse-core {
  stroke: var(--mc-mint);
  stroke-width: 2.6;
}

.pulse-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(142, 234, 203, .25), 0 0 26px 6px rgba(142, 234, 203, .7);
  opacity: 0;
  will-change: transform;
}

.scene-pulse.is-drawing .pulse-dot { opacity: 1; }
.scene-pulse .mc-big { --wp: clamp(0, calc((var(--p) - .3) / .36), 1); }
.scene-pulse .mc-sub { --sp: clamp(0, calc((var(--p) - .66) * 5), 1); }

/* Czerwony marker: pierwsza wersja zawsze jest beznadziejna. */
.strike-sheet {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.strike-sheet span {
  --s: clamp(0, calc(var(--p) * 8 - var(--i) * 1.05 - .4), 1);
  position: absolute;
  left: 50%;
  translate: -50% 0;
  color: rgba(244, 241, 232, calc(.18 - var(--s) * .08));
  font-family: var(--mc-serif);
  font-size: clamp(22px, 4.6vw, 64px);
  font-style: italic;
  white-space: nowrap;
  transform: translateX(calc((var(--i) - 2.5) * 4vw)) rotate(calc((var(--i) - 2.5) * -.9deg));
}

.strike-sheet span:nth-child(1) { top: 9%; }
.strike-sheet span:nth-child(2) { top: 17%; }
.strike-sheet span:nth-child(3) { top: 25%; }
.strike-sheet span:nth-child(4) { top: 72%; }
.strike-sheet span:nth-child(5) { top: 80%; }
.strike-sheet span:nth-child(6) { top: 88%; }

.strike-sheet span::after {
  content: "";
  position: absolute;
  top: 54%;
  left: -4%;
  width: 108%;
  height: clamp(4px, .55vw, 8px);
  border-radius: 8px;
  background: var(--mc-red);
  box-shadow: 0 0 16px rgba(255, 111, 94, .45);
  opacity: .8;
  transform: scaleX(var(--s)) rotate(-2.2deg);
  transform-origin: left center;
}

.scene-strike .mc-big { --wp: clamp(0, calc((var(--p) - .5) / .3), 1); }
.scene-strike .mc-sub { --sp: clamp(0, calc((var(--p) - .8) * 6), 1); }

.marker {
  position: relative;
  color: var(--mc-red);
  font-style: normal;
}

.marker::after {
  content: "";
  position: absolute;
  right: -3%;
  bottom: .04em;
  left: -3%;
  height: .12em;
  border-radius: .1em;
  background: var(--mc-red);
  opacity: .5;
  transform: scaleX(clamp(0, calc((var(--p) - .7) * 6), 1)) rotate(-1.2deg);
  transform-origin: left center;
}

/* Role: zdania wchodzą jedno po drugim, ostatnie świeci. */
.mc-stack span {
  --r: clamp(0, calc(var(--p) * 4.4 - var(--i) * 1.15 - .25), 1);
  display: block;
  opacity: calc(.05 + var(--r) * .95);
  transform: translateY(calc((1 - var(--r)) * 34px));
}

.mc-stack .hl {
  margin-top: .14em;
  padding-bottom: .06em;
  background: linear-gradient(100deg, var(--mc-mint) 0%, #fff 45%, var(--mc-mint) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mc-scene.is-active .mc-stack .hl {
  animation: mc-sheen 5s ease-in-out infinite;
}

.scene-roles .mc-sub { --sp: clamp(0, calc((var(--p) - .62) * 5), 1); }

/* 2949: automat, który staje tam, gdzie chcę. */
.slot {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 30px);
}

.slot-digits {
  display: flex;
  gap: clamp(2px, .8vw, 12px);
}

.slot-digits {
  filter: drop-shadow(0 0 30px rgba(240, 201, 107, .35));
}

.reel {
  position: relative;
  display: block;
  width: .64em;
  height: 1.12em;
  overflow: hidden;
  color: var(--mc-gold);
  font-family: var(--mc-mono);
  font-size: clamp(88px, 18vw, 240px);
  font-weight: 700;
  line-height: 1.12;
  -webkit-mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent);
  mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent);
}

.reel b {
  display: block;
  text-align: center;
  will-change: transform;
}

.reel b span {
  display: block;
  height: 1.12em;
}

.lever {
  position: relative;
  width: 26px;
  height: clamp(110px, 17vw, 200px);
}

.lever::before {
  content: "";
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: linear-gradient(rgba(240, 201, 107, .1), rgba(240, 201, 107, .55), rgba(240, 201, 107, .1));
}

.lever i {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb3a6, #e34b38 55%, #7a1d12);
  box-shadow: 0 0 22px rgba(255, 111, 94, .55);
  transform: translateY(calc(var(--lv, 0) * (clamp(110px, 17vw, 200px) - 26px)));
  will-change: transform;
}

.slot-caption {
  --cp: clamp(0, calc((var(--p) - .44) * 6), 1);
  margin: 8px 0 clamp(16px, 4vh, 40px);
  color: var(--mc-gold);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: var(--cp);
}

.scene-slot .mc-big { --wp: clamp(0, calc((var(--p) - .52) / .26), 1); }

.scene-slot .mc-big .w {
  text-shadow: 0 0 calc(var(--lit) * 34px) rgba(240, 201, 107, calc(var(--lit) * .3));
}

.slot-direction {
  --sp: clamp(0, calc((var(--p) - .8) * 6), 1);
}

.direction-line {
  position: relative;
  display: block;
  width: min(240px, 56vw);
  height: 2px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, transparent, var(--mc-gold));
  clip-path: inset(-8px calc((1 - var(--sp)) * 100%) -8px 0);
}

.direction-line::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -2px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--mc-gold);
}

/* Muzyka z AI i muzyka z AI. */
.split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 4vw, 54px);
  align-items: center;
  width: min(820px, 100%);
  margin-bottom: clamp(18px, 4vh, 42px);
}

.split-mass {
  --m: clamp(0, calc((var(--p) - .2) * 2.4), 1);
  display: grid;
  gap: 6px;
  overflow: hidden;
  color: rgba(228, 246, 238, .32);
  font-size: 11px;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: calc(1 - var(--m) * .6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

.split-mass span {
  display: block;
  width: max-content;
  animation: mc-conveyor 16s linear infinite;
}

.split-mass span:nth-child(2n) { animation-duration: 21s; animation-direction: reverse; }
.split-mass span:nth-child(3n) { animation-duration: 12s; }

@keyframes mc-conveyor {
  to { transform: translateX(-50%); }
}

.split-one span {
  --m: clamp(0, calc((var(--p) - .2) * 2.4), 1);
  display: inline-block;
  color: #fff;
  font-family: var(--mc-serif);
  font-size: clamp(26px, 3.8vw, 50px);
  font-style: italic;
  white-space: nowrap;
  opacity: calc(.35 + var(--m) * .65);
  text-shadow: 0 0 calc(var(--m) * 36px) rgba(142, 234, 203, .9);
}

.scene-split .mc-big { --wp: clamp(0, calc((var(--p) - .26) / .3), 1); max-width: 17ch; font-size: clamp(34px, 6vw, 88px); }
.scene-split .mc-sub { --sp: clamp(0, calc((var(--p) - .5) * 6), 1); margin-top: 20px; }
.scene-split .mc-sub-strong { --sp: clamp(0, calc((var(--p) - .8) * 6), 1); }

.mc-quote {
  --qp: clamp(0, calc((var(--p) - .64) * 6), 1);
  margin: clamp(20px, 4vh, 40px) auto 0;
  opacity: var(--qp);
  transform: translateY(calc((1 - var(--qp)) * 16px));
}

.mc-quote blockquote {
  margin: 0;
  color: #fff;
  font-family: var(--mc-serif);
  font-size: clamp(22px, 2.8vw, 38px);
  font-style: italic;
  line-height: 1.3;
}

.mc-quote figcaption {
  margin-top: 10px;
  color: var(--mc-dim);
  font-size: 13px;
  letter-spacing: .04em;
}

/* Mówię przez nią: napis większy niż ekran, wchodzi linijka po linijce i rośnie dalej. */
.scene-voice {
  height: 200svh;
}

.voice-lead {
  --vin: clamp(0, calc((var(--p) - .04) * 6), 1);
  --vout: clamp(0, calc((var(--p) - .3) * 6), 1);
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--mc-muted);
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 600;
  letter-spacing: -.02em;
  opacity: calc(var(--vin) * (1 - var(--vout)));
  transform: translateY(calc((1 - var(--vin)) * 14px));
}

.voice-giant {
  --grow: clamp(0, calc((var(--p) - .76) / .24), 1);
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  margin: 0;
  font-size: min(26vw, 31svh);
  font-weight: 900;
  line-height: .84;
  letter-spacing: -.065em;
  text-transform: uppercase;
  pointer-events: none;
  transform: scale(calc(1 + var(--grow) * .6));
}

.voice-giant span {
  --g: clamp(0, calc((var(--p) - .26 - var(--i) * .07) / .14), 1);
  display: block;
  padding: 0 .04em;
  background: linear-gradient(180deg, #fff 35%, var(--mc-mint) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: var(--g);
  transform: scale(calc(1 + (1 - var(--g)) * 2.4));
  filter: drop-shadow(0 0 calc(var(--g) * 40px) rgba(142, 234, 203, .35));
}

/* Dżin. */
.wish-smoke {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(760px, 130vw);
  height: 100%;
  pointer-events: none;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 70%, transparent);
}

.wish-smoke i {
  position: absolute;
  bottom: -25%;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 225, .2), transparent 65%);
  animation: mc-smoke 10s ease-in-out infinite;
}

.wish-smoke i:nth-child(1) { left: 10%; }
.wish-smoke i:nth-child(2) { left: 30%; animation-delay: -2.5s; }
.wish-smoke i:nth-child(3) { left: 45%; animation-delay: -5s; }
.wish-smoke i:nth-child(4) { left: 25%; animation-delay: -7.5s; }

@keyframes mc-smoke {
  0% { opacity: 0; transform: translateY(20%) scale(.6); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-130%) scale(1.5); }
}

.scene-wish .mc-sub {
  --sp: clamp(0, calc((var(--p) - .08) * 5), 1);
  margin: 0 auto 30px;
}

.scene-wish .mc-stack span {
  --r: clamp(0, calc(var(--p) * 4.4 - var(--i) * 1.1 - .7), 1);
}

.scene-wish .mc-big {
  max-width: 17ch;
  font-size: clamp(32px, 5.8vw, 86px);
}

.scene-wish .mc-stack .hl {
  background-image: linear-gradient(100deg, #ffe9b8 0%, #fff 45%, #ffe9b8 90%);
}

/* Twoja kolej. */
.mc-yourturn {
  position: relative;
  width: min(680px, calc(100% - 28px));
  margin: 0 auto;
  padding: 80px 0 100px;
  text-align: center;
}

.mc-yourturn .mc-chat {
  width: 100%;
  padding: 0 0 22px;
  text-align: left;
}

.mc-yourturn .mc-chat:empty {
  display: none;
}

.mc-compose label {
  display: block;
  margin: 0 0 18px;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 720;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.mc-compose-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(24, 34, 31, .88);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 60px rgba(142, 234, 203, .08);
  transition: box-shadow 300ms ease;
}

.mc-compose-row:focus-within {
  box-shadow: 0 0 0 2px rgba(142, 234, 203, .45), 0 20px 50px rgba(0, 0, 0, .45), 0 0 70px rgba(142, 234, 203, .16);
}

.mc-compose-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--mc-ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.mc-compose-row input::placeholder {
  color: var(--mc-dim);
}

.mc-compose-row button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--mc-mint);
  color: #03130d;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
}

.mc-compose-row button:hover,
.mc-compose-row button:focus-visible {
  background: var(--mc-mint-2);
  transform: scale(1.06);
}

/* Finał: okładki jak obrazy w galerii. */
.mc-finale {
  --p: 1;
  position: relative;
  min-height: 100svh;
  padding: clamp(100px, 16vh, 160px) 20px 110px;
  text-align: center;
}

.mc-finale h2 {
  --wp: clamp(0, calc((var(--p) - .1) / .5), 1);
  max-width: 14ch;
  margin: 0 auto 18px;
  font-size: clamp(40px, 6.6vw, 96px);
  font-weight: 780;
  line-height: .95;
  letter-spacing: -.05em;
}

.mc-finale h2 .w {
  --lit: clamp(0, calc(var(--wp) * (var(--n, 1) + 1.5) - var(--i, 0)), 1);
  opacity: calc(.1 + var(--lit) * .9);
}

.mc-finale > p {
  margin: 0 auto;
  color: var(--mc-muted);
  font-size: clamp(17px, 1.6vw, 22px);
}

.mc-covers {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.6vw, 38px);
  margin: clamp(56px, 9vh, 90px) auto clamp(30px, 6vh, 60px);
}

.mc-covers a {
  position: relative;
  display: block;
  flex: 0 0 clamp(120px, 15vw, 210px);
  color: var(--mc-muted);
  font-size: 13px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform 600ms cubic-bezier(.2, .8, .2, 1), color 300ms ease;
}

.mc-covers a::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -70%;
  right: -40%;
  left: -40%;
  height: 150%;
  background: radial-gradient(45% 60% at 50% 0%, rgba(255, 246, 225, .12), transparent 72%);
  opacity: .55;
  transition: opacity 400ms ease;
  pointer-events: none;
}

.mc-covers img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 34px 60px rgba(0, 0, 0, .65);
  -webkit-box-reflect: below 10px linear-gradient(transparent 72%, rgba(255, 255, 255, .14));
}

.mc-covers span {
  display: block;
  margin-top: 18px;
}

.mc-covers a:hover,
.mc-covers a:focus-visible {
  color: #fff;
  transform: translateY(-10px);
}

.mc-covers a:hover::before,
.mc-covers a:focus-visible::before {
  opacity: 1;
}

.mc-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 0;
}

@media (max-width: 760px) {
  .mc-scene { height: 150svh; }
  .scene-voice { height: 180svh; }
  .msg { max-width: 90%; }
  .bubble { font-size: 15.5px; }
  .mc-big { font-size: clamp(34px, 10.4vw, 56px); }
  .scene-split .mc-big { font-size: clamp(30px, 9vw, 48px); }
  .split { grid-template-columns: 1fr; gap: 12px; }
  .split-one { order: -1; }
  .reel { font-size: min(22vw, 120px); }
  .lever { height: 96px; }
  .lever i { transform: translateY(calc(var(--lv, 0) * 70px)); }

  .mc-covers {
    justify-content: flex-start;
    margin-inline: -20px;
    padding: 40px 20px 60px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .mc-covers::-webkit-scrollbar { display: none; }
  .mc-covers a { flex-basis: 52vw; scroll-snap-align: center; }
}

@media (max-height: 700px) {
  .mc-quote blockquote { font-size: 20px; }
  .scene-split .mc-sub:not(.mc-sub-strong) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mc-scene { height: auto; }
  .mc-pin { position: relative; min-height: 80svh; }
  .msg { opacity: 1; transform: none; transition: none; }

  .mc-aurora i,
  .mc-title span,
  .mc-lead,
  .mc-note,
  .mc-cue,
  .wish-smoke i,
  .glow .ring,
  .split-mass span,
  .mc-scene.is-active .mc-stack .hl,
  .lyric-lines.kept span {
    animation: none !important;
  }
}
