html, body { overflow-x: hidden; }

/* ============================================================
   Moban 8-10-33 — App Shell G-Class (Mobile-first)
   Palette: charcoal #2D3436 · mint #55EFC4 · mist #F5F6FA
   ============================================================ */

:root {
  --ink:      #2D3436;
  --ink-2:    #22282a;
  --ink-3:    #171d1f;
  --mint:     #55EFC4;
  --mint-dk:  #2fd3a2;
  --mist:     #F5F6FA;
  --white:    #ffffff;
  --line:     #e4e8f0;
  --muted:    #6b7a80;
  --radius:   12px;
  --shadow:   0 6px 18px rgba(45, 52, 54, .08);
  --tabbar-h: 64px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding-bottom: 70px; /* room for fixed icon tabbar */
  background: var(--mist);
  color: var(--ink);
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius);
  font-weight: 700; font-size: 14px; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
}
.btn:active { transform: scale(.96); }
.btn-mint  { background: var(--mint); color: var(--ink-3); box-shadow: 0 6px 16px rgba(85, 239, 196, .35); }
.btn-mint:hover { background: var(--mint-dk); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-dark  { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Dark top bar ---------- */
.app-topbar {
  position: sticky; top: 0; z-index: 90;
  background: linear-gradient(180deg, var(--ink-3), var(--ink));
  color: var(--white);
  border-bottom: 1px solid rgba(85, 239, 196, .18);
}
.app-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 0;
}
.app-logo img { height: 34px; width: auto; display: block; }
.app-auth { display: flex; gap: 8px; }
.app-auth .btn { padding: 7px 14px; font-size: 13px; border-radius: var(--radius); }
.btn-login { background: rgba(255,255,255,.08); color: var(--white); border: 1px solid rgba(255,255,255,.22); }
.btn-login:hover { border-color: var(--mint); color: var(--mint); }
.btn-register { background: var(--mint); color: var(--ink-3); }
.btn-register:hover { background: var(--mint-dk); }

/* ---------- Bottom icon tab bar ---------- */
.app-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  height: var(--tabbar-h);
  background: var(--ink-3);
  border-top: 1px solid rgba(85, 239, 196, .2);
  display: flex; align-items: stretch; justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .28);
}
.tab-item {
  position: relative; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #8b989c; transition: color .2s ease;
}
.tab-item svg { width: 24px; height: 24px; display: block; transition: transform .2s ease; }
.tab-item:hover { color: var(--mint); }
.tab-item:hover svg { transform: translateY(-2px); }
.tab-item.active { color: var(--mint); }
.tab-dot {
  display: none; width: 5px; height: 5px; border-radius: 50%;
  background: var(--mint); margin-top: 3px;
  box-shadow: 0 0 8px rgba(85, 239, 196, .9);
}
.tab-item.active .tab-dot { display: block; animation: dotPop .35s ease; }
@keyframes dotPop { from { transform: scale(0); } to { transform: scale(1); } }

/* tooltip on hover / active */
.tab-tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 6px);
  background: var(--ink); color: var(--white);
  font-size: 12px; font-weight: 500; white-space: nowrap;
  padding: 5px 10px; border-radius: 8px;
  border: 1px solid rgba(85, 239, 196, .35);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.tab-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--ink);
}
.tab-item:hover .tab-tip,
.tab-item.active:hover .tab-tip,
.tab-item:focus-visible .tab-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Section scaffolding ---------- */
.app-main { padding: 18px 0 8px; }
.section { margin-bottom: 30px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-size: 19px; font-weight: 900; margin: 0; position: relative; padding-left: 12px;
}
.section-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 70%; border-radius: 4px; background: var(--mint);
}
.section-link { font-size: 13px; font-weight: 700; color: var(--mint-dk); }
.section-link:hover { text-decoration: underline; }

/* ---------- App hero ---------- */
.app-hero {
  background: linear-gradient(160deg, var(--ink-3) 0%, var(--ink) 55%, #31494a 100%);
  color: var(--white); border-radius: var(--radius);
  padding: 26px 18px 22px; overflow: hidden; position: relative;
}
.app-hero::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(85,239,196,.22), transparent 65%);
}
.app-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(85, 239, 196, .14); color: var(--mint);
  border: 1px solid rgba(85, 239, 196, .4);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.app-hero h1 { font-size: 26px; font-weight: 900; margin-bottom: 8px; }
.app-hero h1 .accent { color: var(--mint); }
.app-hero p { color: rgba(255, 255, 255, .78); font-size: 14px; margin: 0 0 16px; max-width: 46ch; }
.app-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.app-hero-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 18px; color: var(--mint); font-weight: 900; }
.hero-stat span { font-size: 12px; color: rgba(255,255,255,.6); }

