:root {
  --bg: #0f1a24;
  --bg2: #142433;
  --card: #fffaf0;
  --ink: #2b2420;
  --muted: #6b5f57;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #ffcf5a;
  --red: #e94b3c;
  --green: #3fbf7f;
  --display: 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif;
  --body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.protected body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.protected img { -webkit-user-drag: none; }
body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.6 var(--body);
  color: #f3eadb;
  background: radial-gradient(1200px 600px at 15% -10%, #24425a 0%, transparent 60%), radial-gradient(900px 500px at 100% 10%, #3a2a1c 0%, transparent 55%), var(--bg);
}
a { color: inherit; }

.top { max-width: 1120px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px var(--display); }
.brand b { color: var(--gold); }
.logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--red), #f2a531); color: #fff; font: 800 22px var(--display); box-shadow: 0 4px 14px rgba(233, 75, 60, 0.4); }
.top nav { display: flex; gap: 8px; }
.top nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: background 0.15s; }
.top nav a:hover { background: rgba(255, 255, 255, 0.08); }
.top nav a.donate { border-color: rgba(255, 207, 90, 0.45); color: var(--gold); }

main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.hero { text-align: center; padding: 34px 0 30px; }
.kicker { display: inline-block; margin: 0 0 10px; padding: 4px 14px; border-radius: 999px; background: rgba(255, 207, 90, 0.12); color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.hero h1 { margin: 0; font: 800 clamp(34px, 6vw, 58px) / 1.1 var(--display); color: #fff; }
.hero h1 span { background: linear-gradient(90deg, var(--gold), #f2a531, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 720px; margin: 16px auto 0; color: #cfc3b3; font-size: 17px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 22px 0 0; }
.facts li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }

.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45); }
.shot { position: relative; display: block; aspect-ratio: 32 / 15; overflow: hidden; background: #1f2b26; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.card:hover .shot img { transform: scale(1.04); }
.badge { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; font: 800 13px var(--display); letter-spacing: 0.5px; color: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); }
.badge.live { background: var(--green); }
.badge.beta { background: var(--red); letter-spacing: 2px; }
.body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.genre { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; }
.body h2 { margin: 2px 0 8px; font: 800 30px / 1.15 var(--display); }
.jade .body h2 { color: #126b45; }
.warm .body h2 { color: #c2412f; }
.body > p { margin: 0 0 10px; }
.body ul { margin: 0 0 18px; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.body ul li { position: relative; padding-left: 24px; font-size: 15px; }
.body ul li::before { content: '✦'; position: absolute; left: 4px; top: 0; color: #e0a23a; }
.play { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 14px; text-decoration: none; font: 800 18px var(--display); color: #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25); transition: transform 0.12s ease, filter 0.12s ease; }
.play:hover { transform: translateY(-2px); filter: brightness(1.07); }
.play:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.jade .play { background: linear-gradient(180deg, #2fbf7b, #17905a); }
.warm .play { background: linear-gradient(180deg, #f2683a, #d9452f); }
.note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 30px 0 10px; }
.box { padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.box.warn { background: rgba(242, 165, 49, 0.1); border-color: rgba(242, 165, 49, 0.45); }
.box h3 { margin: 0 0 8px; font: 700 19px var(--display); color: #fff; }
.box ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: #d8cdbd; font-size: 15px; }

footer { max-width: 1120px; margin: 30px auto 0; padding: 24px 20px 36px; text-align: center; color: #9d9183; font-size: 14px; border-top: 1px solid var(--line); }
footer p { margin: 4px 0; }
footer a { color: #e6d9c6; }

@media (max-width: 560px) {
  .top { padding: 14px 16px; }
  .top nav a { padding: 7px 10px; font-size: 13px; }
  .brand span:last-child { display: none; }
  main { padding: 0 16px; }
  .hero { padding: 18px 0 22px; }
  .lead { font-size: 15.5px; }
  .games { grid-template-columns: 1fr; gap: 18px; }
  .body { padding: 16px 16px 18px; }
  .body h2 { font-size: 26px; }
  .play { align-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* app download (khanhspn Games: Android APK, iPhone web app at /game/app/) */
.app-dl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 22px; margin: 30px 0 0; padding: 22px 24px; border-radius: 22px; background: linear-gradient(135deg, rgba(255, 122, 61, 0.16), rgba(233, 75, 60, 0.06)); border: 1px solid rgba(255, 122, 61, 0.35); }
.app-dl img { border-radius: 22px; box-shadow: 0 10px 26px rgba(233, 75, 60, 0.35); }
.app-dl .kicker { margin: 0; }
.app-dl h2 { margin: 6px 0 6px; font: 800 26px/1.15 var(--display); color: #fff; }
.app-dl-text p:last-child { margin: 0; color: #d8cdbd; font-size: 15px; }
.app-dl-actions { display: grid; gap: 10px; min-width: 250px; }
.dl { display: flex; flex-direction: column; padding: 11px 18px; border-radius: 14px; text-decoration: none; font: 800 17px var(--display); color: #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25); transition: transform 0.12s ease, filter 0.12s ease; }
.dl small { font: 500 12.5px var(--body); opacity: 0.85; }
.dl:hover { transform: translateY(-2px); filter: brightness(1.07); }
.dl.android { background: linear-gradient(180deg, #2fbf7b, #17905a); }
.dl.ios { background: linear-gradient(180deg, #4a5868, #2c3744); }
@media (max-width: 760px) {
  .app-dl { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .app-dl img { width: 64px; height: 64px; border-radius: 16px; }
  .app-dl-actions { min-width: 0; }
}
