/* Components: dossier chrome, answers, reaction, terminal, stamps, recipe cards. */

/* Scene art positioning */
.pos {
  position: absolute;
}
.pos--beacon {
  top: 14%;
  left: 6%;
  width: clamp(84px, 18vw, 150px);
}
.pos--agromozg-sm {
  right: 4%;
  bottom: 8%;
  width: clamp(130px, 28vw, 230px);
  opacity: 0.85;
}
.pos--agromozg-sm img {
  animation: bob 4.2s ease-in-out infinite;
}
.pos--radar {
  width: min(72vw, 72vh);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.pos--dossier {
  right: 0;
  top: 12%;
  width: clamp(280px, 52vw, 600px);
  opacity: 0.8;
}

/* Raster AgroMozg mascot (the only non-vector art besides the brand logo). */
.pos--agromozg {
  pointer-events: none;
}
.pos--agromozg img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 26px rgba(49, 169, 0, 0.28));
}
.pos--agromozg-intro {
  right: 1%;
  bottom: 2%;
  width: clamp(190px, 40vw, 360px);
  opacity: 0.62;
}
.pos--agromozg-recipe {
  display: none;
}

/* Intro: five copy lines revealed one by one, so the rhythm is a little tighter. */
.scene__content--intro {
  gap: clamp(9px, 1.8vw, 15px);
}
.intro__line {
  max-width: 56ch;
}

.art-beacon__label {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  fill: var(--alert);
  letter-spacing: 0.1em;
}
.beacon__halo {
  animation: beacon-pulse 1.6s var(--ease-soft) infinite;
  transform-origin: center;
}
/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(11px, 2.8vw, 13px);
}
.badge--chp {
  background: linear-gradient(180deg, rgba(255, 59, 48, 0.95), rgba(231, 38, 33, 0.95));
  color: #fff;
  box-shadow: var(--glow-alert);
  animation: beacon-pulse 1.8s var(--ease-soft) infinite;
}

/* ---- Screen 0 (video announcement) ---- */
/* Centred on every viewport: the generic desktop `.scene__content` rule would otherwise
   offset this card to the left (double class so it wins regardless of file order). */
.scene__content--video.scene__content {
  align-items: center;
  text-align: center;
  max-width: min(900px, 94vw);
  margin-left: auto;
  margin-right: auto;
  padding-top: calc(var(--hud-h) + 6px + env(safe-area-inset-top, 0px));
}
.scene__content--video .step__title {
  width: 100%;
}
.scene[data-tone='video'] .scene__art {
  opacity: 1;
}

/* The card is a dark neon frame — no still frame from the video is shown (see config). */
.video-stage {
  position: relative;
  width: min(880px, 92vw);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 43, 214, 0.18), transparent 62%),
    radial-gradient(120% 90% at 50% 100%, rgba(118, 255, 3, 0.12), transparent 62%),
    #050806;
  border: 2px solid rgba(255, 43, 214, 0.35);
  box-shadow: 0 0 46px rgba(255, 43, 214, 0.25), inset 0 0 70px rgba(0, 0, 0, 0.6);
}
.video-stage__el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050806;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.video-stage[data-state='playing'] .video-stage__el {
  opacity: 1;
}

/* Fullscreen cinematic playback: just the video, no title/panels/HUD. StepController
   removes the element after the outgoing transition covers it, so `is-cinema` needs no
   manual cleanup and the HUD returns on its own (via :has()). */
.scene.is-cinema .video-stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  min-height: 0;
  background: #000;
  box-shadow: none;
}
.scene.is-cinema .video-stage__el {
  opacity: 1;
  object-fit: cover;
}
/* The processing reveal reuses the cinema state but letterboxes the clip (`contain`) instead
   of cropping it — it is a single landscape master shown on every device. */
.scene.is-cinema.is-contain .video-stage__el {
  object-fit: contain;
}
.scene.is-cinema .step__title,
.scene.is-cinema .video-progress,
.scene.is-cinema .video-warning,
.scene.is-cinema .video-controls {
  display: none;
}
body:has(.scene.is-cinema) .hud {
  display: none;
}

