@property --outline-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 14deg;
}

@property --ambient-opacity {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --logo-glow {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

:root {
  --pink: #ff22bd;
  --red: #ff1337;
  --green: #70ff65;
  --blue: rgb(0, 85, 255);
  --text: #f2f2f2;
  --outline: rgba(255, 255, 255, 0.10);
  --outline-angle: 14deg;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  --trail-x: 50vw;
  --trail-y: 50vh;
  --cursor-boost: 0;
  --ambient-opacity: 0;
  --logo-glow: 0;
  --liquid-blur: 24px;
  --ambient-duration: 2.95s;
  --logo-duration: 1.675s;
  --logo-blur-duration: 1.175s;
  --subtitle-duration: 0.4s;
  --subtitle-delay: 1.675s;
  --panel-duration: 0.55s;
  --panel-delay: 2.05s;
  --dock-duration: 0.45s;
  --dock-delay: 2.425s;
  --gate-duration: 0.38s;
  --sine-out: cubic-bezier(0.39, 0.575, 0.565, 1);
  --cubic-in: cubic-bezier(0.55, 0.02, 0.82, 0.19);
  --cubic-out: cubic-bezier(0.22, 1, 0.36, 1);
  --quint-out: cubic-bezier(0.23, 1, 0.32, 1);
  --quint-in: cubic-bezier(0.64, 0, 0.78, 0);
}

* {
  box-sizing: border-box;
  user-select: none;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
  color: var(--text);
  font-family: "Ubuntu", system-ui, sans-serif;
  font-weight: 400;
  transition:
    --ambient-opacity var(--ambient-duration) var(--cubic-out),
    --logo-glow var(--ambient-duration) var(--cubic-out);
}

body.started {
  --ambient-opacity: 1;
  --logo-glow: 1;
}

body.skip-intro {
  --ambient-duration: 0.42s;
  --logo-duration: 0.01s;
  --logo-blur-duration: 0.01s;
  --subtitle-duration: 0.01s;
  --subtitle-delay: 0s;
  --panel-duration: 0.01s;
  --panel-delay: 0s;
  --dock-duration: 0.01s;
  --dock-delay: 0s;
  --gate-duration: 0.22s;
}


.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}


.ambient-distant {
  position: absolute;
  inset: -36vmax;
  background:
    radial-gradient(circle at 18% 38%, rgba(255, 34, 189, 0.055), transparent 34%),
    radial-gradient(circle at 82% 42%, rgba(255, 19, 55, 0.045), transparent 36%),
    radial-gradient(circle at 30% 82%, rgba(255, 34, 189, 0.040), transparent 34%),
    radial-gradient(circle at 74% 78%, rgba(255, 19, 55, 0.035), transparent 38%);
  filter: blur(70px) saturate(1.18);
  opacity: calc(0.55 * var(--ambient-opacity));
  transform: scale(1.04);
  transition: opacity var(--ambient-duration) var(--cubic-out);
  animation: distantDrift 24s ease-in-out infinite alternate;
}

.space-base {
  position: absolute;
  inset: -34vmax;
  background:
    radial-gradient(circle at 49% 15%, rgba(255, 34, 189, 0.31), rgba(255, 34, 189, 0.13) 10%, rgba(255, 34, 189, 0.035) 22%, transparent 38%),
    radial-gradient(circle at 57% 21%, rgba(255, 19, 55, 0.21), rgba(255, 19, 55, 0.075) 12%, rgba(255, 19, 55, 0.020) 24%, transparent 40%),
    radial-gradient(circle at 43% 23%, rgba(255, 117, 218, 0.10), rgba(255, 117, 218, 0.025) 16%, transparent 31%),
    radial-gradient(circle at 50% 19%, rgba(255, 255, 255, 0.024), transparent 18%),
    radial-gradient(circle at 36% 62%, rgba(255, 34, 189, 0.026), transparent 30%),
    radial-gradient(circle at 72% 68%, rgba(255, 19, 55, 0.018), transparent 34%),
    radial-gradient(ellipse at 50% 58%, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.96) 78%),
    #000;
  opacity: var(--ambient-opacity);
  transform: scale(1.05);
  transition: opacity var(--ambient-duration) var(--cubic-out);
  animation: spaceDrift 13s ease-in-out infinite alternate, ambientPulseA 9.5s ease-in-out infinite alternate;
}

.nebula {
  position: absolute;
  inset: -30vmax;
  background:
    radial-gradient(circle at 48% 16%, rgba(255, 34, 189, 0.42) 0, rgba(255, 34, 189, 0.15) 9%, rgba(255, 34, 189, 0.040) 20%, transparent 34%),
    radial-gradient(circle at 57% 22%, rgba(255, 19, 55, 0.26) 0, rgba(255, 19, 55, 0.095) 10%, rgba(255, 19, 55, 0.028) 22%, transparent 36%),
    radial-gradient(circle at 42% 22%, rgba(255, 34, 189, 0.16) 0, rgba(255, 34, 189, 0.035) 12%, transparent 28%),
    radial-gradient(circle at 65% 19%, rgba(255, 140, 180, 0.048) 0, transparent 24%),
    radial-gradient(circle at 48% 34%, rgba(255, 255, 255, 0.023) 0, transparent 18%);
  filter: blur(42px) saturate(1.34);
  opacity: calc(0.92 * var(--ambient-opacity));
  transform: scale(1.06);
  transition: opacity var(--ambient-duration) var(--cubic-out);
  animation: nebulaFloat 10.5s ease-in-out infinite alternate, ambientPulseB 8s ease-in-out infinite alternate;
}

.cloud-noise {
  position: absolute;
  inset: -10vmax;
  opacity: calc(0.26 * var(--ambient-opacity));
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 49% 18%, rgba(255, 34, 189, 0.12), transparent 18%),
    radial-gradient(circle at 56% 24%, rgba(255, 19, 55, 0.085), transparent 20%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='760' height='760' viewBox='0 0 760 760'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.16' numOctaves='6' seed='28'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0.78 0 1 0 0 0.08 0 0 1 0 0.50 0 0 0 .36 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 .04 .10 .22'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='760' height='760' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120% 120%, 120% 120%, 760px 760px;
  filter: blur(0.18px) saturate(1.38);
  animation: cloudShift 14s ease-in-out infinite alternate;
  transition: opacity var(--ambient-duration) var(--cubic-out);
}


.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.02) 0 22%, rgba(0, 0, 0, 0.32) 52%, rgba(0, 0, 0, 0.97) 86%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.985));
}

.cursor-glow,
.cursor-trail {
  position: fixed;
  width: 720px;
  height: 720px;
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(var(--cursor-rgb, 255, 34, 189), calc((0.040 + 0.070 * var(--cursor-boost)) * var(--ambient-opacity))), rgba(var(--cursor-rgb-secondary, 255, 19, 55), calc((0.024 + 0.044 * var(--cursor-boost)) * var(--ambient-opacity))) 34%, transparent 72%),
    radial-gradient(circle, rgba(var(--cursor-rgb, 255, 34, 189), calc(0.026 * var(--ambient-opacity))), rgba(var(--cursor-rgb-secondary, 255, 19, 55), calc(0.016 * var(--ambient-opacity))) 42%, transparent 74%);
  filter: blur(66px) saturate(calc(1.12 + 0.72 * var(--cursor-boost)));
  opacity: calc(0.88 * var(--ambient-opacity));
  mix-blend-mode: screen;
  z-index: 8;
  transition: filter 0.18s ease, opacity var(--ambient-duration) var(--cubic-out);
}

.cursor-glow {
  left: var(--cursor-x);
  top: var(--cursor-y);
}

.cursor-trail {
  left: var(--trail-x);
  top: var(--trail-y);
  width: 820px;
  height: 820px;
  opacity: calc(0.34 * var(--ambient-opacity));
  filter: blur(84px) saturate(1.2);
}


.vhs-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, 0.045) 0px,
      rgba(255, 255, 255, 0.045) 2px,
      rgba(0, 0, 0, 0.0) 3px,
      rgba(0, 0, 0, 0.0) 7px);
  opacity: calc(0.20 * var(--ambient-opacity));
  mix-blend-mode: screen;
  animation: vhsScanlines 8s linear infinite;
  transition: opacity var(--ambient-duration) var(--cubic-out);
}

.vhs-noise {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' seed='9'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0.055'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: calc(0.24 * var(--ambient-opacity));
  mix-blend-mode: soft-light;
  filter: blur(0.12px) contrast(1.16);
  animation: vhsNoise 0.22s steps(2) infinite;
  transition: opacity var(--ambient-duration) var(--cubic-out);
}

.vhs-band {
  position: absolute;
  inset: -12% 0;
  pointer-events: none;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(255, 255, 255, 0.025) 34%,
      rgba(255, 255, 255, 0.075) 50%,
      rgba(255, 255, 255, 0.025) 66%,
      transparent 100%);
  opacity: calc(0.36 * var(--ambient-opacity));
  mix-blend-mode: screen;
  filter: blur(12px);
  transform: translateY(-65%);
  animation: vhsBand 6.6s linear infinite;
  transition: opacity var(--ambient-duration) var(--cubic-out);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 18px;
  opacity: 1;
  transform: none;
}


