@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --black: #050505;
  --black-soft: #0b0b0b;
  --yellow: #ffd400;
  --yellow-hover: #ffe457;
  --white: #ffffff;
  --muted: #a9a9a9;
  --line: rgba(255, 212, 0, 0.34);
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body.tour-page {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow-x: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  color: var(--white);
  background:
    radial-gradient(circle at 23% 14%, rgba(255, 212, 0, 0.125), transparent 30rem),
    radial-gradient(circle at 80% 38%, rgba(255, 212, 0, 0.125), transparent 30rem),
    radial-gradient(circle at 50% 100%, rgba(255, 212, 0, 0.125), transparent 28rem),
    var(--black);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.tour-page main {
  min-height: 0;
}

.tour-page *,
.tour-page *::before,
.tour-page *::after {
  box-sizing: border-box;
}

.tour-page a {
  color: inherit;
  text-decoration: none;
}

.tour-page a:hover,
.tour-page a:focus {
  opacity: 1;
}

.tour-page button,
.tour-page a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.tour-hero {
  width: min(100%, 1920px);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visual-stage {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}

.tour-art {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.tour-art--title {
  z-index: 2;
  top: clamp(0.75rem, 2.5vh, 2rem);
  left: 50%;
  width: min(92%, calc((100svh - 7.75rem) * 0.783), 64rem);
  height: auto;
  max-width: none;
  transform: translateX(-50%);
}

.tour-art--john {
  z-index: 3;
  left: 50%;
  bottom: 3.3rem;
  width: min(110%, calc((100svh - 7.75rem) * 0.645), 59rem);
  height: auto;
  max-width: none;
  transform: translateX(-50%);
}

.hero-social {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transform: translateX(-50%);
}

.hero-social a {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: transparent;
  border: 0;
  transition: color 160ms ease, transform 160ms ease;
}

.hero-social a:hover {
  color: var(--yellow);
  transform: translateY(-2px);
}

.hero-social svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}

.tour-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  padding: clamp(0.85rem, 2.2vh, 1.75rem) clamp(2.5rem, 5vw, 6.5rem) clamp(0.85rem, 2.2vh, 1.75rem) clamp(2rem, 3.8vw, 4.6rem);
  background: transparent;
}

.tour-kicker {
  grid-row: 1;
  margin: 0 0 clamp(0.35rem, 1vh, 0.75rem);
  color: var(--white);
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.52em;
  text-transform: uppercase;
}

.tour-list {
  --separator-position: max(10rem, 30%);
  position: relative;
  grid-row: 2;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: repeat(var(--tour-date-count, 7), minmax(0, 1fr));
  row-gap: clamp(0.15rem, 0.65vh, 0.45rem);
  list-style: none;
}

.tour-list::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: var(--separator-position);
  width: 3px;
  background: var(--yellow);
  transform: translateX(-3px);
}

.tour-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--separator-position) 1fr;
  align-items: center;
  min-height: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  font-size: clamp(2.9rem, 4.05vw, 5rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1;
  text-transform: uppercase;
}

.tour-row time {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-right: clamp(1rem, 2vw, 2.1rem);
  color: var(--yellow);
  white-space: nowrap;
}

.tour-row__details {
  align-self: stretch;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(0.55rem, 1vw, 1.1rem);
  padding-left: clamp(1.2rem, 2.5vw, 2.8rem);
}

.tour-row__city {
  min-width: 0;
  display: flex !important;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.tour-row__city {
  transition: color 160ms ease, transform 160ms ease;
}

a.tour-row__city:hover,
a.tour-row__city:focus-visible {
  color: var(--yellow);
  transform: translateX(0.2rem);
}

.tour-row__ticket {
  justify-self: end;
  min-height: 2rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  color: var(--black) !important;
  background: var(--yellow);
  border: 2px solid var(--yellow);
  border-radius: 0.2rem;
  font: 800 clamp(0.64rem, 0.72vw, 0.78rem)/1 Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.tour-row__ticket:hover,
.tour-row__ticket:focus-visible {
  background: var(--yellow-hover);
  border-color: var(--yellow-hover);
  transform: translateY(-1px);
}

.tour-list__error {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-align: center;
  text-transform: none;
}

.tour-actions {
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 2.5rem);
  margin-top: clamp(0.8rem, 2vh, 1.5rem);
  padding-top: clamp(0.8rem, 2vh, 1.5rem);
  border-top: 0;
}

.tour-button {
  min-height: clamp(3.2rem, 6vh, 4rem);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  border: 2px solid var(--yellow);
  border-radius: 0.25rem;
  color: var(--black) !important;
  background: var(--yellow);
  box-shadow: 0 0 0 rgba(255, 212, 0, 0);
  font: 800 clamp(1rem, 1.5vw, 1.55rem)/1 "Inter", Arial, sans-serif;
  letter-spacing: -0.03em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.tour-button:hover,
.tour-button:focus-visible {
  background: var(--yellow-hover);
  box-shadow: 0 0 2rem rgba(255, 212, 0, 0.2);
  transform: translateY(-2px);
}

.tour-button:focus-visible,
.tour-row__ticket:focus-visible,
.hero-social a:focus-visible,
.footer-contact a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 5px;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.35rem clamp(0.9rem, 1.6vw, 1.8rem);
  margin: clamp(0.5rem, 1vh, 0.75rem) 0;
  text-align: center;
}

.footer-contact__label {
  color: var(--muted);
  font-size: clamp(0.65rem, 0.78vw, 0.78rem);
  font-weight: 400;
  white-space: nowrap;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: clamp(0.65rem, 0.78vw, 0.78rem);
  font-weight: 800;
  white-space: nowrap;
  transition: color 160ms ease;
}

.footer-contact a:hover {
  color: var(--yellow);
}

.footer-contact svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: var(--yellow);
}

