.frame-showcase { margin-block: clamp(1.75rem, 5vw, 3.5rem); }

.frame-preview {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  min-height: 24rem;
  padding: 1rem clamp(1rem, 5vw, 3.75rem);
  border: 1px solid #294453;
  border-radius: .45rem;
  color: #ecf6fc;
  text-decoration: none;
  --frame-horizon: 67%;
}
.frame-preview-label {
  display: grid;
  justify-items: start;
  gap: .85rem;
  width: 100%;
  container-type: inline-size;
}
.frame-preview-emblem {
  display: grid;
  place-items: center;
  width: clamp(5rem, 11vw, 8rem);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--frame-light, #64baff) 25%, transparent), transparent);
}
.frame-preview-crest {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 .55rem color-mix(in srgb, var(--frame-light, #64baff) 45%, transparent));
}
.frame-preview-title {
  color: #edf6ff;
  font-size: clamp(1.4rem, 12cqw, 4rem);
  font-weight: 850;
  letter-spacing: .025em;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
@supports (background-clip: text) {
  .frame-preview-title {
    background: linear-gradient(175deg, #fcfdff 22%, #c4d1e1 58%, var(--frame-light, #64baff) 100%);
    background-clip: text;
    color: transparent;
  }
}
.frame-preview-action {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding-top: .65rem;
  border-top: 1px solid color-mix(in srgb, var(--frame-light, #64baff) 55%, transparent);
  color: #e0eaf4;
  font-size: .88rem;
}
.frame-preview-arrow {
  width: .46em;
  height: .46em;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
@media (forced-colors: active) {
  .frame-preview-title { background: none; color: LinkText; }
}
.frame-preview-art { width: min(100%, 20rem); height: auto; justify-self: center; }

.frame-preview,
.pr0teus-profile.frame-mode .frame-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #06090d 0%, #10151b 81%, #080c10 100%);
}
.frame-preview::before,
.pr0teus-profile.frame-mode .frame-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 43% 8% at var(--frame-horizon, 50%) 94%, #498ac47a, transparent 96%),
    radial-gradient(ellipse 50% 68% at var(--frame-horizon, 50%) 51%, #284d73, transparent 93%);
  opacity: .55;
}
.frame-preview::after,
.pr0teus-profile.frame-mode .frame-scene::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at var(--frame-horizon, 50%) 44%, #64baff62, transparent 62%);
  opacity: .13;
}
.frame-preview:is(:focus-visible, :active) { border-color: #89ccfa; }
.frame-preview:is(:focus-visible, :active)::before { opacity: 1; }
.frame-preview:focus-visible { outline: 2px solid #a8dcff; outline-offset: 4px; }
.pr0teus-profile.frame-mode .frame-scene { border-color: #4382ad; }
.pr0teus-profile .frame-bay:not([hidden]) .frame-art { animation: none; }
.pr0teus-profile .frame-visor { background: radial-gradient(ellipse, #9bdcff, transparent 70%); }
.pr0teus-profile .frame-chest { background: radial-gradient(ellipse, #70bfff, transparent 70%); }

@media (max-width: 550px) {
  .frame-preview { grid-template-columns: 1fr; min-height: 0; padding: 1.25rem 1rem; --frame-horizon: 50%; }
  .frame-preview-art { grid-row: 1; width: min(82%, 17rem); }
  .frame-preview-label { justify-self: center; justify-items: center; text-align: center; }
}
@media (hover: hover) and (pointer: fine) {
  .frame-preview:hover { border-color: #609bc4; }
  .frame-preview:hover::before { opacity: .94; }
  .frame-preview:is(:hover, :focus-visible) .frame-preview-crest {
    filter: drop-shadow(0 0 .85rem color-mix(in srgb, var(--frame-light, #64baff) 75%, transparent));
  }
}
@media (prefers-reduced-motion: no-preference) {
  .frame-preview::before { transition: opacity .42s ease; }
  .frame-preview::after,
  .pr0teus-profile.frame-mode .frame-scene::after {
    animation: frame-atmosphere 37s ease-in-out infinite;
  }
  .pr0teus-profile.frame-mode .frame-scene::before { animation: frame-recognition .8s ease-out; }
  .pr0teus-profile.frame-mode .profile-info { animation: frame-profile-reveal .55s .18s ease-out both; }
}
@keyframes frame-atmosphere {
  0%, 100% { opacity: .13; }
  23% { opacity: .29; }
  48% { opacity: .18; }
  82% { opacity: .34; }
}
@keyframes frame-recognition {
  0% { opacity: .25; }
  38% { opacity: .95; }
}
@keyframes frame-profile-reveal {
  from { opacity: .55; }
}

.frame-preview::before {
  background:
    radial-gradient(ellipse 43% 8% at var(--frame-horizon, 50%) 94%, color-mix(in srgb, var(--frame-light, #64baff) 50%, transparent), transparent 96%),
    radial-gradient(ellipse 50% 68% at var(--frame-horizon, 50%) 51%, color-mix(in srgb, var(--frame-light, #64baff) 45%, #06101c), transparent 93%);
}
.frame-preview::after {
  background: radial-gradient(ellipse at var(--frame-horizon, 50%) 44%, color-mix(in srgb, var(--frame-light, #64baff) 45%, transparent), transparent 62%);
}
.frame-carousel-controls { display: flex; justify-content: center; gap: .4rem; margin-top: .5rem; }
.frame-carousel-controls[hidden] { display: none; }
.frame-carousel-controls button {
  min-width: 44px;
  min-height: 44px;
  padding-inline: .65rem;
  border: 1px solid #294453;
  border-radius: .25rem;
  color: #d4e9f7;
  background: #10151b;
  cursor: pointer;
}
.frame-carousel-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
