:root {
  --bg: #0d1117;
  --bg-2: #151b24;
  --panel: #1b2330;
  --panel-2: #222c3b;
  --line: #2d3a4d;
  --text: #e8edf3;
  --muted: #93a1b5;
  --accent: #f2b33d;
  --accent-2: #ffcf6b;
  --felt: #1d7a4a;
  --danger: #e5534b;
  --ok: #3fb950;
  --radius: 14px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(1200px 600px at 20% -10%, #1b2a3c 0%, transparent 60%), var(--bg);
  color: var(--text);
}

a { color: inherit; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.brand-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #555 0%, #111 55%, #000 100%);
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.brand-ball::after {
  content: "8";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.brand span { color: var(--accent); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 60px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 8px;
}

.hero p {
  color: var(--muted);
  margin: 0 0 32px;
  font-size: 17px;
}

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

.game-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.game-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.game-thumb {
  height: 150px;
  background:
    radial-gradient(ellipse at 50% 40%, #2a9a5e 0%, #1a6b40 70%, #134d2e 100%);
  border-bottom: 10px solid #5a3018;
  border-top: 10px solid #5a3018;
  position: relative;
}

.game-thumb .b {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset -3px -4px 6px rgba(0, 0, 0, 0.45), 0 3px 4px rgba(0, 0, 0, 0.35);
}

.game-body { padding: 16px 18px 20px; }
.game-body h3 { margin: 0 0 6px; font-size: 20px; }
.game-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.tags { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.tag {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1a1205; }
.btn.primary:hover { background: var(--accent-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

input, select {
  font: inherit;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}

input:focus, select:focus { border-color: var(--accent); }

@media (max-width: 600px) {
  .site-header { padding: 14px 16px; }
  .container { padding: 24px 16px 40px; }
}
