/* ceremony.served.css: the SERVED twin of ceremony.css, comments removed and nothing else (tools/strip-served.mjs). The source keeps the sha pins and the record. */

.ceremony {
  position: relative;
  width: min(82vw, 82vh, 760px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;

}


.ceremony .ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ceremony .ring {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.ceremony .ring svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  opacity: 1;
  scale: 1;
  will-change: transform, opacity;
  transform: none;
}

.ceremony .ring-1 { animation: cer-spin-cw var(--cer-t-ring-spin-mid) var(--cer-ease-linear) infinite; }
.ceremony .ring-2 { animation: cer-spin-ccw var(--cer-t-ring-spin-slow) var(--cer-ease-linear) infinite; }
.ceremony .ring-3 { animation: cer-spin-cw var(--cer-t-ring-spin-fast) var(--cer-ease-linear) infinite; }
.ceremony .ring-4 { animation: cer-spin-ccw var(--cer-t-ring-spin-mid) var(--cer-ease-linear) infinite; }
.ceremony .ring-5 { animation: cer-spin-cw var(--cer-t-ring-spin-slow) var(--cer-ease-linear) infinite; }
.ceremony .ring-6 { animation: cer-spin-ccw var(--cer-t-ring-spin-fast) var(--cer-ease-linear) infinite; }
@keyframes cer-spin-cw  { from { transform: rotate(0); }    to { transform: rotate(360deg); } }
@keyframes cer-spin-ccw { from { transform: rotate(0); }    to { transform: rotate(-360deg); } }

.ceremony .ring circle { transition: stroke var(--cer-t-ring-color), fill var(--cer-t-ring-color); }
.ceremony .ring.captured { animation-play-state: paused; will-change: auto; }
.ceremony .ring-1.captured svg { animation: cer-spin-cw var(--cer-t-ring-spin-captured-a) var(--cer-ease-linear) infinite, cer-ring-entrance var(--cer-t-pop) var(--cer-ease-out) var(--cer-t-stagger-5) both; }
.ceremony .ring-2.captured svg { animation: cer-spin-ccw var(--cer-t-ring-spin-captured-b) var(--cer-ease-linear) infinite, cer-ring-entrance var(--cer-t-pop) var(--cer-ease-out) var(--cer-t-stagger-4) both; }
.ceremony .ring-3.captured svg { animation: cer-spin-cw var(--cer-t-ring-spin-captured-c) var(--cer-ease-linear) infinite, cer-ring-entrance var(--cer-t-pop) var(--cer-ease-out) var(--cer-t-stagger-3) both; }
.ceremony .ring-4.captured svg { animation: cer-spin-ccw var(--cer-t-ring-spin-captured-a) var(--cer-ease-linear) infinite, cer-ring-entrance var(--cer-t-pop) var(--cer-ease-out) var(--cer-t-stagger-2) both; }
.ceremony .ring-5.captured svg { animation: cer-spin-cw var(--cer-t-ring-spin-captured-b) var(--cer-ease-linear) infinite, cer-ring-entrance var(--cer-t-pop) var(--cer-ease-out) var(--cer-t-stagger-1) both; }
.ceremony .ring-6.captured svg { animation: cer-spin-ccw var(--cer-t-ring-spin-captured-c) var(--cer-ease-linear) infinite, cer-ring-entrance var(--cer-t-pop) var(--cer-ease-out) var(--cer-t-stagger-0) both; }

@keyframes cer-ring-entrance {
  0% { opacity: 0; scale: 0.35; }
  100% { opacity: 1; scale: 1; }
}
.ceremony .ring-6 svg { animation: cer-ring-entrance var(--cer-t-pop) var(--cer-ease-out) var(--cer-t-stagger-0) both; }
.ceremony .ring-5 svg { animation: cer-ring-entrance var(--cer-t-pop) var(--cer-ease-out) var(--cer-t-stagger-1) both; }
.ceremony .ring-4 svg { animation: cer-ring-entrance var(--cer-t-pop) var(--cer-ease-out) var(--cer-t-stagger-2) both; }
.ceremony .ring-3 svg { animation: cer-ring-entrance var(--cer-t-pop) var(--cer-ease-out) var(--cer-t-stagger-3) both; }
.ceremony .ring-2 svg { animation: cer-ring-entrance var(--cer-t-pop) var(--cer-ease-out) var(--cer-t-stagger-4) both; }
.ceremony .ring-1 svg { animation: cer-ring-entrance var(--cer-t-pop) var(--cer-ease-out) var(--cer-t-stagger-5) both; }

.ceremony .ring svg.cer-entrance-done {
  animation: none;
  will-change: auto;
  transform: none;
}
.ceremony .ring-1.captured svg.cer-entrance-done { animation: cer-spin-cw var(--cer-t-ring-spin-captured-a) var(--cer-ease-linear) infinite; }
.ceremony .ring-2.captured svg.cer-entrance-done { animation: cer-spin-ccw var(--cer-t-ring-spin-captured-b) var(--cer-ease-linear) infinite; }
.ceremony .ring-3.captured svg.cer-entrance-done { animation: cer-spin-cw var(--cer-t-ring-spin-captured-c) var(--cer-ease-linear) infinite; }
.ceremony .ring-4.captured svg.cer-entrance-done { animation: cer-spin-ccw var(--cer-t-ring-spin-captured-a) var(--cer-ease-linear) infinite; }
.ceremony .ring-5.captured svg.cer-entrance-done { animation: cer-spin-cw var(--cer-t-ring-spin-captured-b) var(--cer-ease-linear) infinite; }
.ceremony .ring-6.captured svg.cer-entrance-done { animation: cer-spin-ccw var(--cer-t-ring-spin-captured-c) var(--cer-ease-linear) infinite; }

@keyframes cer-ring-exit {
  0% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 0.35; }
}
.ceremony .ring.ring-1 svg.cer-exiting { animation: cer-ring-exit var(--cer-t-pop) var(--cer-ease-in) var(--cer-t-stagger-0) both; }
.ceremony .ring.ring-2 svg.cer-exiting { animation: cer-ring-exit var(--cer-t-pop) var(--cer-ease-in) var(--cer-t-stagger-1) both; }
.ceremony .ring.ring-3 svg.cer-exiting { animation: cer-ring-exit var(--cer-t-pop) var(--cer-ease-in) var(--cer-t-stagger-2) both; }
.ceremony .ring.ring-4 svg.cer-exiting { animation: cer-ring-exit var(--cer-t-pop) var(--cer-ease-in) var(--cer-t-stagger-3) both; }
.ceremony .ring.ring-5 svg.cer-exiting { animation: cer-ring-exit var(--cer-t-pop) var(--cer-ease-in) var(--cer-t-stagger-4) both; }
.ceremony .ring.ring-6 svg.cer-exiting { animation: cer-ring-exit var(--cer-t-pop) var(--cer-ease-in) var(--cer-t-stagger-5) both; }
.ceremony .ring.ring-1.captured svg.cer-exiting { animation: cer-spin-cw var(--cer-t-ring-spin-captured-a) var(--cer-ease-linear) infinite, cer-ring-exit var(--cer-t-pop) var(--cer-ease-in) var(--cer-t-stagger-0) both; }
.ceremony .ring.ring-2.captured svg.cer-exiting { animation: cer-spin-ccw var(--cer-t-ring-spin-captured-b) var(--cer-ease-linear) infinite, cer-ring-exit var(--cer-t-pop) var(--cer-ease-in) var(--cer-t-stagger-1) both; }
.ceremony .ring.ring-3.captured svg.cer-exiting { animation: cer-spin-cw var(--cer-t-ring-spin-captured-c) var(--cer-ease-linear) infinite, cer-ring-exit var(--cer-t-pop) var(--cer-ease-in) var(--cer-t-stagger-2) both; }
.ceremony .ring.ring-4.captured svg.cer-exiting { animation: cer-spin-ccw var(--cer-t-ring-spin-captured-a) var(--cer-ease-linear) infinite, cer-ring-exit var(--cer-t-pop) var(--cer-ease-in) var(--cer-t-stagger-3) both; }
.ceremony .ring.ring-5.captured svg.cer-exiting { animation: cer-spin-cw var(--cer-t-ring-spin-captured-b) var(--cer-ease-linear) infinite, cer-ring-exit var(--cer-t-pop) var(--cer-ease-in) var(--cer-t-stagger-4) both; }
.ceremony .ring.ring-6.captured svg.cer-exiting { animation: cer-spin-ccw var(--cer-t-ring-spin-captured-c) var(--cer-ease-linear) infinite, cer-ring-exit var(--cer-t-pop) var(--cer-ease-in) var(--cer-t-stagger-5) both; }
.ceremony .ambient .ring svg.cer-exiting { will-change: transform, opacity; }

