/* Murabbah. Every colour, size and motion of the site lives in these tokens;
   the palette is ربعنا's Sadu: rug red, cream wool, ochre, and the coal of
   the game's own pages. */

@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("/fonts/thmanyah-serif-display-Bold.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
/* The sans files carry Arabic only; Latin and digits fall through to Plex. */
@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyah-sans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+00AB, U+00BB, U+200C-200F;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyah-sans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+00AB, U+00BB, U+200C-200F;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyah-sans-Bold.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+00AB, U+00BB, U+200C-200F;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Bold.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}

:root {
  --paper: #f3ebdd;
  --paper-hi: #faf5ec;
  --paper-lo: #ebe1ce;
  --ink: #1f1915;
  --ink-2: #54473e;
  --ink-3: #85766a;
  --line: rgba(31, 25, 21, 0.12);
  --red: #9a2a27;
  --red-hi: #b8352f;
  --ochre: #c88a3a;
  --ochre-hi: #e0a756;
  --cream: #f2e8d5;
  --cream-2: rgba(242, 232, 213, 0.72);
  --cream-3: rgba(242, 232, 213, 0.5);
  --coal: #1b1816;
  --coal-2: #24201d;
  --coal-3: #2f2a26;
  --green-hi: #6fdc98;
  --green: #36a463;
  --green-lo: #1f7a45;

  --display: "Thmanyah Serif Display", "Thmanyah Sans", Georgia, serif;
  --body-ar: "Thmanyah Sans", "IBM Plex Sans", system-ui, sans-serif;
  --body-en: "IBM Plex Sans", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --bar-h: 72px;
  --section: clamp(88px, 12vw, 168px);
  --radius: 20px;

  --ease-out: cubic-bezier(0.17, 0.84, 0.3, 1);
  --ease-soft: cubic-bezier(0.2, 0.7, 0.2, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .09 0 0 0 0 .07 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --sadu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='30'%3E%3Crect width='32' height='5' fill='%239a2a27'/%3E%3Crect y='8' width='32' height='1.5' fill='%23c88a3a' fill-opacity='.75'/%3E%3Cpath d='M0 12h32L16 29Z' fill='%23f2e8d5' fill-opacity='.06'/%3E%3Cpath d='M16 15.5 19 18.5 16 21.5 13 18.5Z' fill='%23c88a3a' fill-opacity='.55'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar-h);
}

body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font-family: var(--body-ar);
  font-size: 1.0625rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
