/* Shared look for Maria's Games */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf6ef;
  --card: #ffffff;
  --ink: #4a3f35;
  --accent: #e2707a;
  --accent-dark: #c9545f;
  --soft: #f0e6d8;
  --shadow: 0 4px 14px rgba(74, 63, 53, 0.12);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
}

header.site {
  text-align: center;
  margin: 24px 0 8px;
}

header.site h1 {
  font-size: 2rem;
  letter-spacing: 0.5px;
}

header.site h1 a {
  color: var(--ink);
  text-decoration: none;
}

header.site p.tagline {
  color: #8a7a6a;
  margin-top: 6px;
}

a.back {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}
a.back:hover { text-decoration: underline; }

main {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* Landing page cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 28px;
}

.game-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(74, 63, 53, 0.18);
}

.game-card .emoji { font-size: 3rem; display: block; margin-bottom: 12px; }
.game-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.game-card p { color: #8a7a6a; font-size: 0.92rem; }

/* Game pages */
.panel {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 16px;
}

.hud {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 12px 0;
}

.hud .stat {
  background: var(--soft);
  border-radius: 10px;
  padding: 8px 16px;
  text-align: center;
  min-width: 90px;
}

.hud .stat .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: #8a7a6a; }
.hud .stat .value { font-size: 1.25rem; font-weight: 700; }

button.btn {
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s ease;
}
button.btn:hover { background: var(--accent-dark); }
button.btn.secondary { background: var(--soft); color: var(--ink); }
button.btn.secondary:hover { background: #e4d8c4; }

.controls-hint { color: #8a7a6a; font-size: 0.85rem; text-align: center; margin-top: 10px; }

footer.site {
  margin-top: 32px;
  padding: 16px;
  color: #b0a290;
  font-size: 0.85rem;
  text-align: center;
}
