/* Foster Lab – design system (hướng Tươi sáng & vui nhộn) */
:root{
  --green:#2F7A4D; --green-dark:#225C3A; --yellow:#F7C948; --orange:#FF7A1A;
  --teal:#1FA97A; --pink:#FF5FA2; --ink:#142033; --muted:#5A5676;
  --tint-green:#EAF3EA; --tint-orange:#FFF1E6; --cream:#FBF6EC; --line:#E3E8EF; --white:#FFFFFF;
  --font-display:'Baloo 2','Nunito',system-ui,sans-serif; --font-body:'Nunito','Segoe UI',system-ui,sans-serif;
  --r-card:24px; --r-btn:999px; --shadow:0 6px 0 var(--ink); --shadow-sm:0 4px 0 var(--ink);
  --wrap:1200px; --pad:32px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--white);color:var(--ink);font-family:var(--font-body);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:var(--green)}a:hover{color:var(--green-dark)}
h1,h2,h3{font-family:var(--font-display);font-weight:800;line-height:1.1;letter-spacing:-.01em;margin:0}
h1{font-size:clamp(40px,5.2vw,64px);line-height:1.05;letter-spacing:-.015em}
h2{font-size:clamp(32px,3.6vw,44px)}
h3{font-size:22px;line-height:1.2}
p{margin:0}
.muted{color:var(--muted)}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--pad)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:8px;background:var(--yellow);padding:8px 14px;border-radius:12px;font-weight:800;z-index:100}
.skip:focus{left:8px}