.video-progress,
.video-warning,
.video-controls {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(14px, 4vw, 30px);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.video-stage[data-state='loading'] .video-progress,
.video-stage[data-state='ready'] .video-warning,
.video-stage[data-state='playing'] .video-controls {
  opacity: 1;
  visibility: visible;
}

/* Loading panel */
.video-progress__label {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(12px, 3vw, 15px);
  color: var(--text-dim);
}
.video-progress__bar {
  width: min(420px, 78%);
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border: 1px solid rgba(255, 43, 214, 0.25);
}
.video-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-magenta));
  box-shadow: 0 0 14px rgba(255, 43, 214, 0.6);
  transition: width var(--dur-base) var(--ease-out);
}
.video-progress__bar.is-indeterminate .video-progress__fill {
  width: 40% !important;
  animation: video-indeterminate 1.2s ease-in-out infinite;
}
.video-progress__pct {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(14px, 3.6vw, 18px);
  color: var(--text-neon);
  font-variant-numeric: tabular-nums;
}
@keyframes video-indeterminate {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

/* Ready / warning panel */
.video-warning__body {
  color: var(--text);
  font-size: clamp(14px, 3.4vw, 17px);
  max-width: 46ch;
}
.video-warning__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}

/* Playing overlay controls */
.video-controls {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(0deg, rgba(5, 8, 6, 0.78), rgba(5, 8, 6, 0) 60%);
}
.video-ctl {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 43, 214, 0.4);
  background: rgba(9, 18, 12, 0.7);
  color: var(--text-neon);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.video-ctl:hover,
.video-ctl:focus-visible {
  box-shadow: var(--glow-neon-magenta);
  border-color: var(--neon-primary);
}
.video-ctl svg {
  width: 22px;
  height: 22px;
}

/* ---- Question meta + speech bubble ---- */
.question-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dossier__stamp {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--alert);
  border: 2px solid var(--alert);
  border-radius: 6px;
  padding: 2px 8px;
  transform: rotate(-6deg);
  font-size: 12px;
}
/* Case subject, right of the stamp (it no longer repeats «ДЕЛО» and has no «Лист N»). */
.question-meta__sheet {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(11px, 2.6vw, 13px);
  color: var(--text-dim);
}

/* Question stage: the mascot "speaks" the question inside a neon speech bubble. */
.question-stage {
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 2vw, 20px);
}
.question-mascot {
  flex: 0 0 auto;
  width: clamp(112px, 20vw, 232px);
}
.question-mascot img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 20px rgba(255, 43, 214, 0.28));
  animation: bob 5s ease-in-out infinite;
}
.question-bubble {
  /* Border width and tail size are variables because the tail's horizontal offset is
     derived from them (see ::after), so border and tail can never drift apart. */
  --bubble-border: 3px;
  --tail-size: 18px;
  --tail-half: calc(var(--tail-size) / 2);
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: clamp(14px, 2.4vw, 22px) clamp(16px, 2.8vw, 26px);
  border: var(--bubble-border) solid var(--question-bubble-edge);
  border-radius: 28px;
  /* Opaque + uniform on purpose, and no backdrop blur: the tail overlaps the bubble and
     must be indistinguishable from it (see ::after). */
  background: var(--question-bubble-fill);
  box-shadow: 0 0 22px rgba(255, 43, 214, 0.3);
}
.question-bubble .step__title {
  font-size: clamp(19px, 4.4vw, 36px);
  margin-bottom: 8px;
}
.question-bubble .step__lead {
  color: var(--text);
}
/* Tail: the whole rotated square paints — its opaque fill is the same colour as the bubble,
   so where it overlaps it is invisible AND it covers the bubble's border across the mouth,
   which is what makes the bubble's interior flow into the tail (painting only the outer half
   instead leaves the border as a wall between the two interiors). Its centre sits in the
   middle of the border band, so the ends of its two outline edges terminate inside the
   magenta border and disappear; the tip becomes the left-pointing pointer. */
.question-bubble::after {
  content: '';
  position: absolute;
  left: calc(-1 * (var(--tail-half) + var(--bubble-border) / 2));
  /* Clear of the 28px bottom-left corner arc — the border must be straight where the tail
     meets it, otherwise its outline ends leave a gap. */
  bottom: 40px;
  width: var(--tail-size);
  height: var(--tail-size);
  background: var(--question-bubble-fill);
  border-left: var(--bubble-border) solid var(--question-bubble-edge);
  border-bottom: var(--bubble-border) solid var(--question-bubble-edge);
  border-bottom-left-radius: 4px;
  transform: rotate(45deg);
}

/* Answers */
.answers {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.answer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(8, 16, 11, 0.94);
  color: var(--text);
  font-size: clamp(14px, 3.6vw, 17px);
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out),
    opacity var(--dur-base) var(--ease-out);
}
.answer__mark {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  background: rgba(49, 169, 0, 0.12);
}
.answer__mark svg {
  width: 18px;
  height: 18px;
  opacity: 0.35;
  transition: opacity var(--dur-base) var(--ease-out);
}
.answer:hover {
  transform: translateY(-3px);
  border-color: var(--brand-3);
  background: rgba(13, 24, 17, 0.97);
  box-shadow: var(--glow-brand);
}
.answer.is-selected {
  border-color: var(--brand-3);
  background: linear-gradient(120deg, rgba(49, 169, 0, 0.22), rgba(49, 169, 0, 0.06));
}
.answer.is-selected .answer__mark {
  background: var(--brand);
  border-color: var(--brand-3);
}
.answer.is-selected .answer__mark svg {
  opacity: 1;
}
.answer.is-dimmed {
  opacity: 0.42;
}
.answer.is-stamped::after {
  content: 'ЗАПИСАНО';
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 1px 6px;
  transform: rotate(3deg);
}

