:root {
  --bg-start: #02040a;
  --bg-mid: #081120;
  --bg-end: #10294a;
  --flare-a: rgba(26, 72, 112, 0.26);
  --flare-b: rgba(77, 227, 255, 0.14);
  --text-main: #eaffff;
  --text-glow-a: rgba(77, 227, 255, 0.82);
  --text-glow-b: rgba(91, 192, 255, 0.52);
  --text-glow-c: rgba(16, 83, 214, 0.22);
  --text-blur: rgba(98, 255, 228, 0.45);
  --text-offset: rgba(123, 191, 255, 0.35);
  --text: #f4fbff;
  --card-bg: rgba(4, 10, 20, 0.82);
  --card-border: rgba(118, 180, 255, 0.18);
  --accent: #78dfff;
  --danger: #ff9f7d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 18%, var(--flare-a), transparent 34%),
    radial-gradient(circle at 80% 20%, var(--flare-b), transparent 28%),
    linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 48%, var(--bg-end) 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
  transition:
    background 1.6s linear,
    color 1.6s linear;
}

body.network-busy .watcher-stage {
  cursor: progress;
}

body.connection-rush::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(160, 225, 255, 0.08), rgba(7, 14, 28, 0) 22%, rgba(7, 14, 28, 0.22) 100%);
  opacity: 1;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0) 2px,
      rgba(255, 255, 255, 0) 6px
    );
  background-size: 100% 6px;
  opacity: 0.15;
  mix-blend-mode: screen;
}

body.connection-rush::after {
  content: none;
}

#particle-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.corner-action {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 1rem);
  left: calc(env(safe-area-inset-left, 0px) + 1rem);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(173, 225, 255, 0.18);
  border-radius: 999px;
  background: rgba(4, 10, 20, 0.56);
  backdrop-filter: blur(18px);
  color: rgba(239, 249, 255, 0.92);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
}

.corner-action:hover {
  transform: translateY(-1px);
  border-color: rgba(173, 225, 255, 0.34);
  background: rgba(8, 18, 32, 0.74);
}

.corner-action:focus-visible {
  outline: 2px solid rgba(122, 223, 255, 0.72);
  outline-offset: 3px;
}

.corner-action-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
}

.corner-action-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.corner-action-label {
  white-space: nowrap;
}

body.stream-roll-active .corner-action,
body.stream-live-active .corner-action {
  opacity: 0;
  pointer-events: none;
}

.panel {
  position: relative;
  min-height: 100vh;
  padding: 0 5vw;
}

.hero-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.watcher-stage {
  position: relative;
  z-index: 3;
  display: inline-block;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  padding: 1.5rem 0 2.5rem;
  filter: drop-shadow(0 2px 10px rgba(9, 34, 58, 0.14));
  transform-origin: var(--watcher-focus-x, 50%) var(--watcher-focus-y, 50%);
  transition:
    transform 3s linear,
    opacity 2.4s linear,
    filter 2.4s linear;
  will-change: transform, opacity, filter;
}

body:not(.stream-transition-active):not(.stream-expanding-active):not(.stream-roll-active):not(.stream-live-active) .watcher-stage {
  transition:
    transform 1.75s cubic-bezier(0.16, 0.84, 0.2, 1),
    opacity 1.05s ease-out,
    filter 1.1s ease-out;
}

body.stream-transition-active .watcher-stage {
  z-index: 6;
  transform: scale(1);
  opacity: 1;
  filter: drop-shadow(0 2px 10px rgba(9, 34, 58, 0.14));
}

body.stream-expanding-active .watcher-stage {
  z-index: 6;
  transform: scale(18.4);
  opacity: 0.05;
  filter: drop-shadow(0 10px 18px rgba(6, 20, 36, 0.04));
}

body.stream-roll-active .watcher-stage {
  z-index: 2;
  opacity: 0;
  transform: scale(18.8);
  filter: drop-shadow(0 26px 60px rgba(4, 14, 26, 0));
}

body.stream-live-active .watcher-stage {
  z-index: 2;
  opacity: 0;
  transform: scale(18.8);
  filter: drop-shadow(0 26px 60px rgba(4, 14, 26, 0));
}

.watcher-measure {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: clamp(4rem, 13vw, 12rem);
  line-height: 0.92;
  letter-spacing: 0.18em;
  color: transparent;
  text-transform: uppercase;
  user-select: none;
  -webkit-user-select: none;
}

