/* ============================================================
   transmissions — view css: orientation
   Five full-screen scripted scenes + outro. The overlay sits
   above chrome and dock; every reveal is a class-toggled
   transition so reduced motion collapses to a static
   composition automatically (base.css §24).
   ============================================================ */

.os {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet);
  background: #000;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* a whisper of ambient light so the frame is never dead */
.os::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(42% 34% at 30% 22%, rgba(196, 181, 253, 0.05), transparent 70%),
    radial-gradient(46% 38% at 74% 80%, rgba(196, 181, 253, 0.035), transparent 70%);
  animation: world-drift 46s var(--ease-glide) infinite alternate;
  pointer-events: none;
}

.os-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---------------------------------------------------------- */
/* scenes                                                      */
/* ---------------------------------------------------------- */

.os-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  padding: calc(var(--safe-top) + 64px) calc(var(--s-6) + var(--safe-right))
    calc(var(--safe-bottom) + 110px) calc(var(--s-6) + var(--safe-left));
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease-out);
}

.os-scene.is-on {
  opacity: 1;
  pointer-events: auto;
}

/* shared reveal primitives */
.os-line {
  max-width: 24ch;
  font-size: clamp(23px, 5.8vw, 36px);
  font-weight: 600;
  letter-spacing: var(--tracking-head);
  line-height: 1.12;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-glide), transform 0.55s var(--ease-glide);
}

.os-line.is-in {
  opacity: 1;
  transform: translateY(0);
}

.os-sub {
  max-width: 42ch;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--fg-dim);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease-glide), transform 0.55s var(--ease-glide);
}

.os-sub.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------- */
/* scene 1 · this is transmissions                             */
/* ---------------------------------------------------------- */

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

.os-net-svg {
  width: 100%;
  height: 100%;
}

.os-net-node {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.os-net-node.is-bright {
  fill: #ffffff;
}

.os-net-edge {
  stroke: var(--accent);
  stroke-width: 0.14;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}

.os-net.is-in .os-net-node {
  opacity: 0.85;
}

.os-net.is-in .os-net-edge {
  opacity: 0.22;
}

.os-s1-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  transition: transform 1.1s var(--ease-glide);
}

.os-s1.is-zoom .os-s1-center {
  transform: scale(0.84) translateY(-10px);
}

.os-s1-star {
  width: clamp(44px, 12vw, 64px);
  height: auto;
  aspect-ratio: 574 / 820;
  color: var(--accent);
  opacity: 0;
  transform: scale(0.25);
  filter: drop-shadow(0 0 0 rgba(196, 181, 253, 0));
  transition: opacity 0.65s var(--ease-glide), transform 0.65s var(--ease-glide),
    filter 0.9s var(--ease-out);
}

.os-s1-star.is-in {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 22px rgba(196, 181, 253, 0.55));
}

.os-s1-word {
  font-size: clamp(30px, 8vw, 52px);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-glide), transform 0.6s var(--ease-glide);
}

.os-s1-word.is-in {
  opacity: 1;
  transform: translateY(0);
}

.os-s1-sub {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-label-wide);
  text-transform: uppercase;
  color: var(--fg-dim);
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}

.os-s1-sub.is-in {
  opacity: 1;
}

.os-s1-line {
  position: relative;
  z-index: 1;
  margin-top: var(--s-6);
}

/* ---------------------------------------------------------- */
/* scene 2 · the axis card                                     */
/* ---------------------------------------------------------- */

.os-card-wrap {
  perspective: 1100px;
}

.os-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: clamp(190px, 56vw, 236px);
  aspect-ratio: 5 / 7;
  padding: var(--s-4);
  border-radius: var(--r-l);
  background:
    radial-gradient(130% 110% at 24% 0%, rgba(196, 181, 253, 0.12), transparent 55%),
    linear-gradient(160deg, #17171f, #0a0a0f 72%);
  border: 1px solid var(--accent-28);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), 0 0 34px rgba(196, 181, 253, 0.12);
  opacity: 0;
  transform: translate(56vw, -22vh) rotate(26deg) scale(1.12);
}

.os-card.is-dealt {
  animation: os-deal 0.85s var(--ease-glide) forwards;
}

.os-card.is-tilting {
  opacity: 1;
  animation: os-tilt 7s ease-in-out infinite;
}

@keyframes os-deal {
  0% {
    opacity: 0;
    transform: translate(56vw, -22vh) rotate(26deg) scale(1.12);
  }
  62% {
    opacity: 1;
    transform: translate(-2%, 1%) rotate(-3.5deg) scale(1.02);
  }
  82% {
    transform: translate(1%, 0) rotate(1.6deg) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }
}

