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

:root {
  --page-bg: #97cf7d;
  --panel-bg: #f6f2e8;
  --panel-bg-soft: #edf4e7;
  --line: #95ad89;
  --line-soft: #bfd0b6;
  --text: #273528;
  --text-soft: #53634f;
  --text-muted: #73806f;
  --accent: #6f8f5f;
  --accent-soft: #4f7044;
  --accent-quiet: rgba(111, 143, 95, 0.16);
  --rose: #b87362;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--page-bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--panel-bg);
  padding: 40px 20px;
  text-align: center;
  border-bottom: 2px solid var(--accent);
}

header h1 {
  font-size: 2.5rem;
  color: var(--accent-soft);
  margin-bottom: 8px;
}

header p {
  color: var(--text-soft);
  font-size: 1rem;
}

main {
  flex: 1;
  padding: 40px 20px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

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

.project-card {
  background: var(--panel-bg);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.project-card:hover {
  background: var(--panel-bg-soft);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.project-thumb {
  font-size: 3rem;
  margin-bottom: 12px;
}

.project-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text);
}

.project-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line-soft);
}

/* Game page common */
.back-link {
  display: inline-block;
  margin: 20px;
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.page-header {
  background: var(--panel-bg);
  padding: 30px 20px;
  text-align: center;
  border-bottom: 2px solid var(--accent);
}

.page-header h1 {
  font-size: 2rem;
  color: var(--accent-soft);
}

.page-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}
