/* Shared styles for every page in web/ (landing, privacy, terms). Language hiding is done by site.js. */
:root {
  --brand: #8717F1; --brand-dark: #5A0CB5; --brand-light: #A33DF7;
  --ink: #2B2A3A; --muted: #6B6577; --bg: #FFF8F1; --card: #FFFFFF; --line: #EDE3D8;
  --sakura: #F6B6C8;
  --text: var(--ink); --bg-2: #F3E8FF; --radius: 18px; --shadow: 0 8px 24px rgba(90,12,181,.14);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Nunito, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }


/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(90, 12, 181, .92); backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a.link { color: #fff; text-decoration: none; font-weight: 600; opacity: .9; }
.nav a.link:hover { opacity: 1; text-decoration: underline; }
.langs { display: flex; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; overflow: hidden; }
.langs button { border: 0; background: transparent; color: #fff; font: inherit; font-weight: 800; font-size: .85rem;
  padding: 4px 12px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: #fff; color: var(--brand-dark); }
@media (max-width: 560px) { .nav a.link { display: none; } }

/* Hero */
.hero { background: linear-gradient(160deg, var(--brand-light) 0%, var(--brand) 45%, var(--brand-dark) 100%);
  color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 0; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 12px; }
.hero .jp { font-size: 1.1rem; opacity: .85; letter-spacing: .08em; margin: 0 0 6px; }
.hero p.lead { font-size: 1.15rem; margin: 0 0 24px; max-width: 34em; opacity: .95; }
.hero .shot { align-self: end; justify-self: center; width: min(320px, 80vw); margin-top: 8px; }
.hero .shot img { max-height: 520px; object-fit: cover; object-position: top; border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
.hero .pad { padding-bottom: 56px; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .pad { padding-bottom: 8px; }
  .stores { justify-content: center; }
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 180px; padding: 10px 18px; border-radius: 14px;
  background: #111; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.25); }
.store svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store small { display: block; font-size: .72rem; opacity: .8; line-height: 1.1; }
.store b { display: block; font-size: 1.1rem; line-height: 1.2; }
.store[aria-disabled="true"] { background: rgba(0,0,0,.25); cursor: default; }
.note { font-size: .9rem; opacity: .85; margin-top: 12px; }

/* Sections */
section { padding: 64px 0; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); line-height: 1.2; margin: 0 0 8px; text-align: center; }
.sub { color: var(--muted); text-align: center; margin: 0 auto 36px; max-width: 40em; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -32px; position: relative; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-align: center;
  box-shadow: 0 6px 20px rgba(90,12,181,.08); }
.stat b { display: block; font-size: 1.8rem; color: var(--brand); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem;
  background: #F3E8FF; margin-bottom: 10px; }
.feature h3 { margin: 0 0 6px; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 16px;
  max-width: 1080px; margin: 0 auto; }
.gallery img { width: 230px; flex: none; border-radius: 20px; scroll-snap-align: center;
  box-shadow: 0 8px 24px rgba(90,12,181,.18); }

.games { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.games span { background: #F3E8FF; color: var(--brand-dark); font-weight: 700; border-radius: 999px; padding: 6px 14px; }

.next { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; text-align: center; }
.levels { display: flex; justify-content: center; gap: 8px; margin: 16px 0 0; flex-wrap: wrap; }
.levels span { border-radius: 10px; padding: 6px 14px; font-weight: 800; border: 2px dashed var(--line); color: var(--muted); }
.levels span.on { border: 2px solid var(--brand); background: var(--brand); color: #fff; }

.faq { max-width: 760px; margin: 0 auto; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
summary { font-weight: 800; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }
.contact { text-align: center; margin-top: 24px; font-size: 1.05rem; }

footer { background: var(--brand-dark); color: #E9DDFB; padding: 28px 0; font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer a { color: #fff; }
footer .credits { flex-basis: 100%; opacity: .75; font-size: .85rem; }

/* Store buttons: no href (link still empty in config.js) = "Coming soon" label. */
.store:not([href]) { background: rgba(0,0,0,.25); cursor: default; }
.store[href] .soon, .store:not([href]) .get { display: none; }

/* More apps from the studio (cards rendered by ../more-games.js) */
.more-games { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.mg-card { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto 1fr; gap: 4px 14px; align-items: start; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.mg-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mg-icon { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 30px; background: var(--bg-2); object-fit: cover; }
.mg-text { color: var(--muted); font-weight: 500; font-size: 14px; line-height: 1.45; }

/* Legal pages (privacy, terms): <body class="doc"> */
.doc-head { background: linear-gradient(160deg, var(--brand-light), var(--brand) 45%, var(--brand-dark)); color: #fff; padding: 24px 16px; }
.doc-head .bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; max-width: 820px; margin: 0 auto; }
.doc-head h1 { margin: 0; font-size: 1.5rem; line-height: 1.3; }
.doc-head nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.doc-head nav a { color: #fff; }
.doc main { max-width: 820px; margin: 0 auto; padding: 16px; }
.doc main section { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 16px 0; }
.doc h3 { font-size: 1.05rem; margin-bottom: 4px; }
.muted { color: var(--muted); }