@keyframes os-tilt {
  0%,
  100% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: rotateX(4.5deg) rotateY(-7deg);
  }
  50% {
    transform: rotateX(-3deg) rotateY(5.5deg);
  }
  75% {
    transform: rotateX(3.5deg) rotateY(7deg);
  }
}

.os-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.os-card-mark {
  width: 13px;
  height: 19px;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(196, 181, 253, 0.4));
}

.os-card-no {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-label-wide);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--fg-faint);
}

.os-card-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
}

.os-card-ava {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-pill);
  background: radial-gradient(120% 120% at 30% 20%, #1b1b25, #0c0c11);
  border: 1px solid var(--accent-28);
  margin-bottom: var(--s-2);
}

.os-card-ava svg {
  width: 22px;
  height: 32px;
  color: var(--accent-45);
}

.os-card-name {
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: var(--tracking-title);
}

.os-card-handle {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
}

.os-card-bottom {
  display: flex;
  justify-content: center;
}

/* ---------------------------------------------------------- */
/* scene 3 · the station morph                                 */
/* ---------------------------------------------------------- */

.os-station {
  --os-acc: #c4b5fd;
  position: relative;
  width: min(340px, 86vw);
  border-radius: var(--r-l);
  border: 1px solid color-mix(in srgb, var(--os-acc) 30%, transparent);
  background: linear-gradient(165deg, #131318, #09090d);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.55),
    0 0 30px color-mix(in srgb, var(--os-acc) 12%, transparent);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.6s var(--ease-glide), transform 0.6s var(--ease-glide),
    border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.os-station.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* backdrops flip like channels; the tick sells the cut */
.os-station::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.os-station[data-bd='0']::before {
  background: radial-gradient(
    120% 90% at 50% 0%,
    color-mix(in srgb, var(--os-acc) 9%, transparent),
    transparent 60%
  );
}

.os-station[data-bd='1']::before {
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.8), transparent 100%),
    radial-gradient(1px 1px at 34% 64%, rgba(255, 255, 255, 0.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 58% 18%, rgba(255, 255, 255, 0.7), transparent 100%),
    radial-gradient(1px 1px at 72% 76%, rgba(255, 255, 255, 0.55), transparent 100%),
    radial-gradient(1px 1px at 88% 38%, rgba(255, 255, 255, 0.65), transparent 100%),
    radial-gradient(1.5px 1.5px at 22% 84%, rgba(255, 255, 255, 0.45), transparent 100%);
  opacity: 0.7;
}

.os-station[data-bd='2']::before {
  background:
    radial-gradient(60% 46% at 22% 18%, color-mix(in srgb, var(--os-acc) 22%, transparent), transparent 70%),
    radial-gradient(56% 44% at 80% 68%, color-mix(in srgb, var(--os-acc) 14%, transparent), transparent 70%);
}

.os-station[data-bd='3']::before {
  background-image:
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--os-acc) 14%, transparent) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--os-acc) 14%, transparent) 0 1px, transparent 1px 22px);
  opacity: 0.55;
}

.os-st-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-4);
}

.os-st-marquee {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--os-acc);
  transition: color 0.45s var(--ease-out);
}

.os-st-hero {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-align: left;
}

.os-st-ava {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-pill);
  background: radial-gradient(120% 120% at 30% 20%, #1a1a23, #0c0c11);
  border: 1.5px solid var(--os-acc);
  transition: border-color 0.45s var(--ease-out);
}

.os-st-ava svg {
  width: 14px;
  height: 20px;
  color: var(--os-acc);
  transition: color 0.45s var(--ease-out);
}

.os-st-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.os-st-name {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: var(--tracking-title);
}

.os-st-status {
  font-size: var(--fs-micro);
  color: var(--fg-dim);
}

.os-st-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--os-acc);
  box-shadow: 0 0 10px color-mix(in srgb, var(--os-acc) 70%, transparent);
  transition: background 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  animation: onair-breathe 2.6s ease-in-out infinite;
}

.os-st-mods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}

.os-st-mod {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: rgba(245, 245, 247, 0.045);
  border: 1px solid var(--hairline);
  border-top: 2px solid color-mix(in srgb, var(--os-acc) 55%, transparent);
  transition: border-color 0.45s var(--ease-out);
}

.os-st-shelf {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.os-st-shelf span {
  height: 7px;
  border-radius: var(--r-pill);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--os-acc) 40%, transparent),
    rgba(245, 245, 247, 0.06)
  );
  transition: background 0.45s var(--ease-out);
}

.os-st-shelf span:last-child {
  width: 62%;
}

