:root {
  color-scheme: dark;
  background: #321221;
  color: #fff3e7;
  font-family: Pretendard, -apple-system, "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body, h1, p { margin: 0; }

.cover {
  position: relative;
  isolation: isolate;
  container-type: size;
  height: 100vh;
  height: 100dvh;
  min-height: 15rem;
  overflow: clip;
  background: #321221;
  /* The original landscape plate places its eye window to the right of center. */
  --eye-x: 63.04%;
  --eye-y: 47.13%;
  --plate-width: max(138cqw, 191cqh);
  --eye-half-height: calc(var(--plate-width) * .033);
  --eye-gap: clamp(1rem, 4.25cqh, 3.5rem);
}
.cover-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.cover-art img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: var(--plate-width);
  max-width: none;
  height: auto;
  transform: translate(calc(0% - var(--eye-x)), calc(0% - var(--eye-y)));
}
.cover .cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgb(30 12 27 / .68),
    rgb(31 11 28 / .59) 48%, rgb(25 9 23 / .47) 72%, rgb(24 10 25 / .61));
}
.cover-logo, .cover-content {
  position: absolute;
  left: 50%;
  text-align: center;
}
.cover-logo {
  top: calc(50% - var(--eye-half-height) - var(--eye-gap));
  width: min(81cqw, 145cqh, 72rem);
  transform: translate(-50%, -100%);
}
.cover-logo img { display: block; width: 100%; height: auto; }
.cover-content {
  top: calc(50% + var(--eye-half-height) + var(--eye-gap));
  width: max-content;
  max-width: calc(100% - 1.5rem);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: clamp(1.5rem, 4.5cqh, 3.5rem);
}
.tagline {
  color: #fff3e7;
  font-size: clamp(.95rem, 1.6cqw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .26em;
  text-indent: .26em;
  white-space: nowrap;
}
.cover [data-start-switch] {
  appearance: none;
  display: inline-grid;
  place-items: center;
  min-block-size: max(44px, 1.3em);
  min-inline-size: 0;
  padding: .1em .18em;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: rgb(255 255 255 / 10%);
  font: inherit;
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  --off-visibility: visible;
  --on-visibility: hidden;
}
.cover [data-start-switch] > span { grid-area: 1 / 1; }
.cover [data-start-switch] [data-switch-off] { visibility: var(--off-visibility); }
.cover [data-start-switch] [data-switch-on] {
  visibility: var(--on-visibility);
  color: #a043d9; /* Light violet from the O switch. */
  font-weight: 800;
}
.cover [data-start-switch]:is(:focus-visible, :active, [data-on]) {
  --off-visibility: hidden;
  --on-visibility: visible;
  outline: none;
}
@media (hover: hover) {
  .cover [data-start-switch]:hover { --off-visibility: hidden; --on-visibility: visible; }
}
@media (forced-colors: active) {
  .cover [data-start-switch]:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
}

@media (max-aspect-ratio: 1/1) {
  .cover {
    --eye-x: 48.4%;
    --plate-width: max(106cqw, 81cqh);
    --eye-half-height: calc(var(--plate-width) * .063);
    --eye-gap: clamp(1.25rem, 4.8cqh, 3.75rem);
  }
  .cover-logo { width: min(89cqw, 77cqh, 62rem); }
  .tagline { font-size: clamp(.875rem, 3cqw, 1.18rem); }
}
@media (min-aspect-ratio: 3/1) {
  .cover { --plate-width: 385cqh; --eye-gap: clamp(.55rem, 3.5cqh, 1.7rem); }
  .cover-art img { mask-image: linear-gradient(90deg, transparent, black 18% 83%, transparent); }
}
@media (max-height: 30rem) and (min-aspect-ratio: 1/1) {
  .cover { --eye-gap: .75rem; }
  .cover-logo { width: min(77cqw, 128cqh); }
  .cover-content { gap: .9rem; }
  .cover [data-start-switch] { font-size: clamp(2.5rem, 9.25cqh, 3.5rem); }
}
@media (max-height: 20rem) and (min-aspect-ratio: 1/1) {
  .cover { --eye-gap: .55rem; }
  .cover-content { gap: .55rem; }
}
.cover[data-entry-pane], .cover.entry-on { transition: opacity 1.1s ease; }
.cover.entry-out { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  main.cover .cover-logo img, main.cover .tagline,
  .intro.playing .cover-logo img, .intro.playing .tagline { animation: offtik-enter-fade 1.65s ease-out both; }
  @keyframes offtik-enter-fade { from { opacity: 0; } to { opacity: 1; } }
}
