/* Reveloot — static site styles. No build step: edit and deploy. */

:root {
  --forest: #12330a;
  --forest-2: #1c4f0f;
  --leaf: #3f9a1d;
  --lime: #8fd63a;
  --mint: #e9f7dc;
  --cream: #fbfdf7;
  --ink: #1d2a17;
  --ink-soft: #4b5a43;
  --line: #d7e6c8;
  --radius: 22px;
  --display: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--forest-2); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ---------- Bubbles: glossy spheres echoing the logo's trailing dots ---------- */

.bubble {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.85) 0 7%, rgba(255,255,255,0) 22%),
    radial-gradient(circle at 50% 55%, var(--lime) 0%, var(--leaf) 58%, var(--forest-2) 100%);
  box-shadow: inset -10px -14px 28px rgba(10, 40, 4, .35), 0 18px 40px rgba(0, 0, 0, .25);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(var(--dx, 12px), var(--dy, -26px), 0) scale(1.04); }
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: var(--mint);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(143, 214, 58, .28), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(63, 154, 29, .35), transparent 60%),
    linear-gradient(160deg, var(--forest-2), var(--forest) 70%);
  padding: clamp(28px, 5vw, 48px) 0 clamp(96px, 14vw, 160px);
}

.hero .bubble:nth-child(1) { width: 260px; height: 260px; right: -60px; top: 40px; --dx: -18px; --dy: 22px; }
.hero .bubble:nth-child(2) { width: 120px; height: 120px; right: 22%; top: 58%; animation-duration: 11s; }
.hero .bubble:nth-child(3) { width: 64px;  height: 64px;  right: 34%; top: 18%; animation-duration: 9s; --dx: 20px; }
.hero .bubble:nth-child(4) { width: 34px;  height: 34px;  right: 12%; top: 78%; animation-duration: 8s; --dy: -40px; }
.hero .bubble:nth-child(5) { width: 180px; height: 180px; left: -70px; bottom: -60px; animation-duration: 16s; opacity: .7; }

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav .brand img { display: block; height: 68px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.nav ul { display: flex; gap: clamp(14px, 3vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--mint); font-weight: 700; text-decoration: none; }
.nav a:hover { color: #fff; text-decoration: underline; }

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-top: clamp(56px, 10vw, 110px);
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 14px;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}

.hero h1 em { font-style: normal; color: var(--lime); }

.hero p.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: rgba(233, 247, 220, .86);
  margin: 20px 0 0;
  max-width: 34em;
}

/* Wavy bottom edge so the hero "pours" into the page */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 70px;
  background: var(--cream);
  -webkit-mask: radial-gradient(40px 36px at 40px 0, transparent 98%, #000) 0 0 / 80px 100% repeat-x;
          mask: radial-gradient(40px 36px at 40px 0, transparent 98%, #000) 0 0 / 80px 100% repeat-x;
}

/* Page-load reveal */
.rise { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.rise:nth-child(2) { animation-delay: .08s; }
.rise:nth-child(3) { animation-delay: .16s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */

section.block { padding: clamp(48px, 8vw, 88px) 0; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); color: var(--forest-2); }

/* Game card */
.game {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: clamp(20px, 4vw, 36px);
  align-items: center;
  padding: clamp(20px, 4vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 24px 50px -28px rgba(18, 51, 10, .35);
}

.game img.icon { width: 148px; height: 148px; border-radius: 32px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
.game h3 { font-size: 2rem; color: var(--ink); }
.game p { margin: 8px 0 0; color: var(--ink-soft); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.tags li { font-size: .85rem; font-weight: 700; color: var(--forest-2); background: var(--mint); border-radius: 999px; padding: 3px 12px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 20px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .95rem;
  padding: 10px 18px; border-radius: 999px;
  background: var(--forest-2); color: #fff; text-decoration: none;
}
.pill[aria-disabled="true"] { background: #e7efe0; color: var(--ink-soft); cursor: default; }

/* About strip */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.about div { padding: 22px 24px; border-radius: var(--radius); background: var(--mint); }
.about h3 { font-size: 1.35rem; color: var(--forest-2); margin-bottom: 6px; }
.about p { margin: 0; color: var(--ink-soft); }

/* ---------- Simple inner pages (privacy index, 404) ---------- */

.page-hero { padding-bottom: clamp(80px, 10vw, 110px); }
.page-hero .hero-copy { margin-top: clamp(36px, 6vw, 64px); }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }

.policy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.policy-list a {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.policy-list a:hover { border-color: var(--leaf); }
.policy-list img { width: 56px; height: 56px; border-radius: 14px; }
.policy-list strong { display: block; font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
.policy-list span { color: var(--ink-soft); font-size: .95rem; }

.prose { max-width: 680px; }
.prose p { margin: 0 0 1em; }

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

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--ink-soft);
  font-size: .95rem;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Responsive + motion preferences ---------- */

@media (max-width: 640px) {
  .nav .brand img { height: 52px; }
  .game { grid-template-columns: 1fr; text-align: left; }
  .game img.icon { width: 112px; height: 112px; border-radius: 26px; }
  .hero .bubble:nth-child(1) { width: 170px; height: 170px; right: -70px; top: 110px; }
  .hero .bubble:nth-child(2) { right: 6%; top: 72%; width: 80px; height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble, .rise { animation: none; opacity: 1; transform: none; }
}
