/* natars.com: the landing. Painted art on dark wood and parchment, gold
   like the logo, crimson like its tassel. Arabic first: logical properties
   everywhere, so the same rules lay out right to left and left to right. */

@font-face {
  font-family: "Cairo";
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Cairo";
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/cairo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}

:root {
  --ink: #1c120a;
  --ink-2: #26180d;
  --wood: #3a2615;
  --paper: #f5e9cc;
  --paper-2: #ecdbb2;
  --paper-hi: #fbf3df;
  --edge: #c29a5c;
  --edge-soft: rgba(184, 138, 74, 0.5);
  --text: #2d1e10;
  --muted: #6b5233;
  --brown: #5b2a10;
  --gold: #f3b630;
  --gold-hi: #ffe39a;
  --gold-lo: #a8680a;
  --gold-ink: #43280a;
  --crimson: #a3241b;
  --cream: #f6e8c6;
  --cream-2: #cdb68d;
  --radius: 16px;
  --display: "Cairo", "Geeza Pro", Tahoma, sans-serif;
  --body: "Cairo", "Geeza Pro", Tahoma, sans-serif;
  --num: "Cairo", "Geeza Pro", Tahoma, sans-serif;
  --kilim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23f3b630' stroke-opacity='.06' stroke-width='1.2'%3E%3Cpath d='M28 8l5.5 14.5L48 28l-14.5 5.5L28 48l-5.5-14.5L8 28l14.5-5.5z'/%3E%3Crect x='18' y='18' width='20' height='20' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 1.0625rem/1.75 var(--body);
  text-rendering: optimizeLegibility;
}
:lang(ar) body, body:lang(ar) { font-size: 1.1rem; line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* Buttons: bevelled gold, like the game's own. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .62em 1.35em; border-radius: 12px; border: 1px solid transparent;
  font: 700 1rem/1.3 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, filter .15s ease;
}
.btn--sm { padding: .42em 1em; font-size: .95rem; border-radius: 10px; }
.btn--lg { padding: .78em 1.7em; font-size: 1.12rem; }
.btn--gold {
  color: var(--gold-ink);
  background: linear-gradient(180deg, #fff0bf 0%, #f8c955 42%, #e09c17 100%);
  border-color: #8a5507;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -2px 0 rgba(120, 60, 0, .3), 0 3px 0 #6b3f04, 0 10px 22px rgba(0, 0, 0, .35);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}
.btn--gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn--gold:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 0 #6b3f04, 0 4px 10px rgba(0, 0, 0, .3); }
.btn--ghost {
  color: var(--cream); background: rgba(28, 18, 10, .45); border-color: rgba(246, 232, 198, .55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(28, 18, 10, .7); border-color: var(--gold-hi); color: var(--gold-hi); }
.sec--paper .btn--ghost, .world .btn--ghost { color: var(--brown); background: rgba(255, 255, 255, .35); border-color: var(--edge); backdrop-filter: none; }
.sec--paper .btn--ghost:hover, .world .btn--ghost:hover { background: #fff8e6; color: var(--crimson); border-color: var(--crimson); }

/* The top bar. */
.bar { position: sticky; top: 0; z-index: 50; background: rgba(24, 15, 8, .94); border-bottom: 1px solid rgba(243, 182, 48, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bar--over { position: absolute; inset-inline: 0; background: linear-gradient(180deg, rgba(20, 12, 6, .82), rgba(20, 12, 6, 0)); border-bottom: 0; backdrop-filter: none; }
.bar__in { max-width: 1220px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 14px; }
.bar__logo img { height: 46px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.bar__nav { display: flex; gap: 2px; margin-inline-start: 12px; }
.bar__nav a, .bar__lang { color: var(--cream); text-decoration: none; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: .98rem; }
.bar__nav a:hover, .bar__lang:hover { background: rgba(255, 255, 255, .08); color: var(--gold-hi); }
.bar__nav a[aria-current] { color: var(--gold-hi); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 8px 8px 0 0; }
.bar__lang { margin-inline-start: auto; border: 1px solid rgba(246, 232, 198, .35); font-size: .92rem; }

/* The hero: the painted panorama, the logo over its quiet sky. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(600px, 94vh, 900px); display: grid; place-items: center;
  padding: 96px 20px 72px; text-align: center;
}
.hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 62% 48% at 50% 46%, rgba(22, 13, 6, .62), rgba(22, 13, 6, .18) 62%, rgba(22, 13, 6, 0) 80%),
    linear-gradient(180deg, rgba(22, 13, 6, .45) 0%, rgba(22, 13, 6, 0) 22%, rgba(22, 13, 6, .05) 58%, rgba(28, 18, 10, .9) 90%, var(--ink) 100%);
}
.hero__in { max-width: 880px; }
.hero__logo { width: clamp(210px, 28vw, 330px); margin: 0 auto 6px; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .55)); }
.hero__kicker {
  display: inline-block; margin: 6px 0 0; padding: .2em 1.1em; font-size: .95rem; color: var(--gold-hi);
  border: 1px solid rgba(255, 227, 154, .5); border-radius: 999px; background: rgba(28, 18, 10, .6);
}
.hero__title {
  margin: .28em 0 .3em; font: 900 clamp(2.1rem, 5vw, 3.9rem)/1.3 var(--display); color: #fff5d8;
  text-shadow: 0 2px 0 #3a2310, 0 0 2px #3a2310, 0 6px 26px rgba(0, 0, 0, .7);
  text-wrap: balance;
}
:lang(en) .hero__title { line-height: 1.2; }
.hero__text { max-width: 660px; margin: 0 auto; font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: #fbeed2; text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 2px 14px rgba(0, 0, 0, .8); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
.hero__stats { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__stats li { display: flex; align-items: baseline; gap: .5em; padding: .45em 1.1em; border-radius: 12px; background: rgba(24, 15, 8, .72); border: 1px solid rgba(243, 182, 48, .32); }
.hero__stats b { font: 700 1.45rem/1.2 var(--num); color: var(--gold-hi); }
.hero__stats span { font-size: .95rem; color: var(--cream-2); }

/* Sections. */
.sec { position: relative; padding: clamp(56px, 8vw, 96px) 20px; }
.sec__in { max-width: 1180px; margin: 0 auto; }
.sec--dark { background: radial-gradient(1100px 520px at 50% -8%, rgba(243, 182, 48, .12), transparent 62%), var(--kilim), linear-gradient(180deg, #23160c, #1a1009); }
.sec--paper {
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(160, 110, 40, .2), transparent 70%),
    var(--paper);
}
/* Battlements: every parchment section starts like a castle wall's top. */
.sec--paper::before {
  content: ""; position: absolute; inset-inline: 0; top: -15px; height: 16px;
  background: linear-gradient(90deg, var(--paper) 0 58%, transparent 58% 100%) 0 0 / 46px 100% repeat-x;
}

.head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.head__kicker {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 6px;
  color: var(--gold); font-weight: 700; font-size: 1rem;
}
:lang(en) .head__kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; }
.head__kicker::before, .head__kicker::after { content: ""; width: 54px; height: 2px; background: linear-gradient(90deg, transparent, currentColor); }
.head__kicker::after { transform: scaleX(-1); }
.head__title {
  font: 900 clamp(2rem, 4.4vw, 3.1rem)/1.35 var(--display);
  background: linear-gradient(180deg, #fff1bf 10%, #f7c24b 55%, #d68f12 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .55));
}
.head__text { margin: 12px auto 0; color: var(--cream-2); font-size: 1.08rem; text-wrap: pretty; }
.head--ink .head__kicker { color: var(--crimson); }
.head--ink .head__title { background: none; color: var(--brown); filter: none; }
.head--ink .head__text { color: var(--muted); }

/* World cards: a parchment sheet in a wooden frame, a wax seal with the
   world's number. */
.worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 380px)); justify-content: center; gap: 30px; }
.world {
  color: var(--text); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #fffaf0, transparent 70%), var(--paper);
  box-shadow: 0 0 0 1px #d6b277, 0 0 0 6px #3a2615, 0 0 0 7px rgba(243, 182, 48, .5), 0 18px 40px rgba(0, 0, 0, .45);
  margin: 7px;
}
.world__banner { position: relative; aspect-ratio: 720 / 305; background: #6d8a4a; }
.world__banner img { width: 100%; height: 100%; object-fit: cover; }
.world__banner::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(245, 233, 204, .9)); }
.pill {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: .45em; padding: .18em .85em; border-radius: 999px;
  font-size: .86rem; font-weight: 700; color: #fff; background: #6b5233; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill--open { background: #2f6b22; }
.pill--open::before { background: #9cf07f; box-shadow: 0 0 0 0 rgba(156, 240, 127, .7); animation: beat 2s infinite; }
.pill--soon { background: #e3a21a; color: #3b2406; }
.pill--ended { background: var(--crimson); }
.pill--down { background: #6e6a64; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(156, 240, 127, .7); } 70% { box-shadow: 0 0 0 8px rgba(156, 240, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(156, 240, 127, 0); } }
.seal {
  position: absolute; z-index: 1; bottom: -24px; inset-inline-end: 20px; width: 58px; height: 58px;
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #e0503f, #a3241b 55%, #6e130d 100%);
  color: var(--gold-hi); font: 800 1.65rem/1 var(--num); text-shadow: 0 1px 0 #4a0b06;
  box-shadow: 0 0 0 3px #f5e9cc, 0 0 0 4px #c29a5c, 0 6px 14px rgba(0, 0, 0, .35);
}
.world__body { padding: 16px 22px 22px; }
.world__title { font: 700 1.75rem/1.3 var(--display); color: var(--brown); }
.world__host { margin: 0; color: var(--muted); font-size: .92rem; }
.world__note { margin: 8px 0 0; padding: .3em .8em; border-radius: 8px; background: #fff3cf; border: 1px solid #e6c66f; font-weight: 600; font-size: .95rem; }
.world__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 12px; }
.world__facts div { text-align: center; padding: 8px 4px; border-radius: 10px; background: rgba(255, 255, 255, .5); border: 1px solid var(--edge-soft); }
.world__facts dt { font-size: .82rem; color: var(--muted); }
.world__facts dd { margin: 0; font-weight: 700; font-size: 1.12rem; line-height: 1.35; }
.world__facts small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.world__tribes { margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; }
.world__tribes span { color: var(--muted); margin-inline-end: 4px; }
.chip { display: inline-block; padding: .05em .75em; border-radius: 999px; background: #efe0bb; border: 1px solid #cfae6e; font-weight: 600; }
.world__actions { display: flex; gap: 10px; }
.world__actions .btn { flex: 1; }
.world--down .world__banner img, .world--ended .world__banner img { filter: grayscale(.6); }

/* What the game is. */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 34px; }
.feature { text-align: center; }
.feature img {
  width: min(100%, 290px); aspect-ratio: 1; margin: 0 auto 8px; object-fit: cover;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%); mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%);
}
.feature h3 { font: 700 1.7rem/1.35 var(--display); color: var(--brown); }
.feature p { margin: 8px auto 10px; max-width: 34ch; color: var(--muted); }
.more { color: var(--crimson); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(163, 36, 27, .35); }
.more::after { content: " ←"; }
[dir="ltr"] .more::after { content: " →"; }
.more:hover { border-bottom-color: currentColor; }

.steps__title { margin: 64px 0 22px; text-align: center; font: 700 clamp(1.7rem, 3vw, 2.2rem)/1.3 var(--display); color: var(--brown); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { position: relative; padding: 20px 20px 20px; padding-inline-start: 82px; border-radius: 14px; background: rgba(255, 255, 255, .45); border: 1px solid var(--edge-soft); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 18px; top: 20px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #e0503f, #a3241b 55%, #6e130d); color: var(--gold-hi); font: 800 1.35rem/1 var(--num);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--edge);
}
.steps b { display: block; font-size: 1.15rem; color: var(--brown); }
.steps span { color: var(--muted); font-size: 1rem; }

/* Tribes. */
.tribes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 260px)); justify-content: center; gap: 22px; }
.tribe {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 12px 18px;
  color: var(--cream); text-decoration: none; border-radius: var(--radius);
  background: linear-gradient(180deg, #3d2816, #24160b); border: 1px solid rgba(243, 182, 48, .3);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35); transition: transform .2s ease, border-color .2s ease;
}
.tribe:hover { transform: translateY(-4px); border-color: var(--gold); }
.tribe img { width: 100%; aspect-ratio: 235 / 246; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px rgba(243, 182, 48, .4); }
.tribe__name { margin-top: 10px; font: 700 1.65rem/1.3 var(--display); color: var(--gold-hi); }
.tribe__tag { color: var(--cream-2); font-size: .95rem; line-height: 1.5; min-height: 3em; }
.rates { display: grid; gap: 4px; width: 100%; margin-top: 10px; font-size: .86rem; }
.rate { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rate__label { color: var(--cream-2); }
.pips { display: inline-flex; gap: 3px; direction: ltr; }
[dir="rtl"] .pips { direction: rtl; }
.pips i { width: 16px; height: 7px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.pips i.on { background: linear-gradient(180deg, #ffe39a, #e09c17); }
.center { text-align: center; margin: 36px 0 0; }

/* News and FAQ. */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.chapters + .mini-head { margin-top: 44px; }
.mini-head { font: 700 clamp(1.7rem, 3vw, 2.1rem)/1.3 var(--display); color: var(--brown); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--edge-soft); }
.newslist { list-style: none; margin: 0 0 16px; padding: 0; }
.newslist a { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; text-decoration: none; color: var(--text); border-bottom: 1px dashed var(--edge-soft); }
.newslist time { color: var(--crimson); font-size: .88rem; font-weight: 700; }
.newslist b { font-size: 1.18rem; line-height: 1.5; }
.newslist span { color: var(--muted); font-size: .98rem; }
.newslist a:hover b { color: var(--crimson); }
.newslist--big a { padding: 22px 0; }
.newslist--big b { font: 700 1.6rem/1.4 var(--display); color: var(--brown); }
.faq { margin-bottom: 16px; }
.faq details { margin-bottom: 10px; border-radius: 12px; background: rgba(255, 255, 255, .45); border: 1px solid var(--edge-soft); }
.faq summary { position: relative; padding: 13px 18px; padding-inline-end: 44px; cursor: pointer; list-style: none; font-weight: 700; color: var(--brown); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 18px; top: 50%; transform: translateY(-50%); font: 700 1.4rem/1 var(--num); color: var(--gold-lo); }
.faq details[open] summary::after { content: "−"; }
.faq__a { padding: 0 18px 4px; color: var(--muted); }
.faq__a a { color: var(--crimson); }
.faq--full .faq__item { padding: 22px 0; border-bottom: 1px dashed var(--edge-soft); }
.faq--full h2 { font-size: 1.3rem; line-height: 1.5; color: var(--brown); margin-bottom: 6px; }
.faq--full .faq__a { padding: 0; color: var(--text); }

/* The call to action before the footer. */
.band {
  position: relative; padding: clamp(64px, 9vw, 110px) 20px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(28, 18, 10, .5), rgba(28, 18, 10, .88)), url("img/world3.webp") center 60% / cover;
  border-top: 1px solid rgba(243, 182, 48, .3);
}
.band__title {
  font: 900 clamp(2.1rem, 4.8vw, 3.3rem)/1.35 var(--display);
  background: linear-gradient(180deg, #fff1bf 10%, #f7c24b 55%, #d68f12 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
}
.band p { margin: 8px 0 24px; color: var(--cream); font-size: 1.15rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }

/* Inner pages: a darkened strip of the panorama. */
.pagehead {
  padding: clamp(40px, 6vw, 72px) 20px clamp(48px, 7vw, 84px);
  background: linear-gradient(180deg, rgba(24, 15, 8, .78), rgba(24, 15, 8, .9)), url("img/hero-960.webp") center 32% / cover;
  border-bottom: 1px solid rgba(243, 182, 48, .25);
}
.pagehead--tall { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.pagehead__in { max-width: 1180px; margin: 0 auto; }
.pagehead h1 {
  font: 900 clamp(1.9rem, 4.4vw, 3.1rem)/1.35 var(--display); max-width: 22ch;
  background: linear-gradient(180deg, #fff1bf 10%, #f7c24b 55%, #d68f12 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .55));
}
.pagehead--tall h1 { margin: 0 auto; }
.pagehead p { max-width: 720px; margin: 10px 0 0; color: var(--cream-2); font-size: 1.1rem; }
.pagehead--tall p { margin-inline: auto; }
.pagehead__kicker { color: var(--gold) !important; font-weight: 700; margin: 0 0 4px !important; }
.crumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; font-size: .92rem; color: var(--cream-2); }
.crumbs li + li::before { content: "/"; margin-inline: .55em; opacity: .55; }
.crumbs a { color: var(--cream); text-decoration: none; }
.crumbs a:hover { color: var(--gold-hi); }

.narrow { max-width: 820px; }
.reader { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: 84px; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .42); border: 1px solid var(--edge-soft); }
.toc h2 { font: 700 1.35rem/1.3 var(--display); color: var(--brown); margin-bottom: 8px; }
.toc ol { margin: 0; padding-inline-start: 1.2em; }
.toc li { margin: 4px 0; }
.toc li::marker { color: var(--gold-lo); font-weight: 700; }
.toc a { color: var(--text); text-decoration: none; font-size: .98rem; }
.toc a:hover { color: var(--crimson); }
.toc a[aria-current] { color: var(--crimson); font-weight: 700; }

.prose {
  max-width: 780px; padding: clamp(22px, 4vw, 48px); border-radius: var(--radius); color: var(--text);
  background: var(--paper-hi); border: 1px solid var(--edge-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 14px 34px rgba(80, 50, 10, .16);
  font-size: 1.08rem;
}
.prose::after { content: ""; display: block; clear: both; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font: 700 1.7rem/1.4 var(--display); color: var(--brown); margin: 1.3em 0 .35em; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--crimson); text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1em; padding-inline-start: 1.4em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--gold-lo); font-weight: 700; }
.prose strong { color: #4a230c; }
.prose .brief {
  display: flow-root; margin: 0 0 1.4em; padding: 14px 18px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--edge-soft); border-inline-start: 4px solid var(--gold-lo);
}
.prose .brief b { display: block; font: 700 1.05rem/1.4 var(--display); color: var(--brown); }
.prose .brief ul { margin: .3em 0 0; }
.prose__art {
  float: inline-end; width: min(42%, 270px); margin: 0 0 12px; margin-inline-start: 24px;
  -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 71%); mask-image: radial-gradient(circle, #000 58%, transparent 71%);
}
.prose .pic { margin: 0 0 1.4em; }
.prose .pic img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--edge-soft), 0 10px 24px rgba(80, 50, 10, .18); }
.prose--flat { padding: 0; background: none; border: 0; box-shadow: none; max-width: none; }
.pager { clear: both; display: flex; justify-content: space-between; gap: 14px; margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--edge-soft); }
.pager a { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--edge-soft); text-decoration: none; font-weight: 700; color: var(--brown); max-width: 48%; }
.pager a:hover { border-color: var(--crimson); color: var(--crimson); }
.pager small { color: var(--muted); font-weight: 400; }
.pager__next { margin-inline-start: auto; text-align: end; }

.chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.chapters a {
  height: 100%; display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: var(--radius);
  color: var(--text); text-decoration: none; background: var(--paper-hi); border: 1px solid var(--edge-soft);
  box-shadow: 0 8px 20px rgba(80, 50, 10, .1); transition: transform .2s ease, border-color .2s ease;
}
.chapters a:hover { transform: translateY(-3px); border-color: var(--crimson); }
.chapters__no { color: var(--crimson); font-weight: 700; font-size: .92rem; }
.chapters b { font: 700 1.5rem/1.4 var(--display); color: var(--brown); }
.chapters span:last-child { color: var(--muted); font-size: 1rem; }
/* A card's picture fills its top, edge to edge. */
.chapters__pic {
  display: block; width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  margin: -22px -24px 12px; border-bottom: 1px solid var(--edge-soft);
}
.chapters a { overflow: hidden; }
.chapters a:hover .chapters__pic { filter: saturate(1.12) brightness(1.04); }
.chapters--tribes { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.chapters--tribes b { font-size: 1.35rem; }
.chapters + .mini-head--link { margin-top: 44px; }
.mini-head--link { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; }
.mini-head--link h2 { font: inherit; color: inherit; margin: 0; }
.mini-head--link a { font: 700 1rem/1.4 var(--body); color: var(--crimson); }
.pagehead--guide { background-image: linear-gradient(180deg, rgba(24, 15, 8, .55), rgba(24, 15, 8, .88)), url("img/guide/guide-1536.webp"); background-position: center 45%; }

.tribe-full { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px dashed var(--edge-soft); scroll-margin-top: 90px; }
.tribe-full__intro { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
.tribe-full__intro img { border-radius: 14px; box-shadow: 0 0 0 1px var(--edge), 0 10px 24px rgba(80, 50, 10, .25); }
.tribe-full h2 { font: 700 clamp(2rem, 4vw, 2.6rem)/1.3 var(--display); color: var(--brown); }
.tribe-full__tag { margin: 0 0 8px; color: var(--crimson); font-weight: 700; }
.rates--row { grid-template-columns: repeat(2, max-content); gap: 6px 36px; margin-top: 4px; }
.rates--row .rate { justify-content: flex-start; }
.rates--row .rate__label { min-width: 7.5em; }
.sec--paper .rate__label { color: var(--muted); }
.sec--paper .pips i { background: rgba(110, 80, 40, .16); box-shadow: inset 0 0 0 1px rgba(110, 80, 40, .2); }
.sec--paper .pips i.on { background: linear-gradient(180deg, #d0352a, #8f1c14); box-shadow: none; }
.tablewrap { overflow-x: auto; margin-top: 22px; border-radius: 12px; border: 1px solid var(--edge); -webkit-overflow-scrolling: touch; }
.units { width: 100%; border-collapse: collapse; background: var(--paper-hi); font-size: .98rem; font-variant-numeric: tabular-nums; }
.units caption { caption-side: top; text-align: start; padding: 10px 14px; font-weight: 700; color: var(--brown); background: var(--paper-2); }
.units th, .units td { padding: 9px 12px; text-align: center; white-space: nowrap; border-bottom: 1px solid rgba(184, 138, 74, .32); }
.units thead th { background: var(--wood); color: var(--gold-hi); font-weight: 600; font-size: .9rem; }
.units th[scope="row"] { text-align: start; color: var(--brown); white-space: normal; min-width: 10em; }
.prose .units th, .prose .units td { padding: 8px; }
.prose .units thead th { white-space: normal; }
.units__role { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; font-size: .88rem; line-height: 1.45; }
.tribe-head { display: flow-root; margin-bottom: 1em; }
.tribe-head img { float: inline-end; width: 150px; height: auto; margin-block: 0 12px; margin-inline: 20px 0; border-radius: 12px; box-shadow: 0 0 0 1px var(--edge), 0 8px 18px rgba(80, 50, 10, .22); }
.tribe-full h2 a { color: inherit; text-decoration: none; }
.tribe-full h2 a:hover { color: var(--crimson); }
.units tbody tr:nth-child(even) { background: rgba(236, 219, 178, .45); }
.note { color: var(--muted); font-size: .95rem; }

/* Footer. */
.foot { background: #140c06; border-top: 1px solid rgba(243, 182, 48, .22); color: var(--cream-2); }
.foot__in { max-width: 1180px; margin: 0 auto; padding: 52px 20px 32px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot__brand img { width: 150px; margin-bottom: 8px; }
.foot__brand p { margin: 0; max-width: 32ch; }
.foot__col { display: flex; flex-direction: column; gap: 6px; }
.foot__col h2 { font-size: 1rem; color: var(--gold); margin-bottom: 4px; }
:lang(en) .foot__col h2 { text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; }
.foot__col a { text-decoration: none; color: var(--cream-2); width: fit-content; }
.foot__col a:hover, .foot__col a[aria-current] { color: var(--gold-hi); }
.foot__copy { margin: 0; padding: 18px 20px 26px; text-align: center; font-size: .9rem; border-top: 1px solid rgba(243, 182, 48, .12); }

@media (max-width: 960px) {
  .reader { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; order: 2; }
  .duo { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .bar__in { flex-wrap: wrap; row-gap: 4px; padding: 6px 14px 4px; }
  .bar__logo img { height: 40px; }
  .bar__nav { order: 3; width: calc(100% + 28px); margin: 0 -14px; padding: 0 8px 4px; overflow-x: auto; scrollbar-width: none; }
  .bar__nav::-webkit-scrollbar { display: none; }
  .bar__nav a { white-space: nowrap; font-size: .95rem; padding: 6px 10px; }
  .bar__play { padding: .38em .9em; }
  .hero { padding-top: 120px; min-height: 640px; }
  .hero__art img { object-position: 50% 40%; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  :lang(ar) body, body:lang(ar) { font-size: 1.06rem; }
  .sec { padding-inline: 16px; }
  .hero { padding-inline: 16px; }
  .hero__actions .btn { width: 100%; }
  .hero__stats li { flex: 1 1 40%; justify-content: center; flex-direction: column; align-items: center; gap: 0; padding: .4em .6em; }
  .worlds { grid-template-columns: minmax(0, 1fr); }
  .world { margin: 6px; }
  .world__body { padding: 14px 16px 18px; }
  .tribes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tribe { padding: 8px 8px 14px; }
  .tribe__name { font-size: 1.35rem; }
  .tribe__tag { font-size: .85rem; }
  .rate { font-size: .78rem; gap: 4px; }
  .pips i { width: 10px; }
  .tribe-full__intro { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
  .tribe-head img { width: 96px; margin-inline-start: 14px; }
  .rates--row { grid-template-columns: max-content; }
  .prose__art { float: none; width: 70%; margin: 0 auto 16px; }
  .pager { flex-direction: column; }
  .pager a { max-width: none; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
