@font-face {
  font-family: DIN;
  src: url('../assets/DINNextLTArabic-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: DIN;
  src: url('../assets/DINNextLTArabic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f2ed;
  --ink: #101820;
  --muted: #515d63;
  --line: #10182026;
  --accent: #245ed7;
  --coral: #eb4b2d;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: 30px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: DIN, Arial, sans-serif; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
p { margin: 0 0 18px; }
h1, h2, h3 { margin: 0; }
bdi { font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; z-index: 2; top: 10px; right: 20px; padding: 8px 16px; background: var(--ink); color: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header, .site-footer, main { max-width: 1200px; margin-inline: auto; padding-inline: 32px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; direction: ltr; text-decoration: none; font-size: 19px; font-weight: 700; }
.brand img { width: auto; height: 38px; }
nav { display: flex; gap: 28px; }
nav a, .all-apps { text-decoration: none; font-size: 14px; }
nav a:hover, .all-apps:hover, .site-footer a:hover { color: var(--accent); }
.all-apps span { margin-inline-start: 10px; }
main { padding-top: 64px; padding-bottom: 64px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); gap: 64px; align-items: start; }
.hero-intro { min-width: 0; }
.app-identity { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.app-icon { display: block; width: 100px; height: 100px; border-radius: 23px; }
.eyebrow { margin-bottom: 10px; color: var(--accent); font-size: 13px; font-weight: 700; }
.app-identity .eyebrow { margin-bottom: 2px; }
.edition { margin: 0; color: var(--muted); font-size: 14px; }
h1 { text-align: right; font-size: clamp(44px, 5.4vw, 66px); letter-spacing: -.035em; line-height: 1.2; margin-bottom: 20px; }
.lead { font-size: clamp(26px, 3.2vw, 35px); line-height: 1.6; margin-bottom: 20px; }
.description { max-width: 540px; color: var(--muted); font-size: 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; }
.facts li { font-size: 13px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 30px; }
.download { min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: #faf9f6; }
.download-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.status { display: inline-block; padding: 3px 12px; border: 1px solid #245ed733; border-radius: 30px; color: var(--accent); font-size: 13px; }
.build { color: var(--muted); font-size: 13px; }
.download h2 { font-size: 30px; line-height: 1.5; margin: 18px 0 14px; }
.download > p { color: var(--muted); font-size: 16px; }
.button { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; margin-top: 24px; padding: 12px 18px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; line-height: 1.7; }
.button:hover { background: #1d4caf; border-color: #1d4caf; }
.button span { flex-shrink: 0; font-size: 20px; }
.compatibility { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.download-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.download-note p { margin-bottom: 10px; }
.download-note p:last-child { margin-bottom: 0; }
.section { margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.section-heading h2, .beta h2 { font-size: clamp(25px, 3vw, 31px); line-height: 1.6; }
.section-heading > p { max-width: 320px; margin: 0; color: var(--muted); font-size: 15px; }
.play-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.play-card { position: relative; padding-top: 10px; }
.index { display: block; color: var(--muted); font-size: 13px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.play-card h3 { text-align: right; font-size: 24px; line-height: 1.5; margin-bottom: 12px; }
.play-card p { margin: 0; color: var(--muted); font-size: 16px; }
.theme-note { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 2fr); align-items: baseline; gap: 24px; margin-top: 34px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.theme-note p { margin: 0; }
.theme-note > p:last-child { font-size: 17px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 18px; align-items: start; }
.game-shot { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 20px; }
.screenshot-link { display: block; position: relative; border-radius: 10px; cursor: zoom-in; }
.screenshot-link img { display: block; width: 100%; height: auto; object-fit: contain; background: #e7e5df; border-radius: 10px; }
.zoom-hint { position: absolute; inset-inline-end: 10px; bottom: 10px; border: 1px solid #ffffff59; border-radius: 30px; padding: 3px 10px; background: #101820e6; color: #fff; font-size: 12px; }
.screenshot-link:hover .zoom-hint { background: var(--accent); }
.game-shot figcaption { position: relative; padding: 18px 0 0; padding-inline-end: 25px; }
.shot-number { position: absolute; inset-inline-end: 0; top: 22px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.game-shot h3 { text-align: right; font-size: 20px; line-height: 1.6; }
.game-shot figcaption p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.beta { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); gap: 80px; align-items: start; }
.beta h2 { margin-bottom: 14px; }
.beta > div > p:last-child { max-width: 520px; color: var(--muted); font-size: 17px; margin-bottom: 0; }
.beta-action .button { margin-top: 0; }
.support { display: inline-block; margin-top: 20px; font-size: 14px; font-weight: 700; color: var(--accent); }
.support span { margin-inline-start: 10px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding-block: 24px; border-top: 1px solid var(--line); font-size: 14px; }

@media (max-width: 1000px) {
  .hero, .beta { gap: 40px; }
  .download { padding: 25px; }
  .play-grid { gap: 24px; }
}
@media (max-width: 800px) {
  .site-header { min-height: 88px; gap: 20px; }
  .all-apps { display: none; }
  main { padding-top: 40px; }
  .hero, .beta { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-intro { max-width: 620px; }
  .download { width: 100%; max-width: 620px; }
  h1 { font-size: 54px; }
  .section { margin-top: 48px; padding-top: 28px; }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .section-heading > p { max-width: 500px; }
  .play-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .play-card { padding-inline-start: 45px; padding-top: 0; }
  .index { position: absolute; inset-inline-start: 0; top: 5px; }
  .play-card h3 { margin-bottom: 6px; }
  .theme-note { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 28px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .game-shot { padding: 12px; }
  .beta-action { width: 100%; max-width: 420px; }
}
@media (max-width: 560px) {
  .site-header, .site-footer, main { padding-inline: 20px; }
  .site-header { flex-wrap: wrap; padding-block: 20px; gap: 14px 24px; }
  .brand { font-size: 17px; gap: 9px; }
  .brand img { height: 33px; }
  nav { gap: 18px; }
  nav a { font-size: 13px; }
  main { padding-top: 32px; padding-bottom: 40px; }
  .app-identity { gap: 16px; margin-bottom: 25px; }
  .app-icon { width: 86px; height: 86px; border-radius: 20px; }
  h1 { font-size: clamp(39px, 10vw, 54px); }
  .lead { font-size: 28px; }
  .description { font-size: 17px; }
  .download { padding: 24px; }
  .section-heading h2, .beta h2 { font-size: 26px; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .game-shot { padding: 14px; max-width: 420px; width: 100%; margin-inline: auto; }
  .game-shot h3 { font-size: 21px; }
  .game-shot figcaption { padding-top: 16px; }
  .shot-number { top: 20px; }
  .site-footer { font-size: 12px; padding-block: 22px; gap: 12px; }
}
@media (max-width: 360px) {
  .site-header { gap: 16px; }
  nav { width: 100%; justify-content: space-between; }
  .app-identity { gap: 12px; }
  .edition { font-size: 13px; }
  .download { padding: 20px; }
  .button { font-size: 15px; padding-inline: 14px; gap: 10px; }
  .facts { gap: 6px; }
  .facts li { font-size: 12px; padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.game-name { margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-align: right; }
.text-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; color: var(--accent); font-weight: 700; font-size: 15px; text-decoration: none; }
.platform-download { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.platform-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.platform-heading h3 { font-size: 20px; }
.platform-download .button { margin-top: 12px; }
.button--android { background: var(--coral); border-color: var(--coral); }
.button--android:hover { background: #c83d23; border-color: #c83d23; }
.button--outline { color: var(--accent); background: transparent; }
.button--outline:hover { background: #245ed70c; border-color: var(--accent); }
.beta-action .button + .button { margin-top: 12px; }
@media (max-width: 1000px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: minmax(0, 1fr); } }
