/* Fraunces — vietnamese (SIL Open Font License) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/assets/fonts/fraunces-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Fraunces — latin-ext (SIL Open Font License) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/assets/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces — latin (SIL Open Font License) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/assets/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Plus Jakarta Sans — vietnamese (SIL Open Font License) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Plus Jakarta Sans — latin-ext (SIL Open Font License) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Plus Jakarta Sans — latin (SIL Open Font License) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Lotus Kite — one stylesheet for every page. Colours are tokens; dark mode redefines them. */

:root {
  --paper: #fbf6ee;
  --paper-2: #f4ece0;
  --card: #fffdf9;
  --ink: #1d1b3a;
  --ink-2: #4a4766;
  --ink-3: #7a7790;
  --line: #e6dccd;
  --lotus: #ff4f8b;
  --lotus-soft: #ffe1ea;
  --peach: #ffb38a;
  --teal: #2ec4b6;
  --teal-soft: #d9f5f2;
  --indigo: #4361ee;
  --gold: #e9a93b;
  --sky-top: #ffe9d6;
  --sky-bottom: #fbf6ee;
  --shadow: 0 1px 2px rgb(29 27 58 / 6%), 0 8px 24px -8px rgb(29 27 58 / 14%);
  --radius: 22px;
  --max: 1120px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12112a;
    --paper-2: #1a1936;
    --card: #1e1d3d;
    --ink: #f5efe6;
    --ink-2: #c9c4d9;
    --ink-3: #9893b0;
    --line: #2f2d55;
    --lotus-soft: #3b1f3a;
    --teal-soft: #163a46;
    --sky-top: #24204a;
    --sky-bottom: #12112a;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px -10px rgb(0 0 0 / 60%);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--lotus) 55%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--lotus); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.eyebrow { font: 700 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--lotus); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--ink-3); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── Header ─────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.2rem/1 var(--display); }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; font-weight: 600; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--lotus); }
@media (max-width: 640px) { .nav { gap: 14px; font-size: .9rem; } .nav .hide-sm { display: none; } }

/* ── Hero ───────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 32px; padding-block: 64px 48px; }
.hero h1 em { font-style: italic; color: var(--lotus); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.hero-art .sun { position: absolute; inset: 12% 12% auto auto; width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #ffd9a8, var(--peach) 60%, transparent 70%); opacity: .75; }
.hero-art .kite { position: absolute; inset: 10% 14% 8% 10%; color: var(--ink); animation: drift 7s ease-in-out infinite; transform-origin: 50% 70%; }
.hero-art .kite svg { width: 100%; height: 100%; filter: drop-shadow(0 18px 24px rgb(255 79 139 / 22%)); }
.cloud { position: absolute; height: auto; color: var(--gold); opacity: .55; animation: float 16s ease-in-out infinite; }
.cloud.c1 { width: 42%; left: -6%; bottom: 14%; }
.cloud.c2 { width: 30%; right: -4%; top: 52%; animation-delay: -6s; opacity: .4; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(10px, -14px) rotate(3deg); } }
@keyframes float { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(18px); } }
@media (prefers-reduced-motion: reduce) { .hero-art .kite, .cloud { animation: none; } }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 28px 32px; }
  .hero-art { max-width: 260px; order: -1; }
}

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { color: var(--paper); background: var(--lotus); }
.btn-ghost { border-color: var(--line); background: var(--card); }

/* ── Sections ───────────────────────────────────────── */
section { padding-block: 80px; }
section.tight { padding-block: 56px; }
.section-head { margin-bottom: 36px; max-width: 44em; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.principle .dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; font-size: 1.2rem; }
.principle:nth-child(1) .dot { background: var(--teal-soft); }
.principle:nth-child(2) .dot { background: var(--lotus-soft); }
.principle:nth-child(3) .dot { background: color-mix(in srgb, var(--gold) 22%, transparent); }
.principle p { color: var(--ink-2); margin: 0; font-size: .97rem; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } }

/* ── App cards ──────────────────────────────────────── */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.app-card { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.app-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent, var(--lotus)) 55%, var(--line)); }
.app-card .top { display: flex; gap: 14px; align-items: center; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; flex: none; object-fit: cover; box-shadow: 0 4px 14px -4px rgb(0 0 0 / 30%); }
.app-icon.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent, var(--lotus)), color-mix(in srgb, var(--accent, var(--lotus)) 40%, var(--indigo))); color: #fff; font: 700 1.6rem/1 var(--display); }
.app-card h3 { margin: 0; }
.app-card h3 a { text-decoration: none; }
.app-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.app-card .tagline { color: var(--ink-2); margin: 0; font-size: .97rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.chip.status { background: color-mix(in srgb, var(--accent, var(--lotus)) 16%, transparent); color: var(--ink); }

/* ── Game feature ───────────────────────────────────── */
.game { position: relative; overflow: hidden; border-radius: 32px; color: #fdf6e3; min-height: 440px; display: grid; grid-template-columns: 1fr 1fr; isolation: isolate; box-shadow: var(--shadow); }
.game-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.game::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 30 28 / 88%) 0%, rgb(10 30 28 / 62%) 48%, rgb(10 30 28 / 0%) 80%); }
.game-copy { padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.game-copy .eyebrow { color: #f2cf7a; }
.game-logo { width: min(100%, 340px); height: auto; margin: 0 0 10px -8px; filter: drop-shadow(0 6px 18px rgb(0 0 0 / 50%)); }
.game-copy p { color: #e9e2cf; max-width: 32em; }
.game .chip { background: rgb(255 255 255 / 14%); color: #fdf6e3; }
.game .btn { align-self: flex-start; margin-top: 12px; background: #f2cf7a; color: #1d2a22; }
.game .btn:hover { background: #fff; color: #1d2a22; }
@media (max-width: 820px) {
  .game { grid-template-columns: 1fr; min-height: 0; }
  .game::before { background: linear-gradient(180deg, rgb(10 30 28 / 30%) 0%, rgb(10 30 28 / 90%) 55%); }
  .game-copy { padding: 200px 24px 28px; }
}

/* ── About / contact ────────────────────────────────── */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.contact-card dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: .9rem; color: var(--ink-3); background: var(--paper-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-2); }

/* ── Inner pages (app, privacy, support, terms) ─────── */
.page-hero { background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); padding-block: 56px 40px; }
.page-hero .app-head { display: flex; gap: 20px; align-items: center; }
.page-hero .app-icon { width: 88px; height: 88px; border-radius: 22px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }
.crumbs { font-size: .88rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }

.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.subnav a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 600; font-size: .92rem; }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.prose { max-width: 46em; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; font-family: var(--body); font-weight: 700; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; margin: 1em 0 1.6em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.summary { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 16px; padding: 20px 24px; margin: 0 0 28px; }
.summary h2 { margin: 0 0 8px; font-size: 1.15rem; font-family: var(--body); }
.summary ul { margin: 0; }
.prose .feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; padding: 0; list-style: none; }
.feature-list li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0; }
.store-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }

details.faq { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--lotus); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding-bottom: 14px; color: var(--ink-2); }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound svg { width: 120px; margin: 0 auto 18px; color: var(--ink); transform: rotate(-24deg); }
