/* "We are live": a LIVE tag on the Compass Mind orb (assets/js/live-announcement.js). Nature and Space take the colours of their cards. */
.cm-live-tag{
  position:absolute;left:50%;bottom:-9px;transform:translateX(-50%);z-index:2;
  padding:2px 8px 3px;border-radius:999px;border:2px solid #fff;
  background:linear-gradient(90deg,#5a8f24,#6f7cf0);color:#fff;
  font:850 9px/1.2 system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;white-space:nowrap;
  box-shadow:0 6px 14px rgba(7,17,28,.28);animation:cmLivePulse 2s ease-in-out infinite;pointer-events:none;
}
.cm-live-tag::before{content:"";display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#fff;vertical-align:1px;animation:cmLiveDot 1.2s ease-in-out infinite}
.cm-orb.has-live{box-shadow:0 14px 30px rgba(7,17,28,.22),0 0 0 6px rgba(111,124,240,.22),0 0 0 12px rgba(90,143,36,.16);animation:cmLiveRing 2.4s ease-in-out infinite}
@keyframes cmLivePulse{0%,100%{transform:translateX(-50%) scale(1)}50%{transform:translateX(-50%) scale(1.07)}}
@keyframes cmLiveDot{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes cmLiveRing{0%,100%{box-shadow:0 14px 30px rgba(7,17,28,.22),0 0 0 4px rgba(111,124,240,.22),0 0 0 9px rgba(90,143,36,.14)}50%{box-shadow:0 14px 30px rgba(7,17,28,.22),0 0 0 8px rgba(111,124,240,.3),0 0 0 15px rgba(90,143,36,.2)}}
@media(prefers-reduced-motion:reduce){.cm-live-tag,.cm-live-tag::before,.cm-orb.has-live{animation:none}}

/* The popup: larger, one half forest, one half night sky. Two cards, one for each pier. */
html:root .cm-nudge.is-live{
  width:min(440px,calc(100vw - 32px));padding:22px 20px 20px;display:block;
  background:
    radial-gradient(120% 90% at 0% 0%,rgba(127,174,74,.34),transparent 55%),
    radial-gradient(120% 90% at 100% 0%,rgba(111,124,240,.4),transparent 55%),
    linear-gradient(135deg,#14261a 0%,#14202e 48%,#161a45 100%);
  border:1.5px solid #c8b184;border-top:4px solid transparent;border-image:linear-gradient(90deg,#7fae4a,#c9aa6a,#6f7cf0) 1;border-radius:0;
  box-shadow:0 0 0 4px rgba(7,17,28,.08),0 30px 70px rgba(7,17,28,.4),0 0 60px rgba(111,124,240,.18);
}
html:root .cm-nudge.is-live::before{background:#c9aa6a}
.cm-nudge.is-live .cm-nudge-seal{position:absolute;top:-22px;left:50%;margin-left:-20px;background:radial-gradient(circle at 36% 30%,#3d5a2a,#26307a);}
.cm-nudge.is-live .cm-nudge-kicker{justify-content:center;text-align:center;margin:8px 0 6px;font-size:12px;letter-spacing:.32em}
.cm-nudge.is-live .cm-nudge-kicker::after{display:none}
html:root .cm-nudge.is-live .cm-nudge-text{margin:0 auto 16px;max-width:34ch;text-align:center;font:italic 400 18px/1.4 "Harbour Serif",Georgia,"Times New Roman",serif;color:#f6f0e2}
html:root .cm-nudge.is-live .cm-nudge-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cm-nudge.is-live .cm-nudge-close{position:absolute;top:8px;right:8px;margin:0;color:rgba(244,239,228,.6)}
.cm-nudge.is-live .cm-nudge-next{grid-column:1/-1}
.cm-live-card{
  position:relative;display:grid;grid-template-rows:84px auto auto;gap:2px;padding:0 0 12px;overflow:hidden;border-radius:14px;text-decoration:none;
  border:1.5px solid rgba(233,217,180,.35);background:rgba(7,17,28,.55);color:#fff;text-align:center;
  transition:transform .35s var(--cm-ease),box-shadow .35s ease,border-color .35s ease;
}
.cm-live-art{display:block;overflow:hidden;height:84px}
.cm-live-art svg{display:block;width:100%;height:100%;transition:transform .8s var(--cm-ease)}
.cm-live-card strong{display:block;margin-top:10px;font:600 19px/1.1 "Harbour Serif",Georgia,serif;letter-spacing:.02em}
.cm-live-card small{display:block;padding:0 10px;font-size:11.5px;line-height:1.3;color:rgba(247,240,226,.78)}
.cm-live-card i{position:absolute;right:10px;top:10px;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:rgba(7,17,28,.6);color:#fff;font-style:normal;font-size:14px;transition:transform .3s var(--cm-ease)}
.cm-live-card:hover,.cm-live-card:focus-visible{transform:translateY(-3px)}
.cm-live-card:hover .cm-live-art svg,.cm-live-card:focus-visible .cm-live-art svg{transform:scale(1.08)}
.cm-live-card:hover i,.cm-live-card:focus-visible i{transform:translateX(3px)}
.cm-live-card:focus-visible{outline:2px solid #e9d9b4;outline-offset:3px}
.cm-live-card--nature:hover,.cm-live-card--nature:focus-visible{border-color:#9bd05b;box-shadow:0 14px 30px rgba(90,143,36,.45)}
.cm-live-card--space:hover,.cm-live-card--space:focus-visible{border-color:#9aa5ff;box-shadow:0 14px 30px rgba(111,124,240,.5)}
@media(max-width:420px){html:root .cm-nudge.is-live .cm-nudge-actions{grid-template-columns:1fr}.cm-live-card{grid-template-rows:64px auto auto}.cm-live-art{height:64px}}
@media(prefers-reduced-motion:reduce){.cm-live-card,.cm-live-art svg,.cm-live-card i{transition:none}}
