/* FARA Match Liquid Glass + Avatar World 42.3.0 */
body.fara-horizon-4040 #fzMatchDeck {
  --fml-blue: #3ca8ff;
  --fml-violet: #7657ff;
  --fml-cyan: #77e6ff;
  --fml-ink: #070a12;
  display: block !important;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

body.fara-horizon-4040 #fzMatchDeck > .fml-source-bank {
  display: none !important;
}

html[data-fara-match-preview="1"] #f409Access {
  display: none !important;
}

html[data-fara-match^="liquid-"] body.fara-horizon-4040 .fz-match-legend {
  display: none !important;
}

body.fara-horizon-4040 .fml-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 18px auto 10px;
  padding: clamp(16px, 2.5vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(158, 194, 255, .16);
  border-radius: 28px;
  background:
    radial-gradient(720px 360px at 18% -10%, rgba(60, 168, 255, .13), transparent 63%),
    radial-gradient(620px 360px at 92% 108%, rgba(118, 87, 255, .14), transparent 60%),
    linear-gradient(155deg, rgba(10, 15, 27, .92), rgba(5, 8, 16, .97));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .04);
  color: #f3f7ff;
  font-family: inherit;
}

body.fara-horizon-4040 .fml-shell::before,
body.fara-horizon-4040 .fml-shell::after {
  position: absolute;
  z-index: -1;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  content: '';
  pointer-events: none;
  filter: blur(58px);
  opacity: .18;
}

body.fara-horizon-4040 .fml-shell::before {
  top: -100px;
  left: -70px;
  background: var(--fml-blue);
}

body.fara-horizon-4040 .fml-shell::after {
  right: -75px;
  bottom: -100px;
  background: var(--fml-violet);
}