.header {
  position: relative;
  isolation: isolate;
  width: min(594px, calc(100vw - 40px));
  margin-bottom: 132px;
  text-align: center;
  transform-origin: center center;
}

.header>* {
  position: relative;
  z-index: 1;
}

.header::before,
.header::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4%;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  transition: opacity var(--ambient-duration) var(--cubic-out);
}

.header::before {
  width: min(1120px, 90vw);
  height: 420px;
  transform: translate(-50%, -48%);
  opacity: calc(0.50 * var(--ambient-opacity));
  background:
    radial-gradient(ellipse at 48% 48%, rgba(255, 34, 189, 0.34), rgba(255, 34, 189, 0.13) 28%, rgba(255, 34, 189, 0.035) 58%, transparent 82%),
    radial-gradient(ellipse at 60% 50%, rgba(255, 19, 55, 0.18), rgba(255, 19, 55, 0.055) 32%, transparent 76%),
    radial-gradient(ellipse at 38% 52%, rgba(0, 125, 202, 0.055), transparent 68%);
  filter: blur(68px) saturate(1.18);
  animation: logoAmbientMove 11s ease-in-out infinite alternate;
}

.header::after {
  width: min(1320px, 100vw);
  height: 520px;
  transform: translate(-50%, -48%);
  opacity: calc(0.24 * var(--ambient-opacity));
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 34, 189, 0.18), rgba(255, 34, 189, 0.055) 38%, transparent 80%),
    radial-gradient(ellipse at 56% 48%, rgba(255, 19, 55, 0.11), rgba(255, 19, 55, 0.03) 38%, transparent 80%);
  filter: blur(110px) saturate(1.16);
  animation: logoAmbientMoveWide 16s ease-in-out infinite alternate;
}

.title {
  margin: 0;
  font-family: "Ubuntu", system-ui, sans-serif;
  font-weight: 400;
  font-size: 53px;
  line-height: 0.96;
  letter-spacing: 0.10em;
  background: linear-gradient(180deg, var(--pink) 0%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 0 rgba(255, 34, 189, 0),
    0 0 0 rgba(255, 19, 55, 0),
    0 0 0 rgba(255, 34, 189, 0);
  transform-origin: center center;
  transform: scale(0);
  opacity: 0;
  filter: blur(24px);
  transition:
    transform var(--logo-duration) var(--sine-out),
    opacity calc(var(--logo-duration) * 0.7) ease,
    filter var(--logo-blur-duration) var(--sine-out),
    --title-glow var(--ambient-duration) var(--cubic-out),
    text-shadow var(--ambient-duration) var(--cubic-out);
}

body.started .title {
  transform: scale(1);
  opacity: 1;
  filter: blur(0px);
  text-shadow:
    0 0 14px rgba(255, 34, 189, 0.13),
    0 0 34px rgba(255, 19, 55, 0.055),
    0 0 68px rgba(255, 34, 189, 0.024);
  animation: titleGlowPulse 10s ease-in-out infinite alternate;
}


.title-caret {
  display: inline-block;
  margin-left: 0.03em;
  color: var(--red);
  -webkit-text-fill-color: var(--red);
  background: none;
  text-shadow:
    0 0 0 rgba(255, 34, 189, 0),
    0 0 0 rgba(255, 19, 55, 0);
  transition: text-shadow var(--ambient-duration) var(--cubic-out);
  animation: caretBlink 1s steps(1, end) infinite;
}

body.started .title-caret {
  text-shadow:
    0 0 18px rgba(255, 34, 189, 0.18),
    0 0 48px rgba(255, 19, 55, 0.08);
  animation: caretBlink 1s steps(1, end) infinite, titleGlowPulseCaret 8s ease-in-out infinite alternate;
}

.subtitle {
  margin: 8px 0 0;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity var(--subtitle-duration) ease var(--subtitle-delay),
    transform var(--subtitle-duration) ease var(--subtitle-delay);
}

body.started .subtitle {
  opacity: 1;
  transform: translateY(0);
}

.subtitle a {
  color: rgb(0, 85, 255);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-shadow: 0 0 12px rgba(0, 85, 255, calc(0.22 * var(--ambient-opacity)));
  cursor: pointer;
  transition: color 0.16s ease, text-shadow 0.16s ease, opacity var(--ambient-duration) var(--cubic-in);
}

.subtitle a:hover {
  color: rgb(0, 85, 255);
  text-shadow: 0 0 8px rgba(0, 85, 255, 0.38), 0 0 18px rgba(0, 85, 255, 0.18);
}

.community-line {
  margin: 5px 0 0;
  text-align: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.90);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity var(--subtitle-duration) ease calc(var(--subtitle-delay) + 0.16s),
    transform var(--subtitle-duration) ease calc(var(--subtitle-delay) + 0.16s);
}

body.started .community-line {
  opacity: 1;
  transform: translateY(0);
}

.community-line a {
  color: rgb(0, 85, 255);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-shadow: 0 0 12px rgba(0, 85, 255, calc(0.18 * var(--ambient-opacity)));
  cursor: pointer;
  transition: color 0.16s ease, text-shadow 0.16s ease, opacity var(--ambient-duration) var(--cubic-in);
}

.community-line a:hover {
  color: rgb(0, 85, 255);
  text-shadow:
    0 0 8px rgba(0, 85, 255, 0.34),
    0 0 18px rgba(0, 85, 255, 0.16);
}

.utility-dock {
  isolation: isolate;
  -webkit-backdrop-filter: blur(calc(var(--liquid-blur) + 8px)) saturate(1.25) contrast(1.06) brightness(0.96);
  backdrop-filter: blur(calc(var(--liquid-blur) + 8px)) saturate(1.25) contrast(1.06) brightness(0.96);
}

.code-panel {
  isolation: isolate;
  position: relative;
  width: min(594px, calc(100vw - 40px));
  min-height: 210px;
  border-radius: 21px;
  background: rgba(0, 0, 0, 0.42);
  display: grid;
  grid-template-rows: auto auto auto;
  align-items: center;
  justify-items: center;
  row-gap: 14px;
  padding: 22px 34px 17px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--panel-duration) ease var(--panel-delay),
    transform var(--panel-duration) ease var(--panel-delay),
    background 0.18s ease,
    backdrop-filter 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow:
    0 42px 85px rgba(0, 0, 0, 0.58),
    0 12px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

body.started .code-panel {
  opacity: 1;
  transform: translateY(0);
}

.code-panel:hover {
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(calc(var(--liquid-blur) + 8px)) saturate(1.18) contrast(1.05) brightness(0.96);
  backdrop-filter: blur(calc(var(--liquid-blur) + 8px)) saturate(1.18) contrast(1.05) brightness(0.96);
  box-shadow:
    0 42px 85px rgba(0, 0, 0, 0.58),
    0 12px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.code-panel::before,
.redirect-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background:
    conic-gradient(from var(--outline-angle),
      var(--outline) 0deg 42deg,
      rgba(255, 255, 255, 0.045) 56deg,
      transparent 78deg 96deg,
      rgba(255, 255, 255, 0.045) 116deg,
      var(--outline) 138deg 218deg,
      rgba(255, 255, 255, 0.045) 236deg,
      transparent 258deg 276deg,
      rgba(255, 255, 255, 0.045) 296deg,
      var(--outline) 318deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 1;
  animation: outlineSpin 150s linear infinite;
}

.code-panel::after,
.redirect-modal::after,
.utility-dock::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.075), transparent 18%, transparent 74%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
  opacity: 0.65;
}

.glass-rays {
  position: absolute;
  inset: -20px;
  border-radius: 28px;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.045), transparent 26%),
    radial-gradient(ellipse at top center, rgba(255, 255, 255, 0.045), transparent 50%),
    radial-gradient(ellipse at bottom center, rgba(0, 0, 0, 0.20), transparent 52%);
  mix-blend-mode: screen;
  filter: blur(14px);
  opacity: 0.48;
}


.instruction {
  margin: 0;
  text-align: center;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0.035em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 1;
}

.code-row {
  position: relative;
  z-index: 1;
  display: inline-grid;
  grid-template-columns: auto 36px;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.pairing-code.code-changing {
  opacity: 0.35;
  filter: blur(3px);
  transform: scale(0.985);
}

.pairing-code {
  margin: 0;
  text-align: center;
  font-family: "Inconsolata", monospace;
  font-weight: 700;
  font-size: 57px;
  line-height: 1;
  letter-spacing: 0.085em;
  color: var(--green);
  text-shadow:
    0 0 20px rgba(112, 255, 101, 0.24),
    0 0 60px rgba(112, 255, 101, 0.16),
    0 0 120px rgba(112, 255, 101, 0.10),
    0 0 190px rgba(112, 255, 101, 0.055);
  animation: codePulse 10s ease-in-out infinite;
  user-select: text;
  position: relative;
  z-index: 1;
}

.pairing-code.pending-code {
  color: rgb(255, 255, 100);
  text-shadow:
    0 0 20px rgba(255, 255, 100, 0.24),
    0 0 60px rgba(255, 255, 100, 0.16),
    0 0 120px rgba(255, 255, 100, 0.10),
    0 0 190px rgba(255, 255, 100, 0.055);
  user-select: none;
  white-space: pre-line;
}

.code-row.pending-code {
  grid-template-columns: auto;
}

.code-row.pending-code .copy-code {
  display: none;
}

.copy-code {
  isolation: isolate;
  width: 36px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.050);
  color: rgba(255, 255, 255, 0.82);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
  -webkit-backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
  backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.copy-code:hover {
  background: rgba(255, 255, 255, 0.080);
}

.copy-code svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  opacity: 0.74;
}

