/* ============================================================
   Rabbit Dasher — shared site stylesheet
   Palette drawn from the game itself: meadow green, carrot
   orange, gold accents, warm cream background.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Mulish:wght@400;500;600;700&display=swap');

:root {
  --meadow: #4CAF3D;
  --meadow-deep: #275C29;
  --meadow-dark: #1B4A1D;
  --carrot: #FF8C1A;
  --carrot-deep: #E06E00;
  --gold: #FFD633;
  --cream: #FDF8EC;
  --cream-dim: #F5EED9;
  --ink: #3A2E1F;
  --ink-soft: #5B4C38;
  --white: #FFFFFF;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(27, 74, 29, 0.12);
  --shadow-card: 0 6px 18px rgba(58, 46, 31, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Baloo 2', 'Mulish', sans-serif;
  font-weight: 700;
  color: var(--meadow-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

a { color: var(--carrot-deep); }
a:hover { color: var(--carrot); }

img, svg { max-width: 100%; display: block; }

/* ---------- Layout shell ---------- */

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  padding: 22px 0;
  background: var(--white);
  border-bottom: 1px solid rgba(27, 74, 29, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--meadow-dark);
  text-decoration: none;
}

.brand-mark {
  font-size: 1.6rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--carrot-deep);
  border-bottom-color: var(--carrot);
}

/* ---------- Buttons (mirrors the in-game capsule button style) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  background: var(--carrot);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--carrot-deep);
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--white);
  box-shadow: 0 0 0 2px var(--carrot-deep), 0 10px 20px rgba(255, 140, 26, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--meadow-dark);
  border: 3px solid var(--meadow);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--meadow);
  color: var(--white);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 214, 51, 0.35), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(76, 175, 61, 0.25), transparent 45%),
    var(--cream);
}

.hero-emoji {
  font-size: 3.4rem;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 18px auto 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--meadow-dark);
  background: var(--gold);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  margin-bottom: 20px;
}

/* ---------- Carrot trail divider (signature motif) ---------- */

.carrot-trail {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 1.1rem;
  opacity: 0.55;
  padding: 6px 0 2px;
  user-select: none;
}

/* ---------- Feature cards ---------- */

.section {
  padding: 56px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(27, 74, 29, 0.06);
}

.feature-card .icon {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------- Legal / content pages ---------- */

.content-header {
  background: var(--meadow);
  color: var(--white);
  padding: 54px 0 40px;
  text-align: center;
}

.content-header h1 {
  color: var(--white);
  margin-bottom: 6px;
}

.content-header .updated {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-family: 'Mulish', sans-serif;
  font-weight: 600;
}

.doc {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 44px clamp(22px, 5vw, 56px);
  margin: -32px auto 64px;
  max-width: 760px;
}

.doc h2 {
  font-size: 1.3rem;
  margin-top: 2.2em;
}

.doc h2:first-child { margin-top: 0; }

.doc p, .doc li {
  color: var(--ink-soft);
  font-size: 1rem;
}

.doc ul, .doc ol {
  padding-left: 1.3em;
}

.doc li { margin-bottom: 0.5em; }

.doc a { font-weight: 700; }

.contact-box {
  background: var(--cream-dim);
  border: 1px dashed var(--meadow);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 1.6em 0;
}

.contact-box p { margin: 0; color: var(--ink); }

.contact-box a {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
}

/* ---------- Support page specifics ---------- */

.support-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px clamp(22px, 5vw, 48px);
  margin: -32px auto 40px;
  max-width: 640px;
  text-align: center;
}

.support-card .icon { font-size: 2.6rem; margin-bottom: 10px; }

.tips-list {
  text-align: left;
  max-width: 640px;
  margin: 0 auto 60px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px 30px;
}

.tips-list h3 { font-size: 1.05rem; margin-bottom: 12px; }
.tips-list ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
.tips-list li { margin-bottom: 8px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--meadow-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0 30px;
  margin-top: 40px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-links a:hover { color: var(--gold); }

.footer-fine {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 18px;
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
  .header-row { flex-direction: column; align-items: flex-start; }
  .hero { padding: 52px 0 40px; }
  .doc, .support-card { margin-top: -20px; padding: 30px 20px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
