/* Pack 797 maintenance page — branded portal look */

@font-face {
  font-family: "Futura PT";
  src: url("../fonts/FuturaPT-Bold.woff2") format("woff2"),
       url("../fonts/FuturaPT-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura PT";
  src: url("../fonts/FuturaPT-Demi.woff2") format("woff2"),
       url("../fonts/FuturaPT-Demi.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Muli";
  src: url("../fonts/text-font/Muli-Regular.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Muli";
  src: url("../fonts/text-font/Muli-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-yellow: #ffcc33;
  --color-blue: #0b3f71;
  --color-light-blue: #4284c2;
  --color-white-cyan: #eaf5ff;
  --color-sky-blue: #add6ff;
  --maintenance-ink: #08335d;
  --maintenance-muted: rgba(234, 245, 255, 0.78);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body.maintenance-page {
  font-family: "Muli", Arial, Helvetica, sans-serif;
  color: var(--color-white-cyan);
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(66, 132, 194, 0.45), transparent 60%),
    linear-gradient(165deg, #062844 0%, var(--color-blue) 42%, #08335d 78%, #041a2e 100%);
  overflow-x: hidden;
}

.main-wrap {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem 2rem;
}

.maintenance-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.maintenance-glow {
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: min(90vw, 720px);
  height: 45vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 204, 51, 0.18), transparent 68%);
  animation: maintenance-glow 6s ease-in-out infinite alternate;
}

.maintenance-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.55;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
  animation: maintenance-twinkle 3.2s ease-in-out infinite;
}

.maintenance-star--1 { top: 12%; left: 14%; animation-delay: 0s; }
.maintenance-star--2 { top: 18%; left: 72%; width: 2px; height: 2px; animation-delay: 0.7s; }
.maintenance-star--3 { top: 28%; left: 88%; animation-delay: 1.4s; }
.maintenance-star--4 { top: 8%; left: 46%; width: 2px; height: 2px; animation-delay: 2s; }
.maintenance-star--5 { top: 22%; left: 32%; animation-delay: 1.1s; }

.maintenance-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  text-align: center;
}

.maintenance-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.maintenance-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.45rem;
  box-shadow:
    0 0 0 4px rgba(255, 204, 51, 0.35),
    0 12px 28px rgba(4, 26, 46, 0.35);
}

.maintenance-eyebrow {
  margin: 0;
  font-family: "Futura PT", "Muli", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-yellow);
}

.maintenance-scene {
  position: relative;
  width: min(100%, 320px);
  height: 168px;
  margin: 0.15rem auto 0;
  overflow: hidden;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(8, 51, 93, 0.35) 0%, rgba(11, 63, 113, 0.15) 55%, transparent 100%);
  border: 1px solid rgba(173, 214, 255, 0.18);
  box-shadow: inset 0 -24px 40px rgba(4, 26, 46, 0.25);
}

.maintenance-scene__moon {
  position: absolute;
  top: 18px;
  right: 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff8e1;
  box-shadow:
    0 0 0 6px rgba(255, 204, 51, 0.18),
    0 0 24px rgba(255, 204, 51, 0.45);
}

.maintenance-scene__mountain {
  position: absolute;
  bottom: 34px;
  width: 0;
  height: 0;
  border-style: solid;
  border-left-color: transparent;
  border-right-color: transparent;
  border-top-width: 0;
}

.maintenance-scene__mountain--back {
  left: 18px;
  border-left-width: 70px;
  border-right-width: 70px;
  border-bottom-width: 78px;
  border-bottom-color: #0a335c;
}

.maintenance-scene__mountain--mid {
  left: 88px;
  border-left-width: 86px;
  border-right-width: 86px;
  border-bottom-width: 96px;
  border-bottom-color: #0f4a80;
}

.maintenance-scene__mountain--front {
  right: 8px;
  border-left-width: 64px;
  border-right-width: 64px;
  border-bottom-width: 70px;
  border-bottom-color: #124f88;
}

.maintenance-scene__ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38px;
  background: linear-gradient(180deg, #1a5a2d 0%, #0f3d1d 100%);
  border-top: 2px solid rgba(255, 204, 51, 0.25);
}

.maintenance-scene__tent {
  position: absolute;
  left: 58%;
  bottom: 34px;
  width: 78px;
  height: 58px;
  transform: translateX(-20%);
}

