/* Self-contained maintenance view; client colors and imagery stay configurable. */
html body.maintenance-mode {
  min-height: 100vh;
  padding-bottom: 0;
}

body.maintenance-mode > .site-header,
body.maintenance-mode > .dedication-strip,
body.maintenance-mode > .site-footer,
body.maintenance-mode > #back-top {
  display: none;
}

html body.maintenance-mode #page {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body.maintenance-mode #page > .maintenance-screen {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(24px, 5vw, 56px) 24px 32px;
  overflow: hidden;
  background: var(--maintenance-bg, #100718);
  color: var(--maintenance-text, #fff);
}

body.maintenance-with-player #page > .maintenance-screen {
  padding-bottom: max(112px, var(--maintenance-player-clearance, 0px));
}

.maintenance-screen::before,
.maintenance-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.maintenance-screen::before {
  z-index: -2;
  background-image: var(--maintenance-image, none);
  background-position: center;
  background-size: cover;
  opacity: .45;
}

.maintenance-screen::after {
  z-index: -1;
  background: linear-gradient(135deg, #00000018, #00000080);
}

body.maintenance-mode .maintenance-card {
  width: min(100%, 760px);
  min-width: 0;
  margin: 0;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid #ffffff2b;
  border-radius: 24px;
  background: var(--maintenance-bg, #100718);
  background: color-mix(in srgb, var(--maintenance-bg, #100718) 88%, transparent);
  color: var(--maintenance-text, #fff);
  box-shadow: 0 24px 80px #00000030;
  backdrop-filter: blur(12px);
  text-align: center;
  overflow-wrap: anywhere;
}

body.maintenance-mode .maintenance-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(220px, 100%);
  max-height: 112px;
  margin: 0 auto 24px;
  object-fit: contain;
}

body.maintenance-mode .maintenance-name {
  display: block;
  margin-bottom: 24px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.25;
}

body.maintenance-mode .maintenance-pill {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .1em;
}

body.maintenance-mode .maintenance-card h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(27px, 3.6vw, 46px);
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -.035em;
  color: inherit;
  text-wrap: balance;
}

body.maintenance-mode .maintenance-card > p {
  max-width: 600px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: inherit;
}

body.maintenance-mode .maintenance-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 440px);
  margin: 28px auto 0;
}

body.maintenance-mode .maintenance-countdown > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 14px 8px;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  background: #ffffff0a;
}

body.maintenance-mode .maintenance-countdown b {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

body.maintenance-mode .maintenance-countdown small {
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .07em;
}

body.maintenance-mode .maintenance-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  margin-top: 28px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: var(--maintenance-accent, #f52582);
  color: var(--maintenance-text, #fff);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

body.maintenance-mode .maintenance-play:hover {
  border-color: currentColor;
}

body.maintenance-mode .maintenance-socials,
body.maintenance-mode .maintenance-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.6;
}

body.maintenance-mode .maintenance-socials a {
  padding: 7px 13px;
  border: 1px solid currentColor;
  border-radius: 99px;
}

body.maintenance-mode .maintenance-contact > span {
  max-width: 100%;
}

body.maintenance-mode .maintenance-privacy {
  display: block;
  margin: 24px auto 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.maintenance-mode .maintenance-legal-body {
  margin-top: 24px;
  text-align: left;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body.maintenance-mode .maintenance-legal-body img {
  max-width: 100%;
  height: auto;
}

body.maintenance-mode .maintenance-return {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  body.maintenance-mode #page > .maintenance-screen {
    padding: 20px 16px 28px;
  }

  body.maintenance-with-player #page > .maintenance-screen {
    padding-bottom: max(148px, var(--maintenance-player-clearance, 0px));
  }

  body.maintenance-mode .maintenance-card {
    padding: 28px 20px;
    border-radius: 18px;
  }

  body.maintenance-mode .maintenance-logo {
    max-width: min(180px, 100%);
    max-height: 96px;
    margin-bottom: 20px;
  }

  body.maintenance-mode .maintenance-card h1 {
    font-size: clamp(25px, 7vw, 32px);
  }

  body.maintenance-mode .maintenance-card > p {
    font-size: 14px;
    line-height: 1.65;
  }

  body.maintenance-mode .maintenance-countdown {
    gap: 6px;
    margin-top: 24px;
  }

  body.maintenance-mode .maintenance-countdown > span {
    gap: 4px;
    padding: 12px 3px;
    border-radius: 8px;
  }

  body.maintenance-mode .maintenance-countdown b {
    font-size: 25px;
  }

  body.maintenance-mode .maintenance-countdown small {
    font-size: 8px;
    letter-spacing: 0;
  }
}
