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

:root {
  --bg: #0f1117;
  --surface: #1a1c25;
  --surface-hover: #22252f;
  --border: #2a2d3a;
  --text: #e1e3eb;
  --text-secondary: #8b8fa3;
  --accent: #6c8cff;
  --accent-dim: #4a6adf;
  --green: #34d399;
  --red: #f87171;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  padding: 3rem 1rem 1.5rem;
}

header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

header p {
  color: var(--text-secondary);
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

main {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
}

section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

section h2 .icon {
  font-size: 1.1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  position: relative;
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.card:active {
  transform: translateY(0);
}

.card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(108, 140, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.card-body p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-secondary);
  transition: background 0.3s;
}

.status--up {
  background: var(--green);
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.4);
}

.status--down {
  background: var(--red);
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.4);
}

.status--unknown {
  background: var(--text-secondary);
}

.steam-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #8b8fa3;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card:hover .steam-icon {
  color: #1b2838;
}

.steam-icon svg {
  width: 20px;
  height: 20px;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  header {
    padding: 2rem 1rem 1rem;
  }

  header h1 {
    font-size: 1.4rem;
  }

  main {
    padding: 1rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1rem;
  }
}