.os-s3-line {
  margin-top: var(--s-5);
}

/* ---------------------------------------------------------- */
/* scene 4 · the casting call (the one red scene)              */
/* ---------------------------------------------------------- */

.os-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out) 0.5s;
}

/* the spotlight pool that the sweep leaves behind */
.os-spot.is-sweep {
  opacity: 1;
  background: radial-gradient(
    44% 34% at 50% 42%,
    rgba(245, 245, 247, 0.09),
    transparent 72%
  );
}

/* the beam itself */
.os-spot::before {
  content: '';
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 50%;
  width: 26vw;
  margin-left: -13vw;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 245, 247, 0.1) 45%,
    rgba(196, 181, 253, 0.08) 55%,
    transparent
  );
  transform: translateX(-90vw) rotate(16deg);
  opacity: 0;
}

.os-spot.is-sweep::before {
  animation: os-sweep 1.35s var(--ease-glide) forwards;
}

@keyframes os-sweep {
  0% {
    opacity: 0;
    transform: translateX(-90vw) rotate(16deg);
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(90vw) rotate(16deg);
  }
}

.os-s4-core {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
}

.os-s4-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-label-wide);
  text-transform: uppercase;
  color: var(--fg-dim);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.os-s4-eyebrow.is-in {
  opacity: 1;
}

.os-s4-clock {
  font-family: var(--font-mono);
  font-size: clamp(46px, 15vw, 92px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--live);
  text-shadow: 0 0 26px var(--live-45), 0 0 70px rgba(240, 80, 80, 0.2);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s var(--ease-glide), transform 0.5s var(--ease-glide);
}

.os-s4-clock.is-in {
  opacity: 1;
  transform: scale(1);
}

.os-s4-clock.is-zero {
  animation: os-zero-flash 0.55s var(--ease-out);
}

@keyframes os-zero-flash {
  0% {
    text-shadow: 0 0 26px var(--live-45), 0 0 70px rgba(240, 80, 80, 0.2);
  }
  30% {
    text-shadow: 0 0 40px var(--live), 0 0 110px rgba(240, 80, 80, 0.5);
  }
  100% {
    text-shadow: 0 0 26px var(--live-45), 0 0 70px rgba(240, 80, 80, 0.2);
  }
}

.os-s4-onair {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--live-45);
  background: var(--live-14);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tracking-label-wide);
  text-transform: uppercase;
  color: var(--live);
  text-shadow: 0 0 12px var(--live-45);
  opacity: 0;
  transform: scale(1.5);
}

.os-s4-onair.is-in {
  animation: os-onair-slam 0.45s var(--ease-glide) forwards;
}

@keyframes os-onair-slam {
  0% {
    opacity: 0;
    transform: scale(1.5);
  }
  55% {
    opacity: 1;
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.os-s4-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: clamp(26px, 7vw, 44px);
  font-weight: 700;
  letter-spacing: var(--tracking-head);
  line-height: 1.08;
}

.os-s4-line span {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease-glide), transform 0.55s var(--ease-glide);
}

.os-s4-line.is-in span {
  opacity: 1;
  transform: translateY(0);
}

.os-s4-line.is-in span:nth-child(2) {
  transition-delay: 0.34s;
}

/* ---------------------------------------------------------- */
/* scene 5 · the pass fan                                      */
/* ---------------------------------------------------------- */

.os-fan {
  position: relative;
  width: min(340px, 84vw);
  height: 150px;
}

.os-pass {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 168px;
  padding: 16px 18px;
  margin: -34px 0 0 -84px;
  border-radius: var(--r-m);
  background:
    radial-gradient(120% 130% at 20% 0%, rgba(196, 181, 253, 0.1), transparent 55%),
    linear-gradient(160deg, #15151d, #0a0a0f);
  border: 1px solid var(--accent-28);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateY(60px) scale(0.82);
  transition: opacity 0.55s var(--ease-glide), transform 0.6s var(--ease-glide);
}

/* the tear-off perforation */
.os-pass::after {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 40px;
  border-right: 1px dashed var(--accent-28);
}

.os-pass svg {
  width: 12px;
  height: 17px;
  color: var(--accent-70);
  flex: none;
}

.os-pass-a {
  z-index: 1;
}

.os-pass-a.is-in {
  opacity: 1;
  transform: translate(-72px, -6px) rotate(-13deg);
}

.os-pass-b {
  z-index: 3;
}

.os-pass-b.is-in {
  opacity: 1;
  transform: translateY(-16px);
}

.os-pass-c {
  z-index: 2;
}

.os-pass-c.is-in {
  opacity: 1;
  transform: translate(72px, -6px) rotate(13deg);
}

.os-s5-line {
  margin-top: var(--s-5);
}

/* ---------------------------------------------------------- */
/* outro · stats + ctas                                        */
/* ---------------------------------------------------------- */

.os-outro {
  overflow-y: auto;
  justify-content: center;
  gap: var(--s-5);
}

.os-outro-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-label-wide);
  text-transform: uppercase;
  color: var(--accent-70);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.os-outro-eyebrow.is-in {
  opacity: 1;
}