.maintenance-scene__tent-face {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, #ffd860 0%, var(--color-yellow) 55%, #e6b72d 100%);
  box-shadow: 0 4px 12px rgba(4, 26, 46, 0.25);
}

.maintenance-scene__tent-flap {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 34px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #cd9329 0%, #a46a00 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.maintenance-scene__fire {
  position: absolute;
  left: 28%;
  bottom: 36px;
  width: 34px;
  height: 36px;
}

.maintenance-scene__log {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 7px;
  border-radius: 4px;
  background: #5c3317;
}

.maintenance-scene__flame {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 10px;
  border-radius: 50% 50% 40% 40%;
  transform: translateX(-50%);
  transform-origin: center bottom;
  animation: maintenance-flame 1.1s ease-in-out infinite alternate;
}

.maintenance-scene__flame--1 {
  height: 22px;
  background: linear-gradient(180deg, #fff3c4 0%, #ffcc33 45%, #ff8a00 100%);
  animation-delay: 0s;
}

.maintenance-scene__flame--2 {
  left: calc(50% - 7px);
  width: 8px;
  height: 16px;
  background: linear-gradient(180deg, #ffe58a 0%, #ffb733 100%);
  animation-delay: 0.2s;
}

.maintenance-scene__flame--3 {
  left: calc(50% + 7px);
  width: 7px;
  height: 14px;
  background: linear-gradient(180deg, #fff8e1 0%, #ffcc33 100%);
  animation-delay: 0.35s;
}

.maintenance-scene__smoke {
  position: absolute;
  left: 31%;
  bottom: 72px;
  width: 24px;
  height: 48px;
  pointer-events: none;
}

.maintenance-scene__smoke span {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: rgba(197, 210, 222, 0.55);
  animation: maintenance-smoke 2.8s ease-out infinite;
}

.maintenance-scene__smoke span:nth-child(2) {
  animation-delay: 0.7s;
  width: 6px;
  height: 6px;
  margin-left: -2px;
}

.maintenance-scene__smoke span:nth-child(3) {
  animation-delay: 1.4s;
  width: 10px;
  height: 10px;
  margin-left: -6px;
}

.error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: 34rem;
  color: var(--color-white-cyan);
}

.maintenance-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 204, 51, 0.14);
  border: 1px solid rgba(255, 204, 51, 0.35);
  color: var(--color-yellow);
  font-family: "Futura PT", "Muli", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maintenance-status__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-yellow);
  box-shadow: 0 0 0 0 rgba(255, 204, 51, 0.55);
  animation: maintenance-pulse 1.6s ease-out infinite;
}

.error-content h1 {
  margin: 0;
  font-family: "Futura PT", "Muli", sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #fff;
}

.error-content p:last-child {
  margin: 0;
  max-width: 32rem;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  line-height: 1.6;
  color: var(--maintenance-muted);
}

@keyframes maintenance-twinkle {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.25); }
}

@keyframes maintenance-glow {
  from { opacity: 0.55; transform: translateX(-50%) scale(1); }
  to { opacity: 0.9; transform: translateX(-50%) scale(1.06); }
}

@keyframes maintenance-flame {
  from { transform: translateX(-50%) scaleY(0.92) scaleX(1); }
  to { transform: translateX(-50%) scaleY(1.08) scaleX(0.94); }
}

@keyframes maintenance-smoke {
  0% {
    opacity: 0.55;
    transform: translate(0, 0) scale(0.7);
  }
  70% {
    opacity: 0.25;
  }
  100% {
    opacity: 0;
    transform: translate(8px, -42px) scale(1.35);
  }
}

@keyframes maintenance-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 204, 51, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 204, 51, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 204, 51, 0);
  }
}

@media (max-width: 575.98px) {
  .main-wrap {
    padding: 1.25rem 1rem 1.75rem;
  }

  .maintenance-logo {
    width: 80px;
    height: 80px;
  }

  .maintenance-scene {
    width: min(100%, 280px);
    height: 148px;
  }

  .maintenance-panel {
    gap: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .maintenance-star,
  .maintenance-glow,
  .maintenance-scene__flame,
  .maintenance-scene__smoke span,
  .maintenance-status__dot {
    animation: none;
  }
}
