/* Legend Of Silkroad — website look prototype (25 Nov 2026). Static, no framework.
   Layout and mood after the 2010-era Silkroad portal (parchment page, painted header art, three framed columns,
   heading plates, seal buttons, illustrated side banners). The header painting, the carousel strips and the side banners
   are the old site's own pictures at a higher resolution (art/hd), their words painted out; all text is live HTML. */

:root {
  --parch-0: #f1e8d6;
  --parch-1: #e6d9c0;
  --parch-2: #d8c7a6;
  --panel: #fbf6ec;
  --panel-2: #f4ecdc;
  --line: #ddcaa6;
  --line-2: #c9b085;
  --gold: #b8893a;
  --gold-hi: #e5c278;
  --gold-ink: #7d5a1e;
  --ink: #2a2018;
  --ink-2: #54443a;
  --muted: #75624d;
  --red: #b3361f;
  --red-hi: #d9572f;
  --red-ink: #a12d17;
  --rose: #9e2340;
  --slate: #15181d;
  --slate-2: #20252c;
  --cream: #f4e7c8;
  --hud-cream: #e8c984;
  --teal: #2f6f6a;
  --blue: #355a86;

  --f-display: "Cinzel", "Times New Roman", serif;
  --f-head: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Noto Sans", "Segoe UI", Tahoma, sans-serif;

  --wrap: 1220px;
  --gutter: 16px;
  --radius: 4px;
  --chamfer: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 30px -12px rgba(60, 40, 20, .35);
  --page: #ccc0aa;                       /* the old page colour: the header painting's flat ground */
  --shift: max(0px, 755px - 50vw);       /* the painting moves right on narrower screens so the logo keeps its fog */
}

