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

:root {
  --font: 'Inter', system-ui, sans-serif;
  --bg-start: #f0f2f5;
  --bg-end: #e8eaed;
  --cell-border: rgba(255, 255, 255, 0.7);
  --cell-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --cell-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8888aa;
  --radius: 8px;
  --transition: 150ms ease-out;
}

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-header, .legend, main {
  width: 100%;
  max-width: 1100px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}

.search-input {
  font-family: var(--font);
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  outline: none;
  width: 280px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input:focus {
  border-color: rgba(99, 120, 200, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 120, 200, 0.12);
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .search-input {
    width: 100%;
    max-width: 100%;
  }

  .site-title { font-size: 1.2rem; }
}
