/* Call of Duty: MW4 "Classified Briefing" theme. Loaded only on /games/call-of-duty-mw4 (presentation.theme "mw4").
   Scoped under .mw4 (the hub) and body.game-theme-mw4 (site header, footer and order dialog).
   Restyles the existing hub markup in place; games-v7.js still runs the steps, summary and order dialog. */

/* ---------- Tokens ---------- */
.mw4, body.game-theme-mw4 {
  --bg: #0A0B09; --panel: #111310; --panel-2: #0B0D0A; --amber: #FFB000; --amber-hi: #FFCB52; --nvg: #8DFF5A;
  --manila: #D9C89E; --paper: #F1ECE0; --stamp-red: #B3122A; --olive: #3E5A2A; --text: #E8E6DD; --muted: #C9CDBF;
  --dim: #8FA084; --ink: #1E1B14; --f-display: 'Black Ops One', 'Arial Black', sans-serif;
  /* Body text: Cairo (clear at 15-17px). Kufam is for headings of 22px and up only. */
  --f-ar: 'Cairo', system-ui, sans-serif; --f-head: 'Kufam', 'Cairo', system-ui, sans-serif;
  --f-mono: 'Share Tech Mono', ui-monospace, monospace;
}
body.storefront-body.game-theme-mw4 { background: var(--bg); }

