:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #000000;
  --color-text-muted: #666666;
  --color-border: #000000;
  --color-border-light: #dddddd;
  --header-height: 60px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  height: var(--header-height);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  flex-shrink: 0;
  text-transform: uppercase;
}

.search-bar {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 14px;
}

.search-bar:focus-within {
  border-width: 2px;
  padding: 7px 13px;
}

.search-icon {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
  color: var(--color-text);
}

.header-actions {
  margin-left: auto;
  flex-shrink: 0;
}

.btn {
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 8px 18px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  background: transparent;
  color: var(--color-text);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* Category nav */
.category-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
}

.category-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.category-nav a {
  display: inline-block;
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.category-nav a:hover {
  color: var(--color-text);
}

.category-nav a.active {
  color: var(--color-text);
  border-color: var(--color-text);
}

/* Main content */
.main-content {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.game-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.game-card:hover {
  border-color: var(--color-border);
}

.game-thumb {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-title {
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.more-soon {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 40px;
}

/* Footer */
.site-footer {
  border-top: 2px solid var(--color-border);
  padding: 20px 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
  }

  .search-bar {
    order: 3;
    max-width: 100%;
  }

  .header-actions {
    margin-left: 0;
  }
}
