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

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface2: #222;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --text: #f0f0f0;
  --muted: #888;
  --faint: #555;
  --green: #4ade80;
  --red: #f87171;
  --accent: #5b9cf6;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.container {
  width: 100%;
  max-width: 520px;
}

.title {
  font-family: 'VT323', monospace;
  font-size: 52px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 2rem;
}

.input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

input[type="text"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

input[type="text"]:focus { border-color: var(--accent); }
input[type="text"]::placeholder { color: var(--faint); }

button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}

button:hover { opacity: 0.85; }
button:active { transform: scale(0.97); }
button:disabled { opacity: 0.4; cursor: not-allowed; }

.examples {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.chip {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
  background: transparent;
  transition: background 0.15s, color 0.15s;
  font-family: 'Inter', sans-serif;
}

.chip:hover { background: var(--surface); color: var(--text); }

.loading {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1rem;
  display: none;
}

.result {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 1.25rem;
  display: none;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

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

.dot.online { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot.offline { background: var(--red); }

.server-name {
  font-size: 16px;
  font-weight: 500;
}

.status-label {
  font-size: 12px;
  color: var(--muted);
}

.motd {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--muted);
  border-left: 2px solid var(--border2);
  padding-left: 10px;
  margin-bottom: 1rem;
  min-height: 22px;
}

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

.stat {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.stat-label {
  font-size: 11px;
  color: var(--faint);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: var(--text);
}

.error {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 14px;
  color: var(--red);
  display: none;
}

footer {
  margin-top: 3rem;
  font-size: 12px;
  color: var(--faint);
  text-align: center;
}

footer a { color: var(--faint); text-decoration: underline; }
