/* ==========================================================================
   Tela, efeitos de tubo, transições e cartões de demonstração
   ========================================================================== */

.screen__off {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(116deg, transparent 0 12%, rgba(205, 226, 228, .095) 14.5%, transparent 20%, transparent 71%, rgba(var(--gold-rgb), .035) 76%, transparent 83%),
    radial-gradient(ellipse at 26% 17%, rgba(154, 193, 195, .14), transparent 42%),
    radial-gradient(ellipse at 72% 92%, rgba(var(--gold-rgb), .045), transparent 48%),
    linear-gradient(158deg, #0a1210 0%, #020504 46%, #070b09 100%);
  opacity: 1;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.screen__off::before {
  content: "";
  position: absolute;
  top: -14%;
  left: 8%;
  width: 40%;
  height: 142%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .026), transparent);
  transform: rotate(12deg);
  filter: blur(1px);
}

.screen__off::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .6) 100%);
}

.tv-set[data-state="booting"] .screen__off,
.tv-set[data-state="on"] .screen__off,
.tv-set[data-state="powering-off"] .screen__off {
  opacity: 0;
}

.screen__picture {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
  background: #010302;
  filter: brightness(var(--crt-brightness, 1)) contrast(var(--crt-contrast, 1)) saturate(var(--crt-saturation, 1));
  opacity: 0;
  visibility: hidden;
  transform: scale(1.003);
  transform-origin: center;
  backface-visibility: hidden;
}

.tv-set[data-state="booting"] .screen__picture {
  visibility: visible;
  animation: crt-boot-picture 1.12s var(--ease-out) both;
}

.tv-set[data-state="on"] .screen__picture {
  visibility: visible;
  opacity: 1;
  transform: scale(1.003);
}

.tv-set[data-state="powering-off"] .screen__picture {
  visibility: visible;
  opacity: 1;
  animation: crt-shutdown 660ms cubic-bezier(.55, 0, .84, .2) both;
}

.screen__signal {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.screen[data-sharpen="on"] .screen__signal {
  filter: url("#crt-sharpen");
}

.screen[data-distortion="on"] .screen__signal {
  animation: signal-drift 14s steps(1, end) infinite;
}

.tv-set[data-state="off"] .screen__signal {
  animation: none;
}

.screen__glass {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .075) 0%, rgba(255, 255, 255, .018) 13%, transparent 25%, transparent 73%, rgba(255, 255, 255, .028) 100%),
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .08), transparent 33%);
  box-shadow: inset 0 0 1.4rem rgba(255, 255, 255, .035), inset 0 0 4rem rgba(0, 0, 0, .28);
  pointer-events: none;
}

.screen__glass::before {
  content: "";
  position: absolute;
  top: -16%;
  left: 11%;
  width: 30%;
  height: 64%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .065), transparent 68%);
  transform: rotate(-13deg);
  filter: blur(2px);
  opacity: .66;
}

.screen[data-curvature="on"] {
  border-radius: 6.1% 6.1% 6.4% 6.4% / 5.4% 5.4% 6.2% 6.2%;
}

.screen[data-curvature="off"] {
  border-radius: 2.8% 2.8% 3.1% 3.1% / 2.4% 2.4% 2.8% 2.8%;
}

.screen[data-curvature="on"] .screen__glass {
  box-shadow: inset 0 0 2.2rem rgba(255, 255, 255, .036), inset 0 0 5rem rgba(0, 0, 0, .36);
}

/* --------------------------------------------------------------------------
   Camadas de efeito
   -------------------------------------------------------------------------- */

