:root {
  --keiazo-viewport-width: 100vw;
  --keiazo-viewport-height: 100dvh;
  --keiazo-glass-blur: 22px;
  --keiazo-glass-saturation: 145%;
  --keiazo-glass-fill: rgba(19, 24, 34, 0.52);
  --keiazo-glass-fill-strong: rgba(18, 23, 32, 0.68);
  --keiazo-glass-border: rgba(255, 255, 255, 0.34);
  --keiazo-glass-highlight: rgba(255, 255, 255, 0.34);
  --keiazo-glass-shadow:
    0 20px 60px rgba(0, 0, 0, 0.34), 0 4px 18px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 var(--keiazo-glass-highlight);
}

/* The mobile scene follows the live Safari viewport instead of retaining the
   old 430 x 900 mock-device box. */
.solo-shell:not(.desktop),
.solo-shell:not(.desktop) .device-stage,
.solo-shell:not(.desktop) .device-body,
.solo-shell:not(.desktop) .device-screen {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100vw;
  width: var(--keiazo-viewport-width);
  height: 100dvh;
  height: var(--keiazo-viewport-height);
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  overflow: hidden;
}

.solo-shell:not(.desktop) #gl,
.solo-shell:not(.desktop) .chrome,
.solo-shell:not(.desktop) .dock-interaction {
  width: 100vw;
  width: var(--keiazo-viewport-width);
  height: 100dvh;
  height: var(--keiazo-viewport-height);
}

/* Garden-inspired Liquid Glass surfaces. These selectors intentionally change
   paint only: the generated Svelte component keeps ownership of every size,
   margin and aspect-ratio decision. */
dialog,
.qr-card,
.error,
.credit,
.qr-button,
.pick,
.settings-heading button,
.settings-content button {
  -webkit-backdrop-filter: blur(var(--keiazo-glass-blur))
    saturate(var(--keiazo-glass-saturation));
  backdrop-filter: blur(var(--keiazo-glass-blur))
    saturate(var(--keiazo-glass-saturation));
  border: 1px solid var(--keiazo-glass-border) !important;
  box-shadow: var(--keiazo-glass-shadow) !important;
}

dialog {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.17),
      rgba(255, 255, 255, 0.045) 34%,
      rgba(255, 255, 255, 0.015) 64%
    ),
    radial-gradient(
      circle at 18% 0%,
      rgba(178, 205, 255, 0.13),
      transparent 48%
    ),
    var(--keiazo-glass-fill) !important;
}

#motion-permission {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.055) 34%,
      rgba(255, 255, 255, 0.018) 68%
    ),
    radial-gradient(
      circle at 22% 0%,
      rgba(191, 215, 255, 0.16),
      transparent 52%
    ),
    rgba(16, 21, 30, 0.46) !important;
}

#motion-permission.keiazo-liquid-ready,
#settings-dialog.keiazo-liquid-ready,
#keiazo-quick-menu.keiazo-liquid-ready,
dialog[aria-labelledby="fullscreen-help-title"].keiazo-liquid-ready {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: transparent !important;
  isolation: isolate;
  overflow: hidden;
}

/* The church /option1 WebGL surface owns the finished material. Enable Motion
   uses the shader directly; Settings receives only the requested subtle finish. */
.keiazo-liquid-ready > :not(.keiazo-liquid-glass) {
  position: relative;
  z-index: 1;
}


/* Preserve the refractive shader while giving Settings a barely-there soft,
   luminous finish over the sampled scene. */
#motion-permission.keiazo-liquid-ready::after,
#settings-dialog.keiazo-liquid-ready::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  background: rgba(255, 255, 255, 0.045);
}

.keiazo-liquid-glass {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}

#keiazo-quick-menu {
  width: min(372px, calc(100vw - 32px));
  padding: 24px;
}

#keiazo-quick-menu h2 {
  margin-bottom: 18px;
}

.keiazo-quick-actions {
  display: grid;
  gap: 10px;
}

.keiazo-quick-actions button,
.keiazo-quick-actions a {
  color: #fff;
  text-align: left;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 18px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12) !important;
}