html[lang="en"] body {
  font-family: var(--body-en);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--red);
  color: var(--paper-hi);
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.75rem, 6.6vw, 5.75rem);
  line-height: 1.16;
}
h2 {
  font-size: clamp(2.05rem, 4.5vw, 3.75rem);
  line-height: 1.24;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.45;
}
html[lang="en"] h1 {
  font-size: clamp(2.6rem, 4.9vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
html[lang="en"] h2 {
  line-height: 1.08;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper-hi);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus {
  top: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
html[lang="en"] .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tick {
  width: 9px;
  height: 9px;
  background: var(--ochre);
  transform: rotate(45deg);
  flex: none;
}

/* ── Marks ────────────────────────────────────────────────────────────── */

.mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: none;
}
.mark .edge {
  fill: var(--red);
}
.mark .gem {
  fill: var(--ochre);
}
.mark-sm,
.mark-big {
  --off: var(--ink);
}
.mark-sm .edge,
.mark-big .edge {
  fill: var(--off);
  fill-opacity: 0.13;
  transition:
    fill 0.5s var(--ease-soft),
    fill-opacity 0.5s var(--ease-soft);
}
.mark-sm .edge.is-on,
.mark-big .edge.is-on {
  fill: var(--red);
  fill-opacity: 1;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-soft),
    background-color 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper-hi);
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.35),
    0 14px 28px -14px rgba(31, 25, 21, 0.7);
}
.btn-ink:hover {
  background: var(--red);
}
.btn-line {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-line:hover {
  background: var(--ink);
  color: var(--paper-hi);
}
.btn-play {
  color: #fff;
  background: linear-gradient(180deg, var(--green-hi), var(--green) 55%, var(--green-lo));
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -4px 0 rgba(0, 0, 0, 0.22),
    0 16px 34px -14px rgba(54, 164, 99, 0.8);
}
.btn-play:hover {
  transform: translateY(-2px);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--bar-h);
  transition:
    background-color 0.35s,
    box-shadow 0.35s,
    color 0.35s;
}
.bar.is-scrolled {
  background: rgba(243, 235, 221, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.bar.is-dark {
  background: rgba(27, 24, 22, 0.84);
  color: var(--cream);
  box-shadow: 0 1px 0 rgba(242, 232, 213, 0.08);
}
.bar-in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-inline-end: auto;
}
.brand-word {
  font-family: var(--display);
  font-size: 1.65rem;
  line-height: 1;
  padding-top: 2px;
}
.brand-latin {
  font-family: var(--body-en);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  opacity: 0.55;
  padding-top: 3px;
}
.bar.is-dark .mark .edge {
  fill: var(--cream);
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  position: relative;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  opacity: 0.78;
  transition: opacity 0.2s;
}
.nav a:hover {
  opacity: 1;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 4px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-soft);
}
.nav a:hover::after {
  transform: scaleX(1);
}
.nav .lang {
  margin-inline-start: 8px;
  opacity: 1;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.25px currentColor;
  padding: 6px 14px;
}
.nav .lang::after {
  display: none;
}
.menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  place-items: center;
  border-radius: 12px;
}
.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 20px;
  height: 1.75px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-soft), opacity 0.2s;
}
.menu-lines {
  position: relative;
}
.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}
.menu-lines::before {
  top: -6px;
}
.menu-lines::after {
  top: 6px;
}
.bar.is-open .menu-lines {
  background: transparent;
}
.bar.is-open .menu-lines::before {
  transform: translateY(6px) rotate(45deg);
}
.bar.is-open .menu-lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 860px) {
  .brand-latin {
    display: none;
  }
  .menu {
    display: grid;
  }
  .nav {
    position: absolute;
    top: var(--bar-h);
    inset-inline: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 22px;
    background: var(--paper-hi);
    color: var(--ink);
    box-shadow:
      0 0 0 1px var(--line),
      0 24px 48px -20px rgba(31, 25, 21, 0.45);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity 0.25s,
      transform 0.3s var(--ease-soft);
  }
  .bar.is-open .nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    padding: 14px 16px;
    font-size: 1.08rem;
    opacity: 1;
    border-radius: 14px;
  }
  .nav a:hover {
    background: var(--paper-lo);
  }
  .nav a::after {
    display: none;
  }
  .nav .lang {
    margin: 6px 0 0;
    text-align: center;
    padding: 12px;
  }
  .bar.is-open:not(.is-scrolled) {
    background: rgba(243, 235, 221, 0.92);
  }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-top: calc(var(--bar-h) + clamp(28px, 6vw, 80px));
  padding-bottom: clamp(64px, 9vw, 128px);
  overflow: clip;
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 26% 52%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 60% at 26% 52%, #000 10%, transparent 72%);
  opacity: 0.6;
  pointer-events: none;
}
html[dir="ltr"] .grid-bg {
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 74% 52%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 60% at 74% 52%, #000 10%, transparent 72%);
}
.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}
.hero h1 .line {
  display: block;
  animation: rise 0.9s var(--ease-out) both;
}
.hero h1 .line[data-i="1"] {
  animation-delay: 0.08s;
}
.hero h1 .line[data-i="2"] {
  animation-delay: 0.16s;
  color: var(--red);
}
.hero .eyebrow,
.hero .lede,
.hero .cta {
  animation: rise 0.9s var(--ease-out) both;
}
.hero .lede {
  animation-delay: 0.26s;
}
.hero .cta {
  animation-delay: 0.34s;
}
.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  max-width: 34em;
  margin-block: 24px 34px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.stage {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 22px;
  animation: settle 1.2s var(--ease-out) 0.1s both;
}
@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.table-wrap {
  width: min(100%, 520px);
  perspective: 1500px;
}
.table {
  --rx: 16deg;
  --ry: 0deg;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-soft);
  -webkit-tap-highlight-color: transparent;
}
.table:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 8px;
}
.rug {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.25),
    0 36px 70px -26px rgba(80, 22, 12, 0.6),
    0 14px 26px -14px rgba(0, 0, 0, 0.4);
}
.trick {
  position: absolute;
  inset: 0;
}
.trick .card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 23%;
  height: auto;
  margin-left: -11.5%;
  margin-top: -16.63%;
  border-radius: 6% / 4.2%;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 10px 18px -8px rgba(0, 0, 0, 0.55);
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-drag: none;
}
.contract {
  position: absolute;
  top: 11%;
  inset-inline-end: 11%;
  font-family: var(--display);
  font-size: clamp(0.78rem, 1.4vw, 0.92rem);
  color: var(--cream);
  background: rgba(0, 0, 0, 0.28);
  padding: 2px 12px 3px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.note {
  min-height: 1.8em;
  font-size: 0.95rem;
  color: var(--ink-3);
  text-align: center;
  transition: opacity 0.3s;
}
.note.is-fresh {
  color: var(--ink-2);
}
.note.is-out {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .table:hover .rug {
    box-shadow:
      0 2px 0 rgba(0, 0, 0, 0.25),
      0 46px 80px -26px rgba(80, 22, 12, 0.65),
      0 18px 30px -14px rgba(0, 0, 0, 0.42);
  }
}

@media (max-width: 900px) {
  .hero-in {
    grid-template-columns: 1fr;
  }
  .grid-bg,
  html[dir="ltr"] .grid-bg {
    -webkit-mask-image: radial-gradient(ellipse 80% 40% at 50% 78%, #000 10%, transparent 72%);
    mask-image: radial-gradient(ellipse 80% 40% at 50% 78%, #000 10%, transparent 72%);
  }
  .table-wrap {
    width: min(100%, 440px);
  }
}

/* ── Reveal ───────────────────────────────────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ── About ────────────────────────────────────────────────────────────── */

.about {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}
.about-in {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.about-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(200, 138, 58, 0.16), transparent 62%),
    var(--paper-hi);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 30px 60px -40px rgba(31, 25, 21, 0.5);
}
.mark-xl {
  width: 64%;
  height: auto;
}
.mark-xl .edge {
  transform-box: fill-box;
  transition: transform 1.1s var(--ease-out);
}
.js .about-art:not(.in) .mark-xl [data-edge="0"] {
  transform: translateY(9px);
}
.js .about-art:not(.in) .mark-xl [data-edge="1"] {
  transform: translateX(9px);
}
.js .about-art:not(.in) .mark-xl [data-edge="2"] {
  transform: translateY(-9px);
}
.js .about-art:not(.in) .mark-xl [data-edge="3"] {
  transform: translateX(-9px);
}
.mark-xl .gem {
  transform-origin: 24px 24px;
  transition: transform 1.2s var(--ease-out) 0.3s;
}
.js .about-art:not(.in) .mark-xl .gem {
  transform: scale(0) rotate(-90deg);
}
.about-copy > p:not(.eyebrow) {
  margin-top: 22px;
  color: var(--ink-2);
  max-width: 36em;
  font-size: 1.12rem;
}
.about-copy h2 {
  max-width: 14em;
}
.pull {
  margin: 40px 0 0;
  padding-inline-start: 22px;
  border-inline-start: 3px solid var(--red);
}
.pull p {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
}

@media (max-width: 860px) {
  .about-in {
    grid-template-columns: 1fr;
  }
  .about-art {
    width: min(70%, 280px);
  }
}

/* ── Principles: the four sides ───────────────────────────────────────── */

.sides {
  padding-block: var(--section) calc(var(--section) * 0.6);
  background: var(--paper-lo) var(--grain);
  border-block: 1px solid var(--line);
}
.sec-head {
  max-width: 40rem;
  margin-bottom: clamp(32px, 6vw, 72px);
}
.sides-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 110px);
}
.sides-sticky {
  position: sticky;
  top: calc(50vh - min(19vw, 200px));
  display: grid;
  place-items: center;
}
.mark-big {
  width: min(100%, 400px);
  height: auto;
}
.mark-big .gem {
  display: none;
}
.sides-count {
  position: absolute;
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sides-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side {
  padding-block: clamp(36px, 9vh, 96px);
  border-top: 1px solid var(--line);
  transition: opacity 0.5s var(--ease-soft);
}
.side:first-child {
  border-top: 0;
  padding-top: 0;
}
.side-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.side-tag .mark-sm {
  width: 30px;
  height: 30px;
  display: none;
}
.side-no {
  font-family: var(--display);
  color: var(--red);
  font-size: 1.05rem;
}
.side h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.3;
}
.side p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 1.1rem;
  max-width: 30em;
}
@media (min-width: 861px) {
  .js .side:not(.on) {
    opacity: 0.32;
  }
}
@media (max-width: 860px) {
  .sides-grid {
    grid-template-columns: 1fr;
  }
  .sides-fig {
    display: none;
  }
  .side-tag .mark-sm {
    display: block;
  }
  .side {
    padding-block: 32px;
  }
}

