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

:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --border: #2a2a3a;
  --accent: #4ade80;
  --accent2: #60a5fa;
  --text: #e2e8f0;
  --muted: #64748b;
  --pixel: 'Press Start 2P', monospace;
  --mono: 'VT323', monospace;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-x: hidden;
}

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 100;
}

/* Noise texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 99;
  opacity: 0.4;
}

.card {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border: 2px solid var(--border);
  padding: 2.5rem 2rem;
  position: relative;
  animation: fadeUp 0.5s ease both;
}

.card::before, .card::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent);
}
.card::before { top: -2px; left: -2px; }
.card::after  { bottom: -2px; right: -2px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.server-name {
  font-family: var(--pixel);
  font-size: clamp(0.65rem, 2.5vw, 0.9rem);
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  line-height: 1.6;
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}

.motd {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--muted);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 0;
  flex-shrink: 0;
}

.dot-online {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2s step-end infinite;
}

.dot-offline {
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.status-label {
  font-family: var(--pixel);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-box {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  position: relative;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent2);
}

.stat-label {
  font-family: var(--pixel);
  font-size: 0.45rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--mono);
  font-size: 2rem;
  color: var(--text);
  line-height: 1;
}

.stat-value-max {
  font-size: 1.2rem;
  color: var(--muted);
}

.connect-box {
  margin-top: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.connect-label {
  font-family: var(--pixel);
  font-size: 0.45rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.connect-value {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.footer {
  margin-top: 1.5rem;
  font-family: var(--pixel);
  font-size: 0.4rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: right;
}