.screen__effects {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.tv-set[data-state="booting"] .screen__effects,
.tv-set[data-state="on"] .screen__effects {
  opacity: 1;
}

.tv-set[data-state="powering-off"] .screen__effects {
  opacity: .28;
  transition-duration: 180ms;
}

.fx {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.screen[data-scanlines="on"] .fx--scanlines {
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .32) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  opacity: .45;
}

.screen[data-scanlines="on"] .fx--mask {
  background: repeating-linear-gradient(90deg, rgba(255, 42, 42, .035) 0 1px, rgba(42, 255, 89, .027) 1px 2px, rgba(42, 89, 255, .038) 2px 3px);
  mix-blend-mode: screen;
  opacity: .62;
}

.screen[data-glow="on"] .fx--glow {
  background:
    radial-gradient(ellipse 60% 52% at 50% 47%, rgba(255, 236, 190, .105), transparent 78%),
    radial-gradient(ellipse 28% 18% at 50% 22%, rgba(255, 250, 224, .075), transparent 100%);
  mix-blend-mode: screen;
  opacity: .9;
}

.screen[data-vignette="on"] .fx--vignette {
  background: radial-gradient(ellipse 72% 68% at 50% 47%, transparent 46%, rgba(0, 0, 0, .25) 74%, rgba(0, 0, 0, .68) 100%);
  opacity: .9;
}

.screen[data-vignette="off"] .fx--vignette {
  opacity: 0;
}

.screen[data-noise="on"] .fx--noise {
  background-image: var(--texture-grain);
  background-size: 9rem 9rem;
  mix-blend-mode: screen;
  opacity: .045;
  animation: noise-shift 420ms steps(2, end) infinite;
}

.screen[data-distortion="on"] .fx--rollbar {
  top: -24%;
  height: 22%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, .025) 38%, rgba(255, 255, 255, .065) 50%, rgba(0, 0, 0, .05) 59%, transparent 100%);
  mix-blend-mode: screen;
  opacity: .6;
  animation: crt-roll 9.5s linear infinite;
}

