/* ==========================================================================
   Mow Liberty — Mobile App Startup Animation & Launch Screen
   Palette harmonized directly with brand/images/Logo_mow_liberty_main.jpg
   ========================================================================== */

:root {
  --ml-navy: #0b2240;
  --ml-navy-deep: #07162b;
  --ml-blue: #2a6ea6;
  --ml-teal: #155b54;
  --ml-emerald: #2f7d57;
  --ml-lawn: #4f9a5d;
  --ml-lawn-bright: #75be76;
  --ml-cyan: #3ab7c6;
  --ml-cyan-soft: #9bd0d6;
  --ml-mint-mist: #eef8f6;
  --ml-white: #ffffff;
  --ml-ink: #0f243d;
  --ml-muted: #4b6279;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

  --phone-w: 393px;
  --phone-h: 844px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--ml-ink);
  background: #091728;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Desktop Stage & Phone Mockup Frame
   ========================================================================== */

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 20px;
  background:
    radial-gradient(circle at 20% 20%, rgba(58, 183, 198, 0.16), transparent 48%),
    radial-gradient(circle at 80% 80%, rgba(79, 154, 93, 0.18), transparent 50%),
    linear-gradient(155deg, #071423 0%, #0d233a 55%, #0c2c2b 100%);
}

/* Fullscreen mode overrides phone frame */
.stage.is-fullscreen {
  padding: 0;
  gap: 0;
}

.stage.is-fullscreen .device-shell {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  background: #ffffff;
}

.stage.is-fullscreen .device-notch,
.stage.is-fullscreen .device-home-bar,
.stage.is-fullscreen .status-bar {
  display: none;
}

.stage.is-fullscreen .app-viewport {
  border-radius: 0;
}

.stage.is-fullscreen .studio-panel {
  position: fixed;
  top: 14px;
  right: 14px;
  width: auto;
  max-width: 260px;
  padding: 12px 14px;
  z-index: 60;
  background: rgba(7, 22, 43, 0.78);
  backdrop-filter: blur(14px);
}

.stage.is-fullscreen .studio-panel .studio-hide-compact {
  display: none;
}

/* Phone Shell */
.device-shell {
  position: relative;
  width: auto;
  height: min(var(--phone-h), calc(100vh - 36px));
  max-height: var(--phone-h);
  aspect-ratio: 393 / 844;
  border-radius: 50px;
  padding: 11px;
  background: linear-gradient(145deg, #27394d, #0f1924 45%, #1f3344);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 1px 0 rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
  transition: all 0.45s var(--ease-out-expo);
}

.app-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: #ffffff;
  isolation: isolate;
}

/* Mobile Status Bar & Dynamic Island */
.device-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 28px;
  background: #080f18;
  border-radius: 18px;
  z-index: 40;
  pointer-events: none;
}

.status-bar {
  position: absolute;
  top: 12px;
  left: 24px;
  right: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--ml-navy);
  z-index: 35;
  pointer-events: none;
  letter-spacing: 0.01em;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-icons svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.device-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 124px;
  height: 4.5px;
  border-radius: 99px;
  background: rgba(11, 34, 64, 0.26);
  z-index: 45;
  pointer-events: none;
}

/* ==========================================================================
   Living Robotic Mower Field Canvas Layer
   ========================================================================== */

#fieldCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  z-index: 1;
}

/* Soft seamless pure-white sunrise sky gradient at top so the untouched
   white-background logo blends effortlessly with zero rectangular border */
.sky-veil {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 48%,
    rgba(255, 255, 255, 0.94) 64%,
    rgba(255, 255, 255, 0.56) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: height 1.1s var(--ease-out-expo), opacity 0.9s ease;
}

.app-viewport.state-splash .sky-veil {
  height: 56%;
}

.app-viewport.state-ready .sky-veil {
  height: 33%;
}

/* Subtle animated sunrise rays echoing the logo's sunbeams */
.sunbeams {
  position: absolute;
  top: 74px;
  left: 50%;
  width: 440px;
  height: 440px;
  transform: translate(-50%, -32%) scale(0.85);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease, transform 1.4s var(--ease-out-expo), top 1.1s var(--ease-out-expo);
  background: repeating-conic-gradient(
    from -90deg,
    rgba(155, 208, 214, 0.13) 0deg 6deg,
    transparent 6deg 18deg
  );
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.85) 12%, transparent 66%);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.85) 12%, transparent 66%);
  animation: sunbeamSpin 48s linear infinite;
}

.app-viewport.state-splash .sunbeams {
  opacity: 1;
  transform: translate(-50%, -26%) scale(1.06);
}

.app-viewport.state-ready .sunbeams {
  top: 26px;
  opacity: 0.65;
  transform: translate(-50%, -44%) scale(0.76);
}

@keyframes sunbeamSpin {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}

/* ==========================================================================
   Brand Hero: Logo + Tagline Choreography
   ========================================================================== */

