:root {
  --bg: #0e0f13;
  --fg: #f4f4f6;
  --accent: #6cffd9;
  --accent-2: #7aa2ff;
  --muted: #9aa0aa;
  --glass: rgba(255,255,255,0.06);
  --blur: blur(18px);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body {
  background:
radial-gradient(800px 400px at 80% -20%, #1c2b44, transparent),
radial-gradient(600px 300px at -10% 40%, #12342b, transparent),
var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.2rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
}

nav a:hover { color: var(--fg); }

.top-bar nav a.active {
  color: #6cffd9;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 32px 120px;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
}
.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

button {
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #08110f;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(108,255,217,0.25);
}
.secondary {
  background: var(--glass);
  color: var(--fg);
  backdrop-filter: var(--blur);
}

button:hover { transform: translateY(-2px); }

.brick-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  backdrop-filter: var(--blur);
  overflow: hidden;
}

.brick {
  position: absolute;
  width: 60px;
  height: 40px;
  background: linear-gradient(135deg, #6cffd9, #7aa2ff);
  border-radius: 6px;
  opacity: 0.9;
}
.features {
  margin-top: 140px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.feature {
  padding: 28px;
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: var(--blur);
}
.feature h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}
.video-section {
  margin-top: 140px;
}

video {
  width: 100%;
  border-radius: 20px;
  background: #000;
}

footer {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}


.devlog-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  display: grid;
  gap: 40px;
}

.devlog-entry {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.devlog-entry h2 {
  margin-top: 10px;
  font-size: 1.6rem;
}

.devlog-entry p {
  opacity: 0.9;
  margin: 15px 0;
}

.devlog-entry ul {
  padding-left: 20px;
  opacity: 0.85;
}

.devlog-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.devlog-meta .version {
  color: #6cffd9;
  font-weight: bold;
}

.top-bar nav a.active {
  color: #6cffd9;
}


-- games.html

.games-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px; /* more breathing room */
}

.game-card {
  background: rgba(255, 255, 255, 0.035);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.game-image:inactive {
  height: 160px;
  background:
  linear-gradient(135deg, #6cffd9, #2b7cff);
  opacity: 0.85;
}

.game-card:hover .game-image {
  transform: scale(1.04);
}

.game-image {
  transition: transform 0.3s ease;
  width: 100%;
  height: 160px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.game-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-content h2 {
  font-size: 1.4rem;
}

.game-content p {
  font-size: 0.95rem;
  opacity: 0.85;
  flex-grow: 1;
}

.game-content button {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  background: #6cffd9;
  color: #08110f;
}



-- Search & filter bar

.server-controls {
  max-width: 1200px;
  margin: 30px auto 10px;
  padding: 0 24px;
  display: flex;
  gap: 16px;
}

.server-controls input,
.server-controls select {
  flex: 1;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.95rem;
}

.server-controls input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}



-- Server meta row (players / ping / status)

.server-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  align-items: center;
  opacity: 0.85;
}

.server-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}



-- Server status

.status {
  font-weight: 600;
}

.status.online {
  color: #6cffd9;
}

.status.offline {
  color: #ff6c6c;
}


-- Player count

.players {
  color: #eafff8;
}


-- Ping indicator (color-coded)

.ping.good {
  color: #6cff8f;
}

.ping.medium {
  color: #ffd36c;
}

.ping.bad {
  color: #ff6c6c;
}


-- Tags

.tags {
  opacity: 0.75;
  transition: opacity 0.2s ease;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tags span {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(108, 255, 217, 0.15);
  color: #6cffd9;
}

.game-card:hover .tags {
  opacity: 1;
}



-- Pagination for game pages

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 60px 0 80px;
}

.pagination button {
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px; /* less bubbly */
  border: 1px solid rgba(108, 255, 217, 0.25);
  background: linear-gradient(
    135deg,
    rgba(108, 255, 217, 0.15),
    rgba(43, 124, 255, 0.15)
  );
  color: #eafff8;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination button:hover {
  background: linear-gradient(
    135deg,
    rgba(108, 255, 217, 0.35),
    rgba(43, 124, 255, 0.35)
  );
  color: #08110f;
}

.pagination button.active {
  background: linear-gradient(135deg, #6cffd9, #2b7cff);
  color: #08110f;
  border: none;
  box-shadow: 0 0 18px rgba(108, 255, 217, 0.6);
}

.pagination button:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.pagination .ellipsis {
  padding: 0 8px;
  opacity: 0.6;
  font-weight: 600;
  user-select: none;
}

@media (max-width: 1024px) {
  .games-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .games-container {
    grid-template-columns: 1fr;
  }
}
