/* شكل اللعبة: component look, copied from how the GunHits client draws its interface.
   - Every section is a game window: bronze frame (dark edge, bronze line, light inner line) over the scene.
   - Buttons use the client's silver ramp, turn blue on hover like the game's tabs, gold for "play".
   - Popups are the tutorial popup: black glass, thin bronze line, bulb, white bold text, silver OK.
   - Feeds use the chat look: dark glass, green names, yellow highlights.
   Fixed hues (silver, blue, gold, bronze, chat green/yellow) are the game's own and stay the same in both themes. */

/* scene behind everything, like the lobby background */
body { background: var(--bg); position: relative; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(var(--scene-tint), var(--scene-tint)), var(--scene) center / cover no-repeat; }
main { position: relative; }

/* game text: bold Tahoma, labels outlined in black */
body { font-weight: 400; }
h1, h2, h3 { font-weight: 700; }
.outline-text, .map figcaption b, .win-tab { text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000, 0 2px 3px #0008; }
.hl { color: var(--gold-text); }
.kicker { color: var(--ink); }

/* icons drawn with masks so they take the button's colour */
.ico { display: inline-block; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; flex: none; }
.ico-login { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M12%202a5%205%200%20110%2010%205%205%200%20010-10zm0%2012c5%200%209%202.5%209%206v2H3v-2c0-3.5%204-6%209-6z%27%2F%3E%3C%2Fsvg%3E"); }
.ico-coin { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M12%201.5a10.5%2010.5%200%20110%2021%2010.5%2010.5%200%20010-21zm0%202.5a8%208%200%20100%2016%208%208%200%20000-16zM9%207h6v2h-4v2h3.5v2H11v2h4v2H9z%27%2F%3E%3C%2Fsvg%3E"); }
.ico-play { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M8%205v14l11-7z%27%2F%3E%3C%2Fsvg%3E"); }
.ico-bulb { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M12%202a7%207%200%2000-4%2012.7V17h8v-2.3A7%207%200%200012%202zM9%2018h6v2a2%202%200%2001-2%202h-2a2%202%200%2001-2-2z%27%2F%3E%3C%2Fsvg%3E"); }

/* ---------- silver button (the client's default) ---------- */
.btn, .tool-btn, .site-nav a, .theme-switch button, .map-tabs [role=tab], .menu-btn {
  position: relative; color: #1b1d24; font-family: var(--font-body); font-weight: 700;
  background: linear-gradient(#f8f8f8 0%, #c5c9db 14%, #babbca 34%, #abaab7 54%, #a3a4ad 70%, #90909e 88%, #6f7282 100%);
  border: 1px solid #4e5060; border-radius: 5px;
  box-shadow: inset 0 1px 0 #ffffffcc, inset 0 -1px 0 #00000033, 0 1px 2px #0000006e;
  text-shadow: 0 1px 0 #ffffff99;
}
.btn:hover, .tool-btn:hover, .site-nav a:hover, .theme-switch button:hover, .map-tabs [role=tab]:hover, .menu-btn:hover,
.theme-switch button[aria-pressed="true"], .map-tabs [role=tab][aria-selected="true"], .site-nav a[aria-current="page"] {
  color: #fff; text-shadow: 0 1px 1px #00306b;
  background: linear-gradient(#f0f6fc 0%, #8bbef1 14%, #75ade9 32%, #5799e2 52%, #4792de 68%, #217ad8 86%, #005bcd 100%);
  border-color: #0a3d7a;
}
.btn:active, .tool-btn:active, .site-nav a:active { transform: translateY(1px); box-shadow: inset 0 2px 3px #0005; }
/* bronze end caps, like the OK button in the tutorial popup */
.btn::before, .btn::after { content: ""; position: absolute; top: 3px; bottom: 3px; width: 5px; border: 2px solid #c59e81; box-shadow: 0 0 0 1px #432a1f55; }
.btn::before { inset-inline-start: -4px; border-inline-end: 0; border-radius: 4px 0 0 4px; }
.btn::after { inset-inline-end: -4px; border-inline-start: 0; border-radius: 0 4px 4px 0; }
[dir=rtl] .btn::before { border-radius: 0 4px 4px 0; }
[dir=rtl] .btn::after { border-radius: 4px 0 0 4px; }
.btn { padding: 11px 28px; margin-inline: 4px; }
.btn-sm { padding: 6px 18px; }
/* green: the client's action button ("I want to fight!", "Start", the tick) */
.btn.btn-primary { color: #fff; text-shadow: 0 1px 1px #1f5410;
  background: linear-gradient(#e3fbb8 0%, #a6e65a 16%, #8fd64c 40%, #6fc03d 62%, #58b035 80%, #3f8f22 100%); border: 1px solid #23590f; }
.btn.btn-primary:hover { color: #fff; text-shadow: 0 1px 1px #1f5410; background: linear-gradient(#f0ffd2 0%, #b8f26c 16%, #9fe25a 40%, #7fcd48 62%, #63bb3c 80%, #489a28 100%); border-color: #23590f; }
/* gold: the shop orb colour, used for the round play button */
.btn-primary, .play-orb {
  color: #3a2300; text-shadow: 0 1px 0 #fff3c0;
  background: radial-gradient(120% 90% at 50% 10%, #fff6c8 0%, #ffd75a 30%, #f5b21f 62%, #d98a07 85%, #a95f00 100%);
  border: 1px solid #6b3d00;
}
.btn-primary:hover, .play-orb:hover { color: #3a2300; text-shadow: 0 1px 0 #fff3c0; background: radial-gradient(120% 90% at 50% 10%, #fffbe0 0%, #ffe27a 30%, #ffc23a 62%, #e99a14 85%, #b86b00 100%); border-color: #6b3d00; }
.btn-ghost { }

/* ---------- top bar: the client's tab row ---------- */
.site-header { background: linear-gradient(#ffffff26, #00000026), var(--header-bg); border-bottom: 2px solid #c59e81; box-shadow: 0 1px 0 #432a1f, 0 6px 14px #0004; }
.header-in { min-height: 76px; gap: 16px; }
.brand span { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; color: #e9ecf2; text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; letter-spacing: .02em; }
.brand b { color: #ffb020; }
.site-nav { gap: 6px; }
.site-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: .9rem;
  box-shadow: 0 0 0 2px #c59e81, 0 0 0 3px #432a1f, inset 0 1px 0 #fffc, 0 3px 5px #0005; border-color: #f1dccb; border-radius: 4px; }
.site-nav a::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.site-nav a[href="index.html"], .site-nav a[href="/"], .site-nav a[href="/en/"] { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M12%202l8%203v6c0%205-3.4%209.3-8%2011-4.6-1.7-8-6-8-11V5z%27%2F%3E%3C%2Fsvg%3E"); }
.site-nav a[href="how-to-play.html"], .site-nav a[href$="/how-to-play/"] { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M12%202a10%2010%200%20100%2020%2010%2010%200%20000-20zm0%2015.5a1.4%201.4%200%20110%202.8%201.4%201.4%200%20010-2.8zM12%205c2.6%200%204.4%201.6%204.4%203.8%200%201.6-.9%202.6-2.3%203.4-.9.5-1.1.9-1.1%201.8v.5h-2.2V14c0-1.6.6-2.5%201.9-3.2%201-.6%201.4-1%201.4-1.9%200-1-.8-1.8-2.1-1.8-1.3%200-2.2.8-2.3%202.1H7.5C7.6%206.8%209.4%205%2012%205z%27%2F%3E%3C%2Fsvg%3E"); }
.site-nav a[href="arsenal.html"], .site-nav a[href$="/arsenal/"] { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M2%2010h14l2-2h4v3l-3%201v2h-3l-1.5%201.5H11l-1%204H6l1-4.5H2z%27%2F%3E%3C%2Fsvg%3E"); }
.site-nav a[href="world.html"], .site-nav a[href$="/world/"] { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M2%205l6-2%208%203%206-2v15l-6%202-8-3-6%202zm6%200v13l8%203V8z%27%2F%3E%3C%2Fsvg%3E"); }
.site-nav a[href="veterans.html"], .site-nav a[href$="/veterans/"] { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M12%202l2.9%206%206.6.8-4.9%204.6%201.3%206.6L12%2016.8%206.1%2020l1.3-6.6L2.5%208.8%209.1%208z%27%2F%3E%3C%2Fsvg%3E"); }
.site-nav a[aria-current="page"] { transform: translateY(2px); }
.tool-btn { display: grid; place-items: center; width: 42px; height: 42px; text-decoration: none; box-shadow: 0 0 0 2px #c59e81, 0 0 0 3px #432a1f, inset 0 1px 0 #fffc; }
.play-orb { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 2px #c59e81, 0 0 0 3px #432a1f, inset 0 2px 2px #fff8, 0 3px 6px #0006; }
.play-orb .ico { width: 24px; height: 24px; color: #5a3500; }
.theme-switch { gap: 6px; }
.theme-switch button { width: 36px; height: 36px; box-shadow: 0 0 0 2px #c59e81, 0 0 0 3px #432a1f, inset 0 1px 0 #fffc; }
.menu-btn { color: #1b1d24 !important; }
/* phones: one more header button (top up) has to fit next to the theme, language, login and play buttons */
@media (max-width: 600px) {
  .header-tools { gap: 6px; }
  .tool-btn { width: 36px; height: 36px; }
  .tool-btn .ico { width: 19px; height: 19px; }
  .play-orb { width: 46px; height: 46px; }
}
@media (max-width: 960px) {
  .site-nav { background: var(--win); backdrop-filter: blur(6px); gap: 8px; padding-top: 12px; border-bottom: 2px solid #c59e81; }
  .site-nav a { border-bottom: 1px solid #f1dccb; padding: 12px 14px; }
}

/* ---------- windows: every section sits in a bronze-framed game window ---------- */
.band, .cta-band, .page-head { padding-block: 22px; }
.band > .wrap, .page-head > .wrap, .cta-band > .wrap, .win {
  position: relative; background: var(--win); color: var(--ink);
  border: 2px solid #c59e81; border-radius: 8px;
  box-shadow: 0 0 0 1px #432a1f, inset 0 0 0 1px #f1dccb88, 0 10px 28px #0006;
  backdrop-filter: blur(4px);
}
.band > .wrap, .page-head > .wrap, .cta-band > .wrap { padding-block: clamp(26px, 4vw, 44px); padding-inline: clamp(18px, 3.5vw, 44px); max-width: 1180px; margin-top: 18px; }
@media (max-width: 1240px) { .band > .wrap, .page-head > .wrap, .cta-band > .wrap { margin-inline: max(12px, env(safe-area-inset-left, 0px)); } }
.band-alt > .wrap { background: var(--win-2); }

/* window title = the client's bronze tab ("Global", "Map") */
.band .kicker, .page-head .kicker, .win-tab {
  position: absolute; top: -18px; inset-inline-start: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 16px 6px; font-size: .86rem; font-weight: 700; color: #fff;
  background: linear-gradient(#5d6a7c, #2b3442); border: 2px solid #c59e81; border-bottom: 0; border-radius: 6px 6px 0 0;
  box-shadow: 0 0 0 1px #432a1f; margin: 0;
}
.band .sec-head { padding-top: 10px; }
h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--title); text-shadow: var(--title-shadow); }
.pop h2, .cta-band h2 { text-shadow: none; }
h3 { font-size: 1.08rem; }
.lede { color: var(--muted); }

/* ---------- hero: logo, chrome + gold title, in-game screenshot ---------- */
.hero { padding-block: 34px 12px; }
.hero-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; align-items: start; }
.hero-logo { width: 132px; height: 132px; filter: drop-shadow(0 6px 10px #0008); }
.hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.25; }
.hero h1 span { filter: drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000) drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000) drop-shadow(0 4px 6px #000a); }
.hero h1 .chrome { background: linear-gradient(#ffffff 0%, #e3e6ee 40%, #9da3b4 60%, #f4f6fa 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .gold { background: linear-gradient(#fff2a8 0%, #ffc531 45%, #e47c06 75%, #ffd25a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { font-size: 1.1rem; font-weight: 700; max-width: 40ch; color: #fff; text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000, 0 2px 4px #000; }
.screen-win { margin: 0; padding: 8px; }
.screen-win img { width: 100%; height: auto; border-radius: 3px; border: 1px solid #000; }
.win-tab { top: -20px; }

/* ---------- popup: the tutorial popup ---------- */
.pop { background: #000000c4; color: #fff; border: 1px solid #d2b59c; border-radius: 2px; box-shadow: 0 0 0 1px #00000080, 0 14px 40px #000a; }
.pop .ico-bulb { width: 34px; height: 34px; color: #fff6c2; filter: drop-shadow(0 0 8px #fff3a0); }
.pop p, .pop h2 { font-weight: 700; color: #fff; }
.pop .hl { color: var(--yellow); }
.pop-inline { margin-top: 26px; display: flex; align-items: center; gap: 18px; padding: 18px 22px; }
.pop-inline p { flex: 1; }
.pop-modal { width: min(520px, calc(100vw - 32px)); padding: 30px 28px 26px; text-align: center; }
.pop-modal[open] { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pop-modal::backdrop { background: #0009; }
/* the modal is the client's Confirmation window: tan body, bronze frame, silver title strip */
.pop-modal { background: linear-gradient(#efe3d1 0%, #dccab2 50%, #c9b296 100%); color: #3e3026; border: 2px solid #b69f8f; border-radius: 8px;
  box-shadow: 0 0 0 1px #371f15, inset 0 0 0 1px #f5ead9, 0 18px 50px #000c; padding-top: 46px; }
.pop-modal::before { content: attr(data-title); position: absolute; top: 8px; inset-inline: 18%; padding: 2px 0; font-size: .85rem; font-weight: 700; color: #2b2b30;
  background: linear-gradient(#f8f8f8, #c5c9db 40%, #a3a4ad); border: 1px solid #6f7282; border-radius: 3px; }
.pop-modal p, .pop-modal h2 { color: #3e3026; }
.pop-modal .ico-bulb { color: #b98a2e; filter: none; }
.pop-modal h2 { font-size: 1.5rem; }
.pop-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.orb-close { position: absolute; top: -14px; inset-inline-end: -14px; width: 34px; height: 34px; border-radius: 6px; cursor: pointer;
  background: radial-gradient(120% 90% at 50% 10%, #ffd0c8 0%, #f2604c 40%, #c8261a 80%, #8f1309 100%); border: 1px solid #5a0a04; box-shadow: 0 0 0 2px #c59e81, 0 0 0 3px #432a1f; }
.orb-close::before, .orb-close::after { content: ""; position: absolute; inset: 7px 15px; background: #fff; border-radius: 2px; transform: rotate(45deg); box-shadow: 0 0 0 1px #6a0a03; }
.orb-close::after { transform: rotate(-45deg); }

/* ---------- inventory slots / cards ---------- */
.card, .slot, .step, .mode, .levels li, .compare-col {
  background: var(--slot); border: 1px solid var(--slot-line); border-radius: 5px; box-shadow: inset 0 1px 0 #ffffff55, 0 1px 2px #0003;
}

/* ---------- screenshots from the running game, shown in bronze-framed windows ---------- */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.shot img { width: 100%; height: auto; border: 2px solid #c59e81; border-radius: 6px; box-shadow: 0 0 0 1px #371f15, 0 8px 18px #0006; }
.shot figcaption { font-size: .9rem; font-weight: 700; color: var(--muted); }
.shot-wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .shots { grid-template-columns: 1fr; } }
.stat-num { font-family: var(--font-display); font-weight: 900; font-size: 2.3rem; line-height: 1.1; color: var(--accent-text); }
.mode { padding: 18px; }
.tag { margin-top: auto; font-size: .78rem; font-weight: 700; padding: 1px 10px; border-radius: 3px; color: #fff; text-shadow: 0 1px 0 #0006;
  background: linear-gradient(#8bbef1, #217ad8); border: 1px solid #0a3d7a; }
.difficulty-title { font-weight: 700; }
.levels li { padding: 8px 16px; }
.levels li:last-child { background: linear-gradient(#ff9a8a, #c8261a); color: #fff; border-color: #5a0a04; }
.levels li:last-child span { color: #fff; }

/* step numbers: small silver squares like the client's slot numbers */
.step { padding: 20px; }
.step::before { width: 34px; height: 34px; display: grid; place-items: center; font-weight: 700; color: #1b1d24; border-radius: 4px;
  background: linear-gradient(#f8f8f8, #babbca 40%, #90909e); border: 1px solid #4e5060; box-shadow: 0 0 0 2px #c59e81, 0 0 0 3px #432a1f; }

/* ---------- chat-style feed (loot list, checklists) ---------- */
.loot, .checklist { background: var(--chat-bg); border: 1px solid #000; border-radius: 4px; padding: 12px 14px; gap: 4px; box-shadow: inset 0 0 0 1px #ffffff14; }
.loot-item { display: block; color: #fff; font-size: .95rem; line-height: 1.65; }
.loot-item b { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.loot-item b::after { content: ":"; text-decoration: none; display: inline-block; margin-inline: 2px 6px; color: #fff; }
.loot-item span { color: #fff; }
.loot-gold span { color: var(--yellow); }
.checklist li { color: #fff; padding-inline-start: 22px; }
.checklist li::before { background: var(--green); width: 9px; height: 9px; top: .7em; border-radius: 1px; }
.compare-new .checklist li::before { background: var(--yellow); }
.compare-col { padding: 22px; }
.compare-col h2 { font-size: 1.6rem; }

/* ---------- world map labels: yellow with black outline ---------- */
.map { border: 2px solid #c59e81; border-radius: 6px; box-shadow: 0 0 0 1px #432a1f, 0 6px 14px #0005; }
.map figcaption { background: linear-gradient(transparent, #000a); }
.map figcaption b { color: var(--yellow); font-size: 1.1rem; }
.map img { transition: transform .3s; }
.map:hover img { transform: scale(1.04); }
.more a { color: var(--accent-text); font-weight: 700; }
.veteran-teaser .btn { align-self: center; }

/* ---------- lists: the dark player-list panel ---------- */
.table-wrap { background: var(--list-bg); border: 2px solid #c59e81; border-radius: 6px; box-shadow: 0 0 0 1px #432a1f; padding: 6px; }
.table { color: #fff; }
.table th { color: var(--yellow); font-size: .85rem; border-bottom: 1px solid #ffffff2a; }
.table td { border-bottom: 1px solid #ffffff14; font-weight: 700; }
.table td:first-child { color: #fff; }
.table td:nth-child(2) { color: var(--green); }
.table td:nth-child(3) { color: #c9d3e6; font-weight: 400; }
.table tbody tr:hover { background: #ffffff12; }

.chips li { background: linear-gradient(#f8f8f8, #babbca 50%, #90909e); color: #1b1d24; border: 1px solid #4e5060; border-radius: 4px; font-weight: 700; box-shadow: inset 0 1px 0 #fff; }
.chips-lg li { padding: 8px 16px; }
.slot b { font-weight: 700; }
.slot span { color: var(--muted); }

/* AP as the battle bar's row of gold stars */
.ap-bar { display: flex; gap: 2px; background: #1b1d20d9; padding: 8px 12px; border-radius: 4px; border: 1px solid #000; width: max-content; max-width: 100%; }
.ap-bar span { width: 26px; height: 26px; flex: none; border: 0; background: linear-gradient(#fff6b0, #ffd23c 45%, #e09a10); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.ap-bar span.spent { background: #3a3c40; }
@media (max-width: 420px) { .ap-bar span { width: 22px; height: 22px; } }
.keys div { border-bottom: 1px solid var(--line); }
kbd { background: linear-gradient(#f8f8f8, #abaab7); color: #1b1d24; border: 1px solid #4e5060; border-radius: 3px; }

.faq details { background: var(--slot); border: 1px solid var(--line); border-radius: 5px; }
.faq details[open] summary { color: var(--accent-text); }

.map-tabs .tablist { padding: 4px 4px 8px; }
.map-tabs [role=tab] { box-shadow: 0 0 0 2px #c59e81, 0 0 0 3px #432a1f, inset 0 1px 0 #fffc; }
.map-lg { border-radius: 6px; }

.note { color: var(--muted); }

/* CTA: a big popup window */
.cta-band > .wrap { background: #000000c4; color: #fff; border-color: #d2b59c; align-items: center; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band .lede { color: #e6e6e6; }
.cta-band .actions { justify-content: center; }

/* login: the client's login window centred over the scene */
.auth { grid-template-columns: 1fr; min-height: calc(100vh - 80px); place-items: center; padding: 28px 12px; }
.auth-art { display: none; }
.auth-main { width: min(520px, 100%); background: var(--win); border: 2px solid #c59e81; border-radius: 8px; box-shadow: 0 0 0 1px #432a1f, inset 0 0 0 1px #f1dccb88, 0 14px 40px #0008; padding: 34px clamp(20px, 4vw, 40px); }
.auth-main h1 { font-family: var(--font-display); font-weight: 900; }
.field input { background: #fff; color: #1b1d24; border: 1px solid #8e91a0; border-radius: 3px; box-shadow: inset 0 2px 3px #0002; }
.field input:focus { outline: none; border-color: #217ad8; box-shadow: 0 0 0 2px #8bbef1; }
.form-row a { color: var(--accent-text); font-weight: 700; }
.flow { border-top-color: var(--line); }

/* footer: bottom strip of the client */
.site-footer { margin-top: 26px; background: var(--header-bg); border-top: 2px solid #c59e81; box-shadow: 0 -1px 0 #432a1f; }
.footer-in nav a { font-weight: 700; }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .pop-inline { flex-direction: column; align-items: start; }
}
@media (max-width: 600px) {
  .band .kicker, .page-head .kicker, .win-tab { inset-inline-start: 12px; }
  .hero-logo { width: 96px; height: 96px; }
}

/* ---------- in-page screenshot layouts ---------- */
.shot-steps { list-style: none; counter-reset: shot; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.shot-steps .shot { counter-increment: shot; }
.shot-steps .shot img { aspect-ratio: 4 / 3; object-fit: cover; }
.shot figcaption b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.shot-steps .shot figcaption b::before { content: counter(shot); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-inline-end: 8px; font-size: .85rem; color: #1b1d24; border-radius: 4px;
  background: linear-gradient(#f8f8f8, #babbca 40%, #90909e); border: 1px solid #4e5060; box-shadow: 0 0 0 2px #c59e81, 0 0 0 3px #432a1f; vertical-align: middle; }
.shot-side { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 22px; align-items: center; }
.shot-side figcaption { font-size: 1rem; }
.shot-hero img { width: 100%; }
.shots-stack { grid-template-columns: 1fr; }
@media (max-width: 960px) {
  .shot-steps { grid-template-columns: 1fr; }
  .shot-side { grid-template-columns: 1fr; }
}

/* hero: soft shade on the text side so the outlined title reads over any scene */
.hero { background: linear-gradient(to left, #00000059, #00000026 45%, transparent 70%); }
@media (max-width: 960px) { .hero { background: linear-gradient(#00000059, #00000026 60%, transparent); } }

/* ---------- English (left-to-right) ---------- */
:root[lang="en"] { --font-display: "Russo One", "Noto Kufi Arabic", Tahoma, sans-serif; }
:root[lang="en"] h1, :root[lang="en"] h2, :root[lang="en"] .stat-num { font-weight: 400; letter-spacing: .01em; }
[dir="ltr"] .hero { background: linear-gradient(to right, #00000059, #00000026 45%, transparent 70%); }
@media (max-width: 960px) { [dir="ltr"] .hero { background: linear-gradient(#00000059, #00000026 60%, transparent); } }

/* language button: a silver tile with the other language's short name */
.lang-btn { font-weight: 700; font-size: .95rem; line-height: 1; }
.lang-btn[lang="ar"] { font-family: "Noto Kufi Arabic", Tahoma, sans-serif; font-size: 1.1rem; }