.screen[data-effects="off"] .fx {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Efeitos de acender e desligar
   -------------------------------------------------------------------------- */

.transition-fx {
  position: absolute;
  inset: 0;
  z-index: 9;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  visibility: hidden;
}

.tv-set[data-state="booting"] .transition-fx,
.tv-set[data-state="powering-off"] .transition-fx {
  visibility: visible;
}

.transition-fx > span {
  position: absolute;
  display: block;
  pointer-events: none;
}

.transition-fx__static {
  inset: 0;
  background-image: var(--texture-grain);
  background-size: 7rem 7rem;
  filter: contrast(2.6) brightness(1.15);
  mix-blend-mode: screen;
  opacity: 0;
}

.transition-fx__flash {
  inset: 0;
  background: #fffdf0;
  mix-blend-mode: screen;
  opacity: 0;
  transform: scaleY(.002);
  transform-origin: center;
}

.transition-fx__line {
  top: 50%;
  right: 4%;
  left: 4%;
  height: 2px;
  background: #fffdf0;
  box-shadow: 0 0 1rem .22rem rgba(255, 239, 190, .72);
  opacity: 0;
  transform: translateY(-50%) scaleX(.02);
  transform-origin: center;
}

.transition-fx__dot {
  top: 50%;
  left: 50%;
  width: .8%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fffef5;
  box-shadow: 0 0 1.8rem .4rem rgba(255, 244, 207, .9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.1);
}

.tv-set[data-state="booting"] .transition-fx__static {
  animation: boot-static 1.04s steps(3, end) both;
}

.tv-set[data-state="booting"] .transition-fx__flash {
  animation: boot-flash 1.08s cubic-bezier(.2, .72, .22, 1) both;
}

.tv-set[data-state="booting"] .transition-fx__line {
  animation: boot-line 620ms cubic-bezier(.22, .8, .3, 1) both;
}

.tv-set[data-state="booting"] .transition-fx__dot {
  animation: boot-dot 360ms ease-out both;
}

.tv-set[data-state="powering-off"] .transition-fx__static {
  animation: off-static 460ms steps(2, end) both;
}

.tv-set[data-state="powering-off"] .transition-fx__flash {
  animation: off-flash 640ms cubic-bezier(.55, 0, .84, .2) both;
}

.tv-set[data-state="powering-off"] .transition-fx__line {
  animation: off-line 660ms cubic-bezier(.55, 0, .84, .2) both;
}

.tv-set[data-state="powering-off"] .transition-fx__dot {
  animation: off-dot 680ms cubic-bezier(.55, 0, .84, .2) both;
}

/* --------------------------------------------------------------------------
   Sintonia entre canais
   -------------------------------------------------------------------------- */

.tuning-fx {
  position: absolute;
  inset: 0;
  z-index: 7;
  background-image:
    linear-gradient(transparent 0 12%, rgba(255, 255, 255, .08) 12% 14%, transparent 14% 67%, rgba(0, 0, 0, .14) 67% 72%, transparent 72%),
    var(--texture-grain);
  background-size: 100% 100%, 6rem 6rem;
  mix-blend-mode: screen;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.screen.is-tuning .tuning-fx {
  visibility: visible;
  animation: tuning-static 540ms steps(2, end) both;
}

.screen.is-tuning .screen__signal {
  animation: tuning-glitch 540ms steps(2, end) both;
}

.screen.is-tuning .osd--channel {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   OSD
   -------------------------------------------------------------------------- */

.screen__osd {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.osd {
  position: absolute;
  display: flex;
  align-items: center;
  border: 1px solid rgba(var(--gold-rgb), .22);
  border-left: .35cqw solid var(--gold);
  background: linear-gradient(90deg, rgba(3, 7, 13, .92), rgba(3, 7, 13, .64));
  box-shadow: 0 .55cqw 1.4cqw rgba(0, 0, 0, .46), inset 0 0 0 1px rgba(255, 255, 255, .035);
  opacity: 0;
  text-transform: uppercase;
  transition: opacity 220ms ease, transform 260ms var(--ease-out);
}

.osd.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.osd--channel {
  top: 4cqw;
  left: 4cqw;
  gap: 1.6cqw;
  min-width: 26cqw;
  padding: 1.15cqw 2.2cqw 1.25cqw 1.6cqw;
  transform: translateY(-.7cqw);
}

.osd__number {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 7.2cqw;
  font-weight: 400;
  letter-spacing: .03em;
  line-height: .78;
  text-shadow: 0 0 1.1cqw rgba(var(--gold-rgb), .35);
}

.osd__meta {
  display: flex;
  flex-direction: column;
  gap: .35cqw;
  padding-left: 1.5cqw;
  border-left: 1px solid rgba(255, 255, 255, .16);
}

.osd__tag {
  color: rgba(247, 244, 233, .58);
  font-family: var(--font-mono);
  font-size: 1.08cqw;
  font-weight: 400;
  letter-spacing: .2em;
  line-height: 1.2;
}

.osd__title {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 1.7cqw;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.2;
}

.osd--volume {
  right: 4cqw;
  bottom: 4cqw;
  gap: 1.1cqw;
  padding: 1.05cqw 1.5cqw;
  transform: translateY(.7cqw);
}

.osd--volume .osd__tag {
  color: var(--gold-bright);
  font-size: 1.12cqw;
  font-weight: 500;
  letter-spacing: .16em;
}

.volume-meter {
  display: flex;
  align-items: flex-end;
  gap: .3cqw;
  width: 10.5cqw;
  height: 2.15cqw;
}

.volume-meter span {
  flex: 1;
  height: 100%;
  border-radius: .08cqw;
  background: rgba(255, 255, 255, .15);
  box-shadow: inset 0 0 1px rgba(0, 0, 0, .5);
  transform: scaleY(.48);
  transform-origin: bottom;
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.volume-meter span.is-on {
  background: var(--gold-bright);
  box-shadow: 0 0 .45cqw rgba(var(--gold-rgb), .38);
  transform: scaleY(1);
}

.osd--volume.is-muted .volume-meter span {
  background: rgba(255, 188, 102, .18);
  transform: scaleY(.28);
}

.osd--volume.is-muted .osd__tag,
.osd--volume.is-muted .volume-value {
  color: var(--warning);
}

.volume-value {
  min-width: 2.1cqw;
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 1.15cqw;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Cartões de programação demonstrativa
   -------------------------------------------------------------------------- */

.broadcast {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--white);
  font-family: var(--font-mono);
  background: #040915;
}

.broadcast * {
  box-sizing: border-box;
}

/* Identidade ------------------------------------------------------------- */

.broadcast--ident {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(43, 69, 116, .62) 0%, rgba(12, 23, 44, .55) 36%, transparent 70%),
    linear-gradient(180deg, #071020 0%, #040913 100%);
}

.broadcast--ident::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(var(--gold-rgb), .1) 50%, transparent 50.15%),
    linear-gradient(180deg, transparent 49.85%, rgba(var(--gold-rgb), .08) 50%, transparent 50.15%);
  opacity: .7;
}

.ident__rings {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 56cqw;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--gold-rgb), .34);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 3.4cqw rgba(var(--gold-rgb), .022),
    0 0 0 8.4cqw rgba(var(--gold-rgb), .016),
    0 0 0 14.4cqw rgba(var(--gold-rgb), .01);
}

.ident__rings::before {
  content: "";
  position: absolute;
  inset: -13%;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  border-right-color: rgba(var(--gold-rgb), .45);
  border-bottom-color: transparent;
}

.ident__rings::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(var(--gold-rgb), .24);
  border-radius: 50%;
}