:root[lang="ar"] {
  --f-display: "Amiri", "Noto Naskh Arabic", serif;
  --f-head: "Amiri", "Noto Naskh Arabic", serif;
  --f-body: "Noto Sans Arabic", "Noto Sans", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font: 400 16px/1.6 var(--f-body);
  color: var(--ink);
  background-color: var(--page);
  /* the old header painting with its sepia figures, at the size the old page showed it */
  background-image: url("img/hero-wrap-1x.webp");
  background-image: image-set(url("img/hero-wrap-1x.webp") 1x, url("img/hero-wrap-2x.webp") 2x);
  background-repeat: no-repeat;
  background-position: calc(50% + var(--shift)) 56px;
  background-size: 2007px auto;
  overflow-x: hidden;
}
:root[lang="ar"] body { line-height: 1.75; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--red-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; font-variant-numeric: lining-nums; }
.plate, .navgrp summary, .box h2 { font-variant-numeric: lining-nums; }
p { margin: 0 0 .8em; }
ul { margin: 0; padding: 0; list-style: none; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--slate); color: var(--cream); padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { top: 10px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Glyphs: our HUD menu glyphs (white, brush-worn) used as masks, tinted by `color`. */
.g {
  display: inline-block; flex: none;
  width: var(--gs, 22px); height: var(--gs, 22px);
  background: currentColor;
  -webkit-mask: var(--g) center / contain no-repeat;
          mask: var(--g) center / contain no-repeat;
}

/* ---------------------------------------------------------------- top bar (the HUD's slate + gold hairline) */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(#1d2128, var(--slate));
  border-bottom: 1px solid #000;
  box-shadow: 0 1px 0 rgba(229, 194, 120, .55), 0 6px 18px -6px rgba(0, 0, 0, .5);
  color: var(--cream);
}
.topbar__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 56px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--hud-cream); text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 7px; }
.brand span { font: 700 17px/1 var(--f-display); letter-spacing: .04em; }
:root[lang="ar"] .brand span { font-family: "Cinzel", serif; }
.topnav { display: flex; gap: 4px; margin-inline-start: auto; }
.topnav a { color: #d9ccb0; text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 6px 10px; border-radius: 3px; white-space: nowrap; }
.topnav a:hover { color: #fff; background: rgba(229, 194, 120, .12); }
.lang { display: flex; border: 1px solid rgba(229, 194, 120, .45); border-radius: 3px; overflow: hidden; flex: none; }
.lang a { color: #cdbf9f; text-decoration: none; font: 600 12.5px/1 var(--f-body); padding: 8px 9px; letter-spacing: .05em; }
.lang a + a { border-inline-start: 1px solid rgba(229, 194, 120, .3); }
.lang a[aria-current] { background: linear-gradient(#d8b569, #a97c31); color: #1b140b; }
.lang a:not([aria-current]):hover { color: #fff; background: rgba(229, 194, 120, .14); }
.menubtn { display: none; align-items: center; gap: 8px; background: none; border: 1px solid rgba(229, 194, 120, .45); color: var(--hud-cream); border-radius: 3px; padding: 7px 11px; font: 600 14px/1 var(--f-body); cursor: pointer; margin-inline-start: auto; }
.menubtn i { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }

/* ---------------------------------------------------------------- hero: the painting is the page background */
.hero { position: relative; height: 290px; }
.hero__logo { position: absolute; top: 4px; left: calc(50% - 743px + var(--shift)); width: 300px; margin: 0; }
.hero__logo img { width: 100%; filter: drop-shadow(0 3px 5px rgba(70, 45, 15, .45)); }
.hero__strip { display: none; }

/* ---------------------------------------------------------------- the gate: seals, account panel, carousel */
.gate { position: relative; z-index: 5; max-width: var(--wrap); margin: -146px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: 250px 330px minmax(0, 1fr); gap: 16px; align-items: end; }
.seals { position: relative; height: 262px; }
.seal {
  position: absolute; display: grid; place-items: center; text-align: center; text-decoration: none;
  background: var(--img) center / contain no-repeat;
  color: #fff6e2; filter: drop-shadow(0 8px 14px rgba(70, 30, 10, .45));
  transition: transform .18s ease, filter .18s ease;
}
.seal:hover { transform: scale(1.04) rotate(-2deg); color: #fff; filter: drop-shadow(0 10px 18px rgba(70, 30, 10, .55)) brightness(1.06); }
.seal span { display: block; max-width: 78%; font: 700 var(--fs, 21px)/1.25 var(--f-display); letter-spacing: .01em; text-shadow: 0 2px 3px rgba(70, 10, 0, .75); overflow-wrap: normal; word-break: keep-all; }
:root[lang="ar"] .seal span { font-size: calc(var(--fs, 21px) * 1.25); letter-spacing: 0; }
.seal small { display: block; margin-top: 5px; font: 600 11px/1.2 var(--f-body); letter-spacing: .06em; color: #ffe3b5; text-transform: uppercase; }
:root[lang="ar"] .seal small { text-transform: none; font-size: 12px; letter-spacing: 0; }
.seal--dl { --img: url("img/seal-red.webp"); --fs: 18px; width: 184px; height: 186px; inset-inline-end: 0; bottom: 0; }
.seal--su { --img: url("img/seal-rose.webp"); --fs: 15px; width: 128px; height: 129px; inset-inline-start: 0; top: 0; }
.seal--su span { max-width: 76%; }

.frame { /* a framed parchment panel: gold hairline, inner light line, chamfered look via corner marks */
  position: relative; background: var(--panel);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 3px rgba(251, 246, 236, .7), 0 0 0 4px rgba(184, 137, 58, .55);
}
.frame::before, .frame::after { /* gold corner brackets */
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border: 2px solid var(--gold); opacity: .9;
}
.frame::before { top: -5px; inset-inline-start: -5px; border-inline-end: 0; border-bottom: 0; }
.frame::after { bottom: -5px; inset-inline-end: -5px; border-inline-start: 0; border-top: 0; }

.acct { padding: 14px 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font: 600 12px/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--red-ink); background: #f6e3cf; border: 1px solid #e3bfa0; padding: 4px 9px; border-radius: 99px; }
:root[lang="ar"] .badge { text-transform: none; letter-spacing: 0; font-size: 13px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2e9b5a; box-shadow: 0 0 0 3px rgba(46, 155, 90, .2); }
.acct h2 { font: 700 22px/1.15 var(--f-head); color: var(--ink); }
.acct h2 em { font-style: normal; color: var(--red-ink); }
:root[lang="ar"] .acct h2 { font-size: 21px; line-height: 1.4; }
.acct p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.acct__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.acct__more { font-size: 13.5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px;
  font: 600 15px/1.2 var(--f-body); text-decoration: none; text-align: center; border-radius: 3px; cursor: pointer;
  border: 1px solid #7e1f0f; color: #fff7e6;
  background: linear-gradient(#d8582f, #ad3119 55%, #952812);
  box-shadow: 0 1px 0 rgba(255, 210, 160, .55) inset, 0 0 0 1px rgba(229, 194, 120, .7), 0 3px 8px -3px rgba(80, 20, 5, .6);
  text-shadow: 0 1px 1px rgba(60, 10, 0, .6);
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.btn--ghost { color: var(--ink); text-shadow: none; border-color: var(--line-2); background: linear-gradient(#fffaf0, #efe3cb); box-shadow: 0 1px 0 #fff inset, 0 2px 6px -3px rgba(80, 50, 20, .4); }
.btn--ghost:hover { color: var(--red-ink); }
.btn--slate { color: var(--hud-cream); text-shadow: none; border-color: #000; background: linear-gradient(#2a3038, var(--slate)); box-shadow: 0 0 0 1px rgba(229, 194, 120, .6), 0 3px 8px -3px rgba(0, 0, 0, .6); }
.btn--slate:hover { color: #fff; }
.btn .g { --gs: 18px; }

/* carousel: the old 604 x 104 strips; the caption sits on their dark band, on the picture's left in every language */
.slides { position: relative; aspect-ratio: 1208 / 208; border-radius: 3px; overflow: hidden; background: var(--slate);
  box-shadow: 0 0 0 1px #8a6424, 0 0 0 3px rgba(251, 246, 236, .85), 0 12px 24px -12px rgba(40, 20, 5, .6); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide__cap { position: absolute; left: 3.4%; top: 42%; bottom: 8%; width: 48%; display: flex; flex-direction: column; justify-content: center; color: #f6ead0; text-align: left; }
:root[dir="rtl"] .slide__cap { text-align: right; }
.slide__cap h3 { font: 700 clamp(15px, 1.55vw, 21px)/1.1 var(--f-display); letter-spacing: .03em; color: #f7e3b2; text-shadow: 0 1px 0 #3a1d08, 0 2px 5px rgba(0, 0, 0, .85); }
:root[lang="ar"] .slide__cap h3 { line-height: 1.35; letter-spacing: 0; }
.slide__cap p { margin: 2px 0 0; font-size: clamp(11.5px, 1vw, 13.5px); line-height: 1.3; color: #f1e6cf; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.slides__nav { position: absolute; top: 6px; left: 8px; display: flex; gap: 3px; z-index: 3; }
.slides__nav button {
  width: 19px; height: 18px; padding: 0; border-radius: 2px; cursor: pointer; font: 700 10.5px/1 var(--f-body); color: #4a2a12;
  background: linear-gradient(#fbf3e2, #e5d3b0); border: 1px solid #a98a5a;
}
.slides__nav button[aria-current="true"] { background: linear-gradient(#e2643a, #b0341a); color: #fff; border-color: #7e1f0f; }
.slides__nav .pp { width: 22px; margin-left: 4px; font-size: 8px; }

/* ---------------------------------------------------------------- the three framed columns */
.main { position: relative; max-width: var(--wrap); margin: 30px auto 0; padding: 0 var(--gutter); }

.cols { display: grid; grid-template-columns: 252px minmax(0, 1fr) 292px; padding: 0; }
.cols > * { min-width: 0; }
.col { padding: 22px 18px 28px; }
.col--c { border-inline: 1px solid var(--line); box-shadow: 1px 0 0 #fff inset, -1px 0 0 #fff inset; padding-inline: 22px; }

/* plates: the Codex title plate (lotus boss + cloud scroll) as a 3-slice frame */
.plate {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; margin: 0 0 14px;
  border-style: solid; border-width: 0 87px 0 56px; border-color: transparent;
  border-image: url("img/plate.webp") 0 175 0 112 fill / 0 87px 0 56px stretch;
  padding: 0 4px 2px 10px;
  font: 700 26px/1.1 var(--f-head); color: #5a3f22;
}
:root[dir="rtl"] .plate { border-image-source: url("img/plate-rtl.webp"); border-image-slice: 0 112 0 175 fill; border-image-width: 0 56px 0 87px; border-width: 0 56px 0 87px; padding: 0 10px 2px 4px; }
:root[lang="ar"] .plate { font-size: 25px; line-height: 1.3; }
.plate .tag { margin-inline-start: auto; font: 700 11px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--rose); border-radius: 2px; padding: 5px 7px; white-space: nowrap; }
:root[lang="ar"] .plate .tag { text-transform: none; letter-spacing: 0; font-size: 12px; }

.block { margin-bottom: 30px; }
.block:last-child { margin-bottom: 0; }
.block__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; padding: 9px 12px; font-size: 14px; background: linear-gradient(90deg, var(--panel-2), rgba(244, 236, 220, 0)); border-top: 1px solid var(--line); }
:root[dir="rtl"] .block__foot { background: linear-gradient(-90deg, var(--panel-2), rgba(244, 236, 220, 0)); }
.arrow { display: inline-block; width: 7px; height: 7px; border-top: 2px solid currentColor; border-inline-end: 2px solid currentColor; transform: rotate(45deg); }
:root[dir="rtl"] .arrow { transform: rotate(-45deg); }
.lead { color: var(--ink-2); }
.note { font-size: 13.5px; color: var(--muted); }

/* news */
.feat-news { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 4px 2px 14px; border-bottom: 1px solid var(--line); }
.feat-news img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.feat-news h3 { font: 700 22px/1.2 var(--f-head); margin: 2px 0 6px; }
:root[lang="ar"] .feat-news h3 { line-height: 1.45; }
.feat-news h3 a { color: var(--ink); text-decoration: none; }
.feat-news h3 a:hover { color: var(--red-ink); }
.feat-news p { font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }
.news { counter-reset: n; }
.news li { display: grid; grid-template-columns: 136px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed var(--line-2); }
.news a { color: var(--ink); text-decoration: none; font-size: 15.5px; }
.news a:hover { color: var(--red-ink); text-decoration: underline; }
.cat { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1.2 var(--f-body); color: var(--c, var(--gold-ink)); padding: 4px 9px 4px 4px; border-radius: 99px; background: #fff; border: 1px solid color-mix(in srgb, var(--c, var(--gold)) 35%, white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; justify-self: start; max-width: 100%; }
.cat i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 60%, white), var(--c) 70%); flex: none; }
.cat .g { --gs: 13px; }
.cat--up { --c: #9a6a1c; } .cat--ev { --c: #b3361f; } .cat--mt { --c: #3e5f86; } .cat--cm { --c: #2f7a5a; } .cat--nt { --c: #7a4b8c; }
.date { font: 600 12.5px/1 var(--f-body); color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 10px; white-space: nowrap; letter-spacing: .04em; }

/* download rows */
.dl { display: grid; gap: 10px; }
.dlrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; background: linear-gradient(#fffdf7, var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 #fff inset; }
.dlrow__ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--hud-cream); background: radial-gradient(circle at 35% 30%, #39414c, var(--slate) 70%); box-shadow: 0 0 0 2px var(--gold), 0 0 0 4px #fff, 0 0 0 5px var(--line-2); }
.dlrow__ic svg { width: 26px; height: 26px; fill: currentColor; }
.dlrow h3 { font: 700 19px/1.2 var(--f-head); }
:root[lang="ar"] .dlrow h3 { font-size: 20px; line-height: 1.4; }
.dlrow p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.dlrow__act { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.dlrow__act .btn { min-width: 200px; }
.dlrow__act a.sub { font-size: 13px; text-align: center; }

/* about + features */
.about h3 { font: 700 24px/1.2 var(--f-head); color: var(--ink); margin: 2px 0 8px; }
:root[lang="ar"] .about h3 { line-height: 1.45; }
.about p { color: var(--ink-2); }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.feat { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 12px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); }
.medal { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff4dc; background: radial-gradient(circle at 35% 30%, #e0603a, #a32b14 70%); box-shadow: 0 0 0 2px #e2bd6e, 0 0 0 3px #8a6424, 0 3px 8px rgba(80, 20, 5, .4); }
.medal .g { --gs: 30px; }
.feat h4 { font: 700 18.5px/1.2 var(--f-head); margin: 2px 0 3px; }
:root[lang="ar"] .feat h4 { font-size: 19px; line-height: 1.4; }
.feat p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.5; }

/* community cards */
.comm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ccard { padding: 16px 16px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-2); display: flex; flex-direction: column; gap: 8px; }
.ccard h3 { display: flex; align-items: center; gap: 10px; font: 700 20px/1.2 var(--f-head); }
:root[lang="ar"] .ccard h3 { line-height: 1.45; }
.ccard h3 .medal { width: 40px; height: 40px; }
.ccard h3 .medal .g { --gs: 24px; }
.ccard p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.ticks li { position: relative; padding-inline-start: 20px; font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .55em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-2); }
.ccard .btn { margin-top: 4px; align-self: flex-start; }

/* left column: accordion nav on the plain plate */
.navgrp { margin-bottom: 8px; }
.navgrp summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; min-height: 46px;
  border-style: solid; border-width: 0 44px 0 6px; border-color: transparent;
  border-image: url("img/plate-plain.webp") 0 114 0 12 fill / 0 44px 0 6px stretch;
  padding: 0 2px 2px 8px; font: 700 21px/1.15 var(--f-head); color: #5a3f22; user-select: none;
}
:root[dir="rtl"] .navgrp summary { border-image-source: url("img/plate-plain-rtl.webp"); border-image-slice: 0 12 0 114 fill; border-image-width: 0 6px 0 44px; border-width: 0 6px 0 44px; padding: 0 8px 2px 2px; }
:root[lang="ar"] .navgrp summary { font-size: 20px; line-height: 1.4; }
.gnav .navgrp summary { font-size: 18px; white-space: nowrap; }
:root[lang="ar"] .gnav .navgrp summary { font-size: 18px; }
.navgrp summary::-webkit-details-marker { display: none; }
.navgrp summary .g { --gs: 22px; color: var(--red); }
.navgrp summary::after { content: "+"; margin-inline-start: auto; display: grid; place-items: center; width: 18px; height: 18px; flex: none; font: 700 14px/1 var(--f-body); color: var(--gold-ink); border: 1px solid var(--line-2); border-radius: 3px; background: #fffaf0; }
.navgrp[open] summary::after { content: "\2212"; }
.navgrp summary:hover { color: var(--red-ink); }
.navgrp ul { padding: 6px 0 8px; }
.navgrp li a { display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 14px; color: var(--ink-2); text-decoration: none; font-size: 15px; border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, var(--line-2), rgba(201, 176, 133, 0)) 1; border-image-width: 0 0 1px 0; }
:root[dir="rtl"] .navgrp li a { padding: 6px 14px 6px 10px; border-image: linear-gradient(-90deg, var(--line-2), rgba(201, 176, 133, 0)) 1; border-image-width: 0 0 1px 0; }
.navgrp li a::before { content: ""; width: 6px; height: 6px; flex: none; transform: rotate(45deg); background: var(--line-2); }
.navgrp li a:hover { color: var(--red-ink); background: linear-gradient(90deg, rgba(217, 87, 47, .09), rgba(217, 87, 47, 0)); }
.navgrp li a:hover::before { background: var(--red-hi); }

.box { margin-top: 22px; }
.box h2 { font: 700 21px/1.2 var(--f-head); color: #5a3f22; display: flex; align-items: center; gap: 10px; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line-2); }
:root[lang="ar"] .box h2 { line-height: 1.45; }
.box h2::after { content: ""; flex: 1; height: 7px; background: radial-gradient(circle, var(--gold) 2px, transparent 2.5px) 0 50% / 12px 7px repeat-x; opacity: .55; }
.plat li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; border-bottom: 1px dashed var(--line); }
.plat svg { width: 20px; height: 20px; fill: var(--ink-2); flex: none; }
.plat li:last-child { border-bottom: 0; }
.plat .note { margin-top: 6px; }

/* right column: illustrated banners */
.banners { display: grid; gap: 10px; }
.banner {
  position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  aspect-ratio: 640 / 217; padding: 4.5% 6% 0; text-decoration: none; color: #f8ecd2; overflow: hidden; border-radius: 4px; isolation: isolate;
  box-shadow: 0 0 0 1px #8a6424, 0 8px 16px -8px rgba(50, 25, 5, .55);
}
:root[dir="rtl"] .banner { align-items: flex-end; text-align: right; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center / 100% 100% no-repeat; transition: transform .35s ease; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(75% 95% at 0% 0%, rgba(14, 10, 6, .55), rgba(14, 10, 6, 0) 70%); }
.banner:hover { color: #fff; }
.banner:hover::before { transform: scale(1.04); }
.banner b { font: 700 19px/1.1 var(--f-display); letter-spacing: .03em; color: #fbecc4; text-shadow: 0 1px 0 #3a1d08, 0 2px 4px rgba(0, 0, 0, .85); max-width: 66%; }
:root[lang="ar"] .banner b { font-size: 20px; line-height: 1.35; letter-spacing: 0; }
/* like the old banners, only the title is painted on the picture (the line under it is the link's label) */
.banner--signup { --img: url("img/ban-signup.webp"); }
.banner--download { --img: url("img/ban-download.webp"); }
.banner--chat { --img: url("img/ban-chat.webp"); }
.banner--support { --img: url("img/ban-support.webp"); }

.links li a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; text-decoration: none; color: var(--ink); font-size: 15px; border-bottom: 1px dashed var(--line); }
.links li:last-child a { border-bottom: 0; }
.links li a:hover { color: var(--red-ink); }
.links .medal { width: 32px; height: 32px; box-shadow: 0 0 0 1px #e2bd6e, 0 0 0 2px #8a6424; }
.links .medal .g { --gs: 19px; }
.links .medal--slate { background: radial-gradient(circle at 35% 30%, #39414c, var(--slate) 70%); color: var(--hud-cream); }
.links small { display: block; color: var(--muted); font-size: 12.5px; }
.mail { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- footer */
.foot { margin-top: 44px; background: linear-gradient(var(--slate-2), var(--slate)); color: #cfc2a5; border-top: 1px solid #000; box-shadow: 0 -1px 0 rgba(229, 194, 120, .55); position: relative; }
.foot::before { content: ""; position: absolute; top: -9px; left: 50%; width: 16px; height: 16px; transform: translateX(-50%) rotate(45deg); background: var(--slate-2); border: 1px solid rgba(229, 194, 120, .7); }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 30px var(--gutter) 26px; display: grid; grid-template-columns: 240px 1fr auto; gap: 26px; align-items: center; }
.foot__logo img { width: 220px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot nav a { color: #e2d5b8; text-decoration: none; font-size: 14.5px; }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.foot__contact { font-size: 14px; text-align: end; }
.foot__contact a { color: var(--hud-cream); }
.foot__copy { grid-column: 1 / -1; border-top: 1px solid rgba(229, 194, 120, .18); padding-top: 14px; font-size: 13px; color: #a39679; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------------------------------------------------------------- drawer (left column on narrower screens) */
.scrim { display: none; }

@media (max-width: 1199px) {
  .topnav { display: none; }
  .gate { grid-template-columns: 214px 300px minmax(0, 1fr); }
  .menubtn { display: inline-flex; }
  .cols { grid-template-columns: minmax(0, 1fr) 282px; }
  .col--l {
    position: fixed; z-index: 60; top: 0; bottom: 0; inset-inline-start: 0; width: min(320px, 86vw); overflow-y: auto;
    background: var(--panel); box-shadow: 0 0 40px rgba(0, 0, 0, .45); transform: translateX(-105%); transition: transform .25s ease;
    padding-top: 18px;
  }
  :root[dir="rtl"] .col--l { transform: translateX(105%); }
  body.drawer-open .col--l, :root[dir="rtl"] body.drawer-open .col--l { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 55; background: rgba(28, 29, 32, .62); }
  body.drawer-open .scrim { display: block; }
  .col--c { border-inline-start: 0; box-shadow: -1px 0 0 #fff inset; }
  :root[dir="rtl"] .col--c { box-shadow: 1px 0 0 #fff inset; }
  .drawer-close { display: flex !important; }
  .seal--dl { width: 168px; height: 170px; --fs: 17px; }
}
.drawer-close { display: none; justify-content: flex-end; margin: -6px 0 8px; }
.drawer-close button { background: none; border: 1px solid var(--line-2); border-radius: 3px; padding: 6px 12px; font: 600 14px/1 var(--f-body); color: var(--ink-2); cursor: pointer; }

@media (max-width: 1023px) {
  /* tablets and phones: the painting's colour part as a picture under the logo, the page plain */
  body { background-image: none; }
  .hero { height: auto; padding: 12px var(--gutter) 0; }
  .hero__logo { position: relative; left: auto; top: auto; width: min(300px, 72vw); margin: 0 auto 6px; }
  .hero__strip { display: block; width: 100%; max-width: 980px; margin: 0 auto;
    /* soft on all sides: the sides fade, the foot fades into the page */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(#000 62%, transparent);
    -webkit-mask-composite: source-in; mask-composite: intersect;
            mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(#000 62%, transparent); }
  .gate { grid-template-columns: 210px minmax(0, 1fr); margin-top: -64px; }
  .slides { grid-column: 1 / -1; }
}

@media (max-width: 859px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .col--c { border-inline: 0; box-shadow: none; padding-inline: 16px; }
  .col--r { border-top: 1px solid var(--line); }
  .banners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__in { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .foot nav { justify-content: center; }
  .foot__contact { text-align: center; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .topbar__in { height: 52px; gap: 10px; }
  .brand span { font-size: 15px; }
  .lang a { font-size: 12px; }
  .brand img { width: 30px; height: 30px; }
  .hero { padding-top: 10px; }
  .gate { grid-template-columns: minmax(0, 1fr); margin-top: -30px; gap: 14px; }
  .seals { height: 150px; display: flex; justify-content: center; align-items: center; gap: 6px; }
  .seal { position: relative; inset: auto !important; }
  .seal--dl { width: 150px; height: 152px; --fs: 15px; }
  .seal--su { width: 118px; height: 119px; --fs: 13.5px; }
  .seal small { font-size: 10px; }
  .acct { padding: 14px 16px; }
  /* the strip is too low for words on a phone: the caption goes under the picture */
  .slides { aspect-ratio: auto; height: calc((100vw - 2 * var(--gutter)) * 208 / 1208 + 62px); }
  .slide img { height: auto; aspect-ratio: 1208 / 208; }
  .slide__cap, :root[dir="rtl"] .slide__cap { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 62px; padding: 6px 12px; background: #1d140d; text-align: start; }
  .slide__cap h3 { font-size: 16px; }
  .slide__cap p { font-size: 12.5px; }
  .main { margin-top: 26px; padding: 0 10px; }
  .col { padding: 18px 12px 22px; }
  .col--c { padding-inline: 12px; }
  .plate { font-size: 22px; min-height: 48px; border-width: 0 74px 0 48px; border-image-width: 0 74px 0 48px; }
  :root[dir="rtl"] .plate { border-width: 0 48px 0 74px; border-image-width: 0 48px 0 74px; }
  :root[lang="ar"] .plate { font-size: 22px; }
  .plate .tag { font-size: 10px; padding: 4px 5px; }
  .feat-news { grid-template-columns: minmax(0, 1fr); }
  .feat-news img { aspect-ratio: 2.4 / 1; }
  .block__foot .note { margin-inline-start: 0 !important; flex-basis: 100%; }
  .news li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .news li .cat { grid-column: 1 / -1; }
  .news li a { grid-column: 1; }
  .dlrow { grid-template-columns: 48px minmax(0, 1fr); padding: 12px; }
  .dlrow__ic { width: 48px; height: 48px; }
  .dlrow__act { grid-column: 1 / -1; }
  .dlrow__act .btn { min-width: 0; width: 100%; }
  .feats, .comm { grid-template-columns: minmax(0, 1fr); }
  .banners { grid-template-columns: minmax(0, 1fr); }
  .lang a { padding: 8px 7px; }
}

@media (max-width: 520px) {
  .brand span { display: none; }
}

/* how to start (left) and artwork (right) */
.steps { counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 6px 0 8px; padding-inline-start: 40px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.steps li::before {
  content: counter(st); position: absolute; inset-inline-start: 0; top: 4px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font: 700 15px/1 var(--f-head); color: #fff4dc;
  background: radial-gradient(circle at 35% 30%, #e0603a, #a32b14 70%); box-shadow: 0 0 0 1px #e2bd6e, 0 0 0 2px #8a6424;
}
.steps li + li { border-top: 1px dashed var(--line); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 3px #fff, 0 0 0 4px var(--line); }

/* Cormorant's default figures are old-style; headings use lining figures (after every `font` shorthand, which resets it). */
body :is(h1, h2, h3, h4, summary, .plate) { font-variant-numeric: lining-nums; }
.steps li::before { font-variant-numeric: lining-nums; }


/* ================================================================ website-next (25 Nov 2026): the live pages
   No inline style attributes anywhere (CSP style-src 'self'); everything the pages need is here. */
.svgdefs { position: absolute; width: 0; height: 0; overflow: hidden; }
ol.steps { list-style: none; margin: 0; padding: 0; }
.steps a { color: inherit; }
.steps a:hover { color: var(--red-ink); }
.about__sub { margin-top: 18px !important; }
.news__t { color: var(--ink); font-size: 15.5px; min-width: 0; }
.block__foot .note { margin: 0; }
.topnav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--gold-hi); }
.navgrp li a[aria-current="page"] { color: var(--red-ink); font-weight: 600; }
.navgrp li a[aria-current="page"]::before { background: var(--red-hi); }
.callout { margin: 12px 0; padding: 10px 14px; font-size: 14.5px; color: var(--ink-2); background: #fbf3e3; border: 1px solid var(--line); border-inline-start: 3px solid var(--gold); border-radius: 3px; }
.tag { display: inline-block; margin-inline-start: 10px; font: 700 11px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--rose); border-radius: 2px; padding: 5px 7px; white-space: nowrap; vertical-align: middle; }
:root[lang="ar"] .tag { text-transform: none; letter-spacing: 0; font-size: 12px; }

/* sub pages: a shorter header, two columns (menu + content) */
.hero--sub { height: 196px; }
.hero--sub .hero__logo { display: block; }
.main--sub { margin-top: 0; }
.cols--sub { grid-template-columns: 252px minmax(0, 1fr); }
.cols--sub .col--c { border-inline-end: 0; box-shadow: 1px 0 0 #fff inset; padding-bottom: 34px; }
:root[dir="rtl"] .cols--sub .col--c { box-shadow: -1px 0 0 #fff inset; }
.cols--sub .col--c > .plate:first-child, .guide > .plate { margin-bottom: 10px; }
h1.plate { font-size: 28px; }

/* downloads: a button is live once its file is published (the /dl-status probe), as on the live site */
.dl__label { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.dl__label small { font: 600 11.5px/1.2 var(--f-body); opacity: .92; }
.dl__soon, .dl__ver:empty { display: none; }
.dlrow[data-state="soon"] .dl__soon { display: block; }
.dlrow[data-state="soon"] .dl__ver { display: none; }
.dash__head h2:focus { outline: none; }
.dlrow[data-state="soon"] .dl__btn { filter: grayscale(.75); opacity: .72; cursor: not-allowed; transform: none; }

/* forms */
.form { display: grid; gap: 12px; max-width: 520px; }
.form h2 { font: 700 23px/1.2 var(--f-head); color: var(--ink); }
.form h4 { font: 700 19px/1.25 var(--f-head); color: var(--ink); }
:root[lang="ar"] .form h2, :root[lang="ar"] .form h4 { line-height: 1.45; }
.form .note { margin: 0; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.field input {
  width: 100%; min-height: 44px; padding: 9px 12px; font: 400 16px/1.3 var(--f-body); color: var(--ink);
  background: #fffdf8; border: 1px solid var(--line-2); border-radius: 3px; box-shadow: inset 0 1px 2px rgba(80, 50, 20, .12);
}
.field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.field__hint { font-size: 13px; color: var(--muted); line-height: 1.4; }
.code-input { letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.sent { font-weight: 400; color: var(--muted); }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; max-width: 100%; }
.form-msg { margin: 0; color: var(--red-ink); font-weight: 600; font-size: 14.5px; }
.form-msg:empty { display: none; }
.form-ok { margin: 0; padding: 9px 12px; color: #1d5a37; background: #e5f2e4; border: 1px solid #a9cfa6; border-radius: 3px; font-size: 14.5px; }
/* confirm on the right, cancel on its left, in every language (the owner's rule); the group sits at the reading end */
.acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
:root[dir="rtl"] .acts { flex-direction: row-reverse; justify-content: flex-start; }
.acts--start { justify-content: flex-start; }
:root[dir="rtl"] .acts--start { justify-content: flex-end; }
.form__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 14.5px; }
.done { display: grid; gap: 10px; max-width: 520px; padding: 14px 16px; background: #f1f6ea; border: 1px solid #c4d8b5; border-radius: var(--radius); }
.done h2, .done h4 { font: 700 22px/1.25 var(--f-head); color: #2c5a2a; }
.done p { margin: 0; }
.done:focus { outline: none; }

/* account: tabs */
.acc .lead { margin-bottom: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; border-bottom: 2px solid var(--line-2); }
.tabs button {
  flex: 0 1 auto; min-height: 44px; padding: 8px 16px; margin-bottom: -2px; cursor: pointer;
  font: 600 15px/1.2 var(--f-body); color: var(--ink-2); background: var(--panel-2);
  border: 1px solid var(--line); border-bottom: 2px solid var(--line-2); border-radius: 4px 4px 0 0;
}
.tabs button:hover { color: var(--red-ink); }
.tabs button[aria-selected="true"] { color: var(--red-ink); background: var(--panel); border-color: var(--line-2); border-bottom-color: var(--panel); }

/* account: dashboard */
.dash__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.dash__head h2 { font: 700 24px/1.25 var(--f-head); color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
/* account and character names are in the body font: the heading font's old-style digits make "01" read as "oı" */
#dashName { font: 700 .86em/1 var(--f-body); }
:root[lang="ar"] .dash__head h2 { line-height: 1.5; }
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; align-items: start; }
.card { min-width: 0; padding: 14px 16px 16px; background: linear-gradient(#fffdf7, var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 #fff inset; }
.card--wide { grid-column: 1 / -1; }
.card h3 { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font: 700 20px/1.25 var(--f-head); color: #5a3f22; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line-2); }
:root[lang="ar"] .card h3 { line-height: 1.45; }
.card h3 .g { --gs: 20px; color: var(--red); }
.card h3 .tag { margin-inline-start: auto; }
.card p { font-size: 14.5px; color: var(--ink-2); }
.card--soon p { margin: 0; }
.kv { margin: 0 0 12px; display: grid; gap: 8px; }
.kv > div { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); gap: 2px 12px; }
.kv dt { font-size: 14px; color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.kv dd small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.kv dd .pending { display: table; margin: 5px 0 3px; padding: 3px 8px; font-size: 12.5px; font-weight: 700; line-height: 1.35; color: #6b4a00; background: #fbefcf; border: 1px solid #e3c77d; border-radius: 3px; }
.bal { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bal > div { padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 3px; min-width: 0; }
.bal dt { font-size: 13.5px; color: var(--muted); }
.bal dd { margin: 2px 0 0; font: 700 25px/1.15 var(--f-head); color: var(--gold-ink); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.subflow { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.subflow .form, .subflow .done, .card .form { max-width: none; }

/* account: characters */
.chars { display: grid; gap: 10px; }
.char { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.char__race { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--f-display); color: #fff4dc; background: radial-gradient(circle at 35% 30%, #e0603a, #a32b14 70%); box-shadow: 0 0 0 2px #e2bd6e, 0 0 0 3px #8a6424; }
:root[lang="ar"] .char__race { font-family: "Cinzel", serif; }
.char__race--eu { background: radial-gradient(circle at 35% 30%, #5f86b3, #2c4c74 70%); }
.char__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.char__name { font: 700 17px/1.3 var(--f-body); color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.char__meta { font-size: 13.5px; color: var(--muted); }
.char__facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 14px; }
.char__facts > div { min-width: 0; }
.char__facts dt { font-size: 12.5px; color: var(--muted); }
.char__facts dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }

/* guide */
.gnav__home { margin: 0 0 10px; }
.gnav__home a { display: flex; align-items: center; gap: 9px; font: 700 22px/1.2 var(--f-head); color: #5a3f22; text-decoration: none; }
.gnav__home a .g { --gs: 22px; color: var(--red); }
.gnav__home a[aria-current="page"], .gnav__home a:hover { color: var(--red-ink); }
.gnav__back { margin-top: 16px; font-size: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.guide, .guide ~ .pager, .guide ~ .guide__help { max-width: 780px; }
.guide h2 { font: 700 23px/1.25 var(--f-head); color: #5a3f22; margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
:root[lang="ar"] .guide h2 { line-height: 1.5; }
.guide p { color: var(--ink-2); }
.glist { margin: 0 0 12px; padding: 0; }
.glist li { position: relative; padding-inline-start: 22px; margin: 5px 0; color: var(--ink-2); }
.glist--ul li::before { content: ""; position: absolute; inset-inline-start: 3px; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
ol.glist { list-style: none; counter-reset: gl; }
.glist--ol li { counter-increment: gl; padding-inline-start: 34px; }
.glist--ol li::before { content: counter(gl); position: absolute; inset-inline-start: 0; top: .1em; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--f-body); color: #fff4dc; background: radial-gradient(circle at 35% 30%, #e0603a, #a32b14 70%); }
.more { margin: 10px 0 4px; font-weight: 600; }
.more .arrow { margin-inline: 2px 3px; }
.gtable { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14.5px; background: #fff; }
.gtable th, .gtable td { padding: 8px 10px; border: 1px solid var(--line); text-align: start; vertical-align: top; color: var(--ink-2); }
.gtable thead th { background: var(--panel-2); color: #5a3f22; font-weight: 700; }
.gtable tbody th { color: var(--ink); white-space: nowrap; }
.cal { display: grid; gap: 12px; margin: 10px 0 14px; }
.cal h3 { font: 700 18px/1.3 var(--f-head); color: #5a3f22; margin-bottom: 6px; }
:root[lang="ar"] .cal h3 { line-height: 1.5; }
.cal ul { display: grid; gap: 2px; }
.cal li { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.cal li:last-child { border-bottom: 0; }
.cal time { font-weight: 700; color: var(--red-ink); font-variant-numeric: tabular-nums; }
.cal li small { display: block; font-size: 12.5px; color: var(--muted); }
.cal__daily { padding: 12px 14px; background: #fbf3e3; border: 1px solid var(--line-2); border-radius: var(--radius); }
.cal__days { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); gap: 10px; }
.cal__day { padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.qa { display: grid; gap: 8px; }
.qa details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.qa summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; font-weight: 600; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; margin-inline-start: auto; flex: none; font: 700 16px/1.2 var(--f-body); color: var(--gold-ink); }
.qa details[open] summary::after { content: "\2212"; }
.qa details[open] summary { border-bottom: 1px dashed var(--line); }
.qa details p { margin: 0; padding: 10px 14px 12px; color: var(--ink-2); }
/* The iOS setup guide: screenshots of the installer's window (2x pictures at their 1x size) and phone settings paths. */
.gshot { margin: 10px 0 16px; max-width: 440px; }
.gshot img { display: block; width: 100%; height: auto; background: #161616; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(60, 40, 15, .18); }
.gshot figcaption { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.gpath { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 6px 0 14px; padding: 8px 12px; list-style: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.gpath li { min-width: 0; overflow-wrap: anywhere; }
.gpath li + li::before { content: "\203A"; margin-inline: 8px; color: var(--gold-ink); font-weight: 700; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.pn { display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); text-decoration: none; color: var(--ink); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.pn small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.pn--next { text-align: end; }
.pn:hover { color: var(--red-ink); border-color: var(--line-2); }
.gcats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.gcat { padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; scroll-margin-top: 70px; }
.gcat h2 { display: flex; align-items: center; gap: 10px; font: 700 21px/1.25 var(--f-head); color: #5a3f22; margin-bottom: 8px; }
:root[lang="ar"] .gcat h2 { line-height: 1.5; }
.gcat h2 .medal { width: 36px; height: 36px; }
.gcat h2 .medal .g { --gs: 21px; }
.gcat li a { display: block; padding: 8px 2px; border-bottom: 1px dashed var(--line); text-decoration: none; color: var(--ink); }
.gcat li:last-child a { border-bottom: 0; }
.gcat li a b { display: block; color: var(--red-ink); }
.gcat li a span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.gcat li a:hover b { text-decoration: underline; }
.guide__help { margin-top: 18px; }

@media (max-width: 1199px) {
  .cols--sub { grid-template-columns: minmax(0, 1fr); }
  .cols--sub .col--c, :root[dir="rtl"] .cols--sub .col--c { border-inline: 0; box-shadow: none; }
}
@media (max-width: 1023px) {
  .hero--sub { height: auto; }
  .main--sub { margin-top: 10px; }
}
@media (max-width: 859px) {
  .gcats { grid-template-columns: minmax(0, 1fr); }
  .char__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  h1.plate { font-size: 23px; }
  /* phones: a guide title is too long for the painted scroll; it becomes a plain title over a gold rule */
  :root .guide h1.plate, :root[dir="rtl"] .guide h1.plate {
    display: block; min-height: 0; padding: 0 0 8px; border-width: 0 0 2px; border-style: solid; border-image: none;
    border-color: var(--line-2); font-size: 25px; line-height: 1.2;
  }
  :root[lang="ar"] .guide h1.plate { font-size: 24px; line-height: 1.45; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 12px; }
  .kv > div { grid-template-columns: minmax(0, 1fr); }
  .tabs button { flex: 1 1 auto; padding: 8px 10px; font-size: 14px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .gtable thead { display: none; }
  .gtable, .gtable tbody, .gtable tr, .gtable th, .gtable td { display: block; width: 100%; }
  .gtable tr { border: 1px solid var(--line); border-radius: 3px; margin-bottom: 8px; }
  .gtable th, .gtable td { border: 0; padding: 5px 10px; }
  .gtable tbody th { background: var(--panel-2); white-space: normal; }
  .gtable td::before { content: attr(data-th); display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
}
@media (max-width: 520px) {
  /* phones: the facts take the card's whole width under the name, two short ones side by side */
  .char { grid-template-columns: 38px minmax(0, 1fr); align-items: center; }
  .char__race { grid-row: auto; width: 38px; height: 38px; font-size: 13px; }
  .char__facts { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .char__facts > div:nth-child(-n+2) { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .bal dd { font-size: 22px; }
}

/* ================================================================ play-los.net (25 Nov 2026)
   The hidden attribute wins over every display rule (.done, .form and .pending set display, so hidden panels showed:
   the register tab showed "Your account is ready!" under its form). */
[hidden] { display: none !important; }

/* PARITY_20261125 (tools/build_pages.py): what the live site had. The live chat widget, the community section's second card. */
.chatw { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(#fffdf7, var(--panel-2)); box-shadow: 0 1px 0 #fff inset; }
.chatw__brand { display: flex; align-items: center; gap: 10px; min-width: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.chatw__brand:hover { color: var(--red-ink); }
.chatw__brand img { width: 34px; height: 34px; border-radius: 7px; flex: none; }
.chatw__id { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.chatw__id strong { font: 700 18px/1.25 var(--f-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatw__id small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.chatw__live { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 3px 8px; border-radius: 99px; font: 700 11px/1.3 var(--f-body); letter-spacing: .08em; color: #1d5a37; background: #e5f2e4; border: 1px solid #a9cfa6; }
.chatw__live i { width: 7px; height: 7px; border-radius: 50%; background: #2e9b5a; box-shadow: 0 0 0 3px rgba(46, 155, 90, .2); }
.chatw h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; font: 700 11.5px/1.3 var(--f-body); letter-spacing: .1em; color: var(--muted); }
.chatw h3 span + span { letter-spacing: 0; font-size: 12.5px; color: var(--ink-2); }
:root[lang="ar"] .chatw h3, :root[lang="ar"] .chatw__live { letter-spacing: 0; font-size: 12.5px; }
.chatw__channels nav { display: flex; flex-direction: column; gap: 1px; max-height: 214px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.chatw__ch { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 34px; padding: 6px 8px; border-radius: 3px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.chatw__ch:hover { color: var(--red-ink); background: linear-gradient(90deg, rgba(217, 87, 47, .09), rgba(217, 87, 47, 0)); }
:root[dir="rtl"] .chatw__ch:hover { background: linear-gradient(-90deg, rgba(217, 87, 47, .09), rgba(217, 87, 47, 0)); }
.chatw__hash { color: var(--gold-ink); font-weight: 700; }
.chatw__name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatw__time { flex: none; font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.chatw__online { padding-top: 8px; border-top: 1px dashed var(--line-2); }
.chatw__online h3 { margin: 0; }
.chatw__online h3 span + span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #1d5a37; }
.chatw__online h3 span + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2e9b5a; }
.chatw__activity { margin: 0; font-size: 12.5px; color: var(--muted); }
.chatw__activity:empty { display: none; }
.chatw__join { align-self: stretch; }
.chatw__arrow { font-size: 16px; line-height: 1; }
.chatw[data-state="loading"] .chatw__channels nav { min-height: 96px; border-radius: 3px; background: linear-gradient(90deg, rgba(221, 202, 166, 0), rgba(221, 202, 166, .5), rgba(221, 202, 166, 0)) 0 0 / 200% 100%; animation: chatw-wait 1.4s linear infinite; }
@keyframes chatw-wait { to { background-position: -200% 0; } }
.chatw[data-state="soon"] .chatw__live { color: var(--muted); background: var(--panel-2); border-color: var(--line); }
.chatw[data-state="soon"] .chatw__live i { background: var(--line-2); box-shadow: none; }
.chatw[data-state="soon"] .chatw__channels, .chatw[data-state="soon"] .chatw__online, .chatw[data-state="soon"] .chatw__activity { display: none; }

/* the SHA-256 of a published download (from SHA256SUMS.txt), under its note */
.dlrow .dl__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin-top: 6px; font-size: 11.5px; line-height: 1.4; }
.dl__sum span { font-weight: 700; letter-spacing: .06em; color: var(--ink-2); }
.dl__sum code { min-width: 0; font: 500 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-2); word-break: break-all; unicode-bidi: isolate; }

/* the register form's show-password eye and strength meter */
.field__pw { position: relative; }
.field__pw input { padding-inline-end: 48px; }
.field__eye { position: absolute; inset-inline-end: 3px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 38px; padding: 0; border: 0; border-radius: 3px; background: none; color: var(--muted); cursor: pointer; }
.field__eye svg { width: 22px; height: 22px; }
.field__eye:hover, .field__eye[aria-pressed="true"] { color: var(--red-ink); background: rgba(217, 87, 47, .08); }
.meter { height: 4px; margin-top: 2px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter span { display: block; width: 0; height: 100%; border-radius: 4px; background: var(--red); transition: width .25s ease, background-color .25s ease; }
.meter[data-score="0"] span { width: 10%; }
.meter[data-score="1"] span { width: 20%; }
.meter[data-score="2"] span { width: 40%; background: #c9702a; }
.meter[data-score="3"] span { width: 60%; background: var(--gold); }
.meter[data-score="4"] span { width: 80%; background: #2e9b5a; }
.meter[data-score="5"] span { width: 100%; background: #2e9b5a; }

/* the live site's partner link (elitepvpers), its own row in the footer */
.foot__partners { grid-column: 1 / -1; margin: 0; display: flex; justify-content: center; }
.foot__partners a { display: block; max-width: 100%; opacity: .92; }
.foot__partners a:hover { opacity: 1; }
.foot__partners img { width: 290px; max-width: 100%; height: auto; }
