/* ============================================================
   Mega888iOS — Design System
   Premium, modern, gaming-inspired information portal
   ============================================================ */

:root {
  /* Colors */
  --bg: #07111F;
  --surface: #0D1B2A;
  --surface-elevated: #12243A;
  --primary: #22D3EE;
  --secondary: #0EA5E9;
  --gold: #F5C451;
  --text: #F8FAFC;
  --text-secondary: #CBD5E1;
  --muted: #94A3B8;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);

  /* Layout */
  --container: 1200px;
  --container-narrow: 800px;
  --header-height: 68px;

  /* Typography */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img,
svg,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--gold);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
  font-size: inherit;
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section-sm {
  padding: 40px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  min-height: 44px;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #07111F;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.3);
  color: #07111F;
}

.btn-gold {
  background: var(--gold);
  color: #07111F;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 196, 81, 0.3);
  color: #07111F;
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
  min-height: 36px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 17, 31, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(7, 17, 31, 0.95);
  border-bottom-color: var(--border);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .logo-name {
  font-size: 1.0625rem;
  font-weight: 700;
}

.logo-text .logo-sub {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-elevated);
}

.nav-link[aria-current="page"] {
  color: var(--primary);
}

.nav-dropdown-toggle .chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.nav-item.open .nav-dropdown-toggle .chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
    visibility 0.2s;
}

.nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:hover {
  background: var(--surface-elevated);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.search-btn:hover {
  background: var(--surface-elevated);
  color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 85vw);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  min-height: var(--header-height);
}

.mobile-nav-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.mobile-nav-close:hover {
  background: var(--surface-elevated);
}

.mobile-nav-list {
  padding: 12px;
  flex: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  min-height: 44px;
}

.mobile-nav-link:hover,
.mobile-nav-link[aria-current="page"] {
  background: var(--surface-elevated);
  color: var(--primary);
}

.mobile-nav-sub {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}

.mobile-nav-sub.open {
  max-height: 300px;
}

.mobile-nav-sub a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--muted);
  border-radius: var(--radius-sm);
}

.mobile-nav-sub a:hover {
  color: var(--primary);
}

.mobile-nav-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

body.no-scroll {
  overflow: hidden;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(34, 211, 238, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero h1 .gold {
  color: var(--gold);
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-cta .btn svg {
  flex-shrink: 0;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* App info card */
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--gold));
}

.app-card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.app-card-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-card-subtitle {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.app-card-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.8125rem;
  color: var(--muted);
}

.info-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.app-card-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ============================================================
   Quick Info Bar
   ============================================================ */

.quick-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.quick-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.quick-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.quick-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.1);
  border-radius: var(--radius-sm);
  color: var(--primary);
}

.quick-card-icon svg {
  width: 22px;
  height: 22px;
}

.quick-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.quick-card p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.quick-card a {
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

/* ============================================================
   Content layout with TOC sidebar
   ============================================================ */

.content-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-list a {
  display: block;
  padding: 8px 12px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all 0.2s var(--ease);
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--primary);
  background: var(--surface-elevated);
  border-left-color: var(--primary);
}

