:root {
  --petal: #ffd14c;
  --petal-deep: #f5b81f;
  --center: #7a4a1c;
  --leaf: #4c9a5a;
  --leaf-deep: #2f7a45;
  --ink: #26313a;
  --ink-soft: #5b6b78;
  --sky-top: #bfe3ff;
  --sky-bottom: #eaf7ef;
  --card-bg: #ffffff;
  --shadow: 0 10px 30px rgba(38, 49, 58, 0.12);
  --radius: 20px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: transparent;   /* the DGS garden scene sits behind, see .dgs-scene */
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--leaf-deep); }

/* ---------- DGS garden background (sky + sun + hills + flowers) ---------- */
/* Recreates the Daisy Garden Solitaire home backdrop: a soft daytime sky with
   a warm sun glow, layered rolling hills, and garden daisies on stems. Fixed
   behind all content (position:fixed div — not background-attachment:fixed,
   which is unreliable on iOS Safari). */
.dgs-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(115% 62% at 50% 30%,
      rgba(255, 250, 226, 0.95) 0%,
      rgba(255, 246, 210, 0.40) 24%,
      rgba(255, 246, 210, 0) 50%),
    linear-gradient(180deg,
      #86bde8 0%, #a6cfe8 24%, #cbe4de 46%,
      #e9edd6 62%, #f4e6c2 74%, #f4e6c2 100%);
}
.dgs-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 46vh;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header / Bootstrap navbar ---------- */
.site-header .navbar { padding: 16px 0; }
/* Make our max-width .wrap act as the navbar's flex container. */
.site-header .navbar .wrap {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  margin: 0;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.brand span { white-space: nowrap; }
.brand .daisy { width: 34px; height: 34px; flex: none; }

.site-header .navbar-nav { align-items: center; gap: 2px; }
.site-header .nav-link {
  padding: 10px 12px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus { color: var(--leaf-deep); }

/* Hamburger button (shown < md) */
.site-header .navbar-toggler {
  border: 0;
  padding: 6px 8px;
  border-radius: 12px;
}
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(76, 154, 90, 0.35); }

/* Expanded mobile menu becomes a clean white card over the sky. */
@media (max-width: 767.98px) {
  .site-header .navbar-collapse {
    margin-top: 12px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .site-header .navbar-nav { align-items: stretch; }
  .site-header .nav-link { padding: 12px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 28px 0 30px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 6px 0 12px;
  letter-spacing: -0.5px;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 22px;
}
.hero .tagline {
  display: inline-block;
  margin-top: 4px;
  background: rgba(255, 209, 76, 0.25);
  color: var(--center);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

/* ---------- Garden intro ---------- */
.garden-note {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  margin: 20px auto 40px;
  max-width: 760px;
  text-align: center;
}
.garden-note h2 { margin-top: 0; font-size: 1.4rem; font-weight: 800; }
.garden-note p { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Game grid ---------- */
.section-title { text-align: center; margin: 10px 0 24px; font-size: 1.6rem; font-weight: 800; }

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding-bottom: 20px;
}
.game-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(38, 49, 58, 0.18);
}
.game-card img.icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 6px 16px rgba(38, 49, 58, 0.2);
  margin-bottom: 14px;
}
.game-card h3 { margin: 4px 0 8px; font-size: 1.2rem; font-weight: 700; }
.game-card p { color: var(--ink-soft); font-size: 0.96rem; flex: 1; margin: 0 0 18px; }

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}
.appstore-btn:hover { background: #1a1a1a; color: #fff; }
.appstore-btn svg { width: 18px; height: 18px; fill: #fff; }
.badge-soon {
  display: inline-block;
  background: #eef2f5;
  color: var(--ink-soft);
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 30px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--leaf-deep); }
.site-footer .links {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
}
.site-footer .links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
}

.site-footer .social { margin-bottom: 16px; }
.site-footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 7px;
  border-radius: 50%;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  transition: transform 0.18s ease, color 0.18s ease;
}
.site-footer .social a:hover { color: var(--leaf-deep); transform: translateY(-2px); }
.site-footer .social svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Privacy page ---------- */
.doc {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 34px;
  margin: 20px auto 50px;
  max-width: 800px;
}
.doc h1 { margin-top: 0; font-weight: 800; }
.doc h2 { margin-top: 28px; font-size: 1.25rem; font-weight: 700; }
.doc p, .doc li { color: var(--ink-soft); }
.doc .updated { color: var(--ink-soft); font-style: italic; font-size: 0.92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-header .navbar { padding: 12px 0; }
  .brand { font-size: 1.05rem; gap: 10px; }
  .brand .daisy { width: 30px; height: 30px; }

  .hero { padding: 20px 0 20px; }

  .garden-note { padding: 24px 20px; margin: 16px auto 30px; }
  .games { gap: 16px; }
  .game-card { padding: 22px 20px; }
}

@media (max-width: 380px) {
  .brand { font-size: 1rem; gap: 8px; }
  .brand .daisy { width: 28px; height: 28px; }
  .games { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .game-card:hover { transform: none; }
  .site-footer .social a:hover { transform: none; }
}