.ceremony[data-phase="capturing"] .ring.captured circle,
.ceremony[data-phase="armed"] .ring.captured circle {
  stroke: #e6f2f7;
}
.ceremony[data-phase="capturing"] .ring.captured circle[fill]:not([fill="none"]),
.ceremony[data-phase="armed"] .ring.captured circle[fill]:not([fill="none"]) {
  fill: var(--cer-white-hot);
}
.ceremony[data-phase="igniting"] .ring.captured circle,
.ceremony[data-phase="settled"] .ring.captured circle {
  stroke: var(--cer-gold-hot);
}
.ceremony[data-phase="igniting"] .ring.captured circle[fill]:not([fill="none"]),
.ceremony[data-phase="settled"] .ring.captured circle[fill]:not([fill="none"]) {
  fill: var(--cer-gold-hot);
}


.ceremony .badge {
  position: relative;
  width: 308px;
  height: 308px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 42%, #1c1f27 0%, #14161c 58%, #0e1014 100%);
  border: 1.5px solid var(--cer-border);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.7), 0 0 0px 0px rgba(34, 211, 238, 0);
  filter: brightness(1) saturate(1);
  will-change: filter, box-shadow, transform;
  transition: filter var(--cer-t-badge-glow) var(--cer-ease-out), box-shadow var(--cer-t-badge-glow) var(--cer-ease-out);
  grid-area: 1 / 1;
}

