/* ANIMA Firmament Atlas V15.3 — contained shortcode shell */
.anima-firmament-embed {
  --anima-atlas-height: 720px;
  --anima-atlas-max-width: 1240px;
  position: relative;
  width: min(100%, var(--anima-atlas-max-width));
  margin: clamp(18px,3vw,42px) auto;
  color: #eef6ff;
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Inter,system-ui,sans-serif;
  isolation: isolate;
}
.anima-firmament-launcher {
  position: relative;
  min-height: clamp(410px,55vw,640px);
  border: 1px solid rgba(216,178,95,.28);
  border-radius: 30px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(28px,6vw,72px) 22px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 82%,rgba(216,178,95,.17),transparent 24%),
    radial-gradient(circle at 50% 18%,rgba(70,137,220,.19),transparent 38%),
    linear-gradient(180deg,#02040b,#07101f 60%,#02040b);
  box-shadow: 0 26px 90px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.05);
}
.anima-firmament-launcher::before,
.anima-firmament-launcher::after {
  content: "";
  position: absolute;
  inset: -35%;
  pointer-events: none;
  opacity: .62;
  background-image:
    radial-gradient(circle,rgba(255,255,255,.88) 0 1px,transparent 1.7px),
    radial-gradient(circle,rgba(140,201,255,.64) 0 1px,transparent 1.6px),
    radial-gradient(circle,rgba(255,212,138,.55) 0 1px,transparent 1.7px);
  background-size: 127px 139px,199px 183px,269px 247px;
  background-position: 17px 23px,63px 101px,131px 37px;
  animation: animaV153LauncherStars 22s linear infinite;
}
.anima-firmament-launcher::after { opacity:.22; transform:scale(1.3) rotate(14deg); animation-duration:34s; }
@keyframes animaV153LauncherStars { to { transform:scale(1.12) rotate(.7deg); } }
.anima-firmament-launcher-orbit {
  position:absolute;
  left:50%; top:53%;
  width:min(76%,720px);
  aspect-ratio:2.25;
  transform:translate(-50%,-50%) rotateX(66deg);
  border:1px solid rgba(140,201,255,.20);
  border-radius:50%;
  box-shadow:0 0 70px rgba(140,201,255,.08),inset 0 0 55px rgba(216,178,95,.05);
}
.anima-firmament-launcher-orbit::before,
.anima-firmament-launcher-orbit::after {
  content:""; position:absolute; inset:13%; border:1px solid rgba(216,178,95,.20); border-radius:50%;
}
.anima-firmament-launcher-orbit::after { inset:27%; border-color:rgba(140,201,255,.18); }
.anima-firmament-launcher-copy { position:relative; z-index:2; max-width:760px; }
.anima-firmament-launcher-kicker { font-size:11px; font-weight:900; letter-spacing:.28em; text-transform:uppercase; color:rgba(255,212,138,.76); }
.anima-firmament-launcher h2 {
  margin:16px 0 12px;
  font-size:clamp(34px,6.2vw,76px);
  line-height:.92;
  letter-spacing:-.05em;
  background:linear-gradient(180deg,#fff,#dcecff 52%,#ffd48a 112%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.anima-firmament-launcher p { max-width:620px; margin:0 auto; color:rgba(224,236,255,.70); font-size:clamp(14px,1.7vw,18px); line-height:1.55; }
.anima-firmament-launch-actions { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin-top:24px; }
.anima-firmament-launch-actions button,
.anima-firmament-frame-actions button {
  appearance:none;
  cursor:pointer;
  font-family:inherit;
}
.anima-firmament-launch-actions button {
  border:1px solid rgba(255,212,138,.36);
  border-radius:999px;
  padding:12px 18px;
  background:linear-gradient(180deg,rgba(216,178,95,.21),rgba(216,178,95,.10));
  color:#ffe8ac;
  font-size:12px;
  font-weight:900;
  line-height:1;
  letter-spacing:.07em;
  text-transform:uppercase;
  box-shadow:0 9px 26px rgba(0,0,0,.28);
  transition:.16s ease;
}
.anima-firmament-launch-actions button:hover { transform:translateY(-1px); border-color:rgba(255,212,138,.70); background:rgba(216,178,95,.24); }
.anima-firmament-launch-actions .secondary { border-color:rgba(140,201,255,.30); background:rgba(140,201,255,.09); color:#cceaff; }
.anima-firmament-launch-note { margin-top:14px; font-size:11px; color:rgba(190,210,240,.43); letter-spacing:.04em; }

.anima-firmament-stage {
  position:relative;
  width:100%;
  height:var(--anima-atlas-height);
  min-height:480px;
  max-height:calc(100svh - 28px);
  border:1px solid rgba(216,178,95,.24);
  border-radius:26px;
  overflow:hidden;
  background:#02040b;
  box-shadow:0 26px 90px rgba(0,0,0,.42);
  isolation:isolate;
  transform:translateZ(0);
  contain:layout paint style;
}
.anima-firmament-stage[hidden],
.anima-firmament-launcher[hidden] { display:none !important; }
.anima-firmament-frame {
  display:block;
  width:100%;
  height:100%;
  border:0;
  background:#02040b;
}
.anima-firmament-frame-actions {
  position:absolute;
  z-index:50;
  right:10px;
  top:10px;
  display:flex;
  gap:6px;
  pointer-events:auto;
}
.anima-firmament-frame-actions button {
  border:1px solid rgba(255,255,255,.15);
  border-radius:999px;
  padding:8px 11px;
  background:rgba(4,8,17,.78);
  color:rgba(255,255,255,.82);
  font-size:10px;
  font-weight:800;
  line-height:1;
  letter-spacing:.04em;
  backdrop-filter:blur(14px);
  box-shadow:0 5px 18px rgba(0,0,0,.26);
}
.anima-firmament-frame-actions button:hover { color:#fff; border-color:rgba(255,212,138,.45); }
.anima-firmament-loading {
  position:absolute;
  inset:0;
  z-index:20;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:9px;
  text-align:center;
  padding:24px;
  background:radial-gradient(circle at 50% 46%,rgba(45,92,156,.17),transparent 34%),#02040b;
  transition:opacity .35s ease,visibility .35s ease;
}
.anima-firmament-stage.is-ready .anima-firmament-loading { opacity:0; visibility:hidden; pointer-events:none; }
.anima-firmament-loading strong { color:#ffe4a0; font-size:14px; letter-spacing:.08em; text-transform:uppercase; }
.anima-firmament-loading small { color:rgba(215,230,255,.58); font-size:11px; }
.anima-firmament-loading-ring {
  width:36px; height:36px; border-radius:50%;
  border:2px solid rgba(140,201,255,.16);
  border-top-color:#ffd48a;
  animation:animaV153Spin 1s linear infinite;
}
@keyframes animaV153Spin { to { transform:rotate(360deg); } }
.anima-firmament-embed.is-loading .anima-firmament-launch-actions button { opacity:.58; pointer-events:none; }
.anima-firmament-embed.is-loading [data-anima-enter]::after { content:" · OPENING"; }

.anima-firmament-embed:fullscreen,
.anima-firmament-embed:-webkit-full-screen {
  width:100%; max-width:none; height:100%; margin:0; background:#02040b;
}
.anima-firmament-embed:fullscreen .anima-firmament-stage,
.anima-firmament-embed:-webkit-full-screen .anima-firmament-stage {
  height:100%; max-height:none; border:0; border-radius:0;
}
.anima-firmament-editor-placeholder {
  display:grid;
  place-items:center;
  min-height:240px;
  padding:30px;
  border:1px dashed rgba(216,178,95,.42);
  border-radius:22px;
  background:linear-gradient(180deg,#07101f,#02040b);
  color:#eaf3ff;
  text-align:center;
  font-family:system-ui,sans-serif;
}
.anima-firmament-editor-placeholder strong { display:block; color:#ffd48a; font-size:20px; margin-bottom:8px; }
.anima-firmament-editor-placeholder span { display:block; color:rgba(225,236,255,.64); font-size:13px; max-width:540px; line-height:1.5; }
.anima-firmament-error { padding:16px; border:1px solid rgba(255,95,95,.35); border-radius:14px; background:rgba(80,0,0,.16); color:#ffd7d7; }

@media(max-width:760px) {
  .anima-firmament-embed { --anima-atlas-height:620px; margin:14px auto; }
  .anima-firmament-stage { min-height:520px; border-radius:20px; }
  .anima-firmament-frame-actions { right:7px; top:7px; }
  .anima-firmament-frame-actions button { padding:7px 9px; font-size:9px; }
  .anima-firmament-launcher { min-height:430px; border-radius:22px; }
  .anima-firmament-launch-note { display:none; }
}
@media(prefers-reduced-motion:reduce) {
  .anima-firmament-launcher::before,
  .anima-firmament-launcher::after,
  .anima-firmament-loading-ring { animation:none; }
}
