:root {
  --green: #1e5c3a;
  --green-dark: #14402a;
  --gold: #e8b830;
  --road: #3a3f44;
  --grass: #4f9e5f;
  --red: #c8102e;
  --ink: #22271f;
  --paper: #faf7f0;
  --muted: #6b7266;
}

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
}

.age-banner {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-family: 'Segoe UI', Helvetica, sans-serif;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  letter-spacing: 0.5px;
}

header.site-header {
  background: var(--green-dark);
  color: #fff;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .logo {
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}
.site-header .logo span { color: var(--gold); }

nav.main-nav a {
  color: #e8efe9;
  text-decoration: none;
  margin-left: 1.3rem;
  font-family: 'Segoe UI', Helvetica, sans-serif;
  font-size: 0.95rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover { border-bottom-color: var(--gold); }

.hero {
  background: linear-gradient(rgba(15,35,22,0.75), rgba(15,35,22,0.55)),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(255,255,255,0.12) 78px 100px),
    var(--road);
  color: #fff;
  padding: 4.5rem 1.5rem;
  text-align: center;
}
.hero .chick { font-size: 4rem; display: block; margin-bottom: 0.5rem; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.15; margin-bottom: 0.8rem; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { max-width: 42rem; margin: 0 auto; font-size: 1.1rem; color: #e6e2cf; }
.hero .cta {
  display: inline-block;
  margin-top: 1.4rem;
  background: var(--gold);
  color: #2a2205;
  font-family: 'Segoe UI', Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  transition: transform 0.15s;
}
.hero .cta:hover { transform: scale(1.05); }

main { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem; }

.section-title { font-size: 1.9rem; color: var(--green-dark); margin-bottom: 0.4rem; }
.section-lede { color: var(--muted); margin-bottom: 2rem; font-style: italic; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}
.card {
  background: #fff;
  border-radius: 10px;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 2px 10px rgba(30,60,40,0.08);
}
.card .icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.card h3 { color: var(--green-dark); font-size: 1.1rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.94rem; }

.rules-list { counter-reset: rule; list-style: none; }
.rules-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 3.2rem;
  margin-bottom: 0.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(30,60,40,0.06);
}
.rules-list li::before {
  counter-increment: rule;
  content: counter(rule);
  position: absolute;
  left: 0.9rem; top: 0.65rem;
  width: 1.7rem; height: 1.7rem;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

table.mult {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(30,60,40,0.08);
}
table.mult th, table.mult td {
  padding: 0.7rem 1rem;
  text-align: left;
  font-family: 'Segoe UI', Helvetica, sans-serif;
  font-size: 0.92rem;
  border-bottom: 1px solid #eee7d6;
}
table.mult th { background: var(--green-dark); color: #fff; font-weight: 600; }
table.mult td.multiplier { color: var(--green); font-weight: 700; }

blockquote.note {
  border-left: 4px solid var(--gold);
  background: #fff;
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  color: #4a5044;
  font-style: italic;
}

/* Demo game */
.game-shell {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(30,60,40,0.15);
  padding: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}
.game-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Segoe UI', Helvetica, sans-serif;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.game-top .stat { font-size: 0.9rem; color: var(--muted); }
.game-top .stat b { color: var(--green-dark); font-size: 1.1rem; }
.game-board {
  display: grid;
  grid-template-rows: repeat(8, 44px);
  gap: 3px;
  background: var(--grass);
  padding: 6px;
  border-radius: 10px;
}
.lane {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
}
.lane.road { background: var(--road); }
.lane.grass { background: var(--grass); }
.cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 4px;
}
.lane.road .cell { background: #474d53; }
.lane.grass .cell { background: #58aa68; }
.cell.multi {
  font-family: 'Segoe UI', Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: #2c6e4b !important;
}
.cell.multi.passed { background: var(--gold) !important; color: #2a2205; }
.cell.chicken { font-size: 1.5rem; }
.cell.squashed { filter: grayscale(1); }
.cell.crow .multi { background: #7a2f8f !important; }
.game-msg {
  text-align: center;
  font-family: 'Segoe UI', Helvetica, sans-serif;
  font-weight: 700;
  min-height: 1.6em;
  margin: 0.9rem 0;
  color: var(--green-dark);
}
.game-controls {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
button.game-btn {
  font-family: 'Segoe UI', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
button.game-btn:active { transform: scale(0.97); }
button#btn-hop { background: var(--green); color: #fff; }
button#btn-hop:hover { background: var(--green-dark); }
button#btn-cash { background: var(--gold); color: #2a2205; }
button#btn-cash:hover { background: #d5a51f; }
button#btn-reset { background: #e3ddcc; color: var(--ink); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

.responsible {
  background: #fdf0f2;
  border: 1px solid #f0c6ce;
  border-radius: 10px;
  padding: 1.6rem 1.7rem;
  margin-top: 3rem;
}
.responsible h2 { color: var(--red); font-size: 1.3rem; margin-bottom: 0.6rem; }
.responsible p, .responsible li { font-size: 0.95rem; color: #5a3038; }
.responsible ul { margin: 0.6rem 0 0 1.2rem; }

.faq-item { background: #fff; border-radius: 8px; margin-bottom: 0.8rem; padding: 1rem 1.3rem; box-shadow: 0 2px 6px rgba(30,60,40,0.06); }
.faq-item h3 { color: var(--green-dark); font-size: 1.05rem; margin-bottom: 0.3rem; }
.faq-item p { color: var(--muted); font-size: 0.95rem; }

footer.site-footer {
  background: var(--green-dark);
  color: #cfd8cf;
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  font-family: 'Segoe UI', Helvetica, sans-serif;
  font-size: 0.85rem;
}
.site-footer a { color: #e8d48b; }

@media (max-width: 600px) {
  nav.main-nav a { margin-left: 0.8rem; }
  .game-top { justify-content: center; }
}