/* ---------- Site header, announcement, footer, order dialog and mobile bar (this page only) ---------- */
body.game-theme-mw4 .site-header { background: #050505; border-bottom: 3px solid var(--amber); backdrop-filter: none; }
body.game-theme-mw4 .site-header .main-nav a { font-family: var(--f-ar); color: var(--text); min-height: 44px; display: flex; align-items: center; }
body.game-theme-mw4 .site-header .main-nav a:hover,
body.game-theme-mw4 .site-header .main-nav a.active,
body.game-theme-mw4 .site-header .main-nav a[aria-current="page"] { color: var(--amber); }
body.game-theme-mw4 .site-header .icon-button,
body.game-theme-mw4 .site-header .header-search input { color: var(--text); }
body.game-theme-mw4 .announcement { background: #050505; color: var(--text); }
body.game-theme-mw4 .site-footer { background: #050505; border-top: 3px solid var(--amber); color: #A9ADA4; }
body.game-theme-mw4 .site-footer h2 { color: var(--text); }
body.game-theme-mw4 .site-footer p, body.game-theme-mw4 .site-footer span { color: #A9ADA4; }
body.game-theme-mw4 .site-footer a { color: #D6DBD0; }
body.game-theme-mw4 .site-footer a:hover, body.game-theme-mw4 .site-footer a:focus-visible { color: var(--amber); }
body.game-theme-mw4 .order-dialog { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); }
body.game-theme-mw4 .order-dialog h2 { font-family: var(--f-head); color: var(--ink); }
body.game-theme-mw4 .order-dialog p { color: #3A3220; }
body.game-theme-mw4 .game-mobile-order-bar[hidden] { display: none !important; }
@media (min-width: 760px) { body.game-theme-mw4 .game-mobile-order-bar { display: none !important; } }
@media (max-width: 759px) {
  body.game-theme-mw4 .game-mobile-order-bar:not([hidden]) {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #050505; border-top: 4px solid var(--amber); color: var(--text);
    align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px;
  }
  body.game-theme-mw4 .game-mobile-order-bar strong { color: var(--text); font-family: var(--f-display); font-size: 20px; font-weight: 400; direction: ltr; }
  body.game-theme-mw4 .game-mobile-order-bar .button { min-width: 132px; min-height: 48px; background: var(--amber); color: var(--bg); border: 3px solid var(--ink); font-family: var(--f-ar); font-size: 19px; }
}

/* ---------- Base (hub) ---------- */
.mw4 { background: var(--bg); color: var(--text); font-family: var(--f-ar); overflow-x: hidden; }
.mw4 [hidden] { display: none !important; }
.mw4 h2 { margin: 0; font-family: var(--f-head); font-size: 42px; font-weight: 900; line-height: 1.2; }
.mw4 p { margin: 0; }
.mw4 a { color: var(--amber); }
.mw4-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.mw4-section { position: relative; }
.mw4-kicker, .mw4-step, .mw4-map-label { font-family: var(--f-mono); font-size: 15px; letter-spacing: 3px; color: var(--amber); align-self: flex-end; }
.mw4-step { align-self: flex-start; }

/* ---------- Hero: tactical briefing ---------- */
.mw4 .mw4-hero { position: relative; overflow: hidden; background: var(--panel-2); border-bottom: 2px solid #2B3324; }
.mw4 .mw4-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(141, 255, 90, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(141, 255, 90, .06) 1px, transparent 1px); background-size: 80px 80px; }
.mw4 .mw4-topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.mw4 .mw4-compass { position: relative; height: 44px; border-bottom: 1px solid #2B3324; background: rgba(10, 11, 9, .8); display: flex; justify-content: center; align-items: center; overflow: hidden; }
.mw4 .mw4-compass-track { display: flex; gap: 34px; font-family: var(--f-mono); font-size: 15px; color: #8FA084; white-space: nowrap; }
.mw4 .mw4-compass-track span:nth-child(even) { color: #6E7C64; }
.mw4 .mw4-compass-pin { position: absolute; bottom: 0; left: 50%; margin-left: -8px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 10px solid var(--amber); }
.mw4 .mw4-hero-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 64px 24px 80px; display: flex; flex-wrap: wrap; align-items: center; gap: 50px; }
.mw4 .mw4-brief { position: relative; flex: 1 1 560px; min-width: 0; padding: 30px 34px; display: flex; flex-direction: column; gap: 18px; }
.mw4 .mw4-corner { position: absolute; width: 40px; height: 40px; border: 0 solid var(--amber); }
.mw4 .mw4-c-tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; }
.mw4 .mw4-c-tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; }
.mw4 .mw4-c-br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; }
.mw4 .mw4-c-bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; }
.mw4 .mw4-title { margin: 0; display: flex; flex-direction: column; gap: 6px; text-align: right; }
.mw4 .mw4-title-over { font-family: var(--f-mono); font-size: 22px; letter-spacing: 10px; color: var(--dim); font-weight: 400; }
.mw4 .mw4-title-big { font-family: var(--f-display); font-weight: 400; font-size: clamp(54px, 6.4vw, 92px); line-height: .95; color: var(--text); }
.mw4 .mw4-lede { font-size: 22px; font-weight: 800; line-height: 1.7; }
.mw4 .mw4-readout { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-mono); font-size: 16px; color: var(--muted); border-top: 1px dashed #3E4A2C; padding-top: 14px; text-align: right; }
.mw4 .mw4-status { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.mw4 .mw4-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--nvg); animation: mw4-blink 1.4s steps(1) infinite; }
.mw4 .mw4-hero-cta {
  align-self: flex-start; margin-top: 6px; min-height: 56px; padding: 0 30px; background: var(--amber); color: var(--bg);
  font-size: 19px; font-weight: 900; display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.mw4 .mw4-hero-cta:hover { background: var(--amber-hi); }
.mw4 .mw4-radar-wrap { flex: 1 1 360px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mw4 .mw4-radar { position: relative; width: 380px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--nvg); background: radial-gradient(circle, rgba(141, 255, 90, .08) 0%, rgba(10, 11, 9, .9) 70%); overflow: hidden; box-shadow: 0 0 16px rgba(141, 255, 90, .15); }
.mw4 .mw4-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(141, 255, 90, .35); }
.mw4 .mw4-ring-a { inset: 16%; }
.mw4 .mw4-ring-b { inset: 33%; }
.mw4 .mw4-axis { position: absolute; background: rgba(141, 255, 90, .35); }
.mw4 .mw4-axis-v { left: 50%; top: 0; bottom: 0; width: 1px; }
.mw4 .mw4-axis-h { top: 50%; left: 0; right: 0; height: 1px; }
.mw4 .mw4-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(141, 255, 90, .45), rgba(141, 255, 90, 0) 70deg, transparent 360deg); animation: mw4-sweep 4s linear infinite; will-change: transform; }
.mw4 .mw4-blip { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #FF5A3C; box-shadow: 0 0 6px #FF5A3C; }
.mw4 .mw4-blip-a { top: 28%; left: 62%; }
.mw4 .mw4-blip-b { top: 60%; left: 30%; width: 8px; height: 8px; }
.mw4 .mw4-target { position: absolute; top: 47%; left: 47%; width: 22px; height: 22px; border: 2px solid var(--amber); transform: rotate(45deg); }
@keyframes mw4-sweep { to { transform: rotate(360deg); } }
@keyframes mw4-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .15; } }
@keyframes mw4-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ---------- STEP 1: dog tags (the platform tabs) ---------- */
.mw4 .mw4-platform-sec { background: var(--panel); padding: 70px 0 90px; }
.mw4 .mw4-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px; }
.mw4 .game-v7-platforms.game-v7-platforms { width: 100%; max-width: none; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding-top: 70px; }
.mw4 .game-v7-platforms[hidden] { display: none; }
/* Once a platform is chosen games-v7.js hides the tags; the step is then collapsed (the back button brings it back). */
.mw4 .mw4-platform-sec:has(.game-v7-platforms[hidden]) { display: none; }
.mw4 .mw4-tag {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 190px; padding: 22px 16px 30px; margin: 0 auto; width: 100%; max-width: 300px; border: 0; border-radius: 34px; cursor: pointer;
  font-family: inherit; text-align: center; color: #2A2E28; background: linear-gradient(135deg, #E4E7E1 0%, #A9AEA5 45%, #D4D8CF 60%, #8E938B 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .6); transform: rotate(-2deg); transition: transform .2s, box-shadow .2s;
}
.mw4 .mw4-tag:nth-child(2n) { transform: rotate(3deg); }
.mw4 .mw4-tag:nth-child(3n) { transform: rotate(-4deg); }
.mw4 .mw4-tag::before { /* the chain */
  content: ''; position: absolute; top: -72px; left: 50%; width: 4px; height: 70px; margin-left: -2px;
  background-image: radial-gradient(circle, #9DA29A 2.4px, transparent 2.6px); background-size: 4px 8px;
}
.mw4 .mw4-tag::after { /* the flag */
  content: 'TAP TO SELECT'; position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--f-mono); font-size: 14px; letter-spacing: 3px; padding: 4px 12px; color: #8FA084; border: 1px solid #2B3324; background: transparent;
}
.mw4 .mw4-hole { position: absolute; top: 14px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6); }
.mw4 .mw4-tag strong { margin-top: 22px; font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1.05; color: #2A2E28; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); overflow-wrap: break-word; }
.mw4 .mw4-tag small { font-family: var(--f-mono); font-size: 16px; letter-spacing: 3px; color: #3C4139; font-weight: 400; }
.mw4 .mw4-serial { font-family: var(--f-mono); font-size: 13px; letter-spacing: 2px; color: #4A5046; direction: ltr; }
.mw4 .mw4-tag[aria-selected="true"] {
  transform: rotate(0deg) translateY(-6px); box-shadow: 0 0 0 4px var(--amber), 0 0 22px rgba(255, 176, 0, .4), 0 18px 40px rgba(0, 0, 0, .6);
}
.mw4 .mw4-tag[aria-selected="true"]::after { content: 'SELECTED'; background: var(--amber); color: var(--bg); border-color: var(--amber); }
.mw4 .mw4-tag:focus-visible { outline: 3px solid var(--amber); outline-offset: 6px; }

/* ---------- STEP 2: the hub's scene (dossiers, radio channels, order sheet) ---------- */
.mw4 .mw4-offers-sec { background: var(--bg); border-top: 2px solid #2B3324; padding: 70px 0 90px; }
.mw4 .mw4-offers-sec:has([data-game-scene-machine][hidden]) { display: none; }
.mw4 .mw4-offers-sec .game-v7-machine { display: flex; flex-direction: column; gap: 30px; background: transparent; border: 0; box-shadow: none; }
.mw4 .mw4-prompt { font-family: var(--f-head); font-size: 40px; font-weight: 900; line-height: 1.2; color: var(--text); border-bottom: 2px solid #2B3324; padding-bottom: 14px; }
.mw4 .mw4-context { font-family: var(--f-mono); font-size: 16px; color: var(--nvg); }
.mw4 .game-v7-flow-nav { display: flex; }
.mw4 .game-v7-back { min-height: 44px; padding: 0 16px; border: 2px solid var(--amber); background: transparent; color: var(--amber); font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.mw4 .game-v7-carousel-indicators, .mw4 .game-v7-library { display: none !important; }

/* Choice grid: the hub's [data-v7-count] caps are overridden. Desktop columns only from 1024px. */
.mw4 .game-v7-choice-grid.game-v7-choice-grid { width: 100%; max-width: none; margin-inline: 0; display: grid; gap: 46px 30px; padding-top: 24px; counter-reset: mwf mwc; }
@media (min-width: 1024px) {
  .mw4 .game-v7-choice-grid.game-v7-choice-grid { grid-template-columns: repeat(3, minmax(0, 340px)); justify-content: center; }
  .mw4 .game-v7-choice-grid.game-v7-choice-grid[data-v7-layout="services"], .mw4 .game-v7-choice-grid.game-v7-choice-grid[data-v7-layout="activation"] { grid-template-columns: repeat(2, minmax(340px, 1fr)); }
  .mw4[data-active-platform="pc"] .game-v7-choice-grid.game-v7-choice-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 480px)); justify-content: center; gap: 46px 40px; }
}
@media (min-width: 760px) and (max-width: 1023px) {
  .mw4 .game-v7-choice-grid.game-v7-choice-grid, .mw4 .game-v7-choice-grid.game-v7-choice-grid[data-v7-layout] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mw4 .game-v7-choice-grid > * { min-width: 0; }
.mw4 .game-v7-choice { position: relative; font-family: inherit; }
/* The hub draws a gradient overlay and hides the title of service cards; the radio channel card shows its own. */
.mw4 .game-v7-choice.is-service::before { content: none; display: none; }
.mw4 .game-v7-choice.is-service > strong { position: static; width: auto; height: auto; margin: 0; padding: 34px 0 0; overflow: visible; clip: auto; white-space: normal; }
.mw4 .game-v7-choice.is-service > .mw4-bars { position: absolute; top: 22px; left: 22px; z-index: 2; }
/* The hub gives service cards aspect-ratio 2 / 3 (tall, empty below the name). Channel cards size to their content. */
.mw4 .game-v7-choice-grid.game-v7-choice-grid .game-v7-choice.is-service { aspect-ratio: auto; height: auto; min-height: 190px; }

/* Dossier files (console editions and PC editions): manila folder, paperclip, polaroid photo, stamp by offer type. */
.mw4 .game-v7-choice.is-edition {
  counter-increment: mwf; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 12px;
  min-height: 0; height: auto; aspect-ratio: auto; padding: 26px 22px 22px; border: 0; border-radius: 0 0 8px 8px; overflow: visible;
  text-align: right; color: #2A2418; background: var(--manila); background-image: none; box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  transform: rotate(-1.4deg); transition: transform .2s;
}
.mw4 .game-v7-choice.is-edition:nth-child(3n + 2) { transform: rotate(1deg); }
.mw4 .game-v7-choice.is-edition:nth-child(3n) { transform: rotate(-.6deg); }
.mw4 .game-v7-choice.is-edition:not(.is-unavailable):hover,
.mw4 .game-v7-choice.is-edition:not(.is-unavailable):focus-visible,
.mw4 .game-v7-choice.is-edition[aria-pressed="true"] { transform: translateY(-8px) rotate(0deg); outline: 4px solid var(--amber); outline-offset: 6px; }
.mw4 .game-v7-choice.is-edition:focus-visible { outline: 4px solid var(--amber); outline-offset: 6px; }
/* File tab "FILE 01" on the folder edge (strong is static, so its ::before is placed on the card). */
.mw4 .game-v7-choice.is-edition > strong::before {
  content: 'FILE ' counter(mwf, decimal-leading-zero); position: absolute; top: -30px; right: 0; height: 32px; padding: 0 20px;
  display: flex; align-items: center; background: #CDBB8E; border-radius: 8px 8px 0 0; font-family: var(--f-mono); font-size: 14px; letter-spacing: 2px; color: #3A3220;
}
/* Paperclip on the folder edge. */
.mw4 .game-v7-choice.is-edition > strong::after {
  content: ''; position: absolute; top: -20px; left: 30px; width: 22px; height: 66px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 80'%3E%3Cpath d='M8 20 V64 a7 7 0 0 0 14 0 V12 a5 5 0 0 0 -10 0 V58' fill='none' stroke='%238E938B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* Polaroid photo: the existing edition art, cropped differently per file. */
.mw4 .game-v7-choice.is-edition::before {
  content: ''; display: block; aspect-ratio: 16 / 10; background-color: #23261F; background-image: var(--v7-card-art-desktop, none);
  background-size: cover; background-position: 50% 30%; border: 6px solid var(--paper); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); transform: rotate(-1.5deg);
}
.mw4 .game-v7-choice.is-edition:nth-child(3n + 2)::before { background-position: 50% 12%; }
.mw4 .game-v7-choice.is-edition:nth-child(3n)::before { background-position: 50% 70%; }
/* Shared account: no edition art in the data, so a tighter crop of the hero (set by games-mw4.js). */
.mw4 .game-v7-choice.is-edition[data-mw-kind="shared"]::before { background-size: 260%; background-position: 82% 22%; }
/* Card flow: photo (::before, order 0), stamp (::after, order 1, under the photo), then title, price and note (order 2). */
.mw4 .game-v7-choice.is-edition > * { order: 2; }
/* Stamp by offer type (games-mw4.js sets data-mw-kind and data-mw-stamp from the edition name). Sits under the photo, rotated -6deg. */
.mw4 .game-v7-choice.is-edition::after {
  content: attr(data-mw-stamp); order: 1; position: relative; inset: auto; top: auto; left: auto; width: auto; height: auto; align-self: flex-start; margin: 4px 0 6px 4px;
  background-image: none; transform: rotate(-6deg); pointer-events: none; opacity: 1;
  font-family: var(--f-display); font-size: 17px; letter-spacing: 2px; padding: 2px 12px; border: 3px solid var(--olive); color: var(--olive); background: var(--paper);
}
.mw4 .game-v7-choice.is-edition[data-mw-kind="vault"]::after { border-color: var(--stamp-red); color: var(--stamp-red); }
.mw4 .game-v7-choice.is-edition[data-mw-kind="shared"]::after { border-color: #B36B00; color: #8A5300; }
.mw4 .game-v7-choice.is-edition > strong { position: static; display: block; margin: 0; font-family: var(--f-head); font-weight: 900; font-size: 26px; line-height: 1.2; color: #2A2418; overflow-wrap: break-word; }
.mw4 .game-v7-choice.is-edition > small.is-price { display: block; padding: 0; font-family: var(--f-display); font-size: 40px; line-height: 1; color: #2A2418; white-space: nowrap; }
.mw4 .game-v7-choice.is-edition > em { display: block; padding: 0; font-style: normal; font-size: 15px; font-weight: 700; color: #3A3220; white-space: normal; overflow: visible; text-overflow: clip; max-width: none; }
.mw4 .game-v7-choice.is-edition > small.mw4-desc { font-size: 16px; font-weight: 700; direction: rtl; text-align: start; white-space: normal; }

/* Radio channels (PC services): CH-01 / CH-02, a name, a line of text and animated signal bars. */
.mw4 .game-v7-choice.is-service {
  counter-increment: mwc; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; gap: 14px;
  min-height: 190px; padding: 24px 24px 22px; border: 2px solid #2B3324; border-radius: 0; overflow: visible; text-align: right;
  color: var(--text); background: #121510; background-image: none; box-shadow: none; transform: none;
}
.mw4 .game-v7-choice.is-service:hover, .mw4 .game-v7-choice.is-service:focus-visible, .mw4 .game-v7-choice.is-service[aria-pressed="true"] {
  border-color: var(--amber); box-shadow: 0 0 16px rgba(255, 176, 0, .25); outline: 0;
}
.mw4 .game-v7-choice.is-service:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.mw4 .game-v7-choice.is-service > .game-v7-service-art { display: none; }
.mw4 .game-v7-choice.is-service > strong { margin: 0; padding-top: 34px; font-family: var(--f-display); font-weight: 400; font-size: 40px; line-height: 1.05; color: var(--text); overflow-wrap: break-word; }
.mw4 .game-v7-choice.is-service > strong::before {
  content: 'CH-0' counter(mwc) ' · SECURE LINK'; display: block; margin-bottom: 8px; font-family: var(--f-mono); font-weight: 400; font-size: 15px; letter-spacing: 3px; color: var(--nvg);
}
.mw4 .game-v7-choice.is-service > small { display: block; font-size: 16px; font-weight: 700; color: var(--muted); white-space: normal; overflow: visible; text-overflow: clip; max-width: none; }
.mw4 .game-v7-choice.is-service > small.is-price { font-family: var(--f-ar); font-size: 16px; line-height: 1.6; }
.mw4 .game-v7-choice.is-service > em { display: block; font-style: normal; font-size: 15px; font-weight: 700; color: #A9B69E; white-space: normal; overflow: visible; text-overflow: clip; max-width: none; }
.mw4 .mw4-bars { position: absolute; top: 22px; left: 22px; display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.mw4 .mw4-bars i { display: block; width: 5px; height: 100%; background: var(--nvg); transform-origin: bottom; animation: mw4-eq 1.1s ease-in-out infinite; }
.mw4 .mw4-bars i:nth-child(2) { animation-duration: .8s; animation-delay: .2s; }
.mw4 .mw4-bars i:nth-child(3) { animation-duration: 1.3s; animation-delay: .4s; }
.mw4 .mw4-bars i:nth-child(4) { animation-duration: .9s; animation-delay: .1s; }
.mw4 .mw4-bars i:nth-child(5) { animation-duration: 1.2s; animation-delay: .3s; }

/* Mission order sheet (summary): paper, amber band, dark text, the title in Black Ops One. */
.mw4 .game-v7-final {
  position: relative; background: var(--paper) !important; color: var(--ink); border: 0; border-top: 10px solid var(--amber); border-radius: 0;
  padding: 30px 30px 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); max-width: 620px; width: 100%; margin: 16px auto 0;
}
.mw4 .game-v7-final::before {
  content: 'أمر المهمة'; display: block; font-family: var(--f-head); font-size: 26px; font-weight: 900; color: var(--ink);
  border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 14px; direction: rtl;
}
.mw4 .game-v7-final h2 { font-family: var(--f-display); font-weight: 400; font-size: 40px; line-height: 1.1; color: var(--ink); text-transform: uppercase; }
/* Arabic offer names (games-mw4.js adds mw4-title-ar): Kufam 900. Latin-only names keep Black Ops One. */
.mw4 .game-v7-final h2.mw4-title-ar { font-family: var(--f-head); font-weight: 900; font-size: 36px; line-height: 1.25; letter-spacing: 0; text-transform: none; }
.mw4 .game-v7-final h2, .mw4 .game-v7-final p, .mw4 .game-v7-final span, .mw4 .game-v7-final strong { color: var(--ink); }
.mw4 .game-v7-final-badge { background: var(--ink) !important; color: var(--amber) !important; }
.mw4 .game-v7-final-config, .mw4 .game-v7-subscription-note { color: #3A3220; }
.mw4 .game-v7-price strong { font-family: var(--f-display); font-weight: 400; font-size: 52px; color: var(--ink); direction: ltr; }
.mw4 .game-v7-price span, .mw4 .game-v7-meta span { font-size: 14px; color: #5A5444; }
.mw4 .game-v7-meta strong { font-size: 16px; font-weight: 900; color: var(--ink); }
.mw4 .game-v7-offer-summary { border-top: 2px dashed #A49C86; }
/* Meta values get the full width (one column), so "نوع الحساب" and the others are not squeezed into a third of the sheet. */
.mw4 .game-v7-meta.game-v7-meta { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.mw4 .game-v7-meta.game-v7-meta > div { min-width: 0; }
.mw4 .game-v7-meta strong { overflow-wrap: anywhere; }
.mw4 .game-v7-order.button { min-height: 56px; border-radius: 0; background: var(--ink) !important; color: var(--amber) !important; border: 0; font-family: var(--f-ar); font-size: 19px; font-weight: 900; cursor: pointer; }
.mw4 .game-v7-order.button:hover { background: #2E2A20 !important; }
.mw4 .game-v7-details { border: 2px solid var(--ink); background: #FFFFFF; margin-top: 18px; }
.mw4 .game-v7-details > summary { min-height: 52px; padding: 12px 16px; font-family: var(--f-ar); font-size: 19px; font-weight: 800; color: var(--ink); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.mw4 .game-v7-details > summary::-webkit-details-marker { display: none; }
.mw4 .game-v7-details-drawer { padding: 4px 16px 16px; background: var(--paper) !important; display: flex; flex-direction: column; gap: 14px; }
.mw4 .game-v7-details-drawer section { background: #FFFFFF; border: 2px solid var(--ink); padding: 12px 14px; }
.mw4 .game-v7-details-drawer section h3 { font-family: var(--f-ar); font-weight: 800; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.mw4 .game-v7-details-drawer section li, .mw4 .game-v7-details-drawer section p { font-size: 16px; font-weight: 600; line-height: 1.7; color: #1A1A14; }
/* Restrictions of the selected offer only (games-v7 fills this row from the offer's warnings): red "تعليمات صارمة" box. */
.mw4 .game-v7-details-drawer .game-v7-warning { background: #FBE3E6; border: 3px solid var(--stamp-red); }
.mw4 .game-v7-details-drawer .game-v7-warning h3 { font-size: 0; }
.mw4 .game-v7-details-drawer .game-v7-warning h3::before { content: 'تعليمات صارمة'; font-size: 18px; color: #8E0E21; }

/* ---------- Secure terminal (quiz) ---------- */
.mw4 .mw4-quiz-sec { background: var(--panel); padding: 80px 0; border-top: 2px solid #2B3324; }
.mw4 .mw4-quiz-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 50px; }
.mw4 .mw4-quiz-copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.mw4 .mw4-quiz-copy h2 { font-size: 44px; line-height: 1.3; }
.mw4 .mw4-quiz-copy > p { font-size: 17px; font-weight: 600; color: var(--muted); line-height: 1.8; }
.mw4 .mw4-terminal { flex: 1.4 1 480px; min-width: 0; background: #050605; border: 1px solid #3E4A2C; box-shadow: 0 0 0 6px #161A13; }
.mw4 .mw4-term-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #3E4A2C; font-family: var(--f-mono); font-size: 13px; color: var(--dim); }
.mw4 .mw4-tdot { width: 10px; height: 10px; border-radius: 50%; }
.mw4 .mw4-tdot-r { background: #FF5A3C; }
.mw4 .mw4-tdot-a { background: var(--amber); }
.mw4 .mw4-tdot-g { background: var(--nvg); }
.mw4 .mw4-term-title { margin-left: 8px; }
.mw4 .mw4-term-body { padding: 18px 20px 22px; min-height: 330px; display: flex; flex-direction: column; gap: 8px; font-family: var(--f-mono); font-size: 16px; line-height: 1.7; color: var(--nvg); }
.mw4 .mw4-log { display: flex; flex-direction: column; gap: 8px; }
.mw4 .mw4-line { display: block; word-break: break-word; text-align: start; }
/* Arabic log lines use Cairo (Share Tech Mono has no Arabic letters). */
.mw4 .mw4-line-ar { font-family: var(--f-ar); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.mw4 .mw4-context { font-family: var(--f-ar); letter-spacing: 0; }
.mw4 .mw4-line-sys { color: #6E8F5E; }
.mw4 .mw4-line-q { color: var(--text); }
.mw4 .mw4-line-me { color: var(--amber); }
.mw4 .mw4-line-ok { color: var(--nvg); font-weight: 700; }
.mw4 .mw4-line-bad { color: #FF5A3C; font-weight: 700; }
.mw4 .mw4-term-actions { margin-top: auto; padding-top: 14px; }
.mw4 .mw4-term-row { display: flex; gap: 12px; flex-wrap: wrap; }
/* Buttons carry Arabic text: Cairo with no letter-spacing (Share Tech Mono has no Arabic letters and spacing breaks their joins). */
.mw4 .mw4-btn { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; cursor: pointer; font-family: var(--f-ar); font-weight: 800; letter-spacing: 0; font-size: 17px; text-decoration: none; background: transparent; }
.mw4 .mw4-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.mw4 .mw4-btn-line { border-color: var(--nvg); color: var(--nvg); }
.mw4 .mw4-btn-green { background: var(--nvg); color: #050605; font-family: var(--f-ar); font-weight: 900; border-color: var(--nvg); }
.mw4 .mw4-btn-amber { background: var(--amber); color: #050605; font-family: var(--f-ar); font-weight: 900; border-color: var(--amber); }
.mw4 .mw4-btn-ghost { border-color: #3E4A2C; color: var(--muted); font-size: 16px; }

/* ---------- FAQ: declassified files (black redaction bars until opened) ---------- */
.mw4 .mw4-faq-sec { background: var(--bg); padding: 80px 0 90px; border-top: 2px solid #2B3324; }
.mw4 .mw4-faq-wrap { max-width: 900px; display: flex; flex-direction: column; gap: 24px; }
.mw4 .mw4-faq-wrap h2 { margin-bottom: 0; }
.mw4 .mw4-file { position: relative; background: var(--paper); color: var(--ink); padding: 20px 22px; border-right: 8px solid var(--amber); }
.mw4 .mw4-file > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.mw4 .mw4-file > summary::-webkit-details-marker { display: none; }
.mw4 .mw4-file > summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.mw4 .mw4-file > summary h3 { margin: 0; font-size: 20px; font-weight: 900; }
.mw4 .mw4-file > summary::after {
  content: 'رفع السرية'; flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 2px solid var(--ink); font-family: var(--f-ar); font-size: 14px; font-weight: 900;
}
.mw4 .mw4-file[open] > summary::after { content: 'إخفاء'; background: var(--ink); color: var(--paper); }
.mw4 .mw4-file p { margin: 12px 0 0; font-size: 16px; font-weight: 600; line-height: 1.9; }
.mw4 .mw4-file:not([open])::after {
  content: ''; display: block; height: 40px; margin-top: 14px;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 92% 14px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 22px / 64% 14px no-repeat;
}

/* ---------- Prompt, step and summary text sizes ---------- */
.mw4 .mw4-prompt, .mw4 .game-v7-machine > .mw4-prompt { scroll-margin-top: 104px; }
.mw4 [data-game-scene-machine] { scroll-margin-top: 104px; }

/* ---------- Phones (up to 759px): one column everywhere, nothing wider than the viewport ---------- */
@media (max-width: 759px) {
  .mw4-inner { padding: 0 16px; }
  .mw4 .mw4-hero-inner { padding: 40px 16px 60px; gap: 36px; }
  .mw4 .mw4-brief { padding: 26px 18px; }
  .mw4 .mw4-title-over { font-size: 16px; letter-spacing: 6px; }
  .mw4 .mw4-title-big { font-size: 64px; }
  .mw4 .mw4-lede { font-size: 19px; }
  .mw4 .mw4-hero-cta { width: 100%; justify-content: center; }
  /* The radar is decorative: hidden on phones so the platform tags and the first dossier come up sooner. */
  .mw4 .mw4-radar-wrap { display: none; }
  .mw4 .mw4-platform-sec { padding: 40px 0 48px; }
  .mw4 .mw4-head { margin-bottom: 24px; }
  .mw4 h2 { font-size: 32px; }
  /* Three dog tags in one row (about 110px each). Chain, flag and serial are shortened to fit. */
  .mw4 .game-v7-platforms.game-v7-platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 34px; }
  .mw4 .mw4-tag { min-height: 150px; max-width: none; width: 100%; padding: 18px 4px 40px; border-radius: 22px; }
  .mw4 .mw4-tag::before { top: -40px; height: 38px; }
  .mw4 .mw4-tag::after { content: 'TAP'; bottom: -28px; font-size: 11px; letter-spacing: 1px; padding: 2px 8px; }
  .mw4 .mw4-tag[aria-selected="true"]::after { content: 'SELECTED'; }
  .mw4 .mw4-hole { top: 10px; width: 14px; height: 14px; margin-left: -7px; }
  .mw4 .mw4-tag strong { margin-top: 14px; font-size: 14px; line-height: 1.1; overflow-wrap: anywhere; }
  .mw4 .mw4-tag small { font-size: 11px; letter-spacing: 1px; }
  .mw4 .mw4-serial { display: none; }
  .mw4 .mw4-offers-sec { padding: 40px 0 60px; }
  .mw4 .mw4-prompt { font-size: 28px; }
  .mw4 .game-v7-choice-grid.game-v7-choice-grid, .mw4 .game-v7-choice-grid.game-v7-choice-grid[data-v7-layout], .mw4[data-active-platform="pc"] .game-v7-choice-grid.game-v7-choice-grid {
    grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 44px;
  }
  .mw4 .game-v7-choice-grid.game-v7-choice-grid > .game-v7-choice { width: 100%; max-width: 100%; min-width: 0; flex: none; scroll-snap-align: none; }
  .mw4:not([data-active-platform="pc"]) .game-v7-choice-grid.game-v7-choice-grid:not([data-v7-layout]) > .game-v7-choice.is-edition { width: min(100%, 420px); justify-self: center; }
  .mw4 .game-v7-choice.is-edition > strong { font-size: 24px; }
  .mw4 .game-v7-choice.is-edition > small.is-price { font-size: 34px; }
  .mw4 .game-v7-choice.is-service > strong { font-size: 30px; }
  .mw4 .game-v7-final { padding: 24px 16px 18px; }
  .mw4 .game-v7-final h2 { font-size: 32px; }
  .mw4 .game-v7-price strong { font-size: 42px; }
  .mw4 .game-v7-offer-summary { flex-direction: column; align-items: stretch; }
  .mw4 .game-v7-order.button { width: 100%; }
  .mw4 .mw4-quiz-sec { padding: 52px 0; }
  .mw4 .mw4-quiz-wrap { gap: 28px; }
  .mw4 .mw4-quiz-copy h2 { font-size: 34px; }
  .mw4 .mw4-quiz-copy > p { font-size: 16px; }
  .mw4 .mw4-term-body { min-height: 0; font-size: 15px; }
  .mw4 .mw4-faq-sec { padding: 52px 0 60px; }
  .mw4 .mw4-file > summary h3 { font-size: 18px; }
}
/* Tablet: tickets and dossiers keep two columns and shrink to fit. */
@media (min-width: 760px) and (max-width: 1023px) {
  .mw4 .game-v7-choice.is-edition > strong { font-size: 24px; }
  .mw4 .game-v7-choice.is-edition > small.is-price { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .mw4 *, .mw4 *::before, .mw4 *::after, body.game-theme-mw4 * { animation: none !important; transition: none !important; }
}
/* Off-screen pauses: games-mw4.js toggles these classes with IntersectionObserver. */
.mw4.mw4-hero-off .mw4-sweep, .mw4.mw4-hero-off .mw4-dot { animation-play-state: paused; }
.mw4.mw4-stage-off .mw4-bars i { animation-play-state: paused; }
