/* MEGA888 by Zoth Malaysia - flat minimalist white blue */
:root {
  --brand: #1565c0;
  --brand-dark: #0d47a1;
  --brand-soft: #e3f2fd;
  --ink: #1a2332;
  --muted: #5b6b7c;
  --line: #dbe4ee;
  --bg: #f5f8fb;
  --surface: #ffffff;
  --radius: 12px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--brand-dark);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Top bar */
.topbar {
  background: var(--brand-dark);
  color: #d6e4f5;
  font-size: .8125rem;
  font-weight: 500;
  padding: .55rem 0;
}
.topbar a {
  color: #bbdefb;
  text-decoration: none;
  font-weight: 600;
}
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-sep { opacity: .45; margin: 0 .35rem; }

/* Header / nav */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar { padding: .7rem 0; }

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}
.navbar-brand:hover { color: var(--ink); text-decoration: none; }

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand-text small {
  font-size: .72rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: .01em;
}

.navbar-nav .nav-link {
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  padding: .45rem .7rem !important;
  border-radius: 8px;
}
.navbar-nav .nav-link:hover {
  color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none;
}
.navbar-nav .nav-link.active {
  color: var(--brand);
  background: var(--brand-soft);
}

.navbar-toggler {
  border: 1px solid var(--line);
  padding: .4rem .55rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(21, 101, 192, .2); }

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  font-weight: 700;
  border-radius: 8px;
}
.btn-brand:hover { text-decoration: none; }

/* Breadcrumb */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: .65rem 0;
}
.breadcrumb {
  font-size: .85rem;
  font-weight: 500;
}
.breadcrumb-item a { color: var(--brand); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--muted); }
.breadcrumb-item + .breadcrumb-item::before { color: #9aabbc; }

/* Hero banner */
.hero-banner {
  background: var(--brand-soft);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.banner-frame {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

/* Page */
.page-wrap {
  padding: 1.75rem 0 3rem;
}

#content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.75rem;
}

#content h1 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.25;
  margin: 0 0 .85rem;
  color: var(--ink);
}

#content .lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* Sidebar */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
}

.sidebar-title {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 .85rem;
}

.sidebar-meta,
.sidebar-links,
.sidebar-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 600;
}
.sidebar-meta li:last-child { border-bottom: 0; }
.sidebar-meta li span {
  color: var(--muted);
  font-weight: 500;
}

.sidebar-links li + li { margin-top: .35rem; }
.sidebar-links a {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  text-decoration: none;
  padding: .35rem .5rem;
  border-radius: 8px;
}
.sidebar-links a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.sidebar-steps {
  list-style: decimal;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: .9rem;
}
.sidebar-steps li { padding: .2rem 0; }

/* Footer */
.site-footer {
  background: #0f2744;
  color: #c5d4e6;
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-heading {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 .85rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li + li { margin-top: .4rem; }
.footer-links a {
  color: #b7c9dd;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
}
.footer-brand strong {
  display: block;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
}
.footer-brand span {
  display: block;
  font-size: .78rem;
  color: #8fa6c0;
  font-weight: 500;
}

.footer-copy {
  font-size: .82rem;
  color: #8fa6c0;
  text-align: right;
}
.footer-copy p { margin: 0 0 .2rem; }

@media (max-width: 575.98px) {
  .brand-text small { display: none; }
  .footer-copy { text-align: left; width: 100%; }
  #content { padding: 1.15rem 1rem 1.35rem; }
}

/* ===== Homepage ===== */
#content h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--brand);
  margin: 1.75rem 0 .75rem;
}
#content h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 1rem 0 .5rem;
  color: var(--ink);
}
#content p { margin-bottom: .9rem; }

.banner-placeholder {
  border: 2px dashed #b7c8da;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      -45deg,
      #f7fafc,
      #f7fafc 12px,
      #eef3f8 12px,
      #eef3f8 24px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}
.banner-placeholder--hero { min-height: 180px; aspect-ratio: 3 / 1; }
.banner-placeholder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 1rem;
}
.banner-placeholder__inner i {
  font-size: 1.4rem;
  color: var(--brand);
  opacity: .75;
}
.banner-placeholder__inner strong {
  color: var(--ink);
  font-weight: 800;
}
.banner-placeholder__inner span { font-size: .85rem; }
.banner-placeholder code {
  font-size: .78rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: .1rem .35rem;
  border-radius: 4px;
}

.btn-outline-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  font-weight: 700;
  border-radius: 8px;
}
.btn-outline-brand:hover { text-decoration: none; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  margin: 0 0 1.15rem;
}
.hero-cta-sub {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  width: 100%;
}
.hero-cta .btn { font-weight: 700; }

.notice-box {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: var(--brand-soft);
  border: 1px solid #c5daf0;
  border-radius: 10px;
  padding: .9rem 1rem;
  margin: 0 0 1.25rem;
  font-size: .95rem;
}
.notice-box > i {
  color: var(--brand);
  margin-top: .2rem;
  flex-shrink: 0;
}

.platform-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: .5rem;
}
.platform-table {
  margin: 0;
  font-size: .92rem;
}
.platform-table thead th {
  background: #f7faff;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom-color: var(--line);
  white-space: nowrap;
}
.platform-table td,
.platform-table th {
  padding: .8rem .9rem;
  vertical-align: middle;
  border-color: var(--line);
}
.platform-table .os {
  font-weight: 700;
  white-space: nowrap;
}

.steps-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}
.steps-list li { margin-bottom: .4rem; }

.info-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: #fff;
  margin-bottom: .5rem;
}
.info-card--soft { background: var(--brand-soft); border-color: #c5daf0; }
.info-card__title {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .65rem;
}
.info-card ul { padding-left: 1.15rem; margin-bottom: 0; }
.info-card li { margin-bottom: .3rem; }

.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.pay-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 700;
  padding: .28rem .55rem;
  border-radius: 999px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
  margin: 0 0 1rem;
}
.game-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 84px;
  background: var(--brand-soft);
  border: 1px solid #c5daf0;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  padding: .6rem .35rem;
}
.game-tile i {
  color: var(--brand);
  font-size: 1.15rem;
}

.faq-list { margin-bottom: .5rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .9rem 1rem;
  margin-bottom: .65rem;
  background: #fff;
}
.faq-item h3 {
  margin: 0 0 .35rem;
  font-size: .98rem;
  color: var(--ink);
}
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.faq-more {
  font-size: .9rem;
  color: var(--muted);
}

@media (max-width: 767.98px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner-placeholder--hero { aspect-ratio: 16 / 9; min-height: 140px; }
  .hero-cta .btn-lg { font-size: 1rem; padding: .55rem 1rem; }
}

/* Download cards */
.dl-app-icon {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #fff;
}
.dl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
  text-align: center;
}
.dl-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto .75rem;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.dl-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 .4rem;
  color: var(--ink);
}
.dl-card__meta {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 1rem;
  min-height: 2.8em;
}
