/* Almehyas Games — site styles (Midnight Arcade) */
@font-face { font-family: "Space Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/space-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/space-mono-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/plex-arabic-400.woff2") format("woff2"); }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/plex-arabic-500.woff2") format("woff2"); }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/plex-arabic-700.woff2") format("woff2"); }

:root {
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Plex Arabic", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, dl, dd { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
[lang="ar"] { font-family: var(--arabic); }

.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 200; background: #fff; color: #1C1C1C; padding: 10px 16px; border-radius: 10px; font-family: var(--mono); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.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; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* logo lockup (always left-to-right) */
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; direction: ltr; }
.lockup .mark { height: 34px; width: auto; }
.lockup-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--mono); }
.lockup-name { font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.lockup-games { font-weight: 400; font-size: 8.5px; letter-spacing: .62em; margin-top: 5px; }

/* pixel wordmark + the jumping pixel */
.wordmark { height: auto; overflow: visible; direction: ltr; }
.wordmark .games { font-family: var(--mono); font-size: 34px; letter-spacing: .55em; fill: currentColor; }
.pop { transform-box: fill-box; transform-origin: 50% 50%; animation: pop 1.25s cubic-bezier(.3, .7, .2, 1) .35s both; }
@keyframes pop {
  0%   { transform: translate(-11px, 15.8px) rotate(0deg); fill: var(--pop-from, #fff); }
  30%  { transform: translate(-9px, 8px) rotate(0deg); fill: var(--pop-from, #fff); }
  45%  { transform: translate(-4px, -16px) rotate(-14deg); fill: var(--pop-to, #3D5AFE); }
  70%  { transform: translate(2px, -6px) rotate(6deg); fill: var(--pop-to, #3D5AFE); }
  85%  { transform: translate(-1px, 2px) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0deg); fill: var(--pop-to, #3D5AFE); }
}

/* reveal on scroll (only hidden once JS has run) */
[data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal="2"] { transition-delay: .08s; }
[data-reveal="3"] { transition-delay: .16s; }
[data-reveal="4"] { transition-delay: .24s; }
.pre { opacity: 0; transform: translateY(26px); }

/* marquee (adapted from the 21st.dev Marquee pattern) */
.marquee { overflow: hidden; display: flex; direction: ltr; user-select: none; }
.marquee .track { display: flex; flex: none; align-items: center; gap: var(--mq-gap, 44px); padding-inline-end: var(--mq-gap, 44px); animation: mq var(--mq-dur, 38s) linear infinite; }
@keyframes mq { to { transform: translateX(-100%); } }

/* game canvas basics */
.pj { position: relative; overflow: hidden; }
.pj canvas { display: block; width: 100%; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.pj .pj-start { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); }
.pj .pj-start[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee .track { animation: none; }
}

/* ================= theme ================= */
:root {
  --bg: #0D0D0F;
  --char: #1C1C1C;
  --panel: #16161A;
  --panel-2: #1B1B20;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .18);
  --blue: #3D5AFE;
  --blue-hi: #6E84FF;
  --white: #FFFFFF;
  --dim: #BDBDB6;
  --mute: #92928B;
  --r: 24px;
}
body { background: var(--bg); color: var(--white); }
:focus-visible { outline: 3px solid var(--blue-hi); outline-offset: 3px; border-radius: 8px; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-hi); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--blue); box-shadow: 0 0 16px var(--blue); }
.h2 { font-family: var(--mono); font-size: clamp(34px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.035em; text-transform: uppercase; margin-top: 16px; }
.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--dim); max-width: 600px; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 28px; border-radius: 14px; border: 1px solid transparent; font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s; }
.btn svg { width: 14px; height: 14px; }
[dir="rtl"] .btn svg { transform: scaleX(-1); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, #5B74FF 0%, var(--blue) 55%, #3149E0 100%); color: #fff; border-color: rgba(255, 255, 255, .22); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 14px 38px -12px rgba(61, 90, 254, .85); }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 20px 48px -12px rgba(61, 90, 254, 1); }
.btn-glass { background: rgba(255, 255, 255, .06); border-color: var(--line-2); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.btn-light { background: #fff; color: var(--char); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 12px; border-radius: 12px; }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.hdr.scrolled { background: rgba(13, 13, 15, .72); border-bottom-color: var(--line); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); }
.hdr-in { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.lockup { color: #fff; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav > a:not(.btn) { text-decoration: none; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #C9C9C3; padding: 12px 0; transition: color .15s; }
.nav > a:not(.btn):hover { color: #fff; }
.nav .lang { font-family: var(--arabic) !important; letter-spacing: 0 !important; font-size: 15px !important; text-transform: none !important; border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 12px !important; color: #fff !important; }
.nav .lang:hover { border-color: #fff; }
@media (max-width: 900px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } }
@media (max-width: 560px) { .nav .hide-xs { display: none; } .lockup .mark { height: 30px; } .lockup-name { font-size: 15px; } .lockup-games { font-size: 7.5px; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 132px 0 0; overflow: hidden; isolation: isolate; }
.px-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 78%); }
.hero-glow { position: absolute; z-index: -1; left: 50%; bottom: -46%; width: min(1500px, 150vw); aspect-ratio: 2 / 1; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(61, 90, 254, .55), rgba(61, 90, 254, .14) 55%, transparent 72%); filter: blur(10px); animation: breathe 7s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 50% { opacity: .72; transform: translateX(-50%) scale(1.05); } }
.hero-in { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-bottom: 56px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #E4E4DF; margin-bottom: 44px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pill i { width: 8px; height: 8px; border-radius: 2px; background: var(--blue-hi); box-shadow: 0 0 12px var(--blue); animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.wordmark { width: min(960px, 90vw); color: #fff; filter: drop-shadow(0 18px 50px rgba(61, 90, 254, .35)); }
.tagline { margin-top: 40px; font-size: clamp(20px, 2.5vw, 27px); color: var(--dim); max-width: 30ch; line-height: 1.4; }
.tagline strong { color: #fff; font-weight: 600; }
.cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hero-stats div { padding: 22px 24px 26px; border-inline-start: 1px solid var(--line); }
.hero-stats div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.hero-stats dt { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.hero-stats dd { margin-top: 6px; font-size: 16px; font-weight: 500; color: #fff; }
@media (max-width: 720px) {
  .hero { padding-top: 112px; }
  .pill { margin-bottom: 32px; font-size: 11px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-inline-start: 0; border-top: 1px solid var(--line); }
  .hero-stats div:first-child { border-top: 0; }
  .hero-stats dd { margin: 0; font-size: 15px; text-align: end; }
}

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); padding: 22px 0; background: #0A0A0C; --mq-gap: 40px; }
.ticker span { font-family: var(--mono); font-weight: 700; font-size: clamp(22px, 3vw, 38px); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .42); }
.ticker span.fill { color: #fff; -webkit-text-stroke: 0; }
.ticker i { flex: none; width: 14px; height: 14px; border-radius: 3px; background: var(--blue); box-shadow: 0 0 18px rgba(61, 90, 254, .9); }

/* ---------- sections ---------- */
.section { padding: 128px 0; }
.sec-head { margin-bottom: 48px; }
.sec-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.sec-head.split .lead { max-width: 440px; }
@media (max-width: 760px) { .section { padding: 84px 0; } .sec-head { margin-bottom: 32px; } }

/* spotlight surface (adapted from 21st.dev Spotlight Card) */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .5s ease; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 90, 254, .2), transparent 62%); pointer-events: none; }
.spot:hover::before { opacity: 1; }

/* featured game */
.feature { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); border-radius: 32px; overflow: hidden; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); box-shadow: 0 50px 120px -60px rgba(61, 90, 254, .5); }
.feature-art { position: relative; min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 56px 32px; perspective: 900px; background:
  radial-gradient(60% 55% at 50% 45%, rgba(126, 79, 214, .5), transparent 70%),
  radial-gradient(90% 80% at 20% 100%, rgba(61, 90, 254, .35), transparent 60%),
  #100F1A; }
.feature-art::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Crect x='14' y='14' width='5' height='5' rx='1.1' fill='%23ffffff' fill-opacity='.09'/%3E%3C/svg%3E"); pointer-events: none; }
.logo-tile { position: relative; z-index: 1; width: min(400px, 82%); padding: 36px 40px; border-radius: 28px; background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .5) inset; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease); }
.logo-tile img { width: 100%; height: auto; }
.art-tag { position: relative; z-index: 1; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #E8E0F6; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .07); border-radius: 999px; padding: 8px 16px; }
.feature-body { padding: 60px 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px 7px 12px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.badge::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--blue-hi); box-shadow: 0 0 12px var(--blue); animation: blink 1.6s steps(2, jump-none) infinite; }
.game-name { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.game-name h3 { font-family: var(--mono); font-size: clamp(44px, 5vw, 64px); letter-spacing: -.04em; line-height: 1; }
.game-name .alt { font-size: 30px; font-weight: 700; color: var(--mute); line-height: 1; }
.pitch { font-size: 19px; color: #DADAD4; max-width: 44ch; }
.slogan { font-family: var(--mono); font-size: 14px; color: var(--mute); letter-spacing: .04em; }
.feature-body .btn { margin-top: 8px; }

.perks { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.perk { padding: 26px 24px 28px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.perk:hover { border-color: rgba(110, 132, 255, .45); transform: translateY(-3px); }
.perk .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: var(--blue-hi); background: rgba(61, 90, 254, .14); border: 1px solid rgba(110, 132, 255, .3); }
.perk .ico svg { width: 22px; height: 22px; }
.perk h3 { margin-top: 20px; font-family: var(--mono); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.perk p { margin-top: 8px; font-size: 15px; color: var(--dim); line-height: 1.55; }

.soon { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 38px 44px; border: 1.5px dashed var(--line-2); border-radius: 28px; }
.soon h3 { font-family: var(--mono); font-size: 24px; text-transform: uppercase; letter-spacing: .01em; margin-top: 10px; }
.soon p { color: var(--dim); margin-top: 8px; max-width: 520px; }
.soon .eyebrow { color: var(--mute); }
.soon .eyebrow::before { background: var(--mute); box-shadow: none; }
.loading { display: flex; gap: 8px; flex: none; }
.loading i { width: 22px; height: 22px; border-radius: 5px; background: #2A2A30; animation: load 1.6s steps(1, end) infinite; }
.loading i:nth-child(2) { animation-delay: .2s; } .loading i:nth-child(3) { animation-delay: .4s; } .loading i:nth-child(4) { animation-delay: .6s; } .loading i:nth-child(5) { animation-delay: .8s; }
@keyframes load { 0%, 100% { background: #2A2A30; box-shadow: none; } 20%, 60% { background: var(--blue); box-shadow: 0 0 18px rgba(61, 90, 254, .8); } }
@media (max-width: 980px) {
  .feature { grid-template-columns: 1fr; }
  .feature-art { min-height: 340px; padding: 48px 24px; }
  .feature-body { padding: 40px 28px 44px; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soon { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; } }

/* ---------- arcade ---------- */
.arcade { background: radial-gradient(70% 60% at 50% 0%, rgba(61, 90, 254, .13), transparent 70%); border-top: 1px solid var(--line); }
.console { padding: 10px; border-radius: 30px; background: linear-gradient(180deg, #26262C, #151518); border: 1px solid var(--line-2); box-shadow: 0 60px 120px -50px rgba(61, 90, 254, .55), 0 1px 0 rgba(255, 255, 255, .12) inset; }
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px 16px; }
.live { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.live i { width: 9px; height: 9px; border-radius: 2px; background: var(--blue-hi); box-shadow: 0 0 12px var(--blue); animation: blink 1.6s steps(2, jump-none) infinite; }
.pj-stats { display: flex; gap: 26px; font-family: var(--mono); }
.pj-stats div { display: flex; align-items: baseline; gap: 10px; }
.pj-stats dt { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.pj-stats dd { font-size: 22px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.pj-stats div:last-child dd { color: var(--blue-hi); }
.pj { border-radius: 22px; background: #09090B; border: 1px solid var(--line); }
.pj::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px); }
.pj canvas { height: 320px; }
.pj canvas:focus-visible { outline: 3px solid var(--blue-hi); outline-offset: -3px; border-radius: 22px; }
.pj .pj-start { z-index: 1; }
.pj .pj-start:hover { transform: translate(-50%, calc(-50% - 2px)); }
.pj-hint { margin-top: 20px; font-family: var(--mono); font-size: 13px; color: var(--mute); letter-spacing: .04em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
kbd { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: #fff; background: #1E1E23; border: 1px solid var(--line-2); border-bottom-width: 3px; }
@media (max-width: 760px) { .pj canvas { height: 230px; } .pj .pj-start { top: 52%; } .pj-stats { gap: 16px; } .pj-stats dd { font-size: 18px; } .console { padding: 6px; border-radius: 24px; } .pj { border-radius: 18px; } }
@media (max-width: 420px) { .live { font-size: 0; gap: 0; } }

/* ---------- studio ---------- */
.studio { border-top: 1px solid var(--line); }
.statement { font-family: var(--mono); font-size: clamp(34px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.04em; text-transform: uppercase; margin: 16px 0 28px; max-width: 16ch; }
.statement span { color: var(--blue-hi); }
.studio .lead { max-width: 680px; }
.pillars { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar { padding: 34px 30px 38px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.pillar:hover { border-color: rgba(110, 132, 255, .45); transform: translateY(-3px); }
.pillar .num { display: block; font-family: var(--mono); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(110, 132, 255, .75); }
.pillar h3 { font-family: var(--mono); font-size: 20px; text-transform: uppercase; letter-spacing: .01em; margin: 26px 0 10px; line-height: 1.25; }
.pillar p { color: var(--dim); font-size: 16px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; margin-top: 40px; } }

/* ---------- contact ---------- */
.contact { padding: 0 0 120px; }
.cta-panel { position: relative; overflow: hidden; isolation: isolate; padding: 80px 64px; border-radius: 36px; background: linear-gradient(135deg, #4A66FF 0%, var(--blue) 45%, #2638C4 100%); box-shadow: 0 60px 140px -50px rgba(61, 90, 254, .9), 0 1px 0 rgba(255, 255, 255, .35) inset; display: flex; flex-direction: column; align-items: flex-start; }
.cta-pixels { position: absolute; inset: 0; z-index: -1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect x='14' y='14' width='28' height='28' rx='6' fill='%23ffffff' fill-opacity='.1'/%3E%3C/svg%3E"); -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%); mask-image: linear-gradient(100deg, transparent 35%, #000 100%); }
[dir="rtl"] .cta-pixels { transform: scaleX(-1); }
.cta-panel .h2 { margin: 0; max-width: 15ch; }
.cta-panel > p { margin: 18px 0 30px; font-size: 20px; color: #fff; }
.chips { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: #fff; background: rgba(13, 13, 15, .22); border: 1px solid rgba(255, 255, 255, .32); transition: background-color .2s, border-color .2s; }
.chips a:hover { background: rgba(13, 13, 15, .4); border-color: #fff; }
.chips svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 760px) { .contact { padding-bottom: 80px; } .cta-panel { padding: 52px 28px; border-radius: 28px; } }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: 64px 0 96px; background: #0A0A0C; }
.ftr-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.ftr-note { color: var(--mute); margin-top: 18px; font-size: 15px; max-width: 320px; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 8px 30px; }
.ftr-links a { text-decoration: none; color: var(--dim); font-size: 15px; padding: 8px 0; }
.ftr-links a:hover { color: #fff; }
.ftr-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--mute); font-size: 14px; }

/* ================= site-wide additions ================= */
:root { --latin: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; }
.lockup-text, .wordmark .games, .pj-stats dd, .pillar .num, .notfound .big, [lang="en"] { font-family: var(--latin); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: var(--line-2); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.nav > a[aria-current="page"] { color: #fff; }
.nav .lang-en { font-family: var(--latin) !important; letter-spacing: .14em !important; font-size: 13px !important; text-transform: uppercase !important; }
.hero-ar-name { font-family: var(--arabic); font-weight: 700; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.4; margin-top: 16px; color: #fff; }
@media (max-width: 560px) { .console-bar .live { font-size: 0 !important; gap: 0; } }

/* footer */
.ftr { padding: 64px 0 40px; }
.ftr-links { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 44px; align-content: start; }
.ftr-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ftr-h { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.fc { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; color: var(--dim); text-decoration: none; font-size: 15px; transition: color .15s; }
.fc:hover { color: #fff; }
.fc svg { width: 18px; height: 18px; flex: none; }

/* ================= inner pages ================= */
.inner { background: radial-gradient(70% 460px at 50% 0, rgba(61, 90, 254, .2), transparent 72%) no-repeat; }
.page-head { padding: 168px 0 44px; }
.page-head h1 { font-family: var(--mono); font-size: clamp(42px, 6.8vw, 84px); line-height: 1; letter-spacing: -.04em; text-transform: uppercase; margin-top: 16px; }
.page-head .lead { margin-top: 22px; }
@media (max-width: 760px) { .page-head { padding: 132px 0 32px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; padding-bottom: 120px; align-items: start; }
.form-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 28px; padding: 40px; box-shadow: 0 50px 120px -70px rgba(61, 90, 254, .6); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: #fff; background: #0C0C0F; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; min-height: 52px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 170px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23BDBDB6' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
[dir="rtl"] select { background-position: left 16px center; padding-right: 16px; padding-left: 44px; }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, .34); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-hi); box-shadow: 0 0 0 4px rgba(61, 90, 254, .28); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #FF6B6B; }
.err { color: #FF8A8A; font-size: 14px; }
.hp { display: none; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-foot small { color: var(--mute); font-size: 13px; }
.form-foot small a { color: var(--dim); }
.form-foot .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.status { margin-top: 18px; font-size: 15px; color: var(--dim); }
.status:empty { margin: 0; }
.status.bad { color: #FF8A8A; }
.success { display: none; text-align: start; }
.success .tick { width: 54px; height: 54px; border-radius: 14px; background: var(--blue); display: grid; place-items: center; box-shadow: 0 14px 38px -12px rgba(61, 90, 254, .85); }
.success h2 { font-family: var(--mono); font-size: 28px; text-transform: uppercase; margin-top: 22px; }
.success p { color: var(--dim); margin-top: 10px; }
.form-card.sent form { display: none; }
.form-card.sent .success { display: block; }
.aside { display: grid; gap: 12px; }
.info { border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; background: var(--panel); transition: border-color .3s; }
.info:hover { border-color: rgba(110, 132, 255, .45); }
.info .eyebrow { font-size: 12px; }
.info p, .info a { display: block; margin-top: 10px; font-size: 18px; color: #fff; text-decoration: none; word-break: break-word; }
.info a:hover { color: #C9D2FF; }
.info .note { font-size: 15px; color: var(--dim); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; padding-bottom: 80px; }
  .form-card { padding: 28px 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* privacy */
.prose { max-width: 760px; padding-bottom: 120px; }
.prose h2 { font-family: var(--mono); font-size: 20px; text-transform: uppercase; letter-spacing: .04em; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--dim); }
.prose p + p { margin-top: 12px; }
.prose ul { display: grid; gap: 8px; margin-top: 12px; }
.prose ul li { padding-inline-start: 22px; position: relative; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .65em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue-hi); }
.prose a { color: #fff; }
.updated { font-family: var(--mono); font-size: 13px; color: var(--mute); letter-spacing: .08em; margin-top: 18px; display: block; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 150px 24px 96px; }
.notfound .big { font-weight: 700; font-size: clamp(96px, 20vw, 200px); line-height: 1; letter-spacing: -.04em; position: relative; display: inline-block; direction: ltr; filter: drop-shadow(0 18px 50px rgba(61, 90, 254, .45)); }
.notfound .big i { position: absolute; width: .16em; height: .16em; border-radius: .03em; background: var(--blue); box-shadow: 0 0 24px var(--blue); top: -.02em; right: -.18em; transform: rotate(12deg); }
.notfound p { color: var(--dim); margin: 18px 0 30px; font-size: 19px; }
.pj-404 { margin-top: 48px; width: min(720px, 88vw); text-align: start; }
.pj-404 canvas { height: 200px; }
.pj-404 .pj-start { top: 66%; }
.pj-stats-404 { justify-content: center; margin-top: 16px; }
@media (max-width: 560px) { .pj-404 .pj-start { white-space: nowrap; min-height: 44px; padding: 10px 16px; font-size: 12px; letter-spacing: .08em; top: 46%; } .pj-404 canvas { height: 190px; } }

/* ================= Arabic (right-to-left) ================= */
html[lang="ar"] { --mono: var(--arabic); }
html[lang="ar"] body { font-family: var(--arabic); font-size: 18px; line-height: 1.75; }
html[lang="ar"] body *:not([lang="en"]):not([lang="en"] *):not(.wordmark *):not(.pj-stats dd):not(.num):not(.big) { letter-spacing: 0 !important; }
html[lang="ar"] .h2 { font-size: clamp(34px, 5vw, 62px); line-height: 1.3; }
html[lang="ar"] .statement { font-size: clamp(34px, 5vw, 64px); line-height: 1.35; max-width: 20ch; }
html[lang="ar"] .page-head h1 { line-height: 1.25; }
html[lang="ar"] .eyebrow { font-size: 16px; }
html[lang="ar"] .info .eyebrow { font-size: 15px; }
html[lang="ar"] .pill, html[lang="ar"] .badge, html[lang="ar"] .art-tag, html[lang="ar"] .live { font-size: 14px; font-weight: 500; }
html[lang="ar"] .hero-stats dt, html[lang="ar"] .pj-stats dt, html[lang="ar"] .ftr-h { font-size: 14px; font-weight: 500; }
html[lang="ar"] label { font-size: 15px; font-weight: 500; }
html[lang="ar"] .btn { font-size: 16px; }
html[lang="ar"] .btn-sm { font-size: 15px; }
html[lang="ar"] .nav > a:not(.btn) { font-size: 16px; font-weight: 500; }
html[lang="ar"] .tagline { line-height: 1.6; }
html[lang="ar"] .game-name { align-items: center; }
html[lang="ar"] .game-name h3 { line-height: 1.25; }
html[lang="ar"] .game-name .alt { font-size: 20px; letter-spacing: .14em; }
html[lang="ar"] .slogan { font-size: 16px; }
html[lang="ar"] .perk h3 { font-size: 18px; }
html[lang="ar"] .perk p, html[lang="ar"] .pillar p { font-size: 16px; }
html[lang="ar"] .soon h3 { font-size: 26px; }
html[lang="ar"] .pillar h3 { font-size: 23px; line-height: 1.4; }
html[lang="ar"] .pj-hint { font-size: 15px; }
html[lang="ar"] kbd { font-size: 13px; }
html[lang="ar"] .prose h2 { font-size: 23px; }
html[lang="ar"] .success h2 { font-size: 28px; }
html[lang="ar"] .updated { font-size: 15px; }
html[lang="ar"] .ticker span { -webkit-text-stroke: 0; color: rgba(255, 255, 255, .4); line-height: 1.6; }
html[lang="ar"] .ticker span.fill { color: #fff; }
[dir="rtl"] .marquee .track { animation-direction: reverse; }