.toc-toggle {
  display: none;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.toc-toggle .chevron {
  transition: transform 0.3s var(--ease);
}

.toc-toggle.open .chevron {
  transform: rotate(180deg);
}

/* Article content */
.article-content {
  max-width: 100%;
}

.article-content h2 {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-content ul li,
.article-content ol li {
  list-style: disc;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.article-content ol li {
  list-style: decimal;
}

.article-content strong {
  color: var(--text);
  font-weight: 600;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   Device / Download cards
   ============================================================ */

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.device-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.device-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.device-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.device-card-icon.android {
  background: rgba(34, 211, 238, 0.12);
  color: var(--primary);
}

.device-card-icon.ios {
  background: rgba(245, 196, 81, 0.12);
  color: var(--gold);
}

.device-card-icon.general {
  background: rgba(14, 165, 233, 0.12);
  color: var(--secondary);
}

.device-card-icon svg {
  width: 30px;
  height: 30px;
}

.device-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.device-card .device-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.device-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.device-card ul li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.device-card ul li::before {
  content: "→";
  color: var(--primary);
  flex-shrink: 0;
}

.device-card .btn {
  margin-top: auto;
}

/* ============================================================
   Content Hub cards
   ============================================================ */

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.hub-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-elevated);
  border-radius: var(--radius-sm);
  color: var(--primary);
  margin-bottom: 4px;
}

.hub-card-icon svg {
  width: 24px;
  height: 24px;
}

.hub-card .category {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.hub-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.hub-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.hub-card a.read-more {
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

/* ============================================================
   Article cards (blog)
   ============================================================ */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.article-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-elevated);
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}

.article-card:hover .article-card-thumb img {
  transform: scale(1.05);
}

.article-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.article-card .category {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.article-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.article-card .excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.article-card .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.article-card .read-more {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ============================================================
   FAQ Accordion
   ============================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.faq-item.open {
  border-color: var(--border-strong);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  min-height: 44px;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-question .chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}

.faq-answer-inner {
  padding: 0 20px 18px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-answer-inner p {
  margin-bottom: 10px;
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  width: 100%;

  background: var(--surface);

  border-top: 1px solid var(--border);

  padding: 56px 0 24px;

  margin-top: 40px;
}


/* ============================================================
   FOOTER GRID
   Desktop:
   Brand | Social | Maklumat | Panduan | Mega888 | Bantuan
   ============================================================ */

.footer-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(200px, 1.5fr)
    minmax(145px, 1fr)
    minmax(130px, 1fr)
    minmax(130px, 1fr)
    minmax(130px, 1fr)
    minmax(130px, 1fr);

  align-items: start;

  gap: 28px;

  margin-bottom: 40px;
}


/* ============================================================
   FOOTER BRAND
   ============================================================ */

.footer-brand {
  min-width: 0;
}

.footer-brand .logo {
  margin-bottom: 16px;
}


/* ============================================================
   FOOTER LOGO
   ============================================================ */

.footer-logo {
  display: inline-flex;

  align-items: center;

  width: fit-content;

  flex-shrink: 0;

  text-decoration: none;
}

.footer-logo-image {
  display: block;

  width: auto;
  height: 46px;

  max-width: 200px;

  object-fit: contain;
}


/* ============================================================
   FOOTER BRAND DESCRIPTION
   ============================================================ */

.footer-brand p {
  max-width: 260px;

  margin: 0;

  color: var(--muted);

  font-size: 0.875rem;
  font-weight: 400;

  line-height: 1.65;
}


/* ============================================================
   GLOBAL SOCIAL MEDIA CONTAINER
   ============================================================ */

#global-social-media {
  min-width: 0;
}


/* ============================================================
   FOOTER SOCIAL
   ============================================================ */

.footer-social {
  width: 100%;

  margin: 0;
}


/* Social title */

.footer-social h4 {
  margin: 0 0 14px;

  color: var(--text);

  font-size: 0.75rem;
  font-weight: 700;

  line-height: 1.3;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}


/* ============================================================
   SOCIAL LINKS
   ============================================================ */

.footer-social-links {
  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 8px;
}


/* ============================================================
   SOCIAL BUTTON
   ============================================================ */

.footer-social-link,
.footer-social-link:link,
.footer-social-link:visited {
  width: fit-content;

  min-width: 0;
  min-height: 34px;

  display: inline-flex;

  align-items: center;
  justify-content: flex-start;

  gap: 7px;

  padding: 7px 10px;

  background: var(--surface-elevated);

  border: 1px solid var(--border);

  border-radius: 8px;

  color: var(--text-secondary) !important;

  font-size: 0.75rem;
  font-weight: 700;

  line-height: 1;

  white-space: nowrap;

  text-decoration: none !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025);

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}


/* ============================================================
   SOCIAL ICON
   Prevent global SVG CSS conflicts
   ============================================================ */

.footer-social-link svg {
  display: block !important;

  width: 14px !important;
  height: 14px !important;

  min-width: 14px !important;
  min-height: 14px !important;

  max-width: 14px !important;
  max-height: 14px !important;

  flex: 0 0 14px !important;

  margin: 0 !important;
  padding: 0 !important;

  fill: currentColor;

  position: static !important;

  transform: none !important;
}


/* ============================================================
   SOCIAL TEXT
   ============================================================ */

.footer-social-link span {
  display: inline-block;

  margin: 0;
  padding: 0;

  color: inherit;

  font-size: inherit;
  font-weight: inherit;

  line-height: 1;
}


/* ============================================================
   SOCIAL HOVER
   ============================================================ */

.footer-social-link:hover {
  transform: translateY(-1px);

  color: #ffffff !important;

  text-decoration: none !important;

  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.18);
}


/* Blogspot */

.footer-social-link.social-blogspot:hover {
  background: #f57d00;

  border-color: #f57d00;
}


/* Medium */

.footer-social-link.social-medium:hover {
  background: #111111;

  border-color: #333333;
}


/* Telegram */

.footer-social-link.social-telegram:hover {
  background: #229ed9;

  border-color: #229ed9;
}


/* Google Sites */

.footer-social-link.social-google:hover {
  background: #4285f4;

  border-color: #4285f4;
}


/* X */

.footer-social-link.social-x:hover {
  background: #111111;

  border-color: #333333;
}


/* Pinterest */

.footer-social-link.social-pinterest:hover {
  background: #e60023;

  border-color: #e60023;
}


/* Accessibility */

.footer-social-link:focus-visible {
  outline: 2px solid var(--primary);

  outline-offset: 3px;
}


/* ============================================================
   FOOTER COLUMNS
   ============================================================ */

.footer-col {
  min-width: 0;
}

.footer-col h4 {
  margin: 0 0 14px;

  color: var(--text);

  font-size: 0.75rem;
  font-weight: 700;

  line-height: 1.3;

  text-transform: uppercase;

  letter-spacing: 0.1em;
}

.footer-col ul {
  display: flex;

  flex-direction: column;

  gap: 9px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.footer-col li {
  margin: 0;
  padding: 0;
}

.footer-col ul a,
.footer-col ul a:link,
.footer-col ul a:visited {
  color: var(--text-secondary);

  font-size: 0.875rem;
  font-weight: 400;

  line-height: 1.45;

  text-decoration: none;
}

.footer-col ul a:hover {
  color: var(--primary);

  text-decoration: none;
}


/* ============================================================
   FOOTER NOTICE
   ============================================================ */

.footer-notice {
  width: 100%;

  margin-top: 20px;

  padding: 16px;

  background: var(--surface-elevated);

  border: 1px solid var(--border);

  border-radius: var(--radius-sm);

  color: var(--muted);

  font-size: 0.75rem;

  line-height: 1.6;
}

.footer-notice strong {
  color: var(--text-secondary);

  font-weight: 700;
}


/* ============================================================
   FOOTER BOTTOM
   ============================================================ */

.footer-bottom {
  width: 100%;

  display: flex;

  flex-wrap: wrap;

  justify-content: space-between;

  align-items: center;

  gap: 16px;

  margin-top: 24px;

  padding-top: 24px;

  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;

  color: var(--muted);

  font-size: 0.8125rem;

  line-height: 1.5;
}


/* ============================================================
   FOOTER LEGAL
   ============================================================ */

.footer-legal {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 16px;
}

.footer-legal a,
.footer-legal a:link,
.footer-legal a:visited {
  color: var(--muted);

  font-size: 0.8125rem;

  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--primary);

  text-decoration: none;
}


/* ============================================================
   LARGE / MEDIUM DESKTOP
   ============================================================ */

@media (max-width: 1200px) {

  .footer-grid {
    grid-template-columns:
      minmax(190px, 1.4fr)
      minmax(135px, 1fr)
      repeat(4, minmax(115px, 1fr));

    gap: 22px;
  }

}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1000px) {

  .footer-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 36px 28px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-brand p {
    max-width: 420px;
  }

}