.one-time {
  margin: 0;
  text-align: center;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.22);
  position: relative;
  z-index: 1;
}

.utility-dock {
  position: fixed;
  left: 28px;
  bottom: 24px;
  z-index: 3;
  display: grid;
  grid-template-columns: 58px 280px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity var(--dock-duration) ease var(--dock-delay);
}

body.started .utility-dock {
  opacity: 1;
  pointer-events: auto;
  animation: uiFloatDock 12s ease-in-out infinite;
}

.version-label {
  position: fixed;
  left: auto;
  right: 36px;
  bottom: 138px;
  width: 280px;
  max-width: calc(100vw - 72px);
  z-index: 4;
  font-family: "Inconsolata", monospace;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: right;
  color: rgba(255, 255, 255, 0.50);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dock-duration) ease var(--dock-delay);
}

body.started .version-label {
  opacity: 0.5;
}

body.skip-intro .version-label {
  transition-delay: 0s;
}

.utility-button {
  isolation: isolate;
  position: relative;
  z-index: 1;
  height: 58px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.050);
  color: rgba(255, 255, 255, 0.90);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.15s ease, opacity 0.15s ease;
  overflow: hidden;
  -webkit-backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
  backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.utility-button:hover {
  background: rgba(255, 255, 255, 0.085);
}

.utility-button.active {
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.58);
}

.utility-button .sound-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 75%;
  height: 75%;
  object-fit: contain;
  opacity: 0.84;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55));
  display: block;
  transition: opacity 0.16s ease, filter 0.16s ease;
}

.utility-button.active .sound-icon {
  opacity: 0.38;
  filter: grayscale(0.25) brightness(0.55) saturate(0.75) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55));
}

.volume-control {
  isolation: isolate;
  position: relative;
  z-index: 1;
  height: 58px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.050);
  overflow: hidden;
  -webkit-backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
  backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.volume-slider {
  width: 100%;
  accent-color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.utility-dock::before,
.utility-button::before,
.volume-control::before,
.copy-code::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background:
    conic-gradient(from var(--outline-angle),
      rgba(255, 255, 255, 0.11) 0deg 42deg,
      rgba(255, 255, 255, 0.050) 56deg,
      transparent 78deg 96deg,
      rgba(255, 255, 255, 0.050) 116deg,
      rgba(255, 255, 255, 0.11) 138deg 218deg,
      rgba(255, 255, 255, 0.050) 236deg,
      transparent 258deg 276deg,
      rgba(255, 255, 255, 0.050) 296deg,
      rgba(255, 255, 255, 0.11) 318deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.92;
  animation: outlineSpin 150s linear infinite;
  z-index: 2;
}

.utility-dock::after,
.utility-button::after,
.volume-control::after,
.copy-code::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 18%, transparent 74%, rgba(255, 255, 255, 0.025));
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
}

.copy-code>*,
.utility-button>*,
.volume-control>* {
  position: relative;
  z-index: 3;
}

.toast {
  position: fixed;
  z-index: 20;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.060);
  color: rgba(255, 255, 255, 0.88);
  font-family: "Inconsolata", monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.96);
  -webkit-backdrop-filter: blur(14px) saturate(1.16) brightness(0.96);
  backdrop-filter: blur(14px) saturate(1.16) brightness(0.96);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.toast.muted-toast {
  z-index: 21;
}

.toast.option-toast {
  z-index: 4;
  -webkit-backdrop-filter: blur(18px) saturate(1.14) brightness(0.94);
  backdrop-filter: blur(18px) saturate(1.14) brightness(0.94);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(255, 255, 255, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}


.connected-panel {
  position: relative;
  width: min(980px, calc(100vw - 42px));
  min-height: 300px;
  border-radius: 21px;
  background: rgba(0, 0, 0, 0.42);
  display: none;
  grid-template-rows: auto 1fr auto;
  row-gap: 8px;
  padding: 18px 20px 18px;
  opacity: 0;
  transform: translateY(8px);
  -webkit-backdrop-filter: blur(calc(var(--liquid-blur) + 8px)) saturate(1.25) contrast(1.06) brightness(0.96);
  backdrop-filter: blur(calc(var(--liquid-blur) + 8px)) saturate(1.25) contrast(1.06) brightness(0.96);
  box-shadow:
    0 42px 85px rgba(0, 0, 0, 0.58),
    0 12px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  isolation: isolate;
}

body.started .connected-panel.connected-visible,
.connected-panel.connected-visible {
  display: grid !important;
  opacity: 1;
  transform: translateY(0);
  animation: uiFloatPanel 10.5s ease-in-out infinite;
}

.connected-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background:
    conic-gradient(from var(--outline-angle),
      var(--outline) 0deg 42deg,
      rgba(255, 255, 255, 0.045) 56deg,
      transparent 78deg 96deg,
      rgba(255, 255, 255, 0.045) 116deg,
      var(--outline) 138deg 218deg,
      rgba(255, 255, 255, 0.045) 236deg,
      transparent 258deg 276deg,
      rgba(255, 255, 255, 0.045) 296deg,
      var(--outline) 318deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: outlineSpin 150s linear infinite;
  z-index: 2;
}

.connected-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.075), transparent 18%, transparent 74%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
  opacity: 0.65;
  z-index: 1;
}

.connected-panel>* {
  position: relative;
  z-index: 3;
}

.connected-title {
  margin: 0;
  text-align: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}

.connected-title strong {
  font-weight: 700;
  color: #fff;
}

.settings-list {
  display: grid;
  gap: 7px;
}

.setting-row {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 32px;
}

.setting-label {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.02em;
}

.setting-select,
.setting-check {
  height: 32px;
  border: 0;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.90);
  background: rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
  backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  font: inherit;
  padding: 0 10px;
  outline: none;
}

.setting-select {
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.setting-select::after {
  content: none;
}

.setting-select-caret {
  font-weight: 700;
  opacity: 0.82;
  transform: translateY(-1px);
}

.setting-check {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.check-toggle {
  text-align: left;
}

.check-indicator {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.145);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  opacity: 1;
  transition: opacity 0.16s ease, background 0.16s ease;
}

.check-toggle:not(.checked) {
  color: rgba(255, 255, 255, 0.82);
}

.check-toggle:not(.checked) .check-indicator {
  opacity: 0.28;
  background: rgba(255, 255, 255, 0.035);
  color: transparent;
}


.connected-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.74fr) minmax(430px, 1.26fr);
  gap: 10px;
  align-items: start;
}

.connected-section {
  position: relative;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  -webkit-backdrop-filter: blur(calc(var(--liquid-blur) + 2px)) saturate(1.04) contrast(1.02) brightness(0.98);
  backdrop-filter: blur(calc(var(--liquid-blur) + 2px)) saturate(1.04) contrast(1.02) brightness(0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  padding: 11px 12px 10px;
}

.section-header {
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: left;
  letter-spacing: 0.015em;
}

.test-button {
  height: 32px;
  border: 0;
  border-radius: 7px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.050);
  color: rgba(255, 255, 255, 0.84);
  font: inherit;
  cursor: pointer;
  -webkit-backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.12) contrast(1.02) brightness(0.98);
  backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.12) contrast(1.02) brightness(0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.test-button:hover,
.player-play:hover {
  background: rgba(255, 255, 255, 0.080);
}


.map-info-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.map-info-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.map-info-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.map-info-value {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: start;
}

.audio-toggle-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}


.outline-rotating {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.outline-rotating::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background:
    conic-gradient(from var(--outline-angle),
      rgba(255, 255, 255, 0.12) 0deg 40deg,
      rgba(255, 255, 255, 0.03) 56deg,
      transparent 78deg 96deg,
      rgba(255, 255, 255, 0.03) 116deg,
      rgba(255, 255, 255, 0.10) 138deg 218deg,
      rgba(255, 255, 255, 0.03) 236deg,
      transparent 258deg 276deg,
      rgba(255, 255, 255, 0.03) 296deg,
      rgba(255, 255, 255, 0.10) 318deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
  animation: outlineSpin 150s linear infinite;
}

.outline-rotating::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 20%, transparent 78%, rgba(255, 255, 255, 0.02));
  pointer-events: none;
  opacity: 0.55;
}

.tile-toggle {
  width: 74px;
  min-height: 68px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.050);
  color: rgba(255, 255, 255, 0.88);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 8px 7px 7px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
  backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.tile-toggle-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.145);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  transition: opacity 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.tile-toggle-label {
  font-size: 8.6px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
}

.tile-toggle:disabled {
  cursor: default;
  opacity: 0.54;
  filter: saturate(0.72) brightness(0.82);
}