.watcher-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hold-meter {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(520px, 68vw);
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hold-meter.is-visible {
  opacity: 1;
}

body.stream-transition-active .hold-meter,
body.stream-expanding-active .hold-meter,
body.stream-roll-active .hold-meter,
body.stream-live-active .hold-meter,
body.stream-transition-active .stage-status,
body.stream-expanding-active .stage-status,
body.stream-roll-active .stage-status,
body.stream-live-active .stage-status {
  opacity: 0;
}

.hold-meter-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(130, 255, 234, 0.2), rgba(255, 255, 255, 0.95), rgba(255, 213, 168, 0.7));
  box-shadow: 0 0 18px rgba(125, 229, 255, 0.45);
}

.stage-status {
  position: absolute;
  left: 50%;
  top: calc(100% + 1rem);
  min-height: 1.2rem;
  transform: translateX(-50%);
  color: rgba(236, 248, 255, 0.88);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(16, 56, 92, 0.18);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.stage-status.is-visible {
  opacity: 1;
}

.video-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  opacity: 1;
  transition:
    opacity 2s linear,
    background 2.2s linear,
    z-index 0s linear 0.7s;
}

.video-layer.is-hidden {
  opacity: 0;
  pointer-events: none;
}

body.stream-transition-active .video-layer {
  z-index: 1;
  pointer-events: none;
}

body.stream-expanding-active .video-layer {
  z-index: 2;
  pointer-events: none;
  background: rgba(3, 8, 16, 0.04);
}

body.stream-roll-active .video-layer {
  z-index: 4;
  pointer-events: none;
  background: rgba(3, 8, 16, 0.08);
  transition-delay: 0s, 0s, 0s;
}

body.stream-live-active .video-layer {
  z-index: 4;
  pointer-events: auto;
  background: rgba(3, 8, 16, 0.1);
  transition-delay: 0s, 0s, 0s;
}

.video-frame {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: rgba(3, 10, 20, 0.96);
  transform: scale(1.05);
  filter: blur(16px) brightness(0.5) saturate(0.82);
  opacity: 0;
  transition:
    transform 2.8s linear,
    filter 2.8s linear,
    opacity 2.8s linear;
}

body.stream-transition-active .video-frame {
  transform: scale(1.14);
  filter: blur(18px) brightness(0.44) saturate(0.76);
  opacity: 0.06;
}

body.stream-expanding-active .video-frame {
  transform: translateY(0) scale(1.02);
  filter: blur(7px) brightness(0.76) saturate(0.88);
  opacity: 0.68;
}

body.stream-roll-active .video-frame {
  transform: translateY(0) scale(1.005);
  filter: blur(1px) brightness(0.94) saturate(0.96);
  opacity: 1;
}

body.stream-live-active .video-frame {
  transform: translateY(0) scale(1);
  filter: none;
  opacity: 1;
}

.stream-view {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.stream-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #02050c;
  --stream-scale: 1.04;
  transform: scale(var(--stream-scale));
  will-change: transform;
}

body.stream-transition-active .stream-canvas {
  --stream-scale: 1.12;
}

body.stream-expanding-active .stream-canvas {
  --stream-scale: 1.15;
}

body.stream-roll-active .stream-canvas {
  --stream-scale: 1.035;
}

body.stream-live-active .stream-canvas {
  --stream-scale: 1;
}

.video-frame-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 18%, transparent 72%, rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at center, rgba(6, 12, 24, 0) 48%, rgba(4, 10, 18, 0.42) 100%);
  transition: opacity 2.2s linear;
}

body.stream-live-active .video-frame-mask {
  opacity: 0.56;
}

body.stream-expanding-active .video-frame-mask {
  opacity: 0.2;
}

body.stream-roll-active .video-frame-mask {
  opacity: 0.34;
}

.video-hud {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 5.5rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(-18px);
  transition:
    opacity 0.7s ease,
    transform 0.9s cubic-bezier(0.18, 0.9, 0.18, 1);
}

.hud-chip,
.hud-close {
  border: 1px solid rgba(173, 225, 255, 0.18);
  border-radius: 999px;
  background: rgba(4, 10, 20, 0.56);
  backdrop-filter: blur(18px);
  color: rgba(239, 249, 255, 0.92);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hud-chip {
  padding: 0.7rem 0.95rem;
}

.hud-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1;
  padding: 0.72rem 1rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-18px);
  transition:
    opacity 0.7s ease,
    transform 0.9s cubic-bezier(0.18, 0.9, 0.18, 1);
}

