:root {
  --bg: #fff8f3;
  --bg-2: #fdeee6;
  --card: #ffffff;
  --ink: #4a2622;
  --ink-2: #7a524b;
  --muted: #a07f78;
  --line: #f3dfd6;
  --coral: #e8553b;
  --coral-2: #f27a55;
  --coral-soft: #fde2d8;
  --yellow: #f4c73f;
  --pink: #ee86b4;
  --purple: #9a74dc;
  --blue: #69b7ea;
  --green: #a6db7a;
  --mint: #dff6ec;
  --lilac: #ece6fb;
  --radius: 22px;
  --shadow: 0 10px 30px -12px rgba(120, 60, 40, 0.22);
  --shadow-sm: 0 4px 14px -6px rgba(120, 60, 40, 0.2);
  --head: "Baloo 2", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: linear-gradient(180deg, #fffaf6 0%, var(--bg) 40%, #fdf0e8 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--coral); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-2); }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 243, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(243, 223, 214, 0.7);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 1.25rem; line-height: 1; }
.brand small { display: block; font-family: var(--body); font-weight: 700; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-top: 3px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a, .nav-links button.drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  font: 700 .95rem var(--body); color: var(--ink-2); text-decoration: none;
  background: none; border: 0; cursor: pointer;
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links button.drop-btn:hover { background: var(--coral-soft); color: var(--coral); }
.nav-links a.active, .nav-links .has-drop.active > button { background: var(--coral-soft); color: var(--coral); }
.has-drop { position: relative; }
.drop-btn svg { transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge across the gap */
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown, .has-drop.open .dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.has-drop:hover .drop-btn svg, .has-drop.open .drop-btn svg { transform: rotate(180deg); }
.dropdown a { display: flex !important; gap: 12px; align-items: center; padding: 10px 12px !important; border-radius: 12px !important; }
.dropdown .di { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.dropdown strong { display: block; color: var(--ink); font-size: .95rem; }
.dropdown span.sub { display: block; font-weight: 600; font-size: .78rem; color: var(--muted); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 800 1rem var(--body); text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { color: #fff; background: linear-gradient(180deg, var(--coral-2), var(--coral)); box-shadow: 0 8px 20px -8px rgba(232, 85, 59, .7), inset 0 -3px 0 rgba(0,0,0,.08); }
.btn-primary:hover { box-shadow: 0 12px 24px -8px rgba(232, 85, 59, .8); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--coral-soft); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.store-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: #1c1210; color: #fff; text-decoration: none; padding: 9px 18px; border-radius: 14px; min-width: 160px; box-shadow: var(--shadow-sm); }
.store-btn small { display: block; font-size: .64rem; opacity: .8; line-height: 1.1; }
.store-btn b { display: block; font-family: var(--head); font-size: 1.12rem; line-height: 1.1; }

/* ---------- Pills / eyebrows ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-head p { font-size: 1.08rem; }

.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.18rem; max-width: 540px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/10; background: var(--bg-2); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
/* fanned phone screenshots from the design PDF */
.hero-phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.hero-phones .hp { margin: 0; width: 220px; aspect-ratio: 234/507; border-radius: 30px; overflow: hidden; border: 6px solid #fff; background: #fff; box-shadow: var(--shadow); flex: none; }
.hero-phones .hp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-phones .hp-mid { position: relative; z-index: 2; width: 240px; }
.hero-phones .hp-left { transform: translateX(40px) rotate(-8deg) scale(.88); }
.hero-phones .hp-right { transform: translateX(-40px) rotate(8deg) scale(.88); }
.hero-phones-sm { position: absolute; inset: 0; min-height: 0; }
.hero-phones-sm .hp { width: 180px; }
.hero-phones-sm .hp-left { transform: translateX(18px) rotate(-6deg); z-index: 2; }
.hero-phones-sm .hp-right { transform: translateX(-18px) rotate(6deg) translateY(20px); }
.hl { color: var(--coral); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; }

.stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.stats div b { display: block; font-family: var(--head); font-size: 1.8rem; color: var(--ink); line-height: 1; }
.stats div span { font-size: .85rem; font-weight: 700; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card p { margin: 0; font-size: .96rem; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; font-size: 1.4rem; }
.t-coral { background: var(--coral-soft); } .t-mint { background: var(--mint); } .t-lilac { background: var(--lilac); } .t-yellow { background: #fff1c9; } .t-blue { background: #dcefff; }

/* game showcase card on home */
.game-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.game-feature .gf-art { background: linear-gradient(160deg, #ffe7da, #fde0e8); position: relative; min-height: 360px; }
.game-feature .gf-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.game-feature .gf-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag { padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--coral-soft); color: var(--coral); }
.tag.mint { background: var(--mint); color: #2d8a63; } .tag.lilac { background: var(--lilac); color: #6a4fc0; }
.coming { border: 2px dashed var(--line); border-radius: 24px; padding: 30px; text-align: center; color: var(--muted); background: rgba(255,255,255,.5); }

/* phones gallery */
.phones { display: flex; gap: 22px; overflow-x: auto; padding: 10px 4px 26px; scroll-snap-type: x mandatory; }
.phone { flex: none; width: 220px; scroll-snap-align: start; text-align: center; }
.phone .frame { border-radius: 30px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow); background: #fff; aspect-ratio: 234/507; }
.phone .frame img { width: 100%; height: 100%; object-fit: cover; }
.phone figcaption { margin-top: 12px; font-weight: 800; font-size: .92rem; color: var(--ink-2); }

.rules .card { position: relative; }
.rule-num { position: absolute; top: 18px; right: 20px; font-family: var(--head); font-weight: 800; font-size: 2.4rem; color: var(--line); line-height: 1; }

.wide-art { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }

.cta-band { background: linear-gradient(135deg, #f27a55, #e8553b 60%, #d9443a); border-radius: 32px; padding: 54px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2, .cta-band p { color: #fff; margin: 0; }
.cta-band p { opacity: .9; margin-top: 8px; }
.cta-band .btn-ghost { border: 0; }

/* ---------- Legal / doc pages ---------- */
.doc { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 48px 52px; box-shadow: var(--shadow-sm); margin: 56px auto 80px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.35rem; margin-top: 1.8em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; } .doc li { margin-bottom: .45em; }
.doc .meta { font-size: .9rem; color: var(--muted); }
.doc strong { color: var(--ink); }
details.faq { background: var(--bg); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; border: 1px solid var(--line); }
details.faq summary { font-weight: 800; cursor: pointer; color: var(--ink); }
details.faq p { margin: 10px 0 0; }

/* contact */
.contact-grid { margin: 56px auto 80px; }
.contact-info .card { margin-bottom: 16px; display: flex; gap: 14px; align-items: flex-start; }
.contact-info .icon-tile { margin: 0; flex: none; }
.contact-info h3 { margin: 0 0 2px; font-size: 1.05rem; }
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 800; font-size: .9rem; color: var(--ink); }
.form input, .form select, .form textarea { font: 600 1rem var(--body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--coral-2); box-shadow: 0 0 0 4px rgba(242, 122, 85, .15); }
.form textarea { min-height: 140px; resize: vertical; }
.hidden { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: #fbe6dc; padding: 56px 0 24px; margin-top: auto; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 1.05rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .94rem; }
.site-footer ul a:hover { color: var(--coral); }
.site-footer p { font-size: .94rem; }
.foot-bottom { border-top: 1px solid #f1d2c4; margin-top: 40px; padding-top: 20px; font-size: .86rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .game-feature, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: grid; place-items: center; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; gap: 2px; display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button.drop-btn { width: 100%; justify-content: space-between; padding: 12px 14px; }
  .dropdown { position: static; transform: none !important; opacity: 1; pointer-events: auto; box-shadow: none; border: 0; padding: 0 0 0 10px; display: none; min-width: 0; }
  .has-drop.open .dropdown { display: block; }
  .dropdown::before { display: none; }
  .has-drop:hover .dropdown { opacity: 1; }
  .nav-cta .btn { display: none; }
  .game-feature .gf-art { min-height: 400px; }
  .hero-phones { min-height: 440px; }
  .hero-phones .hp { width: 160px; } .hero-phones .hp-mid { width: 180px; }
  .hero-phones .hp-left { transform: translateX(46px) rotate(-8deg) scale(.85); } .hero-phones .hp-right { transform: translateX(-46px) rotate(8deg) scale(.85); }
  .hero-phones-sm .hp { width: 150px; }
  .game-feature .gf-body { padding: 30px; }
}
@media (max-width: 600px) {
  .hero-phones { min-height: 360px; }
  .hero-phones .hp { width: 120px; border-width: 4px; border-radius: 22px; } .hero-phones .hp-mid { width: 145px; }
  .hero-phones-sm .hp { width: 125px; }
  section { padding: 60px 0; }
  .grid-3, .grid-4, .foot-grid, .form .row2 { grid-template-columns: 1fr; }
  .doc { padding: 30px 22px; }
  .cta-band { padding: 34px 26px; }
}