/* chips & buttons */
.chip{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 14px;border-radius:999px;background:var(--yellow);border:2px solid var(--ink);font-weight:800;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--ink);text-decoration:none}
.chip--orange{background:var(--orange)}.chip--green{background:var(--green);color:#fff}.chip--teal{background:var(--teal)}
.tag{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;background:var(--tint-green);border:2px solid var(--ink);font-weight:800;font-size:12px}
.tag--new{background:var(--yellow)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 26px;border-radius:var(--r-btn);background:var(--green);color:#fff;border:2px solid var(--ink);box-shadow:0 5px 0 var(--ink);font-weight:800;font-size:18px;text-decoration:none;cursor:pointer;font-family:var(--font-body);transition:transform .08s,box-shadow .08s}
.btn:hover{color:#fff;transform:translateY(2px);box-shadow:0 3px 0 var(--ink)}
.btn:active{transform:translateY(5px);box-shadow:0 0 0 var(--ink)}
.btn--ghost{background:#fff;color:var(--ink)}.btn--ghost:hover{color:var(--ink)}
.btn--yellow{background:var(--yellow);color:var(--ink);border-color:#fff;box-shadow:0 5px 0 #fff}.btn--yellow:hover{color:var(--ink);box-shadow:0 3px 0 #fff}
.btn--sm{min-height:48px;padding:0 22px;font-size:16px;box-shadow:var(--shadow-sm)}
.btn svg{width:20px;height:20px;flex:0 0 auto}
.store{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:12px;background:var(--ink);color:#fff;border:2px solid var(--ink);box-shadow:0 3px 0 var(--ink);font-weight:800;font-size:15px;text-decoration:none;transition:transform .08s,box-shadow .08s}
.store:hover{color:#fff;transform:translateY(1px);box-shadow:0 2px 0 var(--ink)}
.store--light{background:#fff;color:var(--ink)}.store--light:hover{color:var(--ink)}
.store svg{width:18px;height:18px}
.row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}

/* header */
.site-header{border-bottom:2px solid var(--ink);background:#fff;position:relative;z-index:20}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:16px;padding-bottom:16px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-family:var(--font-display);font-weight:800;font-size:24px}
.brand img{width:44px;height:44px;border-radius:12px}
.nav{display:flex;align-items:center;gap:32px;font-weight:700;font-size:17px}
.nav a{color:var(--ink);text-decoration:none;padding:10px 0}
.nav a:hover,.nav a[aria-current]{color:var(--green)}
.menu-btn{display:none;width:44px;height:44px;border-radius:12px;background:#fff;color:var(--ink);border:2px solid var(--ink);box-shadow:0 3px 0 var(--ink);align-items:center;justify-content:center;padding:0;cursor:pointer}
.menu-btn svg{width:22px;height:22px}
@media (max-width:900px){
  .nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:2px solid var(--ink);flex-direction:column;align-items:stretch;gap:0;padding:8px 20px 16px}
  .nav a{padding:12px 0;border-bottom:2px solid var(--line)}
  .nav.is-open{display:flex}
  .menu-btn{display:inline-flex}
  .header-cta{display:none}
}

/* sections */
.section{padding:96px 0}
.section--tight{padding:80px 0}
.section--tint{background:var(--tint-green);border-top:2px solid var(--ink);border-bottom:2px solid var(--ink)}
.section--orange{background:var(--tint-orange);border-top:2px solid var(--ink);border-bottom:2px solid var(--ink)}
.section--line{border-top:2px solid var(--ink)}
.section-head{display:flex;flex-direction:column;gap:12px;max-width:720px;margin-bottom:40px}
.section-head .chip{align-self:flex-start}
.section-head p{font-size:18px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;align-items:center}
@media (max-width:960px){.grid-2{grid-template-columns:minmax(0,1fr)}.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.section{padding:72px 0}}
@media (max-width:640px){.grid-3,.grid-4{grid-template-columns:minmax(0,1fr)}:root{--pad:20px}.section{padding:64px 0}}

/* hero */
.hero{position:relative;overflow:hidden}
.hero .wrap{padding-top:72px;padding-bottom:80px}
.hero-copy{display:flex;flex-direction:column;gap:24px}
.hero-copy .chip{align-self:flex-start}
.hero-copy .lead{font-size:20px;max-width:560px}
.rating{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-weight:800;font-size:16px}
.rating svg{width:22px;height:22px}
.hero-visual{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;min-height:680px}
.blob{position:absolute;border:2px solid var(--ink)}
.blob--yellow{left:6%;top:4%;width:210px;height:210px;border-radius:50%;background:var(--yellow)}
.blob--ring{right:3%;top:16%;width:124px;height:124px;border-radius:50%;border:14px solid var(--teal)}
.blob--orange{left:2%;bottom:14%;width:112px;height:112px;border-radius:28px;background:var(--orange);transform:rotate(14deg)}
.blob--pink{right:10%;bottom:6%;width:58px;height:58px;border-radius:50%;background:var(--pink)}
.phone{position:relative;z-index:1;width:300px;height:600px;border-radius:44px;background:var(--ink);padding:14px;box-shadow:0 18px 40px rgba(20,32,51,.25)}
.phone img{width:100%;height:100%;object-fit:cover;object-position:top;border-radius:32px}
.sticker{position:absolute;top:-16px;right:-44px;z-index:2;display:inline-flex;align-items:center;height:44px;padding:0 18px;border-radius:999px;background:var(--yellow);border:2px solid var(--ink);box-shadow:0 4px 0 var(--ink);font-family:var(--font-display);font-weight:800;font-size:18px;transform:rotate(8deg)}
.mode-chips{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.mode-chips span{display:inline-flex;align-items:center;height:30px;padding:0 12px;border-radius:999px;background:#fff;border:2px solid var(--ink);font-weight:800;font-size:13px}
.mode-chips span.alt{background:var(--tint-green)}
@media (max-width:960px){.hero .wrap{padding-top:40px;padding-bottom:48px}.hero-visual{min-height:0;padding-top:32px}.phone{width:240px;height:480px;padding:12px;border-radius:38px}.phone img{border-radius:28px}.sticker{right:-30px;height:40px;font-size:16px}.blob--yellow{left:-30px;top:40px;width:150px;height:150px}.blob--ring{right:-20px;top:120px;width:96px;height:96px;border-width:12px}.blob--orange{left:-10px;bottom:90px;width:84px;height:84px}.blob--pink{right:10px;bottom:70px;width:44px;height:44px}}

/* cards */
.card{background:#fff;border:2px solid var(--ink);border-radius:var(--r-card);box-shadow:var(--shadow);padding:28px;display:flex;flex-direction:column;gap:16px}
.card--media{padding:0;overflow:hidden}
.card--media img{width:100%;height:420px;object-fit:cover;object-position:top;border-bottom:2px solid var(--ink)}
.card--media .card-body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:6px}
.card-body p{font-size:15px}
.game-head{display:flex;align-items:center;gap:16px}
.game-head img{width:76px;height:76px;flex:0 0 auto;border-radius:22px;border:2px solid var(--ink)}
.game-head h3{font-size:24px;line-height:1.15}
.game-head .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.card .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto}
.more{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:800;font-size:15px;text-decoration:none}
.more svg{width:18px;height:18px}
.feature{gap:14px;padding:24px}
.feature .ico{width:52px;height:52px;border-radius:16px;border:2px solid var(--ink);display:flex;align-items:center;justify-content:center;color:var(--ink)}
.feature .ico svg{width:26px;height:26px}
.feature p{font-size:15px}
.ico--yellow{background:var(--yellow)}.ico--green{background:var(--green);color:#fff!important}.ico--teal{background:var(--teal)}.ico--pink{background:var(--pink)}.ico--orange{background:var(--orange)}
@media (max-width:640px){.card{padding:22px}.card--media img{height:360px}.feature{flex-direction:row;align-items:flex-start}.feature .ico{flex:0 0 auto;width:48px;height:48px}}

/* stats */
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:40px 0}
.stat{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}
.stat b{font-family:var(--font-display);font-weight:800;font-size:48px;line-height:1;display:flex;align-items:center;gap:8px}
.stat b svg{width:36px;height:36px}
.stat span{font-weight:700;color:var(--muted);font-size:16px}
@media (max-width:640px){.stats{grid-template-columns:minmax(0,1fr);padding:32px 0;gap:20px}.stat{flex-direction:row;text-align:left;gap:16px}.stat b{font-size:40px;min-width:110px}}

/* CTA band */
.cta{background:var(--ink);color:#fff}
.cta .wrap{padding:88px var(--pad);display:flex;flex-direction:column;align-items:center;text-align:center;gap:24px}
.cta h2{font-size:clamp(38px,4.2vw,52px);max-width:760px}
.cta p{font-size:20px;color:#C9D6E8;max-width:620px}
.cta .row{justify-content:center}
@media (max-width:640px){.cta .wrap{padding:64px var(--pad)}.cta .row{flex-direction:column;align-items:stretch}.cta .btn{width:100%}}

/* footer */
.site-footer{border-top:2px solid var(--ink);background:#fff}
.site-footer .wrap{padding-top:56px;padding-bottom:32px;display:flex;flex-direction:column;gap:40px}
.foot-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:40px}
.foot-brand{display:flex;flex-direction:column;gap:14px;max-width:340px}
.foot-brand p{font-size:15px}
.foot-cols{display:flex;flex-wrap:wrap;gap:56px}
.foot-col{display:flex;flex-direction:column;gap:6px}
.foot-col b{font-family:var(--font-display);font-weight:800;font-size:17px;margin-bottom:4px}
.foot-col a{color:var(--ink);text-decoration:none;font-size:15px;font-weight:600;min-height:32px;display:inline-flex;align-items:center}
.foot-col a:hover{color:var(--green)}
.foot-bottom{border-top:2px solid var(--line);padding-top:20px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:14px;font-weight:600;color:var(--muted)}
@media (max-width:640px){.foot-cols{gap:24px}.foot-col{flex:1 1 140px}}

/* game page */
.page-hero .wrap{padding-top:64px;padding-bottom:64px}
.page-hero .game-head img{width:112px;height:112px;border-radius:30px}
.page-hero h1{font-size:clamp(34px,4.4vw,52px)}
.shots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.shots figure{margin:0;border:2px solid var(--ink);border-radius:20px;overflow:hidden;background:#fff;box-shadow:var(--shadow-sm)}
.shots img{width:100%;height:auto;aspect-ratio:9/19.5;object-fit:cover;object-position:top}
.shots figcaption{padding:12px 14px;font-weight:800;font-size:14px;border-top:2px solid var(--ink)}
@media (max-width:960px){.shots{grid-template-columns:repeat(2,minmax(0,1fr))}}
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;counter-reset:step}
.step{position:relative;padding-top:30px}
.step .num{position:absolute;top:-22px;left:24px;width:44px;height:44px;border-radius:50%;background:var(--yellow);border:2px solid var(--ink);display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-weight:800;font-size:20px}
@media (max-width:900px){.steps{grid-template-columns:minmax(0,1fr)}}
.faq{display:flex;flex-direction:column;gap:12px;max-width:800px}
.faq details{border:2px solid var(--ink);border-radius:18px;background:#fff;box-shadow:var(--shadow-sm)}
.faq summary{cursor:pointer;list-style:none;padding:18px 22px;font-weight:800;font-size:17px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-family:var(--font-display);font-size:24px;line-height:1}
.faq details[open] summary::after{content:"–"}
.faq .ans{padding:0 22px 20px;color:var(--muted);font-size:16px}
.prose{max-width:760px;display:flex;flex-direction:column;gap:18px}
.prose h2{font-size:28px;margin-top:16px}
.prose ul{margin:0;padding-left:22px}
.prose li{margin-bottom:6px}
.notice{background:var(--tint-orange);border:2px solid var(--ink);border-radius:18px;padding:18px 22px;font-weight:700}
.contact-box{display:flex;flex-direction:column;gap:14px;padding:28px}
.contact-box a.mail{font-family:var(--font-display);font-weight:800;font-size:28px;text-decoration:none;word-break:break-all}
.center{text-align:center;align-items:center}
.grid-2--top{align-items:stretch;max-width:900px}
/* game page – simple */
.page-hero .wrap{padding-top:64px;padding-bottom:48px}
.game-intro{display:flex;flex-direction:column;align-items:center;text-align:center;gap:18px;max-width:760px;margin:0 auto}
.game-icon{width:128px;height:128px;border-radius:32px;border:2px solid var(--ink);box-shadow:var(--shadow)}
.game-intro .tags{display:flex;gap:6px}
.game-intro h1{font-size:clamp(32px,4.4vw,48px)}
.game-intro .lead{font-size:18px}
.game-intro .row{justify-content:center}
.badge{display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:999px;background:var(--tint-green);border:2px solid var(--ink);font-weight:800;font-size:14px}
.store--lg{min-height:56px;padding:0 24px;font-size:17px;border-radius:999px;box-shadow:0 5px 0 var(--ink)}
.store--lg svg{width:22px;height:22px}
.section--tight{padding:24px 0 72px}
.shots-strip{display:flex;gap:16px;overflow-x:auto;padding:8px 4px 16px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.shots-strip img{flex:0 0 auto;width:220px;height:auto;aspect-ratio:9/19.5;object-fit:cover;object-position:top;border-radius:20px;border:2px solid var(--ink);scroll-snap-align:start;box-shadow:var(--shadow-sm)}
@media (max-width:640px){.shots-strip img{width:180px}.game-intro .row:last-child{flex-direction:column;align-items:stretch}.store--lg{justify-content:center}}
/* official store badges */
.badge-link{display:inline-block;line-height:0;border-radius:8px;transition:transform .08s}
.badge-link:hover{transform:translateY(-2px)}
.badge-link img{height:48px;width:auto}
.card .badge-link img{height:40px}
@media (max-width:640px){.badge-link img{height:44px}.card .badge-link img{height:38px}}
a.phone{display:block;text-decoration:none;transition:transform .15s}
a.phone:hover{transform:translateY(-4px)}
/* policy pages */
.policy .wrap{max-width:860px}
.policy-head{display:flex;gap:20px;align-items:flex-start;margin-bottom:32px;padding-bottom:28px;border-bottom:2px solid var(--ink)}
.policy-head h1{font-size:clamp(28px,3.6vw,38px);margin:10px 0 6px}
.policy-icon{width:72px;height:72px;flex:0 0 auto;border-radius:20px;border:2px solid var(--ink);box-shadow:var(--shadow-sm)}
.policy-body{max-width:none;font-size:16px}
.policy-body h2{font-size:22px;margin-top:28px;display:flex;align-items:baseline;gap:10px;padding-bottom:8px;border-bottom:2px solid var(--line)}
.policy-body h2 .num{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--yellow);border:2px solid var(--ink);font-family:var(--font-display);font-size:14px;flex:0 0 auto}
.policy-body p,.policy-body ul{margin:0 0 12px;max-width:72ch;line-height:1.65}
.policy-body ul{padding-left:22px}
.policy-body li{margin-bottom:6px}
.policy-body section{margin-bottom:8px;scroll-margin-top:20px}
.policy-body a{font-weight:700}
.policy-foot{margin-top:36px;padding-top:20px;border-top:2px solid var(--line);font-size:14px;font-weight:700}
.app-facts{width:100%;border-collapse:collapse;margin:0 0 20px;font-size:15px;border:2px solid var(--ink);border-radius:16px;overflow:hidden;background:var(--cream)}
.app-facts td{padding:10px 14px;border-top:2px solid var(--line)}
.app-facts tr:first-child td{border-top:0}
.app-facts td:first-child{color:var(--muted);font-weight:700;width:40%}
nav.toc{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
nav.toc a{font-size:13px;font-weight:800;color:var(--ink);text-decoration:none;border:2px solid var(--ink);border-radius:999px;padding:6px 12px;background:#fff;box-shadow:0 2px 0 var(--ink)}
nav.toc a:hover{background:var(--tint-green)}
.notice-box{background:var(--tint-green);border:2px solid var(--ink);border-radius:18px;padding:16px 20px;margin:0 0 28px;box-shadow:var(--shadow-sm)}
.notice-box p{margin:0;max-width:none}
.notice-box strong{color:var(--green)}
.table-wrap,.data-table-wrap{overflow-x:auto;margin:4px 0 16px}
table.data-table{width:100%;border-collapse:collapse;font-size:14.5px;min-width:520px}
table.data-table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:8px 12px 8px 0;border-bottom:2px solid var(--ink)}
table.data-table td{padding:10px 12px 10px 0;border-bottom:2px solid var(--line);vertical-align:top}
.lang-toggle{display:inline-flex;border:2px solid var(--ink);border-radius:999px;overflow:hidden;background:#fff}
.lang-btn{font-family:var(--font-body);font-size:13px;font-weight:800;padding:6px 14px;border:0;background:transparent;color:var(--muted);cursor:pointer;min-height:34px}
.lang-btn+.lang-btn{border-left:2px solid var(--ink)}
.lang-btn.is-active{background:var(--green);color:#fff}
body[data-lang="en"] .vi{display:none}
body[data-lang="vi"] .en{display:none}
@media (max-width:640px){.policy-head{flex-direction:column;gap:14px}}