body.stream-live-active .video-hud,
body.stream-live-active .hud-close {
  opacity: 1;
  transform: translateY(0);
}

.overlay-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 1rem;
}

.overlay-card {
  width: min(92vw, 520px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  padding: 1.6rem;
  pointer-events: auto;
}

.overlay-card.compact {
  width: min(92vw, 460px);
}

.overlay-card.is-hidden {
  display: none;
}

.overlay-kicker {
  margin: 0 0 0.7rem;
  color: rgba(210, 235, 255, 0.65);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.overlay-card h2 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

.overlay-copy {
  margin: 0.9rem 0 0;
  color: rgba(223, 241, 255, 0.75);
  line-height: 1.7;
}

.manual-form {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field span {
  color: rgba(221, 238, 255, 0.74);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  border: 1px solid rgba(162, 220, 255, 0.16);
  border-radius: 16px;
  background: rgba(8, 14, 24, 0.82);
  color: rgba(247, 252, 255, 0.96);
  padding: 0.95rem 1rem;
  font: inherit;
}

.overlay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.overlay-button {
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.overlay-button.primary {
  border: 1px solid rgba(158, 229, 255, 0.22);
  background: linear-gradient(90deg, rgba(41, 104, 158, 0.56), rgba(91, 193, 255, 0.22));
  color: rgba(9, 17, 24, 0.92);
}

.overlay-button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(222, 241, 255, 0.85);
}

body.download-page {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding:
    calc(env(safe-area-inset-top, 0px) + 1rem)
    calc(env(safe-area-inset-right, 0px) + 1rem)
    calc(env(safe-area-inset-bottom, 0px) + 1rem)
    calc(env(safe-area-inset-left, 0px) + 1rem);
}

.download-shell {
  width: 100%;
  min-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2rem);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.download-back {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 1rem);
  left: calc(env(safe-area-inset-left, 0px) + 1rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(173, 225, 255, 0.18);
  border-radius: 999px;
  background: rgba(4, 10, 20, 0.56);
  backdrop-filter: blur(18px);
  color: rgba(239, 249, 255, 0.92);
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.download-back:hover {
  transform: translateY(-1px);
  border-color: rgba(173, 225, 255, 0.34);
  background: rgba(8, 18, 32, 0.74);
}

.download-back svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.download-action-wrap {
  width: 100%;
  display: grid;
  place-items: center;
  gap: 1rem;
  padding-inline: 1rem;
}

.download-button {
  --liquid-x: 50%;
  --liquid-y: 50%;
  --liquid-core-size: 8%;
  --liquid-rim-size: 13%;
  --liquid-aura-size: 24%;
  --liquid-falloff-size: 48%;
  --liquid-gloss-width: 14%;
  --liquid-gloss-height: 18%;
  --liquid-ring-strength: 0.22;
  --liquid-presence: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 360px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: transparent;
  color: #0b1117;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    transform 0.28s ease,
    filter 0.28s ease,
    box-shadow 0.28s ease;
  box-shadow: 0 14px 34px rgba(3, 12, 24, 0.08);
}

.download-button-lens {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--liquid-x) var(--liquid-y),
      rgba(255, 255, 255, calc(0.22 * var(--liquid-presence))) 0 calc(var(--liquid-core-size) * 0.6),
      rgba(255, 255, 255, calc(0.12 * var(--liquid-presence))) calc(var(--liquid-core-size) * 0.96),
      rgba(255, 255, 255, calc(var(--liquid-ring-strength) * 0.95 * var(--liquid-presence))) calc(var(--liquid-rim-size) * 0.84),
      rgba(196, 237, 255, calc(var(--liquid-ring-strength) * 0.72 * var(--liquid-presence))) var(--liquid-aura-size),
      rgba(196, 237, 255, 0) var(--liquid-falloff-size)
    ),
    radial-gradient(
      circle at var(--liquid-x) var(--liquid-y),
      rgba(255, 255, 255, 0) 0 calc(var(--liquid-core-size) * 0.72),
      rgba(255, 255, 255, calc(var(--liquid-ring-strength) * 1.12 * var(--liquid-presence))) calc(var(--liquid-rim-size) * 0.74),
      rgba(255, 255, 255, 0) calc(var(--liquid-aura-size) * 0.82)
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(146, 222, 255, 0.05) 42%, rgba(18, 42, 68, 0.04) 100%);
  border: 1px solid rgba(235, 248, 255, 0.15);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 28px rgba(8, 20, 34, 0.1),
    0 0 34px rgba(130, 218, 255, 0.08);
  transition: border-color 0.18s ease;
}

.download-button-content {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-width: min(100%, 360px);
  padding: 1.1rem 1.65rem;
  border-radius: inherit;
}

.download-button::before,
.download-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.download-button::before {
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 42%, rgba(16, 34, 52, 0.02) 100%);
  opacity: 0.72;
}

.download-button::after {
  left: var(--liquid-x);
  top: var(--liquid-y);
  width: var(--liquid-gloss-width);
  height: var(--liquid-gloss-height);
  background:
    radial-gradient(circle at 36% 34%, rgba(255, 255, 255, 0.42) 0 18%, rgba(255, 255, 255, 0.22) 34%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(circle at 62% 66%, rgba(182, 232, 255, 0.16) 0 14%, rgba(182, 232, 255, 0) 42%);
  border-radius: 44% 56% 52% 48% / 46% 52% 48% 54%;
  mix-blend-mode: screen;
  filter: blur(10px);
  opacity: calc(0.9 * var(--liquid-presence));
  transform: translate(-50%, -50%);
  transition:
    left 0.16s ease,
    top 0.16s ease,
    width 0.18s ease,
    height 0.18s ease,
    transform 0.18s ease,
    opacity 0.35s ease;
}

.download-button-text {
  color: #0b1117;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.16);
}

.download-button:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.04);
  box-shadow:
    0 18px 40px rgba(3, 12, 24, 0.12),
    0 0 32px rgba(106, 214, 255, 0.08);
}