.ident__top,
.ident__bottom {
  position: absolute;
  right: 5cqw;
  left: 5cqw;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  color: rgba(247, 244, 233, .46);
  font-size: 1.15cqw;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ident__top {
  top: 4.4cqw;
  padding-bottom: 1.2cqw;
  border-bottom: 1px solid rgba(var(--gold-rgb), .16);
}

.ident__bottom {
  bottom: 4.4cqw;
  padding-top: 1.2cqw;
  border-top: 1px solid rgba(var(--gold-rgb), .16);
}

.ident__center {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1cqw;
  width: 80%;
  text-align: center;
}

.ident__kicker {
  color: var(--gold-bright);
  font-size: 1.45cqw;
  letter-spacing: .44em;
  line-height: 1.4;
  text-indent: .44em;
  text-transform: uppercase;
}

.ident__sub {
  margin-top: .9cqw;
  color: rgba(247, 244, 233, .46);
  font-size: 1.15cqw;
  letter-spacing: .22em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Cartão de barras ------------------------------------------------------- */

.broadcast--bars {
  background: #101410;
}

.bars__strip {
  position: absolute;
  inset: 0 0 27% 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.bars__strip span {
  display: block;
  background: var(--bar);
}

.bars__strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .11), transparent 37%, rgba(0, 0, 0, .34));
  mix-blend-mode: overlay;
}

.bars__target {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 29cqw;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(2, 3, 3, .4);
  border-radius: 50%;
  box-shadow:
    0 0 0 5.4cqw rgba(2, 3, 3, .08),
    0 0 0 5.5cqw rgba(255, 255, 255, .05);
}

.bars__target::before,
.bars__target::after {
  content: "";
  position: absolute;
  background: rgba(2, 3, 3, .35);
}

.bars__target::before {
  top: 50%;
  left: -30%;
  width: 160%;
  height: 1px;
}

.bars__target::after {
  top: -30%;
  left: 50%;
  width: 1px;
  height: 160%;
}

.bars__plate {
  position: absolute;
  top: 54%;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 59%;
  padding: 2.1cqw 2.8cqw 2.2cqw;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(var(--gold-rgb), .6);
  background: rgba(3, 6, 7, .9);
  box-shadow: 0 .9cqw 2.6cqw rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .035);
  text-align: center;
}

.bars__brand {
  display: inline-flex;
  align-items: center;
  gap: .7cqw;
  margin-bottom: 1.1cqw;
  color: var(--gold);
  font-size: 1.12cqw;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.bars__brand svg {
  width: 2.2cqw;
  height: 2.2cqw;
}

.bars__plate strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 4.1cqw;
  font-weight: 400;
  letter-spacing: .03em;
  line-height: .95;
}