/* ── Rab3na ───────────────────────────────────────────────────────────── */

.game {
  position: relative;
  background: var(--coal);
  color: var(--cream);
  padding-block: calc(var(--section) * 0.85) calc(var(--section) * 0.7);
  overflow: clip;
}
.game::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 22% 30%, rgba(200, 138, 58, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(154, 42, 39, 0.16), transparent 70%);
  pointer-events: none;
}
html[dir="ltr"] .game::before {
  transform: scaleX(-1);
}
.sadu {
  position: absolute;
  inset: 0 0 auto;
  height: 30px;
  background: var(--sadu) repeat-x;
}
.game .eyebrow {
  color: var(--ochre-hi);
  margin-bottom: 4px;
}
.game-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.game-id {
  display: flex;
  align-items: center;
  gap: 20px;
}
.fan {
  position: relative;
  width: 92px;
  height: 92px;
  flex: none;
}
.fan img {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 46px;
  margin-left: -23px;
  border-radius: 4px;
  transform-origin: 50% 100%;
  box-shadow: 0 10px 18px -8px rgba(0, 0, 0, 0.85);
  transition: transform 0.5s var(--ease-out);
}
.fan img:nth-child(1) {
  transform: rotate(-16deg) translateX(-4px);
}
.fan img:nth-child(2) {
  transform: rotate(0deg) translateY(-3px);
}
.fan img:nth-child(3) {
  transform: rotate(16deg) translateX(4px);
}
.game-id:hover .fan img:nth-child(1) {
  transform: rotate(-24deg) translateX(-6px);
}
.game-id:hover .fan img:nth-child(3) {
  transform: rotate(24deg) translateX(6px);
}
.game h2 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.05;
}
.game-tag {
  margin-top: 26px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.35;
  color: var(--cream);
}
.game .lede {
  color: var(--cream-2);
  margin-block: 18px 32px;
}
.soon {
  font-size: 0.92rem;
  color: var(--cream-3);
}

