/* Gold ambient lighting only. Data, labels, chart proportions and card geometry
   stay still; all decorative layers are pointer-transparent and session-paused. */
@media screen {
  body.crm-motion-on :is(#homeBoard,#orgView,#fullOrgView,#activityPerformanceView) .crm-scene::before {
    background: radial-gradient(ellipse at 24% 35%,#e4ad3930,transparent 31%),radial-gradient(ellipse at 80% 58%,#fff0b628,transparent 32%),conic-gradient(from 110deg at 62% 50%,transparent 0 32%,#eac25c48 39%,transparent 49% 62%,#fff0b72e 69%,transparent 78%);
    animation:crm-luxe-ambient 16s ease-in-out infinite alternate;
  }
  body.crm-motion-on :is(#homeBoard,#orgView,#fullOrgView,#activityPerformanceView) .crm-scene::after {
    height:3px; background-size:220% 100%; animation:crm-luxe-stream 7s linear infinite;
    box-shadow:0 -2px 15px #e5b63b55,0 0 4px #fff1b666;
  }
  body.crm-motion-on .crm-scene-visual::before {
    background:radial-gradient(circle,#ffdf8c65,#b988342b 44%,transparent 69%);
    animation:crm-luxe-halo 6s ease-in-out infinite alternate;
  }
  body.crm-motion-on .crm-scene-visual::after {
    content:"";position:absolute;inset:4%;pointer-events:none;border-radius:50%;
    background:radial-gradient(circle at 8% 35%,#fff6cb 0 1.5px,transparent 3px),radial-gradient(circle at 85% 20%,#ffe7a3 0 1px,transparent 2.5px),radial-gradient(circle at 76% 84%,#fff7d5 0 1.6px,transparent 3px),radial-gradient(circle at 19% 79%,#efbf57 0 1px,transparent 2.8px),radial-gradient(circle at 48% 4%,#fff4bc 0 1px,transparent 2.5px);
    filter:drop-shadow(0 0 7px #ffd86e);animation:crm-luxe-stardust 26s linear infinite;
  }
  body.crm-motion-on .crm-orbit::before {
    content:"";position:absolute;top:11%;left:16%;width:5px;height:5px;border-radius:50%;pointer-events:none;
    background:#fff6ce;box-shadow:0 0 7px #fff3bb,0 0 18px #eac25c;opacity:.9;
  }
  body.crm-motion-on .crm-orbit.orbit-b::before { top:auto;bottom:12%;left:16%;width:4px;height:4px; }
  body.crm-motion-on .crm-orbit.orbit-c::before { top:7%;left:68%;width:3px;height:3px; }
  body.crm-motion-on .crm-emblem::after {
    content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
    background:linear-gradient(112deg,transparent 25%,#fff5cc09 41%,#fff6ce40 49%,#efd18c0d 57%,transparent 73%);background-size:280% 100%;
    animation:crm-luxe-sheen 9s ease-in-out infinite;
  }
  body.crm-motion-on #homeBoard .hb-period::before {
    height:3px;box-shadow:0 0 14px #e1ae3a66;animation:crm-luxe-stream 8s linear infinite;
  }
  body.crm-motion-on #homeBoard .hb-period .hb-rank-card::before {
    content:"";position:absolute;inset:0 0 auto auto;width:130px;height:96px;z-index:0;pointer-events:none;
    background:radial-gradient(circle at 70% 18%,#d4a43e7a 0 1px,transparent 2px),radial-gradient(circle at 88% 40%,#c69a385e 0 1px,transparent 2.5px),radial-gradient(circle at 42% 10%,#e3b75580 0 1.4px,transparent 3px);
    animation:crm-luxe-particles 9s ease-in-out infinite alternate;
  }
  body.crm-motion-on #homeBoard .hb-period .hb-rank-card::after {
    content:"";position:absolute;inset:0 5% auto;width:auto;height:2px;opacity:1;pointer-events:none;
    background:linear-gradient(90deg,transparent 5%,#bd8c2925 27%,#f4da8b 45%,#d9ae4c 53%,transparent 80%);background-size:250% 100%;
    box-shadow:0 0 9px #d4a33a44;animation:crm-luxe-stream 7s linear infinite;
  }
  body.crm-motion-on #homeBoard .hb-period .hb-rank-card:nth-child(2)::after { animation-delay:-3.5s; }
  body.crm-motion-on #homeBoard .hb-period .hb-crown { animation:crm-luxe-crown 4.8s ease-in-out infinite alternate; }
  body.crm-motion-on #homeBoard .hb-period .hb-rank-card:nth-child(2) .hb-crown { animation-delay:-2.4s; }
  body.crm-motion-on #homeBoard .hb-period .hb-rank-row[data-hb-rank="1"]::after {
    content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;
    background:linear-gradient(107deg,transparent 22%,#fff7d312 38%,#fffef08a 49%,#ffe7a324 59%,transparent 74%);background-size:260% 100%;
    animation:crm-luxe-sheen 10s ease-in-out infinite;
  }
  body.crm-motion-on #homeBoard .hb-honors::before { height:2px;box-shadow:0 0 14px #e8bb4b66;animation:crm-luxe-stream 6.5s linear infinite; }
  body.crm-motion-on #homeBoard .hb-honors::after {
    content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;
    background:radial-gradient(ellipse at 18% 15%,#efc85e29,transparent 44%),radial-gradient(ellipse at 85% 70%,#e2a92a13,transparent 43%);background-size:160% 140%;
    animation:crm-luxe-drift 14s ease-in-out infinite alternate;
  }
  #orgView .org-person,#orgView .org-stats>div,#activityPerformanceView .ap-metrics { position:relative;isolation:isolate; }
  body.crm-motion-on #orgView .org-person::before,
  body.crm-motion-on #orgView .org-stats>div::before {
    content:"";position:absolute;inset:0 9% auto;height:2px;pointer-events:none;
    background:linear-gradient(90deg,transparent 10%,#c99e4266 30%,#fff0b9 46%,#d9b15c 56%,transparent 83%);background-size:230% 100%;
    box-shadow:0 0 9px #c8963633;animation:crm-luxe-stream 9s linear infinite;
  }
  body.crm-motion-on #orgView .org-person:nth-child(even)::before,
  body.crm-motion-on #orgView .org-stats>div:nth-child(even)::before { animation-delay:-4s; }
  body.crm-motion-on #activityPerformanceView :is(.ap-donut-card,.ap-metrics)::after {
    content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;
    background:radial-gradient(ellipse at 15% 0%,#edbd4f20,transparent 46%),radial-gradient(ellipse at 90% 75%,#efc36410,transparent 42%);background-size:160% 140%;
    animation:crm-luxe-drift 13s ease-in-out infinite alternate;
  }
  body.crm-motion-on #activityPerformanceView .ap-donut-card:nth-child(2)::after { animation-delay:-4s; }
  body.crm-motion-on #activityPerformanceView .ap-donut-card:nth-child(3)::after { animation-delay:-8s; }
  body.crm-motion-on #activityPerformanceView .ap-ring::before { animation:crm-luxe-ring 6s ease-in-out infinite alternate; }
  body.crm-motion-off :is(#homeBoard,#orgView,#fullOrgView,#activityPerformanceView) ::before,
  body.crm-motion-off :is(#homeBoard,#orgView,#fullOrgView,#activityPerformanceView) ::after { animation:none!important; }
  @keyframes crm-luxe-ambient { from { transform:rotate(-12deg) scale(.98);opacity:.7; } to { transform:rotate(19deg) scale(1.12);opacity:1; } }
  @keyframes crm-luxe-stream { from { background-position:190% 0; } to { background-position:-50% 0; } }
  @keyframes crm-luxe-sheen { 0%,15% { background-position:160% 0; } 75%,100% { background-position:-80% 0; } }
  @keyframes crm-luxe-halo { from { opacity:.55;filter:blur(10px); } to { opacity:1;filter:blur(15px); } }
  @keyframes crm-luxe-stardust { to { transform:rotate(360deg); } }
  @keyframes crm-luxe-particles { from { opacity:.45;filter:drop-shadow(0 0 1px #d9a43a); } to { opacity:1;filter:drop-shadow(0 0 5px #d9a43a); } }
  @keyframes crm-luxe-crown { from { filter:drop-shadow(0 2px 3px #bf8a2d38); } to { filter:drop-shadow(0 0 8px #d9a84799) drop-shadow(0 0 14px #ffe5a759); } }
  @keyframes crm-luxe-drift { from { background-position:0% 15%; } to { background-position:100% 80%; } }
  @keyframes crm-luxe-ring { from { border-color:#d9b55c40;box-shadow:0 0 14px #e6bf5f19; } to { border-color:#f2d58fa6;box-shadow:0 0 27px #e6bf5f55; } }
}
@media screen and (max-width:650px) {
  body.crm-motion-on .crm-scene-visual::after { opacity:.8; }
  body.crm-motion-on #homeBoard .hb-period .hb-rank-card::before { width:100px;height:85px; }
}