.tile-toggle:not(.checked) .tile-toggle-icon {
  opacity: 0.42;
  background: rgba(0, 0, 0, 0.18);
  color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), inset 0 -1px 0 rgba(0, 0, 0, 0.38);
  filter: brightness(0.55) saturate(0.72);
}

.audio-player-card {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  padding: 9px 11px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  align-self: stretch;
}

.player-mainrow {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 8px;
}

.player-play {
  min-width: 72px;
  height: 33px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.050);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  cursor: pointer;
  -webkit-backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
  backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.player-play:disabled {
  opacity: 0.42;
  cursor: default;
  color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.032);
}

.player-play:disabled:hover {
  background: rgba(255, 255, 255, 0.032);
}

.player-progress {
  width: 100%;
  margin: 0 0 8px;
  accent-color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.player-progress:disabled {
  opacity: 0.35;
  cursor: default;
}

.player-timegrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.player-time-item {
  display: grid;
  gap: 1px;
  justify-items: start;
  text-align: left;
}

.time-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: none;
  letter-spacing: 0.02em;
}

.time-value {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.84);
  font-family: "Inconsolata", monospace;
}

.time-input {
  width: 86px;
  min-width: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.88);
  font-family: "Inconsolata", monospace;
  font-size: 13px;
  outline: none;
  padding: 2px 5px;
  user-select: text;
}

.time-input:focus {
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}


.audio-section {
  display: grid;
  gap: 8px;
}

.audio-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.audio-source-panel {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.030);
  padding: 9px 10px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  min-width: 0;
}

.audio-source-title {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.audio-source-copy {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.50);
  font-size: 11px;
  line-height: 1.22;
  text-align: left;
}

.audio-source-select,
.audio-source-input,
.audio-source-reset {
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.audio-source-select,
.audio-source-input {
  width: 100%;
  padding: 0 9px;
}

.audio-source-input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.audio-custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 6px;
}

.audio-upload-row {
  display: grid;
  gap: 10px;
  place-items: center stretch;
}

.audio-upload-file {
  display: none;
}