/* ============================================================
   SMALL TABLET
   ============================================================ */

@media (max-width: 768px) {

  .site-footer {
    padding: 44px 0 22px;
  }

  .footer-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 32px 24px;

    margin-bottom: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 520px;
  }

  .footer-logo-image {
    height: 42px;

    max-width: 180px;
  }

  .footer-social-links {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 8px;
  }

  .footer-social-link,
  .footer-social-link:link,
  .footer-social-link:visited {
    width: 100%;

    min-height: 40px;

    justify-content: flex-start;

    padding: 9px 11px;
  }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 520px) {

  .site-footer {
    padding: 38px 0 20px;

    margin-top: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;

    gap: 28px;

    margin-bottom: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-logo-image {
    height: 38px;

    max-width: 160px;
  }

  .footer-brand p {
    max-width: none;

    font-size: 0.8125rem;
  }

  .footer-social-links {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 8px;
  }

  .footer-social-link {
    width: 100%;
  }

  .footer-bottom {
    align-items: flex-start;

    flex-direction: column;

    gap: 12px;
  }

  .footer-legal {
    gap: 10px 14px;
  }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 360px) {

  .footer-logo-image {
    height: 34px;

    max-width: 145px;
  }

  .footer-social-links {
    grid-template-columns: 1fr;
  }

}

/* ============================================================
   Back to top
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s var(--ease);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: var(--bg);
}

/* ============================================================
   Page header (sub-pages)
   ============================================================ */

.page-header {
  padding: 48px 0 32px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(34, 211, 238, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  color: var(--muted);
}

.breadcrumb .current {
  color: var(--primary);
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-header .page-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

/* ============================================================
   Info card grid (sub-pages)
   ============================================================ */

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.info-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   CTA banner
   ============================================================ */

.cta-banner {
  background: linear-gradient(135deg, var(--surface), var(--surface-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--gold));
}

.cta-banner h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.cta-banner .hero-cta {
  justify-content: center;
}

/* ============================================================
   Search overlay
   ============================================================ */

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 31, 0.95);
  backdrop-filter: blur(8px);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-box {
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
}

.search-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.125rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  outline: none;
}

.search-input:focus {
  border-color: var(--primary);
}

.search-hint {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   Utility
   ============================================================ */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   MEGA888 DOWNLOAD SECTION
   ============================================================ */

.mega-download-section {
  width: 100%;
  margin: 38px 0;
}

.mega-download-section h2 {
  margin: 0 0 14px;
}

.mega-download-intro {
  margin: 0 0 22px;
}


/* ============================================================
   DOWNLOAD BAR
   ============================================================ */

.article-download-bar {
  width: 100%;

  padding: 22px 24px;

  background:
    linear-gradient(
      135deg,
      #10263e 0%,
      #0f2238 52%,
      #0b1d30 100%
    );

  border: 1px solid rgba(83, 139, 181, 0.34);
  border-radius: 16px;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}


/* ============================================================
   TOP AREA
   ============================================================ */

.article-download-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 28px;
}


/* ============================================================
   APP INFORMATION
   ============================================================ */

.article-download-app {
  flex: 1 1 auto;
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 18px;
}


/* ============================================================
   APP ICON
   ============================================================ */

.article-download-icon {
  display: block;

  width: 72px;
  height: 72px;

  flex: 0 0 72px;

  padding: 3px;

  object-fit: cover;

  background: rgba(255, 255, 255, 0.045);

  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;

  box-shadow:
    0 5px 16px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}


/* ============================================================
   APP TEXT
   ============================================================ */

.article-download-info {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 5px;
}

.article-download-title {
  color: #ffffff;

  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.2;
}

.article-download-status {
  display: inline-flex;
  align-items: center;

  gap: 6px;

  color: #ffbf3e;

  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-download-status svg {
  width: 15px;
  height: 15px;

  flex: 0 0 15px;

  fill: currentColor;
}

.article-download-version {
  color: #91a9bf;

  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.5;
}


/* ============================================================
   DOWNLOAD ACTIONS
   ============================================================ */

.article-download-actions {
  flex: 0 0 auto;

  display: flex;
  align-items: center;

  gap: 10px;
}


/* ============================================================
   BUTTON BASE
   ============================================================ */

.article-download-btn,
.article-download-btn:link,
.article-download-btn:visited {
  min-width: 86px;
  min-height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  padding: 11px 17px;

  border-radius: 9px;

  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;

  text-decoration: none !important;
  white-space: nowrap;

  box-shadow:
    0 6px 15px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.article-download-btn:hover {
  text-decoration: none !important;

  transform: translateY(-2px);

  box-shadow:
    0 9px 20px rgba(0, 0, 0, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.article-download-btn:active {
  transform: translateY(0);
}

.article-download-btn:focus-visible {
  outline: 3px solid #22d3ee;
  outline-offset: 3px;
}


/* ============================================================
   BUTTON ICON
   ============================================================ */

.download-btn-icon {
  display: block;

  width: 17px;
  height: 17px;

  flex: 0 0 17px;

  fill: currentColor;
}


/* ============================================================
   APK BUTTON
   ============================================================ */

.article-download-btn.download-android,
.article-download-btn.download-android:link,
.article-download-btn.download-android:visited {
  color: #ffffff !important;

  background:
    linear-gradient(
      180deg,
      #20bf61 0%,
      #17aa52 100%
    );

  border: 1px solid #29cd6d;
}

.article-download-btn.download-android:hover {
  color: #ffffff !important;

  background:
    linear-gradient(
      180deg,
      #25ca68 0%,
      #18b358 100%
    );
}


/* ============================================================
   IOS BUTTON
   ============================================================ */

.article-download-btn.download-ios,
.article-download-btn.download-ios:link,
.article-download-btn.download-ios:visited {
  color: #0a1424 !important;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #edf1f5 100%
    );

  border: 1px solid #ffffff;
}

.article-download-btn.download-ios:hover {
  color: #0a1424 !important;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #e3e8ed 100%
    );
}


/* ============================================================
   WINDOWS BUTTON
   ============================================================ */

.article-download-btn.download-windows,
.article-download-btn.download-windows:link,
.article-download-btn.download-windows:visited {
  color: #ffffff !important;

  background:
    linear-gradient(
      180deg,
      #2d90e4 0%,
      #2177c8 100%
    );

  border: 1px solid #419bea;
}

.article-download-btn.download-windows:hover {
  color: #ffffff !important;

  background:
    linear-gradient(
      180deg,
      #369bef 0%,
      #247fd4 100%
    );
}


/* ============================================================
   FILE DETAILS
   ============================================================ */

.article-download-details {
  width: 100%;

  display: grid;
  grid-template-columns:
    2fr
    0.7fr
    0.8fr
    0.9fr
    1.1fr;

  gap: 0;

  margin: 18px 0 0;
  padding: 14px 0 0;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.download-detail-item {
  min-width: 0;

  margin: 0;
  padding: 0 14px;

  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.download-detail-item:first-child {
  padding-left: 0;
}

.download-detail-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.download-detail-item dt {
  margin: 0 0 3px;

  color: #738da5;

  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.4;

  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.download-detail-item dd {
  margin: 0;

  color: #d4e0ea;

  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.4;

  overflow-wrap: anywhere;
}

/* ============================================================
   MOBILE NAV LOGO
   ============================================================ */

.mobile-menu-logo {
  display: inline-flex;
  align-items: center;

  width: fit-content;

  text-decoration: none;
}

.mobile-menu-logo-image {
  display: block;

  width: auto;
  height: 42px;

  max-width: 180px;

  object-fit: contain;
}

/* ============================================================
   HERO GAMING ILLUSTRATION EFFECT
   ============================================================ */

.hero-gaming {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  background:
    radial-gradient(
      circle at 82% 32%,
      rgba(19, 190, 230, 0.07),
      transparent 28%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(255, 188, 57, 0.045),
      transparent 32%
    );
}


/* Keep content above decoration */

.hero-gaming > .container {
  position: relative;
  z-index: 5;
}


/* ============================================================
   EFFECT CONTAINER
   ============================================================ */

.hero-game-effects {
  position: absolute;
  inset: 0;

  z-index: 0;

  overflow: hidden;

  pointer-events: none;
}


/* ============================================================
   AMBIENT GLOWS
   ============================================================ */

.game-glow {
  position: absolute;

  display: block;

  border-radius: 50%;

  filter: blur(10px);

  opacity: 0.55;

  pointer-events: none;
}


.game-glow-one {
  width: 420px;
  height: 420px;

  top: -200px;
  right: 5%;

  background:
    radial-gradient(
      circle,
      rgba(34, 211, 238, 0.16) 0%,
      rgba(14, 165, 233, 0.07) 38%,
      transparent 70%
    );
}


.game-glow-two {
  width: 380px;
  height: 380px;

  bottom: -210px;
  left: 10%;

  background:
    radial-gradient(
      circle,
      rgba(255, 190, 59, 0.12) 0%,
      rgba(255, 147, 39, 0.04) 42%,
      transparent 72%
    );
}


.game-glow-three {
  width: 300px;
  height: 300px;

  top: 34%;
  right: 29%;

  background:
    radial-gradient(
      circle,
      rgba(34, 211, 238, 0.08),
      transparent 70%
    );
}


/* ============================================================
   FUTURISTIC GRID
   ============================================================ */

.game-grid {
  position: absolute;

  width: 620px;
  height: 430px;

  right: -160px;
  bottom: -210px;

  opacity: 0.12;

  background-image:
    linear-gradient(
      rgba(34, 211, 238, 0.18) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(34, 211, 238, 0.18) 1px,
      transparent 1px
    );

  background-size: 40px 40px;

  transform:
    perspective(500px)
    rotateX(62deg)
    rotateZ(-8deg);

  transform-origin: center;
}


/* ============================================================
   LIGHT STREAKS
   ============================================================ */

.game-streak {
  position: absolute;

  display: block;

  height: 1px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(34, 211, 238, 0.75),
      rgba(255, 194, 71, 0.6),
      transparent
    );

  box-shadow:
    0 0 10px rgba(34, 211, 238, 0.35);

  opacity: 0.4;
}


.streak-one {
  width: 310px;

  right: 7%;
  top: 24%;

  transform: rotate(-13deg);

  animation: gameStreak 7s ease-in-out infinite;
}


.streak-two {
  width: 220px;

  left: -60px;
  bottom: 20%;

  transform: rotate(12deg);

  animation: gameStreak 8.5s ease-in-out infinite reverse;
}


.streak-three {
  width: 180px;

  right: 30%;
  bottom: 14%;

  transform: rotate(-6deg);

  opacity: 0.22;
}


/* ============================================================
   FLOATING PARTICLES
   ============================================================ */

.game-particle {
  position: absolute;

  display: block;

  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: #22d3ee;

  box-shadow:
    0 0 8px #22d3ee,
    0 0 18px rgba(34, 211, 238, 0.4);

  opacity: 0.55;

  animation:
    gamingParticleFloat 7s ease-in-out infinite;
}


.particle-1 {
  top: 15%;
  left: 4%;

  animation-delay: -1s;
}


.particle-2 {
  top: 24%;
  right: 12%;

  width: 4px;
  height: 4px;

  background: #ffc247;

  box-shadow:
    0 0 8px #ffc247,
    0 0 20px rgba(255, 194, 71, 0.35);

  animation-delay: -3s;
}


.particle-3 {
  top: 72%;
  right: 7%;

  animation-delay: -2s;
}


.particle-4 {
  bottom: 15%;
  left: 36%;

  width: 3px;
  height: 3px;

  background: #ffc247;

  animation-delay: -5s;
}


.particle-5 {
  top: 45%;
  left: 3%;

  width: 3px;
  height: 3px;

  animation-delay: -4s;
}


.particle-6 {
  top: 18%;
  left: 58%;

  width: 4px;
  height: 4px;

  animation-delay: -6s;
}


/* ============================================================
   GAMING HUD
   ============================================================ */

.game-hud {
  position: absolute;

  display: inline-flex;
  align-items: center;

  gap: 7px;

  padding: 6px 10px;

  border: 1px solid rgba(34, 211, 238, 0.18);

  border-radius: 7px;

  background:
    rgba(8, 25, 42, 0.28);

  color:
    rgba(133, 225, 242, 0.42);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.12em;

  backdrop-filter: blur(4px);

  opacity: 0.45;
}


.hud-one {
  top: 17%;
  right: 1.5%;

  transform: rotate(-5deg);
}


.hud-two {
  bottom: 18%;
  left: 2%;

  transform: rotate(4deg);
}


.hud-dot {
  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: #22d3ee;

  box-shadow:
    0 0 8px #22d3ee;
}


.hud-line {
  width: 18px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      #22d3ee,
      transparent
    );
}


/* ============================================================
   ENERGY RINGS
   ============================================================ */

.game-ring {
  position: absolute;

  display: block;

  border-radius: 50%;

  border:
    1px solid rgba(34, 211, 238, 0.12);

  box-shadow:
    inset 0 0 18px rgba(34, 211, 238, 0.04);

  opacity: 0.5;
}


.ring-one {
  width: 230px;
  height: 230px;

  right: -110px;
  top: 15%;

  animation:
    gameRingRotate 18s linear infinite;
}


.ring-one::before {
  content: "";

  position: absolute;

  inset: 26px;

  border-radius: 50%;

  border:
    1px dashed rgba(255, 194, 71, 0.14);
}


.ring-two {
  width: 160px;
  height: 160px;

  bottom: -80px;
  left: 41%;

  border-color:
    rgba(255, 194, 71, 0.1);

  animation:
    gameRingRotate 24s linear infinite reverse;
}


/* ============================================================
   SUBTLE HERO CARD ENHANCEMENT
   ============================================================ */

.hero-gaming .app-card {
  position: relative;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.24),
    0 0 40px rgba(34, 211, 238, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}


.hero-gaming .app-card::after {
  content: "";

  position: absolute;

  inset: -1px;

  z-index: -1;

  border-radius: inherit;

  background:
    linear-gradient(
      135deg,
      rgba(34, 211, 238, 0.16),
      transparent 40%,
      transparent 65%,
      rgba(255, 194, 71, 0.14)
    );

  opacity: 0.65;
}


/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes gamingParticleFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-22px) scale(1.25);
    opacity: 0.85;
  }

}


@keyframes gameStreak {

  0%,
  100% {
    opacity: 0.15;
    transform:
      translateX(-12px)
      rotate(-13deg);
  }

  50% {
    opacity: 0.55;
    transform:
      translateX(18px)
      rotate(-13deg);
  }

}


@keyframes gameRingRotate {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }

}