.keiazo-quick-actions svg {
  width: 23px;
  height: 23px;
  margin-right: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.keiazo-native-language {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.keiazo-language-control {
  position: relative;
  width: 100%;
  margin-top: 8px;
}

.keiazo-language-trigger,
.keiazo-language-option {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f7f8fb;
  background: rgba(9, 12, 19, 0.72);
  font: inherit;
}

.keiazo-language-trigger {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.keiazo-language-trigger svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.keiazo-language-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: min(280px, 42dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 17px;
  background: rgba(7, 10, 16, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.48);
  scrollbar-width: thin;
}

.keiazo-language-menu[hidden] {
  display: none;
}

.keiazo-language-option {
  min-height: 43px;
  padding: 9px 12px;
  border: 0;
  border-radius: 11px;
  display: block;
  text-align: left;
}

.keiazo-language-option.is-selected {
  color: #11151c;
  background: #f3f5f8;
  font-weight: 700;
}

dialog::backdrop {
  -webkit-backdrop-filter: blur(10px) saturate(118%);
  backdrop-filter: blur(10px) saturate(118%);
  background: rgba(2, 4, 8, 0.48);
}

.qr-card,
.error {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.045) 55%
    ),
    var(--keiazo-glass-fill-strong) !important;
}

.qr-card span,
.qr-placeholder {
  color: rgba(255, 255, 255, 0.76) !important;
}

.credit,
.qr-button,
.pick,
.settings-heading button,
.settings-content button {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.035)
    ),
    rgba(20, 25, 34, 0.5) !important;
}

dialog > button,
dialog form > button {
  color: #15181d !important;
}

#motion-permission button,
dialog[aria-labelledby="fullscreen-help-title"] button {
  color: #15181d !important;
}

@supports not (
  (-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))
) {
  dialog,
  .qr-card,
  .error,
  .credit,
  .qr-button,
  .pick,
  .settings-heading button,
  .settings-content button {
    background: rgba(18, 23, 32, 0.96);
  }
}

@media (prefers-reduced-transparency: reduce) {
  dialog,
  .qr-card,
  .error,
  .credit,
  .qr-button,
  .pick,
  .settings-heading button,
  .settings-content button {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #171c25;
  }
}

@media (prefers-contrast: more) {
  dialog,
  .qr-card,
  .error {
    background: #111722;
    border-color: rgba(255, 255, 255, 0.76) !important;
  }
}


@media (display-mode: standalone), (display-mode: fullscreen) {
  html,
  body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: none;
    background: #050609;
  }
}

.solo-shell:not(.desktop) dialog {
  max-height: calc(var(--keiazo-viewport-height) - 32px);
}