.bars__sub {
  margin-top: .85cqw;
  color: rgba(247, 244, 233, .48);
  font-size: .98cqw;
  letter-spacing: .18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.bars__lower {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 27%;
  padding: 1.5cqw 3cqw 1.6cqw;
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, #121713 0%, #080c09 100%);
}

.bars__lower-top,
.bars__lower-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  color: rgba(247, 244, 233, .46);
  font-size: .98cqw;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.bars__lower-top span:first-child {
  color: var(--gold);
}

.bars__pluge {
  display: flex;
  align-self: flex-start;
  gap: .35cqw;
  height: 2.2cqw;
  margin-block: .55cqw;
}

.bars__pluge i {
  display: block;
  width: 2.8cqw;
  background: var(--pluge);
}

.bars__lower-bottom span:nth-child(2) {
  margin-left: auto;
}

.bars__number {
  position: absolute;
  top: 4cqw;
  right: 4cqw;
  z-index: 3;
  color: rgba(0, 0, 0, .5);
  font-family: var(--font-display);
  font-size: 5.2cqw;
  line-height: 1;
}

/* Cena original de demonstração ----------------------------------------- */

.broadcast--pixel {
  background:
    radial-gradient(ellipse at 50% 70%, rgba(224, 78, 122, .32), transparent 50%),
    linear-gradient(180deg, #040712 0%, #0b1730 47%, #29142c 73%, #0a0711 100%);
}

.pixel__stars {
  position: absolute;
  inset: 0 0 32% 0;
  pointer-events: none;
}

.pixel__stars--a {
  background-image:
    radial-gradient(circle, rgba(255, 250, 224, .9) 0 .1cqw, transparent .16cqw),
    radial-gradient(circle, rgba(var(--gold-rgb), .8) 0 .1cqw, transparent .17cqw);
  background-size: 13cqw 11cqw, 23cqw 17cqw;
  background-position: 1cqw 2cqw, 8cqw 6cqw;
  opacity: .72;
}

.pixel__stars--b {
  background-image: radial-gradient(circle, rgba(183, 225, 255, .78) 0 .08cqw, transparent .15cqw);
  background-size: 31cqw 27cqw;
  background-position: 14cqw 9cqw;
  opacity: .43;
}

.pixel__sun {
  position: absolute;
  top: 16%;
  left: 50%;
  width: 31cqw;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe19a 0%, #f6a45e 44%, #e25779 100%);
  box-shadow: 0 0 7cqw rgba(239, 118, 112, .34);
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 11%, transparent 11% 15%);
  mask-image: repeating-linear-gradient(to bottom, #000 0 11%, transparent 11% 15%);
  opacity: .96;
}

.pixel__mountains {
  position: absolute;
  right: -7%;
  bottom: 16%;
  left: -7%;
  height: 36%;
  pointer-events: none;
}

.pixel__mountains--far {
  background: #1a1a3b;
  clip-path: polygon(0 100%, 0 77%, 7% 62%, 13% 74%, 20% 49%, 27% 69%, 33% 58%, 40% 78%, 48% 42%, 55% 66%, 62% 51%, 70% 73%, 78% 43%, 86% 68%, 92% 55%, 100% 72%, 100% 100%);
  opacity: .92;
}

.pixel__mountains--near {
  bottom: 8%;
  height: 31%;
  background: #0d0b1e;
  clip-path: polygon(0 100%, 0 77%, 8% 45%, 15% 72%, 25% 34%, 37% 70%, 45% 52%, 54% 83%, 64% 42%, 72% 63%, 81% 32%, 89% 60%, 100% 44%, 100% 100%);
}

.pixel__grid {
  position: absolute;
  right: -9%;
  bottom: -8%;
  left: -9%;
  height: 36%;
  transform: perspective(16cqw) rotateX(61deg);
  transform-origin: center bottom;
  background-image:
    linear-gradient(rgba(255, 108, 149, .33) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 108, 149, .33) 1px, transparent 1px);
  background-size: 4.8cqw 3.1cqw;
  opacity: .64;
  mask-image: linear-gradient(to top, #000 15%, transparent 90%);
}

.pixel__top,
.pixel__footer {
  position: absolute;
  right: 4.4cqw;
  left: 4.4cqw;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  color: rgba(247, 244, 233, .46);
  font-size: 1.05cqw;
  letter-spacing: .18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.pixel__top {
  top: 4cqw;
  padding-bottom: 1.1cqw;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.pixel__footer {
  bottom: 4cqw;
  padding-top: 1.1cqw;
  border-top: 1px solid rgba(255, 255, 255, .11);
}

.pixel__top span:first-child,
.pixel__footer span:first-child {
  color: var(--gold-bright);
}

.pixel__title {
  position: absolute;
  top: 9.5%;
  left: 6%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: .65cqw;
  max-width: 70%;
}

.pixel__title > span {
  color: var(--gold);
  font-size: 1.08cqw;
  letter-spacing: .22em;
  line-height: 1.35;
  text-transform: uppercase;
}

.pixel__title strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 11.5cqw;
  font-weight: 400;
  letter-spacing: .015em;
  line-height: .78;
  text-shadow: .48cqw .45cqw 0 #df4d77, -.24cqw -.22cqw 0 #43c9cd;
}

.pixel__title small {
  margin-top: .8cqw;
  color: rgba(247, 244, 233, .47);
  font-size: .9cqw;
  letter-spacing: .15em;
  line-height: 1.35;
  text-transform: uppercase;
}

.pixel__ship {
  position: absolute;
  top: 47%;
  left: 53%;
  z-index: 4;
  width: 9cqw;
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 1.2cqw rgba(243, 225, 174, .28));
  animation: ship-float 4.8s steps(2, end) infinite;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes crt-boot-picture {
  0% {
    opacity: 0;
    transform: scale(1.08, .008);
  }
  24% {
    opacity: .1;
    transform: scale(1.06, .012);
  }
  45% {
    opacity: .74;
    transform: scale(1.02, .16);
  }
  67% {
    opacity: 1;
    transform: scale(1, 1.025);
  }
  82% {
    opacity: 1;
    transform: scale(1.005, .995);
  }
  100% {
    opacity: 1;
    transform: scale(1.003);
  }
}

@keyframes crt-shutdown {
  0% {
    opacity: 1;
    transform: scale(1.003);
    filter: brightness(var(--crt-brightness, 1)) contrast(var(--crt-contrast, 1)) saturate(var(--crt-saturation, 1));
  }
  28% {
    opacity: 1;
    transform: scale(1.018, .56);
    filter: brightness(1.7) contrast(1.2) saturate(1.1);
  }
  64% {
    opacity: 1;
    transform: scale(.87, .013);
    filter: brightness(3.6) contrast(1.1) saturate(.8);
  }
  82% {
    opacity: .92;
    transform: scale(.38, .006);
    filter: brightness(5.4) saturate(.6);
  }
  100% {
    opacity: 0;
    transform: scale(.015, .003);
    filter: brightness(0);
  }
}

@keyframes boot-line {
  0% {
    opacity: 0;
    transform: translateY(-50%) scaleX(.02) scaleY(.6);
  }
  8% {
    opacity: 1;
  }
  28% {
    opacity: 1;
    transform: translateY(-50%) scaleX(1) scaleY(1);
  }
  50% {
    opacity: .75;
    transform: translateY(-50%) scaleX(1) scaleY(3);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scaleX(1) scaleY(1);
  }
}

@keyframes boot-flash {
  0%, 26% {
    opacity: 0;
    transform: scale(1, .002);
  }
  33% {
    opacity: 1;
    transform: scale(1, .004);
  }
  47% {
    opacity: .96;
    transform: scale(1, .17);
  }
  61% {
    opacity: .68;
    transform: scale(1, 1);
  }
  78%, 100% {
    opacity: 0;
    transform: scale(1, 1);
  }
}

@keyframes boot-static {
  0% {
    opacity: 0;
  }
  14% {
    opacity: .64;
  }
  38% {
    opacity: .24;
  }
  55% {
    opacity: .44;
  }
  76%, 100% {
    opacity: 0;
  }
}

@keyframes boot-dot {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.1);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
  55% {
    opacity: .8;
    transform: translate(-50%, -50%) scale(.7);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.15);
  }
}

@keyframes off-static {
  0% {
    opacity: .2;
  }
  30% {
    opacity: .46;
  }
  100% {
    opacity: 0;
  }
}

@keyframes off-flash {
  0% {
    opacity: 0;
    transform: scale(1, .02);
  }
  35% {
    opacity: .45;
    transform: scale(1, .06);
  }
  66% {
    opacity: .95;
    transform: scale(1, .015);
  }
  82% {
    opacity: .8;
    transform: scale(.75, .004);
  }
  100% {
    opacity: 0;
    transform: scale(.02, .002);
  }
}

@keyframes off-line {
  0% {
    opacity: 0;
    transform: translateY(-50%) scaleX(1) scaleY(1);
  }
  48% {
    opacity: 0;
  }
  64% {
    opacity: 1;
    transform: translateY(-50%) scaleX(1) scaleY(1);
  }
  82% {
    opacity: 1;
    transform: translateY(-50%) scaleX(.55) scaleY(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scaleX(.015) scaleY(1);
  }
}

@keyframes off-dot {
  0%, 58% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.05);
  }
  69% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
  }
  88% {
    opacity: .8;
    transform: translate(-50%, -50%) scale(.7);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.08);
  }
}