.audio-upload-name {
  min-height: 18px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-source-reset {
  cursor: pointer;
  padding: 0 8px;
}

.audio-source-reset:hover {
  background: rgba(255, 255, 255, 0.085);
}

.tile-toggle,
.player-play,
.utility-button,
.audio-source-button,
.notice-button,
.audio-history-entry,
.audio-custom-popup-button {
  transform-origin: center;
}

.tile-toggle.button-bump,
.player-play.button-bump,
.utility-button.button-bump,
.audio-source-button.button-bump,
.notice-button.button-bump,
.audio-history-entry.button-bump,
.audio-custom-popup-button.button-bump {
  animation: buttonSurfacePop 0.23s cubic-bezier(0.22, 1, 0.36, 1);
}

.tile-toggle.button-bump .tile-toggle-icon,
.player-play.button-bump>span,
.utility-button.button-bump .sound-icon {
  animation: none !important;
}

@keyframes buttonSurfacePop {
  0% {
    transform: scale(1);
  }

  42% {
    transform: scale(0.94);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes buttonIconPop {
  0% {
    transform: scale(1);
  }

  42% {
    transform: scale(0.78);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes soundIconPop {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  42% {
    transform: translate(-50%, -50%) scale(0.78);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.audio-source-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.audio-source-button {
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.050);
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  transition: background 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease, opacity 0.16s ease;
}

.audio-source-button.active,
.audio-source-button.selected {
  background: rgba(255, 255, 255, 0.175);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.audio-source-button>span {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 8px;
}

.audio-source-modal {
  width: min(620px, calc(100vw - 40px));
}

.audio-source-modal-body {
  display: grid;
  gap: 8px;
  text-align: left;
}

.audio-history-list {
  display: grid;
  gap: 8px;
  max-height: min(420px, 54vh);
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.audio-history-entry {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  font: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.audio-history-entry.selected,
.behavior-option.selected {
  background: rgba(255, 255, 255, 0.225) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.audio-history-list {
  padding: 5px;
  margin: -5px;
}

.audio-history-entry.selected::before,
.behavior-option.selected::before {
  opacity: 0;
}

.audio-history-entry-title,
.audio-history-entry-time {
  display: block;
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-history-entry-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.audio-history-entry-time {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.50);
}

.audio-custom-popup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.audio-custom-popup-input {
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.070);
  color: rgba(255, 255, 255, 0.90);
  font: inherit;
  padding: 0 11px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.audio-custom-popup-input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.audio-custom-popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.audio-custom-popup-button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  font: inherit;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.audio-custom-popup-button.reset {
  background: rgba(128, 0, 0, 0.42);
}

.audio-custom-popup-button.confirm {
  background: rgba(0, 118, 39, 0.52);
}

.audio-custom-popup-button.upload {
  background: rgba(255, 255, 255, 0.085);
}

.setting-select:hover,
.behavior-option:hover,
.tile-toggle:hover,
.player-play:not(:disabled):hover,
.utility-button:hover,
.audio-source-button:hover,
.audio-history-entry:hover,
.audio-custom-popup-button:hover,
.notice-button:hover {
  filter: brightness(1.12);
  background-color: rgba(255, 255, 255, 0.105);
}

.tile-toggle.checked:hover,
.audio-source-button.active:hover,
.audio-source-button.selected:hover,
.audio-history-entry.selected:hover,
.behavior-option.selected:hover {
  filter: brightness(1.10);
  background-color: rgba(255, 255, 255, 0.245) !important;
}

@media (max-width: 900px) {
  .audio-source-grid {
    grid-template-columns: 1fr;
  }
}


.connected-actions {
  display: none;
}

.dev-button {
  height: 32px;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  -webkit-backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
  backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
}

.dev-controls {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 5;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 520px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dock-duration) ease var(--dock-delay);
}

body.started .dev-controls {
  opacity: 1;
  pointer-events: auto;
}

body.connected #devConnect {
  display: none;
}

.dev-test {
  display: none;
}

body.connected .dev-test {
  display: inline-flex;
  align-items: center;
}


.behavior-layer {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s var(--quint-out),
    background 0.3s var(--quint-out),
    backdrop-filter 0.3s var(--quint-out),
    visibility 0s linear 0.3s;
}

.behavior-layer.open {
  background: rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.3s var(--quint-out),
    background 0.3s var(--quint-out),
    backdrop-filter 0.3s var(--quint-out),
    visibility 0s;
}

.behavior-layer.closing {
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transition:
    opacity 0.3s var(--quint-in),
    background 0.3s var(--quint-in),
    backdrop-filter 0.3s var(--quint-in),
    visibility 0s linear 0.3s;
}

.behavior-modal {
  width: min(500px, calc(100vw - 40px));
  border-radius: 21px;
  background: rgba(0, 0, 0, 0.42);
  padding: 26px 30px 24px;
  -webkit-backdrop-filter: blur(calc(var(--liquid-blur) + 8px)) saturate(1.25) contrast(1.06) brightness(0.96);
  backdrop-filter: blur(calc(var(--liquid-blur) + 8px)) saturate(1.25) contrast(1.06) brightness(0.96);
  box-shadow: 0 42px 85px rgba(0, 0, 0, 0.7);
  position: relative;
  isolation: isolate;
  text-align: center;
  transform: scale(0.92);
  opacity: 0;
}

.behavior-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--outline-angle), var(--outline) 0deg 42deg, transparent 78deg 96deg, var(--outline) 138deg 218deg, transparent 258deg 276deg, var(--outline) 318deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: outlineSpin 150s linear infinite;
}

.behavior-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
}

.behavior-description {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  line-height: 1.35;
  white-space: pre-line;
}

.behavior-options {
  display: grid;
  gap: 8px;
}

.behavior-option {
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.050);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  cursor: pointer;
  -webkit-backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
  backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
}

.behavior-option:hover {
  background: rgba(255, 255, 255, 0.085);
}

.connection-layer,
.disconnect-layer {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s var(--quint-out),
    background 0.3s var(--quint-out),
    backdrop-filter 0.3s var(--quint-out),
    visibility 0s linear 0.3s;
}

.connection-layer.open,
.disconnect-layer.open {
  background: rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.3s var(--quint-out),
    background 0.3s var(--quint-out),
    backdrop-filter 0.3s var(--quint-out),
    visibility 0s;
}

.connection-layer.closing,
.disconnect-layer.closing {
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transition:
    opacity 0.3s var(--quint-in),
    background 0.3s var(--quint-in),
    backdrop-filter 0.3s var(--quint-in),
    visibility 0s linear 0.3s;
}

.connection-modal,
.disconnect-modal {
  width: min(700px, calc(100vw - 40px));
  border-radius: 21px;
  background: rgba(0, 0, 0, 0.42);
  padding: 28px 30px;
  text-align: center;
  -webkit-backdrop-filter: blur(calc(var(--liquid-blur) + 8px)) saturate(1.25) contrast(1.06) brightness(0.96);
  backdrop-filter: blur(calc(var(--liquid-blur) + 8px)) saturate(1.25) contrast(1.06) brightness(0.96);
  box-shadow: 0 42px 85px rgba(0, 0, 0, 0.7);
  position: relative;
  isolation: isolate;
  transform: scale(0.92);
  opacity: 0;
}

.connection-layer.open .connection-modal,
.disconnect-layer.open .disconnect-modal {
  animation: modalIn 0.3s var(--quint-out) forwards;
}

.connection-layer.closing .connection-modal,
.disconnect-layer.closing .disconnect-modal {
  animation: modalOut 0.3s var(--quint-in) forwards;
}

.connection-modal::before,
.disconnect-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--outline-angle), var(--outline) 0deg 42deg, transparent 78deg 96deg, var(--outline) 138deg 218deg, transparent 258deg 276deg, var(--outline) 318deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: outlineSpin 150s linear infinite;
}

.connection-title,
.disconnect-title {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.connection-copy,
.disconnect-copy {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.disconnect-error-code {
  margin: 13px auto 0;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.84);
  font-family: "Inconsolata", monospace;
  font-size: 14px;
  user-select: all;
  cursor: text;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.disconnect-actions {
  margin-top: 22px;
  display: grid;
  place-items: center;
}

.ok-button {
  min-width: 120px;
  height: 42px;
  border: 0;
  border-radius: 9px;
  background: rgba(0, 118, 39, 0.52);
  color: white;
  font: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.ok-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--outline-angle), rgba(90, 255, 137, 0.24) 0deg 42deg, transparent 78deg 96deg, rgba(90, 255, 137, 0.24) 138deg 218deg, transparent 258deg 276deg, rgba(90, 255, 137, 0.24) 318deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: outlineSpin 150s linear infinite;
}

.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: #000;
  cursor: pointer;
  opacity: 1;
  transition: opacity var(--gate-duration) ease, visibility 0s linear var(--gate-duration);
}

body.started .intro-gate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.started .intro-prompt::after {
  animation: none;
  opacity: 0;
}

.intro-prompt {
  font-family: "Inconsolata", monospace;
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
  animation: promptIdle 2.2s ease-in-out infinite;
}

.intro-prompt::after {
  content: "_";
  display: inline-block;
  margin-left: 0.08em;
  animation: caretBlink 1s steps(1, end) infinite;
}


.intro-skip-live {
  position: fixed;
  right: 24px;
  bottom: 18px;
  z-index: 9;
  font-family: "Ubuntu", system-ui, sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.34);
  text-align: right;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

body.intro-running .intro-skip-live {
  animation: skipHintIntro 2.35s var(--cubic-out) forwards;
}

body.skip-intro .intro-skip-live,
body.intro-complete .intro-skip-live {
  opacity: 0;
  animation: none;
}

.modal-layer {
  --modal-origin-x: 0px;
  --modal-origin-y: 0px;
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s var(--quint-out),
    background 0.3s var(--quint-out),
    backdrop-filter 0.3s var(--quint-out),
    visibility 0s linear 0.3s;
}

.modal-layer.open {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(7px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.3s var(--quint-out),
    background 0.3s var(--quint-out),
    backdrop-filter 0.3s var(--quint-out),
    visibility 0s;
}

.modal-layer.closing {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transition:
    opacity 0.3s var(--quint-in),
    background 0.3s var(--quint-in),
    backdrop-filter 0.3s var(--quint-in),
    visibility 0s linear 0.3s;
}

.redirect-modal {
  isolation: isolate;
  position: relative;
  width: min(660px, calc(100vw - 40px));
  border-radius: 21px;
  background: rgba(0, 0, 0, 0.38);
  padding: 26px 30px 24px;
  box-shadow: 0 42px 85px rgba(0, 0, 0, 0.70);
  transform: scale(0.92);
  opacity: 0;
}

.redirect-modal>* {
  position: relative;
  z-index: 1;
}

.modal-layer.open .redirect-modal {
  animation: modalIn 0.46s var(--quint-out) forwards;
}

.modal-layer.closing .redirect-modal {
  animation: modalOut 0.3s var(--quint-in) forwards;
}

.modal-title {
  margin: 0;
  text-align: center;
  font-size: 38px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.modal-copy {
  margin: 22px 0 10px;
  text-align: center;
  font-size: 21px;
  line-height: 1.28;
  color: rgba(255, 255, 255, 0.86);
}

.modal-link {
  margin: 0 auto 24px;
  max-width: 100%;
  text-align: center;
  font-size: 17px;
  line-height: 1.3;
  color: var(--blue);
  overflow-wrap: anywhere;
  text-shadow: 0 0 12px rgba(0, 85, 255, calc(0.22 * var(--ambient-opacity)));
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.modal-button {
  isolation: isolate;
  height: 48px;
  border: 0;
  border-radius: 7px;
  font-family: "Ubuntu", system-ui, sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: white;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.16s ease, opacity 0.16s ease;
  position: relative;
  overflow: hidden;
}

.modal-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background:
    conic-gradient(from var(--outline-angle),
      var(--button-outline, rgba(255, 255, 255, 0.10)) 0deg 42deg,
      transparent 78deg 96deg,
      var(--button-outline, rgba(255, 255, 255, 0.10)) 138deg 218deg,
      transparent 258deg 276deg,
      var(--button-outline, rgba(255, 255, 255, 0.10)) 318deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: outlineSpin 150s linear infinite;
}

.modal-button:hover {
  opacity: 0.86;
}

.modal-button.cancel {
  --button-outline: rgba(255, 82, 82, 0.24);
  background: rgba(128, 0, 0, 0.50);
}

.modal-button.confirm {
  --button-outline: rgba(90, 255, 137, 0.22);
  background: rgba(0, 118, 39, 0.50);
}

.notice-stack {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 7;
  display: grid;
  gap: 10px;
  width: min(330px, calc(100vw - 40px));
  pointer-events: none;
}

.notice-card {
  isolation: isolate;
  position: relative;
  width: 100%;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.54);
  padding: 13px 38px 13px 15px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.50);
  opacity: 0;
  transform: translateX(-16px) scale(0.97);
  pointer-events: auto;
  touch-action: none;
  will-change: transform, opacity, filter;
  transition: opacity 0.24s var(--quint-out), transform 0.30s var(--quint-out), filter 0.24s var(--quint-out);
  -webkit-backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
  backdrop-filter: blur(calc(var(--liquid-blur) + 5px)) saturate(1.14) contrast(1.02) brightness(0.98);
}

.notice-card.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.notice-card.closing {
  opacity: 0;
  transform: translateX(-10px) scale(0.97);
  filter: blur(6px);
  transition: opacity 0.18s var(--quint-in), transform 0.20s var(--quint-in), filter 0.20s var(--quint-in);
}

.notice-card.dragging {
  cursor: grabbing;
  transition: none !important;
}

.notice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.20));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.notice-card>* {
  position: relative;
  z-index: 2;
}

.notice-title {
  margin: 0 0 5px;
  text-align: left;
  font-size: 17px;
  line-height: 1.05;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.notice-copy {
  margin: 0;
  text-align: left;
  font-size: 13px;
  line-height: 1.32;
  color: rgba(255, 255, 255, 0.82);
  white-space: pre-line;
}

.notice-error-code {
  margin-top: 8px;
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.74);
  font-family: "Inconsolata", monospace;
  font-size: 12px;
  line-height: 1.25;
  user-select: text;
  overflow: auto;
  max-height: 72px;
  white-space: pre-wrap;
}

.notice-countdown {
  margin-top: 7px;
  text-align: left;
  font-family: "Inconsolata", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.notice-actions {
  display: none;
}

.notice-button {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  font-family: "Ubuntu", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.16s ease, opacity 0.16s ease;
  overflow: hidden;
  isolation: isolate;
}

.notice-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--outline-angle), rgba(255, 255, 255, 0.18) 0deg 42deg, transparent 78deg 96deg, rgba(255, 255, 255, 0.16) 138deg 218deg, transparent 258deg 276deg, rgba(255, 255, 255, 0.16) 318deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: outlineSpin 150s linear infinite;
}

.notice-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 760px) {
  .notice-stack {
    left: 14px;
    top: 14px;
    width: min(310px, calc(100vw - 28px));
  }
}

@keyframes promptIdle {

  0%,
  100% {
    opacity: 0.54;
  }

  50% {
    opacity: 0.86;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translate(var(--modal-origin-x), var(--modal-origin-y)) scale(0.10);
    filter: blur(12px);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0px);
  }
}

@keyframes modalOut {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0px);
  }

  to {
    opacity: 0;
    transform: translate(var(--modal-origin-x), var(--modal-origin-y)) scale(0.12);
    filter: blur(10px);
  }
}

@keyframes codePulse {

  0%,
  100% {
    opacity: 0.94;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.025);
  }
}


@keyframes orbLayerDrift {
  from {
    transform: translate3d(-1.2%, -0.8%, 0);
  }

  to {
    transform: translate3d(1.2%, 1%, 0);
  }
}

@keyframes orbDriftPink {
  from {
    transform: translate3d(-10%, -4%, 0) scale(0.94);
    filter: blur(86px) hue-rotate(-8deg) saturate(1.20);
    opacity: 0.82;
  }

  to {
    transform: translate3d(10%, 8%, 0) scale(1.10);
    filter: blur(100px) hue-rotate(10deg) saturate(1.34);
    opacity: 0.96;
  }
}

