  :root {
    --bg: #0b0f13;
    --bg-2: #10161c;
    --panel: #141a20;
    --panel-2: #1b232b;
    --line: #2a343e;
    --text: #eef1f4;
    --muted: #9aa6b2;
    --gold: #e8b64a;
    --gold-light: #ffe08a;
    --gold-dark: #9c6b00;
    --red: #e53935;
    --radius: 16px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  }
  img, video { max-width: 100%; display: block; }
  a { color: var(--gold); }
  .wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
  h1, h2, h3, .display { font-family: Oswald, "Bahnschrift", "Arial Narrow", Impact, sans-serif; letter-spacing: .02em; }
  h2 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 0 0 12px; text-transform: uppercase; }
  h3 { font-size: 22px; margin: 0 0 6px; }
  .eyebrow { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 10px; }
  .lead { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 0 36px; }
  section { padding: 88px 0; border-top: 1px solid #161d24; }
  section:nth-of-type(even) { background: var(--bg-2); }

  /* Navigation */
  header.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 15, 19, .88); backdrop-filter: blur(10px);
    border-bottom: 1px solid #1c242c;
  }
  .nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
  .brand img { width: 36px; height: 36px; border-radius: 9px; }
  .brand span { font-family: Oswald, "Bahnschrift", sans-serif; font-size: 20px; letter-spacing: .06em; }
  .nav nav { margin-left: auto; display: flex; gap: 22px; }
  .nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
  .nav nav a:hover { color: var(--gold-light); }
  .menu-button { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; }
  @media (max-width: 900px) {
    .menu-button { display: block; }
    .nav nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: #0e1318; border-bottom: 1px solid var(--line); }
    .nav nav.open { display: flex; }
    .nav nav a { padding: 14px 20px; border-top: 1px solid #1c242c; }
  }

  /* Buttons */
  .buttons { display: flex; flex-wrap: wrap; gap: 12px; }
  .button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px; border-radius: 12px; font-weight: 700; text-decoration: none;
    border: 1px solid transparent; font-size: 16px;
  }
  .button.primary { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #1d2126; }
  .button.ghost { border-color: var(--gold); color: var(--gold-light); background: rgba(232, 182, 74, .06); }
  .button svg { width: 20px; height: 20px; }

  /* Hero */
  .hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--gold); }
  .hero-art {
    position: absolute; inset: 0;
    background: url(feature.jpg) right center / cover no-repeat;
  }
  .hero-art::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, #0b0f13 0%, rgba(11, 15, 19, .92) 38%, rgba(11, 15, 19, .35) 70%, rgba(11, 15, 19, .15) 100%);
  }
  .hero .wrap { position: relative; padding-top: 110px; padding-bottom: 110px; }
  .hero h1 { font-size: clamp(54px, 10vw, 104px); line-height: .95; margin: 0 0 18px; text-transform: uppercase; }
  .hero h1 em { font-style: normal; color: var(--gold); }
  .hero p { font-size: clamp(18px, 2.4vw, 22px); color: #d3d9df; max-width: 560px; margin: 0 0 30px; }
  .hero .note { font-size: 14px; color: var(--muted); margin-top: 14px; }
  .hero .eyebrow { font-size: 13px; color: var(--gold); margin: 0 0 10px; }
  @media (max-width: 700px) {
    .hero-art { background-position: 70% center; opacity: .45; }
    .hero-art::after { background: linear-gradient(180deg, rgba(11,15,19,.6), #0b0f13); }
    .hero .wrap { padding-top: 70px; padding-bottom: 70px; }
  }

  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
  .stats div { background: #0e1318; padding: 22px 12px; text-align: center; }
  .stats strong { display: block; font-family: Oswald, "Bahnschrift", sans-serif; font-size: 34px; color: var(--gold-light); line-height: 1.1; }
  .stats span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
  @media (max-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } }

  /* Cards */
  .grid { display: grid; gap: 18px; }
  .grid.three { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
  .card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; border-top: 3px solid var(--gold);
  }
  .card p { color: var(--muted); margin: 0; }
  .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(232,182,74,.12); color: var(--gold-light); margin-bottom: 14px; }
  .icon svg { width: 24px; height: 24px; }

  .video { border: 2px solid var(--gold); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #000; }

  /* Maps */
  .maps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
  .map { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .map img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .map div { padding: 14px 16px 18px; }
  .map h3 { font-size: 19px; }
  .map p { margin: 0; color: var(--muted); font-size: 14px; }

  /* Guns */
  .gun-group { margin-top: 34px; }
  .gun-group h3 { color: var(--gold); text-transform: uppercase; letter-spacing: .1em; font-size: 16px; margin-bottom: 12px; }
  .guns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 14px; }
  .gun { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
  .gun h4 { margin: 0 0 2px; font-family: Oswald, "Bahnschrift", sans-serif; font-size: 22px; letter-spacing: .03em; }
  .gun .cal { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
  .gun dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
  .gun dt { color: var(--muted); }
  .gun dd { margin: 0; font-weight: 600; }
  .pips { letter-spacing: 2px; color: var(--red); }
  .pips i { color: #3a434c; font-style: normal; }

  /* Ranks */
  .xp { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
  .xp span { background: rgba(232,182,74,.1); border: 1px solid var(--gold-dark); color: var(--gold-light); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
  .ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 12px; }
  @media (min-width: 900px) { .ranks { grid-template-columns: repeat(5, 1fr); } }
  .rank { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px 16px; text-align: center; }
  .rank img { width: 72px; height: 72px; margin: 0 auto 8px; }
  .rank .lv { color: var(--muted); font-size: 11px; letter-spacing: .14em; font-weight: 700; }
  .rank .ar { font-size: 19px; font-weight: 700; color: var(--gold-light); line-height: 1.3; }
  .rank .en { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #c9d1d9; }
  .rank .need { font-size: 12px; color: var(--muted); margin-top: 4px; }
  .rank.top { border-color: var(--gold); background: linear-gradient(180deg, #2b2412, var(--panel)); }

  /* Characters */
  .split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
  @media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
  .shot { border: 2px solid var(--gold); border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 50px rgba(0,0,0,.45); }
  .list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
  .list li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
  .list strong { display: block; }
  .list span { color: var(--muted); font-size: 14px; }
  .teams { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .teams span { border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; color: #fff; }

  /* Tables */
  .table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .table th, .table td { text-align: left; padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
  .table thead th { border-top: 0; background: var(--panel-2); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
  .table td:first-child { white-space: nowrap; font-weight: 600; }
  code.cheat { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; background: #0b0f13; border: 1px solid var(--gold-dark); color: var(--gold-light); padding: 3px 9px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
  @media (max-width: 640px) {
    .table thead { display: none; }
    .table tr { display: block; border-top: 1px solid var(--line); padding: 10px 0; }
    .table tr:first-child { border-top: 0; }
    .table td { display: block; border: 0; padding: 4px 16px; }
  }
  .callout { margin-top: 18px; background: rgba(229, 57, 53, .08); border: 1px solid rgba(229, 57, 53, .4); border-radius: 12px; padding: 14px 18px; color: #f1c9c8; font-size: 15px; }

  /* Gallery */
  .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 14px; }
  .gallery button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: none; cursor: zoom-in; }
  .gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s; }
  .gallery button:hover img { transform: scale(1.03); }
  .lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; place-items: center; z-index: 100; padding: 20px; cursor: zoom-out; }
  .lightbox.open { display: grid; }
  .lightbox img { max-height: 92vh; border: 2px solid var(--gold); border-radius: 12px; }

  /* FAQ */
  details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
  summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
  details[open] summary::after { content: "\2212"; }
  details p { margin: 0 0 16px; color: var(--muted); }

  /* Download */
  .download { text-align: center; background: radial-gradient(ellipse at center, rgba(232,182,74,.16), transparent 65%), var(--bg); }
  .download img.logo { width: 120px; height: 120px; border-radius: 26px; margin: 0 auto 20px; border: 2px solid var(--gold); }
  .download .buttons { justify-content: center; }
  .download .lead { margin-left: auto; margin-right: auto; }

  footer { border-top: 2px solid var(--gold); background: #080b0e; padding: 44px 0 30px; color: var(--muted); font-size: 14px; }
  footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1.6fr; gap: 30px; }
  @media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }
  footer h4 { color: var(--text); margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; }
  footer a { color: #c9d1d9; text-decoration: none; }
  footer a:hover { color: var(--gold-light); }
  footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
  footer .legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid #1c242c; font-size: 13px; }

  /* Language switch in the navigation */
  .lang { border: 1px solid var(--gold-dark); border-radius: 999px; padding: 4px 12px; color: var(--gold-light) !important; }
  @media (max-width: 900px) { .lang { border-radius: 0; border: 0; } }

  /* Arabic page (ar/index.html): right to left, an Arabic font, and no letter-spacing (it breaks
     how Arabic letters join). Names that stay in English (guns, cheat codes) keep the Latin look. */
  [dir="rtl"] body { font-family: "IBM Plex Sans Arabic", Inter, system-ui, "Segoe UI", Tahoma, sans-serif; }
  [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .display, [dir="rtl"] .brand span {
    font-family: Cairo, "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; letter-spacing: 0; font-weight: 800;
  }
  [dir="rtl"] .eyebrow, [dir="rtl"] .stats span, [dir="rtl"] .gun-group h3, [dir="rtl"] .rank .lv,
  [dir="rtl"] .table thead th, [dir="rtl"] footer h4 { letter-spacing: 0; }
  [dir="rtl"] .hero h1 { line-height: 1.15; }
  /* The picture has the English title baked into its left side: keep that part off screen. */
  [dir="rtl"] .hero-art { right: 40%; background-position: 85% center; }
  [dir="rtl"] .hero-art::after {
    background: linear-gradient(270deg, #0b0f13 0%, rgba(11, 15, 19, .55) 30%, rgba(11, 15, 19, .1) 70%, rgba(11, 15, 19, .25) 100%);
  }
  [dir="rtl"] .table th, [dir="rtl"] .table td { text-align: right; }
  [dir="rtl"] [lang="en"] { font-family: Inter, system-ui, sans-serif; }
  [dir="rtl"] .gun h4, [dir="rtl"] .teams [lang="en"], [dir="rtl"] .lang { font-family: Oswald, Inter, sans-serif; }
  [dir="rtl"] .rank .en { font-family: Inter, sans-serif; }
  [dir="rtl"] .button svg.play-arrow { transform: scaleX(-1); }
  @media (max-width: 700px) {
    [dir="rtl"] .hero-art { right: 0; background-position: 85% center; }
    [dir="rtl"] .hero-art::after { background: linear-gradient(180deg, rgba(11,15,19,.6), #0b0f13); }
  }
