/* Fun Space — Oakever-style theme: airy pastels, deep green, chunky type, big rounded cards */
:root {
  --green: #0d6e4f;
  --green-dark: #0a5a40;
  --green-deep: #084d37;
  --ink: #111613;
  --muted: #3d4a43;
  --faint: #7a8a81;
  --bg: #fffef8;
  --lime: #ffe9c4;
  --lime-soft: #fff4de;
  --sky-top: #82bbf6;
  --navy: #1d1932;
  --navy-card: #262244;
  --purple: #5f21d3;
  --line: #e4e9e2;
  --radius: 26px;
  --shadow-sm: 0 2px 12px rgba(16, 32, 24, 0.07);
  --shadow-md: 0 14px 36px rgba(16, 32, 24, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: "Fredoka", "Nunito", sans-serif; letter-spacing: -0.01em; }
img { display: block; max-width: 100%; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }

/* ---------- nav (Oakever: transparent fixed -> white) ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0); transition: background 0.25s, box-shadow 0.25s; }
.nav.scrolled { background: rgba(255,255,255,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 26px; color: var(--green); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { text-decoration: none; font-weight: 800; font-size: 15.5px; color: #1a1a1a; transition: color 0.15s; }
.nav-links a:hover { color: var(--green); }
.nav-links a.active { color: var(--green); }
.nav-links a.btn { color: #fff; }
.burger { display: none; border: 1px solid var(--line); background: #fff; border-radius: 12px; font-size: 20px; padding: 6px 13px; cursor: pointer; color: var(--ink); }
.lang { font-weight: 800; font-size: 14.5px; display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }

/* ---------- buttons (Oakever pills) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 38px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; border: none; cursor: pointer; transition: transform 0.15s, background 0.15s, box-shadow 0.15s; font-family: "Nunito", sans-serif; }
.btn:hover { transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); box-shadow: 0 12px 26px rgba(13,110,79,0.32); }
.btn-black { background: #111; color: #fff; }
.btn-black:hover { background: #000; box-shadow: 0 12px 26px rgba(0,0,0,0.3); }
.btn-gradient { background: var(--green); color: #fff; }
.btn-dark { background: #111; color: #fff; }
.btn-light { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.circle-down { width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid var(--green); background: transparent; color: var(--green); font-size: 30px; cursor: pointer; display: grid; place-items: center; transition: all 0.2s; }
.circle-down:hover { background: var(--green); color: #fff; transform: translateY(3px); }

/* ---------- Oakever hero ---------- */
.oak-hero { position: relative; overflow: hidden; padding: 130px 0 60px; background: linear-gradient(180deg, var(--sky-top) 0%, #c3dffd 30%, #fbeed7 60%, var(--lime) 100%); }
.oak-hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 30px; align-items: center; }
.oak-visual { position: relative; height: 560px; }
.oak-phone { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-52%) rotate(-8deg); width: 250px; height: 505px; background: #101418; border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px rgba(10,40,30,0.28); z-index: 2; }
.oak-phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #101418; position: relative; }
.phone-shot { width: 100%; height: 100%; object-fit: cover; }
.phone-tag { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(10, 20, 15, 0.72); color: #fff; font-size: 11px; font-weight: 800; padding: 7px 15px; border-radius: 999px; white-space: nowrap; }
.oak-shadow { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 220px; height: 22px; background: rgba(13,110,79,0.16); border-radius: 50%; filter: blur(4px); }
.float-icon { position: absolute; width: 74px; height: 74px; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 30px rgba(10,40,30,0.22); border: 3px solid #fff; z-index: 3; animation: floaty 5s ease-in-out infinite; background: #fff; }
.float-icon img { width: 100%; height: 100%; object-fit: cover; }
.fi-1 { top: 66px; left: 6%; transform: rotate(-8deg); }
.fi-2 { top: 170px; left: 0%; width: 64px; height: 64px; animation-delay: 0.8s; }
.fi-3 { bottom: 120px; left: 8%; animation-delay: 1.6s; }
.fi-4 { top: 44px; right: 12%; animation-delay: 0.4s; }
.fi-5 { top: 190px; right: 2%; width: 66px; height: 66px; animation-delay: 1.1s; }
.fi-6 { bottom: 150px; right: 8%; animation-delay: 2s; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: 0.95; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.06)); }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud-a { width: 120px; height: 38px; top: 120px; right: 4%; }
.cloud-a::before { width: 52px; height: 52px; top: -24px; left: 18px; }
.cloud-a::after { width: 38px; height: 38px; top: -16px; left: 58px; }
.cloud-b { width: 100px; height: 32px; top: 300px; left: 2%; }
.cloud-b::before { width: 44px; height: 44px; top: -20px; left: 14px; }
.cloud-b::after { width: 30px; height: 30px; top: -12px; left: 48px; }
.oak-title { font-size: 64px; font-weight: 700; color: var(--green); margin: 0 0 10px; letter-spacing: -0.03em; line-height: 1; }
.oak-tagline { font-size: 26px; font-weight: 800; line-height: 1.35; margin: 18px 0 34px; color: #111; max-width: 480px; }

/* ---------- Oakever section shells ---------- */
.oak-games { background: var(--lime); padding: 70px 0 90px; text-align: center; }
.oak-about { background: var(--lime); padding: 40px 0 110px; }
.oak-dark { background: var(--navy); color: #fff; padding: 90px 0 110px; text-align: center; }
.oak-contact { background: #fbfbf9; padding: 90px 0 100px; text-align: center; }
.section-title { font-size: 52px; font-weight: 700; letter-spacing: 0.01em; margin: 0; text-transform: uppercase; }
.section-title.light { color: #fff; }
.section-sub { color: #9aa3b2; font-size: 17px; font-weight: 700; max-width: 760px; margin: 16px auto 0; line-height: 1.6; }

/* stats (Oakever 4-col with dividers) */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 980px; margin: 56px auto 60px; }
.stat { padding: 6px 10px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: rgba(13,110,79,0.45); }
.stat strong { display: block; font-family: "Fredoka", sans-serif; font-size: 54px; font-weight: 700; color: var(--green); line-height: 1; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: #222; }

/* game rail (Oakever horizontal cards) */
.game-rail { display: flex; gap: 22px; overflow-x: auto; padding: 10px 24px 26px; scroll-snap-type: x mandatory; scrollbar-width: none; max-width: 1400px; margin: 0 auto; }
.game-rail::-webkit-scrollbar { display: none; }
.ocard { flex: 0 0 250px; scroll-snap-align: start; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.18s, box-shadow 0.18s; text-decoration: none; text-align: left; }
.ocard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ocard-art { aspect-ratio: 1/1; overflow: hidden; background: #eef3ec; }
.ocard-art img { width: 100%; height: 100%; object-fit: cover; }
.ocard-name { padding: 16px 20px 20px; font-weight: 800; font-size: 17px; color: #111; }
.ocard-sub { display: block; font-size: 12.5px; color: var(--faint); font-weight: 700; margin-top: 3px; }
.rail-cta { margin-top: 34px; }

/* about split */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: 1020px; margin: 50px auto 0; text-align: left; }
.about-split p { font-size: 18px; font-weight: 700; line-height: 1.65; color: #1c2420; margin: 0 0 18px; }
.about-art { border-radius: 28px; overflow: hidden; aspect-ratio: 4/3; display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: var(--shadow-sm); background: #fff; }
.about-art img { width: 100%; height: 100%; object-fit: cover; }

/* dark publishing cards */
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1020px; margin: 54px auto 0; text-align: left; }
.pub-card { background: var(--navy-card); border-radius: 28px; padding: 44px 34px; min-height: 300px; }
.pub-card .pi { font-size: 54px; }
.pub-card h3 { margin: 22px 0 10px; font-size: 22px; }
.pub-card p { margin: 0; color: #a7aec4; font-weight: 600; line-height: 1.65; font-size: 15px; }
.cta-purple { max-width: 1020px; margin: 60px auto 0; background: var(--purple); border-radius: 22px; padding: 56px 30px; }
.cta-purple h3 { margin: 0 0 26px; font-size: 26px; color: #fff; }

/* contact form (Oakever centered) */
.contact-form { max-width: 520px; margin: 40px auto 0; text-align: left; }
.contact-form label { display: block; font-size: 13.5px; font-weight: 800; margin: 20px 0 10px; }
.contact-form input, .contact-form textarea { width: 100%; border: none; outline: none; background: #eef1ee; border-radius: 14px; padding: 16px 20px; font-size: 15.5px; font-family: inherit; color: var(--ink); transition: box-shadow 0.15s; }
.contact-form input:focus, .contact-form textarea:focus { box-shadow: 0 0 0 3px rgba(13,110,79,0.22); background: #fff; }
.contact-form textarea { min-height: 190px; resize: vertical; }
.form-center { text-align: center; margin-top: 28px; }
.store-row { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* footer (deep green) */
.oak-footer { background: var(--green-dark); color: #dcebe3; padding: 34px 0; font-size: 13.5px; }
.oak-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.oak-footer a { color: #fff; text-decoration: none; font-weight: 700; margin-left: 22px; }
.oak-footer a:hover { text-decoration: underline; }

/* ---------- legacy page compat (games/about/contact keep working, new skin) ---------- */
.hero { position: relative; overflow: hidden; padding: 120px 0 70px; background: linear-gradient(180deg, var(--sky-top) 0%, #d8e9fe 45%, var(--lime-soft) 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 13.5px; font-weight: 800; color: var(--muted); box-shadow: var(--shadow-sm); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: 56px; line-height: 1.06; font-weight: 700; margin: 22px 0 18px; }
.grad-text { color: var(--green); }
.hero .sub { font-size: 18px; line-height: 1.65; color: var(--muted); margin: 0 0 30px; max-width: 520px; font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 36px; }
.hstat strong { display: block; font-family: "Fredoka", sans-serif; font-size: 28px; font-weight: 700; color: var(--green); }
.hstat span { font-size: 13.5px; font-weight: 700; color: var(--faint); }
.section { padding: 70px 0; }
.section-soft { background: var(--lime-soft); }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin: 0 0 10px; }
.sec-head h2 { font-size: 38px; margin: 0 0 12px; font-weight: 700; line-height: 1.15; }
.sec-head p { color: var(--muted); font-size: 17px; margin: 0; line-height: 1.6; font-weight: 600; }
.sec-head.split { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; gap: 20px; }
.link-arrow { font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--green); padding-bottom: 2px; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.gcard { background: #fff; border: none; border-radius: 28px; padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform 0.18s, box-shadow 0.18s; display: flex; flex-direction: column; overflow: hidden; }
.gcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.gcard-top { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.gicon { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 8px 20px rgba(16,32,24,0.16); flex-shrink: 0; }
.gcard h3 { margin: 0 0 5px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.stars { font-size: 13px; font-weight: 800; color: var(--green); }
.stars small { color: var(--faint); font-weight: 700; }
.gcard > p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 18px; flex: 1; font-weight: 600; }
.gfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chip-cat { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; padding: 6px 13px; border-radius: 999px; background: #eef4ee; color: var(--green-dark); }
.btn-install { font-size: 13.5px; font-weight: 800; text-decoration: none; color: #fff; background: #111; padding: 10px 20px; border-radius: 999px; white-space: nowrap; }
.btn-install:hover { background: var(--green); }
.store-btns { display: flex; gap: 8px; }
.btn-store { font-size: 12.5px; font-weight: 800; text-decoration: none; padding: 9px 15px; border-radius: 999px; white-space: nowrap; }
.btn-store.gp { color: #fff; background: #111; }
.btn-store.gp:hover { background: var(--green); }
.btn-store.as { color: var(--ink); background: #fff; border: 1.5px solid var(--line); }
.page-hero { padding: 120px 0 30px; text-align: center; background: linear-gradient(180deg, var(--sky-top) 0%, #e4efff 55%, var(--lime-soft) 100%); position: relative; overflow: hidden; }
.page-hero h1 { font-size: 50px; margin: 14px 0 12px; }
.page-hero .sub { color: var(--muted); font-size: 17px; margin: 0 auto; max-width: 620px; font-weight: 600; }
.toolbar { max-width: 760px; margin: 30px auto 0; display: grid; gap: 16px; position: relative; z-index: 1; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border: none; border-radius: 999px; padding: 6px 8px 6px 22px; box-shadow: var(--shadow-sm); }
.search input { flex: 1; border: none; outline: none; font-size: 16px; font-family: inherit; background: transparent; padding: 10px 0; color: var(--ink); }
.pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pill-btn { border: none; background: #fff; border-radius: 999px; padding: 10px 22px; font-weight: 800; font-size: 14px; cursor: pointer; font-family: inherit; color: var(--muted); }
.pill-btn.active { background: var(--green); color: #fff; }
.count-line { text-align: center; color: var(--faint); font-weight: 700; font-size: 14px; margin: 22px 0 0; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { background: #fff; border: none; border-radius: 28px; padding: 32px 28px; box-shadow: var(--shadow-sm); }
.stats-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; background: var(--navy); border-radius: 28px; padding: 48px; color: #fff; text-align: center; }
.stats-band strong { display: block; font-family: "Fredoka", sans-serif; font-size: 46px; color: #fff; }
.stats-band span { color: #a7aec4; font-weight: 700; font-size: 14.5px; }
.mail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mail-card { display: block; text-decoration: none; background: #fff; border: none; border-radius: 28px; padding: 34px 30px; box-shadow: var(--shadow-sm); }
.mail-card b { color: var(--green); }
.prose { background: #fff; border-radius: 28px; padding: 44px 48px; line-height: 1.75; box-shadow: var(--shadow-sm); }
.prose p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 15px; }
.check { width: 26px; height: 26px; border-radius: 50%; background: #dcf3e5; color: var(--green); display: grid; place-items: center; font-size: 14px; font-weight: 900; flex-shrink: 0; margin-top: 1px; }
footer { background: var(--green-deep); color: #cfe3d8; padding: 56px 0 26px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-brand { display: flex; align-items: center; gap: 11px; font-family: "Fredoka", sans-serif; font-size: 22px; color: #fff; font-weight: 700; margin-bottom: 12px; }
.foot-grid h4 { color: #fff; font-size: 14px; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.1em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.foot-grid ul a { text-decoration: none; font-size: 14.5px; font-weight: 600; }
.foot-base { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.hidden { display: none !important; }
.empty { text-align: center; padding: 60px 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .oak-hero-inner { grid-template-columns: 1fr; gap: 10px; }
  .oak-visual { height: 440px; max-width: 560px; margin: 0 auto; width: 100%; }
  .oak-title { font-size: 46px; }
  .about-split { grid-template-columns: 1fr; gap: 30px; }
  .pub-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stat + .stat::before { display: none; }
  .section-title { font-size: 38px; }
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 70px; right: 16px; left: 16px; flex-direction: column; align-items: stretch; background: #fff; border-radius: 20px; padding: 12px; box-shadow: var(--shadow-md); gap: 4px; }
  .nav-links.open { display: flex; }
  .burger { display: block; }
  .oak-hero { padding-top: 104px; }
  .oak-title { font-size: 38px; }
  .oak-tagline { font-size: 20px; }
  .ocard { flex-basis: 200px; }
  .stat strong { font-size: 38px; }
  .hero h1 { font-size: 38px; }
  .grid-3, .values, .mail-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