@keyframes orbDriftRed {
  from {
    transform: translate3d(8%, -6%, 0) scale(1.02);
    filter: blur(82px) hue-rotate(8deg) saturate(1.16);
    opacity: 0.74;
  }

  to {
    transform: translate3d(-12%, 10%, 0) scale(0.92);
    filter: blur(106px) hue-rotate(-12deg) saturate(1.30);
    opacity: 0.92;
  }
}

@keyframes orbDriftBlue {
  from {
    transform: translate3d(-12%, 8%, 0) scale(1.0);
    filter: blur(102px) hue-rotate(0deg) saturate(1.18);
    opacity: 0.7;
  }

  to {
    transform: translate3d(10%, -8%, 0) scale(1.09);
    filter: blur(126px) hue-rotate(18deg) saturate(1.36);
    opacity: 0.9;
  }
}

@keyframes orbDriftBlueAlt {
  from {
    transform: translate3d(6%, -8%, 0) scale(0.98);
    filter: blur(110px) hue-rotate(-12deg) saturate(1.16);
    opacity: 0.66;
  }

  to {
    transform: translate3d(-10%, 10%, 0) scale(1.08);
    filter: blur(136px) hue-rotate(18deg) saturate(1.32);
    opacity: 0.86;
  }
}

@keyframes orbDriftPinkSoft {
  from {
    transform: translate3d(-14%, 6%, 0) scale(0.96);
    opacity: 0.56;
  }

  to {
    transform: translate3d(14%, -8%, 0) scale(1.08);
    opacity: 0.78;
  }
}

@keyframes orbDriftRedSoft {
  from {
    transform: translate3d(9%, -10%, 0) scale(1);
    opacity: 0.48;
  }

  to {
    transform: translate3d(-12%, 8%, 0) scale(0.94);
    opacity: 0.72;
  }
}

@keyframes orbDriftBlueSoft {
  from {
    transform: translate3d(-10%, 10%, 0) scale(0.98);
    opacity: 0.42;
  }

  to {
    transform: translate3d(12%, -10%, 0) scale(1.06);
    opacity: 0.7;
  }
}

@keyframes orbDriftVioletSoft {
  from {
    transform: translate3d(10%, -8%, 0) scale(0.98);
    opacity: 0.4;
  }

  to {
    transform: translate3d(-10%, 8%, 0) scale(1.04);
    opacity: 0.66;
  }
}




@keyframes vhsScanlines {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 12px;
  }
}

@keyframes vhsNoise {
  0% {
    transform: translate3d(0, 0, 0);
  }

  25% {
    transform: translate3d(-1%, 0.5%, 0);
  }

  50% {
    transform: translate3d(0.6%, -0.8%, 0);
  }

  75% {
    transform: translate3d(-0.4%, 0.7%, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes vhsBand {
  from {
    transform: translateY(-70%);
  }

  to {
    transform: translateY(115%);
  }
}

@keyframes uiFloatPanel {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  25% {
    transform: translate3d(0.8px, -0.9px, 0);
  }

  50% {
    transform: translate3d(-0.9px, 0.4px, 0);
  }

  75% {
    transform: translate3d(0.6px, 0.9px, 0);
  }
}

@keyframes uiFloatDock {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  33% {
    transform: translate3d(-0.7px, 0.7px, 0);
  }

  66% {
    transform: translate3d(0.9px, -0.5px, 0);
  }
}


@keyframes logoAmbientMove {
  0% {
    transform: translate(-53%, -50%) scale(0.96);
    filter: blur(62px) saturate(1.05) hue-rotate(-8deg);
  }

  50% {
    transform: translate(-49%, -46%) scale(1.08);
    filter: blur(78px) saturate(1.28) hue-rotate(10deg);
  }

  100% {
    transform: translate(-47%, -51%) scale(1.02);
    filter: blur(70px) saturate(1.18) hue-rotate(-2deg);
  }
}

@keyframes logoAmbientMoveWide {
  0% {
    transform: translate(-52%, -48%) scale(0.98);
    filter: blur(98px) saturate(1.06) hue-rotate(-8deg);
  }

  50% {
    transform: translate(-48%, -52%) scale(1.12);
    filter: blur(124px) saturate(1.28) hue-rotate(8deg);
  }

  100% {
    transform: translate(-50%, -49%) scale(1.05);
    filter: blur(112px) saturate(1.16) hue-rotate(0deg);
  }
}

@keyframes titleGlowPulse {

  0%,
  100% {
    text-shadow:
      0 0 12px rgba(255, 34, 189, 0.12),
      0 0 30px rgba(255, 19, 55, 0.045),
      0 0 62px rgba(255, 34, 189, 0.020);
  }

  50% {
    text-shadow:
      0 0 20px rgba(255, 34, 189, 0.22),
      0 0 52px rgba(255, 19, 55, 0.09),
      0 0 96px rgba(255, 34, 189, 0.040);
  }
}

@keyframes titleGlowPulseCaret {
  from {
    text-shadow:
      0 0 16px rgba(255, 34, 189, 0.15),
      0 0 40px rgba(255, 19, 55, 0.07);
  }

  to {
    text-shadow:
      0 0 26px rgba(255, 34, 189, 0.24),
      0 0 62px rgba(255, 19, 55, 0.12);
  }
}


@keyframes outlineSpin {
  from {
    --outline-angle: 14deg;
  }

  to {
    --outline-angle: 374deg;
  }
}

@keyframes caretBlink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes skipHintIntro {
  0% {
    opacity: 0;
  }

  14% {
    opacity: 0;
  }

  34% {
    opacity: 0.52;
  }

  78% {
    opacity: 0.36;
  }

  100% {
    opacity: 0;
  }
}

@keyframes spaceDrift {
  from {
    transform: translate3d(-1.8%, -1.2%, 0) scale(1.03);
  }

  to {
    transform: translate3d(2.1%, 1.5%, 0) scale(1.09);
  }
}

@keyframes nebulaFloat {
  from {
    transform: translate3d(-3.2%, -2.2%, 0) scale(1.02) rotate(-1.2deg);
  }

  to {
    transform: translate3d(3.4%, 2.4%, 0) scale(1.12) rotate(2.2deg);
  }
}

@keyframes ambientPulseA {
  from {
    opacity: calc(0.84 * var(--ambient-opacity));
  }

  to {
    opacity: calc(1 * var(--ambient-opacity));
  }
}

@keyframes ambientPulseB {
  from {
    filter: blur(38px) saturate(1.26);
    opacity: calc(0.76 * var(--ambient-opacity));
  }

  to {
    filter: blur(48px) saturate(1.40);
    opacity: calc(0.92 * var(--ambient-opacity));
  }
}

@keyframes cloudShift {
  from {
    background-position: 46% 18%, 56% 24%, 0 0;
    transform: translate3d(-1%, -0.6%, 0) scale(1.02);
  }

  to {
    background-position: 52% 16%, 60% 28%, 0 0;
    transform: translate3d(1%, 0.8%, 0) scale(1.08);
  }
}

to {
  background-position: 12% 8%, 86% 28%, 0 0;
}
}

@media (prefers-reduced-motion: reduce) {

  .orb-layer,
  .ambient-orb,
  .ambient-distant,
  .space-base,
  .nebula,
  .intro-prompt,
  .pairing-code,
  .code-panel::before,
  .redirect-modal::before,
  .notice-card,
  .modal-layer.open .redirect-modal,
  .modal-layer.closing .redirect-modal,
  .code-panel,
  .utility-dock {
    animation: none;
  }

  .title,
  .subtitle,
  .code-panel,
  .space-base,
  .nebula,
  .cloud-noise,
  .modal-layer,
  .modal-layer.open,
  .modal-layer.closing,
  .modal-button,
  .notice-button,
  .utility-button,
  .utility-dock,
  .intro-gate {
    transition: none;
  }
}

@media (max-width: 760px) {
  .page {
    padding-top: 42px;
    justify-content: flex-start;
  }

  .header {
    margin-bottom: 92px;
  }

  .title {
    font-size: 42px;
  }

  .subtitle {
    font-size: 17px;
  }

  .code-panel {
    min-height: 190px;
    padding: 20px 22px 16px;
  }

  .instruction {
    font-size: 17px;
  }

  .pairing-code {
    font-size: 50px;
  }

  .one-time {
    font-size: 20px;
  }

  .utility-dock {
    left: 16px;
    bottom: 16px;
    grid-template-columns: 50px 220px;
    padding: 7px;
    gap: 8px;
  }

  .utility-button {
    height: 50px;
  }

  .utility-button .sound-icon {
    width: 75%;
    height: 75%;
  }

  .volume-control {
    height: 50px;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }
}

/* v34 compact connected-panel polish */
.connected-panel {
  width: min(1080px, calc(100vw - 42px));
  min-height: 316px;
  padding: 16px 18px 17px;
  row-gap: 10px;
}

.connected-title {
  font-size: 19px;
}

.connected-layout {
  grid-template-columns: minmax(284px, 0.82fr) minmax(480px, 1.18fr);
  gap: 12px;
}

.connected-section {
  border-radius: 14px;
  padding: 12px 13px 12px;
}

.section-header {
  font-size: 16px;
  margin-bottom: 9px;
}

.settings-list {
  gap: 7px;
}

.setting-row {
  grid-template-columns: 132px 1fr;
  gap: 9px;
  min-height: 31px;
}

.setting-label {
  font-size: 14px;
  letter-spacing: 0.015em;
}

.setting-select {
  position: relative;
  height: 31px;
  padding: 0 10px;
  font-size: 14px;
}

.setting-select::after {
  content: none !important;
}

.setting-select-text,
.setting-select-caret,
.player-play>span,
.tile-toggle-label,
.tile-toggle-icon>span {
  position: relative;
  z-index: 1;
}

.setting-select-caret {
  margin-left: 10px;
  flex: 0 0 auto;
  font-weight: 700;
  opacity: 0.78;
  line-height: 1;
  transform: translateY(-1px);
}

.audio-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  margin-bottom: 8px;
}

.audio-toggle-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tile-toggle {
  width: 74px;
  min-height: 68px;
  padding: 7px 7px 6px;
  border-radius: 11px;
  font-size: 13px;
}

.tile-toggle-icon {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.tile-toggle-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--outline-angle),
      rgba(255, 255, 255, 0.18) 0deg 40deg,
      rgba(255, 255, 255, 0.05) 60deg,
      transparent 84deg 102deg,
      rgba(255, 255, 255, 0.05) 122deg,
      rgba(255, 255, 255, 0.16) 144deg 220deg,
      rgba(255, 255, 255, 0.05) 240deg,
      transparent 262deg 280deg,
      rgba(255, 255, 255, 0.05) 300deg,
      rgba(255, 255, 255, 0.15) 322deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: outlineSpin 150s linear infinite;
  opacity: 0.9;
  pointer-events: none;
}

