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

[hidden] {
  display: none !important;
}

:root {
  --bg-top: #517E9C;
  --bg-mid: #025d99;
  --bg-bottom: #e0e0e0;
  --color-white: #ffffff;
  --surface: rgba(255, 255, 255, 0.95);
  --surface-strong: #ffffff;
  --border: rgba(90, 95, 118, 0.14);
  --border-strong: rgba(177, 8, 74, 0.2);
  --text-primary: #313238;
  --text-secondary: #686a73;
  --text-muted: #8c8e97;
  --accent: #b1084a;
  --accent-hover: #92023d;
  --accent-soft: rgba(177, 8, 74, 0.08);
  --shadow: 0 22px 60px rgba(42, 45, 58, 0.12);
  --shadow-soft: 0 12px 26px rgba(42, 45, 58, 0.08);
  --shadow-header: 0 10px 30px rgba(22, 25, 36, 0.05);
  --radius-xl: 30px;
  --radius-lg: 22px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.22), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 26%, #817e8b 60%, var(--bg-bottom) 100%);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.1) 0.8px, transparent 0.8px),
    radial-gradient(rgba(255, 255, 255, 0.06) 0.8px, transparent 0.8px);
  background-position: 0 0, 14px 14px;
  background-size: 28px 28px;
  opacity: 0.18;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--color-white);
  box-shadow: var(--shadow-header);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(250px, 56vw);
  max-height: 44px;
  object-fit: contain;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill,
.support-pill {
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.status-pill {
  background: #edf1fa;
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
}

.support-pill {
  background: var(--accent);
  color: var(--surface-strong);
  box-shadow: 0 12px 22px rgba(177, 8, 74, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.support-pill:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(177, 8, 74, 0.12);
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 2.8rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 2.4rem 2.6rem;
  animation: card-appear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(18px);
}

@keyframes card-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 2.1rem;
  align-items: center;
}

.info-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.section-label {
  display: inline-block;
  margin-bottom: 1.05rem;
  color: #676971;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.12;
  color: var(--text-primary);
}

.hero-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.1rem;
}

.hero-title {
  margin-bottom: 0;
}

.message,
.fallback-copy,
.support-box p,
.status-copy {
  color: var(--text-secondary);
}

.message,
.fallback-copy,
.support-box p {
  font-size: 1.02rem;
  line-height: 1.72;
}

.message + .message {
  margin-top: 0.95rem;
}

.server-name {
  font-family: 'Inter', monospace;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--surface-strong);
  word-break: break-word;
}

.server-focus {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid rgba(146, 2, 61, 0.18);
  box-shadow: 0 14px 28px rgba(177, 8, 74, 0.18);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.74rem 1rem;
  border-radius: 999px;
  background: #eef2fa;
  border: 1px solid rgba(94, 100, 122, 0.14);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
}

.meta-pill svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.status-panel {
  background: linear-gradient(180deg, rgba(248, 247, 249, 0.98), rgba(244, 242, 246, 0.96));
  border: 1px solid rgba(94, 100, 122, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-soft);
}

.status-card {
  background: var(--surface-strong);
  border: 1px solid rgba(94, 100, 122, 0.14);
  border-radius: var(--radius-xl);
  padding: 1.15rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.status-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ba0e52 0%, #8f073c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 14px 24px rgba(177, 8, 74, 0.18);
}

.status-icon svg {
  width: 30px;
  height: 30px;
  stroke: #fff;
  stroke-width: 1.9;
  fill: none;
}

.status-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.status-copy {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.status-link {
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
}

.progress-area {
  margin-top: 1.15rem;
  padding: 1rem 1.05rem;
  background: rgba(177, 8, 74, 0.04);
  border: 1px solid rgba(177, 8, 74, 0.08);
  border-radius: 18px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(94, 100, 122, 0.15);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 38%;
  background: linear-gradient(90deg, #d01361, var(--accent));
  border-radius: 999px;
  animation: progress-sweep 2.1s ease-in-out infinite;
}

@keyframes progress-sweep {
  0% { transform: translateX(-100%); width: 36%; }
  50% { width: 60%; }
  100% { transform: translateX(300%); width: 40%; }
}

.status-text {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.72); }
}

.ellipsis::after {
  content: '';
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

.cta-button {
  width: 100%;
  min-height: 54px;
  margin-top: 1.2rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--accent);
  color: var(--surface-strong);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(177, 8, 74, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.cta-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.fallback-title {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.info-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--surface-strong);
  border: 1px solid rgba(94, 100, 122, 0.14);
  border-radius: var(--radius-xl);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.link-card:hover {
  border-color: rgba(177, 8, 74, 0.18);
  transform: translateX(4px);
}

.link-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.link-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
}

.link-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.link-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.link-url {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.link-arrow {
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.support-box {
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(177, 8, 74, 0.08), rgba(177, 8, 74, 0.03));
  border: 1px solid rgba(177, 8, 74, 0.12);
  border-radius: 22px;
}

.support-box h2 {
  font-size: 1.22rem;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.support-box a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

footer {
  margin-top: auto;
  padding: 1rem 1.5rem 1.6rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(49, 50, 56, 0.78);
  line-height: 1.6;
}

footer a {
  color: rgba(49, 50, 56, 0.86);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

@media (max-width: 960px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-card,
  .info-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    padding: 0.95rem 1rem;
    align-items: center;
  }

  .topbar-actions {
    width: 100%;
    justify-content: center;
  }

  .status-pill,
  .support-pill {
    width: 100%;
    justify-content: center;
  }

  .container {
    padding: 1.5rem 1rem 1rem;
    gap: 1.25rem;
  }

  .card {
    padding: 1.5rem 1.2rem;
    border-radius: 24px;
  }

  .hero-heading {
    align-items: flex-start;
  }

  .server-focus {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
  }

  .status-card {
    flex-direction: column;
  }

  h1 {
    font-size: 1.85rem;
  }
}