.os-outro-line {
  max-width: 20ch;
  font-size: clamp(26px, 6.6vw, 42px);
  font-weight: 600;
  letter-spacing: var(--tracking-head);
  line-height: 1.1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-glide), transform 0.55s var(--ease-glide);
}

.os-outro-line.is-in {
  opacity: 1;
  transform: translateY(0);
}

.os-stats {
  display: flex;
  gap: var(--s-2);
  width: min(420px, 100%);
}

.os-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: var(--s-4) var(--s-2);
  border-radius: var(--r-l);
  background: var(--pane-soft);
  border: var(--glass-border);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-glide), transform 0.5s var(--ease-glide);
}

.os-stats.is-in .os-stat {
  opacity: 1;
  transform: translateY(0);
}

.os-stats.is-in .os-stat:nth-child(2) {
  transition-delay: 0.09s;
}

.os-stats.is-in .os-stat:nth-child(3) {
  transition-delay: 0.18s;
}

.os-stat-num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 7vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(196, 181, 253, 0.3);
}

.os-stat-lab {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-faint);
  transform: translateX(0.12em);
}

.os-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  width: min(360px, 100%);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-glide), transform 0.5s var(--ease-glide);
}

.os-ctas.is-in {
  opacity: 1;
  transform: translateY(0);
}

.os-cta-passes {
  width: 100%;
}

.os-ctas-row {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------------------------------------------------------- */
/* hud: dots + hint + exit                                     */
/* ---------------------------------------------------------- */

.os-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--safe-bottom) + var(--s-6));
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  pointer-events: none;
}

.os-dots {
  display: flex;
  gap: 9px;
}

.os-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: rgba(245, 245, 247, 0.16);
  transition: background var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-glide);
}

.os-dot.is-current {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(196, 181, 253, 0.6);
  transform: scale(1.35);
}

.os-dot.is-done {
  background: var(--accent-45);
}

.os-hint {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-faint);
  transition: opacity var(--t-med) var(--ease-out);
}

/* the hold gauge: fills under the hint while pressed */
.os-hint::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1.5px;
  width: 0%;
  border-radius: var(--r-pill);
  background: var(--accent);
  box-shadow: 0 0 8px rgba(196, 181, 253, 0.5);
  transition: width 0.1s var(--ease-out);
}

.os.is-holding .os-hint::after {
  width: 100%;
  transition: width 0.6s linear;
}

.os-hud.is-ended .os-hint {
  opacity: 0;
}

.os-exit {
  position: absolute;
  top: calc(var(--safe-top) + 10px);
  right: calc(var(--safe-right) + 10px);
  z-index: 4;
  display: grid;
  place-items: center;
  width: var(--tap-min);
  height: var(--tap-min);
  border-radius: var(--r-m);
  color: var(--fg-dim);
  -webkit-tap-highlight-color: transparent;
  transition: color var(--t-fast) var(--ease-out),
    background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}

.os-exit svg {
  width: 18px;
  height: 18px;
}

.os-exit:hover {
  color: var(--fg);
  background: rgba(245, 245, 247, 0.07);
}

.os-exit:active {
  transform: scale(0.88);
}

/* ---------------------------------------------------------- */
/* short screens (landscape phones)                            */
/* ---------------------------------------------------------- */

@media (max-height: 560px) {
  .os-scene {
    gap: var(--s-3);
    padding-bottom: calc(var(--safe-bottom) + 84px);
  }

  .os-card {
    width: 150px;
  }

  .os-fan {
    height: 118px;
  }

  .os-line {
    font-size: clamp(19px, 4.6vw, 26px);
  }

  .os-s4-clock {
    font-size: clamp(38px, 11vw, 64px);
  }
}

/* ---------------------------------------------------------- */
/* reduced motion: static composition                          */
/* ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .os::before {
    animation: none;
  }

  .os-card {
    opacity: 0;
    transform: none;
  }

  .os-card.is-dealt,
  .os-card.is-tilting {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .os-spot.is-sweep::before {
    animation: none;
    opacity: 0;
  }

  .os-st-dot {
    animation: none;
  }
}
