@font-face {
  font-family: "Headliner";
  src: url("../fonts%20/HeadlinerNo.45%20DEMO.ttf") format("truetype");
  font-display: swap;
}

:root {
  --yellow: #f6ea00;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Headliner", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  background: #060035;
  overflow: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

.poster {
  height: 100dvh;
  padding: clamp(1rem, 2.2vh, 2.2rem) clamp(1.2rem, 3vw, 3.6rem) clamp(1rem, 2.2vh, 2rem);
  background: url("../background.png") center center / 100% 100% no-repeat;
  overflow: hidden;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.8rem, 1.5vw, 1.5rem);
}

.logo-link {
  display: block;
}

.logo-mark {
  width: min(100%, 300px);
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 2.25rem);
  text-align: center;
}

.main-nav a,
.register-button {
  color: var(--yellow);
  font-size: clamp(0.95rem, 1.85vw, 1.9rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.main-nav a:hover,
.register-button:hover,
.logo-link:hover {
  opacity: 0.85;
}

.main-nav .is-active {
  color: #ffffff;
}

.register-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.35rem 1rem 0.2rem;
  background: var(--yellow);
  color: #060035;
}

.schedule-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.25rem, 1vw, 1.5rem);
  height: calc(100dvh - clamp(8rem, 14vh, 11rem));
  margin-top: clamp(1rem, 2.4vh, 2rem);
}

.schedule-viewport {
  overflow: hidden;
}

.schedule-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 26vw);
  gap: clamp(0.8rem, 1.4vw, 2rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 0.2rem;
}

.schedule-track::-webkit-scrollbar {
  display: none;
}

.schedule-card {
  border: 2px solid var(--yellow);
  padding: 0;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.22);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.schedule-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-arrow {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.8rem;
  width: min(92vw, 1440px);
  height: min(92vh, 920px);
}

.lightbox-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 0;
}

.lightbox-figure {
  margin: 0;
  min-height: 0;
  height: 100%;
}

.lightbox-canvas {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.lightbox-figure img {
  display: block;
  max-width: min(100%, 1100px);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-nav,
.lightbox-close,
.lightbox-download {
  border: 0;
  color: #ffffff;
  cursor: pointer;
}

.lightbox-nav {
  font-size: clamp(2rem, 3vw, 3rem);
  padding: 0.35rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2.5rem;
}

.lightbox-download {
  position: absolute;
  top: 1.3rem;
  right: 4.5rem;
  padding: 0.55rem 0.9rem 0.4rem;
  background: rgba(246, 234, 0, 0.95);
  color: #060035;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
}

.lightbox-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 12vw);
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
}

.lightbox-thumb {
  border: 2px solid transparent;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.lightbox-thumb.is-active {
  border-color: var(--yellow);
}

.lightbox-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (max-width: 1300px) {
  body {
    overflow: auto;
  }

  .poster {
    height: auto;
    min-height: 100vh;
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .schedule-stage {
    grid-template-columns: 1fr;
    height: auto;
  }

  .stage-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .poster {
    padding: 1rem 1rem 1.25rem;
    background: url("../background.png") center center / cover no-repeat;
  }

  .logo-mark {
    width: min(100%, 240px);
  }

  .main-nav a,
  .register-button {
    font-size: 1.1rem;
  }

  .register-button {
    min-height: 2.6rem;
    padding: 0.25rem 0.8rem 0.15rem;
  }

  .schedule-stage {
    margin-top: 1rem;
  }

  .schedule-track {
    grid-auto-columns: minmax(180px, 58vw);
    gap: 0.65rem;
  }

  .lightbox {
    padding: 0.75rem;
  }

  .lightbox-shell {
    width: 100%;
    height: 94vh;
  }

  .lightbox-main {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 0.15rem;
  }

  .lightbox-next {
    right: 0.15rem;
  }

  .lightbox-download {
    right: 3.5rem;
    font-size: 0.85rem;
  }

  .lightbox-strip {
    grid-auto-columns: minmax(90px, 28vw);
    gap: 0.5rem;
  }
}