.brand-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 58px 20px 0;
  pointer-events: none;
  transition: transform 1.05s var(--ease-out-expo), padding 1.05s var(--ease-out-expo);
}

/* During initial dawn (Act 1), logo waits slightly elevated & hidden */
.app-viewport.state-dawn .brand-hero {
  transform: translateY(84px);
}

/* During Act 2/3 splash reveal, logo takes commanding center-upper stage */
.app-viewport.state-splash .brand-hero {
  transform: translateY(42px);
}

/* During Act 4 ready startup page, logo glides smoothly into crisp header */
.app-viewport.state-ready .brand-hero {
  transform: translateY(0px);
  padding-top: 42px;
}

.logo-frame {
  width: 280px;
  max-width: 82%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  transition:
    opacity 0.95s var(--ease-out-expo),
    transform 1.05s var(--ease-out-expo),
    width 1.05s var(--ease-out-expo);
}

.app-viewport.state-splash .logo-frame {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-viewport.state-ready .logo-frame {
  opacity: 1;
  width: 204px;
  transform: translateY(0) scale(1);
}

/* Official logo image — NEVER cropped, recolored, or altered.
   mix-blend-mode: multiply keeps exact colors over #ffffff and makes
   margins seamless over ultra-pale sunrise rays. */
.logo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
  user-select: none;
  -webkit-user-drag: none;
}

.tagline-wrap {
  margin-top: 4px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.85s var(--ease-out-expo) 0.25s, transform 0.9s var(--ease-out-expo) 0.25s;
}

.app-viewport.state-splash .tagline-wrap,
.app-viewport.state-ready .tagline-wrap {
  opacity: 1;
  transform: translateY(0);
}

.tagline {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ml-teal);
  transition: font-size 0.9s var(--ease-out-expo);
}

.app-viewport.state-ready .tagline {
  font-size: 11px;
  letter-spacing: 0.08em;
}

.sub-quip {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ml-muted);
  max-width: 280px;
  line-height: 1.35;
  opacity: 0;
  max-height: 44px;
  overflow: hidden;
  transition: opacity 0.7s ease 0.45s, max-height 0.8s var(--ease-out-expo), margin 0.8s ease;
}

.app-viewport.state-splash .sub-quip {
  opacity: 1;
}

.app-viewport.state-ready .sub-quip {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
}

/* ==========================================================================
   Live Field Floating HUD (Telemetry + Skip / Tap Hint)
   ========================================================================== */

.field-hud-top {
  position: absolute;
  top: 46px;
  right: 16px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skip-btn {
  appearance: none;
  border: 1px solid rgba(11, 34, 64, 0.12);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  color: var(--ml-navy);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(11, 34, 64, 0.08);
  transition: opacity 0.35s ease, transform 0.25s ease, background 0.2s ease;
}

.skip-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.app-viewport.state-ready .skip-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

.replay-mini-btn {
  appearance: none;
  border: 1px solid rgba(11, 34, 64, 0.12);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  color: var(--ml-navy);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(11, 34, 64, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
  transition: opacity 0.45s ease 0.3s, transform 0.45s var(--ease-spring) 0.3s, background 0.2s ease;
}

.app-viewport.state-ready .replay-mini-btn {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.replay-mini-btn:hover {
  background: #ffffff;
  transform: scale(1.06);
}

.replay-mini-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Telemetry Pill floating cleanly above the bottom sheet */
.telemetry-pill {
  position: absolute;
  left: 14px;
  bottom: 24px;
  z-index: 16;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 99px;
  background: rgba(7, 22, 43, 0.74);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(155, 208, 214, 0.25);
  color: #f3fbfa;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(7, 22, 43, 0.24);
  pointer-events: none;
  transition: bottom 0.95s var(--ease-out-expo), opacity 0.6s ease;
}

.app-viewport.state-ready .telemetry-pill {
  bottom: calc(var(--sheet-h, 340px) + 10px);
}

.app-viewport.state-sheet-collapsed .telemetry-pill {
  bottom: 84px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ef0c8;
  box-shadow: 0 0 0 0 rgba(78, 240, 200, 0.7);
  animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(78, 240, 200, 0.75);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(78, 240, 200, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(78, 240, 200, 0);
  }
}

.tap-hint {
  position: absolute;
  right: 14px;
  bottom: 24px;
  z-index: 16;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  color: var(--ml-navy);
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(7, 22, 43, 0.14);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: bottom 0.95s var(--ease-out-expo), opacity 0.6s ease, transform 0.6s ease;
}

.app-viewport.state-ready .tap-hint {
  bottom: calc(var(--sheet-h, 340px) + 10px);
  opacity: 1;
  transform: translateY(0);
}

.app-viewport.state-sheet-collapsed .tap-hint {
  bottom: 84px;
  opacity: 1;
}

/* ==========================================================================
   Act 4: Signature Intent Bottom Sheet (First Screen)
   ========================================================================== */

.intent-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 22;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 26px 26px 0 0;
  padding: 8px 16px 22px;
  box-shadow:
    0 -14px 40px rgba(7, 22, 43, 0.18),
    0 -2px 0 rgba(58, 183, 198, 0.16);
  transform: translateY(105%);
  transition: transform 0.95s var(--ease-out-expo);
}

.app-viewport.state-ready .intent-sheet {
  transform: translateY(0%);
}

.app-viewport.state-sheet-collapsed .intent-sheet {
  transform: translateY(calc(100% - 72px));
}

.sheet-handle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 2px 0 8px;
  cursor: pointer;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: rgba(11, 34, 64, 0.18);
  transition: background 0.2s ease, width 0.2s ease;
}

.sheet-handle-btn:hover .sheet-handle {
  background: rgba(11, 34, 64, 0.34);
  width: 52px;
}

.sheet-eyebrow {
  margin: 0 0 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ml-blue);
}

