/* Riverland Games — studio & Dam! site. Original design, inspired by bold casual-studio sites. */
@font-face {
  font-family: 'Lilita One';
  src: url('/assets/LilitaOne-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --teal: #0ea58e;
  --teal-deep: #0a7c6a;
  --pine: #13291f;
  --pine-2: #0e2019;
  --gold: #ffc42e;
  --gold-deep: #f0a500;
  --cream: #fff4dc;
  --wood: #8a5326;
  --ink: #16241e;
  --white: #ffffff;
  --display: 'Lilita One', 'Arial Black', sans-serif;
  --body: 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--pine-2);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled, .site-header.solid { background: rgba(14,32,25,.92); box-shadow: 0 4px 24px rgba(0,0,0,.25); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 3px 0 rgba(0,0,0,.28); }
.brand span {
  font-family: var(--display); font-size: 1.15rem; letter-spacing: .04em;
  color: var(--white); text-transform: uppercase; text-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.play-pill {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .05em;
  background: var(--gold); color: var(--pine); text-decoration: none;
  padding: 10px 26px; border-radius: 999px; font-size: 1rem;
  border: 3px solid var(--pine); box-shadow: 0 4px 0 rgba(0,0,0,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.play-pill:hover { transform: translateY(-2px) rotate(-1.5deg); box-shadow: 0 6px 0 rgba(0,0,0,.35); }
.menu-btn {
  width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; gap: 0;
}
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after {
  content: ''; display: block; width: 30px; height: 4px; border-radius: 4px;
  background: var(--white); transition: transform .25s ease, opacity .2s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.3);
}
.menu-btn .bars::before { transform: translateY(-9px); }
.menu-btn .bars::after { transform: translateY(5px); }
body.menu-open .menu-btn .bars { transform: rotate(45deg); }
body.menu-open .menu-btn .bars::before { transform: translateY(0) rotate(0); opacity: 0; }
body.menu-open .menu-btn .bars::after { transform: translateY(-4px) rotate(-90deg); }

/* ---------- menu overlay ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 50; background: var(--pine);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 90px clamp(24px, 7vw, 80px) 40px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
body.menu-open .menu-overlay { opacity: 1; pointer-events: auto; }
.menu-overlay a {
  font-family: var(--display); color: var(--white); text-decoration: none;
  font-size: clamp(2.2rem, 7vw, 4.2rem); text-transform: uppercase; line-height: 1.12;
  transition: color .15s ease, transform .15s ease;
}
.menu-overlay a:hover { color: var(--gold); transform: translateX(10px); }
.menu-overlay .menu-foot { margin-top: 34px; color: #b9d6c9; font-size: .95rem; }
.menu-overlay .menu-foot a { font-family: var(--body); font-size: .95rem; text-transform: none; color: #b9d6c9; text-decoration: underline; }

/* ---------- shared display type ---------- */
.display {
  font-family: var(--display); text-transform: uppercase; line-height: .98;
  letter-spacing: .01em;
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; overflow: hidden; padding: 110px 20px 60px;
}
.hero h1 {
  color: var(--white); font-size: clamp(3rem, 11.5vw, 9rem);
  text-shadow: 0 6px 0 rgba(0,0,0,.18);
  position: relative; z-index: 3;
}
.hero h1 .line { display: block; }
.hero .tag {
  position: relative; z-index: 3; margin-top: 26px; color: #eafff9;
  font-size: clamp(1rem, 2.4vw, 1.3rem); font-weight: 600; max-width: 34ch;
}
.hero-buck {
  position: absolute; z-index: 2; right: clamp(-30px, 2vw, 90px); bottom: -14px;
  width: clamp(190px, 30vw, 420px); pointer-events: none;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.3));
}
.float-obj { position: absolute; z-index: 1; pointer-events: none; will-change: transform; }
.float-obj img { width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.28)); }
.bob { animation: bob 5.2s ease-in-out infinite; }
.bob.d1 { animation-delay: -1.1s; } .bob.d2 { animation-delay: -2.3s; }
.bob.d3 { animation-delay: -3.4s; } .bob.d4 { animation-delay: -.6s; }
.bob.d5 { animation-delay: -1.9s; } .bob.d6 { animation-delay: -4.2s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-18px) rotate(3.5deg); }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(70px, 11vw, 140px) clamp(20px, 6vw, 70px); overflow: hidden; }
.section-cream { background: var(--cream); }
.section-gold { background: var(--gold); }
.section-pine { background: var(--pine); color: var(--white); }
.section-teal { background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%); color: var(--white); }
.section h2 { font-size: clamp(2.2rem, 6.5vw, 5rem); color: inherit; position: relative; z-index: 2; }
.section-gold h2 { color: var(--pine); text-shadow: 0 4px 0 rgba(255,255,255,.35); }
.statement { text-align: center; }
.statement h2 { font-size: clamp(2.4rem, 7.5vw, 6rem); text-shadow: 0 5px 0 rgba(0,0,0,.14); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.55; max-width: 56ch; position: relative; z-index: 2; }