/* ==============================
   Author Homepage
   ============================== */

.mega-author-box,
.mega-author-box * {
  box-sizing: border-box;
}

.mega-author-box {
  width: 100%;
  margin: 28px 0 40px;
  padding: 24px;
  color: #cbd5e1;
  background: #0e1c2a;
  border: 1px solid #24384a;
  border-top: 3px solid #d4af37;
  border-radius: 14px;
}

.mega-author-box .mega-author-title {
  margin: 0 0 20px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.mega-author-box .mega-author-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.mega-author-box .mega-author-avatar {
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  max-width: none;
  padding: 3px;
  object-fit: cover;
  object-position: center;
  background: #07111f;
  border: 1px solid #d4af37;
  border-radius: 50%;
}

.mega-author-box .mega-author-details {
  min-width: 0;
}

.mega-author-box .mega-author-name {
  margin: 0;
  color: #22d3ee;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.mega-author-box .mega-author-role {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}

.mega-author-box .mega-author-description {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.mega-author-box .mega-author-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  color: #22d3ee;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 4px;
}

.mega-author-box .mega-author-link svg {
  flex-shrink: 0;
}

.mega-author-box .mega-author-link:hover {
  color: #67e8f9;
  text-decoration: underline;
}

.mega-author-box .mega-author-link:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 4px;
  border-radius: 3px;
}