.tile-toggle-icon::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 20%, transparent 78%, rgba(255, 255, 255, 0.02));
  opacity: 0.55;
  pointer-events: none;
}

.tile-toggle:not(.checked) .tile-toggle-icon::before {
  opacity: 0.22;
}

.tile-toggle:not(.checked) .tile-toggle-icon::after {
  opacity: 0.14;
}

.tile-toggle-label {
  font-size: 8.6px;
}

.player-play {
  min-width: 72px;
  height: 33px;
  font-size: 14px;
  align-self: flex-start;
}

.audio-player-card {
  padding: 9px 11px 10px;
  border-radius: 11px;
}

.player-progress {
  margin: 0 0 7px;
}

.player-timegrid {
  gap: 6px;
}

.time-label {
  font-size: 11px;
}

.time-value {
  font-size: 12px;
}



.connected-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
}

.connected-divider,
.connected-status {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.56);
}

.connected-panel {
  width: min(1080px, calc(100vw - 42px));
  min-height: 0;
  padding: 14px 17px 15px;
  row-gap: 8px;
}

.connected-layout {
  align-items: start;
}

.connected-section {
  align-self: start;
  padding: 11px 12px 11px;
}

.section-header {
  margin-bottom: 7px;
}

.settings-list {
  gap: 6px;
}

.setting-row {
  min-height: 30px;
}

.setting-select {
  height: 30px;
}

.audio-topbar {
  align-items: center;
  margin-bottom: 7px;
}

.tile-toggle {
  width: 74px;
  min-height: 64px;
  padding: 7px 6px 6px;
}

.tile-toggle:not(.checked) .tile-toggle-icon {
  opacity: 1;
  background: rgba(255, 255, 255, 0.075);
  color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.070),
    inset 0 -1px 0 rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 7px 13px rgba(0, 0, 0, 0.20);
  filter: none;
}

.tile-toggle:not(.checked) .tile-toggle-icon>span {
  opacity: 0;
}

.tile-toggle:not(.checked) .tile-toggle-icon::before {
  opacity: 0.72;
}

.tile-toggle:not(.checked) .tile-toggle-icon::after {
  opacity: 0.38;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.07), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.025));
}

.audio-player-card {
  padding: 7px 10px 8px;
}

.player-progress {
  height: 14px;
  margin: 0 0 5px;
}

.player-timegrid {
  gap: 5px;
}

.time-label {
  line-height: 1;
}

.time-value {
  line-height: 1.05;
}


/* Layout / overlay pass */
.utility-dock {
  left: auto;
  right: 28px;
  bottom: 24px;
  z-index: 4;
}

.dev-controls {
  top: 22px;
  right: 22px;
  bottom: auto;
  z-index: 5;
}

.lb-watermark-link {
  position: fixed;
  left: 26px;
  bottom: 22px;
  width: clamp(128px, 9.8vw, 188px);
  height: auto;
  opacity: 0.5;
  cursor: pointer;
  user-select: none;
  z-index: 2;
  transition: opacity 0.24s ease;
}

.lb-watermark-link:hover,
.lb-watermark-link:focus-visible {
  opacity: 1;
}

.lb-watermark {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.behavior-layer {
  --behavior-origin-x: 0px;
  --behavior-origin-y: 0px;
}

.behavior-layer.open .behavior-modal {
  animation: behaviorModalIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.behavior-layer.closing .behavior-modal {
  animation: behaviorModalOut 0.24s var(--quint-in) forwards;
}

.behavior-option {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.behavior-option>span {
  position: relative;
  z-index: 2;
}

@keyframes behaviorModalIn {
  from {
    opacity: 0;
    transform: translate(var(--behavior-origin-x), var(--behavior-origin-y)) scale(0.16);
    filter: blur(12px);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0px);
  }
}

@keyframes behaviorModalOut {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0px);
  }

  to {
    opacity: 0;
    transform: translate(var(--behavior-origin-x), var(--behavior-origin-y)) scale(0.12);
    filter: blur(10px);
  }
}

@media (max-width: 760px) {
  .utility-dock {
    left: auto;
    right: 16px;
    bottom: 16px;
    max-width: calc(100vw - 32px);
  }

  .version-label {
    left: auto;
    right: 24px;
    bottom: 102px;
    width: min(220px, calc(100vw - 48px));
  }

  .dev-controls {
    top: 16px;
    right: 16px;
    bottom: auto;
    max-width: calc(100vw - 32px);
  }

  .lb-watermark-link {
    left: 16px;
    bottom: 14px;
    width: clamp(112px, 22vw, 156px);
  }
}

html[data-soundzone-mode="release"] .dev-controls {
  display: none !important;
}


/* LB SoundZone performance pass */
.cursor-trail {
  display: none;
}

.cursor-glow {
  width: 500px;
  height: 500px;
  filter: blur(38px) saturate(calc(1.04 + 0.32 * var(--cursor-boost)));
}

.vhs-noise {
  animation: none;
  opacity: calc(0.12 * var(--ambient-opacity));
}

.vhs-scanlines {
  opacity: calc(0.12 * var(--ambient-opacity));
}

.cloud-noise {
  opacity: calc(0.16 * var(--ambient-opacity));
}


body.page-hidden *,
body.page-hidden *::before,
body.page-hidden *::after {
  animation-play-state: paused !important;
}

.modal-layer.open .redirect-modal,
.modal-layer.closing .redirect-modal {
  animation: none !important;
}

/* SoundZone final modal motion override */
.behavior-layer.open .behavior-modal {
  animation: lbBehaviorModalInFinal 0.36s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.behavior-layer.closing .behavior-modal {
  animation: lbBehaviorModalOutFinal 0.22s var(--quint-in) both !important;
}

@keyframes lbBehaviorModalInFinal {
  0% {
    opacity: 0;
    transform: translate(var(--behavior-origin-x), var(--behavior-origin-y)) scale(0.20);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0px);
  }
}

@keyframes lbBehaviorModalOutFinal {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0px);
  }

  100% {
    opacity: 0;
    transform: translate(var(--behavior-origin-x), var(--behavior-origin-y)) scale(0.14);
    filter: blur(9px);
  }
}



/* v1.0 responsive dock + mobile safety pass */
:root {
  --sound-dock-right: 28px;
  --sound-dock-bottom: 24px;
  --sound-dock-padding: 8px;
  --sound-dock-button-width: 58px;
  --sound-dock-volume-width: 280px;
  --sound-dock-gap: 8px;
  --sound-dock-total-height: 74px;
  --sound-dock-version-gap: 8px;
  --sound-dock-scale: 1;
}

.utility-dock {
  left: auto !important;
  right: var(--sound-dock-right) !important;
  bottom: var(--sound-dock-bottom) !important;
  grid-template-columns: var(--sound-dock-button-width) var(--sound-dock-volume-width) !important;
  gap: var(--sound-dock-gap) !important;
  padding: var(--sound-dock-padding) !important;
  scale: var(--sound-dock-scale);
  transform-origin: bottom right;
}

.version-label {
  left: auto !important;
  right: calc(var(--sound-dock-right) + var(--sound-dock-padding)) !important;
  bottom: calc(var(--sound-dock-bottom) + (var(--sound-dock-total-height) * var(--sound-dock-scale)) + var(--sound-dock-version-gap)) !important;
  width: calc(var(--sound-dock-volume-width) * var(--sound-dock-scale)) !important;
  max-width: calc(100vw - 48px) !important;
  text-align: right !important;
}