/* games grid */
.games-head { text-align: center; margin-bottom: clamp(36px, 6vw, 70px); }
.games-head p { margin-top: 14px; color: #5c5232; font-weight: 600; font-size: clamp(1rem, 2vw, 1.2rem); }
.games-grid {
  display: grid; gap: clamp(22px, 4vw, 44px); max-width: 1150px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); position: relative; z-index: 2;
}
.game-card {
  position: relative; display: block; text-decoration: none; background: var(--white);
  border-radius: 34px; padding: 40px 30px 34px; text-align: center;
  border: 4px solid var(--pine); box-shadow: 0 10px 0 rgba(19,41,31,.9);
  transition: transform .18s ease, box-shadow .18s ease;
}
.game-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 18px 0 rgba(19,41,31,.9); }
.game-card img.gicon { width: 148px; height: 148px; margin: 0 auto 20px; border-radius: 34px; box-shadow: 0 6px 0 rgba(0,0,0,.15); }
.game-card h3 { font-family: var(--display); font-size: 2.4rem; color: var(--pine); text-transform: uppercase; }
.game-card p { margin-top: 10px; color: #4c5347; font-weight: 600; line-height: 1.45; }
.game-card .cta {
  display: inline-block; margin-top: 22px; font-family: var(--display); text-transform: uppercase;
  color: var(--pine); font-size: 1.1rem; border-bottom: 4px solid var(--gold); padding-bottom: 3px;
}
.game-card.soon { background: transparent; border-style: dashed; box-shadow: none; display: grid; place-items: center; min-height: 280px; }
.game-card.soon h3 { color: rgba(19,41,31,.45); }
.game-card.soon:hover { transform: none; }

/* studio block */
.studio-wrap { display: grid; gap: 34px; align-items: center; max-width: 1150px; margin: 0 auto; position: relative; z-index: 2; }
.studio-wrap .lead { color: #d9efe3; }
.studio-art { width: min(340px, 62vw); margin: 0 auto; filter: drop-shadow(0 16px 20px rgba(0,0,0,.35)); }
@media (min-width: 880px) { .studio-wrap { grid-template-columns: 1.25fr .75fr; } }

/* explore links */
.explore { display: grid; gap: 6px; max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.explore a {
  display: flex; align-items: center; justify-content: space-between; text-decoration: none;
  font-family: var(--display); text-transform: uppercase; color: var(--pine);
  font-size: clamp(1.7rem, 4.5vw, 3rem); padding: 20px 6px; border-bottom: 4px solid rgba(19,41,31,.18);
  transition: padding .15s ease, color .15s ease;
}
.explore a:hover { color: var(--teal-deep); padding-left: 18px; }
.explore a .arr { font-family: var(--body); font-weight: 800; }

/* ---------- Dam! page ---------- */
.game-hero { position: relative; background: linear-gradient(180deg, var(--pine) 0%, var(--pine-2) 100%); color: var(--white); padding: 130px 20px 70px; overflow: hidden; }
.game-hero-inner { position: relative; z-index: 3; max-width: 1150px; margin: 0 auto; display: grid; gap: 30px; align-items: center; }
@media (min-width: 920px) { .game-hero-inner { grid-template-columns: 1.05fr .95fr; } }
.game-hero .gicon { width: 130px; height: 130px; border-radius: 30px; box-shadow: 0 8px 0 rgba(0,0,0,.35); margin-bottom: 18px; }
.game-hero h1 { font-size: clamp(3.4rem, 10vw, 7.5rem); color: var(--white); text-shadow: 0 6px 0 rgba(0,0,0,.3); }
.game-hero h1 small { display: block; font-size: .32em; color: var(--gold); letter-spacing: .14em; margin-top: 6px; }
.game-hero .lead { color: #d9efe3; margin-top: 18px; }
.coming-pill {
  display: inline-block; margin-top: 26px; font-family: var(--display); text-transform: uppercase;
  background: var(--gold); color: var(--pine); border-radius: 999px; padding: 12px 30px;
  font-size: 1.05rem; letter-spacing: .05em; border: 3px solid rgba(0,0,0,.55); box-shadow: 0 4px 0 rgba(0,0,0,.4);
}
.postcard {
  border-radius: 30px; overflow: hidden; border: 5px solid rgba(255,255,255,.9);
  box-shadow: 0 22px 44px rgba(0,0,0,.45); transform: rotate(2deg);
}
.postcard img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/4.6; }

.features { display: grid; gap: clamp(20px, 3.4vw, 36px); max-width: 1150px; margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); position: relative; z-index: 2; }
.feature-card { background: var(--white); border-radius: 28px; padding: 30px 24px; border: 4px solid var(--pine); box-shadow: 0 8px 0 rgba(19,41,31,.9); }
.feature-card img { width: 96px; height: 96px; object-fit: contain; margin-bottom: 16px; }
.feature-card h3 { font-family: var(--display); text-transform: uppercase; color: var(--pine); font-size: 1.45rem; line-height: 1.05; }
.feature-card p { margin-top: 10px; color: #4c5347; line-height: 1.5; font-size: .98rem; }

.showcase { max-width: 1000px; margin: 0 auto; position: relative; z-index: 2; }
.showcase figure { border-radius: 30px; overflow: hidden; border: 5px solid var(--pine); box-shadow: 0 14px 0 rgba(19,41,31,.9); }
.showcase img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.showcase figcaption { text-align: center; margin-top: 18px; font-weight: 700; color: #5c5232; }

.fair { max-width: 820px; margin: 0 auto; position: relative; z-index: 2; }
.fair ul { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.fair li { display: flex; gap: 12px; align-items: flex-start; color: #d9efe3; font-size: 1.05rem; line-height: 1.5; overflow-wrap: anywhere; min-width: 0; }
.fair li::before { content: ''; flex: 0 0 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- footer ---------- */
.site-footer { background: var(--pine-2); color: #b9d6c9; padding: 60px clamp(20px, 6vw, 70px) 40px; }
.footer-grid { display: grid; gap: 30px; max-width: 1150px; margin: 0 auto; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer .brand img { width: 54px; height: 54px; }
.site-footer h4 { font-family: var(--display); text-transform: uppercase; color: var(--white); font-size: 1.05rem; margin-bottom: 14px; letter-spacing: .05em; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot-note { max-width: 1150px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid rgba(185,214,201,.2); font-size: .85rem; color: #7fa592; display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; }

/* ---------- legal stubs ---------- */
.legal { background: var(--cream); min-height: 100svh; padding: 130px 20px 80px; }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal h1 { font-family: var(--display); color: var(--pine); font-size: clamp(2.2rem, 6vw, 3.6rem); text-transform: uppercase; }
.draft-note {
  margin: 26px 0; background: #fff; border: 3px dashed var(--gold-deep); border-radius: 18px;
  padding: 18px 20px; color: #6b5a22; font-weight: 600; line-height: 1.5;
}
.legal p { line-height: 1.65; color: #3d463c; margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bob { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