.ceremony[data-rings-captured="1"] .badge {
  filter: brightness(1.09);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.6), inset 0 0 48px rgba(34, 211, 238, 0.17), 0 0 10px 2px rgba(34, 211, 238, 0.1);
}
.ceremony[data-rings-captured="1"] .crest .shield-line { stroke: #525e6b; }
.ceremony[data-rings-captured="1"] .crest .keep { fill: #4b6d7c; }
.ceremony[data-rings-captured="1"] .days { color: #5f7180; }
.ceremony[data-rings-captured="1"] .empire-label { color: #5f7180; }

.ceremony[data-rings-captured="2"] .badge {
  filter: brightness(1.2) saturate(1.08);
  animation: cer-breathe var(--cer-t-breathe) var(--cer-ease-in-out) infinite;
}
.ceremony[data-rings-captured="2"] .crest .shield-line { stroke: #93a9b5; }
.ceremony[data-rings-captured="2"] .crest .keep { fill: #88aebb; }
.ceremony[data-rings-captured="2"] .days { color: #a4bac7; }
.ceremony[data-rings-captured="2"] .empire-label { color: #a4bac7; }
@keyframes cer-breathe {
  0%, 100% {
    box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.55), inset 0 0 54px rgba(34, 211, 238, 0.22), 0 0 14px 3px rgba(34, 211, 238, 0.13);
  }
  50% {
    box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.55), inset 0 0 66px rgba(34, 211, 238, 0.32), 0 0 24px 6px rgba(34, 211, 238, 0.22);
  }
}

.ceremony[data-rings-captured="3"] .badge {
  filter: brightness(1.26) saturate(1.18);
  animation: cer-strain var(--cer-t-strain) var(--cer-ease-in-out) infinite;
}
.ceremony[data-rings-captured="3"] .days {
  color: #e6f5fa;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
}
.ceremony[data-rings-captured="3"] .days::after {
  content: attr(data-value);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #e6f5fa;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.46);
  opacity: 0;
  animation: cer-flicker-glow var(--cer-t-strain) var(--cer-ease-in-out) infinite;
  will-change: opacity;
}
@keyframes cer-flicker-glow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
.ceremony[data-rings-captured="3"] .empire-label {
  color: #e6f5fa;
}
.ceremony[data-rings-captured="3"] .crest .shield-line {
  animation: cer-strain-white-line var(--cer-t-strain) var(--cer-ease-in-out) infinite;
}
.ceremony[data-rings-captured="3"] .crest .keep {
  animation: cer-strain-white-keep var(--cer-t-strain) var(--cer-ease-in-out) infinite;
}
.ceremony[data-rings-captured="3"] .crest svg {
  transform-origin: center;
  animation: cer-strain-swell var(--cer-t-strain) var(--cer-ease-in-out) infinite;
}
@keyframes cer-strain-swell {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.975); }
}
@keyframes cer-strain-white-line {
  0%, 100% { stroke: #c2d9e2; }
  50% { stroke: #ffffff; }
}
@keyframes cer-strain-white-keep {
  0%, 100% { fill: #b7dbe6; }
  50% { fill: #ffffff; }
}
@keyframes cer-strain {
  0%, 100% {
    transform: scale(1);
    box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.5), inset 0 0 74px rgba(34, 211, 238, 0.43), 0 0 30px 8px rgba(34, 211, 238, 0.37);
  }
  50% {
    transform: scale(0.992);
    box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.5), inset 0 0 84px rgba(34, 211, 238, 0.52), 0 0 38px 11px rgba(34, 211, 238, 0.46);
  }
}


.ceremony[data-phase="igniting"] .badge {
  transition: none;
  animation: none;
  transform: none;
  border-color: var(--cer-gold-hot);
  filter: brightness(1.32) saturate(1.42);
  box-shadow:
    inset 0 0 70px rgba(34, 211, 238, 0.26),
    0 0 52px 15px rgba(34, 211, 238, 0.45),
    0 0 150px 48px rgba(34, 211, 238, 0.20);
}
.ceremony[data-phase="igniting"] .crest .shield-line { transition: none; animation: none; stroke: #dec08a; }
.ceremony[data-phase="igniting"] .crest .keep { transition: none; animation: none; fill: #24cce6; }
.ceremony[data-phase="igniting"] .days {
  transition: none;
  animation: none;
  color: #a9e2f0;
  text-shadow: 0 0 9px rgba(103, 232, 249, 0.52), 0 0 22px rgba(34, 211, 238, 0.3);
}
.ceremony[data-phase="igniting"] .days::after { content: none; }
.ceremony[data-phase="igniting"] .empire-label { transition: none; color: #bff4ff; }

.ceremony[data-phase="igniting"] .crest svg,
.ceremony[data-phase="settled"] .crest svg {
  animation: none;
  transform: none;
}

.ceremony[data-phase="settled"] .badge {
  transition: filter var(--cer-t-bloom-filter) var(--cer-ease-out), box-shadow var(--cer-t-bloom-shadow) var(--cer-ease-out);
  animation: none;
  transform: none;
  border-color: var(--cer-gold-hot);
  filter: brightness(1.32) saturate(1.42);
  animation: cer-aura-cycle var(--cer-t-cycle) var(--cer-ease-in-out) var(--cer-t-cycle-delay) infinite;
}
@keyframes cer-aura-cycle {
  0% {
    animation-timing-function: var(--cer-ease-bloom-rise);
    box-shadow: inset 0 0 70px rgba(34, 211, 238, 0.34), 0 0 64px 20px rgba(34, 211, 238, 0.6), 0 0 180px 60px rgba(34, 211, 238, 0.3);
  }
  88% {
    animation-timing-function: var(--cer-ease-bloom-fall);
    box-shadow: inset 0 0 70px rgba(34, 211, 238, 0.26), 0 0 52px 15px rgba(34, 211, 238, 0.45), 0 0 150px 48px rgba(34, 211, 238, 0.20);
  }
  100% {
    box-shadow: inset 0 0 70px rgba(34, 211, 238, 0.34), 0 0 64px 20px rgba(34, 211, 238, 0.6), 0 0 180px 60px rgba(34, 211, 238, 0.3);
  }
}

.ceremony[data-phase="settled"] .crest .shield-line {
  animation: none;
  stroke: #ffd966;
}
.ceremony[data-phase="settled"] .crest .keep {
  animation: none;
  fill: #3de8ff;
}
.ceremony[data-phase="igniting"] .crest::before,
.ceremony[data-phase="settled"] .crest::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22.72px;
  width: 88px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(61, 232, 255, 0.34) 0%, rgba(34, 211, 238, 0.14) 45%, transparent 70%);
  opacity: 0.5;
}
.ceremony[data-phase="igniting"] .crest::after,
.ceremony[data-phase="settled"] .crest::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 65.84px;
  width: 146px;
  height: 162px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 217, 102, 0.16) 0%, rgba(232, 201, 138, 0.06) 55%, transparent 74%);
  opacity: 0.5;
}
.ceremony[data-phase="settled"] .crest::before,
.ceremony[data-phase="settled"] .crest::after {
  animation: cer-halo-cycle var(--cer-t-cycle) var(--cer-ease-in-out) var(--cer-t-cycle-delay) infinite;
}
@keyframes cer-halo-cycle {
  0% { animation-timing-function: var(--cer-ease-bloom-rise); opacity: 1; }
  88% { animation-timing-function: var(--cer-ease-bloom-fall); opacity: 0.5; }
  100% { opacity: 1; }
}
.ceremony[data-phase="settled"] .days {
  color: #a9e2f0;
  text-shadow: 0 0 9px rgba(103, 232, 249, 0.52), 0 0 22px rgba(34, 211, 238, 0.3);
}
.ceremony[data-phase="settled"] .days::after {
  content: attr(data-value);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #eafdff;
  text-shadow: 0 0 16px rgba(103, 232, 249, 0.95), 0 0 42px rgba(34, 211, 238, 0.6);
  opacity: 0;
  animation: cer-days-cycle-glow var(--cer-t-cycle) var(--cer-ease-in-out) var(--cer-t-cycle-delay) infinite;
  will-change: opacity;
}
@keyframes cer-days-cycle-glow {
  0% { animation-timing-function: var(--cer-ease-bloom-rise); opacity: 1; }
  88% { animation-timing-function: var(--cer-ease-bloom-fall); opacity: 0; }
  100% { opacity: 1; }
}
.ceremony[data-phase="settled"] .empire-label { color: #9beffb; }

.ceremony .badge .wave {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(103, 232, 249, 0.55);
  pointer-events: none;
  opacity: 0;
}
.ceremony[data-phase="settled"] .badge .wave { animation: cer-radiate var(--cer-t-radiate) var(--cer-ease-out) infinite; }
.ceremony[data-phase="settled"] .badge .wave:nth-of-type(1) { animation-delay: var(--cer-t-radiate-delay-1); }
.ceremony[data-phase="settled"] .badge .wave:nth-of-type(2) { animation-delay: var(--cer-t-radiate-delay-2); }
.ceremony[data-phase="settled"] .badge .wave:nth-of-type(3) { animation-delay: var(--cer-t-radiate-delay-3); }
@keyframes cer-radiate {
  0% { transform: scale(1); opacity: 0.55; }
  33% { transform: scale(1.26); opacity: 0.3; }
  67% { transform: scale(1.5); opacity: 0.1; }
  83%, 100% { transform: scale(1.66); opacity: 0; }
}


.ceremony .crest {
  position: relative;
  top: 22px;
  width: 106.26px;
  height: 188px;
  display: block;
  grid-area: 1 / 1;
}
.ceremony .crest svg {
  position: absolute;
  top: -2px;
  left: calc((100% - 132px) / 2);
  width: 132px;
  height: 148px;
  display: block;
}
.ceremony .crest .shield-line { stroke: #3a3f4c; stroke-width: 4.5; transition: stroke var(--cer-t-tier-color); }
.ceremony .crest .keep { fill: #2a2f3a; transition: fill var(--cer-t-tier-color); }

.ceremony .days {
  position: absolute;
  top: 75.08px;
  left: 50%;
  transform: translate(-50%, 0) translateZ(0);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #3d4250;
  margin: 0;
  text-shadow: none;
  transition: color var(--cer-t-tier-color), text-shadow var(--cer-t-tier-color);
  font-variant-numeric: tabular-nums;
}

.ceremony .empire-label {
  position: absolute;
  top: 162px;
  left: 50%;
  height: 26px;
  line-height: 13px;
  text-align: center;
  transform: translate(-50%, 0) translateZ(0);
  font-size: 11px;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  white-space: nowrap;
  color: #565b72;
  text-transform: uppercase;
  transition: color var(--cer-t-tier-color);
  pointer-events: none;
}
.ceremony .empire-label .cap-line { display: block; }

.ceremony .lockout-label:empty { display: none; }
.ceremony .lockout-label {
  position: absolute;
  bottom: 23px;
  left: 50%;
  transform: translate(-50%, 0) translateZ(0);
  font-size: 9px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: #4a4f5f;
  pointer-events: none;
}
.ceremony .lockout-label--protected { color: var(--cer-gold); }

.ceremony .empire-label[data-caption="launch"] .cap-line:first-child {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
}
.ceremony .lockout-label--trail {
  letter-spacing: 0.46em;
  padding-left: 0.46em;
  color: #565b72;
}
.ceremony[data-rings-captured="1"] .lockout-label--trail { color: #5f7180; }
.ceremony[data-rings-captured="2"] .lockout-label--trail { color: #a4bac7; }
.ceremony[data-rings-captured="3"] .lockout-label--trail { color: #e6f5fa; }
.ceremony[data-phase="igniting"] .lockout-label--trail { color: #bff4ff; }
.ceremony[data-phase="settled"] .lockout-label--trail { color: #9beffb; }
.ceremony .trail-mark { opacity: 0.32; }
.ceremony .trail-mark:first-child { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .ceremony .lockout-label--beat .trail-mark { animation: cer-trail-mark var(--cer-t-trail-cycle) var(--cer-ease-step) infinite; }
  .ceremony .lockout-label--beat .trail-mark:nth-child(2) { animation-delay: var(--cer-t-trail-step-1); }
  .ceremony .lockout-label--beat .trail-mark:nth-child(3) { animation-delay: var(--cer-t-trail-step-2); }
}
@keyframes cer-trail-mark {
  0% { opacity: 1; }
  33.333% { opacity: 0.32; }
  100% { opacity: 0.32; }
}
@media (prefers-reduced-motion: no-preference) {
  .ceremony .empire-label[data-caption-in] { animation: cer-caption-in var(--cer-t-caption-fade) var(--cer-ease-out) both; }
}
@keyframes cer-caption-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

body[data-badge-size="small"] .ceremony .empire-label,
body[data-badge-size="small"] .ceremony .lockout-label,
body[data-badge-size="small"] .ceremony .socket .tag,
body[data-badge-size="small"] .ceremony .days {
  display: none;
}

body[data-badge-size="small"] .ceremony .crest {
  top: 0;
  height: 144px;
}

body[data-badge-size="small"] .ceremony .cer-break-seal {
  width: 21px;
  height: 21px;
  font-size: 12px;
  bottom: 12px;
}

body[data-badge-size="small"] .ceremony .crest .keep {
  transform: translate(2px, 0);
}


.ceremony .cer-break-seal {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translate(-50%, 0) translateZ(0);
  overflow: hidden;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid #4a4f5f;
  border-radius: 50%;
  background: transparent;
  color: #6a7080;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
}
.ceremony .cer-break-seal:hover,
.ceremony .cer-break-seal.pressed {
  color: var(--forge-vulnerable, #e05260);
  border-color: var(--forge-vulnerable, #e05260);
}
.cer-break-seal-fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--forge-vulnerable, #e05260) calc(var(--unlock-hold-fraction, 0) * 1turn),
    transparent 0
  );
  opacity: 0.6;
  pointer-events: none;
}
.cer-break-seal-glyph {
  position: relative;
  z-index: 1;
}

.cer-break-seal-caption {
  position: absolute;
  bottom: -32px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: calc(9px * var(--forge-font-scale, 1));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--forge-text);
  opacity: 0;
  transition: opacity var(--cer-t-caption-fade) ease;
  pointer-events: none;
}
.cer-break-seal-caption-sab {
  color: var(--forge-vulnerable, #e05260);
  font-weight: 600;
}
.ceremony:has(.cer-break-seal:hover) .cer-break-seal-caption,
.ceremony:has(.cer-break-seal:focus-visible) .cer-break-seal-caption,
.ceremony:has(.cer-break-seal:active) .cer-break-seal-caption {
  opacity: 0.85;
}
body[data-badge-size="small"] .ceremony .cer-break-seal-caption {
  font-size: calc(12px * var(--forge-font-scale, 1));
  bottom: -33.3px;
}

.ceremony .sparks { position: absolute; inset: 0; pointer-events: none; }
.ceremony .spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cer-cyan-soft);
  opacity: 0;
  pointer-events: none;
  filter: blur(0.4px);
}


.ceremony .crest {
  pointer-events: none;
}
.ceremony .crest svg,
.ceremony .crest .days {
  pointer-events: auto;
  cursor: pointer;
}


.ceremony .sockets { position: absolute; inset: 0; pointer-events: none; }
.ceremony .socket[data-socket="1"] { left: calc(50% - 35%); top: calc(50% + 40%); transform: translate(-50%, -50%); }
.ceremony .socket[data-socket="2"] { left: calc(50% + 35%); top: calc(50% + 40%); transform: translate(-50%, -50%); }
.ceremony .socket {
  position: absolute;
  width: 74px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, #171a21 0%, #101318 70%);
  border: 1.5px solid #3b3325;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
  padding: 0;
  pointer-events: auto;
  appearance: none;
  font: inherit;
  cursor: pointer;
}
.ceremony .socket.lit {
  transition: none;
  border-color: var(--cer-gold-hot);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.4), 0 0 22px 4px rgba(34, 211, 238, 0.5);
}
.ceremony .socket.lit::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(240, 254, 255, 0.85) 0%, rgba(34, 211, 238, 0.55) 38%, rgba(14, 116, 144, 0.25) 75%, transparent 100%);
  animation: cer-socket-fill var(--cer-t-socket-fill) var(--cer-ease-out) forwards;
}
@keyframes cer-socket-fill {
  0% { opacity: 0; transform: scale(0.6); }
  45% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.85; transform: scale(1); }
}
.ceremony .socket .glyph {
  position: relative;
  z-index: 1;
  transform: translateZ(0);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #3d4250;
  transition: none;
}
.ceremony .socket.lit .glyph {
  color: #083344;
  opacity: 0;
  animation: cer-glyph-reveal var(--cer-t-glyph-reveal) var(--cer-ease-out) var(--cer-t-glyph-reveal-delay) forwards;
}
@keyframes cer-glyph-reveal { from { opacity: 0; } to { opacity: 1; } }
.ceremony .socket .tag {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  translate: -50% 0;
  transform: translateZ(0);
  white-space: nowrap;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: #565b72;
  text-transform: uppercase;
}
.ceremony .socket.lit .tag { color: #7fdcec; }

body[data-crest-only="true"][data-glyph-detail="held"] .ceremony .socket.lit {
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.4);
}
body[data-crest-only="true"][data-glyph-detail="held"] .ceremony .socket.lit::after,
body[data-crest-only="true"][data-glyph-detail="held"] .ceremony .socket .glyph,
body[data-crest-only="true"][data-glyph-detail="held"] .ceremony .socket .tag {
  opacity: 0;
  animation: none;
}
@keyframes cer-glyph-detail-pop {
  0% { opacity: 0; scale: 0.35; }
  100% { opacity: 1; scale: 1; }
}
@keyframes cer-socket-glow-pop {
  0% { box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.4); }
  100% { box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.4), 0 0 22px 4px rgba(34, 211, 238, 0.5); }
}
body[data-crest-only="true"][data-glyph-detail="popping"] .ceremony .socket.lit {
  animation: cer-socket-glow-pop var(--cer-t-pop) var(--cer-ease-out) both;
}
body[data-crest-only="true"][data-glyph-detail="popping"] .ceremony .socket .glyph,
body[data-crest-only="true"][data-glyph-detail="popping"] .ceremony .socket .tag {
  animation: cer-glyph-detail-pop var(--cer-t-pop) var(--cer-ease-out) both;
}
body[data-crest-only="true"][data-glyph-detail="popping"] .ceremony .socket.lit::after {
  animation: cer-socket-fill var(--cer-t-socket-fill) var(--cer-ease-out) forwards;
}


.ceremony .terms-panel {
  position: absolute;
  z-index: 2;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, 78%);
  padding: 10px 14px 12px;
  color: var(--cer-ink);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.6);
}
.ceremony .terms-title { color: var(--cer-gold-dim); }
.ceremony .cap-segment { color: var(--cer-ink); }
.ceremony .terms-panel button.interactive {
  color: var(--cer-ink);
  background: rgba(20, 22, 27, 0.55);
  border-color: var(--cer-border);
}
.ceremony .terms-panel .field {
  color: var(--cer-ink);
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--cer-border);
}
.ceremony .terms-confirm {
  color: var(--cer-gold);
  background: rgba(232, 201, 138, 0.14);
  border-color: var(--cer-gold-dim);
}
.ceremony .door-edit-rejected {
  color: var(--cer-ink);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.6);
}

