/* Modern forum/home layer. Existing component CSS remains the functional fallback. */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #eaf8ff;
  --muted: #9fc0d4;
  --surface: rgba(13, 37, 55, .86);
  --surface-strong: rgba(16, 46, 68, .96);
  --stroke: rgba(130, 209, 244, .18);
  --accent: #32d7ff;
  --accent-2: #ffb23f;
  --danger: #ff5c78;
  --glow: rgba(50, 215, 255, .25);
}

/* Light green theme inspired by the supplied reference */
:root {
  --ink: #184c2d;
  --muted: #61856d;
  --surface: rgba(248, 255, 249, .94);
  --surface-strong: rgba(235, 250, 239, .98);
  --stroke: rgba(54, 154, 82, .24);
  --accent: #2fa94c;
  --accent-2: #ef7c28;
  --danger: #ff5567;
  --glow: rgba(66, 180, 94, .22);
}
.site-nebula {
  --surface: rgba(248, 255, 249, .95);
  --surface-strong: rgba(235, 250, 239, .98);
  --stroke: rgba(54, 154, 82, .24);
  --accent: #2fa94c;
  --accent-2: #ef7c28;
  --danger: #ff5567;
  --glow: rgba(66, 180, 94, .22);
}
body, .site-nebula {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(112, 205, 134, .23), transparent 30rem),
    radial-gradient(circle at 88% 42%, rgba(255,255,255,.76), transparent 27rem),
    linear-gradient(145deg, #edf9ef 0%, #dff2e3 48%, #eaf7ec 100%);
}
body::before { opacity: .1; }
.topbar {
  border-bottom-color: rgba(55, 145, 78, .18);
  background: rgba(246, 255, 248, .92);
  box-shadow: 0 8px 25px rgba(42, 105, 58, .11);
}
.nav-trigger { color: #326b41; }
.nav-trigger .ico { color: #2fa94c; }
.nav-trigger:hover, .nav-menu.open .nav-trigger {
  border-color: rgba(48, 157, 76, .25);
  color: #17642d;
  background: #e2f5e6;
}
.nav-popover, .site-nebula .nav-popover {
  border-color: rgba(48, 157, 76, .24);
  background: rgba(250, 255, 251, .985);
  box-shadow: 0 22px 55px rgba(42, 100, 57, .2);
}
.nav-popover-head { border-color: rgba(48, 157, 76, .18); }
.nav-popover-head strong, .nav-choice strong { color: #18592d; }
.nav-popover-head small, .nav-choice small { color: #6c8d74; }
.nav-choice {
  border-color: rgba(48, 157, 76, .18);
  color: #194f2b;
  background: #f2fbf4;
}
.nav-choice:hover {
  border-color: rgba(48, 157, 76, .42);
  background: #e3f6e7;
}
.hero-shell {
  border-color: rgba(42, 145, 67, .25);
  background: #fff;
  box-shadow: 0 20px 55px rgba(43, 105, 59, .18);
}
.hero-shade, .site-nebula .hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 54, 26, .7) 2%, rgba(13, 54, 26, .34) 48%, rgba(13, 54, 26, .02) 82%),
    linear-gradient(0deg, rgba(13, 54, 26, .3), transparent 48%);
}
.eyebrow {
  border-color: rgba(176, 255, 191, .55);
  color: #d9ffe1;
  background: rgba(20, 91, 39, .58);
}
.hero-copy p { color: #f0fff3; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.hero-secondary { border-color: rgba(255,255,255,.7); background: rgba(248,255,249,.88); color: #175a2c; }
.hero-status { border-color: rgba(255,255,255,.65); color: #205c31; background: rgba(245,255,247,.9); }
.quick-stats {
  border-color: rgba(45, 145, 69, .22);
  background: rgba(45, 145, 69, .18);
  box-shadow: 0 14px 32px rgba(43, 105, 59, .12);
}
.quick-stats div, .site-nebula .quick-stats div { background: rgba(247, 255, 248, .97); }
.quick-stats strong { color: #269343; }
.quick-stats span { color: #63856c; }
.forum-tabs, .card, .sidebox {
  border-color: rgba(47, 151, 73, .23);
  color: #1a4e2b;
  background: rgba(249, 255, 250, .95);
  box-shadow: 0 10px 28px rgba(44, 111, 61, .11);
}
.forum-tabs a { color: #547d60; }
.forum-tabs a.active { color: #21763a; border-color: #38ae55; }
.card:hover {
  border-color: rgba(42, 157, 70, .48);
  box-shadow: 0 16px 35px rgba(44, 111, 61, .16);
}
.author { color: #ef6c25; }
.time, .meta, .meta .stats { color: #71917a; }
.post-title, .side-title { color: #174e2b; }
.meta, .side-title { border-color: rgba(47, 151, 73, .2); }
.avatar { border-color: rgba(47, 151, 73, .35); }
.sidebox.important-notice {
  border-color: rgba(47, 151, 73, .28);
  background: #effaf1;
  box-shadow: 0 10px 28px rgba(44,111,61,.1);
}
.important-notice .side-title { color: #21813a; border-color: rgba(47,151,73,.2); }
.footer {
  border-color: rgba(47, 151, 73, .23);
  color: #547861;
  background: rgba(235, 250, 239, .97);
  box-shadow: 0 -12px 35px rgba(44,111,61,.1);
}
.nav-toast {
  border-color: rgba(77, 173, 255, .45);
  color: #fff;
  background: linear-gradient(135deg, #087fd1, #075ba8);
  box-shadow: 0 12px 32px rgba(4, 79, 145, .3);
}
.nav-toast small { color: #d9efff; }
@media (max-width: 650px) {
  .hero-shade, .site-nebula .hero-shade {
    background: linear-gradient(0deg, rgba(13,54,26,.72) 5%, rgba(13,54,26,.22) 66%, rgba(13,54,26,.03));
  }
}


/* Header command menus */
.nav-actions { display: flex; align-items: center; gap: 5px; }
.nav-menu { position: relative; }
.nav-trigger {
  display: flex;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  transition: .2s ease;
}
.nav-trigger .ico { width: 16px; height: 16px; color: var(--accent); }
.nav-trigger b { margin-left: 1px; font-size: 13px; transition: transform .2s ease; }
.nav-trigger:hover, .nav-menu.open .nav-trigger {
  border-color: var(--stroke);
  color: #fff;
  background: rgba(255,255,255,.07);
}
.nav-menu.open .nav-trigger b { transform: rotate(180deg); }
.nav-popover {
  position: absolute;
  z-index: 100;
  top: calc(100% + 13px);
  left: 0;
  width: 420px;
  padding: 14px;
  visibility: hidden;
  opacity: 0;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(7, 25, 38, .97);
  box-shadow: 0 24px 65px rgba(0,0,0,.5);
  backdrop-filter: blur(22px);
  transform: translateY(-8px) scale(.98);
  transform-origin: top left;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.site-nebula .nav-popover { background: rgba(20, 14, 44, .97); }
.nav-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 24px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--stroke);
  border-left: 1px solid var(--stroke);
  background: inherit;
  transform: rotate(45deg);
}
.nav-popover.compact { width: 300px; }
.nav-popover.align-right { right: 0; left: auto; transform-origin: top right; }
.nav-popover.align-right::before { right: 24px; left: auto; }
.nav-menu.open .nav-popover { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
.nav-popover-head { display: flex; padding: 3px 5px 13px; border-bottom: 1px solid var(--stroke); flex-direction: column; }
.nav-popover-head strong { color: #fff; font-size: 14px; }
.nav-popover-head small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; }
.nav-popover.compact .nav-choice:first-of-type { margin-top: 10px; }
.nav-choice {
  display: flex;
  width: 100%;
  min-height: 64px;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255,255,255,.035);
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.nav-grid .nav-choice { margin-top: 0; }
.nav-choice:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent), transparent 40%); background: rgba(255,255,255,.08); }
.nav-choice i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #168ab4);
  place-items: center;
  font-style: normal;
  font-size: 18px;
  font-weight: 800;
  box-shadow: inset 0 1px rgba(255,255,255,.28);
}
.site-nebula .nav-choice i { background: linear-gradient(135deg, var(--accent), #6c49cf); }
.nav-choice i .ico { width: 19px; height: 19px; }
.nav-choice span { display: flex; min-width: 0; flex-direction: column; }
.nav-choice strong { color: #fff; font-size: 11px; }
.nav-choice small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.nav-choice.apk i { background: linear-gradient(135deg, #42d97c, #138b48); }
.nav-choice.ipa i { background: linear-gradient(135deg, #7392c9, #334a75); }
.nav-choice.testflight i { background: linear-gradient(135deg, #b68cff, #6243d1); }
.nav-choice.zalo i { background: linear-gradient(135deg, #26b4ff, #0879dc); }
.nav-choice.facebook i { background: linear-gradient(135deg, #5f8ee8, #2852a5); }
.nav-choice.ranking i { background: linear-gradient(135deg, #ffc74d, #e77918); }
.nav-choice.resource i { background: linear-gradient(135deg, #47e5bc, #128d80); }
.nav-toast {
  position: fixed;
  z-index: 300;
  right: 4px;
  bottom: 4px;
  display: flex;
  width: max-content;
  min-width: 300px;
  max-width: calc(100% - 32px);
  padding: 15px 19px;
  visibility: hidden;
  opacity: 0;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  color: #fff;
  background: var(--surface-strong);
  box-shadow: 0 18px 50px rgba(0,0,0,.42);
  align-items: center;
  gap: 11px;
  transform: translateY(16px);
  transition: .22s ease;
}
.nav-toast.show { visibility: visible; opacity: 1; transform: translateY(0); }
.nav-toast > span { color: #bfe5ff; font-size: 24px; }
.nav-toast div { display: flex; flex-direction: column; }
.nav-toast strong { color: #fff; font-size: 14px; line-height: 1.25; }
.nav-toast small { margin-top: 2px; color: #d9efff; font-size: 11px; line-height: 1.35; }

@media (max-width: 850px) {
  .nav-trigger { padding: 0 9px; }
  .nav-trigger b { display: none; }
}
@media (max-width: 650px) {
  .topnav { gap: 4px; }
  .mini-logo { margin-right: auto; }
  .nav-actions { gap: 2px; }
  .nav-trigger { min-width: 42px; min-height: 42px; padding: 0; justify-content: center; }
  .nav-trigger span { display: none; }
  .nav-trigger .ico { width: 18px; height: 18px; }
  .nav-popover, .nav-popover.compact, .nav-popover.align-right {
    position: fixed;
    top: 70px;
    right: 9px;
    left: 9px;
    width: auto;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    transform-origin: top center;
  }
  .nav-popover::before, .nav-popover.align-right::before { display: none; }
  .nav-grid { grid-template-columns: 1fr; }
  .nav-choice { min-height: 58px; }
  .nav-toast {
    right: 4px;
    bottom: 4px;
    left: auto;
    width: max-content;
    min-width: 0;
    max-width: calc(100% - 8px);
    padding: 10px 13px;
    border-radius: 11px;
    gap: 8px;
  }
  .nav-toast > span { font-size: 19px; }
  .nav-toast strong { font-size: 12px; }
  .nav-toast small { font-size: 10px; }
}

.site-nebula {
  --surface: rgba(27, 22, 57, .88);
  --surface-strong: rgba(39, 28, 76, .96);
  --stroke: rgba(184, 151, 255, .22);
  --accent: #ad7cff;
  --accent-2: #36e6c1;
  --danger: #ff668c;
  --glow: rgba(173, 124, 255, .28);
}
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  color: var(--ink);
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(77, 190, 125, .28), transparent 30rem),
    radial-gradient(circle at 90% 42%, rgba(255, 255, 255, .5), transparent 25rem),
    linear-gradient(145deg, #dff5e6 0%, #bfe8cc 48%, #d6f2df 100%);
  background-attachment: fixed;
  font-size: 13px;
  line-height: 1.55;
  overflow-x: hidden;
}
.site-nebula {
  background:
    radial-gradient(circle at 12% 8%, rgba(94, 202, 139, .3), transparent 30rem),
    radial-gradient(circle at 88% 40%, rgba(255, 255, 255, .52), transparent 25rem),
    linear-gradient(145deg, #e4f7e9 0%, #c5ebd0 48%, #dcf4e3 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 34px 34px;
}
.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 72px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(5, 18, 28, .78);
  box-shadow: 0 12px 30px rgba(0,0,0,.24);
  backdrop-filter: blur(18px);
}
.topnav { width: min(1180px, calc(100% - 32px)); height: 72px; gap: 8px; }
.mini-logo { width: 148px; margin-right: auto; text-align: left; }
.mini-logo img { width: 112px; height: 58px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.topnav > a:not(.mini-logo) {
  position: relative;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  transition: .2s ease;
}
.topnav > a:not(.mini-logo):hover,
.topnav > a:not(.mini-logo).active {
  border-color: var(--stroke);
  color: #fff;
  background: rgba(255,255,255,.07);
  box-shadow: 0 5px 18px rgba(0,0,0,.18);
}
.wrap { width: min(1180px, calc(100% - 32px)); margin: 24px auto 48px; }
.hero-shell {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 28px;
  box-shadow: 0 25px 80px rgba(0,0,0,.36), inset 0 1px rgba(255,255,255,.08);
  isolation: isolate;
}
.banner { width: 100%; height: 450px; border: 0; object-fit: cover; transform: scale(1.015); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,12,20,.95) 4%, rgba(3,12,20,.64) 47%, rgba(3,12,20,.08) 82%), linear-gradient(0deg, rgba(3,12,20,.62), transparent 45%); }
.site-nebula .hero-shade { background: linear-gradient(90deg, rgba(10,7,26,.96) 4%, rgba(10,7,26,.67) 47%, rgba(10,7,26,.1) 82%), linear-gradient(0deg, rgba(10,7,26,.7), transparent 45%); }
.hero-copy { position: absolute; z-index: 2; top: 50%; left: clamp(28px, 7vw, 82px); width: min(510px, calc(100% - 56px)); transform: translateY(-50%); }
.eyebrow { display: inline-flex; padding: 7px 12px; border: 1px solid color-mix(in srgb, var(--accent), transparent 55%); border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent), transparent 88%); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.hero-copy h1 { max-width: 500px; margin: 16px 0 10px; color: #fff; font-size: clamp(34px, 5vw, 60px); line-height: 1.03; letter-spacing: -.04em; text-shadow: 0 4px 24px rgba(0,0,0,.4); }
.hero-copy p { max-width: 470px; margin: 0; color: #c8dce8; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.hero-primary, .hero-secondary { min-height: 43px; padding: 0 18px; border-radius: 12px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.hero-primary { display: inline-flex; align-items: center; color: #06131e; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent), white 25%)); box-shadow: 0 10px 30px var(--glow); }
.hero-secondary { border: 1px solid rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.hero-primary:hover, .hero-secondary:hover { transform: translateY(-2px); filter: brightness(1.07); }
.hero-status { position: absolute; z-index: 2; right: 22px; bottom: 20px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #d9e9f2; background: rgba(4,16,25,.68); font-size: 10px; backdrop-filter: blur(10px); }
.hero-status span { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #42e58a; box-shadow: 0 0 0 5px rgba(66,229,138,.13), 0 0 16px #42e58a; }
.quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; width: min(760px, calc(100% - 32px)); margin: -1px auto 25px; overflow: hidden; border: 1px solid var(--stroke); border-radius: 0 0 18px 18px; background: var(--stroke); box-shadow: 0 16px 36px rgba(0,0,0,.18); }
.quick-stats div { display: flex; min-height: 70px; padding: 10px 18px; background: rgba(10,30,44,.9); align-items: center; justify-content: center; flex-direction: column; }
.site-nebula .quick-stats div { background: rgba(24,18,50,.92); }
.quick-stats strong { color: var(--accent); font-size: 20px; }
.quick-stats span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.columns { grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; padding: 0; }
.forum-tabs, .card, .sidebox { border: 1px solid var(--stroke); border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: 0 14px 35px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.forum-tabs { height: 58px; padding: 0 20px; }
.forum-tabs a { height: 57px; padding-top: 19px; color: var(--muted); }
.forum-tabs a.active { border-color: var(--accent); color: #fff; }
.card { margin-bottom: 14px; padding: 20px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent), transparent 48%); box-shadow: 0 20px 50px rgba(0,0,0,.26); }
.pin { top: 14px; right: 14px; border-radius: 999px; background: var(--danger); font-size: 9px; }
.avatar { width: 44px; height: 44px; border: 2px solid color-mix(in srgb, var(--accent), transparent 30%); border-radius: 12px; }
.author { color: var(--accent-2); }
.time, .meta, .meta .stats { color: var(--muted); }
.post-title { margin: 20px 0; color: #fff; font-size: 16px; }
.meta { border-color: var(--stroke); }
.post-image { border-radius: 12px; }
.sidebox { margin-bottom: 14px; padding: 18px; }
.side-title { border-color: var(--stroke); color: #fff; letter-spacing: .05em; }
.download-grid a, .download-grid > div, .auth-row button, .support-btn, .login-main { min-height: 42px; border-radius: 10px; }
.download-grid .pc { background: linear-gradient(135deg, #1e648a, #248eb8); }
.sidebox.important-notice { border: 1px solid rgba(74,229,139,.35); background: rgba(14,60,43,.75); box-shadow: 0 14px 35px rgba(0,0,0,.18); }
.important-notice .side-title { color: #67ef9d; border-color: rgba(74,229,139,.25); }
.footer { width: min(1180px, calc(100% - 32px)); margin: auto; padding: 24px; border: 1px solid var(--stroke); border-bottom: 0; border-radius: 20px 20px 0 0; color: var(--muted); background: var(--surface-strong); box-shadow: 0 -15px 45px rgba(0,0,0,.18); }
@media (max-width: 900px) {
  .columns { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .sidebox { margin: 0; }
}
@media (max-width: 650px) {
  .topbar, .topnav { height: 64px; }
  .topnav { width: calc(100% - 16px); }
  .mini-logo { width: auto; }
  .mini-logo img { width: 76px; height: 48px; }
  .topnav > a:not(.mini-logo) { padding: 9px 7px; font-size: 8px; letter-spacing: .03em; }
  .topnav > a:not(.mini-logo):not(.active) { display: none; }
  .wrap { width: calc(100% - 18px); margin-top: 10px; }
  .hero-shell { min-height: 430px; border-radius: 20px; }
  .banner { height: 430px; }
  .hero-shade { background: linear-gradient(0deg, rgba(3,12,20,.96) 5%, rgba(3,12,20,.58) 65%, rgba(3,12,20,.14)); }
  .hero-copy { top: auto; right: 24px; bottom: 48px; left: 24px; width: auto; transform: none; }
  .hero-copy h1 { font-size: 36px; }
  .hero-copy p { font-size: 12px; }
  .hero-status { display: none; }
  .quick-stats { width: calc(100% - 18px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-stats div { min-height: 62px; padding: 8px 4px; }
  .quick-stats strong { font-size: 16px; }
  .quick-stats span { font-size: 7px; text-align: center; }
  .columns { display: flex; padding: 0; gap: 10px; }
  .columns > *, .forum-tabs, .card, .sidebox { width: 100%; min-width: 0; }
  .sidebar { display: contents; }
  .forum-tabs { overflow-x: auto; gap: 22px; }
  .forum-tabs a { white-space: nowrap; }
  .card, .sidebox { border-radius: 13px; }
  .forum-featured-actions { flex-wrap: wrap; }
  .forum-featured-actions .featured-action { width: calc(50% - 3px) !important; flex: 0 1 calc(50% - 3px); }
  .footer { width: calc(100% - 18px); }
}

/* Final light-theme overrides: keep this block last. */
body, body.site-nebula {
  color: #184c2d;
  background:
    radial-gradient(circle at 12% 8%, rgba(74,181,101,.34), transparent 30rem),
    radial-gradient(circle at 88% 42%, rgba(255,255,255,.58), transparent 27rem),
    linear-gradient(145deg, #dff2e3 0%, #c9e8d0 48%, #d9efde 100%);
}
.topbar {
  border-bottom-color: rgba(55,145,78,.18);
  background: rgba(246,255,248,.94);
  box-shadow: 0 8px 25px rgba(42,105,58,.11);
}
.nav-trigger { color: #326b41; }
.nav-trigger:hover, .nav-menu.open .nav-trigger { border-color: rgba(48,157,76,.25); color: #17642d; background: #e2f5e6; }
.nav-popover, .site-nebula .nav-popover { border-color: rgba(48,157,76,.24); background: rgba(250,255,251,.99); box-shadow: 0 22px 55px rgba(42,100,57,.2); }
.nav-popover-head { border-color: rgba(48,157,76,.18); }
.nav-popover-head strong, .nav-choice strong { color: #18592d; }
.nav-popover-head small, .nav-choice small { color: #6c8d74; }
.nav-choice { border-color: rgba(48,157,76,.18); color: #194f2b; background: #f2fbf4; }
.nav-choice:hover { border-color: rgba(48,157,76,.42); background: #e3f6e7; }
.hero-shell { min-height: 360px; border-color: rgba(42,145,67,.25); background: #fff; box-shadow: 0 20px 55px rgba(43,105,59,.18); }
.hero-shell .banner { height: 360px; }
.hero-shade, .site-nebula .hero-shade { background: linear-gradient(90deg, rgba(13,54,26,.62) 2%, rgba(13,54,26,.25) 48%, rgba(13,54,26,.01) 82%), linear-gradient(0deg, rgba(13,54,26,.2), transparent 48%); }
.hero-secondary { border-color: rgba(255,255,255,.8); color: #175a2c; background: rgba(248,255,249,.92); }
.hero-status { border-color: rgba(255,255,255,.7); color: #205c31; background: rgba(245,255,247,.92); }
.quick-stats { border-color: rgba(45,145,69,.22); background: rgba(45,145,69,.18); box-shadow: 0 14px 32px rgba(43,105,59,.12); }
.quick-stats div, .site-nebula .quick-stats div { background: rgba(247,255,248,.98); }
.forum-tabs, .card, .sidebox { border-color: rgba(47,151,73,.32); color: #1a4e2b; background: rgba(249,255,250,.96); box-shadow: 0 10px 28px rgba(44,111,61,.13); }
.forum-tabs a { color: #547d60; }
.forum-tabs a.active { color: #21763a; border-color: #38ae55; }
.post-title, .side-title { color: #174e2b; }
.time, .meta, .meta .stats { color: #71917a; }
.meta, .side-title { border-color: rgba(47,151,73,.2); }
.sidebox.important-notice { border-color: rgba(47,151,73,.28); background: #effaf1; box-shadow: 0 10px 28px rgba(44,111,61,.1); }
.footer { border-color: rgba(47,151,73,.23); color: #547861; background: rgba(235,250,239,.98); box-shadow: 0 -12px 35px rgba(44,111,61,.1); }
.nav-toast { border-color: rgba(77,173,255,.45); color: #fff; background: linear-gradient(135deg,#087fd1,#075ba8); }
@media (max-width: 650px) {
  .hero-shell { min-height: 430px; }
  .hero-shell .banner { height: 430px; }
  .hero-shade, .site-nebula .hero-shade { background: linear-gradient(0deg, rgba(13,54,26,.68) 5%, rgba(13,54,26,.18) 66%, rgba(13,54,26,.02)); }
}

/* Emphasized main navigation buttons */
.nav-actions { gap: 9px; }
.nav-trigger {
  min-height: 44px;
  padding: 0 14px 0 9px;
  border: 1px solid rgba(42,151,69,.34);
  border-bottom-color: rgba(28,125,51,.46);
  color: #195f30;
  background: linear-gradient(180deg, #f4fff6 0%, #dff4e4 100%);
  box-shadow: 0 3px 0 rgba(38,132,60,.16), 0 7px 16px rgba(42,105,58,.12);
  text-shadow: 0 1px #fff;
}
.nav-trigger .ico {
  box-sizing: content-box;
  width: 17px;
  height: 17px;
  padding: 6px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #49c765, #218d3d);
  box-shadow: inset 0 1px rgba(255,255,255,.36), 0 3px 8px rgba(31,126,55,.2);
}
.nav-menu:nth-child(2) .nav-trigger .ico { background: linear-gradient(135deg, #4eb7ff, #2876d7); }
.nav-menu:nth-child(3) .nav-trigger .ico { background: linear-gradient(135deg, #42cda8, #168b73); }
.nav-menu:nth-child(4) .nav-trigger .ico { background: linear-gradient(135deg, #ffbd4c, #e67b1e); }
.nav-trigger b { margin-left: 3px; color: #368149; font-size: 15px; }
.nav-trigger:hover, .nav-menu.open .nav-trigger {
  border-color: rgba(37,145,62,.58);
  color: #0f5526;
  background: linear-gradient(180deg, #f9fffa 0%, #ccefd5 100%);
  box-shadow: 0 4px 0 rgba(38,132,60,.2), 0 11px 22px rgba(42,105,58,.18);
  transform: translateY(-2px);
}
@media (max-width: 650px) {
  .nav-actions { gap: 5px; }
  .nav-trigger { min-width: 44px; min-height: 44px; padding: 0; }
  .nav-trigger .ico { width: 16px; height: 16px; padding: 6px; }
}

/* Keep the brand logo independent from navigation button states. */
.topnav > .mini-logo,
.topnav > .mini-logo:hover,
.topnav > .mini-logo:focus,
.topnav > .mini-logo:focus-visible,
.topnav > .mini-logo:active {
  display: flex;
  width: 148px;
  height: 64px;
  margin-right: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  outline: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  align-items: center;
  justify-content: flex-start;
  transform: none;
}
.topnav > .mini-logo img {
  display: block;
  width: 112px;
  height: 54px;
  object-fit: contain;
}
@media (max-width: 650px) {
  .topnav > .mini-logo,
  .topnav > .mini-logo:hover,
  .topnav > .mini-logo:focus,
  .topnav > .mini-logo:focus-visible,
  .topnav > .mini-logo:active {
    width: 80px;
    height: 58px;
  }
  .topnav > .mini-logo img { width: 76px; height: 48px; }
}

/* Compact color-coded top navigation */
.nav-actions { gap: 7px; }
.nav-trigger {
  min-height: 39px;
  padding: 0 11px 0 7px;
  border-radius: 10px;
  font-size: 9px;
  letter-spacing: .045em;
  box-shadow: 0 2px 0 rgba(38,132,60,.13), 0 5px 12px rgba(42,105,58,.1);
}
.nav-trigger .ico {
  width: 15px;
  height: 15px;
  padding: 5px;
  border-radius: 7px;
}
.nav-trigger b { margin-left: 1px; font-size: 13px; }
.nav-menu:nth-child(1) .nav-trigger {
  border-color: #91d3a0;
  color: #17652d;
  background: linear-gradient(180deg, #effbf1, #d8f1de);
}
.nav-menu:nth-child(2) .nav-trigger {
  border-color: #9cc8ed;
  color: #205e96;
  background: linear-gradient(180deg, #f0f8ff, #dceefe);
  box-shadow: 0 2px 0 rgba(45,112,174,.13), 0 5px 12px rgba(45,112,174,.1);
}
.nav-menu:nth-child(3) .nav-trigger {
  border-color: #8fd4c5;
  color: #176c5a;
  background: linear-gradient(180deg, #edfbf8, #d8f3ec);
  box-shadow: 0 2px 0 rgba(31,135,113,.13), 0 5px 12px rgba(31,135,113,.1);
}
.nav-menu:nth-child(4) .nav-trigger {
  border-color: #efc68e;
  color: #965811;
  background: linear-gradient(180deg, #fff8ed, #fbe9cf);
  box-shadow: 0 2px 0 rgba(181,108,25,.13), 0 5px 12px rgba(181,108,25,.1);
}
.nav-menu:nth-child(1) .nav-trigger b { color: #318246; }
.nav-menu:nth-child(2) .nav-trigger b { color: #397fba; }
.nav-menu:nth-child(3) .nav-trigger b { color: #2c8c76; }
.nav-menu:nth-child(4) .nav-trigger b { color: #b87628; }
.nav-menu:nth-child(1) .nav-trigger:hover, .nav-menu:nth-child(1).open .nav-trigger { background: #ccebd4; border-color: #62ba76; }
.nav-menu:nth-child(2) .nav-trigger:hover, .nav-menu:nth-child(2).open .nav-trigger { color: #174f80; background: #cde6fa; border-color: #6aaadb; }
.nav-menu:nth-child(3) .nav-trigger:hover, .nav-menu:nth-child(3).open .nav-trigger { color: #125a4b; background: #c8ebe3; border-color: #5dbda8; }
.nav-menu:nth-child(4) .nav-trigger:hover, .nav-menu:nth-child(4).open .nav-trigger { color: #7d480d; background: #f7dfbd; border-color: #dfa657; }
@media (max-width: 650px) {
  .nav-actions { gap: 4px; }
  .nav-trigger { min-width: 39px; min-height: 39px; padding: 0; }
  .nav-trigger .ico { width: 15px; height: 15px; padding: 5px; }
}

/* Featured tournament post */
.event-rules {
  margin: -4px 0 18px;
  padding: 14px 16px 14px 42px;
  border: 1px solid rgba(47,151,73,.2);
  border-radius: 12px;
  color: #285d37;
  background: #eff9f1;
}
.event-rules li { margin: 7px 0; padding-left: 3px; line-height: 1.55; }
.event-rules li::marker { color: #2fa94c; font-weight: 800; }
.event-image {
  display: block;
  width: 100%;
  max-height: none;
  margin: 0 0 16px;
  border: 1px solid rgba(47,151,73,.24);
  border-radius: 13px;
  object-fit: contain;
  background: #eaf5ec;
  box-shadow: 0 9px 24px rgba(44,111,61,.12);
}
@media (max-width: 650px) {
  .event-rules { padding: 11px 12px 11px 34px; font-size: 11px; }
  .event-image { border-radius: 9px; }
}

/* Compact tournament content */
.event-post .post-title { margin: 14px 0 10px; font-size: 14px; line-height: 1.4; }
.event-rules {
  margin: 0 0 12px;
  padding: 9px 12px 9px 32px;
  font-size: 11px;
}
.event-rules li { margin: 3px 0; padding-left: 1px; line-height: 1.45; }
.event-image { margin-bottom: 12px; }
@media (max-width: 650px) {
  .event-post { padding: 14px; }
  .event-post .post-title { margin: 12px 0 8px; padding-right: 0; font-size: 13px; }
  .event-rules { margin-bottom: 10px; padding: 8px 9px 8px 28px; font-size: 10px; }
  .event-rules li { margin: 2px 0; line-height: 1.4; }
}

/* Click-to-zoom event image */
.event-image { cursor: zoom-in; transition: transform .18s ease, box-shadow .18s ease; }
.event-image:hover { transform: translateY(-2px); box-shadow: 0 13px 30px rgba(44,111,61,.2); }
.event-image:focus-visible { outline: 3px solid rgba(47,169,76,.38); outline-offset: 3px; }
body.lightbox-open { overflow: hidden; }
.image-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  visibility: hidden;
  padding: 54px 24px 24px;
  opacity: 0;
  background: rgba(8,25,13,.88);
  backdrop-filter: blur(8px);
  place-items: center;
  transition: opacity .2s ease, visibility .2s;
}
.image-lightbox.open { visibility: visible; opacity: 1; }
.image-lightbox img {
  display: block;
  max-width: min(1500px, 96vw);
  max-height: calc(100vh - 78px);
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  transform: scale(.97);
  transition: transform .2s ease;
}
.image-lightbox.open img { transform: scale(1); }
.image-lightbox-close {
  position: fixed;
  z-index: 2;
  top: 14px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  color: #164f28;
  background: #f3fff5;
  box-shadow: 0 7px 24px rgba(0,0,0,.25);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}
@media (max-width: 650px) {
  .image-lightbox { padding: 60px 8px 12px; }
  .image-lightbox img { max-width: 100%; max-height: calc(100vh - 75px); border-radius: 8px; }
}

/* Sharper, higher-contrast typography */
html, body, button, input, textarea, select {
  font-family: Arial, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { color: #103f24; font-weight: 500; }
.nav-trigger,
.forum-tabs a,
.post-title,
.side-title,
.author,
.event-rules,
.meta,
.quick-stats,
.footer,
.nav-choice {
  text-shadow: none !important;
}
.nav-trigger { color: #124f27; font-weight: 800; }
.forum-tabs a { color: #3f6e4b; font-weight: 600; }
.forum-tabs a.active { color: #12652d; font-weight: 800; }
.post-title { color: #103f23; font-weight: 800; }
.side-title { color: #103f23; font-weight: 800; }
.author { font-weight: 800; }
.time { color: #557963; font-weight: 600; }
.event-rules { color: #194c2a; font-weight: 600; }
.meta, .meta .stats { color: #557963; font-weight: 600; }
.quick-stats strong { color: #1677b8; font-weight: 800; }
.quick-stats span { color: #1677b8; font-weight: 700; }
.quick-stats span { font-size: 11px; line-height: 1.35; letter-spacing: .055em; }
@media (max-width: 650px) {
  .quick-stats span { font-size: 9px; line-height: 1.3; letter-spacing: .035em; }
}

/* Individually framed forum tabs. */
.forum-tabs {
  gap: 9px;
  padding: 7px 10px;
}
.forum-tabs a {
  display: inline-flex;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(35, 115, 58, .24);
  border-radius: 9px;
  color: #356a43;
  background: #f7fcf8;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(31, 92, 47, .08);
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.forum-tabs a:hover {
  color: #11662d;
  border-color: rgba(34, 145, 62, .5);
  background: #e9f7ec;
  box-shadow: 0 5px 12px rgba(31, 104, 49, .12);
  transform: translateY(-1px);
}
.forum-tabs a.active {
  border: 1px solid #2e9e4d;
  color: #fff;
  background: linear-gradient(180deg, #43b760, #278d43);
  box-shadow: 0 4px 10px rgba(33, 126, 57, .22);
}
@media (max-width: 650px) {
  .forum-tabs { gap: 5px; padding: 6px; }
  .forum-tabs a { min-width: 0; height: 32px; padding: 0 9px; font-size: 10px; flex: 1 1 0; }
}

/* Responsive index layout — desktop, laptop, tablet, Android and iOS. */
html { -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; }
.topnav, .wrap, .footer { max-width: 1240px; }
.wrap { width: calc(100% - 40px); }
.topnav, .footer { width: calc(100% - 40px); }
.hero-shell {
  width: 100%;
  min-height: 0;
  aspect-ratio: 59 / 18;
}
.hero-shell .banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}
.columns > section, .sidebar, .sidebox, .card { min-width: 0; }
.post-image, .event-image { height: auto; }
.forum-tabs { min-width: 0; }
.forum-tabs a { white-space: nowrap; }
.nav-popover { max-width: calc(100vw - 24px); max-height: calc(100vh - 90px); overflow-y: auto; }

@media (min-width: 1201px) {
  .columns { grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .topnav, .wrap, .footer { width: calc(100% - 28px); }
  .wrap { margin-top: 16px; }
  .columns { grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; }
  .nav-actions { gap: 5px; }
  .nav-trigger, .nav-menu:nth-child(n) .nav-trigger { padding-right: 10px; gap: 6px; font-size: 10px; }
  .sidebox { padding: 15px; }
}

@media (min-width: 651px) and (max-width: 900px) {
  .topnav, .wrap, .footer { width: calc(100% - 24px); }
  .wrap { margin-top: 14px; }
  .hero-shell { border-radius: 20px; }
  .columns { grid-template-columns: 1fr; gap: 14px; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .sidebox { height: 100%; margin: 0; }
  .mini-logo { width: 110px; }
  .mini-logo img { width: 92px; }
  .nav-actions { gap: 4px; }
  .nav-trigger, .nav-menu:nth-child(n) .nav-trigger { padding: 0 8px; gap: 5px; font-size: 9px; }
}

@media (max-width: 650px) {
  body { min-width: 0; }
  .topbar, .topnav { height: 60px; }
  .topnav, .wrap, .footer { width: calc(100% - 12px); }
  .topnav { gap: 4px; }
  .mini-logo { width: 72px; min-width: 0; }
  .mini-logo img { width: 70px; height: 44px; }
  .wrap { margin: 8px auto 26px; }
  .hero-shell { border-radius: 14px; aspect-ratio: 16 / 9; }
  .quick-stats { width: calc(100% - 10px); margin-bottom: 14px; border-radius: 0 0 13px 13px; }
  .quick-stats div { min-height: 60px; padding: 7px 3px; }
  .quick-stats strong { font-size: clamp(13px, 4vw, 16px); text-align: center; line-height: 1.15; }
  .quick-stats span { margin-top: 3px; font-size: clamp(8px, 2.6vw, 10px); }
  .columns { gap: 9px; }
  .forum-tabs { height: auto; min-height: 46px; overflow: visible; }
  .forum-tabs a { padding: 0 5px; font-size: clamp(9px, 2.8vw, 10px); }
  .card, .sidebox { padding: 13px; }
  .pin { top: 10px; right: 10px; max-width: 48%; text-align: center; }
  .meta { flex-wrap: wrap; gap: 8px 12px; }
  .meta span { margin-right: 0; }
  .meta .stats { width: 100%; margin-left: 0; }
  .download-grid { gap: 7px; }
  .nav-popover, .nav-popover.compact, .nav-popover.align-right {
    top: 64px;
    right: 6px;
    left: 6px;
    max-width: none;
    max-height: calc(100dvh - 72px);
  }
  .footer { padding: 18px 12px; border-radius: 14px 14px 0 0; }
}

@media (max-width: 360px) {
  .topnav { width: calc(100% - 6px); }
  .mini-logo { width: 62px; }
  .mini-logo img { width: 60px; }
  .nav-actions { gap: 3px; }
  .nav-trigger, .nav-menu:nth-child(n) .nav-trigger { min-width: 39px; min-height: 39px; }
  .nav-trigger .ico, .nav-menu:nth-child(n) .nav-trigger .ico { width: 15px; height: 15px; padding: 5px; }
  .forum-tabs { gap: 3px; padding: 5px 4px; }
  .forum-tabs a { padding: 0 3px; font-size: 8.5px; }
}
.nav-popover-head strong, .nav-choice strong { font-weight: 800; }
.nav-popover-head small, .nav-choice small { color: #557963; font-weight: 600; }
.sidebox p, .trade-lock, .footer { color: #315d3e; font-weight: 600; }

/* Dropdowns remain clickable without visible arrow indicators. */
.nav-trigger b { display: none !important; }
.nav-trigger { padding-right: 10px; }
@media (max-width: 650px) {
  .nav-trigger { padding-right: 0; }
}

/* Slightly larger popup content cards */
.nav-popover { width: 450px; padding: 16px; }
.nav-popover.compact { width: 325px; }
.nav-choice {
  min-height: 72px;
  padding: 12px;
  gap: 12px;
  border-radius: 13px;
}
.nav-choice i {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}
.nav-choice i .ico { width: 20px; height: 20px; }
.nav-choice strong { font-size: 12px; }
.nav-choice small { font-size: 9px; }
.nav-popover-head strong { font-size: 15px; }
.nav-popover-head small { font-size: 10px; }
@media (max-width: 650px) {
  .nav-popover, .nav-popover.compact { width: auto; padding: 14px; }
  .nav-choice { min-height: 64px; padding: 10px; }
  .nav-choice i { width: 39px; height: 39px; flex-basis: 39px; }
}

/* Richer popup icons */
.nav-choice i {
  overflow: hidden;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-size: 23px;
  line-height: 1;
  text-shadow: 0 2px 3px rgba(0,0,0,.2);
}
.nav-choice i img {
  display: block;
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.2));
}
.nav-choice.account-choice i img { width: 100%; height: 100%; object-fit: contain; }
.nav-menu:nth-child(2) .nav-popover.compact {
  width: 325px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.nav-menu:nth-child(2).open .nav-popover.compact { display: grid; }
.nav-menu:nth-child(2) .nav-popover-head { grid-column: 1 / -1; }
.nav-menu:nth-child(2) .account-choice { min-width: 0; margin-top: 0; }
.nav-menu:nth-child(2) .nav-popover.compact .account-choice:first-of-type { margin-top: 0; }
.nav-menu:nth-child(2) .account-choice:nth-of-type(n+3) { grid-column: 1 / -1; }
.nav-menu:nth-child(2) .account-choice:nth-of-type(-n+2) {
  width: 100%;
  height: 82px;
  padding: 8px 6px;
  gap: 6px;
}
.nav-menu:nth-child(2) .account-choice:nth-of-type(-n+2) i {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}
.nav-menu:nth-child(2) .account-choice:nth-of-type(n+3) {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.nav-menu:nth-child(2) .account-choice:nth-of-type(n+3) span {
  align-items: center;
}
@media (max-width: 720px) {
  .nav-menu:nth-child(2) .nav-popover.compact { width: auto; }
}
.nav-choice.pc i { background: linear-gradient(145deg, #ffffff, #dceeff); }
.nav-choice.apk i { background: linear-gradient(145deg, #effff2, #bfeaca); }
.nav-choice.ipa i { background: linear-gradient(145deg, #fff, #dfe7f2); }
.nav-choice.testflight i { background: linear-gradient(145deg, #f5f0ff, #d9ccff); }
.brand-zalo {
  display: grid;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  color: #087be8;
  background: #fff;
  place-items: center;
  font: 800 10px Arial, sans-serif;
  text-shadow: none;
}
.brand-facebook {
  display: grid;
  width: 100%;
  height: 100%;
  color: #fff;
  place-items: center;
  font: 800 27px Arial, sans-serif;
  text-shadow: none;
}

/* Refined Zalo, Facebook and password-recovery marks */
.rich-svg { display: block; width: 34px; height: 34px; overflow: visible; }
.zalo-svg .zalo-app-bg { fill: #0b92f0; }
.zalo-svg .zalo-app-bubble { fill: #fff; }
.zalo-svg text { fill: #087fe5; font: 800 10.5px Arial, sans-serif; letter-spacing: -.5px; }
.facebook-svg circle { fill: #fff; }
.facebook-svg path { fill: #1877f2; }
.forgot-svg path:first-child { fill: #fff; opacity: .28; }
.forgot-svg circle { fill: none; stroke: #fff; stroke-width: 3; }
.forgot-svg path:last-child { fill: #fff; }
.nav-choice.zalo i {
  background: transparent;
  box-shadow: 0 4px 10px rgba(8,119,223,.24);
}
.nav-choice.facebook i {
  background: linear-gradient(145deg, #4f91ef, #1764c8);
  box-shadow: inset 0 1px rgba(255,255,255,.38), 0 4px 10px rgba(23,100,200,.24);
}
.nav-menu:nth-child(2) .nav-choice:nth-of-type(4) i {
  background: linear-gradient(145deg, #ffb458, #e77820);
  box-shadow: inset 0 1px rgba(255,255,255,.38), 0 4px 10px rgba(206,101,24,.22);
}

/* Image-button download picker */
.nav-menu:nth-child(1) .nav-popover { width: 430px; }
.nav-menu:nth-child(1) .nav-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.nav-menu:nth-child(1) .nav-choice {
  min-height: 50px;
  padding: 6px;
  border-color: rgba(44,137,66,.2);
  background: #edf7ef;
  justify-content: center;
}
.nav-menu:nth-child(1) .nav-choice span { display: none; }
.nav-menu:nth-child(1) .nav-choice i {
  width: 74px;
  height: 34px;
  flex: 0 0 74px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url('images/download-buttons-v2.png');
  background-repeat: no-repeat;
  background-size: 355px 119px;
  box-shadow: none;
  filter: drop-shadow(0 3px 3px rgba(48,95,57,.18));
}
.nav-menu:nth-child(1) .nav-choice i img { display: none; }

/* Responsive navigation overrides must remain last. */
@media (min-width: 901px) and (max-width: 1200px) {
  .nav-actions { gap: 5px; }
  .nav-trigger, .nav-menu:nth-child(n) .nav-trigger { padding: 0 10px 0 7px; gap: 6px; font-size: 10px; }
}
@media (min-width: 651px) and (max-width: 900px) {
  .nav-actions { gap: 4px; }
  .nav-trigger, .nav-menu:nth-child(n) .nav-trigger { min-height: 41px; padding: 0 8px 0 6px; gap: 5px; font-size: 9px; }
  .nav-trigger .ico, .nav-menu:nth-child(n) .nav-trigger .ico { width: 16px; height: 16px; padding: 5px; }
}
@media (max-width: 650px) {
  .nav-actions { gap: 5px; padding: 0; }
  .nav-trigger, .nav-menu:nth-child(n) .nav-trigger { min-width: 42px; min-height: 42px; padding: 0; justify-content: center; }
  .nav-trigger .ico, .nav-menu:nth-child(n) .nav-trigger .ico { width: 17px; height: 17px; padding: 6px; }
}
@media (max-width: 360px) {
  .nav-actions { gap: 3px; }
  .nav-trigger, .nav-menu:nth-child(n) .nav-trigger { min-width: 39px; min-height: 39px; }
  .nav-trigger .ico, .nav-menu:nth-child(n) .nav-trigger .ico { width: 15px; height: 15px; padding: 5px; }
}

/* Notice icon system. */
.important-notice .side-title { color: #1677b8; gap: 8px; }
.important-notice .side-title .ico { width: 18px; height: 18px; flex: 0 0 18px; stroke-width: 2.2; }
.important-notice .trade-lock { display: grid; gap: 8px; }
.important-notice .notice-line {
  display: flex;
  width: 100%;
  margin: 0;
  text-align: left;
  align-items: flex-start;
  gap: 9px;
}
.important-notice .notice-line .ico {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 18px;
  color: #1677b8;
  stroke-width: 2.1;
}
.important-notice .notice-line span { min-width: 0; }

/* Index typography scaled up by approximately 10%. */
body { font-size: 14.3px; }
.nav-trigger, .nav-menu:nth-child(n) .nav-trigger { font-size: 12px; }
.nav-popover-head strong { font-size: 16.5px; }
.nav-popover-head small { font-size: 11px; }
.nav-choice strong { font-size: 13.2px; }
.nav-choice small { font-size: 10px; }
.quick-stats strong { font-size: 22px; }
.quick-stats span { font-size: 12.1px; }
.forum-tabs a { font-size: 14px; }
.author { font-size: 14.3px; }
.time { font-size: 12.1px; }
.post-title, .event-post .post-title { font-size: 15.4px; }
.event-rules { font-size: 12.1px; }
.meta, .meta .stats { font-size: 12.1px; }
.side-title { font-size: 14.3px; }
.sidebox p { font-size: 11px; }
.trade-lock { font-size: 13.2px; }
.download-grid a, .download-grid > div, .auth-row button, .support-btn, .login-main { font-size: 12.1px; }
.footer { font-size: 11px; line-height: 1.65; }
@media (max-width: 650px) {
  body { font-size: 14.3px; }
  .quick-stats strong { font-size: clamp(14.3px, 4.4vw, 17.6px); }
  .quick-stats span { font-size: clamp(8.8px, 2.85vw, 11px); }
  .forum-tabs a { font-size: clamp(9.9px, 3vw, 11px); }
  .post-title, .event-post .post-title { font-size: 14.3px; }
  .event-rules { font-size: 11px; }
  .important-notice .notice-line .ico { width: 17px; height: 17px; flex-basis: 17px; }
}
@media (max-width: 360px) {
  .forum-tabs a { font-size: 9.35px; }
}

.important-notice .trade-lock > div { margin-top: 7px; font-weight: 700; line-height: 1.5; }
.important-notice .side-title { color: #1677b8; }

/* Polished primary navigation — final source of truth. */
.nav-actions {
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.nav-menu { --menu-accent: #2fa94c; --menu-accent-dark: #177333; }
.nav-menu:nth-child(2) { --menu-accent: #3d8fda; --menu-accent-dark: #2367a7; }
.nav-menu:nth-child(3) { --menu-accent: #27a98b; --menu-accent-dark: #11715e; }
.nav-menu:nth-child(4) { --menu-accent: #e69a32; --menu-accent-dark: #a85c16; }
.nav-trigger,
.nav-menu:nth-child(n) .nav-trigger {
  position: relative;
  min-height: 44px;
  padding: 0 14px 0 8px;
  overflow: hidden;
  border: 1px solid rgba(29, 94, 45, .24);
  border-radius: 12px;
  color: #123f21;
  background: #fff;
  box-shadow: 0 2px 5px rgba(26, 77, 39, .12);
  gap: 8px;
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .035em;
  isolation: isolate;
  transition: transform .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, background .18s ease;
}
.nav-trigger::after {
  position: absolute;
  right: 13px;
  bottom: 4px;
  left: 42px;
  height: 2px;
  border-radius: 99px;
  content: "";
  background: var(--menu-accent);
  opacity: .36;
  transform: scaleX(.35);
  transform-origin: left;
  transition: opacity .18s ease, transform .18s ease;
}
.nav-trigger .ico,
.nav-menu:nth-child(n) .nav-trigger .ico {
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--menu-accent), transparent 55%);
  border-radius: 10px;
  color: var(--menu-accent-dark);
  background: color-mix(in srgb, var(--menu-accent), white 86%);
  box-shadow: inset 0 1px #fff, 0 3px 7px color-mix(in srgb, var(--menu-accent), transparent 78%);
  stroke-width: 2.15;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.nav-trigger:hover,
.nav-menu:nth-child(n) .nav-trigger:hover,
.nav-menu:nth-child(n).open .nav-trigger {
  color: #0e5425;
  border-color: color-mix(in srgb, var(--menu-accent), transparent 48%);
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--menu-accent), white 91%));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--menu-accent), transparent 78%);
  transform: translateY(-1px);
}
.nav-trigger:hover::after,
.nav-menu.open .nav-trigger::after { opacity: .85; transform: scaleX(1); }
.nav-trigger:hover .ico,
.nav-menu.open .nav-trigger .ico {
  color: #fff;
  border-color: var(--menu-accent);
  background: var(--menu-accent);
  transform: translateY(-1px);
}
.nav-trigger:focus-visible { outline: 3px solid color-mix(in srgb, var(--menu-accent), transparent 72%); outline-offset: 2px; }
@media (max-width: 650px) {
  .nav-actions { gap: 5px; padding: 0; border-radius: 0; }
  .nav-trigger, .nav-menu:nth-child(n) .nav-trigger { min-width: 42px; min-height: 42px; padding: 0; justify-content: center; }
  .nav-trigger::after { right: 9px; bottom: 3px; left: 9px; }
  .nav-trigger .ico, .nav-menu:nth-child(n) .nav-trigger .ico { width: 17px; height: 17px; padding: 6px; }
}

/* Final source-of-truth: original download image assets. */
.nav-menu:nth-child(1) .nav-choice i,
.nav-menu:nth-child(1) .nav-choice.testflight i {
  width: 78px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: drop-shadow(0 2px 2px rgba(68,65,26,.18));
}
.nav-menu:nth-child(1) .nav-choice i::before,
.nav-menu:nth-child(1) .nav-choice i::after {
  display: none !important;
  content: none !important;
}
.nav-menu:nth-child(1) .nav-choice i img {
  display: block !important;
  width: 78px !important;
  height: 36px !important;
  opacity: 1 !important;
  object-fit: contain !important;
  visibility: visible !important;
}


/* Use the original game download artwork. */
.nav-menu:nth-child(1) .nav-grid { align-items: start; }
.nav-menu:nth-child(1) .nav-choice {
  min-height: 62px;
  padding: 5px 4px 4px;
  flex-direction: column;
  gap: 3px;
}
.nav-menu:nth-child(1) .nav-choice.apk { order: 1; }
.nav-menu:nth-child(1) .nav-choice.pc { order: 2; }
.nav-menu:nth-child(1) .nav-choice.testflight { order: 3; }
.nav-menu:nth-child(1) .nav-choice.ipa { order: 4; }
.nav-menu:nth-child(1) .nav-choice i,
.nav-menu:nth-child(1) .nav-choice.testflight i {
  width: 78px;
  height: 36px;
  flex: 0 0 36px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 2px 2px rgba(68,65,26,.18));
}
.nav-menu:nth-child(1) .nav-choice i::before,
.nav-menu:nth-child(1) .nav-choice i::after { display: none; content: none; }
.nav-menu:nth-child(1) .nav-choice i img {
  display: block;
  width: 78px;
  height: 36px;
  object-fit: contain;
  filter: none;
}
.nav-menu:nth-child(1) .nav-choice span { display: none; }
.nav-menu:nth-child(1) .nav-choice::after {
  color: #285b78;
  font: 400 10px/1 "Times New Roman", Times, serif !important;
  text-align: center;
}
.nav-menu:nth-child(1) .nav-choice.apk::after { content: ".APK"; }
.nav-menu:nth-child(1) .nav-choice.pc::after { content: ".RAR"; }
.nav-menu:nth-child(1) .nav-choice.testflight::after { content: "Testflight"; }
.nav-menu:nth-child(1) .nav-choice.ipa::after { content: ".IPA"; }
@media (max-width: 650px) {
  .nav-menu:nth-child(1) .nav-choice { min-height: 62px; }
}

.nav-menu:nth-child(1) .nav-choice.apk i { background-position: -13px -42px; }
.nav-menu:nth-child(1) .nav-choice.pc i { background-position: -92px -42px; }
.nav-menu:nth-child(1) .nav-choice.ipa i { background-position: -171px -42px; }
.nav-menu:nth-child(1) .nav-choice.testflight i { width: 76px; flex-basis: 76px; background-position: -250px -42px; }
.nav-menu:nth-child(1) .nav-choice:hover {
  background: #dff1e3;
  transform: translateY(-2px) scale(1.03);
}
@media (max-width: 650px) {
  .nav-menu:nth-child(1) .nav-popover { width: auto; }
  .nav-menu:nth-child(1) .nav-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-menu:nth-child(1) .nav-choice { min-height: 54px; }
}

/* Global index typography */
html, body, body *, body *::before, body *::after,
button, input, textarea, select, option {
  font-family: "Times New Roman", Times, serif !important;
}

/* Independent download badges — avoids sprite cropping artifacts. */
.nav-menu:nth-child(1) .nav-choice i,
.nav-menu:nth-child(1) .nav-choice.testflight i {
  position: relative;
  width: 78px;
  height: 36px;
  flex: 0 0 78px;
  overflow: hidden;
  border: 2px solid #9f2516;
  border-radius: 7px;
  color: #c61624;
  background: linear-gradient(180deg, #ffc31a 0%, #ffa400 72%, #ee8700 100%);
  background-image: none;
  box-shadow: inset 0 2px rgba(255,255,255,.72), inset 0 -2px rgba(177,53,0,.22), 0 2px 4px rgba(84,53,14,.18);
  text-shadow: 0 1px rgba(255,215,69,.7);
}
.nav-menu:nth-child(1) .nav-choice i::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  width: 23px;
  height: 7px;
  border-radius: 9px;
  background: rgba(255,255,255,.62);
  transform: skewX(-28deg);
}
.nav-menu:nth-child(1) .nav-choice i::after {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  white-space: pre-line;
  place-items: center;
  text-align: center;
  font: 800 14px/12px Arial, sans-serif !important;
}
.nav-menu:nth-child(1) .nav-choice.pc i::after { content: "PC\A Windows"; }
.nav-menu:nth-child(1) .nav-choice.apk i::after { content: "ANDROID\A Google Play"; font-size: 11px; }
.nav-menu:nth-child(1) .nav-choice.ipa i::after { content: "IPA"; font-size: 16px; }
.nav-menu:nth-child(1) .nav-choice.testflight i::after { content: "IPHONE"; font-size: 13px; }
.nav-menu:nth-child(1) .nav-choice i img { display: none; }

/* Final responsive navigation precedence. */
@media (min-width: 651px) {
  .nav-menu:nth-child(3) .nav-popover,
  .nav-menu:nth-child(4) .nav-popover { right: 0; left: auto; transform-origin: top right; }
  .nav-menu:nth-child(3) .nav-popover::before,
  .nav-menu:nth-child(4) .nav-popover::before { right: 24px; left: auto; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .nav-actions { gap: 5px; }
  .nav-trigger, .nav-menu:nth-child(n) .nav-trigger { padding: 0 10px 0 7px; gap: 6px; font-size: 10px; }
}
@media (min-width: 651px) and (max-width: 900px) {
  .nav-actions { gap: 4px; }
  .nav-trigger, .nav-menu:nth-child(n) .nav-trigger { min-height: 41px; padding: 0 8px 0 6px; gap: 5px; font-size: 9px; }
  .nav-trigger .ico, .nav-menu:nth-child(n) .nav-trigger .ico { width: 16px; height: 16px; padding: 5px; }
}
@media (max-width: 650px) {
  .nav-actions { gap: 5px; padding: 0; }
  .nav-trigger, .nav-menu:nth-child(n) .nav-trigger { min-width: 42px; min-height: 42px; padding: 0; justify-content: center; }
  .nav-trigger .ico, .nav-menu:nth-child(n) .nav-trigger .ico { width: 17px; height: 17px; padding: 6px; }
}
@media (max-width: 360px) {
  .nav-actions { gap: 3px; }
  .nav-trigger, .nav-menu:nth-child(n) .nav-trigger { min-width: 39px; min-height: 39px; }
  .nav-trigger .ico, .nav-menu:nth-child(n) .nav-trigger .ico { width: 15px; height: 15px; padding: 5px; }
}

/* Final index notice and 110% typography precedence. */
.important-notice .side-title { color: #1677b8; gap: 8px; font-size: 14.3px; }
.important-notice .side-title .ico { width: 18px; height: 18px; flex: 0 0 18px; stroke-width: 2.2; }
.important-notice .trade-lock { display: grid; gap: 8px; font-size: 13.2px; }
.important-notice .notice-line { display: flex; width: 100%; margin: 0; text-align: left; align-items: flex-start; gap: 9px; }
.important-notice .notice-line .ico { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 18px; color: #1677b8; stroke-width: 2.1; }
.important-notice .notice-line span { min-width: 0; }
body { font-size: 14.3px; }
.nav-trigger, .nav-menu:nth-child(n) .nav-trigger { font-size: 12px; }
.nav-popover-head strong { font-size: 16.5px; }
.nav-popover-head small { font-size: 11px; }
.nav-choice strong { font-size: 13.2px; }
.nav-choice small { font-size: 10px; }
.quick-stats strong { font-size: 22px; }
.quick-stats span { font-size: 12.1px; }
.forum-tabs a { font-size: 14px; }
.author, .side-title { font-size: 14.3px; }
.time, .event-rules, .meta, .meta .stats { font-size: 12.1px; }
.post-title, .event-post .post-title { font-size: 15.4px; }
.sidebox p { font-size: 11px; }
.trade-lock { font-size: 13.2px; }
.download-grid a, .download-grid > div, .auth-row button, .support-btn, .login-main { font-size: 12.1px; }
.footer { font-size: 11px; line-height: 1.65; }
@media (max-width: 650px) {
  .quick-stats strong { font-size: clamp(14.3px, 4.4vw, 17.6px); }
  .quick-stats span { font-size: clamp(8.8px, 2.85vw, 11px); }
  .forum-tabs a { font-size: clamp(9.9px, 3vw, 11px); }
  .post-title, .event-post .post-title { font-size: 14.3px; }
  .event-rules { font-size: 11px; }
  .important-notice .notice-line .ico { width: 17px; height: 17px; flex-basis: 17px; }
}
@media (max-width: 360px) { .forum-tabs a { font-size: 9.35px; } }
.support-box .side-title,
.important-notice .side-title { justify-content: flex-start; text-align: left; }
.important-notice .notice-line { justify-content: center; text-align: center; align-items: center; }
.support-box p { text-align: center; }
.support-box .support-btn { justify-content: center; text-align: center; }
.wrap { margin-bottom: 18px; }
@media (max-width: 650px) { .wrap { margin-bottom: 12px; } }

/* Thu gon cum ba thong tin ngay duoi banner. */
.quick-stats { width: min(700px, calc(100% - 32px)); margin-bottom: 21px; }
.quick-stats div { min-height: 56px; padding: 7px 14px; }
.quick-stats strong { font-size: 19px; line-height: 1.15; }
.quick-stats span { margin-top: 2px; font-size: 10px; line-height: 1.25; }
@media (max-width: 650px) {
  .quick-stats { width: calc(100% - 16px); margin-bottom: 12px; }
  .quick-stats div { min-height: 52px; padding: 6px 3px; }
  .quick-stats strong { font-size: clamp(13px, 3.8vw, 15px); }
  .quick-stats span { font-size: clamp(8px, 2.4vw, 9px); }
}

/* Đồng bộ bốn menu đầu trang bằng tông xanh nước biển. */
.nav-actions .nav-menu:nth-child(n) .nav-trigger {
  color: #12658d;
  border-color: #79c7e7;
  background: linear-gradient(145deg, #f1fbff, #d9f3ff);
  box-shadow: 0 4px 11px rgba(24, 123, 166, .17);
}
.nav-actions .nav-menu:nth-child(n) .nav-trigger .ico {
  color: #fff;
  background: linear-gradient(145deg, #58c7f3, #278dc8);
}
.nav-actions .nav-menu:nth-child(n) .nav-trigger::after { background: #279ed4; }
.nav-actions .nav-menu:nth-child(n) .nav-trigger:hover,
.nav-actions .nav-menu:nth-child(n).open .nav-trigger {
  color: #074d70;
  border-color: #299fd3;
  background: linear-gradient(145deg, #dcf5ff, #bce9fb);
  box-shadow: 0 6px 15px rgba(20, 117, 161, .25);
}
.nav-actions .nav-menu:nth-child(n) .nav-popover {
  border-color: #67bde2;
  background: linear-gradient(155deg, rgba(245,252,255,.99), rgba(218,243,255,.99));
  box-shadow: 0 20px 48px rgba(18, 103, 145, .24);
}
.nav-actions .nav-menu:nth-child(n) .nav-popover::before {
  border-right-color: #67bde2;
  border-bottom-color: #67bde2;
  background: #edfaff;
}
.nav-actions .nav-menu:nth-child(n) .nav-popover-head { border-color: #91cee8; }
.nav-actions .nav-menu:nth-child(n) .nav-popover-head strong,
.nav-actions .nav-menu:nth-child(n) .nav-choice strong { color: #0b597e; }
.nav-actions .nav-menu:nth-child(n) .nav-popover-head small,
.nav-actions .nav-menu:nth-child(n) .nav-choice small { color: #4d8199; }
.nav-actions .nav-menu:nth-child(n) .nav-choice {
  color: #155f82;
  border-color: #9bcfe5;
  background: rgba(239, 250, 255, .92);
}
.nav-actions .nav-menu:nth-child(n) .nav-choice:hover {
  border-color: #3ca7d4;
  background: #ccefff;
  box-shadow: 0 5px 12px rgba(25, 117, 158, .16);
}
.nav-actions .nav-menu:nth-child(n) .nav-choice i {
  color: #fff;
  border-color: #75bfe0;
  background: linear-gradient(145deg, #d9f4ff, #8fd5f0);
}

/* Co giãn chữ và khoảng cách theo kích thước màn hình. */
@media (min-width: 901px) {
  body { font-size: 15px; }
  .nav-trigger, .nav-menu:nth-child(n) .nav-trigger { font-size: 13px; }
  .nav-popover-head strong { font-size: 17px; }
  .nav-popover-head small { font-size: 11.5px; }
  .nav-choice strong { font-size: 14px; }
  .nav-choice small { font-size: 10.5px; }
  .forum-tabs a, .author, .side-title { font-size: 15px; }
  .post-title, .event-post .post-title { font-size: 16px; }
  .event-rules, .meta, .meta .stats { font-size: 12.5px; }
}
@media (min-width: 651px) and (max-width: 900px) {
  body { font-size: 13.5px; }
  .nav-choice strong { font-size: 12.5px; }
  .nav-choice small { font-size: 9.5px; }
}
@media (max-width: 650px) {
  body { font-size: 12.5px; }
  .wrap { width: calc(100% - 16px); }
  .columns { gap: 9px; }
  .nav-popover-head strong { font-size: 14px; }
  .nav-popover-head small { font-size: 9.5px; }
  .nav-choice strong { font-size: 12px; }
  .nav-choice small { font-size: 9px; }
  .nav-menu:nth-child(2) .account-choice:nth-of-type(-n+2) { height: 72px; }
  .nav-menu:nth-child(2) .account-choice:nth-of-type(-n+2) i {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .forum-tabs a { font-size: 10px; }
  .author, .side-title { font-size: 12.5px; }
  .post-title, .event-post .post-title { font-size: 13.5px; }
  .event-rules, .meta, .meta .stats { font-size: 10.5px; }
  .sidebox p, .trade-lock { font-size: 10.5px; }
}
