.awakening {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #93744e;
  border-radius: 8px;
  background: #18151f;
  box-shadow: 0 22px 64px #100a1780;
}

.relic-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  height: clamp(250px, 29vw, 360px);
  overflow: hidden;
  background:
    linear-gradient(0deg, #14101ad9, transparent 45%),
    radial-gradient(ellipse at center, #66487699, transparent 65%),
    linear-gradient(#15132a85, #13112699),
    url(media/cairo.webp) center 58% / cover;
}

.orbit, .relic-flare, .relic, .awakened-art {
  grid-area: 1 / 1;
}

.orbit {
  position: relative;
  height: 77%;
  aspect-ratio: 1;
  border: 1px solid #eac68988;
  border-radius: 50%;
  box-shadow: 0 0 0 6px #21172588, inset 0 0 0 9px #221c3077, 0 0 0 7px #ddba7744;
}

.orbit::before, .orbit::after {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px dashed #b9975d77;
  border-radius: 50%;
  animation: orbit-turn 60s linear infinite;
}

.orbit::after {
  inset: 0;
  border: 2px solid transparent;
  border-top-color: #ffe7a3;
  animation-duration: 19s;
  filter: drop-shadow(0 0 4px #ffcb79);
}

.relic, .awakened-art {
  position: relative;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px #0b081c) drop-shadow(0 0 16px #d9a34950);
}

.relic {
  width: 48%;
  height: 66%;
  animation: hover-relic 4s ease-in-out infinite;
}

.awakened-art {
  width: 91%;
  height: 86%;
}

.awakened-art[hidden], .relic-link[hidden] {
  display: none;
}

.relic-desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem 1rem;
  min-height: 118px;
  padding: 1rem 1.25rem;
  border-top: 1px solid #795f4d;
  overflow-wrap: anywhere;
}

.relic-user { color: #e9c68d }
.relic-name { font-size: clamp(1.65rem, 3vw, 2.4rem); margin: .12em 0 }
.relic-link { font-size: .86rem; text-decoration: underline; color: #e4d2f7 }

.relic-desk button {
  min-width: 10.4rem;
  justify-self: start;
}

.relic-flare {
  height: 58%;
  aspect-ratio: 1;
  border: 2px solid #ffdf94;
  border-radius: 50%;
  opacity: 0;
}

[data-phase="strike"] .relic { animation: relic-strike .48s ease-in both }
[data-phase="strike"] .awakened-art, [data-phase="reveal"] .relic { visibility: hidden }
[data-phase="reveal"] .awakened-art { animation: relic-appear .42s ease-out both }
[data-phase="reveal"] .relic-flare { animation: relic-radiate .68s ease-out both }

@keyframes orbit-turn { to { transform: rotate(360deg) } }
@keyframes hover-relic { 50% { transform: translateY(-9px) rotate(3deg) } }
@keyframes relic-strike {
  45% { transform: translateY(-20px) }
  to { transform: translateY(36px) scale(.75); opacity: 0 }
}
@keyframes relic-appear {
  from { opacity: 0; transform: translateY(9px) scale(.96) }
  to { opacity: 1; transform: none }
}
@keyframes relic-radiate {
  from { opacity: .8; transform: scale(.4) }
  to { opacity: 0; transform: scale(2.6) }
}

.radio-track { display: block; width: 100%; margin-top: 1rem }

@media (max-width: 760px) {
  .cairo-layout { grid-template-columns: 1fr; gap: 1.4rem }
}

@media (max-width: 520px), (min-width: 761px) and (max-width: 940px) {
  .relic-desk { grid-template-columns: 1fr }
}

@media (prefers-reduced-motion: reduce) {
  .awakening *, .awakening ::before, .awakening ::after { animation: none !important }
}
