:root {
  --forest: #1B4332;
  --forest-dark: #12301f;
  --gold: #FFD21A;
  --accent-red: #E5392E;
  --cream: #F7F5EE;
  --text: #22291f;
  --muted: #5b6357;
  --card-bg: #ffffff;
  --border: #e2e0d4;
}

* {
  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(--text);
  background: var(--cream);
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* Header / Nav */
.site-header {
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  object-position: 40% 45%;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--cream);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--gold);
}

.nav-toggle {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 60vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 48, 31, 0.55) 0%, rgba(18, 48, 31, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 0.5rem;
}

.hero .tagline {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 1.25rem;
}

.hero p.lead {
  max-width: 640px;
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
  color: #eef2ea;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gold);
  color: var(--forest-dark);
}

.btn-primary:hover {
  background: #ffdc4d;
}

.btn-outline {
  border: 2px solid var(--cream);
  color: var(--cream);
  margin-left: 0.75rem;
}

/* App store badges — hidden until the app is actually live on both stores.
   Re-enable by changing this back to `display: flex;`. */
.store-badges {
  display: none;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #000;
  color: #fff;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: background 0.15s ease;
}

.store-badge:hover {
  background: #222;
}

.store-badge .badge-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge .badge-text .small {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.store-badge .badge-text .large {
  font-size: 1.05rem;
  font-weight: 700;
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem;
  color: var(--forest);
}

.section-lead {
  color: var(--muted);
  max-width: 700px;
  margin: 0 0 2rem;
}

/* Feature grid on homepage */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--forest);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-alt {
  background: #eef1e7;
}

/* Mid-page image banner */
.image-banner {
  background-size: cover;
  background-position: center;
  min-height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.image-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 48, 31, 0.45);
}

.image-banner .banner-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 700px;
  padding: 1.5rem;
}

.image-banner h2 {
  color: #fff;
  margin-top: 0;
}

/* Games grid — flexbox (not CSS grid) so a leftover card in the last
   row centers itself automatically via justify-content, instead of
   sitting stuck on the left. */
.games-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  border-top: 5px solid var(--game-color, var(--forest));
  flex: 1 1 300px;
  max-width: 400px;
}

.game-card h3 {
  margin: 0 0 0.4rem;
  color: var(--forest);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-card .players {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.6rem;
}

.game-card .tagline {
  font-style: italic;
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.game-card p.desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

.game-card .info-btn {
  display: inline-block;
  margin-top: 1.1rem;
  background: var(--forest);
  color: #fff;
  border: none;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.game-card .info-btn:hover {
  background: var(--forest-dark);
}

/* Modal popup */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 48, 31, 0.6);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 1000;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  position: relative;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-box h3 {
  margin: 0 0 0.75rem;
  color: var(--forest);
  font-size: 1.3rem;
}

.modal-box p {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-size: 0.95rem;
}

.modal-box ul {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
  color: var(--text);
  font-size: 0.95rem;
}

.modal-box li {
  margin-bottom: 0.3rem;
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

/* Junk bets */
.junk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.junk-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.junk-card h4 {
  margin: 0 0 0.3rem;
  color: var(--forest);
  font-size: 1rem;
}

.junk-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.dot-badge {
  float: right;
  background: var(--gold);
  color: var(--forest-dark);
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}

/* Faded photo background — set --bg-photo inline per section.
   Image is sized by width only (not "cover") so very tall sections
   (e.g. the full games list) don't stretch it into a flat sliver —
   it shows at natural proportions up top and fades into the plain
   cream background further down. */
.photo-bg {
  background-image: linear-gradient(rgba(247, 245, 238, 0.92), rgba(247, 245, 238, 0.92)), var(--bg-photo);
  background-size: 100% 100%, 100% auto;
  background-position: center top, center top;
  background-repeat: no-repeat, no-repeat;
  border-radius: 18px;
}

/* Legal pages */
.legal-content h2 {
  margin-top: 2rem;
}

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

.legal-content p, .legal-content li {
  color: var(--text);
}

.legal-content .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Contact */
.contact-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
}

.contact-box a.email {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}

/* Footer */
.site-footer {
  background: var(--forest-dark);
  color: #cdd6c8;
  padding: 2.5rem 1.25rem;
  margin-top: 2rem;
}

.footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cdd6c8;
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: #93a08c;
}

/* Mobile nav */
@media (max-width: 780px) {
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 1.6rem;
    cursor: pointer;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.open {
    max-height: 400px;
  }

  .nav-links li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 1.25rem;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 0.75rem;
    display: inline-block;
  }
}
