@font-face {
  font-family: "Cera Pro";
  src: url("../fonts/cerapro_bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #d4004b;
  -webkit-text-size-adjust: 100%;
}

.page {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #d4004b;
  display: grid;
  place-items: center;
}

/* Desktop 1920×1080 — contain into any viewport, no scroll */
.stage {
  --w: 1920;
  --h: 1080;
  position: relative;
  width: min(100vw, calc(100dvh * var(--w) / var(--h)));
  height: min(100dvh, calc(100vw * var(--h) / var(--w)));
  max-width: 100vw;
  max-height: 100dvh;
  container-type: size;
  container-name: stage;
}

.stage--art {
  z-index: 1;
  background: #d4004b;
  grid-area: 1 / 1;
}

.stage--ui {
  z-index: 3;
  grid-area: 1 / 1;
  pointer-events: none;
  background: transparent;
}

.stage__art,
.stage__art img,
.lineup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.lineup {
  z-index: 1;
}

/* Full-viewport gradient between art and button */
.page__gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page__gradient img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* Grid overlay — button cell matches Figma (116,771 / 449×106) */
.stage__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 116fr 449fr 1355fr;
  grid-template-rows: 771fr 106fr 203fr;
}

.btn {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-family: "Cera Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 3.9cqh;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  filter: brightness(0.96);
  transform: scale(1.02);
}

.btn:active {
  transform: scale(0.985);
}

.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

/* KV photo — desktop only, 1180px @ 1920 stage width */
.kv {
  position: absolute;
  z-index: 1;
  left: calc(1125 / 1920 * 100%);
  top: calc(108 / 1080 * 100%);
  width: calc(1180 / 1920 * 100%);
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 767px) {
  .stage {
    --w: 375;
    --h: 819;
  }

  /* Mobile button cell (71.5,732 / 232×50) */
  .stage__grid {
    grid-template-columns: 71.5fr 232fr 71.5fr;
    grid-template-rows: 732fr 50fr 37fr;
  }

  .btn {
    font-size: 2.7cqh;
  }

  .kv,
  .lineup {
    display: none;
  }
}

@supports not (height: 100dvh) {
  .page {
    height: 100vh;
  }

  .stage {
    width: min(100vw, calc(100vh * var(--w) / var(--h)));
    height: min(100vh, calc(100vw * var(--h) / var(--w)));
    max-height: 100vh;
  }
}