@media (max-width: 760px) {
  :root {
    --sound-dock-right: 16px;
    --sound-dock-bottom: 16px;
    --sound-dock-padding: 7px;
    --sound-dock-button-width: 50px;
    --sound-dock-volume-width: 220px;
    --sound-dock-total-height: 64px;
  }

  .lb-watermark-link {
    width: clamp(96px, 20vw, 128px) !important;
    left: 14px !important;
    bottom: 14px !important;
    opacity: 0.38;
  }
}

@media (max-width: 560px) {
  :root {
    --sound-dock-right: 10px;
    --sound-dock-bottom: 10px;
    --sound-dock-volume-width: 205px;
    --sound-dock-scale: 0.86;
  }

  .page {
    padding-bottom: 96px;
  }

  .lb-watermark-link {
    width: 84px !important;
    bottom: 10px !important;
    opacity: 0.30;
  }

  .connected-panel {
    width: calc(100vw - 22px) !important;
  }
}

@media (max-width: 420px) {
  :root {
    --sound-dock-volume-width: 186px;
    --sound-dock-scale: 0.78;
  }

  .utility-dock {
    border-radius: 15px;
  }

  .lb-watermark-link {
    width: 70px !important;
    opacity: 0.26;
  }
}



.notice-copy a.mode-switch-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  text-shadow: none;
}


html[data-soundzone-lite="true"],
html[data-soundzone-lite="true"] body {
  background: #000 !important;
}

html[data-soundzone-lite="true"] *,
html[data-soundzone-lite="true"] *::before,
html[data-soundzone-lite="true"] *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

html[data-soundzone-lite="true"] *,
html[data-soundzone-lite="true"] *::before,
html[data-soundzone-lite="true"] *::after {
  animation-name: none !important;
  animation-duration: 0s !important;
  animation-iteration-count: 1 !important;
}

html[data-soundzone-lite="true"] .background {
  background: #000 !important;
}

html[data-soundzone-lite="true"] .ambient-distant,
html[data-soundzone-lite="true"] .space-base,
html[data-soundzone-lite="true"] .nebula,
html[data-soundzone-lite="true"] .orb-layer,
html[data-soundzone-lite="true"] .cloud-noise,
html[data-soundzone-lite="true"] .vhs-noise,
html[data-soundzone-lite="true"] .vhs-scanlines,
html[data-soundzone-lite="true"] .vhs-band,
html[data-soundzone-lite="true"] .vignette,
html[data-soundzone-lite="true"] .cursor-trail,
html[data-soundzone-lite="true"] .cursor-glow,
html[data-soundzone-lite="true"] .glass-rays {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}

html[data-soundzone-lite="true"] .header::before,
html[data-soundzone-lite="true"] .header::after,
html[data-soundzone-lite="true"] .code-panel::before,
html[data-soundzone-lite="true"] .code-panel::after,
html[data-soundzone-lite="true"] .connected-panel::before,
html[data-soundzone-lite="true"] .connected-panel::after,
html[data-soundzone-lite="true"] .redirect-modal::before,
html[data-soundzone-lite="true"] .redirect-modal::after,
html[data-soundzone-lite="true"] .utility-dock::before,
html[data-soundzone-lite="true"] .utility-dock::after,
html[data-soundzone-lite="true"] .utility-button::before,
html[data-soundzone-lite="true"] .utility-button::after,
html[data-soundzone-lite="true"] .volume-control::before,
html[data-soundzone-lite="true"] .volume-control::after,
html[data-soundzone-lite="true"] .copy-code::before,
html[data-soundzone-lite="true"] .copy-code::after,
html[data-soundzone-lite="true"] .outline-rotating::before,
html[data-soundzone-lite="true"] .outline-rotating::after,
html[data-soundzone-lite="true"] .notice-card::before,
html[data-soundzone-lite="true"] .modal-button::before,
html[data-soundzone-lite="true"] .audio-source-button::before,
html[data-soundzone-lite="true"] .audio-source-button::after,
html[data-soundzone-lite="true"] .audio-history-entry::before,
html[data-soundzone-lite="true"] .audio-history-entry::after,
html[data-soundzone-lite="true"] .audio-custom-popup-button::before,
html[data-soundzone-lite="true"] .audio-custom-popup-button::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

html[data-soundzone-lite="true"] .code-panel,
html[data-soundzone-lite="true"] .connected-panel,
html[data-soundzone-lite="true"] .connected-section,
html[data-soundzone-lite="true"] .audio-player-card,
html[data-soundzone-lite="true"] .behavior-modal,
html[data-soundzone-lite="true"] .connection-modal,
html[data-soundzone-lite="true"] .disconnect-modal,
html[data-soundzone-lite="true"] .redirect-modal,
html[data-soundzone-lite="true"] .utility-dock,
html[data-soundzone-lite="true"] .notice-card,
html[data-soundzone-lite="true"] .toast {
  background-color: rgba(0, 0, 0, 0.72) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-soundzone-lite="true"] .subtitle a,
html[data-soundzone-lite="true"] .community-line a,
html[data-soundzone-lite="true"] .modal-link,
html[data-soundzone-lite="true"] .notice-copy a.mode-switch-link {
  color: var(--blue) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

html[data-soundzone-lite="true"] .modal-layer.open,
html[data-soundzone-lite="true"] .behavior-layer.open,
html[data-soundzone-lite="true"] .connection-layer.open,
html[data-soundzone-lite="true"] .disconnect-layer.open {
  background: rgba(0, 0, 0, 0.72) !important;
}


html[data-soundzone-lite="true"] .title {
  background: linear-gradient(180deg, var(--pink) 0%, var(--red) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
}

html[data-soundzone-lite="true"] body.started .title {
  animation: none !important;
  text-shadow: none !important;
}

html[data-soundzone-lite="true"] .title-caret,
html[data-soundzone-lite="true"] body.started .title-caret {
  color: var(--red) !important;
  -webkit-text-fill-color: var(--red) !important;
  background: none !important;
  text-shadow: none !important;
  animation: none !important;
}

html[data-soundzone-lite="true"] .header::after {
  content: "" !important;
  display: block !important;
  opacity: calc(0.13 * var(--ambient-opacity)) !important;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 34, 189, 0.12), rgba(255, 34, 189, 0.035) 36%, transparent 72%),
    radial-gradient(ellipse at 56% 48%, rgba(255, 19, 55, 0.08), rgba(255, 19, 55, 0.025) 38%, transparent 76%) !important;
  filter: none !important;
  animation: none !important;
  pointer-events: none !important;
}

html[data-soundzone-lite="true"] .notice-card {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
  will-change: auto !important;
}

html[data-soundzone-lite="true"] .notice-card.show {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

html[data-soundzone-lite="true"] .notice-card.closing {
  opacity: 0 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

html[data-soundzone-lite="true"] .modal-layer,
html[data-soundzone-lite="true"] .behavior-layer,
html[data-soundzone-lite="true"] .connection-layer,
html[data-soundzone-lite="true"] .disconnect-layer,
html[data-soundzone-lite="true"] .redirect-modal,
html[data-soundzone-lite="true"] .behavior-modal,
html[data-soundzone-lite="true"] .connection-modal,
html[data-soundzone-lite="true"] .disconnect-modal {
  transition: none !important;
  animation: none !important;
  filter: none !important;
}

html[data-soundzone-lite="true"] .modal-layer.open .redirect-modal,
html[data-soundzone-lite="true"] .behavior-layer.open .behavior-modal,
html[data-soundzone-lite="true"] .connection-layer.open .connection-modal,
html[data-soundzone-lite="true"] .disconnect-layer.open .disconnect-modal {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  filter: none !important;
}

html[data-soundzone-lite="true"] .modal-layer.closing .redirect-modal,
html[data-soundzone-lite="true"] .behavior-layer.closing .behavior-modal,
html[data-soundzone-lite="true"] .connection-layer.closing .connection-modal,
html[data-soundzone-lite="true"] .disconnect-layer.closing .disconnect-modal {
  opacity: 0 !important;
  transform: none !important;
  animation: none !important;
  filter: none !important;
}


.title-caret,
body.started .title-caret,
html[data-soundzone-lite="true"] .title-caret,
html[data-soundzone-lite="true"] body.started .title-caret {
  animation: none !important;
}

.toast,
.toast.show,
.toast.option-toast,
.toast.option-toast.show,
.toast.muted-toast,
.toast.muted-toast.show {
  transition: none !important;
  transform: translate(-50%, 0) scale(1) !important;
}

html[data-soundzone-lite="true"] .subtitle,
html[data-soundzone-lite="true"] .community-line,
html[data-soundzone-lite="true"] .code-panel {
  transform: none !important;
  filter: none !important;
  transition-property: opacity !important;
}

html[data-soundzone-lite="true"] body.started .subtitle,
html[data-soundzone-lite="true"] body.started .community-line,
html[data-soundzone-lite="true"] body.started .code-panel {
  transform: none !important;
  filter: none !important;
}