body.fara-horizon-4040 .fml-head {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

body.fara-horizon-4040 .fml-head-copy small {
  display: block;
  margin-bottom: 6px;
  color: #79d8ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}

body.fara-horizon-4040 .fml-head-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(23px, 4vw, 38px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

body.fara-horizon-4040 .fml-head-copy p {
  max-width: 600px;
  margin: 8px 0 0;
  color: #96a8c4;
  font-size: 12px;
  line-height: 1.5;
}

body.fara-horizon-4040 .fml-counter {
  flex: 0 0 auto;
  display: grid;
  min-width: 68px;
  padding: 9px 12px;
  border: 1px solid rgba(132, 183, 255, .14);
  border-radius: 14px;
  background: rgba(18, 27, 44, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  text-align: right;
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}

body.fara-horizon-4040 .fml-counter b {
  color: #eff7ff;
  font-size: 13px;
}

body.fara-horizon-4040 .fml-counter small {
  color: #67dcb3;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .17em;
}

body.fara-horizon-4040 .fml-filters {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 1px 8px;
  scrollbar-width: none;
}

body.fara-horizon-4040 .fml-filters::-webkit-scrollbar {
  display: none;
}

body.fara-horizon-4040 .fml-filters button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(132, 160, 216, .14);
  border-radius: 999px;
  background: rgba(13, 20, 34, .68);
  color: #91a0ba;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color .22s ease, background .22s ease, color .22s ease, transform .22s ease;
}

body.fara-horizon-4040 .fml-filters button:hover,
body.fara-horizon-4040 .fml-filters button.active {
  border-color: rgba(100, 188, 255, .42);
  background: linear-gradient(135deg, rgba(60, 168, 255, .2), rgba(118, 87, 255, .2));
  color: #fff;
  transform: translateY(-1px);
}

body.fara-horizon-4040 .fml-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

body.fara-horizon-4040 .fml-viewport {
  position: relative;
  min-width: 0;
  min-height: 494px;
  overflow: hidden;
  outline: none;
  perspective: 1200px;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

body.fara-horizon-4040 .fml-viewport.dragging {
  cursor: grabbing;
}

body.fara-horizon-4040 .fml-track {
  position: absolute;
  inset: 25px auto auto 0;
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 2.4vw, 24px);
  width: max-content;
  will-change: transform;
}

body.fara-horizon-4040 .fml-track[data-animate="1"] {
  transition: transform .62s cubic-bezier(.2, .82, .18, 1);
}

body.fara-horizon-4040 .fml-track[data-animate="0"] {
  transition: none;
}

body.fara-horizon-4040 .fml-slide {
  position: relative;
  flex: 0 0 min(76vw, 410px);
  width: min(76vw, 410px);
  min-height: 430px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(176, 211, 255, .17);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(30, 42, 68, .56), rgba(10, 16, 30, .7) 48%, rgba(9, 12, 23, .8)),
    rgba(9, 14, 25, .72);
  box-shadow:
    0 30px 76px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(255, 255, 255, .11),
    inset 0 -1px 0 rgba(102, 140, 214, .08);
  transform: perspective(900px) rotateY(0) scale(.82);
  transform-origin: center;
  opacity: .3;
  filter: blur(3.2px) saturate(.65);
  transition: transform .62s cubic-bezier(.2, .82, .18, 1), opacity .46s ease, filter .46s ease, border-color .46s ease, box-shadow .46s ease;
  pointer-events: none;
  -webkit-backdrop-filter: blur(30px) saturate(155%);
  backdrop-filter: blur(30px) saturate(155%);
}

body.fara-horizon-4040 .fml-slide[data-position="prev"] {
  transform: perspective(900px) rotateY(10deg) translateY(13px) scale(.84);
}

body.fara-horizon-4040 .fml-slide[data-position="next"] {
  transform: perspective(900px) rotateY(-10deg) translateY(13px) scale(.84);
}

body.fara-horizon-4040 .fml-slide[data-position="active"] {
  z-index: 3;
  border-color: rgba(112, 197, 255, .36);
  opacity: 1;
  filter: none;
  transform: perspective(900px) rotateY(0) translateY(0) scale(1);
  box-shadow:
    0 34px 96px rgba(0, 0, 0, .55),
    0 0 48px rgba(60, 168, 255, .1),
    0 0 72px rgba(118, 87, 255, .08),
    inset 0 1px 0 rgba(255, 255, 255, .19),
    inset 0 -1px 0 rgba(114, 146, 224, .12);
  pointer-events: auto;
}

body.fara-horizon-4040 .fml-slide[data-position="far"] {
  opacity: .08;
  transform: perspective(900px) scale(.72);
}

body.fara-horizon-4040 .fml-slide::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(240px 180px at 16% 7%, rgba(141, 229, 255, .16), transparent 68%),
    radial-gradient(300px 260px at 94% 90%, rgba(123, 91, 255, .16), transparent 70%);
  content: '';
  pointer-events: none;
}

body.fara-horizon-4040 .fml-sheen {
  position: absolute;
  inset: -42% auto -42% -58%;
  z-index: 4;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
  filter: blur(4px);
  transform: rotate(18deg);
  pointer-events: none;
}

body.fara-horizon-4040 .fml-slide[data-position="active"] .fml-sheen {
  animation: fml-sheen 5.8s ease-in-out infinite;
}

body.fara-horizon-4040 .fml-caustic {
  position: absolute;
  right: -90px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border: 28px solid rgba(106, 167, 255, .08);
  border-radius: 42% 58% 63% 37%;
  filter: blur(2px);
  pointer-events: none;
  animation: fml-caustic 12s linear infinite;
}

body.fara-horizon-4040 .fml-type {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 13px;
  padding: 0 9px;
  border: 1px solid rgba(119, 211, 255, .2);
  border-radius: 999px;
  background: rgba(37, 84, 132, .16);
  color: #8bddff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}

body.fara-horizon-4040 .fml-card-content {
  position: relative;
  z-index: 3;
  height: calc(100% - 38px);
}

body.fara-horizon-4040 .fml-source-card {
  width: 100% !important;
  min-height: 340px !important;
  max-height: 365px;
  margin: 0 !important;
  padding: 7px 4px !important;
  overflow: auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f2f6ff !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(111, 166, 244, .28) transparent;
}

body.fara-horizon-4040 .fml-source-card > .f407-match-banner,
body.fara-horizon-4040 .fml-source-card > .f407-flow-bg {
  opacity: .22 !important;
}

body.fara-horizon-4040 .fml-source-card h3 {
  color: #fff !important;
  font-size: clamp(22px, 3vw, 31px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em;
}

body.fara-horizon-4040 .fml-source-card p {
  color: #b8c5da !important;
  font-size: 13px !important;
  line-height: 1.58 !important;
}

body.fara-horizon-4040 .fml-source-card img,
body.fara-horizon-4040 .fml-source-card video {
  max-height: 190px !important;
  object-fit: cover !important;
  border-radius: 15px;
}

body.fara-horizon-4040 .fml-source-card > footer,
body.fara-horizon-4040 .fml-source-card .f406-match-actions,
body.fara-horizon-4040 .fml-source-card .f408-actions {
  display: none !important;
}

body.fara-horizon-4040 .fml-fallback {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 5px 3px;
}

body.fara-horizon-4040 .fml-fallback-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

body.fara-horizon-4040 .fml-avatar {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid hsla(var(--fml-hue), 92%, 76%, .4);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, hsl(var(--fml-hue) 95% 77%), hsl(var(--fml-hue) 76% 51%) 46%, #11192c 78%);
  box-shadow: 0 0 28px hsla(var(--fml-hue), 90%, 60%, .16);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

body.fara-horizon-4040 .fml-fallback-identity b,
body.fara-horizon-4040 .fml-fallback-identity small {
  display: block;
}

body.fara-horizon-4040 .fml-fallback-identity b {
  color: #f7f9ff;
  font-size: 14px;
}

body.fara-horizon-4040 .fml-fallback-identity small {
  margin-top: 3px;
  color: #7f90ac;
  font-size: 10px;
}

body.fara-horizon-4040 .fml-npc-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 7px;
  border: 1px solid rgba(103, 195, 255, .2);
  border-radius: 999px;
  background: rgba(52, 141, 226, .1);
  color: #75cdff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .09em;
}

body.fara-horizon-4040 .fml-fallback h3 {
  margin: 22px 0 10px;
  color: #fff;
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

body.fara-horizon-4040 .fml-fallback p {
  margin: 0;
  color: #b8c5da;
  font-size: 13px;
  line-height: 1.62;
}

body.fara-horizon-4040 .fml-transparency {
  display: block;
  margin-top: auto;
  padding-top: 20px;
  color: #73839f;
  font-size: 9px;
}

body.fara-horizon-4040 .fml-arrow {
  position: relative;
  z-index: 7;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(149, 187, 247, .17);
  border-radius: 50%;
  background: rgba(14, 22, 37, .7);
  color: #cad9ef;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  cursor: pointer;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

body.fara-horizon-4040 .fml-arrow span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.fara-horizon-4040 .fml-arrow:hover:not(:disabled) {
  border-color: rgba(92, 192, 255, .48);
  color: #fff;
  transform: scale(1.06);
}

body.fara-horizon-4040 .fml-arrow:disabled {
  opacity: .22;
  cursor: default;
}

body.fara-horizon-4040 .fml-arrow svg,
body.fara-horizon-4040 .fml-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.fara-horizon-4040 .fml-footer {
  position: relative;
  z-index: 5;
  margin-top: -6px;
}

body.fara-horizon-4040 .fml-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.fara-horizon-4040 .fml-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(137, 166, 220, .16);
  border-radius: 13px;
  background: rgba(12, 19, 33, .7);
  color: #b4c1d6;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

body.fara-horizon-4040 .fml-action:hover:not(:disabled) {
  border-color: rgba(106, 188, 255, .38);
  color: #fff;
  transform: translateY(-2px);
}

body.fara-horizon-4040 .fml-action.active {
  border-color: rgba(105, 190, 255, .44);
  background: rgba(60, 139, 236, .15);
  color: #8fdcff;
}

body.fara-horizon-4040 .fml-action.fml-fara {
  border-color: transparent;
  background: linear-gradient(135deg, #268ee7, #7657ff);
  color: #fff;
  box-shadow: 0 10px 32px rgba(74, 109, 255, .2);
}

body.fara-horizon-4040 .fml-action:disabled {
  opacity: .32;
  cursor: default;
}

body.fara-horizon-4040 .fml-status {
  min-height: 18px;
  margin: 11px 0 0;
  overflow: hidden;
  color: #7788a3;
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.fara-horizon-4040 .fml-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 18px;
  margin-top: 4px;
}

body.fara-horizon-4040 .fml-dots button {
  width: 5px;
  height: 5px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #3b465a;
  color: transparent;
  cursor: pointer;
  transition: width .24s ease, background .24s ease, box-shadow .24s ease;
}

body.fara-horizon-4040 .fml-dots button.active {
  width: 20px;
  background: linear-gradient(90deg, var(--fml-blue), var(--fml-violet));
  box-shadow: 0 0 16px rgba(67, 166, 255, .4);
}

body.fara-horizon-4040 .fml-toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 1000000;
  max-width: min(88vw, 460px);
  padding: 10px 14px;
  border: 1px solid rgba(128, 179, 255, .24);
  border-radius: 13px;
  background: rgba(7, 12, 23, .92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
  color: #eff6ff;
  font-size: 11px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

body.fara-horizon-4040 .fml-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.fara-horizon-4040 .fml-leave-left {
  opacity: 0 !important;
  transform: translateX(-120px) rotate(-5deg) scale(.92) !important;
}

body.fara-horizon-4040 .fml-shell button:focus-visible,
body.fara-horizon-4040 .fml-viewport:focus-visible,
body.fara-horizon-4040 .fml-slide:focus-visible {
  outline: 2px solid #72d8ff;
  outline-offset: 3px;
}

@keyframes fml-sheen {
  0%, 18% { transform: translateX(0) rotate(18deg); opacity: 0; }
  38% { opacity: .9; }
  62%, 100% { transform: translateX(640px) rotate(18deg); opacity: 0; }
}

@keyframes fml-caustic {
  to { transform: rotate(360deg); }
}

@media (max-width: 780px) {
  body.fara-horizon-4040 .fml-shell {
    margin: 10px 0 6px;
    padding: 15px 10px 18px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  body.fara-horizon-4040 .fml-head {
    align-items: flex-start;
    padding: 0 4px;
  }

  body.fara-horizon-4040 .fml-head-copy p {
    max-width: 260px;
    font-size: 10px;
  }

  body.fara-horizon-4040 .fml-counter {
    min-width: 58px;
    padding: 8px 9px;
  }

  body.fara-horizon-4040 .fml-filters {
    margin: 0 -2px;
    padding-inline: 4px;
  }

  body.fara-horizon-4040 .fml-stage {
    display: block;
  }

  body.fara-horizon-4040 .fml-viewport {
    min-height: 468px;
  }

  body.fara-horizon-4040 .fml-track {
    inset-block-start: 22px;
    gap: 13px;
  }

  body.fara-horizon-4040 .fml-slide {
    flex-basis: min(80vw, 350px);
    width: min(80vw, 350px);
    min-height: 408px;
    padding: 15px;
    border-radius: 25px;
  }

  body.fara-horizon-4040 .fml-source-card {
    min-height: 320px !important;
    max-height: 340px;
  }

  body.fara-horizon-4040 .fml-arrow {
    position: absolute;
    top: 212px;
    width: 38px;
    height: 38px;
  }

  body.fara-horizon-4040 .fml-prev {
    left: 1px;
  }

  body.fara-horizon-4040 .fml-next {
    right: 1px;
  }

  body.fara-horizon-4040 .fml-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.fara-horizon-4040 .fml-action {
    min-height: 43px;
  }

  body.fara-horizon-4040 .fml-toast {
    bottom: 78px;
  }
}

/* 42.3 — living liquid, original procedural avatars and spatial mode */
body.fara-horizon-4040 .fml-head-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

body.fara-horizon-4040 .fml-head-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(137, 181, 241, .16);
  border-radius: 14px;
  background: rgba(14, 23, 40, .66);
  color: #b8c9e2;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  transition: transform .24s ease, color .24s ease, border-color .24s ease, box-shadow .24s ease;
}

body.fara-horizon-4040 .fml-head-button:hover {
  border-color: rgba(111, 211, 255, .42);
  box-shadow: 0 8px 30px rgba(61, 147, 255, .14);
  color: #fff;
  transform: translateY(-2px);
}

body.fara-horizon-4040 .fml-head-button > svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

body.fara-horizon-4040 .fml-user-avatar {
  position: relative;
  display: block;
  width: 27px;
  height: 27px;
  margin-left: -5px;
  overflow: hidden;
  border: 1px solid rgba(111, 220, 255, .35);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(80, 165, 255, .32), rgba(12, 20, 38, .95));
}

body.fara-horizon-4040 .fml-user-avatar .fml-avatar-svg {
  position: absolute;
  top: 1px;
  left: 2px;
  width: 23px;
  height: 31px;
}

body.fara-horizon-4040 .fml-viewport {
  min-height: 460px;
}

body.fara-horizon-4040 .fml-slide {
  --fml-light-x: 50%;
  --fml-light-y: 12%;
  --fml-tilt-x: 0deg;
  --fml-tilt-y: 0deg;
  display: flex;
  flex-direction: column;
  min-height: 412px;
  background:
    linear-gradient(145deg, rgba(41, 60, 92, .48), rgba(11, 18, 34, .74) 48%, rgba(8, 11, 23, .86)),
    rgba(9, 14, 25, .76);
}

body.fara-horizon-4040 .fml-slide[data-position="active"] {
  transform: perspective(980px) rotateX(var(--fml-tilt-y)) rotateY(var(--fml-tilt-x)) translateY(0) scale(1);
}

body.fara-horizon-4040 .fml-slide::after {
  position: absolute;
  inset: -1px;
  z-index: 2;
  border: 1px solid transparent;
  border-radius: inherit;
  background:
    radial-gradient(300px circle at var(--fml-light-x) var(--fml-light-y), rgba(222, 250, 255, .2), transparent 45%),
    linear-gradient(125deg, rgba(255, 255, 255, .1), transparent 29%, transparent 70%, rgba(113, 100, 255, .09));
  background-clip: padding-box;
  content: '';
  opacity: .7;
  pointer-events: none;
  transition: background-position .12s linear, opacity .3s ease;
}

body.fara-horizon-4040 .fml-slide[data-position="active"]::after {
  opacity: 1;
}

body.fara-horizon-4040 .fml-liquid {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .34;
}

body.fara-horizon-4040 .fml-liquid i {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 38% 62% 66% 34% / 43% 39% 61% 57%;
  background: radial-gradient(circle at 34% 30%, rgba(168, 238, 255, .34), rgba(55, 148, 255, .08) 44%, transparent 69%);
  filter: blur(14px) saturate(170%);
  will-change: transform;
}

body.fara-horizon-4040 .fml-liquid i:nth-child(1) {
  top: -86px;
  left: -74px;
  animation: fml-liquid-one 9s ease-in-out infinite alternate;
}

body.fara-horizon-4040 .fml-liquid i:nth-child(2) {
  right: -82px;
  bottom: 10%;
  background: radial-gradient(circle at 38% 34%, rgba(162, 124, 255, .33), rgba(118, 87, 255, .07) 48%, transparent 70%);
  animation: fml-liquid-two 12s ease-in-out infinite alternate;
}

body.fara-horizon-4040 .fml-liquid i:nth-child(3) {
  bottom: -130px;
  left: 20%;
  width: 290px;
  background: radial-gradient(circle, rgba(84, 230, 191, .2), transparent 67%);
  animation: fml-liquid-three 14s linear infinite;
}

body.fara-horizon-4040 .fml-slide:not([data-position="active"]) .fml-liquid {
  opacity: .12;
}

body.fara-horizon-4040 .fml-settle {
  animation: fml-card-spring .72s cubic-bezier(.16, 1.15, .3, 1);
}

body.fara-horizon-4040 .fml-avatar-world {
  position: relative;
  z-index: 4;
  flex: 0 0 130px;
  width: calc(100% + 8px);
  height: 130px;
  margin: -8px -4px 8px;
  overflow: hidden;
  border: 1px solid rgba(131, 213, 255, .14);
  border-radius: 21px;
  background:
    linear-gradient(rgba(93, 180, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 180, 255, .055) 1px, transparent 1px),
    radial-gradient(circle at 50% 38%, rgba(72, 154, 255, .24), transparent 38%),
    linear-gradient(180deg, rgba(17, 32, 60, .52), rgba(7, 11, 24, .72));
  background-size: 24px 24px, 24px 24px, auto, auto;
  perspective: 700px;
}

body.fara-horizon-4040 .fml-avatar-portal {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(111, 218, 255, .26);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(67, 173, 255, .12), inset 0 0 38px rgba(117, 88, 255, .12);
  transform: translateX(-50%);
  animation: fml-avatar-portal 8s ease-in-out infinite;
}

body.fara-horizon-4040 .fml-avatar-portal::before,
body.fara-horizon-4040 .fml-avatar-portal::after {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(146, 111, 255, .25);
  border-radius: inherit;
  content: '';
  animation: fml-avatar-orbit 18s linear infinite;
}

body.fara-horizon-4040 .fml-avatar-portal::after {
  inset: 30px;
  border-color: rgba(95, 224, 194, .2);
  animation-direction: reverse;
  animation-duration: 12s;
}

body.fara-horizon-4040 .fml-avatar-floor {
  position: absolute;
  right: 10%;
  bottom: -15px;
  left: 10%;
  height: 45px;
  border: 1px solid rgba(95, 209, 255, .18);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(74, 167, 255, .23), transparent 67%);
  transform: rotateX(68deg);
  animation: fml-avatar-floor 4s ease-in-out infinite;
}

body.fara-horizon-4040 .fml-avatar-svg {
  position: absolute;
  z-index: 3;
  top: -5px;
  left: 50%;
  width: 112px;
  height: 146px;
  overflow: visible;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .36));
  transform: translateX(-50%) translateZ(16px);
}

body.fara-horizon-4040 .fml-avatar-body {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: fml-avatar-breathe 4.2s ease-in-out infinite;
}

body.fara-horizon-4040 .fml-avatar-head {
  transform-box: fill-box;
  transform-origin: 50% 90%;
  animation: fml-avatar-look 7s ease-in-out infinite;
}

body.fara-horizon-4040 .fml-avatar-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: fml-avatar-blink 6.4s linear infinite;
}

body.fara-horizon-4040 .fml-avatar-orbits {
  transform-box: fill-box;
  transform-origin: center;
  animation: fml-avatar-orbit 16s linear infinite;
}

body.fara-horizon-4040 .fml-avatar-atom {
  transform-box: fill-box;
  transform-origin: center;
  animation: fml-avatar-atom 3s ease-in-out infinite;
}

body.fara-horizon-4040 .fml-card-content {
  z-index: 4;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

body.fara-horizon-4040 .fml-slide[data-fml-npc="1"] .fml-source-card {
  min-height: 150px !important;
  max-height: 176px;
}

body.fara-horizon-4040 .fml-fallback {
  min-height: 150px;
}

body.fara-horizon-4040 .fml-fallback-identity {
  margin-bottom: 8px;
}

body.fara-horizon-4040 .fml-fallback h3 {
  margin: 10px 0 7px;
  font-size: clamp(20px, 2.5vw, 27px);
}

body.fara-horizon-4040 .fml-fallback p {
  font-size: 11px;
  line-height: 1.48;
}

body.fara-horizon-4040 .fml-transparency {
  padding-top: 10px;
}

body.fara-horizon-4040 .fml-avatar-modal {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(3, 6, 14, .76);
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  backdrop-filter: blur(22px) saturate(130%);
  transition: opacity .25s ease;
}

body.fara-horizon-4040 .fml-avatar-modal.open {
  opacity: 1;
  pointer-events: auto;
}

body.fara-horizon-4040 .fml-avatar-panel {
  width: min(760px, 96%);
  max-height: 92%;
  padding: 18px;
  overflow: auto;
  border: 1px solid rgba(143, 206, 255, .25);
  border-radius: 26px;
  background:
    radial-gradient(500px 280px at 18% 0, rgba(60, 168, 255, .17), transparent 62%),
    linear-gradient(145deg, rgba(22, 34, 57, .96), rgba(7, 11, 23, .98));
  box-shadow: 0 38px 120px rgba(0, 0, 0, .72), inset 0 1px 0 rgba(255, 255, 255, .1);
  transform: translateY(18px) scale(.96);
  transition: transform .35s cubic-bezier(.18, 1.1, .3, 1);
}

body.fara-horizon-4040 .fml-avatar-modal.open .fml-avatar-panel {
  transform: none;
}

body.fara-horizon-4040 .fml-avatar-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

body.fara-horizon-4040 .fml-avatar-panel-head small {
  color: #74dcff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .18em;
}

body.fara-horizon-4040 .fml-avatar-panel-head h3 {
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(22px, 4vw, 34px);
  letter-spacing: -.04em;
}

body.fara-horizon-4040 .fml-avatar-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(144, 179, 233, .18);
  border-radius: 50%;
  background: rgba(15, 23, 38, .7);
  color: #d9e4f4;
  font-size: 22px;
  cursor: pointer;
}

body.fara-horizon-4040 .fml-avatar-builder {
  display: grid;
  grid-template-columns: minmax(240px, .82fr) minmax(290px, 1.18fr);
  gap: 18px;
}

body.fara-horizon-4040 .fml-avatar-preview {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(130, 207, 255, .17);
  border-radius: 21px;
  background: linear-gradient(180deg, rgba(20, 44, 80, .55), rgba(7, 11, 23, .85));
}

body.fara-horizon-4040 .fml-avatar-preview .fml-avatar-world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
}

body.fara-horizon-4040 .fml-avatar-preview .fml-avatar-svg {
  top: 25px;
  width: 260px;
  height: 350px;
}

body.fara-horizon-4040 .fml-avatar-preview .fml-avatar-portal {
  top: 56px;
  width: 280px;
  height: 280px;
}

body.fara-horizon-4040 .fml-avatar-controls {
  display: grid;
  align-content: start;
  gap: 11px;
}

body.fara-horizon-4040 .fml-avatar-options {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body.fara-horizon-4040 .fml-avatar-options legend {
  float: left;
  width: 72px;
  color: #8fa1bd;
  font-size: 9px;
  font-weight: 800;
}

body.fara-horizon-4040 .fml-avatar-option {
  display: grid;
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(138, 174, 228, .18);
  border-radius: 9px;
  background: var(--fml-swatch, rgba(19, 29, 48, .8));
  color: #b8c8de;
  font: inherit;
  font-size: 6px;
  font-weight: 900;
  cursor: pointer;
}

body.fara-horizon-4040 .fml-avatar-option.active {
  border-color: #8de4ff;
  box-shadow: 0 0 0 2px rgba(82, 187, 255, .17), 0 0 20px rgba(77, 175, 255, .2);
  transform: scale(1.08);
}

body.fara-horizon-4040 .fml-avatar-panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 3px;
}

body.fara-horizon-4040 .fml-avatar-panel-actions button {
  min-height: 42px;
  border: 1px solid rgba(132, 177, 235, .2);
  border-radius: 12px;
  background: rgba(16, 25, 43, .8);
  color: #c6d5ea;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

body.fara-horizon-4040 .fml-avatar-panel-actions button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2f9ce9, #7657ff);
  color: #fff;
}

body.fara-horizon-4040 .fml-avatar-note {
  margin: 0;
  color: #71839f;
  font-size: 8px;
  line-height: 1.45;
}

html.fml-spatial-open {
  overflow: hidden !important;
}

body.fara-horizon-4040 .fml-shell.fml-spatial {
  position: fixed;
  inset: 0;
  z-index: 999999;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: clamp(16px, 3vw, 42px);
  overflow: auto;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(54, 154, 255, .2), transparent 26%),
    radial-gradient(circle at 16% 78%, rgba(116, 85, 255, .17), transparent 30%),
    linear-gradient(180deg, #050815, #09071a 62%, #02040a);
}

body.fara-horizon-4040 .fml-shell.fml-spatial .fml-stage::before {
  position: absolute;
  right: -10vw;
  bottom: 0;
  left: -10vw;
  z-index: -1;
  height: 55%;
  background-image: linear-gradient(rgba(87, 157, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(87, 157, 255, .12) 1px, transparent 1px);
  background-size: 54px 38px;
  content: '';
  opacity: .52;
  transform: perspective(440px) rotateX(58deg) translateY(28%);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 78%);
  mask-image: linear-gradient(to top, #000, transparent 78%);
}

body.fara-horizon-4040 .fml-shell.fml-spatial .fml-viewport {
  min-height: min(68vh, 720px);
}

body.fara-horizon-4040 .fml-shell.fml-spatial .fml-slide {
  flex-basis: min(62vw, 470px);
  width: min(62vw, 470px);
  min-height: min(61vh, 590px);
}

body.fara-horizon-4040 .fml-shell.fml-spatial .fml-slide[data-position="prev"] {
  transform: perspective(1050px) rotateY(18deg) translateY(32px) scale(.8);
}

body.fara-horizon-4040 .fml-shell.fml-spatial .fml-slide[data-position="next"] {
  transform: perspective(1050px) rotateY(-18deg) translateY(32px) scale(.8);
}

body.fara-horizon-4040 .fml-shell.fml-xr-live {
  outline: 2px solid rgba(92, 221, 255, .72);
}

.fml-xr-canvas {
  position: fixed;
  inset: 0;
  z-index: 999998;
  width: 100vw;
  height: 100vh;
  background: #030713;
}

@keyframes fml-liquid-one {
  to { transform: translate(145px, 112px) rotate(85deg) scale(1.22); }
}

@keyframes fml-liquid-two {
  to { transform: translate(-132px, -76px) rotate(-110deg) scale(.84); }
}

@keyframes fml-liquid-three {
  to { transform: rotate(360deg) translateX(42px) rotate(-360deg); }
}

@keyframes fml-card-spring {
  0% { transform: perspective(980px) rotateX(var(--fml-tilt-y)) rotateY(var(--fml-tilt-x)) translateY(18px) scale(.94); }
  62% { transform: perspective(980px) rotateX(var(--fml-tilt-y)) rotateY(var(--fml-tilt-x)) translateY(-4px) scale(1.018); }
  100% { transform: perspective(980px) rotateX(var(--fml-tilt-y)) rotateY(var(--fml-tilt-x)) translateY(0) scale(1); }
}

@keyframes fml-avatar-breathe {
  0%, 100% { transform: translateY(2px) scaleY(.994); }
  50% { transform: translateY(-3px) scaleY(1.008); }
}

@keyframes fml-avatar-look {
  0%, 36%, 100% { transform: rotate(0); }
  44%, 58% { transform: rotate(-2.2deg); }
  68%, 80% { transform: rotate(2deg); }
}

@keyframes fml-avatar-blink {
  0%, 45%, 48%, 84%, 87%, 100% { transform: scaleY(1); }
  46.5%, 85.5% { transform: scaleY(.08); }
}

@keyframes fml-avatar-orbit {
  to { transform: rotate(360deg); }
}

@keyframes fml-avatar-portal {
  0%, 100% { opacity: .64; transform: translateX(-50%) scale(.96); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

@keyframes fml-avatar-floor {
  0%, 100% { opacity: .55; transform: rotateX(68deg) scale(.9); }
  50% { opacity: .9; transform: rotateX(68deg) scale(1.08); }
}

@keyframes fml-avatar-atom {
  0%, 100% { opacity: .72; filter: drop-shadow(0 0 2px currentColor); }
  50% { opacity: 1; filter: drop-shadow(0 0 7px currentColor); }
}

@media (min-width: 1180px) {
  body.fara-horizon-4040 .fml-slide {
    flex-basis: 430px;
    width: 430px;
  }

  body.fara-horizon-4040 .fml-slide[data-position="prev"] {
    transform: perspective(1000px) rotateY(14deg) translateY(20px) scale(.86);
  }

  body.fara-horizon-4040 .fml-slide[data-position="next"] {
    transform: perspective(1000px) rotateY(-14deg) translateY(20px) scale(.86);
  }
}

@media (max-width: 780px) {
  body.fara-horizon-4040 .fml-head {
    flex-wrap: wrap;
  }

  body.fara-horizon-4040 .fml-head-tools {
    width: 100%;
    justify-content: flex-start;
  }

  body.fara-horizon-4040 .fml-head-tools .fml-counter {
    margin-left: auto;
  }

  body.fara-horizon-4040 .fml-head-button {
    min-height: 36px;
    padding-inline: 9px;
  }

  body.fara-horizon-4040 .fml-viewport {
    min-height: 496px;
  }

  body.fara-horizon-4040 .fml-slide {
    flex-basis: min(84vw, 360px);
    width: min(84vw, 360px);
    min-height: 448px;
  }

  body.fara-horizon-4040 .fml-avatar-builder {
    grid-template-columns: 1fr;
  }

  body.fara-horizon-4040 .fml-avatar-preview {
    min-height: 330px;
  }

  body.fara-horizon-4040 .fml-avatar-preview .fml-avatar-svg {
    top: 8px;
    height: 320px;
  }

  body.fara-horizon-4040 .fml-avatar-modal {
    position: fixed;
    padding: 9px;
  }

  body.fara-horizon-4040 .fml-avatar-panel {
    width: 100%;
    max-height: 96dvh;
    padding: 14px;
    border-radius: 22px;
  }

  body.fara-horizon-4040 .fml-avatar-options {
    overflow-x: auto;
    padding-block: 2px;
  }

  body.fara-horizon-4040 .fml-avatar-options legend {
    flex: 0 0 64px;
  }

  body.fara-horizon-4040 .fml-shell.fml-spatial {
    padding: 12px 9px 18px;
  }

  body.fara-horizon-4040 .fml-shell.fml-spatial .fml-slide {
    flex-basis: min(84vw, 360px);
    width: min(84vw, 360px);
    min-height: 510px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.fara-horizon-4040 .fml-track,
  body.fara-horizon-4040 .fml-slide,
  body.fara-horizon-4040 .fml-shell button,
  body.fara-horizon-4040 .fml-toast {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  body.fara-horizon-4040 .fml-sheen,
  body.fara-horizon-4040 .fml-caustic,
  body.fara-horizon-4040 .fml-liquid i,
  body.fara-horizon-4040 .fml-avatar-body,
  body.fara-horizon-4040 .fml-avatar-head,
  body.fara-horizon-4040 .fml-avatar-eyes,
  body.fara-horizon-4040 .fml-avatar-orbits,
  body.fara-horizon-4040 .fml-avatar-portal,
  body.fara-horizon-4040 .fml-avatar-floor,
  body.fara-horizon-4040 .fml-avatar-atom,
  body.fara-horizon-4040 .fml-settle {
    animation: none !important;
  }
}