/* Reaction row: [ AgroMozg «writing» raster | vertical accent line | bigger/bolder text ].
   The accent line lives on the text cell, so the image sits to its left, as requested. */
.reaction {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);
  background: var(--panel-solid);
  padding: 8px 12px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.reaction__art {
  flex: none;
  width: clamp(48px, 12vw, 96px);
}
.reaction__art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 14px rgba(255, 43, 214, 0.25));
}
.reaction__text {
  border-left: 3px solid var(--brand-3);
  padding-left: clamp(10px, 2vw, 16px);
  color: var(--text);
  font-size: clamp(15px, 3.8vw, 20px);
  font-weight: 600;
  line-height: 1.35;
}

.step__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.step__cta--bottom {
  justify-content: center;
  margin-top: 8px;
}

/* Processing terminal */
.terminal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-3);
  font-size: clamp(13px, 3.4vw, 17px);
  border-left: 2px solid rgba(126, 230, 90, 0.4);
  padding-left: 16px;
}
.terminal__line {
  min-height: 1.4em;
}
.terminal__line--final {
  color: var(--gold);
}

/* Stamp + reveal */
.stamp {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--alert);
  border: 3px solid var(--alert);
  border-radius: 10px;
  padding: 6px 16px;
  font-size: clamp(14px, 4vw, 20px);
  box-shadow: 0 0 30px rgba(255, 59, 48, 0.35);
  background: rgba(255, 59, 48, 0.08);
}

.reveal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  transform-style: preserve-3d;
  perspective: 800px;
}
.reveal__from {
  color: var(--text-dim);
  font-size: clamp(15px, 4.4vw, 24px);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 59, 48, 0.8);
}
.reveal__eq {
  color: var(--text-mute);
  font-size: clamp(16px, 4.6vw, 26px);
}
.reveal__to {
  color: #06180b;
  background: linear-gradient(180deg, var(--brand-3), var(--brand));
  border-radius: 8px;
  padding: 2px 12px;
  font-size: clamp(17px, 5.4vw, 30px);
  box-shadow: 0 0 18px rgba(49, 169, 0, 0.25);
}
.step__paragraphs {
  display: grid;
  gap: 10px;
}

/* Answer foot: the reaction + [ДАЛЕЕ] area is always reserved so the question block keeps
   its height and the cards never jump after answering. The exact height is pinned from the
   real content by question.js (`reserveFoot`); this is only a floor. */
.answer-foot {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 176px;
}
.answer-foot:not(.is-answered) {
  visibility: hidden;
}
.answer-foot .btn {
  min-height: 46px;
}

/* Question screens: slightly tighter lead so the block + reserved foot fit a phone. */
.scene__content--question .step__lead {
  font-size: clamp(14px, 3.4vw, 17px);
}

/* Verdict must fit a 844px-tall phone without a clipped last line */
.scene__content--verdict {
  gap: 11px;
  padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px));
}
.scene__content--verdict .stamp {
  font-size: clamp(13px, 3.6vw, 18px);
  padding: 5px 12px;
}
.scene__content--verdict .step__body {
  font-size: clamp(13.5px, 3.4vw, 17px);
}
.scene__content--verdict .step__title {
  font-size: clamp(23px, 6.4vw, 44px);
}