.site-footer {
  border-top: 0;
  background: transparent;
}

.site-footer__inner {
  width: min(calc(100% - 3rem), 1680px);
  margin: 0 auto;
  padding: 0.55rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem clamp(1.2rem, 3vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer nav a {
  position: relative;
  display: inline-flex;
  color: #bdbdbd;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.site-footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.45rem;
  height: 2px;
  background: var(--yellow);
  transition: right 160ms ease;
}

.site-footer nav a:hover {
  color: var(--white);
}

.site-footer nav a:hover::after {
  right: 0;
}

.endgame-logo {
  width: clamp(7.5rem, 9vw, 9rem);
  display: inline-flex;
  flex: 0 0 auto;
}

.endgame-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Keep the cookie manager aligned with the new tour palette. */
.klaro .cookie-notice,
.klaro .cookie-modal .cm-modal {
  color: var(--white) !important;
  background: #111 !important;
  border: 1px solid var(--line) !important;
}

.klaro .cm-btn-success,
.klaro .cm-btn-info {
  color: var(--black) !important;
  background: var(--yellow) !important;
}

.klaro .cm-link {
  color: var(--yellow) !important;
}

/* Rapidmail newsletter popup */
#rmOrganism,
#rmOrganism .rmBase,
#rmOrganism .rmBase button,
#rmOrganism .rmBase input {
  font-family: "Inter", Arial, sans-serif !important;
}

#rmOrganism .rmPopup__backdrop {
  background: rgba(0, 0, 0, 0.84) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#rmOrganism .rmPopup.rmBase {
  width: min(calc(100vw - 2rem), 38rem) !important;
  max-height: calc(100svh - 2rem) !important;
  overflow-y: auto !important;
  color: var(--white) !important;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 212, 0, 0.125), transparent 16rem),
    #080808 !important;
  border: 1px solid rgba(255, 212, 0, 0.42) !important;
  border-radius: 0.35rem !important;
  box-shadow: 0 1.5rem 6rem rgba(0, 0, 0, 0.7), 0 0 3rem rgba(255, 212, 0, 0.08) !important;
}

#rmOrganism .rmBase__body,
#rmOrganism .rmBase__content,
#rmOrganism .rmBase__container,
#rmOrganism .rmBase__section {
  background: transparent !important;
}

#rmOrganism .rmPopup__close {
  width: 2.75rem !important;
  height: 2.75rem !important;
  color: var(--yellow) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  transition: color 160ms ease, transform 160ms ease !important;
}

#rmOrganism .rmPopup__close:hover,
#rmOrganism .rmPopup__close:focus-visible {
  color: var(--white) !important;
  transform: rotate(8deg) !important;
}

#rmOrganism .rmBase__comp--heading {
  margin: 0 !important;
  color: var(--yellow) !important;
  background: transparent !important;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif !important;
  font-size: clamp(2.25rem, 5vw, 3.7rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.01em !important;
  line-height: 0.95 !important;
  text-transform: uppercase !important;
}

#rmOrganism .rmBase__comp--text,
#rmOrganism .rmBase__compLabel,
#rmOrganism .vFormCheckbox__label {
  color: #b9b9b9 !important;
  background: transparent !important;
  font-family: "Inter", Arial, sans-serif !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}

#rmOrganism .rmBase__comp--input {
  min-height: 3.2rem !important;
  padding: 0.85rem 1rem !important;
  color: var(--white) !important;
  background: #111 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 0.2rem !important;
  box-shadow: none !important;
  font-size: 1rem !important;
  transition: border-color 160ms ease, box-shadow 160ms ease !important;
}

#rmOrganism .rmBase__comp--input::placeholder {
  color: #777 !important;
  opacity: 1 !important;
}

#rmOrganism .rmBase__comp--input:focus {
  outline: none !important;
  border-color: var(--yellow) !important;
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.16) !important;
}

#rmOrganism .vFormCheckbox__input {
  accent-color: var(--yellow) !important;
}