.download-button.is-liquid-active .download-button-lens {
  border-color: rgba(243, 251, 255, 0.2);
}

.download-button:active {
  transform: translateY(0) scale(0.995);
}

.download-button-icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  color: rgba(9, 17, 24, 0.9);
  filter: drop-shadow(0 0 10px rgba(164, 232, 255, 0.12));
}

.download-button-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.download-button:focus-visible,
.download-back:focus-visible {
  outline: 2px solid rgba(122, 223, 255, 0.72);
  outline-offset: 3px;
}

.download-toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
  z-index: 2;
  margin: 0;
  transform: translateX(-50%) translateY(10px);
  padding: 0.8rem 1rem;
  border: 1px solid rgba(173, 225, 255, 0.16);
  border-radius: 999px;
  background: rgba(4, 10, 20, 0.72);
  backdrop-filter: blur(18px);
  color: rgba(239, 249, 255, 0.9);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.download-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.download-version {
  margin: 0;
  min-height: 1.2rem;
  color: rgba(232, 245, 255, 0.84);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 18px rgba(116, 209, 255, 0.14);
}

.download-version.is-error {
  color: rgba(255, 220, 220, 0.88);
}

@media (max-width: 900px) {
  .watcher-stage {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .panel {
    padding: 0 1rem;
  }

  .corner-action {
    top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
    left: calc(env(safe-area-inset-left, 0px) + 0.75rem);
    padding: 0.7rem 0.9rem;
    gap: 0.55rem;
  }

  .watcher-stage {
    max-width: 100%;
  }

  .hold-meter {
    width: 84vw;
  }

  .stage-status {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
  }

  .video-hud {
    right: 1rem;
  }

  .overlay-card {
    border-radius: 22px;
    padding: 1.2rem;
  }

  body.download-page {
    padding:
      calc(env(safe-area-inset-top, 0px) + 0.9rem)
      calc(env(safe-area-inset-right, 0px) + 0.9rem)
      calc(env(safe-area-inset-bottom, 0px) + 0.9rem)
      calc(env(safe-area-inset-left, 0px) + 0.9rem);
  }

  .download-shell {
    min-height: auto;
  }

  .download-back {
    top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
    left: calc(env(safe-area-inset-left, 0px) + 0.75rem);
    width: 2.75rem;
    height: 2.75rem;
  }

  .download-button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 1rem 1.2rem;
  }

  .download-version {
    max-width: min(calc(100vw - 3rem), 28rem);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .download-toast {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
    width: min(calc(100vw - 2rem), 420px);
    text-align: center;
  }
}