body[data-crest-only="true"] .ceremony .ambient,
body[data-crest-only="true"] .ceremony .sockets,
body[data-crest-only="true"] .ceremony .terms-panel {
  display: none;
}
body[data-crest-only="true"][data-phase2-rings="true"] .ceremony .ambient,
body[data-crest-only="true"][data-rings-hiding="true"] .ceremony .ambient {
  display: block;
}
body[data-crest-only="true"][data-phase2-rings="true"] .ceremony .sockets {
  display: block;
}
body[data-crest-only="true"]:not([data-phase2-rings="true"]):not([data-rings-hiding="true"]) .ceremony .badge {
  background: none;
  border: none;
  box-shadow: none;
  animation: none;
  transition: none;
  transform: none;
}
@keyframes cer-badge-orb-entrance {
  0% { opacity: 0; scale: 0.35; }
  100% { opacity: 1; scale: 1; }
}
@keyframes cer-badge-orb-exit {
  0% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 0.35; }
}
body[data-crest-only="true"] .ceremony .badge.cer-orb-entrance-pending {
  opacity: 0;
  scale: 0.35;
  animation: none;
  transition: none;
}
body[data-crest-only="true"] .ceremony .badge.cer-orb-entering {
  animation: cer-badge-orb-entrance var(--cer-t-pop) var(--cer-ease-out) both;
}
body[data-crest-only="true"] .ceremony .badge.cer-orb-exiting {
  animation: cer-badge-orb-exit var(--cer-t-pop) var(--cer-ease-in) both;
}
body[data-crest-only="true"]:not([data-phase2-rings="true"]) .ceremony .badge .wave {
  display: none;
}
body[data-crest-only="true"]:not([data-phase2-rings="true"]) .ceremony .crest::before,
body[data-crest-only="true"]:not([data-phase2-rings="true"]) .ceremony .crest::after {
  animation: none;
  opacity: 0;
}
body[data-crest-only="true"]:not([data-phase2-rings="true"]) .ceremony .days::after {
  animation: none;
  opacity: 0;
}
body[data-crest-only="true"]:not([data-phase2-rings="true"]) .ceremony[data-phase="settled"] .days {
  color: #eafdff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.crest[data-badge-counts-stale="true"] .days,
.crest[data-badge-counts-stale="true"] .empire-label {
  color: #5f7180;
}
.crest[data-badge-counts-stale="true"] .days::after {
  animation: none;
  opacity: 0;
}