/* Desktop motion-study redesign. Mobile and coarse-pointer layouts remain owned by the app. */
@media (hover: hover) and (pointer: fine) {
  html,
  body {
    background: #050609;
  }

  .solo-shell.desktop {
    position: relative;
    display: block;
    width: 100vw;
    min-height: 100dvh;
    overflow: hidden;
    padding: 0;
    color: #f5f6f8;
    background:
      radial-gradient(circle at 74% 44%, rgba(126, 140, 170, 0.17), transparent 24%),
      radial-gradient(circle at 20% 16%, rgba(73, 87, 255, 0.1), transparent 26%),
      linear-gradient(118deg, #050609 0%, #090b10 52%, #050609 100%);
    isolation: isolate;
  }

  .solo-shell.desktop::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: 0.19;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 88px 88px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 66%);
    mask-image: linear-gradient(90deg, #000, transparent 66%);
  }

  .solo-shell.desktop::after {
    content: "MOTION / DEPTH / 180°";
    position: absolute;
    right: 28px;
    top: 50%;
    color: rgba(255, 255, 255, 0.34);
    letter-spacing: 0.22em;
    font-size: 10px;
    font-weight: 650;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: center;
  }

  .solo-shell.desktop .project-name {
    position: absolute;
    z-index: 6;
    top: clamp(24px, 4.5vh, 54px);
    left: clamp(28px, 6vw, 94px);
    display: flex;
    gap: 7px;
    margin: 0;
    color: #f8f8fa;
    letter-spacing: -0.055em;
    font-size: clamp(18px, 1.5vw, 24px);
    line-height: 1;
  }

  .solo-shell.desktop .project-name span:last-child {
    color: #8d95ff;
  }

  .keiazo-desktop-story {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: clamp(28px, 6vw, 94px);
    width: min(38vw, 560px);
    transform: translateY(-54%);
  }

  .keiazo-desktop-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(22px, 4vh, 44px);
    color: rgba(231, 234, 244, 0.58);
    letter-spacing: 0.2em;
    font-size: 10px;
    font-weight: 750;
  }

  .keiazo-desktop-eyebrow span,
  .keiazo-desktop-note span {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #7e87ff;
    box-shadow: 0 0 18px rgba(126, 135, 255, 0.9);
  }

  .keiazo-desktop-story h1 {
    max-width: 620px;
    margin: 0;
    color: #f6f6f8;
    letter-spacing: -0.072em;
    font-size: clamp(54px, 6vw, 106px);
    font-weight: 520;
    line-height: 0.88;
  }

  .keiazo-desktop-story h1 em {
    color: transparent;
    font-style: normal;
    -webkit-text-stroke: 1px rgba(225, 229, 242, 0.64);
  }

  .keiazo-desktop-lede {
    max-width: 485px;
    margin: clamp(24px, 4vh, 42px) 0 0;
    color: rgba(226, 229, 238, 0.68);
    letter-spacing: -0.025em;
    font-size: clamp(15px, 1.25vw, 19px);
    line-height: 1.55;
  }

  .keiazo-desktop-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: clamp(24px, 4vh, 40px);
  }

  .keiazo-desktop-launch,
  .keiazo-desktop-code {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 22px;
    box-sizing: border-box;
    border-radius: 999px;
    padding: 0 22px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
  }

  .keiazo-desktop-launch {
    color: #08090c;
    background: #f4f5f7;
    border: 1px solid #fff;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
  }

  .keiazo-desktop-code {
    color: rgba(244, 245, 248, 0.74);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  .keiazo-desktop-launch:hover,
  .keiazo-desktop-code:hover {
    transform: translateY(-1px);
  }

  .keiazo-desktop-launch:focus-visible,
  .keiazo-desktop-code:focus-visible {
    outline: 2px solid #939aff;
    outline-offset: 4px;
  }

  .keiazo-desktop-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0;
    color: rgba(223, 226, 235, 0.42);
    font-size: 11px;
  }

  .solo-shell.desktop .device-stage {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: clamp(42px, 5.5vw, 98px);
    width: min(49vw, 720px);
    height: min(88dvh, 900px);
    min-height: 360px;
    transform: translateY(-50%);
  }

  .solo-shell.desktop .device-stage::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    bottom: 4%;
    width: 72%;
    height: 14%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    filter: blur(32px);
    transform: translateX(-50%);
  }

  .solo-shell.desktop .device-stage canvas {
    filter:
      drop-shadow(0 42px 45px rgba(0, 0, 0, 0.55))
      drop-shadow(0 0 52px rgba(104, 116, 164, 0.1));
  }

  .solo-shell.desktop .model-status {
    color: rgba(235, 237, 244, 0.52);
    letter-spacing: 0.08em;
    font-size: 10px;
    text-transform: uppercase;
  }

  .solo-shell.desktop .phone-invite {
    position: absolute;
    z-index: 8;
    top: auto;
    right: auto;
    bottom: clamp(28px, 5vh, 58px);
    left: clamp(28px, 6vw, 94px);
    display: flex;
    width: auto;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .solo-shell.desktop .phone-invite p {
    order: 2;
    width: 164px;
    margin: 0;
    color: rgba(224, 227, 236, 0.48);
    font-size: 11px;
    line-height: 1.45;
  }

  .solo-shell.desktop .qr-control {
    order: 1;
    width: 46px;
    margin: 0;
  }

  .solo-shell.desktop .qr-button {
    width: 46px;
    height: 46px;
    color: #d9dbe3;
    background: rgba(255, 255, 255, 0.055) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    border-radius: 50%;
    box-shadow: none !important;
  }

  .solo-shell.desktop .qr-popover {
    right: auto;
    left: 0;
  }

  .solo-shell.desktop .preview-controls {
    position: absolute;
    z-index: 7;
    right: clamp(56px, 8vw, 138px);
    bottom: clamp(24px, 4vh, 48px);
    width: min(29vw, 390px);
    padding: 13px 16px 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(8, 10, 14, 0.58);
    backdrop-filter: blur(14px);
  }

  .solo-shell.desktop .preview-label {
    margin-bottom: 8px;
    color: rgba(233, 235, 242, 0.58);
    letter-spacing: 0.05em;
    font-size: 9px;
    text-transform: uppercase;
  }

  .solo-shell.desktop .preview-reset {
    color: rgba(239, 241, 247, 0.5);
  }

  .solo-shell.desktop .model-credit {
    right: 26px;
    bottom: 14px;
    left: auto;
    color: rgba(216, 219, 228, 0.24);
    font-size: 8px;
  }

  .solo-shell.desktop .device-body {
    visibility: hidden;
  }

  .solo-shell.desktop:not(.keiazo-desktop-ready) .keiazo-desktop-story {
    opacity: 0;
    transform: translateY(-50%);
  }

  .solo-shell.desktop.keiazo-desktop-ready .keiazo-desktop-story {
    opacity: 1;
    transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
}

@media (hover: hover) and (pointer: fine) and (max-width: 1050px) {
  .keiazo-desktop-story {
    width: 43vw;
  }

  .keiazo-desktop-story h1 {
    font-size: clamp(46px, 6.5vw, 70px);
  }

  .solo-shell.desktop .device-stage {
    right: 16px;
    width: 52vw;
  }

  .solo-shell.desktop .preview-controls {
    right: 38px;
    width: 33vw;
  }
}

@media (hover: hover) and (pointer: fine) and (max-height: 680px) {
  .keiazo-desktop-story {
    transform: translateY(-50%);
  }

  .keiazo-desktop-eyebrow {
    margin-bottom: 18px;
  }

  .keiazo-desktop-story h1 {
    font-size: clamp(45px, 5.4vw, 76px);
  }

  .keiazo-desktop-lede {
    margin-top: 20px;
  }

  .keiazo-desktop-actions {
    margin-top: 22px;
  }

  .solo-shell.desktop .device-stage {
    height: 92dvh;
  }
}


/* High-energy desktop gradient field. */
@media (hover: hover) and (pointer: fine) {
  .solo-shell.desktop {
    background: #050609;
  }

  .solo-shell.desktop::before {
    z-index: 1;
    opacity: 0.13;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.75) 48%, transparent 88%);
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.75) 48%, transparent 88%);
  }

  .solo-shell.desktop::after {
    z-index: 6;
  }

  .keiazo-gradient-field {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
      radial-gradient(circle at 71% 48%, rgba(255, 255, 255, 0.07), transparent 17%),
      linear-gradient(110deg, rgba(2, 3, 8, 0.08), rgba(2, 3, 8, 0.5));
  }

  .keiazo-gradient-field::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(5, 6, 9, 0.36) 0%, transparent 35%, rgba(5, 6, 9, 0.12) 70%, rgba(5, 6, 9, 0.42) 100%),
      linear-gradient(0deg, rgba(5, 6, 9, 0.38), transparent 26%, transparent 74%, rgba(5, 6, 9, 0.3));
  }

  .keiazo-gradient-blob {
    position: absolute;
    display: block;
    border-radius: 43% 57% 61% 39% / 45% 38% 62% 55%;
    filter: blur(clamp(52px, 5vw, 90px)) saturate(138%);
    mix-blend-mode: screen;
    will-change: transform;
  }

  .keiazo-gradient-blob--violet {
    top: -31vw;
    left: 29vw;
    width: 58vw;
    height: 58vw;
    opacity: 0.68;
    background:
      radial-gradient(circle at 48% 54%, rgba(115, 75, 255, 0.94) 0%, rgba(75, 48, 230, 0.78) 32%, rgba(36, 39, 145, 0.3) 57%, transparent 72%);
    animation: keiazo-blob-violet 16s ease-in-out infinite alternate;
  }

  .keiazo-gradient-blob--blue {
    top: 13%;
    right: -15vw;
    width: 51vw;
    height: 55vw;
    opacity: 0.72;
    background:
      radial-gradient(circle at 38% 46%, rgba(33, 129, 255, 0.95) 0%, rgba(37, 72, 232, 0.72) 34%, rgba(25, 34, 116, 0.28) 62%, transparent 75%);
    animation: keiazo-blob-blue 19s ease-in-out infinite alternate;
  }

  .keiazo-gradient-blob--cyan {
    bottom: -28vw;
    left: 18vw;
    width: 49vw;
    height: 49vw;
    opacity: 0.52;
    background:
      radial-gradient(circle at 56% 34%, rgba(27, 229, 224, 0.9) 0%, rgba(20, 137, 211, 0.62) 34%, rgba(10, 66, 116, 0.2) 61%, transparent 75%);
    animation: keiazo-blob-cyan 21s ease-in-out infinite alternate;
  }

  .keiazo-gradient-blob--ember {
    right: -13vw;
    bottom: -31vw;
    width: 59vw;
    height: 59vw;
    opacity: 0.7;
    background:
      radial-gradient(circle at 39% 35%, rgba(255, 129, 43, 0.93) 0%, rgba(238, 54, 130, 0.75) 27%, rgba(128, 33, 178, 0.42) 52%, transparent 73%);
    animation: keiazo-blob-ember 17s ease-in-out infinite alternate;
  }

  .keiazo-desktop-story {
    padding-left: 26px;
  }

  .keiazo-desktop-story::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, #8d74ff, rgba(68, 192, 255, 0.3), transparent 88%);
    box-shadow: 0 0 18px rgba(114, 101, 255, 0.55);
  }

  .keiazo-desktop-story h1 em {
    color: transparent;
    background: linear-gradient(100deg, #f4f2ff 3%, #9b8cff 39%, #55c6ff 75%, #dffcff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-stroke: 0;
    filter: drop-shadow(0 12px 34px rgba(86, 101, 255, 0.2));
  }

  .keiazo-desktop-launch {
    background: linear-gradient(105deg, #ffffff 0%, #e7e7ff 53%, #c5eaff 100%);
    box-shadow:
      0 13px 42px rgba(37, 66, 185, 0.24),
      inset 0 1px 0 #fff;
  }

  .solo-shell.desktop .preview-controls {
    background:
      linear-gradient(135deg, rgba(111, 90, 255, 0.1), rgba(8, 10, 14, 0.5) 42%),
      rgba(8, 10, 14, 0.52);
    border-color: rgba(154, 164, 255, 0.2);
  }
}

@keyframes keiazo-blob-violet {
  from { transform: translate3d(-3vw, -1vh, 0) rotate(-8deg) scale(0.94); }
  to { transform: translate3d(7vw, 8vh, 0) rotate(12deg) scale(1.08); }
}

@keyframes keiazo-blob-blue {
  from { transform: translate3d(2vw, -6vh, 0) rotate(7deg) scale(1.04); }
  to { transform: translate3d(-8vw, 7vh, 0) rotate(-13deg) scale(0.92); }
}

@keyframes keiazo-blob-cyan {
  from { transform: translate3d(-5vw, 3vh, 0) rotate(-10deg) scale(0.94); }
  to { transform: translate3d(8vw, -8vh, 0) rotate(14deg) scale(1.09); }
}

@keyframes keiazo-blob-ember {
  from { transform: translate3d(5vw, 6vh, 0) rotate(12deg) scale(1.08); }
  to { transform: translate3d(-7vw, -6vh, 0) rotate(-9deg) scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
  .keiazo-gradient-blob {
    animation: none !important;
  }
}


/* Reserve a separate desktop area for the preview controls and open QR upward. */
@media (hover: hover) and (pointer: fine) {
  .solo-shell.desktop .device-stage {
    top: 76px;
    bottom: 140px;
    height: auto;
    min-height: 0;
    transform: none;
  }
  .solo-shell.desktop .qr-popover {
    top: auto;
    bottom: calc(100% + 12px);
    left: 0;
    right: auto;
    max-width: calc(100vw - 56px);
    max-height: calc(100dvh - 140px);
    overflow: auto;
  }
}
