/* InterFilm — Page maintenance */

.maint-page {
  position: fixed;
  inset: 0;
  z-index: 999999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  font-family: var(--ff-body, 'DM Sans', system-ui, sans-serif);
  color: var(--text, #f0eef8);
  overflow: hidden;
}

.maint-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(232, 48, 74, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(245, 166, 35, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(88, 101, 242, 0.15), transparent 55%),
    linear-gradient(165deg, #0c0c1a 0%, #12122a 45%, #0a1020 100%);
}

.maint-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.maint-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: maintOrbFloat 14s ease-in-out infinite;
}
.maint-orb--1 {
  width: 320px;
  height: 320px;
  top: -8%;
  left: -5%;
  background: rgba(232, 48, 74, 0.35);
}
.maint-orb--2 {
  width: 280px;
  height: 280px;
  top: 20%;
  right: -8%;
  background: rgba(245, 166, 35, 0.22);
  animation-delay: -4s;
}
.maint-orb--3 {
  width: 240px;
  height: 240px;
  bottom: -5%;
  left: 35%;
  background: rgba(96, 165, 250, 0.2);
  animation-delay: -8s;
}

@keyframes maintOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.06); }
  66% { transform: translate(-16px, 12px) scale(0.94); }
}

.maint-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 28px;
  background: rgba(14, 14, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 80px rgba(232, 48, 74, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  text-align: center;
  animation: maintCardIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes maintCardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.maint-preview-tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold2, #ffc85e);
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.25);
}

.maint-logo-wrap {
  margin-bottom: 1.25rem;
}
.maint-logo {
  width: min(180px, 55vw);
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(232, 48, 74, 0.35));
}

.maint-brand-fallback {
  font-family: var(--ff-head, 'Syne', sans-serif);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ff5068, #f5a623);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.maint-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold2, #ffc85e);
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.22);
}

.maint-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold2, #ffc85e);
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.8);
  animation: maintPulse 2s ease-in-out infinite;
}

@keyframes maintPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.maint-title {
  font-family: var(--ff-head, 'Syne', sans-serif);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: #fff;
}

.maint-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 1.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.maint-progress {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.maint-progress-bar {
  height: 100%;
  width: 40%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red, #e8304a), var(--gold, #f5a623));
  animation: maintProgress 2.2s ease-in-out infinite;
}
@keyframes maintProgress {
  0% { transform: translateX(-120%); width: 35%; }
  50% { width: 55%; }
  100% { transform: translateX(320%); width: 35%; }
}

.maint-checklist {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.maint-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.maint-checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(232, 48, 74, 0.35), rgba(245, 166, 35, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: maintCheckSpin 3s linear infinite;
}
.maint-checklist li:nth-child(2)::before { animation-delay: -1s; }
.maint-checklist li:nth-child(3)::before { animation-delay: -2s; }

@keyframes maintCheckSpin {
  0% { opacity: 0.5; }
  50% { opacity: 1; box-shadow: 0 0 12px rgba(232, 48, 74, 0.35); }
  100% { opacity: 0.5; }
}

.maint-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.maint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  font-family: var(--ff-head, 'Syne', sans-serif);
}
.maint-btn:hover { transform: translateY(-2px); }
.maint-btn--discord {
  color: #fff;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.35);
}
.maint-btn--discord:hover {
  box-shadow: 0 14px 36px rgba(88, 101, 242, 0.5);
}
.maint-btn--ghost {
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.maint-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.maint-foot {
  margin: 1.25rem 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}

.maint-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 4, 12, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.maint-overlay .maint-page {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: 0;
}
.maint-overlay .maint-bg {
  border-radius: 28px;
}

@media (prefers-reduced-motion: reduce) {
  .maint-orb, .maint-progress-bar, .maint-status-dot, .maint-checklist li::before {
    animation: none !important;
  }
  .maint-card { animation: none; }
}