.sheet-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ml-navy);
}

/* Primary Hero Choice (the biggest, nicest choice per CLAUDE.md §1) */
.hero-choice {
  position: relative;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 16px;
  padding: 13px 14px;
  cursor: pointer;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(130deg, #0b2240 0%, #155b54 58%, #348758 100%);
  box-shadow:
    0 12px 26px rgba(11, 34, 64, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease;
}

.hero-choice::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.8s ease;
}

.hero-choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(11, 34, 64, 0.3);
}

.hero-choice:hover::after {
  transform: translateX(120%);
}

.hero-choice:active {
  transform: scale(0.985);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  color: #b7f5e5;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.hero-choice-title {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.hero-choice-sub {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(236, 249, 246, 0.88);
}

.hero-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-spring), background 0.25s ease;
}

.hero-choice:hover .hero-arrow {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.26);
}

.hero-arrow svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Secondary Intent Grid */
.secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}

.secondary-choice {
  appearance: none;
  border: 1px solid rgba(11, 34, 64, 0.1);
  background: #f6faf9;
  border-radius: 14px;
  padding: 11px 11px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s ease, background 0.2s ease;
}

.secondary-choice:hover {
  background: #ffffff;
  border-color: rgba(42, 110, 166, 0.38);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(11, 34, 64, 0.07);
}

.secondary-choice:active {
  transform: scale(0.98);
}

.sec-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ml-navy);
  line-height: 1.2;
}

.sec-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(42, 110, 166, 0.11);
  color: var(--ml-teal);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sec-icon svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sec-desc {
  font-size: 11px;
  color: var(--ml-muted);
  line-height: 1.28;
}

/* Interactive Route Confirmation Toast inside the App */
.route-toast {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 24px;
  z-index: 38;
  background: var(--ml-navy);
  color: #ffffff;
  border-radius: 16px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 18px 36px rgba(7, 22, 43, 0.42);
  border: 1px solid rgba(155, 208, 214, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out-expo);
}

.route-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.route-toast-title {
  font-size: 13px;
  font-weight: 700;
  color: #79f2d4;
}

.route-toast-body {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
  line-height: 1.3;
}

.route-toast-close {
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ==========================================================================
   Desktop Preview Controls Panel (hidden on mobile screens)
   ========================================================================== */

.studio-panel {
  width: 300px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(155, 208, 214, 0.18);
  color: #edf7f6;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.studio-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ml-cyan-soft);
}

.studio-heading {
  margin: 4px 0 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.studio-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.48;
  color: rgba(237, 247, 246, 0.78);
}

.studio-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ctrl-btn {
  appearance: none;
  border: 1px solid rgba(155, 208, 214, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 11px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(155, 208, 214, 0.45);
}

.ctrl-btn:active {
  transform: scale(0.97);
}

.ctrl-btn.primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #2a6ea6, #1c7c68);
  border-color: rgba(155, 208, 214, 0.35);
}

.ctrl-btn.is-active {
  background: rgba(58, 183, 198, 0.24);
  border-color: var(--ml-cyan);
  color: #c8f9ff;
}

.studio-legend {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: rgba(237, 247, 246, 0.84);
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.studio-tip {
  font-size: 12px;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(58, 183, 198, 0.12);
  border: 1px solid rgba(58, 183, 198, 0.22);
  color: #d6f4f7;
}

/* ==========================================================================
   Responsive: On real phones / narrow screens, go full native mobile PWA
   ========================================================================== */

@media (max-width: 820px) {
  .stage {
    padding: 0;
    gap: 0;
  }

  .studio-panel {
    display: none;
  }

  .device-shell {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: #ffffff;
  }

  .app-viewport {
    border-radius: 0;
  }

  .device-notch,
  .device-home-bar,
  .status-bar {
    display: none;
  }

  .brand-hero {
    padding-top: 22px;
  }

  .app-viewport.state-ready .brand-hero {
    padding-top: 16px;
  }

  .field-hud-top {
    top: 16px;
  }
}

/* Respect Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  .sunbeams,
  .pulse-dot {
    animation: none !important;
  }
}
