    *, *::before, *::after {
      box-sizing: border-box;
    }

    /* ========================================================================
       RIZZOR DESIGN SYSTEM TOKENS (WCAG AA >= 4.5:1 Verified in Light & Dark)
       8px Spacing Scale • 3 Radii • 4 Buttons • 1 Unified Icon Container
       ======================================================================== */
    :root {
      /* Legacy aliases kept for full backwards compatibility */
      --primary-rose: #F5B8CA;
      --accent-rose: #A93B5B;
      --deep-plum: #5B3A4E;
      --soft-pink: #FCE7EE;
      --warm-cream: #FFF9F5;
      --lavender: #DDD5F5;
      --soft-peach: #F9D9C6;
      --muted-mint: #D9EDE3;
      --dark-text: #241C26;
      --secondary-text: #5F5563;
      --surface: #FFFFFF;

      /* Design System Surface & Text Tokens (Light Mode) */
      --ds-bg-canvas: #FFF9F5;
      --ds-bg-surface: rgba(255, 255, 255, 0.96);
      --ds-bg-surface-solid: #FFFFFF;
      --ds-bg-subtle: #F7EFF2;
      --ds-border: rgba(48, 40, 50, 0.12);
      --ds-border-strong: rgba(91, 58, 78, 0.24);
      --ds-text-primary: #241C26;
      --ds-text-muted: #5F5563;

      /* Accent & Semantic Status Tokens (Light Mode) */
      --ds-accent: #A93B5B;
      --ds-accent-text: #A93B5B;
      --ds-accent-btn-bg: #A93B5B;
      --ds-accent-btn-text: #FFFFFF;
      --ds-accent-soft: #FCE7EE;
      --ds-accent-soft-text: #5B2336;
      --ds-accent-border: rgba(169, 59, 91, 0.26);
      --ds-success: #0E7A55;
      --ds-warn: #B45309;
      --ds-danger: #C62828;

      /* 8px Spacing Scale */
      --ds-space-1: 4px;
      --ds-space-2: 8px;
      --ds-space-3: 16px;
      --ds-space-4: 24px;
      --ds-space-5: 32px;

      /* 3 Standard Radii */
      --ds-radius-card: 24px;
      --ds-radius-control: 16px;
      --ds-radius-pill: 9999px;

      /* Single Calm Shadow */
      --ds-shadow-card: 0 4px 18px -6px rgba(36, 28, 38, 0.10);
      --ds-shadow-elevated: 0 10px 28px -10px rgba(36, 28, 38, 0.16);

      --safe-bottom: env(safe-area-inset-bottom, 0px);
      --safe-top: env(safe-area-inset-top, 0px);

      /* Phase 1: Scene-Retintable Duotone Icon & Warm Paper Tokens (Light Mode) */
      --icon-1: #5B3A4E;
      --icon-2: #F0B6C8;
      --icon-bg: rgba(91, 58, 78, 0.08);
      --icon-bg-active: rgba(169, 59, 91, 0.14);
      --ds-space-6: 48px;
      --paper-bg: #FFFBF4;
      --paper-line: rgba(91, 58, 78, 0.09);
      --hand-accent: #C74B71;
    }

    .dark {
      --ds-bg-canvas: #0B0B16;
      --ds-bg-surface: rgba(21, 21, 38, 0.94);
      --ds-bg-surface-solid: #151526;
      --ds-bg-subtle: #1E1E36;
      --ds-border: rgba(255, 255, 255, 0.11);
      --ds-border-strong: rgba(255, 255, 255, 0.20);
      --ds-text-primary: #F6F4FF;
      --ds-text-muted: #B4AFC8;

      --ds-accent: #E8799A;
      --ds-accent-text: #F08AA8;
      --ds-accent-btn-bg: #B83B60;
      --ds-accent-btn-text: #FFFFFF;
      --ds-accent-soft: rgba(232, 121, 154, 0.18);
      --ds-accent-soft-text: #FFD6E3;
      --ds-accent-border: rgba(240, 138, 168, 0.32);
      --ds-success: #34D399;
      --ds-warn: #FBBF24;
      --ds-danger: #EF5350;

      --ds-shadow-card: 0 6px 22px -8px rgba(0, 0, 0, 0.48);
      --ds-shadow-elevated: 0 12px 32px -10px rgba(0, 0, 0, 0.62);

      /* Phase 1: Scene-Retintable Duotone Icon & Warm Paper Tokens (Dark Mode) */
      --icon-1: #F5B8CA;
      --icon-2: #B83B60;
      --icon-bg: rgba(245, 184, 202, 0.11);
      --icon-bg-active: rgba(232, 121, 154, 0.22);
      --paper-bg: #18172B;
      --paper-line: rgba(245, 184, 202, 0.09);
      --hand-accent: #F08AA8;
    }

    html {
      width: 100%;
      max-width: 100%;
      overflow-x: clip;
      overflow-y: auto;
      -webkit-text-size-adjust: 100%;
      scroll-behavior: smooth;
    }

    body {
      width: 100%;
      max-width: 100%;
      min-height: 100dvh;
      margin: 0;
      padding: 0;
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      background-color: var(--ds-bg-canvas);
      color: var(--ds-text-primary);
      line-height: 1.5;
      overflow-x: clip;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
      -webkit-tap-highlight-color: transparent;
    }

    /* Typography Scale (Minimum 12px for readability) */
    .ds-h1 {
      font-family: 'Nunito', system-ui, sans-serif;
      font-size: 1.5rem;   /* 24px */
      font-weight: 800;
      line-height: 1.2;
      letter-spacing: -0.015em;
      color: var(--ds-text-primary);
    }
    .ds-h2 {
      font-family: 'Nunito', system-ui, sans-serif;
      font-size: 1.125rem; /* 18px */
      font-weight: 800;
      line-height: 1.3;
      color: var(--ds-text-primary);
    }
    .ds-body {
      font-size: 0.875rem; /* 14px */
      font-weight: 500;
      line-height: 1.5;
      color: var(--ds-text-primary);
    }
    .ds-caption {
      font-size: 0.75rem;  /* 12px */
      font-weight: 600;
      line-height: 1.35;
      color: var(--ds-text-muted);
    }

    /* Unified Cards (Solid/High-Opacity Surface — No Heavy Blur Over Animated Canvas) */
    .ds-card {
      background-color: var(--ds-bg-surface);
      border: 1px solid var(--ds-border);
      border-radius: var(--ds-radius-card);
      box-shadow: var(--ds-shadow-card);
    }
    .ds-card-subtle {
      background-color: var(--ds-bg-subtle);
      border: 1px solid var(--ds-border);
      border-radius: var(--ds-radius-control);
    }

    /* 4 Consistent Button Variants (All 44px+ Tap Targets) */
    .ds-btn-primary,
    .ds-btn-secondary,
    .ds-btn-ghost,
    .ds-btn-danger {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: var(--ds-space-2);
      min-height: 44px;
      padding: 10px 16px;
      border-radius: var(--ds-radius-control);
      font-size: 0.875rem;
      font-weight: 700;
      line-height: 1.2;
      transition: transform 140ms ease, opacity 140ms ease, background-color 140ms ease;
    }
    .ds-btn-primary:active,
    .ds-btn-secondary:active,
    .ds-btn-ghost:active,
    .ds-btn-danger:active {
      transform: scale(0.98);
    }
    .ds-btn-primary {
      background-color: var(--ds-accent-btn-bg);
      color: var(--ds-accent-btn-text);
      border: 1px solid transparent;
      box-shadow: var(--ds-shadow-card);
    }
    .ds-btn-primary:hover { opacity: 0.94; }
    .ds-btn-secondary {
      background-color: var(--ds-accent-soft);
      color: var(--ds-accent-soft-text);
      border: 1px solid var(--ds-accent-border);
    }
    .ds-btn-ghost {
      background-color: var(--ds-bg-subtle);
      color: var(--ds-text-primary);
      border: 1px solid var(--ds-border);
    }
    .ds-btn-danger {
      background-color: var(--ds-danger);
      color: #FFFFFF;
      border: 1px solid transparent;
    }

    /* One Unified Icon Style (40x40px, 16px Radius, Soft Calm Tint, Zero Bounce) */
    .ds-icon-box {
      width: 40px;
      height: 40px;
      border-radius: var(--ds-radius-control);
      background-color: var(--ds-accent-soft);
      color: var(--ds-accent-soft-text);
      border: 1px solid var(--ds-accent-border);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .ds-icon-box svg {
      width: 20px;
      height: 20px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.85;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* Active Navigation Pill (Clean in BOTH Light & Dark Mode) */
    .nav-btn-active {
      background-color: var(--ds-accent-soft) !important;
      color: var(--ds-accent-soft-text) !important;
      font-weight: 700 !important;
    }

    /* Global Dark Mode Contrast Safeguards (Fixes Audit Contrast Failures Site-Wide) */
    .dark .text-muted {
      color: var(--ds-text-muted);
    }
    .dark .text-rose {
      color: var(--ds-accent-text);
    }
    .dark .bg-blush:not([class*="dark:bg-"]) {
      background-color: var(--ds-accent-soft);
      color: var(--ds-accent-soft-text);
      border-color: var(--ds-accent-border);
    }
    .dark .bg-lavender:not([class*="dark:bg-"]) {
      background-color: rgba(167, 139, 250, 0.20);
      color: #E9D5FF;
      border-color: rgba(167, 139, 250, 0.34);
    }
    .dark .border-white:not([class*="dark:border-"]),
    .dark .border-white\/50:not([class*="dark:border-"]),
    .dark .border-white\/60:not([class*="dark:border-"]),
    .dark .border-white\/40:not([class*="dark:border-"]) {
      border-color: var(--ds-border);
    }

    /* Full-Screen AI Coach & Full-Screen Vlog Camera Modes */
    body.coach-fullscreen-active,
    body.vlog-fullscreen-active {
      overflow: hidden;
      height: 100dvh;
    }
    body.vlog-fullscreen-active #mobile-top-header,
    body.vlog-fullscreen-active #mobile-bottom-nav,
    body.vlog-fullscreen-active #desktop-sidebar,
    body.vlog-fullscreen-active #ambient-bg {
      display: none !important;
    }
    /* Pause EVERY CSS animation across the app while camera screen is open (0% wasted GPU) */
    body.vlog-fullscreen-active *,
    body.vlog-fullscreen-active *::before,
    body.vlog-fullscreen-active *::after {
      animation-play-state: paused !important;
    }
    .vlog-text-shadow {
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    }
    #vlog-viewfinder-box.vlog-fs-mode {
      position: fixed !important;
      inset: 0 !important;
      z-index: 9999 !important;
      width: 100vw !important;
      height: 100dvh !important;
      max-width: none !important;
      max-height: none !important;
      margin: 0 !important;
      aspect-ratio: auto !important;
      border-radius: 0 !important;
      border: none !important;
      background: #000000 !important;
    }

    /* Living Time-of-Day & Seasonal Cinematic Background */
    .ambient-bg {
      position: fixed;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      overflow: hidden;
      --sky-top: #090D24;
      --sky-mid: #161C42;
      --sky-bottom: #262252;
      --hill-far: #1B1E40;
      --hill-mid: #131632;
      --hill-near: #0B0D22;
      --water-top: #182046;
      --water-bot: #090C1E;
      --cloud-fill: rgba(255, 255, 255, 0.16);
      --window-glow: 1;
      background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 46%, var(--sky-bottom) 74%, var(--water-top) 100%);
      transition: background 1.2s ease;
    }
    .ambient-bg[data-tod="morning"] {
      --sky-top: #6CA6E8;
      --sky-mid: #F6B9B8;
      --sky-bottom: #FFE3B8;
      --hill-far: #8A8BB8;
      --hill-mid: #636794;
      --hill-near: #42456B;
      --water-top: #E6B5AE;
      --water-bot: #6C78A8;
      --cloud-fill: rgba(255, 248, 242, 0.68);
      --window-glow: 0.25;
    }
    .ambient-bg[data-tod="afternoon"] {
      --sky-top: #3888E0;
      --sky-mid: #7CC2F6;
      --sky-bottom: #D4EEFF;
      --hill-far: #6FA29C;
      --hill-mid: #4B7E7C;
      --hill-near: #2F5A5E;
      --water-top: #8AC8E8;
      --water-bot: #4787B5;
      --cloud-fill: rgba(255, 255, 255, 0.78);
      --window-glow: 0;
    }
    .ambient-bg[data-tod="evening"] {
      --sky-top: #2B1F54;
      --sky-mid: #A3436E;
      --sky-bottom: #F59D73;
      --hill-far: #4E2D59;
      --hill-mid: #321C42;
      --hill-near: #1C102B;
      --water-top: #B85C75;
      --water-bot: #29183D;
      --cloud-fill: rgba(255, 200, 178, 0.45);
      --window-glow: 0.9;
    }
    .ambient-bg[data-tod="night"] {
      --sky-top: #050817;
      --sky-mid: #0E1538;
      --sky-bottom: #1E1E4E;
      --hill-far: #15193B;
      --hill-mid: #0E112B;
      --hill-near: #07091A;
      --water-top: #141B40;
      --water-bot: #050714;
      --cloud-fill: rgba(185, 198, 240, 0.14);
      --window-glow: 1;
    }
    /* Monsoon / Rainy weather darkens & cools any time of day */
    .ambient-bg[data-weather="rainy"] {
      --sky-top: #131A29;
      --sky-mid: #233045;
      --sky-bottom: #384961;
      --hill-far: #1E2A3A;
      --hill-mid: #151E2B;
      --hill-near: #0C121C;
      --water-top: #243347;
      --water-bot: #0D1420;
      --cloud-fill: rgba(130, 148, 173, 0.42);
      --window-glow: 1;
    }
    .ambient-bg[data-tod="night"][data-weather="rainy"] {
      --sky-top: #040710;
      --sky-mid: #0D1422;
      --sky-bottom: #182334;
    }
    /* Adaptive readability scrim for Dark Mode & Light Mode */
    .ambient-scrim {
      position: absolute;
      inset: 0;
      background: rgba(255, 249, 245, 0.20);
      transition: background 0.6s ease;
    }
    .dark .ambient-scrim {
      background: rgba(6, 7, 18, 0.46);
    }
    .dark .ambient-bg[data-tod="night"] .ambient-scrim {
      background: rgba(4, 5, 14, 0.22);
    }
    /* Celestial body (Sun / Moon) */
    #ambient-celestial {
      position: absolute;
      width: 72px;
      height: 72px;
      border-radius: 9999px;
      transition: left 1.2s ease, top 1.2s ease, background 1s ease, box-shadow 1s ease, opacity 0.8s ease;
      will-change: transform;
    }
    .celestial-sun {
      background: radial-gradient(circle, #FFF8D6 0%, #FFD27D 45%, rgba(255, 180, 110, 0) 74%);
      box-shadow: 0 0 60px 18px rgba(255, 200, 120, 0.45);
    }
    .celestial-sunset {
      background: radial-gradient(circle, #FFF0C2 0%, #FF8E6E 48%, rgba(235, 90, 120, 0) 76%);
      box-shadow: 0 0 70px 22px rgba(255, 130, 100, 0.45);
    }
    .celestial-moon {
      background: radial-gradient(circle at 35% 35%, #FFFFFF 0%, #E6ECFF 52%, rgba(190, 210, 255, 0) 74%);
      box-shadow: 0 0 42px 10px rgba(196, 212, 255, 0.32);
    }
    /* Drifting clouds in upper half */
    .sky-cloud {
      position: absolute;
      opacity: 0.85;
      will-change: transform;
      fill: var(--cloud-fill);
    }
    .sky-cloud-1 { top: 8%; left: -18%; width: 210px; animation: cloudDrift 52s linear infinite; }
    .sky-cloud-2 { top: 18%; left: -24%; width: 260px; animation: cloudDrift 68s linear infinite; animation-delay: -24s; }
    .sky-cloud-3 { top: 27%; left: -16%; width: 170px; animation: cloudDrift 44s linear infinite; animation-delay: -11s; }
    @keyframes cloudDrift {
      0% { transform: translate3d(0, 0, 0); }
      100% { transform: translate3d(135vw, 0, 0); }
    }
    /* Lower lovely scenery SVG */
    #ambient-scenery-svg {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 40vh;
      min-height: 220px;
      max-height: 360px;
    }
    #weather-canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }
    /* Design-System Surface Card (Crisp AA Contrast, Zero Heavy Blur Jank) */
    .rizzor-card {
      background-color: var(--ds-bg-surface);
      border-color: var(--ds-border);
      box-shadow: var(--ds-shadow-card);
    }
    .dark .rizzor-card {
      background-color: var(--ds-bg-surface);
      border-color: var(--ds-border);
      box-shadow: var(--ds-shadow-card);
    }

    /* Game card glossy overlay */
    .game-art-card {
      position: relative;
      overflow: hidden;
      border-radius: 24px;
      aspect-ratio: 4 / 4.3;
      transition: transform 160ms ease, box-shadow 160ms ease;
    }
    .game-art-card:active {
      transform: scale(0.97);
    }

    @keyframes orbDriftA {
      0% { transform: translate3d(0, 0, 0) scale(1); }
      100% { transform: translate3d(20px, 14px, 0) scale(1.05); }
    }
    @keyframes orbDriftB {
      0% { transform: translate3d(0, 0, 0) scale(1); }
      100% { transform: translate3d(-18px, -14px, 0) scale(1.04); }
    }

    h1, h2, h3, .font-heading {
      font-family: 'Nunito', system-ui, sans-serif;
    }
    .tabular-nums {
      font-variant-numeric: tabular-nums;
    }
    .touch-target {
      min-height: 44px;
    }
    .pressable {
      transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
    }
    .pressable:active {
      transform: scale(0.98);
    }

    .view-section {
      display: none;
      animation: fadeSlideIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
    }
    .view-section.active {
      display: block;
    }
    #app-view-coach.view-section.active {
      display: flex;
    }

    @keyframes fadeSlideIn {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes gentleFloat {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-4px); }
    }
    @keyframes gentleFloatSm {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-2.5px); }
    }
    .mascot-float {
      animation: gentleFloat 4.2s ease-in-out infinite;
    }
    /* Static icons for calm UI & smooth 60fps mobile scrolling */
    .icon-float,
    .icon-float-sm {
      animation: none;
    }
    .float-d1 { animation-delay: -0.7s; }
    .float-d2 { animation-delay: -1.4s; }
    .float-d3 { animation-delay: -2.1s; }
    .float-d4 { animation-delay: -2.8s; }

    /* Distinct Living Icon Gradient Shades (Light & Dark Mode) */
    .icon-shade-rose {
      background: linear-gradient(135deg, #FCE7EE 0%, #F5B8CA 100%);
      box-shadow: 0 6px 16px -6px rgba(200, 93, 122, 0.45);
    }
    .dark .icon-shade-rose {
      background: linear-gradient(135deg, rgba(244, 114, 182, 0.28) 0%, rgba(190, 24, 93, 0.45) 100%);
      border-color: rgba(244, 114, 182, 0.35);
    }
    .icon-shade-amber {
      background: linear-gradient(135deg, #FEF3C7 0%, #FDBA74 100%);
      box-shadow: 0 6px 16px -6px rgba(245, 158, 11, 0.42);
    }
    .dark .icon-shade-amber {
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(234, 88, 12, 0.42) 100%);
      border-color: rgba(251, 191, 36, 0.35);
    }
    .icon-shade-violet {
      background: linear-gradient(135deg, #EDE9FE 0%, #C4B5FD 100%);
      box-shadow: 0 6px 16px -6px rgba(139, 92, 246, 0.42);
    }
    .dark .icon-shade-violet {
      background: linear-gradient(135deg, rgba(167, 139, 250, 0.28) 0%, rgba(109, 40, 217, 0.48) 100%);
      border-color: rgba(167, 139, 250, 0.38);
    }
    .icon-shade-sky {
      background: linear-gradient(135deg, #E0F2FE 0%, #7DD3FC 100%);
      box-shadow: 0 6px 16px -6px rgba(14, 165, 233, 0.42);
    }
    .dark .icon-shade-sky {
      background: linear-gradient(135deg, rgba(56, 189, 248, 0.26) 0%, rgba(3, 105, 161, 0.48) 100%);
      border-color: rgba(56, 189, 248, 0.36);
    }
    .icon-shade-emerald {
      background: linear-gradient(135deg, #D1FAE5 0%, #6EE7B7 100%);
      box-shadow: 0 6px 16px -6px rgba(16, 185, 129, 0.42);
    }
    .dark .icon-shade-emerald {
      background: linear-gradient(135deg, rgba(52, 211, 153, 0.25) 0%, rgba(4, 120, 87, 0.45) 100%);
      border-color: rgba(52, 211, 153, 0.35);
    }
    .icon-shade-indigo {
      background: linear-gradient(135deg, #E0E7FF 0%, #A5B4FC 100%);
      box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.42);
    }
    .dark .icon-shade-indigo {
      background: linear-gradient(135deg, rgba(129, 140, 248, 0.28) 0%, rgba(67, 56, 202, 0.48) 100%);
      border-color: rgba(129, 140, 248, 0.38);
    }
    .icon-shade-pink {
      background: linear-gradient(135deg, #FCE7F3 0%, #F9A8D4 100%);
      box-shadow: 0 6px 16px -6px rgba(236, 72, 153, 0.45);
    }
    .dark .icon-shade-pink {
      background: linear-gradient(135deg, rgba(244, 114, 182, 0.28) 0%, rgba(162, 28, 175, 0.46) 100%);
      border-color: rgba(244, 114, 182, 0.38);
    }

    /* Responsive bottom padding so fixed mobile nav never covers content, without extra gap on desktop */
    @media (max-width: 767px) {
      .mobile-content-pad {
        padding-bottom: calc(7rem + var(--safe-bottom)) !important;
      }
    }
    .mobile-nav-safe {
      padding-bottom: calc(0.45rem + var(--safe-bottom));
    }
    .coach-composer-safe {
      padding-bottom: calc(0.75rem + var(--safe-bottom));
    }
    .safe-top-pad {
      padding-top: var(--safe-top);
    }

    .pill-scroll {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      touch-action: pan-x pan-y;
    }
    .pill-scroll::-webkit-scrollbar {
      display: none;
    }

    @media (prefers-reduced-motion: reduce) {
      .view-section, .mascot-float, .ambient-orb, * {
        animation: none !important;
        transition-duration: 0.01ms !important;
      }
    }
    .reduce-motion .view-section,
    .reduce-motion .mascot-float,
    .reduce-motion .ambient-orb,
    .reduce-motion * {
      animation: none !important;
      transition: none !important;
    }
    :focus-visible {
      outline: 3px solid var(--ds-accent);
      outline-offset: 2px;
    }
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(91, 58, 78, 0.22); border-radius: 9999px; }

    /* Fixed mobile top header clearance so header stays locked while scrolling */
    @media (max-width: 767px) {
      .mobile-top-pad {
        padding-top: calc(4.25rem + var(--safe-top)) !important;
      }
    }

    /* Dark-mode & Light-mode crystal-clear selected chip state (Mood & Optional Activity) */
    .chip-active-selected {
      background-color: #5B3A4E !important;
      color: #FFFFFF !important;
      border-color: #F5B8CA !important;
      box-shadow: 0 0 0 2px rgba(245, 184, 202, 0.55), 0 6px 16px -6px rgba(200, 93, 122, 0.45);
    }
    .dark .chip-active-selected {
      background-color: #B83B60 !important;
      color: #FFFFFF !important;
      border-color: #FCE7EE !important;
      box-shadow: 0 0 0 2px rgba(245, 184, 202, 0.5), 0 6px 18px -6px rgba(200, 93, 122, 0.65);
    }

    /* Professional Calendar clean crisp card & date cells */
    .cal-pro-card {
      border: 1px solid rgba(91, 58, 78, 0.12);
    }
    .dark .cal-pro-card {
      border: 1px solid rgba(255, 255, 255, 0.09);
    }
    .cal-day-cell {
      aspect-ratio: 1 / 1;
      max-height: 44px;
      border-radius: 9999px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      font-weight: 700;
      transition: transform 120ms ease, background-color 140ms ease, color 140ms ease;
    }
    .cal-day-cell:active {
      transform: scale(0.92);
    }

    /* Promote live & feed vlog <video> to dedicated GPU layer for zero-lag 1080p playback */
    #vlog-preview-video,
    .vlog-feed-video {
      will-change: transform;
      transform: translateZ(0);
      backface-visibility: hidden;
    }

    /* Games Hub Cards (Clean 1-per-game grid, 44px+ tap targets, GPU-only transform) */
    .game-hub-card {
      position: relative;
      display: flex;
      align-items: center;
      gap: 0.875rem;
      width: 100%;
      min-height: 88px;
      padding: 1rem;
      border-radius: 24px;
      text-align: left;
      transition: transform 150ms cubic-bezier(0.22, 1, 0.36, 1), opacity 150ms ease;
      will-change: transform;
    }
    .game-hub-card:active {
      transform: scale(0.975);
    }

    /* Lobby 60fps Waiting Animation (Strictly transform & opacity ONLY) */
    @keyframes lobbyRadarPulse {
      0% {
        transform: scale(0.82);
        opacity: 0.65;
      }
      100% {
        transform: scale(1.75);
        opacity: 0;
      }
    }
    @keyframes lobbyDotWave {
      0%, 80%, 100% {
        transform: translateY(0px) scale(0.9);
        opacity: 0.4;
      }
      40% {
        transform: translateY(-4px) scale(1.1);
        opacity: 1;
      }
    }
    @keyframes reconnectPulse {
      0%, 100% {
        opacity: 1;
        transform: scale(1);
      }
      50% {
        opacity: 0.35;
        transform: scale(0.85);
      }
    }
    .lobby-radar-ring {
      position: absolute;
      inset: 0;
      border-radius: 9999px;
      border: 2px solid rgba(200, 93, 122, 0.55);
      pointer-events: none;
      animation: lobbyRadarPulse 2.1s cubic-bezier(0.16, 1, 0.3, 1) infinite;
      will-change: transform, opacity;
    }
    .lobby-radar-ring-2 {
      animation-delay: 1.05s;
    }
    .lobby-dot {
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 9999px;
      background-color: currentColor;
      animation: lobbyDotWave 1.2s ease-in-out infinite;
      will-change: transform, opacity;
    }
    .lobby-dot-2 { animation-delay: 0.18s; }
    .lobby-dot-3 { animation-delay: 0.36s; }
    .reconnect-dot {
      animation: reconnectPulse 1.3s ease-in-out infinite;
      will-change: transform, opacity;
    }

    /* Strictly respect Reduce Motion (OS preference + Rizzor Settings toggle) */
    @media (prefers-reduced-motion: reduce) {
      .lobby-radar-ring, .lobby-dot, .reconnect-dot, .game-hub-card {
        animation: none !important;
        transition: none !important;
      }
      .lobby-radar-ring {
        transform: scale(1.18);
        opacity: 0.35;
      }
      .lobby-radar-ring-2 {
        display: none;
      }
    }
    .reduce-motion .lobby-radar-ring,
    .reduce-motion .lobby-dot,
    .reduce-motion .reconnect-dot,
    .reduce-motion .game-hub-card {
      animation: none !important;
      transition: none !important;
    }
    .reduce-motion .lobby-radar-ring {
      transform: scale(1.18);
      opacity: 0.35;
    }
    .reduce-motion .lobby-radar-ring-2 {
      display: none;
    }

    /* ========================================================================
       GAMES POLISH STEP 1: Category Tabs + Illustrated WebP Cards (60fps GPU)
       ======================================================================== */
    .game-cat-tab {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 8px 16px;
      border-radius: var(--ds-radius-pill);
      background-color: var(--ds-bg-surface);
      color: var(--ds-text-muted);
      border: 1px solid var(--ds-border);
      font-size: 0.8125rem; /* 13px */
      font-weight: 700;
      white-space: nowrap;
      flex-shrink: 0;
      transition: transform 140ms ease, background-color 140ms ease, color 140ms ease, border-color 140ms ease;
    }
    .game-cat-tab:active {
      transform: scale(0.97);
    }
    .game-cat-tab-active {
      background-color: var(--ds-accent-btn-bg);
      color: var(--ds-accent-btn-text);
      border-color: transparent;
      box-shadow: var(--ds-shadow-card);
    }

    .game-card-v2 {
      display: flex;
      flex-direction: column;
      width: 100%;
      overflow: hidden;
      border-radius: 18px;
      background-color: var(--ds-bg-surface);
      border: 1px solid var(--ds-border);
      box-shadow: var(--ds-shadow-card);
      text-align: left;
      transition: transform 150ms cubic-bezier(0.22, 1, 0.36, 1), opacity 150ms ease;
      will-change: transform;
    }
    .game-card-v2:active {
      transform: scale(0.975);
    }
    @media (hover: hover) {
      .game-card-v2:hover {
        transform: translateY(-2px);
      }
      .game-card-v2:hover .game-card-art-img {
        transform: scale(1.04);
      }
    }

    .game-card-art-wrap {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 10;
      overflow: hidden;
      background-color: #1A1830;
    }
    .game-card-art-img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
      will-change: transform;
    }
    .game-card-scrim {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(11, 11, 22, 0.34) 0%, rgba(11, 11, 22, 0.0) 50%, rgba(11, 11, 22, 0.20) 100%);
      pointer-events: none;
    }

    .game-badge-new {
      display: inline-flex;
      align-items: center;
      padding: 3px 7px;
      border-radius: var(--ds-radius-pill);
      background-color: #B83B60;
      color: #FFFFFF;
      font-size: 0.6875rem; /* 11px crisp pill */
      font-weight: 800;
      letter-spacing: 0.03em;
      line-height: 1.1;
      border: 1px solid rgba(255, 255, 255, 0.35);
      box-shadow: 0 3px 10px -3px rgba(0, 0, 0, 0.5);
    }
    .game-badge-mode {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 8px;
      border-radius: var(--ds-radius-pill);
      background-color: rgba(11, 11, 22, 0.80);
      color: #FFFFFF;
      font-size: 0.6875rem; /* 11px crisp pill */
      font-weight: 700;
      line-height: 1.1;
      border: 1px solid rgba(255, 255, 255, 0.22);
    }
    .game-mode-dot {
      width: 7px;
      height: 7px;
      border-radius: 9999px;
      flex-shrink: 0;
    }
    .game-mode-dot-live { background-color: #34D399; }
    .game-mode-dot-turns { background-color: #C4B5FD; }
    .game-mode-dot-solo { background-color: #7DD3FC; }

    @media (prefers-reduced-motion: reduce) {
      .game-card-v2, .game-card-art-img, .game-cat-tab {
        transition: none !important;
        transform: none !important;
      }
    }
    .reduce-motion .game-card-v2,
    .reduce-motion .game-card-art-img,
    .reduce-motion .game-cat-tab {
      transition: none !important;
      transform: none !important;
    }

    /* ========================================================================
       GAMES POLISH STEP 2: In-Game HUD, 3-2-1 Countdown, Reactions, Partner Left
       All animations strictly use transform & opacity ONLY (60fps GPU)
       ======================================================================== */
    .game-arena-shell {
      position: relative;
    }

    /* Compact 44px+ Arena Utility Toggle Buttons (Sound, Vibrate, Help) */
    .game-util-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 44px;
      min-height: 44px;
      padding: 0 10px;
      border-radius: var(--ds-radius-control);
      background-color: var(--ds-bg-surface);
      color: var(--ds-text-primary);
      border: 1px solid var(--ds-border);
      font-size: 0.9375rem;
      font-weight: 700;
      transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, opacity 140ms ease;
    }
    .game-util-btn:active {
      transform: scale(0.95);
    }
    .game-util-btn-on {
      background-color: var(--ds-accent-soft);
      color: var(--ds-accent-soft-text);
      border-color: var(--ds-accent-border);
    }

    /* Clear Turn Indicator Banner (Fixed min-height -> Zero Layout Jumps) */
    .game-turn-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-height: 48px;
      padding: 10px 16px;
      border-radius: var(--ds-radius-control);
      background-color: var(--ds-bg-surface);
      border: 1px solid var(--ds-border);
      box-shadow: var(--ds-shadow-card);
      transition: background-color 180ms ease, border-color 180ms ease;
    }
    .game-turn-bar-yours {
      background-color: var(--ds-accent-soft);
      border-color: var(--ds-accent-border);
    }
    .game-turn-bar-done {
      background-color: rgba(16, 185, 129, 0.14);
      border-color: rgba(16, 185, 129, 0.36);
    }
    .game-turn-dot {
      width: 10px;
      height: 10px;
      border-radius: 9999px;
      flex-shrink: 0;
    }
    @keyframes turnDotPulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.35); opacity: 0.55; }
    }
    .game-turn-dot-live {
      animation: turnDotPulse 1.4s ease-in-out infinite;
      will-change: transform, opacity;
    }

    /* 3-2-1 Countdown Overlay (Strictly transform & opacity) */
    @keyframes countdownPop {
      0% { transform: scale(0.55); opacity: 0; }
      28% { transform: scale(1.12); opacity: 1; }
      55% { transform: scale(1.0); opacity: 1; }
      100% { transform: scale(0.9); opacity: 0; }
    }
    .game-countdown-num {
      display: inline-block;
      will-change: transform, opacity;
    }
    .game-countdown-pop {
      animation: countdownPop 780ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    /* Quick Emoji Reactions Bar & Floating Reaction Bubbles (transform + opacity ONLY) */
    .game-react-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 44px;
      min-height: 44px;
      border-radius: var(--ds-radius-pill);
      background-color: var(--ds-bg-subtle);
      border: 1px solid var(--ds-border);
      font-size: 1.25rem;
      line-height: 1;
      transition: transform 130ms cubic-bezier(0.22, 1, 0.36, 1), background-color 130ms ease;
      will-change: transform;
    }
    .game-react-btn:active {
      transform: scale(0.86);
    }
    @media (hover: hover) {
      .game-react-btn:hover {
        transform: scale(1.12);
      }
    }

    #game-reaction-stage {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 65;
      overflow: hidden;
    }
    @keyframes reactionFloatUp {
      0% {
        transform: translate3d(0, 20px, 0) scale(0.65);
        opacity: 0;
      }
      14% {
        transform: translate3d(0, 0px, 0) scale(1.08);
        opacity: 1;
      }
      78% {
        transform: translate3d(0, -150px, 0) scale(1);
        opacity: 0.95;
      }
      100% {
        transform: translate3d(0, -210px, 0) scale(0.92);
        opacity: 0;
      }
    }
    .game-reaction-bubble {
      position: absolute;
      bottom: 120px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 9999px;
      background-color: rgba(15, 15, 30, 0.86);
      color: #FFFFFF;
      border: 1px solid rgba(255, 255, 255, 0.22);
      box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
      font-size: 0.75rem;
      font-weight: 800;
      white-space: nowrap;
      animation: reactionFloatUp 1.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      will-change: transform, opacity;
    }
    .game-reaction-bubble-emoji {
      font-size: 1.35rem;
      line-height: 1;
    }

    @media (prefers-reduced-motion: reduce) {
      .game-turn-dot-live, .game-countdown-pop, .game-reaction-bubble {
        animation: none !important;
      }
      .game-reaction-bubble {
        bottom: 160px;
        opacity: 1;
      }
    }
    .reduce-motion .game-turn-dot-live,
    .reduce-motion .game-countdown-pop,
    .reduce-motion .game-reaction-bubble {
      animation: none !important;
    }
    .reduce-motion .game-reaction-bubble {
      bottom: 160px;
      opacity: 1;
    }

    /* ========================================================================
       GAMES POLISH STEP 3: Result Screen, 60fps Winner Burst & Scoreboard
       Strictly transform & opacity ONLY — honors OS & Settings Reduce Motion
       ======================================================================== */
    @keyframes resultCardIn {
      0% { transform: translate3d(0, 18px, 0) scale(0.94); opacity: 0; }
      100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
    }
    @keyframes resultEmblemPop {
      0% { transform: scale(0.45) rotate(-10deg); opacity: 0; }
      55% { transform: scale(1.16) rotate(5deg); opacity: 1; }
      80% { transform: scale(0.96) rotate(-2deg); opacity: 1; }
      100% { transform: scale(1) rotate(0deg); opacity: 1; }
    }
    @keyframes resultSparkBurst {
      0% {
        transform: translate3d(0, 0, 0) scale(0.35);
        opacity: 0;
      }
      18% {
        opacity: 1;
      }
      100% {
        transform: translate3d(var(--tx, 0px), var(--ty, -60px), 0) scale(1.05);
        opacity: 0;
      }
    }

    .game-result-card {
      animation: resultCardIn 260ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
      will-change: transform, opacity;
    }
    .game-result-emblem {
      position: relative;
      width: 76px;
      height: 76px;
      margin: 0 auto;
      border-radius: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.35rem;
      background: linear-gradient(135deg, rgba(184, 59, 96, 0.22) 0%, rgba(251, 191, 36, 0.26) 100%);
      border: 2px solid var(--ds-accent-border);
      box-shadow: var(--ds-shadow-elevated);
      animation: resultEmblemPop 560ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
      will-change: transform, opacity;
    }
    .game-result-burst {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: visible;
    }
    .result-spark {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 9px;
      height: 9px;
      margin-left: -4.5px;
      margin-top: -4.5px;
      border-radius: 9999px;
      animation: resultSparkBurst 920ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
      will-change: transform, opacity;
    }
    .rs-1  { background: #F472B6; --tx: -68px; --ty: -46px; animation-delay: 40ms; }
    .rs-2  { background: #FBBF24; --tx:  68px; --ty: -48px; animation-delay: 60ms; }
    .rs-3  { background: #34D399; --tx: -78px; --ty:  12px; animation-delay: 80ms; }
    .rs-4  { background: #60A5FA; --tx:  78px; --ty:  14px; animation-delay: 70ms; }
    .rs-5  { background: #C084FC; --tx: -42px; --ty: -72px; animation-delay: 90ms; }
    .rs-6  { background: #FB7185; --tx:  44px; --ty: -70px; animation-delay: 50ms; }
    .rs-7  { background: #FDE047; --tx: -52px; --ty:  54px; animation-delay: 110ms; }
    .rs-8  { background: #2DD4BF; --tx:  52px; --ty:  52px; animation-delay: 100ms; }
    .rs-9  { background: #F97316; --tx:   0px; --ty: -82px; animation-delay: 30ms; }
    .rs-10 { background: #E879F9; --tx:   0px; --ty:  66px; animation-delay: 120ms; }

    .game-score-box {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 10px;
      padding: 14px 16px;
      border-radius: 20px;
      background-color: var(--ds-bg-subtle);
      border: 1px solid var(--ds-border);
    }

    @media (prefers-reduced-motion: reduce) {
      .game-result-card, .game-result-emblem, .result-spark {
        animation: none !important;
      }
      .game-result-burst {
        display: none !important;
      }
    }
    .reduce-motion .game-result-card,
    .reduce-motion .game-result-emblem,
    .reduce-motion .result-spark {
      animation: none !important;
    }
    .reduce-motion .game-result-burst {
      display: none !important;
    }

/* ==========================================================================
   MOCHI AI — TYPING DOTS, VIBE PILLS & CHAT POLISH
   ========================================================================== */
@keyframes mochiDotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.mochi-typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: currentColor;
  animation: mochiDotBounce 1.15s infinite ease-in-out;
}
.mochi-typing-dot:nth-child(2) { animation-delay: 0.16s; }
.mochi-typing-dot:nth-child(3) { animation-delay: 0.32s; }
.reduce-motion .mochi-typing-dot { animation: none; opacity: 0.85; }

.mochi-vibe-chip {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.mochi-vibe-chip:active { transform: scale(0.96); }

    /* ========================================================================
       PHASE 1: "MADE BY A HUMAN" FEEL — DUOTONE ICONS, PAPER GRAIN, KALAM FONT,
       VARIED WARM RADII, HAND-DRAWN ACCENTS & EASTER EGG HEARTS
       ======================================================================== */

    /* Soft Paper Grain Overlay (Strictly <= 3.5% opacity, 0 GPU animation, hidden in camera) */
    .paper-grain {
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      opacity: 0.032;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
      background-repeat: repeat;
      background-size: 160px 160px;
    }
    .dark .paper-grain {
      opacity: 0.035;
    }
    body.vlog-fullscreen-active .paper-grain {
      display: none !important;
    }

    /* Unified Phosphor-Style Duotone SVG Icons (Retinted via --icon-1 & --icon-2) */
    .rz-icon {
      display: inline-block;
      width: 20px;
      height: 20px;
      flex-shrink: 0;
      vertical-align: middle;
      transition: transform 160ms ease;
    }
    .rz-icon-sm { width: 17px; height: 17px; }
    .rz-icon-lg { width: 22px; height: 22px; }
    .rz-icon-wrap {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 12px 10px 12px 11px;
      background-color: var(--icon-bg);
      border: 1px solid var(--ds-border);
      flex-shrink: 0;
      transition: background-color 180ms ease, transform 160ms ease;
    }
    .rz-icon-wrap-lg {
      width: 42px;
      height: 42px;
      border-radius: 16px 13px 15px 14px;
    }
    .rz-icon-wrap-sm {
      width: 30px;
      height: 30px;
      border-radius: 10px 9px 10px 9px;
    }
    .nav-btn-active .rz-icon-wrap {
      background-color: var(--icon-bg-active);
      border-color: var(--ds-accent-border);
    }
    .nav-btn-active .rz-icon {
      --icon-1: var(--ds-accent-text);
    }
    .nav-btn:active .rz-icon {
      transform: scale(0.92);
    }

    /* Varied Warm Card Hierarchy (Breaks Generic Identical-Box Template Look) */
    .surface-hero {
      background: linear-gradient(155deg, var(--ds-bg-surface) 0%, var(--ds-bg-subtle) 100%);
      border: 1px solid var(--ds-border);
      border-radius: 28px 22px 26px 24px !important;
      box-shadow: var(--ds-shadow-card);
    }
    .surface-mochi {
      background-color: var(--ds-bg-surface);
      border: 1px solid var(--ds-accent-border);
      border-left: 4px solid var(--hand-accent);
      border-radius: 22px 28px 24px 20px !important;
      box-shadow: var(--ds-shadow-card);
    }
    .surface-editorial {
      background-color: var(--ds-bg-surface);
      border: 1px solid var(--ds-border);
      border-radius: 22px 20px 24px 20px !important;
      box-shadow: var(--ds-shadow-card);
    }
    .surface-paper {
      background-color: var(--paper-bg) !important;
      border: 1px solid var(--ds-border-strong) !important;
      border-radius: 18px 26px 20px 24px !important;
      box-shadow: var(--ds-shadow-card);
    }

    /* Handwritten Kalam Styling for Journal, Love Letters & Personal Notes */
    .font-handwritten {
      font-family: 'Kalam', 'Nunito', cursive, sans-serif !important;
      letter-spacing: 0.01em;
    }
    .journal-ruled-input {
      background-image: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 31px,
        var(--paper-line) 31px,
        var(--paper-line) 32px
      );
      line-height: 32px !important;
      padding-top: 8px !important;
      padding-bottom: 8px !important;
      font-size: 16px !important;
    }
    #journal-entries-list p,
    #journal-entries-list h3,
    #journal-entries-list .whitespace-pre-line {
      font-family: 'Kalam', 'Inter', cursive, sans-serif;
      font-size: 0.98rem;
      line-height: 1.55;
    }

    /* Subtle Hand-Drawn Flourishes */
    .hand-drawn-underline {
      display: block;
      width: 96px;
      height: 10px;
      margin-top: 4px;
      color: var(--hand-accent);
      opacity: 0.78;
    }
    .hand-drawn-doodle-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px;
      border-radius: 9999px;
      color: var(--hand-accent);
      opacity: 0.85;
      transition: transform 160ms ease, opacity 160ms ease;
    }
    .hand-drawn-doodle-btn:hover {
      opacity: 1;
      transform: scale(1.12) rotate(-6deg);
    }

    /* Home Floating Quick Chips (Calm, Craft-Finished Instead of Loud Neon Gradients) */
    .home-fab-mochi {
      background-color: var(--ds-accent-btn-bg);
      color: #FFFFFF;
      border: 1.5px solid rgba(255, 255, 255, 0.35);
      border-radius: 20px 18px 22px 18px;
      box-shadow: var(--ds-shadow-elevated);
    }
    .home-fab-mood {
      background-color: var(--ds-bg-surface-solid);
      color: var(--ds-text-primary);
      border: 1.5px solid var(--ds-accent-border);
      border-radius: 18px 22px 18px 20px;
      box-shadow: var(--ds-shadow-elevated);
    }

    /* Easter Egg Floating Hearts (GPU transform + opacity ONLY) */
    .rz-easter-heart {
      position: fixed;
      z-index: 95;
      pointer-events: none;
      font-size: 18px;
      will-change: transform, opacity;
      animation: rzEasterFloat 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    @keyframes rzEasterFloat {
      0% { opacity: 0; transform: translate3d(0, 8px, 0) scale(0.7); }
      20% { opacity: 1; transform: translate3d(var(--eh-dx, 0px), -14px, 0) scale(1.08); }
      100% { opacity: 0; transform: translate3d(var(--eh-dx2, 0px), -78px, 0) scale(0.85); }
    }
    .reduce-motion .rz-easter-heart {
      display: none !important;
    }

    /* ========================================================================
       PHASE 2: LIVING SKY ENGINE — 2s CROSS-FADE, FROSTED GLASS, CALM MODE
       AND DUAL-SKY ("your sky | their sky") SWITCHER
       ======================================================================== */

    /* Stacked Dual Sky Layers for Silky 2-Second GPU Opacity Cross-Fade */
    .sky-fade-layer {
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity 2s ease;
      will-change: opacity;
    }
    #sky-weather-tint {
      position: absolute;
      inset: 0;
      opacity: 0;
      pointer-events: none;
      transition: background-color 2s ease, opacity 2s ease;
    }

    /* Frosted Glass Cards (15px Blur, Scene-Driven 58-80% Opacity — Auto AA Contrast) */
    .surface-hero,
    .surface-mochi,
    .surface-editorial,
    .rizzor-card {
      background-color: var(--sky-card-bg, var(--ds-bg-surface)) !important;
      -webkit-backdrop-filter: blur(15px);
      backdrop-filter: blur(15px);
      transition: background-color 1.2s ease, border-color 1.2s ease;
    }
    .surface-hero {
      background-image: none;
    }

    /* Calm Mode: Static Gradient Sky, Zero Particles, Zero Cloud Drift, Crisp Solid Cards */
    .calm-mode #weather-canvas,
    .calm-mode .sky-cloud {
      display: none !important;
    }
    .calm-mode .sky-fade-layer,
    .calm-mode #sky-weather-tint {
      transition-duration: 0.4s !important;
    }
    .calm-mode .surface-hero,
    .calm-mode .surface-mochi,
    .calm-mode .surface-editorial,
    .calm-mode .rizzor-card {
      -webkit-backdrop-filter: none !important;
      backdrop-filter: none !important;
      background-color: var(--ds-bg-surface-solid) !important;
    }

    /* Home Dual-Sky ("your sky | their sky") Switcher Bar */
    .sky-switcher-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding-top: 10px;
      border-top: 1px solid var(--ds-border);
    }
    .sky-pill-group {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px;
      border-radius: 9999px;
      background-color: var(--ds-bg-subtle);
      border: 1px solid var(--ds-border);
    }
    .sky-pill-btn {
      min-height: 36px;
      padding: 4px 12px;
      border-radius: 9999px;
      font-size: 11px;
      font-weight: 700;
      color: var(--ds-text-muted);
      transition: background-color 180ms ease, color 180ms ease, transform 140ms ease;
      white-space: nowrap;
    }
    .sky-pill-btn:active {
      transform: scale(0.96);
    }
    .sky-pill-active {
      background-color: var(--ds-accent-btn-bg);
      color: #FFFFFF;
      box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.25);
    }

    /* ========================================================================
       PHASE 3: UI/UX POLISH — SHIMMER SKELETONS, VIEW TRANSITIONS, SPRINGS,
       BOTTOM SHEETS, PROGRESS RING, STREAK FLAME, PULL-TO-REFRESH, CONFETTI,
       UPLOAD RING & 44PX TOUCH / FOCUS GUARANTEES (TRANSFORM + OPACITY ONLY)
       ======================================================================== */
    :root {
      --rz-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* Native CSS View Transitions API (GPU opacity + subtle slide) */
    ::view-transition-old(root) {
      animation: rzVtOut 180ms ease-out both;
    }
    ::view-transition-new(root) {
      animation: rzVtIn 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    @keyframes rzVtOut {
      from { opacity: 1; transform: translate3d(0, 0, 0); }
      to   { opacity: 0; transform: translate3d(0, -4px, 0); }
    }
    @keyframes rzVtIn {
      from { opacity: 0; transform: translate3d(0, 6px, 0); }
      to   { opacity: 1; transform: translate3d(0, 0, 0); }
    }

    /* Spring Physics on Interactive Pressables & Active Nav */
    .pressable {
      transition: transform 220ms var(--rz-spring), box-shadow 180ms ease, background-color 180ms ease;
    }
    .pressable:active {
      transform: scale(0.95);
    }
    .nav-btn-active .rz-icon-wrap {
      transform: scale(1.06);
      transition: transform 260ms var(--rz-spring), background-color 180ms ease;
    }

    /* GPU-Only Skeleton Shimmer Loaders (Animates transform ONLY, never background-position) */
    .rz-skeleton-card {
      padding: 14px 16px;
      border-radius: 18px;
      background-color: var(--ds-bg-subtle);
      border: 1px solid var(--ds-border);
    }
    .rz-skeleton {
      position: relative;
      overflow: hidden;
      border-radius: 10px;
      background-color: rgba(148, 138, 168, 0.18);
    }
    .rz-shimmer::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.34) 50%, transparent 100%);
      transform: translate3d(-100%, 0, 0);
      animation: rzShimmerMove 1.45s ease-in-out infinite;
      will-change: transform;
    }
    .dark .rz-shimmer::after {
      background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
    }
    @keyframes rzShimmerMove {
      0%   { transform: translate3d(-100%, 0, 0); }
      100% { transform: translate3d(100%, 0, 0); }
    }

    /* Pull-to-Refresh Mochi Peek Pill */
    #rz-ptr-indicator {
      position: fixed;
      top: calc(4rem + var(--safe-top));
      left: 50%;
      z-index: 60;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      border-radius: 9999px;
      background-color: var(--ds-bg-surface-solid);
      color: var(--ds-text-primary);
      border: 1px solid var(--ds-accent-border);
      box-shadow: var(--ds-shadow-elevated);
      font-size: 12px;
      font-weight: 800;
      pointer-events: none;
      opacity: 0;
      transform: translate3d(-50%, -120%, 0);
      transition: transform 240ms var(--rz-spring), opacity 180ms ease;
      will-change: transform, opacity;
    }

    /* Daily Ritual Progress Ring & Animated Streak Flame */
    .rz-ritual-ring {
      position: relative;
      width: 48px;
      height: 48px;
      flex-shrink: 0;
    }
    .rz-ritual-ring svg {
      width: 48px;
      height: 48px;
      transform: rotate(-90deg);
    }
    .rz-ring-track {
      fill: none;
      stroke: var(--ds-border-strong);
      stroke-width: 4.5;
    }
    .rz-ring-arc {
      fill: none;
      stroke: var(--ds-accent);
      stroke-width: 4.5;
      stroke-linecap: round;
      stroke-dasharray: 119.38;
      stroke-dashoffset: 119.38;
      transition: stroke-dashoffset 450ms var(--rz-spring);
    }
    .rz-ritual-ring-label {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 900;
      color: var(--ds-text-primary);
      font-variant-numeric: tabular-nums;
    }
    .rz-step-done-pill {
      background-color: var(--ds-accent-soft) !important;
      color: var(--ds-accent-soft-text) !important;
      border-color: var(--ds-accent-border) !important;
    }
    .rz-streak-flame {
      display: inline-block;
      transform-origin: center bottom;
      animation: rzFlameFlicker 2.1s ease-in-out infinite;
      will-change: transform, opacity;
    }
    @keyframes rzFlameFlicker {
      0%, 100% { transform: scale(1) rotate(-2deg); opacity: 0.94; }
      50%      { transform: scale(1.12) rotate(3deg); opacity: 1; }
    }

    /* Heart & Confetti Burst (All 4 Daily Rituals Complete — GPU transform/opacity ONLY) */
    .rz-confetti-piece {
      position: fixed;
      z-index: 96;
      pointer-events: none;
      will-change: transform, opacity;
      animation: rzConfettiPop 1.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .rz-confetti-dot {
      width: 10px;
      height: 10px;
      border-radius: 3px;
    }
    @keyframes rzConfettiPop {
      0%   { opacity: 0; transform: translate3d(0, 0, 0) scale(0.5) rotate(0deg); }
      15%  { opacity: 1; transform: translate3d(calc(var(--cf-dx, 0px) * 0.3), calc(var(--cf-dy, -140px) * 0.55), 0) scale(1.1) rotate(calc(var(--cf-rot, 90deg) * 0.4)); }
      100% { opacity: 0; transform: translate3d(var(--cf-dx, 0px), var(--cf-dy, -180px), 0) scale(0.85) rotate(var(--cf-rot, 180deg)); }
    }

    /* Bottom Sheet Spring Polish & Drag Handle */
    .rz-sheet-handle {
      width: 40px;
      height: 4px;
      border-radius: 9999px;
      background-color: var(--ds-border-strong);
      margin: 0 auto 10px;
    }
    .rz-sheet-panel {
      animation: rzSheetUp 280ms var(--rz-spring) both;
      will-change: transform, opacity;
    }
    @keyframes rzSheetUp {
      from { opacity: 0; transform: translate3d(0, 26px, 0) scale(0.98); }
      to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
    }

    /* Long-Press Emoji Reaction Bar */
    #rz-longpress-menu {
      position: fixed;
      z-index: 85;
      transform: translate3d(-50%, -50%, 0);
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 6px 8px;
      border-radius: 9999px;
      background-color: var(--ds-bg-surface-solid);
      border: 1px solid var(--ds-accent-border);
      box-shadow: var(--ds-shadow-elevated);
      animation: rzPopoverSpring 220ms var(--rz-spring) both;
      will-change: transform, opacity;
    }
    #rz-longpress-menu.hidden {
      display: none !important;
    }
    @keyframes rzPopoverSpring {
      from { opacity: 0; transform: translate3d(-50%, -35%, 0) scale(0.82); }
      to   { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
    }
    .rz-lp-btn {
      min-width: 44px;
      min-height: 44px;
      border-radius: 9999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 21px;
      transition: transform 160ms var(--rz-spring);
    }
    .rz-lp-btn:active {
      transform: scale(1.25);
    }

    /* Circular Vlog Upload Progress Ring with Thumbnail */
    .vlog-upload-ring-wrap {
      position: relative;
      width: 52px;
      height: 52px;
      flex-shrink: 0;
    }
    .vlog-upload-ring-svg {
      position: absolute;
      inset: 0;
      width: 52px;
      height: 52px;
      transform: rotate(-90deg);
    }
    .vlog-upload-ring-track {
      fill: none;
      stroke: rgba(255, 255, 255, 0.22);
      stroke-width: 3.5;
    }
    .vlog-upload-ring-arc {
      fill: none;
      stroke: #F472B6;
      stroke-width: 3.5;
      stroke-linecap: round;
      stroke-dasharray: 144.51;
      stroke-dashoffset: 144.51;
      transition: stroke-dashoffset 160ms linear;
    }
    .vlog-upload-thumb-img {
      position: absolute;
      inset: 5px;
      width: 42px;
      height: 42px;
      border-radius: 9999px;
      object-fit: cover;
      background-color: rgba(255, 255, 255, 0.14);
    }

    /* "Partner is answering..." Live Presence Typing Pill */
    .rz-partner-activity-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      border-radius: 9999px;
      background-color: var(--ds-accent-soft);
      color: var(--ds-accent-soft-text);
      border: 1px solid var(--ds-accent-border);
      font-size: 11px;
      font-weight: 800;
    }

    /* 44px Touch Target & Crisp Visible Focus States Across Interactive Controls */
    button:not(.w-5):not(.w-7):not(.w-9):not(.h-9):not(.hand-drawn-doodle-btn),
    select,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    input[type="time"] {
      min-height: 44px;
    }
    button:focus-visible,
    a:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
      outline: 3px solid var(--ds-accent) !important;
      outline-offset: 2px !important;
    }

    /* Strict Reduce Motion & Calm Mode Safety for All Phase 3 Animations */
    @media (prefers-reduced-motion: reduce) {
      .rz-shimmer::after, .rz-streak-flame, .rz-confetti-piece, .rz-sheet-panel, #rz-longpress-menu {
        animation: none !important;
      }
      ::view-transition-old(root), ::view-transition-new(root) {
        animation: none !important;
      }
    }
    .reduce-motion .rz-shimmer::after,
    .reduce-motion .rz-streak-flame,
    .reduce-motion .rz-confetti-piece,
    .reduce-motion .rz-sheet-panel,
    .reduce-motion #rz-longpress-menu,
    .calm-mode .rz-streak-flame {
      animation: none !important;
    }

    /* ========================================================================
       PHASE 4: STORY INTRO & GOODNIGHT OUTRO (GPU transform + opacity ONLY)
       ======================================================================== */
    #rz-story-overlay {
      position: fixed;
      inset: 0;
      z-index: 105;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      opacity: 1;
      transition: opacity 240ms ease;
      color: #2B2030;
    }
    #rz-story-overlay.hidden {
      display: none !important;
    }
    #rz-story-overlay.rz-story-light-text {
      color: #FFF7FB;
    }
    #rz-story-overlay.rz-story-exiting {
      opacity: 0;
      pointer-events: none;
    }

    .rz-story-sky-layer {
      position: absolute;
      inset: 0;
      pointer-events: none;
      animation: rzStorySkyIn 550ms ease-out both;
      will-change: opacity;
    }
    #rz-story-sky-night {
      background: linear-gradient(180deg, #0B0B16 0%, #1B1740 52%, #2D2A5E 100%);
      opacity: 0;
      transition: opacity 850ms ease;
      will-change: opacity;
    }
    @keyframes rzStorySkyIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }

    /* Gentle Night Stars (Shown during Outro slide to night) */
    .rz-story-stars {
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0;
      transition: opacity 750ms ease;
    }
    .rz-story-night-slide .rz-story-stars {
      opacity: 1;
    }
    .rz-story-star {
      position: absolute;
      width: 4px;
      height: 4px;
      border-radius: 9999px;
      background-color: #FFF9E6;
      opacity: 0.78;
    }
    .rz-story-moon {
      position: absolute;
      top: 12%;
      right: 16%;
      width: 54px;
      height: 54px;
      border-radius: 9999px;
      background: radial-gradient(circle at 35% 35%, #FFFFFF 0%, #E6ECFF 58%, rgba(190, 210, 255, 0) 76%);
      box-shadow: 0 0 36px 8px rgba(196, 212, 255, 0.35);
      opacity: 0;
      transform: translate3d(0, 18px, 0) scale(0.9);
      transition: opacity 800ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
    }
    .rz-story-night-slide .rz-story-moon {
      opacity: 0.96;
      transform: translate3d(0, 0, 0) scale(1);
    }

    /* Cozy Silhouette Hill Beneath the Two Mochis */
    .rz-story-hill {
      position: absolute;
      left: -10%;
      right: -10%;
      bottom: -8%;
      height: 36vh;
      border-radius: 50% 50% 0 0;
      background: rgba(25, 18, 42, 0.24);
      pointer-events: none;
    }
    .rz-story-light-text .rz-story-hill {
      background: rgba(8, 8, 22, 0.42);
    }

    /* Skip Button (Always visible, 44px touch target) */
    .rz-story-skip-btn {
      position: absolute;
      top: calc(1rem + var(--safe-top));
      right: 1rem;
      z-index: 10;
      min-height: 44px;
      padding: 8px 16px;
      border-radius: 9999px;
      font-size: 12px;
      font-weight: 800;
      background-color: rgba(255, 255, 255, 0.22);
      color: inherit;
      border: 1px solid rgba(255, 255, 255, 0.35);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    /* Story Center Stage */
    .rz-story-stage {
      position: relative;
      z-index: 5;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 0 24px;
      max-width: 420px;
      width: 100%;
    }
    .rz-story-mochi-pair {
      position: relative;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      gap: 4px;
      height: 126px;
      margin-bottom: 14px;
    }
    .rz-story-mochi-slot {
      width: 96px;
      height: 116px;
      will-change: transform, opacity;
    }
    .rz-story-mochi-svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    /* Intro Walk-In from Left & Right -> Sit Together */
    .rz-story-mode-intro #rz-story-mochi-left {
      animation: rzMochiWalkLeft 1020ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .rz-story-mode-intro #rz-story-mochi-right {
      animation: rzMochiWalkRight 1020ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    @keyframes rzMochiWalkLeft {
      0%   { opacity: 0; transform: translate3d(-74px, 0, 0) rotate(-3deg); }
      35%  { opacity: 1; transform: translate3d(-44px, -7px, 0) rotate(2deg); }
      68%  { opacity: 1; transform: translate3d(-16px, -6px, 0) rotate(-2deg); }
      100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); }
    }
    @keyframes rzMochiWalkRight {
      0%   { opacity: 0; transform: translate3d(74px, 0, 0) rotate(3deg); }
      35%  { opacity: 1; transform: translate3d(44px, -7px, 0) rotate(-2deg); }
      68%  { opacity: 1; transform: translate3d(16px, -6px, 0) rotate(2deg); }
      100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); }
    }
    .rz-story-seated .rz-story-mochi-slot {
      animation: rzMochiSitBob 2.2s ease-in-out infinite !important;
    }
    @keyframes rzMochiSitBob {
      0%, 100% { transform: translate3d(0, 0, 0); }
      50%      { transform: translate3d(0, -3px, 0); }
    }

    /* Floating Heart Between the Two Seated Mochis */
    #rz-story-heart {
      position: absolute;
      top: 4px;
      left: 50%;
      font-size: 22px;
      opacity: 0;
      transform: translate3d(-50%, 10px, 0) scale(0.6);
      transition: opacity 380ms ease, transform 420ms var(--rz-spring);
      pointer-events: none;
    }
    .rz-story-seated #rz-story-heart {
      opacity: 1;
      transform: translate3d(-50%, -6px, 0) scale(1);
    }

    /* Outro Goodnight Arm Wave */
    .rz-story-mode-outro .mochi-arm-wave {
      transform-box: fill-box;
      transform-origin: 70% 35%;
      animation: rzMochiGoodnightWave 520ms ease-in-out infinite alternate;
    }
    @keyframes rzMochiGoodnightWave {
      0%   { transform: rotate(-10deg); }
      100% { transform: rotate(26deg); }
    }

    /* Story Title & Horizon Loading Progress */
    .rz-story-title {
      font-family: 'Nunito', system-ui, sans-serif;
      font-size: 1.5rem;
      font-weight: 900;
      line-height: 1.25;
      letter-spacing: -0.01em;
      animation: rzStoryTextIn 480ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
    }
    .rz-story-sub {
      font-family: 'Kalam', 'Inter', cursive, sans-serif;
      font-size: 0.95rem;
      opacity: 0.85;
      margin-top: 6px;
      animation: rzStoryTextIn 480ms cubic-bezier(0.22, 1, 0.36, 1) 280ms both;
    }
    @keyframes rzStoryTextIn {
      from { opacity: 0; transform: translate3d(0, 10px, 0); }
      to   { opacity: 1; transform: translate3d(0, 0, 0); }
    }

    #rz-story-progress-wrap {
      width: 170px;
      height: 4px;
      border-radius: 9999px;
      margin-top: 22px;
      background-color: rgba(128, 128, 160, 0.28);
      overflow: hidden;
    }
    #rz-story-progress-fill {
      width: 100%;
      height: 100%;
      border-radius: 9999px;
      background-color: currentColor;
      opacity: 0.82;
      transform-origin: left center;
      transform: scaleX(0.2);
      transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
      will-change: transform;
    }

    /* Reduce Motion: Simple Calm Fade Only (Zero Walk/Wave Motion) */
    @media (prefers-reduced-motion: reduce) {
      #rz-story-overlay *,
      .rz-story-mode-intro #rz-story-mochi-left,
      .rz-story-mode-intro #rz-story-mochi-right,
      .rz-story-mode-outro .mochi-arm-wave,
      .rz-story-seated .rz-story-mochi-slot {
        animation: none !important;
        transition-duration: 180ms !important;
      }
    }
    .reduce-motion #rz-story-overlay *,
    .reduce-motion .rz-story-mode-intro #rz-story-mochi-left,
    .reduce-motion .rz-story-mode-intro #rz-story-mochi-right,
    .reduce-motion .rz-story-mode-outro .mochi-arm-wave,
    .reduce-motion .rz-story-seated .rz-story-mochi-slot {
      animation: none !important;
      transition-duration: 180ms !important;
    }

    /* ========================================================================
       PHASE 5: FULL-BODY INTERACTIVE MOCHI CHARACTERS (16 STATES, GPU ONLY)
       ======================================================================== */
    .mc-stage-card {
      position: relative;
      overflow: hidden;
    }
    .mc-pair-stage {
      position: relative;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      gap: 24px;
      min-height: 124px;
      padding-top: 6px;
      transition: gap 420ms var(--rz-spring);
    }
    .mc-pair-stage.mc-cuddle-active {
      gap: 0px;
    }
    .mc-char-btn {
      position: relative;
      width: 108px;
      height: 118px;
      padding: 0;
      border: none;
      background: transparent;
      cursor: pointer;
      transition: transform 320ms var(--rz-spring), opacity 260ms ease;
      will-change: transform, opacity;
    }
    .mc-pair-stage.mc-cuddle-active #home-mochi-left {
      transform: translate3d(10px, 0, 0) rotate(3deg);
    }
    .mc-pair-stage.mc-cuddle-active #home-mochi-right {
      transform: translate3d(-10px, 0, 0) rotate(-3deg);
    }
    .mc-partner-resting {
      opacity: 0.72;
      transform: scale(0.92);
    }
    #home-mochi-cuddle-heart {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translate3d(-50%, 0, 0);
      font-size: 20px;
      pointer-events: none;
      animation: mcHeartPulse 1.7s ease-in-out infinite;
      will-change: transform, opacity;
    }
    @keyframes mcHeartPulse {
      0%, 100% { transform: translate3d(-50%, 0, 0) scale(0.92); opacity: 0.85; }
      50%      { transform: translate3d(-50%, -6px, 0) scale(1.15); opacity: 1; }
    }

    .mc-svg {
      width: 100%;
      height: 100%;
      display: block;
      overflow: visible;
    }
    .mc-root {
      transform-box: fill-box;
      transform-origin: center bottom;
      will-change: transform;
    }
    .mc-head {
      transform-box: fill-box;
      transform-origin: center bottom;
      will-change: transform;
    }
    .mc-arm-l {
      transform-box: fill-box;
      transform-origin: 75% 25%;
      will-change: transform;
    }
    .mc-arm-r {
      transform-box: fill-box;
      transform-origin: 25% 25%;
      will-change: transform;
    }
    .mc-tail {
      transform-box: fill-box;
      transform-origin: right center;
      will-change: transform;
    }
    .mc-eyes-blink {
      transform-box: fill-box;
      transform-origin: center center;
      animation: mcNaturalBlink 4.6s ease-in-out infinite;
      will-change: transform;
    }
    @keyframes mcNaturalBlink {
      0%, 92%, 100% { transform: scaleY(1); }
      95%           { transform: scaleY(0.12); }
    }

    /* Shared-Skeleton State Animations (All 16 States — transform & opacity ONLY) */
    .mc-state-idle .mc-root,
    .mc-state-umbrella .mc-root,
    .mc-state-scarf .mc-root,
    .mc-state-sunglasses .mc-root {
      animation: mcBreathe 3.2s ease-in-out infinite;
    }
    @keyframes mcBreathe {
      0%, 100% { transform: translate3d(0, 0, 0) scaleY(1); }
      50%      { transform: translate3d(0, -2px, 0) scaleY(1.022); }
    }

    .mc-state-happy .mc-root {
      animation: mcHappyHop 780ms ease-in-out infinite;
    }
    @keyframes mcHappyHop {
      0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
      45%      { transform: translate3d(0, -8px, 0) scale(1.03); }
    }

    .mc-state-excited .mc-root,
    .mc-state-celebrating .mc-root {
      animation: mcExcitedBounce 520ms ease-in-out infinite;
    }
    .mc-state-celebrating .mc-arm-l { transform: rotate(95deg); }
    .mc-state-celebrating .mc-arm-r { transform: rotate(-95deg); }
    @keyframes mcExcitedBounce {
      0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
      35%      { transform: translate3d(0, -10px, 0) rotate(-3deg); }
      70%      { transform: translate3d(0, -4px, 0) rotate(3deg); }
    }

    .mc-state-sad .mc-head {
      transform: translate3d(0, 3px, 0) rotate(-4deg);
    }
    .mc-state-sad .mc-root {
      animation: mcSadSway 3.4s ease-in-out infinite;
    }
    @keyframes mcSadSway {
      0%, 100% { transform: rotate(-2deg); }
      50%      { transform: rotate(2deg); }
    }

    .mc-state-sleepy .mc-root {
      animation: mcSleepBreathe 4.2s ease-in-out infinite;
    }
    .mc-state-sleepy .mc-prop-zzz {
      animation: mcZzzFloat 2.4s ease-in-out infinite;
    }
    @keyframes mcSleepBreathe {
      0%, 100% { transform: scaleY(0.98) translate3d(0, 1px, 0); }
      50%      { transform: scaleY(1.02) translate3d(0, -1px, 0); }
    }
    @keyframes mcZzzFloat {
      0%   { opacity: 0.25; transform: translate3d(0, 4px, 0) scale(0.9); }
      50%  { opacity: 0.95; transform: translate3d(4px, -6px, 0) scale(1.06); }
      100% { opacity: 0.25; transform: translate3d(8px, -12px, 0) scale(0.9); }
    }

    .mc-state-angry .mc-root {
      animation: mcAngryShake 320ms ease-in-out infinite;
    }
    @keyframes mcAngryShake {
      0%, 100% { transform: translate3d(-1.5px, 0, 0); }
      50%      { transform: translate3d(1.5px, 0, 0); }
    }

    .mc-state-blushing .mc-head {
      animation: mcShyTilt 1.6s ease-in-out infinite;
    }
    @keyframes mcShyTilt {
      0%, 100% { transform: rotate(-4deg); }
      50%      { transform: rotate(4deg); }
    }

    .mc-state-eating .mc-head {
      animation: mcMunch 420ms ease-in-out infinite;
    }
    @keyframes mcMunch {
      0%, 100% { transform: translate3d(0, 0, 0) scaleY(1); }
      50%      { transform: translate3d(0, 2px, 0) scaleY(0.97); }
    }

    .mc-state-playing .mc-prop-ball {
      animation: mcBallBounce 680ms ease-in-out infinite;
    }
    .mc-state-playing .mc-root {
      animation: mcHappyHop 820ms ease-in-out infinite;
    }
    @keyframes mcBallBounce {
      0%, 100% { transform: translate3d(0, 0, 0); }
      50%      { transform: translate3d(0, -14px, 0); }
    }

    .mc-state-waving .mc-arm-l {
      animation: mcWaveArm 440ms ease-in-out infinite alternate;
    }
    @keyframes mcWaveArm {
      0%   { transform: rotate(42deg); }
      100% { transform: rotate(86deg); }
    }

    .mc-state-hugging .mc-root {
      animation: mcCuddleRock 2.4s ease-in-out infinite;
    }
    @keyframes mcCuddleRock {
      0%, 100% { transform: rotate(-2deg) translate3d(0, 0, 0); }
      50%      { transform: rotate(2deg) translate3d(0, -2px, 0); }
    }

    .mc-state-thinking .mc-head {
      transform: rotate(7deg) translate3d(1px, -1px, 0);
    }
    .mc-state-thinking .mc-prop-think {
      animation: mcZzzFloat 2.4s ease-in-out infinite;
    }

    .mc-state-happy .mc-tail,
    .mc-state-excited .mc-tail,
    .mc-state-playing .mc-tail,
    .mc-state-waving .mc-tail {
      animation: mcTailWag 420ms ease-in-out infinite alternate;
    }
    @keyframes mcTailWag {
      0%   { transform: rotate(-10deg); }
      100% { transform: rotate(14deg); }
    }

    .mc-action-chip {
      min-height: 44px;
      padding: 6px 12px;
      border-radius: 9999px;
      font-size: 12px;
      font-weight: 800;
      background-color: var(--ds-bg-subtle);
      color: var(--ds-text-primary);
      border: 1px solid var(--ds-border);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }

    /* Strict Reduce Motion Safety for All Phase 5 Mascot Animations */
    @media (prefers-reduced-motion: reduce) {
      .mc-svg *, #home-mochi-cuddle-heart {
        animation: none !important;
      }
    }
    .reduce-motion .mc-svg *,
    .reduce-motion #home-mochi-cuddle-heart {
      animation: none !important;
    }


    /* ========================================================================
       3D ROTATABLE MOCHI AVATAR STAGE (Open, Clean, No Speech Text, Pure Emotes)
       ======================================================================== */
    .mc-3d-stage {
      position: relative;
      padding: 8px 4px 6px;
      border-radius: 26px;
      background: radial-gradient(ellipse at 50% 68%, rgba(245, 184, 202, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
      user-select: none;
      -webkit-user-select: none;
    }
    .dark .mc-3d-stage {
      background: radial-gradient(ellipse at 50% 68%, rgba(232, 121, 154, 0.14) 0%, rgba(11, 11, 22, 0) 72%);
    }
    .mc-3d-topbar {
      position: absolute;
      top: 6px;
      left: 8px;
      right: 8px;
      z-index: 4;
      display: flex;
      align-items: center;
      justify-content: space-between;
      pointer-events: none;
    }
    .mc-3d-topbar > * {
      pointer-events: auto;
    }
    .mc-3d-mood-dot {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 9999px;
      font-size: 16px;
      background-color: var(--ds-bg-surface);
      border: 1px solid var(--ds-border);
      box-shadow: 0 4px 12px -4px rgba(18, 12, 28, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.45);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }
    .mc-3d-mini-btn {
      width: 34px;
      height: 34px;
      min-height: 34px !important;
      border-radius: 9999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 800;
      background-color: var(--ds-bg-surface);
      color: var(--ds-text-primary);
      border: 1px solid var(--ds-border);
      box-shadow: 0 4px 12px -4px rgba(18, 12, 28, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }
    .mc-3d-mood-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-height: 32px !important;
      padding: 4px 11px;
      border-radius: 9999px;
      font-size: 11px;
      font-weight: 800;
      background-color: var(--ds-bg-surface);
      color: var(--ds-text-primary);
      border: 1px solid var(--ds-accent-border);
      box-shadow: 0 4px 12px -4px rgba(18, 12, 28, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }
    .mc-3d-canvas {
      display: block;
      width: 100%;
      height: 158px;
      cursor: grab;
      touch-action: pan-y;
    }
    @media (min-width: 640px) {
      .mc-3d-canvas {
        height: 196px;
      }
    }
    .mc-3d-canvas:active {
      cursor: grabbing;
    }

    /* Pure Emoji Emote Bar (No full icon boxes — just tactile emoji emotes) */
    .mc-emote-bar {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 4px 6px 2px;
      margin-top: -6px;
    }
    @media (max-width: 480px) {
      .mc-emote-bar {
        justify-content: flex-start;
      }
    }
    .mc-emote-btn {
      flex: 0 0 auto;
      width: 44px;
      height: 44px;
      min-height: 44px;
      border-radius: 9999px;
      border: 1px solid transparent;
      background: rgba(255, 255, 255, 0.42);
      font-size: 21px;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 12px -6px rgba(36, 28, 38, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.65);
      transition: transform 200ms var(--rz-spring), background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    }
    .dark .mc-emote-btn {
      background: rgba(255, 255, 255, 0.08);
      box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    }
    .mc-emote-btn:hover {
      transform: translateY(-2px) scale(1.08);
    }
    .mc-emote-btn:active {
      transform: scale(0.88);
    }
    .mc-emote-btn-active {
      background: var(--ds-accent-soft) !important;
      border-color: var(--ds-accent-border) !important;
      transform: translateY(-2px) scale(1.08);
      box-shadow: 0 8px 18px -6px rgba(184, 59, 96, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    }

    /* ========================================================================
       REALISTIC SCULPTED FLOATING MOBILE NAVIGATION DOCK & 3D-SHADED ICONS
       ======================================================================== */
    .rz-realistic-dock {
      left: 10px;
      right: 10px;
      bottom: calc(8px + var(--safe-bottom));
      padding: 6px 6px 7px;
      border-radius: 26px;
      background: linear-gradient(180deg, rgba(255, 252, 249, 0.90) 0%, rgba(248, 240, 244, 0.86) 100%);
      border: 1px solid rgba(255, 255, 255, 0.80);
      box-shadow:
        0 14px 32px -10px rgba(42, 24, 48, 0.28),
        0 4px 12px -4px rgba(42, 24, 48, 0.16),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.92),
        inset 0 -1px 0 rgba(91, 58, 78, 0.10);
      -webkit-backdrop-filter: blur(22px) saturate(165%);
      backdrop-filter: blur(22px) saturate(165%);
    }
    .dark .rz-realistic-dock {
      background: linear-gradient(180deg, rgba(30, 28, 52, 0.88) 0%, rgba(16, 15, 32, 0.92) 100%);
      border: 1px solid rgba(255, 255, 255, 0.14);
      box-shadow:
        0 18px 36px -8px rgba(0, 0, 0, 0.72),
        0 6px 14px -4px rgba(0, 0, 0, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.45);
    }

    .rz-dock-btn {
      position: relative;
      min-height: 54px;
      padding: 5px 2px 4px;
      border-radius: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      transition: transform 220ms var(--rz-spring), background-color 180ms ease, box-shadow 180ms ease;
    }
    .rz-dock-btn:active {
      transform: scale(0.92) translateY(1px);
    }
    .rz-dock-btn.nav-btn-active {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(252, 231, 238, 0.85) 100%) !important;
      box-shadow:
        0 6px 16px -6px rgba(169, 59, 91, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 0 0 1px rgba(169, 59, 91, 0.16);
      transform: translateY(-2px);
    }
    .dark .rz-dock-btn.nav-btn-active {
      background: linear-gradient(180deg, rgba(232, 121, 154, 0.24) 0%, rgba(184, 59, 96, 0.18) 100%) !important;
      box-shadow:
        0 8px 18px -6px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0 0 1px rgba(240, 138, 168, 0.30);
    }

    .rz-dock-ico-wrap {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      transition: transform 240ms var(--rz-spring), filter 180ms ease;
    }
    .rz-real-icon {
      width: 26px;
      height: 26px;
      display: block;
      filter: drop-shadow(0 2px 3px rgba(20, 12, 32, 0.22));
    }
    .rz-dock-btn:not(.nav-btn-active) .rz-real-icon {
      opacity: 0.90;
      filter: drop-shadow(0 2px 3px rgba(14, 14, 25, 0.30));
    }
    .rz-dock-btn.nav-btn-active .rz-dock-ico-wrap {
      transform: scale(1.12) translateY(-1px);
    }
    .rz-dock-label {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.01em;
      line-height: 1.1;
    }
    .rz-dock-dot {
      width: 14px;
      height: 3px;
      border-radius: 9999px;
      background-color: var(--ds-accent);
      opacity: 0;
      transform: scaleX(0.3);
      transition: opacity 180ms ease, transform 240ms var(--rz-spring);
    }
    .rz-dock-btn.nav-btn-active .rz-dock-dot {
      opacity: 1;
      transform: scaleX(1);
    }

    /* Desktop Sidebar Matching Realistic Icon Badge */
    .rz-real-icon-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 12px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(244, 232, 238, 0.65) 100%);
      border: 1px solid rgba(91, 58, 78, 0.12);
      box-shadow: 0 3px 8px -4px rgba(36, 28, 38, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.85);
      flex-shrink: 0;
    }
    .dark .rz-real-icon-badge {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
      border-color: rgba(255, 255, 255, 0.14);
      box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }

    @media (max-width: 767px) {
      .mobile-content-pad {
        padding-bottom: calc(8.2rem + var(--safe-bottom)) !important;
      }
    }

    /* ========================================================================
       HANDCRAFTED HUMAN TOUCH — WARM STATIONERY BEVELS & WASHI TAPE DETAIL
       ======================================================================== */
    .surface-hero,
    .surface-editorial,
    .surface-mochi {
      box-shadow:
        var(--ds-shadow-card),
        inset 0 1px 0 rgba(255, 255, 255, 0.56);
    }
    .dark .surface-hero,
    .dark .surface-editorial,
    .dark .surface-mochi {
      box-shadow:
        var(--ds-shadow-card),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
    }
    .surface-paper {
      position: relative;
      box-shadow:
        0 10px 26px -12px rgba(91, 58, 78, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    }
    .surface-paper::before {
      content: '';
      position: absolute;
      top: -9px;
      left: 50%;
      width: 84px;
      height: 18px;
      transform: translateX(-50%) rotate(-1.5deg);
      border-radius: 3px;
      background: rgba(245, 184, 202, 0.52);
      border-left: 1px dashed rgba(91, 58, 78, 0.18);
      border-right: 1px dashed rgba(91, 58, 78, 0.18);
      pointer-events: none;
    }
    .dark .surface-paper::before {
      background: rgba(232, 121, 154, 0.30);
      border-color: rgba(255, 255, 255, 0.16);
    }


    .rz-real-icon-sm {
      width: 21px;
      height: 21px;
    }
    .rz-real-icon-badge-lg {
      width: 42px;
      height: 42px;
      border-radius: 15px;
    }

    /* ========================================================================
       PERMANENT 5-COLOR SLATE-TEAL BRAND PALETTE (EXACT USER HEX CODES ONLY)
         #787E90 — Mist Sky (Lighter Upper Background & Highlights)
         #4B6777 — Horizon Teal (Mid Horizon, Soft Accents, Borders, Active Glow)
         #223F51 — Ocean Teal (Primary Buttons, Active Selections, Lake)
         #2A3346 — Dusk Slate (Main Cards, Dock, Popovers, Modals)
         #0E0E19 — Deep Obsidian (Inputs, Inner Pills, Deep Foreground, Canvas Base)
       ======================================================================== */
    :root,
    .dark {
      --primary-rose: #787E90;
      --accent-rose: #4B6777;
      --deep-plum: #223F51;
      --soft-pink: #2A3346;
      --warm-cream: #F1F4F9;
      --lavender: #4B6777;
      --soft-peach: #787E90;
      --muted-mint: #223F51;
      --dark-text: #F1F4F9;
      --secondary-text: #B6C1D4;
      --surface: #2A3346;

      --ds-bg-canvas: #0E0E19;
      --ds-bg-surface: rgba(42, 51, 70, 0.90);
      --ds-bg-surface-solid: #2A3346;
      --ds-bg-subtle: #0E0E19;
      --ds-border: rgba(120, 126, 144, 0.28);
      --ds-border-strong: rgba(120, 126, 144, 0.44);
      --ds-text-primary: #F1F4F9;
      --ds-text-muted: #B6C1D4;

      --ds-accent: #4B6777;
      --ds-accent-text: #DCE6F2;
      --ds-accent-btn-bg: #223F51;
      --ds-accent-btn-text: #FFFFFF;
      --ds-accent-soft: #223F51;
      --ds-accent-soft-text: #F1F4F9;
      --ds-accent-border: rgba(75, 103, 119, 0.72);
      --ds-success: #4B6777;
      --ds-warn: #787E90;
      --ds-danger: #223F51;

      --ds-shadow-card: 0 10px 28px -10px rgba(14, 14, 25, 0.65);
      --ds-shadow-elevated: 0 16px 36px -10px rgba(14, 14, 25, 0.78);

      --icon-1: #DCE6F2;
      --icon-2: #4B6777;
      --icon-bg: rgba(14, 14, 25, 0.68);
      --icon-bg-active: rgba(34, 63, 81, 0.90);
      --paper-bg: rgba(42, 51, 70, 0.93);
      --paper-line: rgba(120, 126, 144, 0.22);
      --hand-accent: #787E90;
      --sky-card-bg: rgba(42, 51, 70, 0.90);
    }

    body {
      background-color: #0E0E19 !important;
      color: #F1F4F9 !important;
    }

    /* Permanent Afternoon Mist-to-Ocean Background matching the permanent 5-color palette */
    .ambient-bg,
    .ambient-bg[data-tod="morning"],
    .ambient-bg[data-tod="afternoon"],
    .ambient-bg[data-tod="evening"],
    .ambient-bg[data-tod="night"],
    .ambient-bg[data-weather="rainy"],
    .ambient-bg[data-weather="love_light"] {
      --sky-top: #787E90;
      --sky-mid: #4B6777;
      --sky-bottom: #223F51;
      --hill-far: #4B6777;
      --hill-mid: #2A3346;
      --hill-near: #0E0E19;
      --water-top: #223F51;
      --water-bot: #0E0E19;
      --cloud-fill: rgba(226, 234, 244, 0.20);
      --window-glow: 0.55;
      background: linear-gradient(180deg, #787E90 0%, #637286 34%, #4B6777 66%, #223F51 100%) !important;
    }
    .ambient-scrim,
    .dark .ambient-scrim {
      background: rgba(14, 14, 25, 0.14) !important;
    }

    /* Soft Luminous "Moving Light with Love" Sunbeams in Lighter Upper Background */
    #sky-love-beams {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
    }
    .love-light-beam {
      position: absolute;
      top: -18%;
      width: 52vw;
      min-width: 260px;
      height: 82vh;
      border-radius: 50%;
      pointer-events: none;
      will-change: transform, opacity;
    }
    .love-light-beam-1 {
      left: -12%;
      background: radial-gradient(ellipse at center, rgba(242, 247, 255, 0.24) 0%, rgba(192, 210, 226, 0.10) 44%, rgba(120, 126, 144, 0) 74%);
      animation: loveLightSweepA 15s ease-in-out infinite alternate;
    }
    .love-light-beam-2 {
      right: -14%;
      top: -10%;
      background: radial-gradient(ellipse at center, rgba(236, 244, 255, 0.20) 0%, rgba(120, 126, 144, 0.09) 46%, rgba(75, 103, 119, 0) 75%);
      animation: loveLightSweepB 19s ease-in-out infinite alternate;
    }
    .love-light-shimmer {
      position: absolute;
      inset: 0 0 32% 0;
      background: linear-gradient(112deg, transparent 22%, rgba(244, 248, 255, 0.14) 48%, rgba(210, 224, 238, 0.06) 56%, transparent 78%);
      transform: translate3d(-45%, 0, 0);
      animation: loveRibbonGlide 13s ease-in-out infinite alternate;
      will-change: transform, opacity;
    }
    .celestial-love-halo {
      background: radial-gradient(circle, rgba(246, 250, 255, 0.85) 0%, rgba(206, 220, 236, 0.36) 44%, rgba(120, 126, 144, 0) 74%);
      box-shadow: 0 0 72px 24px rgba(226, 236, 248, 0.28);
      animation: loveHaloBreath 7s ease-in-out infinite;
    }

    @keyframes loveLightSweepA {
      0%   { transform: translate3d(-8vw, 0, 0) scale(1); opacity: 0.72; }
      50%  { transform: translate3d(24vw, 3vh, 0) scale(1.14); opacity: 0.98; }
      100% { transform: translate3d(48vw, -2vh, 0) scale(1.04); opacity: 0.78; }
    }
    @keyframes loveLightSweepB {
      0%   { transform: translate3d(6vw, 0, 0) scale(1.06); opacity: 0.65; }
      50%  { transform: translate3d(-22vw, 4vh, 0) scale(1.16); opacity: 0.94; }
      100% { transform: translate3d(-42vw, -2vh, 0) scale(0.96); opacity: 0.72; }
    }
    @keyframes loveRibbonGlide {
      0%   { transform: translate3d(-38%, 0, 0); opacity: 0.55; }
      50%  { transform: translate3d(0%, 0, 0); opacity: 0.92; }
      100% { transform: translate3d(38%, 0, 0); opacity: 0.58; }
    }
    @keyframes loveHaloBreath {
      0%, 100% { transform: scale(1); opacity: 0.82; }
      50%      { transform: scale(1.12); opacity: 1; }
    }

    .calm-mode #sky-love-beams,
    .reduce-motion #sky-love-beams .love-light-beam,
    .reduce-motion #sky-love-beams .love-light-shimmer,
    .reduce-motion .celestial-love-halo {
      animation: none !important;
    }
    .calm-mode #sky-love-beams {
      opacity: 0.4;
    }

    /* Unified Slate Cards (#2A3346) & Obsidian Inputs / Inner Rows (#0E0E19) */
    .surface-hero,
    .surface-editorial,
    .surface-mochi,
    .rizzor-card,
    .ds-card {
      background-color: rgba(42, 51, 70, 0.90) !important;
      border-color: rgba(120, 126, 144, 0.28) !important;
      box-shadow:
        0 12px 30px -12px rgba(14, 14, 25, 0.68),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    }
    .surface-mochi {
      border-left: 4px solid #4B6777 !important;
    }
    .surface-paper {
      background-color: rgba(42, 51, 70, 0.93) !important;
      border-color: rgba(120, 126, 144, 0.36) !important;
    }
    .surface-paper::before {
      background: rgba(75, 103, 119, 0.52) !important;
      border-color: rgba(220, 230, 242, 0.22) !important;
    }

    /* Inputs, Selects & Textareas strictly in #0E0E19 matching the permanent 5-color palette! */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    input[type="time"],
    select,
    textarea {
      background-color: #0E0E19 !important;
      color: #F1F4F9 !important;
      border-color: rgba(120, 126, 144, 0.34) !important;
    }
    input::placeholder,
    textarea::placeholder {
      color: #787E90 !important;
    }
    input[type="checkbox"] {
      accent-color: #4B6777 !important;
    }

    /* Consistent 5-Color Chips, Buttons, Selected States & Badges */
    .chip-active-selected,
    .dark .chip-active-selected {
      background-color: #223F51 !important;
      color: #FFFFFF !important;
      border-color: #787E90 !important;
      box-shadow: 0 0 0 2px rgba(75, 103, 119, 0.65), 0 8px 18px -6px rgba(14, 14, 25, 0.65) !important;
    }
    .nav-btn-active {
      background-color: #223F51 !important;
      color: #FFFFFF !important;
      border: 1px solid rgba(75, 103, 119, 0.72) !important;
    }
    .text-ink,
    .dark .text-ink {
      color: #F1F4F9;
    }
    .text-plum,
    .dark .text-plum,
    .text-rosepastel,
    .dark .text-rosepastel {
      color: #DCE6F2;
    }
    .text-rose,
    .dark .text-rose {
      color: #C5D4E3;
    }
    .text-muted,
    .dark .text-muted {
      color: #B6C1D4;
    }
    .bg-plum {
      background-color: #223F51 !important;
      color: #FFFFFF !important;
    }
    .bg-rose {
      background-color: #4B6777 !important;
      color: #FFFFFF !important;
    }
    .bg-blush,
    .bg-blush\/70,
    .bg-blush\/80,
    .bg-blush\/60,
    .bg-lavender,
    .bg-lavender\/60,
    .bg-lavender\/70,
    .bg-sage,
    .bg-sage\/80,
    .bg-sage\/60,
    .bg-sage\/50 {
      background-color: rgba(34, 63, 81, 0.78) !important;
      color: #F1F4F9 !important;
      border-color: rgba(75, 103, 119, 0.55) !important;
    }
    .bg-cream,
    .bg-cream\/90,
    .bg-cream\/80,
    .bg-cream\/70,
    .bg-cream\/60,
    .dark .bg-cream,
    .dark .bg-cream\/90 {
      background-color: #0E0E19 !important;
      color: #F1F4F9 !important;
    }

    /* Preserve vibrant colored icon shades & 3D icons across dock and all pages */

    /* Realistic Floating Mobile Dock strictly in #2A3346 / #0E0E19 / #223F51 / #4B6777 / #787E90 */
    .rz-realistic-dock,
    .dark .rz-realistic-dock {
      background: linear-gradient(180deg, rgba(42, 51, 70, 0.94) 0%, rgba(14, 14, 25, 0.96) 100%) !important;
      border: 1px solid rgba(120, 126, 144, 0.34) !important;
      box-shadow:
        0 18px 36px -8px rgba(14, 14, 25, 0.80),
        0 6px 14px -4px rgba(14, 14, 25, 0.62),
        inset 0 1px 0 rgba(220, 230, 242, 0.16),
        inset 0 -1px 0 rgba(14, 14, 25, 0.6) !important;
    }
    .rz-dock-btn.nav-btn-active,
    .dark .rz-dock-btn.nav-btn-active {
      background: linear-gradient(180deg, #4B6777 0%, #223F51 100%) !important;
      color: #FFFFFF !important;
      box-shadow:
        0 8px 18px -6px rgba(14, 14, 25, 0.72),
        inset 0 1px 0 rgba(240, 245, 252, 0.28),
        0 0 0 1px rgba(120, 126, 144, 0.45) !important;
    }
    .rz-dock-dot {
      background-color: #DCE6F2 !important;
    }
    .rz-real-icon-badge,
    .dark .rz-real-icon-badge {
      background: linear-gradient(180deg, #2A3346 0%, #0E0E19 100%) !important;
      border-color: rgba(120, 126, 144, 0.32) !important;
      box-shadow: 0 4px 10px -4px rgba(14, 14, 25, 0.58), inset 0 1px 0 rgba(220, 230, 242, 0.14) !important;
    }

    /* 3D Avatar Stage & Emotes strictly in the 5-Color Palette */
    .mc-3d-stage,
    .dark .mc-3d-stage {
      background: radial-gradient(ellipse at 50% 66%, rgba(120, 126, 144, 0.22) 0%, rgba(42, 51, 70, 0) 72%) !important;
    }
    .mc-3d-mood-pill,
    .mc-3d-mini-btn {
      background-color: rgba(14, 14, 25, 0.82) !important;
      color: #F1F4F9 !important;
      border-color: rgba(75, 103, 119, 0.65) !important;
    }
    .mc-emote-btn,
    .dark .mc-emote-btn {
      background: rgba(14, 14, 25, 0.62) !important;
      border-color: rgba(120, 126, 144, 0.22) !important;
    }
    .mc-emote-btn-active {
      background: #223F51 !important;
      border-color: #787E90 !important;
      box-shadow: 0 8px 18px -6px rgba(14, 14, 25, 0.72), inset 0 1px 0 rgba(220, 230, 242, 0.25) !important;
    }

    /* Floating Home Quick Actions strictly in 5-Color Palette */
    .home-fab-mochi {
      background: linear-gradient(145deg, #4B6777 0%, #223F51 100%) !important;
      color: #FFFFFF !important;
      border: 1.5px solid rgba(120, 126, 144, 0.55) !important;
    }
    .home-fab-mood {
      background: linear-gradient(145deg, #2A3346 0%, #0E0E19 100%) !important;
      color: #F1F4F9 !important;
      border: 1.5px solid rgba(75, 103, 119, 0.65) !important;
    }

    /* Mobile Header, Desktop Sidebar, Story Outro & Progress Ring strictly in 5-Color Palette */
    #mobile-top-header {
      background-color: rgba(14, 14, 25, 0.90) !important;
      border-bottom-color: rgba(120, 126, 144, 0.26) !important;
    }
    #desktop-sidebar {
      background-color: rgba(42, 51, 70, 0.92) !important;
      border-right-color: rgba(120, 126, 144, 0.26) !important;
    }
    #rz-story-sky-night {
      background: linear-gradient(180deg, #0E0E19 0%, #223F51 54%, #2A3346 100%) !important;
    }
    .rz-ring-arc,
    .vlog-upload-ring-arc {
      stroke: #787E90 !important;
    }
    .game-badge-new {
      background-color: #223F51 !important;
      border-color: #787E90 !important;
    }
    .game-result-emblem {
      background: linear-gradient(135deg, #223F51 0%, #4B6777 100%) !important;
      border-color: #787E90 !important;
    }
    .lobby-radar-ring {
      border-color: rgba(120, 126, 144, 0.65) !important;
    }
    ::-webkit-scrollbar-thumb {
      background: rgba(120, 126, 144, 0.35);
    }