/* ---------- Category chips ---------- */
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow); transition: all .18s ease;
}
.chip:hover { background: var(--ink); color: var(--mint); border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Showcase slide strip ---------- */
.slide-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.slide-strip::-webkit-scrollbar { display: none; }
.slide-card { flex: 0 0 78%; max-width: 340px; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.slide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .5s ease; }
.slide-card:hover img { transform: scale(1.05); }
.slide-card::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(85,239,196,.25); pointer-events: none; }

/* ---------- Game grid ---------- */
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.game-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(45,52,54,.16); }
.game-thumb { position: relative; display: block; }
.game-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.game-hot {
  position: absolute; top: 8px; left: 8px; background: var(--mint); color: var(--ink-3);
  font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 8px;
}
.game-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game-name { font-size: 14px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.game-rate { color: #f5a623; font-weight: 700; }
.game-card .btn { margin-top: auto; }

/* ---------- News card stream ---------- */
.news-stream { display: flex; flex-direction: column; gap: 12px; }
.news-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: grid; grid-template-columns: 118px 1fr;
  transition: transform .2s ease;
}
.news-card:hover { transform: translateY(-3px); }
.news-card-thumb { display: block; height: 100%; }
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 96px; }
.news-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.news-card-title { font-size: 14.5px; font-weight: 700; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card:hover .news-card-title { color: var(--mint-dk); }
.news-card-excerpt { font-size: 12.5px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-date { font-size: 11.5px; color: #9aa7ac; margin-top: auto; }
.news-empty { background: var(--white); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); }

/* ---------- Download CTA ---------- */
.app-cta {
  background: var(--ink); color: var(--white); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; position: relative; overflow: hidden;
}
.app-cta::before {
  content: ""; position: absolute; left: -60px; bottom: -60px; width: 190px; height: 190px;
  border-radius: 50%; background: radial-gradient(circle, rgba(85,239,196,.28), transparent 65%);
}
.app-cta h2 { font-size: 21px; font-weight: 900; }
.app-cta p { color: rgba(255,255,255,.72); font-size: 13.5px; margin-bottom: 16px; }

/* ---------- Feature icons ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature-item {
  background: var(--white); border-radius: var(--radius); padding: 16px 14px;
  box-shadow: var(--shadow); display: flex; gap: 12px; align-items: flex-start;
}
.feature-ico {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: var(--radius);
  background: rgba(85, 239, 196, .16); color: var(--mint-dk);
  display: flex; align-items: center; justify-content: center;
}
.feature-ico svg { width: 22px; height: 22px; }
.feature-item h3 { font-size: 14px; font-weight: 700; margin: 0 0 3px; }
.feature-item p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------- Archive / listing pages ---------- */
.page-hero { background: var(--ink); color: var(--white); padding: 22px 0; margin-bottom: 18px; }
.page-hero h1 { font-size: 22px; font-weight: 900; margin: 0; }
.page-hero .crumb { font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 4px; display: block; }
.page-hero .crumb a:hover { color: var(--mint); }
.post-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.post-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: block; transition: transform .2s ease;
}
.post-card:hover { transform: translateY(-4px); }
.post-card-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-card-body { padding: 14px 16px 16px; }
.post-card-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.post-card:hover .post-card-title { color: var(--mint-dk); }
.post-card-excerpt { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.post-card-date { font-size: 12px; color: #9aa7ac; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.pager a, .pager span { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 12px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); font-weight: 700; font-size: 13.5px; }
.pager .current { background: var(--mint); color: var(--ink-3); }
.pager a:hover { background: var(--ink); color: var(--mint); }

/* ---------- Single article ---------- */
.single-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px 24px; }
.single-title { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.single-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.single-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.single-thumb img { width: 100%; display: block; }
.entry-content { font-size: 15px; }
.entry-content p { margin: 0 0 1em; }
.entry-content img { border-radius: var(--radius); }
.entry-content h2, .entry-content h3 { margin-top: 1.2em; }
.entry-content a { color: var(--mint-dk); font-weight: 600; }
.entry-content a:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--mint-dk); margin-bottom: 12px; }
.back-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.app-footer { background: var(--ink-3); color: rgba(255,255,255,.72); padding: 30px 0 26px; margin-top: 26px; border-top: 3px solid var(--mint); }
.footer-brand img { height: 32px; margin-bottom: 10px; }
.footer-brand p { font-size: 12.5px; margin: 0 0 14px; max-width: 52ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; }
.footer-links a { font-size: 13px; }
.footer-links a:hover { color: var(--mint); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; text-align: center; }
.disclaimer-text { font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.7; margin: 12px 0 0; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 14px; bottom: calc(var(--tabbar-h) + 16px); z-index: 95;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: var(--mint); color: var(--ink-3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(85, 239, 196, .45);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--mint-dk); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
