:root {
  --emerald: #3ed88f;
  --mint: #a8f0cd;
  --deep: #0e2a1d;
  --text: #eafff4;
  --panel: rgba(10, 28, 20, 0.82);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--deep);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url(../assets/background.jpg) center / cover no-repeat;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 20, 14, 0.15) 0%, rgba(6, 20, 14, 0.55) 100%);
}

.card {
  width: min(92vw, 680px);
  margin: 48px 16px;
  padding: 48px 44px 32px;
  text-align: center;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(62, 216, 143, 0.22);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: rise 0.5s ease-out;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.logo {
  max-width: 360px;
  width: 82%;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
}

.wordmark {
  display: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  color: var(--emerald);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.tagline {
  margin-top: 12px;
  color: var(--mint);
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(62, 216, 143, 0.18);
  font-size: 0.98rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8a9a92;
  flex-shrink: 0;
}

.dot.online {
  background: var(--emerald);
  animation: pulse 2s ease-in-out infinite;
}

.dot.offline {
  background: #ff6b6b;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(62, 216, 143, 0.55);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(62, 216, 143, 0);
  }
}

.ip-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ip {
  padding: 13px 22px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(62, 216, 143, 0.25);
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
  color: var(--text);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid rgba(62, 216, 143, 0.45);
  background: rgba(62, 216, 143, 0.1);
  color: var(--mint);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  background: rgba(62, 216, 143, 0.22);
}

.copy-btn.copied {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #06281a;
  font-weight: 600;
}

.links {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 17px 22px;
  border-radius: 14px;
  border: 1px solid rgba(62, 216, 143, 0.35);
  background: rgba(62, 216, 143, 0.08);
  color: var(--mint);
  font-size: 1.08rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: rgba(62, 216, 143, 0.18);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #06281a;
  font-weight: 700;
}

.btn-primary:hover {
  background: #55e2a0;
}

.btn-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

footer {
  margin-top: 32px;
  font-size: 0.82rem;
  color: rgba(234, 255, 244, 0.55);
}

@media (max-width: 480px) {
  .card {
    padding: 30px 20px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
  .dot.online {
    animation: none;
  }
  .btn:hover {
    transform: none;
  }
}