#rmOrganism .vFormCheckbox__label a,
#rmOrganism .rmBase a {
  color: var(--yellow) !important;
}

#rmOrganism .rmBase__compError {
  color: #ff7373 !important;
  font-size: 0.78rem !important;
}

#rmOrganism .rmBase__comp--cta {
  min-height: 3.25rem !important;
  padding: 0.85rem 1.25rem !important;
  color: var(--black) !important;
  background: var(--yellow) !important;
  border: 2px solid var(--yellow) !important;
  border-radius: 0.2rem !important;
  box-shadow: none !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  transition: background-color 160ms ease, transform 160ms ease !important;
}

#rmOrganism .rmBase__comp--cta:hover,
#rmOrganism .rmBase__comp--cta:focus-visible {
  background: var(--yellow-hover) !important;
  border-color: var(--yellow-hover) !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 1250px) {
  .tour-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-panel {
    padding-right: 2.25rem;
    padding-left: 1.5rem;
  }

  .tour-list {
    --separator-position: max(9rem, 30%);
  }

  .tour-row {
    font-size: clamp(2.5rem, 3.7vw, 3.2rem);
  }

  .tour-row__details {
    column-gap: clamp(0.45rem, 0.8vw, 0.7rem);
    padding-left: clamp(0.9rem, 1.5vw, 1.2rem);
  }

  .tour-row__ticket {
    padding-right: 0.6rem;
    padding-left: 0.6rem;
  }
}

@media (max-width: 980px) {
  body.tour-page {
    display: block;
    min-height: 100svh;
  }

  .tour-hero {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .visual-stage {
    height: auto;
    min-height: max(34rem, calc(112vw + 5.5rem));
  }

  .tour-art--title {
    width: min(88vw, 46rem);
    height: auto;
    max-width: none;
    left: 50%;
    transform: translateX(-50%);
  }

  .tour-art--john {
    width: min(90vw, 46rem);
    height: auto;
    max-width: none;
    bottom: 3.4rem;
  }

  .tour-panel {
    width: min(100%, 52rem);
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
  }

  .tour-list {
    --separator-position: max(9rem, 30%);
  }

  .tour-row {
    min-height: clamp(4.5rem, 11vw, 6.2rem);
    font-size: clamp(2.75rem, 8.3vw, 4.6rem);
  }

  .footer-contact a {
    font-size: 0.75rem;
  }
}

@media (max-width: 680px) {
  body.tour-page {
    background:
      radial-gradient(circle at 23% 14%, rgba(255, 212, 0, 0.025), transparent 30rem),
      radial-gradient(circle at 80% 38%, rgba(255, 212, 0, 0.125), transparent 30rem),
      radial-gradient(circle at 50% 100%, rgba(255, 212, 0, 0.125), transparent 28rem),
      var(--black);
  }

  .visual-stage {
    min-height: max(34rem, calc(112vw + 5.5rem));
  }

  .tour-art--title {
    top: 1.4rem;
    width: min(88vw, 46rem);
  }

  .tour-art--john {
    bottom: 3.6rem;
    width: min(90vw, 46rem);
  }

  .hero-social {
    bottom: 0.6rem;
  }

  .tour-panel {
    padding: 1.5rem 1rem 4rem;
  }

  .tour-kicker {
    margin-bottom: 0.8rem;
  }

  .tour-list {
    --separator-position: 30%;
  }

  .tour-row {
    min-height: clamp(3.8rem, 16vw, 5rem);
    font-size: clamp(1.5rem, 7.45vw, 2.3rem);
  }

  .tour-row time {
    padding-right: 0.85rem;
  }

  .tour-list::before {
    width: 2px;
    transform: translateX(-2px);
  }

  .tour-row__details {
    padding-left: 1rem;
    column-gap: 0.45rem;
  }

  .tour-row__ticket {
    min-height: 1.9rem;
    padding: 0.45rem 0.55rem;
    border-width: 1px;
    font-size: 0.62rem;
  }

  .tour-actions {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .tour-button {
    width: 100%;
    min-height: 3.75rem;
  }

  .footer-contact {
    flex-wrap: wrap;
  }

  .site-footer__inner {
    width: min(calc(100% - 2rem), 1680px);
    min-height: 0;
    padding: 2rem 0;
    align-items: center;
  }

  .site-footer ul {
    flex-direction: column;
    align-items: center;
  }

  .endgame-logo {
    width: min(9rem, 48vw);
  }
}

@media (max-width: 390px) {
  .visual-stage {
    min-height: max(34rem, calc(112vw + 5.5rem));
  }

  .tour-list {
    --separator-position: 30%;
  }

  .tour-row__details {
    column-gap: 0.35rem;
    padding-left: 0.65rem;
  }

  .tour-row__ticket {
    min-height: 1.75rem;
    padding: 0.4rem 0.45rem;
    font-size: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