.game-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 320px);
  padding-block: 10px;
}
.phone {
  position: relative;
  z-index: 1;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #3a332d, #121010 40%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 60px 110px -40px rgba(0, 0, 0, 0.95),
    0 0 140px -30px rgba(200, 138, 58, 0.3);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 37px;
}
.float {
  position: absolute;
  width: 38%;
  height: auto;
  border-radius: 6% / 4.2%;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.85);
  animation: drift 7s ease-in-out infinite alternate;
}
.float-a {
  inset-inline-start: -26%;
  top: 16%;
  --r: -14deg;
  transform: rotate(var(--r));
}
.float-b {
  inset-inline-end: -24%;
  bottom: 14%;
  --r: 11deg;
  transform: rotate(var(--r));
  animation-delay: -3.5s;
}
@keyframes drift {
  from {
    transform: translateY(-8px) rotate(var(--r));
  }
  to {
    transform: translateY(10px) rotate(calc(var(--r) + 3deg));
  }
}

.feats {
  list-style: none;
  margin: clamp(56px, 8vw, 96px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--coal-2), rgba(36, 32, 29, 0.6));
  box-shadow: inset 0 0 0 1px rgba(242, 232, 213, 0.07);
  transition:
    box-shadow 0.3s,
    transform 0.3s var(--ease-soft);
}
.feat:hover {
  box-shadow: inset 0 0 0 1px rgba(200, 138, 58, 0.35);
}
/* A glyph sits in a small square of its own: the company's shape, again. */
.feat-tile {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(242, 232, 213, 0.08), rgba(242, 232, 213, 0.02));
  box-shadow: inset 0 0 0 1px rgba(242, 232, 213, 0.1);
  transition: box-shadow 0.3s;
}
.glyph {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--cream);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.glyph .acc {
  fill: var(--ochre-hi);
  stroke: none;
  transition: transform 0.5s var(--ease-out);
  transform-box: fill-box;
  transform-origin: center;
}
.glyph .hot {
  fill: var(--red-hi);
  stroke: none;
  transition: transform 0.5s var(--ease-out);
  transform-box: fill-box;
  transform-origin: center;
}
.feat:hover .feat-tile {
  box-shadow: inset 0 0 0 1px rgba(224, 167, 86, 0.45);
}
.feat:hover .glyph .acc,
.feat:hover .glyph .hot {
  transform: scale(1.12);
}
.feat h3 {
  font-family: var(--body-ar);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
}
html[lang="en"] .feat h3 {
  font-family: var(--body-en);
}
.feat p {
  margin-top: 6px;
  color: var(--cream-2);
  font-size: 0.98rem;
  line-height: 1.7;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid rgba(242, 232, 213, 0.12);
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 4px 0;
}
.fact + .fact {
  padding-inline-start: 24px;
  border-inline-start: 1px solid rgba(242, 232, 213, 0.08);
}
.fact-n {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  color: var(--ochre-hi);
  font-variant-numeric: tabular-nums;
}
.fact-l {
  color: var(--cream-2);
  font-size: 0.98rem;
}

