:root {
  color-scheme: dark;
  background: #030609;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #030609;
}

main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
}

.crest {
  position: relative;
  width: min(44vmin, 20rem);
  isolation: isolate;
}

.crest::before {
  position: absolute;
  z-index: -1;
  inset: -24% -45%;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgb(27 76 76 / 31%) 0%, rgb(16 50 53 / 15%) 44%, transparent 74%);
}

.crest img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: inset(1.8% 2.5%);
  user-select: none;
  -webkit-user-select: none;
}

.crest::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  clip-path: inset(1.8% 2.5%);
  -webkit-mask: url("assets/zenit-original.png") center / 100% 100% no-repeat;
  mask: url("assets/zenit-original.png") center / 100% 100% no-repeat;
  background: linear-gradient(112deg, transparent 44%, rgb(255 218 161 / 8%) 48%, rgb(255 235 189 / 24%) 50%, rgb(255 221 165 / 9%) 52%, transparent 56%) 100% 0 / 320% 100% no-repeat;
  mix-blend-mode: screen;
  animation: glint 24s ease-in-out infinite;
}

@keyframes glint {
  0%, 7% { background-position: 100% 0; }
  31%, 100% { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .crest::after { content: none; }
}
