/* Lulu Games website – one stylesheet for every page. */

/* Fredoka by Milena Brandão, SIL Open Font License 1.1 (fonts/OFL-LICENSE.txt), hosted here. */
@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url('fonts/fredoka-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('fonts/fredoka-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #fff7f0;
  --bg2: #ffeef3;
  --surface: #ffffff;
  --text: #2b2550;
  --muted: #6f6a8c;
  --primary: #7b5cff;
  --primary-dark: #5a3be0;
  --line: #f1e6ef;
  --tan: #e2ad6f;
  --c1: #ff5d73;
  --c2: #ffa62b;
  --c3: #22c3a6;
  --c4: #3a86ff;
  --c5: #9b5de5;
  --pink: #ff5d8f;
  --shadow: 0 6px 0 rgb(43 37 80 / 0.06), 0 18px 40px rgb(43 37 80 / 0.08);
  --head: 'Fredoka', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17142a;
    --bg2: #1f1a36;
    --surface: #241f3e;
    --text: #f3f0ff;
    --muted: #b6b0d6;
    --line: #342d56;
    --shadow: 0 6px 0 rgb(0 0 0 / 0.25), 0 18px 40px rgb(0 0 0 / 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, .brand, .btn, .chip, .badge { font-family: var(--head); }
h1, h2, h3 { line-height: 1.2; font-weight: 600; }
a { color: var(--primary); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.3rem; }
.brand img { width: 42px; height: 42px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--bg2); }
.nav a[aria-current] { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 0 var(--primary-dark);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--primary-dark); }
.btn.ghost { background: var(--surface); color: var(--text); box-shadow: 0 5px 0 var(--line); border: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 32px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin: 0 0 14px; letter-spacing: -0.01em; }
.hero h1 .hl { color: var(--primary); }
.hero p { color: var(--muted); font-size: 1.15rem; margin: 0 0 24px; max-width: 520px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { width: min(360px, 80%); position: relative; z-index: 1; animation: float 4s ease-in-out infinite; }
.blob { position: absolute; border-radius: 50%; }
.blob.b1 { width: 78%; aspect-ratio: 1; background: color-mix(in srgb, var(--c2) 22%, transparent); }
.blob.b2 { width: 22%; aspect-ratio: 1; background: color-mix(in srgb, var(--c3) 30%, transparent); top: 4%; right: 6%; }
.blob.b3 { width: 14%; aspect-ratio: 1; background: color-mix(in srgb, var(--c1) 30%, transparent); bottom: 8%; left: 6%; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section.alt { background: var(--bg2); }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 8px; text-align: center; }
.section .lead { text-align: center; color: var(--muted); margin: 0 auto 32px; max-width: 560px; }

/* ---------- game card ---------- */
.game {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.game .icon { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 6px 0 rgb(0 0 0 / 0.08); }
.game h3 { font-size: 1.8rem; margin: 0 0 6px; }
.game p { margin: 0 0 14px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { font-size: 0.85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--bg2); color: var(--text); }
.badge { display: inline-block; font-weight: 600; font-size: 0.95rem; padding: 8px 16px; border-radius: 999px; background: var(--line); color: var(--muted); }

/* ---------- screenshots in phone frames ---------- */
.game { grid-template-columns: auto 1fr; }
.shots { display: flex; justify-content: center; align-items: flex-end; gap: 22px; margin-top: 36px; }
.phone { margin: 0; text-align: center; flex: 0 1 220px; }
.phone.big { flex-basis: 250px; }
.phone img {
  width: 100%;
  height: auto;
  border-radius: 30px;
  border: 7px solid #2b2550;
  background: #2b2550;
  box-shadow: var(--shadow);
}
.phone figcaption { font-family: var(--head); font-weight: 600; margin-top: 12px; }

/* ---------- meet lulu ---------- */
.meet { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 36px; align-items: center; }
.meet .pic { background: var(--surface); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; border: 8px solid color-mix(in srgb, var(--tan) 45%, var(--surface)); max-width: 300px; margin: 0 auto; width: 100%; }
.meet .pic img { width: 72%; }
.meet h2 { text-align: left; }
.meet p { color: var(--muted); }
.meet .facts { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- promises ---------- */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promise div { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.promise .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; }
.promise .ic svg { width: 26px; height: 26px; }
.promise strong { display: block; font-family: var(--head); font-size: 1.2rem; margin-bottom: 4px; }
.promise span { color: var(--muted); font-size: 0.97rem; }

/* ---------- text pages ---------- */
.page-head { text-align: center; padding: 44px 0 8px; }
.page-head img { width: 84px; margin: 0 auto 10px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0; }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 12px 32px 32px; margin: 24px auto 48px; box-shadow: var(--shadow); }
.doc h2 { font-size: 1.3rem; margin: 30px 0 6px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.tldr { background: var(--bg2); border-radius: 18px; padding: 6px 20px; margin-top: 20px; }
.contact-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--bg2); border-radius: 20px; padding: 18px 20px; margin: 20px 0 8px; }
.contact-card p { margin: 0; flex: 1; min-width: 200px; color: var(--muted); }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: '+'; color: var(--primary); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.95rem; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot .brand { font-size: 1.05rem; }
.foot .brand img { width: 32px; height: 32px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .hero .wrap, .meet { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero .actions, .meet .facts { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { width: min(240px, 70%); }
  .meet h2 { text-align: center; }
  .game { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .chips { justify-content: center; }
  .promise { grid-template-columns: 1fr; }
  .shots { gap: 10px; }
  .phone img { border-width: 4px; border-radius: 18px; }
  .phone figcaption { font-size: 0.85rem; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav a { padding: 6px 8px; }
  .brand span { display: none; }
  .doc { padding: 4px 18px 22px; border-radius: 22px; }
  .game { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
  html { scroll-behavior: auto; }
}