/* Recipe */
.recipe__badge {
  align-self: flex-end;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 4px 12px;
}
.recipe__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.recipe__seal {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: clamp(18px, 5vw, 28px);
  color: var(--brand-3);
  border-bottom: 3px solid var(--brand);
  padding-bottom: 4px;
}
.recipe__countdown {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 3px 14px;
  border: 2px solid rgba(243, 177, 49, 0.55);
  border-radius: 12px;
  background: rgba(243, 177, 49, 0.06);
  min-height: clamp(30px, 7vw, 38px);
}
.recipe__countdown-label {
  font-family: var(--font-display);
  font-size: clamp(9px, 2.4vw, 11px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.recipe__countdown-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 4.2vw, 22px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.recipe__countdown.is-ended .recipe__countdown-value {
  font-size: clamp(12px, 3vw, 15px);
  color: var(--text-dim);
}
.recipe__rx {
  margin-left: auto;
  font-family: var(--font-script);
  font-size: clamp(30px, 8vw, 52px);
  color: var(--gold);
  transform: rotate(-8deg);
}
.recipe__avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(126, 230, 90, 0.4);
  background: rgba(9, 18, 12, 0.6);
  box-shadow: var(--glow-brand);
}
.recipe__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.recipe__signature {
  margin-left: auto;
  font-family: var(--font-script);
  font-size: clamp(20px, 5vw, 34px);
  color: var(--gold);
  transform: rotate(-6deg);
  white-space: nowrap;
}
.assignments {
  display: grid;
  gap: 16px;
  margin-top: 6px;
  align-items: stretch;
}
.assignment {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel-solid);
  backdrop-filter: blur(10px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.assignment--bonus {
  border-color: rgba(243, 177, 49, 0.45);
  background: linear-gradient(160deg, rgba(243, 177, 49, 0.1), rgba(9, 18, 12, 0.82));
}
.assignment__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.assignment__icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(49, 169, 0, 0.14);
  border: 1px solid var(--border);
}
.assignment__icon svg {
  width: 26px;
  height: 26px;
}
.assignment__n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--brand-3);
}
.assignment__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 4vw, 20px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.assignment__text {
  color: var(--text-dim);
  font-size: clamp(14px, 3.5vw, 16px);
}
.assignment__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: auto;
}
/* Closing congrats block: mascot + the two closing paragraphs, between the offer cards
   and the repeat CTA. */
.recipe__outro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(14px, 2.4vw, 26px);
  align-items: center;
  margin-top: 22px;
  padding: clamp(16px, 3vw, 26px);
  border: 2px solid rgba(255, 43, 214, 0.35);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 43, 214, 0.12), transparent 62%),
    var(--panel-solid);
  box-shadow: 0 0 30px rgba(255, 43, 214, 0.18), inset 0 0 30px rgba(255, 43, 214, 0.08);
}
.recipe__outro-art {
  width: clamp(96px, 12vw, 190px);
}
.recipe__outro-art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 18px rgba(255, 43, 214, 0.25));
  animation: bob 5s ease-in-out infinite;
}
.recipe__outro-text {
  display: grid;
  gap: 8px;
}
.recipe__outro-text .step__body {
  color: var(--text);
  max-width: 62ch;
}

/* Discount levels: the six level buttons are the scale itself (each its own compact link). */
.assignment__levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.assignment--levels .btn {
  min-height: 40px;
  padding: 8px 14px;
  font-size: clamp(12px, 3vw, 13px);
}

/* Detailed campaign terms link under the repeat CTA on the plan. */
.recipe__terms {
  text-align: center;
  margin-top: 12px;
}
.recipe__terms-link {
  color: var(--text-dim);
  font-size: clamp(12px, 3vw, 13.5px);
  text-decoration: none;
  border-bottom: 1px dashed rgba(159, 179, 163, 0.45);
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.recipe__terms-link:hover,
.recipe__terms-link:focus-visible {
  color: var(--brand-3);
  border-bottom-color: var(--brand-3);
}

/* Promo code */
.promo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.promo__code {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: clamp(16px, 4.6vw, 22px);
  color: var(--gold);
  border: 2px dashed rgba(243, 177, 49, 0.6);
  border-radius: 12px;
  padding: 8px 16px;
  background: rgba(243, 177, 49, 0.06);
}
.btn.is-copied {
  background: linear-gradient(180deg, var(--brand-3), var(--brand));
  color: #06180c;
}

/* Ticker */
.ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid rgba(255, 59, 48, 0.4);
  background: rgba(20, 4, 4, 0.7);
  padding: 10px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: inline-flex;
  gap: 26px;
  white-space: nowrap;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: #ff8a7a;
  animation: ticker 26s linear infinite;
}

/* Particles + ambient loops */
.particle {
  position: absolute;
  bottom: -20px;
  width: var(--size, 6px);
  height: var(--size, 6px);
  border-radius: 50%;
  opacity: 0.5;
  animation: float-up var(--dur, 10s) linear var(--delay, 0s) infinite;
}
.particle--seed {
  border-radius: 45% 55% 60% 40%;
}

@keyframes float-up {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-88vh) translateX(var(--drift, 0));
    opacity: 0;
  }
}

@keyframes beacon-pulse {
  0%,
  100% {
    opacity: 1;
    scale: 1;
  }
  50% {
    opacity: 0.55;
    scale: 0.9;
  }
}

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

@keyframes tilt {
  0%,
  100% {
    rotate: 0deg;
  }
  50% {
    rotate: -4deg;
  }
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