@keyframes noise-shift {
  0% { background-position: 0 0; }
  25% { background-position: 3rem -2rem; }
  50% { background-position: -2rem 1rem; }
  75% { background-position: 1rem 3rem; }
  100% { background-position: -3rem -1rem; }
}

@keyframes crt-roll {
  0% { transform: translateY(0); }
  100% { transform: translateY(570%); }
}

@keyframes signal-drift {
  0%, 93%, 100% { transform: translate3d(0, 0, 0); }
  94% { transform: translate3d(.08%, 0, 0); }
  95% { transform: translate3d(-.05%, .04%, 0); }
  96% { transform: translate3d(0, 0, 0); }
}

@keyframes tuning-static {
  0% { opacity: 0; }
  18% { opacity: .7; }
  40% { opacity: .28; }
  67% { opacity: .56; }
  100% { opacity: 0; }
}

@keyframes tuning-glitch {
  0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1.005); filter: brightness(1.1); }
  18% { opacity: .72; transform: translate3d(-.35%, 1.4%, 0) scale(1.006); filter: brightness(1.8); }
  34% { opacity: .4; transform: translate3d(.2%, -1.1%, 0) scale(1.008); }
  58% { opacity: .9; transform: translate3d(0, .2%, 0) scale(1.003); filter: brightness(1.2); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1.003); filter: none; }
}

@keyframes ship-float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 1.2cqw)); }
}

/* --------------------------------------------------------------------------
   Movimento reduzido
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .fx--noise,
  .fx--rollbar,
  .pixel__stars--b,
  .pixel__ship {
    animation: none !important;
  }

  .transition-fx__line,
  .transition-fx__dot {
    display: none;
  }

  .transition-fx__flash {
    animation: reduced-flash 520ms ease both !important;
  }

  .screen__picture {
    animation-duration: .35s !important;
  }

  .screen.is-tuning .tuning-fx,
  .screen.is-tuning .screen__signal {
    animation-duration: .3s !important;
  }
}

@keyframes reduced-flash {
  0% { opacity: 0; transform: scale(1); }
  40% { opacity: .8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}