@media (max-width: 960px) {
  .feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .game-in {
    grid-template-columns: 1fr;
  }
  .game-visual {
    width: min(64%, 280px);
    margin-top: 12px;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fact:nth-child(3) {
    border-inline-start: 0;
    padding-inline-start: 4px;
  }
}
@media (max-width: 600px) {
  .feats {
    grid-template-columns: 1fr;
  }
}

/* ── Contact ──────────────────────────────────────────────────────────── */

.contact {
  padding-block: var(--section);
  text-align: center;
}
.contact-in {
  display: grid;
  justify-items: center;
}
.contact h2 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}
.contact-in > p:not(.eyebrow) {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 1.15rem;
  max-width: 32em;
}
.mail {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 18px;
}
.mail-link {
  font-family: var(--display);
  font-size: clamp(1.55rem, 5vw, 3.1rem);
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: color 0.2s;
}
.mail-link:hover {
  color: var(--red);
}
.copy {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--paper-hi);
  box-shadow: inset 0 0 0 1px var(--line);
  transition:
    background-color 0.2s,
    color 0.2s;
}
.copy:hover {
  background: var(--ink);
  color: var(--paper-hi);
}
.copy.done {
  background: var(--red);
  color: var(--paper-hi);
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.foot {
  position: relative;
  background: var(--paper-lo) var(--grain);
  border-top: 1px solid var(--line);
  padding-top: 56px;
  overflow: hidden;
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.foot-top .brand {
  margin-inline-end: 0;
}
.foot-line {
  color: var(--ink-2);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
}
.foot-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
}
.foot-links a:hover {
  color: var(--red);
}
.foot-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-3);
}
.foot-word {
  font-family: var(--display);
  font-size: clamp(9rem, 34vw, 26rem);
  line-height: 1.1;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.25px rgba(31, 25, 21, 0.16);
  /* The display face sits its glyphs low in a tall box: pull the box up to
     the letters and let the foot cut them just under the baseline. */
  margin-top: -0.4em;
  margin-bottom: -0.05em;
  user-select: none;
  pointer-events: none;
}

/* ── Not found ────────────────────────────────────────────────────────── */

.lost {
  min-height: 82vh;
  display: grid;
  place-items: center;
  padding-top: var(--bar-h);
}
.lost-in {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
  padding-block: 64px;
}
.lost-card {
  width: 120px;
  border-radius: 7px;
  transform: rotate(-8deg);
  box-shadow: 0 24px 40px -18px rgba(31, 25, 21, 0.6);
  margin-bottom: 12px;
  animation: wobble 5s ease-in-out infinite alternate;
}
@keyframes wobble {
  to {
    transform: rotate(6deg) translateY(-6px);
  }
}
.lost p {
  color: var(--ink-2);
  margin-bottom: 12px;
}

/* ── Less motion ──────────────────────────────────────────────────────── */

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