/* Plotwick Games website (2026-11-16). Layout: the game's title screen as the opening (the Grand Hall at night, the logo,
   four suspects pinned up as polaroids and a case-file menu), then typed case papers laid on a manila desk. */
:root {
  --desk: #d9c391;
  --desk-edge: #c4a96f;
  --paper: #fffcf3;
  --ink: #2b211c;
  --ink-soft: #5d5247;
  --rule: #e6d8bb;
  --stamp: #922016;
  --note: #f6eed9;
  --kraft: #e3cb94;
  --kraft-edge: #b08e52;
  --btn: #fbf1dc;
  --btn-ink: #2b211c;
  --btn-edge: #2b211c;
  --red: #c4262e;
  --red-deep: #85171d;
  --tag: #fff6df;
  --shadow: rgba(52, 36, 10, 0.5);
  /* the opening and the bars are always night-time, in both themes */
  --night: #221830;
  --night-2: #33254a;
  --cream: #fff5e0;
  --gold: #ffcc4d;
  --logo-edge: #2a1d2e;
  --hero-stamp: #ff5d4f;
  --polaroid: #fbfaf5;
  --polaroid-ink: #3a332b;

  --display: "Lilita One", "Baloo Bhaijaan 2", "Arial Black", "Helvetica Neue", sans-serif;
  --display-ar: "Baloo Bhaijaan 2", "Cairo", "Segoe UI", Tahoma, sans-serif;
  --body: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  --typed: "Special Elite", "Courier New", ui-monospace, monospace;
  --wide: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --desk: #1a1711; --desk-edge: #0f0d09; --paper: #26221b; --ink: #efe6d3; --ink-soft: #b3a892; --rule: #3d372c;
    --stamp: #ef6a58; --note: #2e2a21; --kraft: #3b3223; --kraft-edge: #5c4b30; --btn: #4a3f2c; --btn-ink: #fbf1dc;
    --btn-edge: #d7c193; --red: #cf3a35; --red-deep: #7a1519; --tag: #322c22; --shadow: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --desk: #1a1711; --desk-edge: #0f0d09; --paper: #26221b; --ink: #efe6d3; --ink-soft: #b3a892; --rule: #3d372c;
  --stamp: #ef6a58; --note: #2e2a21; --kraft: #3b3223; --kraft-edge: #5c4b30; --btn: #4a3f2c; --btn-ink: #fbf1dc;
  --btn-edge: #d7c193; --red: #cf3a35; --red-deep: #7a1519; --tag: #322c22; --shadow: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---- languages: every text is written twice; the page shows one ---- */
html:not([lang="ar"]) [data-l="ar"], html[lang="ar"] [data-l="en"] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-padding-top: 12px; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.85; }
img { max-width: 100%; height: auto; }
a { color: var(--stamp); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--hero-stamp); outline-offset: 2px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.wrap { max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 20; background: var(--cream); color: #2b211c; padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------------- top bar ---------------- */
.bar { background: var(--night); color: var(--cream); border-bottom: 1px solid rgba(255, 245, 224, 0.12); }
.bar .wrap { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--cream); text-decoration: none; direction: ltr; }
.brand .mk {
  font-family: var(--display); font-size: 17px; line-height: 1; color: var(--hero-stamp);
  border: 2.5px solid currentColor; border-radius: 5px; padding: 4px 6px 2px; transform: rotate(-5deg);
}
.brand .wd { font-family: var(--display); font-size: 23px; letter-spacing: 0.02em; line-height: 1; }
.menu { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-inline-start: auto; }
.menu a { color: var(--cream); text-decoration: none; font-weight: 700; font-size: 15.5px; opacity: 0.86; padding-block: 6px; }
.menu a:hover, .menu a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.langs { display: inline-flex; border: 1.5px solid rgba(255, 245, 224, 0.55); border-radius: 999px; overflow: hidden; }
.langs button {
  font: 700 14px/1 var(--body); color: var(--cream); background: transparent; border: 0; padding: 9px 14px;
  min-height: 38px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--cream); color: var(--night); }
@media (max-width: 680px) {
  .menu { order: 3; width: 100%; margin-inline-start: 0; gap: 2px 18px; }
  .langs { margin-inline-start: auto; }
}

/* ---------------- the opening ---------------- */
.hero {
  position: relative; isolation: isolate; color: var(--cream);
  background: var(--night) url("img/hall_m.jpg") center 40% / cover no-repeat;
}
@media (min-width: 900px) { .hero { background-image: url("img/hall.jpg"); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(23, 15, 35, 0.94) 0%, rgba(30, 21, 46, 0.8) 42%, rgba(34, 24, 52, 0.42) 100%);
}
html[lang="ar"] .hero::before {
  background: linear-gradient(260deg, rgba(23, 15, 35, 0.94) 0%, rgba(30, 21, 46, 0.8) 42%, rgba(34, 24, 52, 0.42) 100%);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px);
  align-items: center; padding-block: clamp(36px, 7vw, 84px) clamp(40px, 7vw, 88px);
}
@media (max-width: 880px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.title { position: relative; display: grid; gap: clamp(14px, 2.4vw, 22px); justify-items: start; min-width: 0; }
.logo {
  margin: 0; font-family: var(--display); font-weight: 400; direction: ltr;
  font-size: clamp(70px, 10.5vw, 142px); line-height: 0.84; letter-spacing: 0.012em;
  transform: rotate(-3deg); transform-origin: left bottom; padding-top: 0.08em;
}
html[lang="ar"] .title { justify-items: end; }
.logo span {
  display: block; -webkit-text-stroke: 0.085em var(--logo-edge); paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--logo-edge), 0 0.12em 0.2em rgba(0, 0, 0, 0.45);
}
.logo .l1 { color: var(--cream); }
.logo .l2 { color: var(--gold); padding-inline-start: 0.42em; }
.secret {
  position: absolute; z-index: 2; top: calc(clamp(70px, 10.5vw, 142px) * 0.02); inset-inline-start: calc(clamp(70px, 10.5vw, 142px) * 2.62);
  font-family: var(--display); font-size: clamp(18px, 2.6vw, 30px); letter-spacing: 0.06em; line-height: 1;
  color: var(--hero-stamp); border: 3.5px solid currentColor; border-radius: 6px; padding: 6px 12px 3px;
  transform: rotate(-8deg); opacity: 0.88; mix-blend-mode: screen; white-space: nowrap; pointer-events: none;
  -webkit-mask-image: repeating-radial-gradient(circle at 30% 40%, #000 0 2px, rgba(0, 0, 0, 0.72) 3px 4px);
          mask-image: repeating-radial-gradient(circle at 30% 40%, #000 0 2px, rgba(0, 0, 0, 0.72) 3px 4px);
}
html[lang="ar"] .secret { inset-inline-start: auto; inset-inline-end: calc(clamp(70px, 10.5vw, 142px) * 2.62); font-family: var(--display-ar); letter-spacing: 0; padding: 4px 14px 0; }
.motto {
  margin: 0; font-family: var(--typed); font-size: clamp(17px, 2vw, 22px); line-height: 1.45; max-width: 30ch;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
html[lang="ar"] .motto { font-family: var(--body); font-weight: 600; max-width: 34ch; }

/* the four suspects */
.suspects { list-style: none; margin: clamp(10px, 2vw, 20px) 0 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: clamp(10px, 1.8vw, 18px); }
.pol {
  --r: -3deg; width: clamp(108px, 11.2vw, 146px); background: var(--polaroid); padding: 9px 9px 0;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.45); transform: rotate(var(--r)); position: relative;
  transition: transform 0.25s ease;
}
.pol:nth-child(2) { --r: 2.5deg; margin-top: -8px; }
.pol:nth-child(3) { --r: -1.5deg; margin-top: 6px; }
.pol:nth-child(4) { --r: 3.5deg; margin-top: -4px; }
.pol::before {
  content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #ff9a92 0 18%, #d92a2f 42%, #7c1016 100%);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.45);
}
.pol .shot {
  aspect-ratio: 1 / 1.04; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  background-color: #9ba1aa;
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 15px, rgba(255, 255, 255, 0.3) 15px 16px),
    linear-gradient(#b0b5bd, #868c96);
}
.pol img { display: block; height: 94%; width: auto; max-width: none; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25)); }
.pol figcaption, .pol .who { display: block; text-align: center; font-family: var(--typed); color: var(--polaroid-ink); font-size: 15px; padding: 7px 0 9px; line-height: 1.2; }
html[lang="ar"] .pol .who { font-family: var(--body); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .pol:hover { transform: rotate(0deg) translateY(-4px); }
}
@media (max-width: 560px) {
  .suspects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; }
  .pol { width: auto; padding: 5px 5px 0; }
  .pol::before { width: 13px; height: 13px; margin-left: -6.5px; top: -7px; }
  .pol .shot { background-image: repeating-linear-gradient(to bottom, transparent 0 9px, rgba(255, 255, 255, 0.3) 9px 10px), linear-gradient(#b0b5bd, #868c96); }
  .pol .who { font-size: 11.5px; padding: 4px 0 6px; }
}

/* the case-file menu */
.casefile {
  position: relative; background: var(--kraft); color: var(--ink); border: 2px solid var(--kraft-edge);
  border-radius: 4px 10px 10px 10px; padding: clamp(20px, 2.6vw, 30px); margin-top: 30px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.5); min-width: 0;
  background-image: repeating-linear-gradient(110deg, transparent 0 7px, rgba(120, 90, 40, 0.07) 7px 8px);
}
html[lang="ar"] .casefile { border-radius: 10px 4px 10px 10px; }
.casefile .tab {
  position: absolute; top: -32px; inset-inline-start: -2px; background: var(--kraft); border: 2px solid var(--kraft-edge);
  border-bottom: 0; border-radius: 8px 8px 0 0; padding: 6px 16px 4px; font-family: var(--typed); font-size: 14px; letter-spacing: 0.08em;
}
html[lang="ar"] .casefile .tab { font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.casefile .op {
  margin: 0 0 18px; text-align: center; font-family: var(--typed); font-size: 15px; letter-spacing: 0.08em; color: var(--ink-soft);
  padding-bottom: 12px; border-bottom: 1.5px dashed var(--kraft-edge);
}
html[lang="ar"] .casefile .op { font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.menu-btns { display: grid; gap: 12px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; text-decoration: none;
  font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2.1vw, 25px); letter-spacing: 0.02em; line-height: 1.1;
  color: var(--btn-ink); background: var(--btn); border: 2.5px solid var(--btn-edge); border-radius: 9px;
  padding: 13px 18px 11px; box-shadow: 0 4px 0 var(--btn-edge); min-height: 56px; cursor: pointer;
}
html[lang="ar"] .btn { font-family: var(--display-ar); font-weight: 800; letter-spacing: 0; padding-block: 9px 9px; }
.btn.primary {
  background: var(--red); color: var(--cream); border-color: var(--red-deep);
  box-shadow: 0 4px 0 var(--red-deep), inset 0 0 0 3px rgba(255, 255, 255, 0.14); font-size: clamp(24px, 2.6vw, 31px); min-height: 66px;
}
.btn small { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: 0; opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform 0.08s ease, box-shadow 0.08s ease; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-edge); }
  .btn.primary:active { box-shadow: 0 1px 0 var(--red-deep); }
}
.status {
  margin: 16px 0 0; display: flex; align-items: center; gap: 12px; font-size: 14.5px; line-height: 1.45; color: var(--ink);
}
.status .dot { flex: none; font-family: var(--typed); font-size: 12px; letter-spacing: 0.1em; color: var(--stamp); border: 2px solid currentColor; border-radius: 4px; padding: 3px 7px 1px; transform: rotate(-4deg); }
html[lang="ar"] .status .dot { font-family: var(--body); font-weight: 800; letter-spacing: 0; }
.pricetag {
  position: absolute; top: -20px; inset-inline-end: 14px; transform: rotate(4deg);
  background: var(--cream); color: #2b211c; font-family: var(--typed); font-size: 13px; line-height: 1.2;
  padding: 7px 12px 5px 22px; border: 1.5px solid #8c6f3f; border-radius: 3px 12px 12px 3px; box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}
.pricetag::before { content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-radius: 50%; border: 1.5px solid #8c6f3f; }
html[lang="ar"] .pricetag { font-family: var(--body); font-weight: 700; padding: 6px 22px 4px 12px; border-radius: 12px 3px 3px 12px; transform: rotate(-4deg); }
html[lang="ar"] .pricetag::before { left: auto; right: 8px; }

/* ---------------- case papers on the desk ---------------- */
.desk {
  background-color: var(--desk);
  background-image: repeating-linear-gradient(115deg, transparent 0 6px, color-mix(in srgb, var(--desk-edge) 22%, transparent) 6px 7px);
}
.sec { padding-block: clamp(48px, 7.5vw, 96px); }
.sec + .sec { padding-top: 0; }
.head { display: grid; gap: 6px; max-width: 760px; margin-bottom: clamp(22px, 3.4vw, 36px); }
.eyebrow { margin: 0; font-family: var(--typed); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stamp); }
html[lang="ar"] .eyebrow { font-family: var(--body); font-weight: 800; letter-spacing: 0; font-size: 15px; }
h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5.2vw, 56px); line-height: 1.02; text-wrap: balance; }
html[lang="ar"] h2 { font-family: var(--display-ar); font-weight: 800; line-height: 1.3; }
h3 { text-wrap: balance; }
.lede { margin: 6px 0 0; font-size: clamp(17px, 1.6vw, 19px); max-width: 62ch; }
.sheet {
  background: var(--paper); border: 1.5px solid var(--desk-edge); border-radius: 5px;
  box-shadow: 0 16px 32px -20px var(--shadow); min-width: 0;
}

/* the heist, in order */
.job { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.8vw, 30px); }
@media (max-width: 760px) { .job { grid-template-columns: minmax(0, 1fr); } }
.job li { display: flex; flex-direction: column; overflow: hidden; }
.job figure { margin: 0; position: relative; }
.job img, .wide-shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #3a3342; }
.job figcaption, .wide-shot figcaption {
  position: absolute; bottom: 10px; inset-inline-start: 10px; background: rgba(23, 15, 35, 0.78); color: var(--cream);
  font-family: var(--typed); font-size: 12.5px; letter-spacing: 0.08em; padding: 4px 9px 2px; border-radius: 3px;
}
html[lang="ar"] .job figcaption, html[lang="ar"] .wide-shot figcaption { font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.job .txt { padding: 18px clamp(16px, 2.2vw, 24px) 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; align-items: start; border-top: 1.5px solid var(--desk-edge); }
.job .no {
  grid-row: span 2; width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center;
  font-family: var(--display); font-size: 25px; line-height: 1; padding-top: 2px;
}
.job h3 { margin: 4px 0 2px; font-family: var(--display); font-weight: 400; font-size: clamp(23px, 2.4vw, 28px); line-height: 1.1; }
html[lang="ar"] .job h3 { font-family: var(--display-ar); font-weight: 800; line-height: 1.35; }
.job p { margin: 0; color: var(--ink-soft); }

/* rivals and their tricks */
.rivals { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; margin-top: clamp(22px, 3vw, 34px); }
@media (max-width: 860px) { .rivals { grid-template-columns: minmax(0, 1fr); } }
.rivals .wide-shot { margin: 0; position: relative; height: 100%; }
.rivals .wide-shot img { height: 100%; min-height: 240px; }
.rivals .side { padding: clamp(20px, 3vw, 34px); display: grid; gap: 14px; align-content: start; }
.rivals h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.08; }
html[lang="ar"] .rivals h3 { font-family: var(--display-ar); font-weight: 800; line-height: 1.35; }
.rivals h4 { margin: 6px 0 2px; font-family: var(--typed); font-weight: 400; font-size: 13.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stamp); }
html[lang="ar"] .rivals h4 { font-family: var(--body); font-weight: 800; letter-spacing: 0; font-size: 14px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.tags li {
  position: relative; font-family: var(--typed); font-size: 14.5px; line-height: 1.25; background: var(--tag); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 3px 14px 14px 3px; padding: 6px 14px 4px 24px;
}
.tags li::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-radius: 50%; border: 1.5px solid var(--ink); }
html[lang="ar"] .tags li { font-family: var(--body); font-weight: 700; border-radius: 14px 3px 3px 14px; padding: 4px 24px 3px 14px; }
html[lang="ar"] .tags li::before { left: auto; right: 9px; }
.rivals p { margin: 0; color: var(--ink-soft); }

/* maps */
.maps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .maps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.maps li {
  --c: #7a5ea8; position: relative; background: var(--paper); border: 1.5px solid var(--desk-edge); border-radius: 5px;
  padding: 16px 16px 14px; display: grid; gap: 4px; align-content: start; box-shadow: 0 12px 22px -18px var(--shadow);
  border-top: 7px solid var(--c);
}
.maps .kind { font-family: var(--typed); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
html[lang="ar"] .maps .kind { font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.maps b { font-family: var(--display); font-weight: 400; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.08; }
html[lang="ar"] .maps b { font-family: var(--display-ar); font-weight: 800; line-height: 1.35; }
.maps-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.maps-shots img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 760px) { .maps-shots { grid-template-columns: minmax(0, 1fr); } }
.maps-shots .wide-shot { margin: 0; position: relative; overflow: hidden; }

/* modes */
.modes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .modes { grid-template-columns: minmax(0, 1fr); } }
.modes li { padding: 18px 18px 20px; display: grid; gap: 10px; align-content: start; }
.modes .label {
  justify-self: start; font-family: var(--display); font-size: 21px; line-height: 1.1; letter-spacing: 0.02em; color: var(--btn-ink);
  background: var(--btn); border: 2.5px solid var(--btn-edge); border-radius: 8px; padding: 9px 14px 7px; box-shadow: 0 3px 0 var(--btn-edge);
}
.modes li:first-child .label { background: var(--red); color: var(--cream); border-color: var(--red-deep); box-shadow: 0 3px 0 var(--red-deep); }
html[lang="ar"] .modes .label { font-family: var(--display-ar); font-weight: 800; letter-spacing: 0; padding-block: 5px 5px; }
.modes p { margin: 0; color: var(--ink-soft); }

/* wardrobe */
.closet { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden; }
@media (max-width: 860px) { .closet { grid-template-columns: minmax(0, 1fr); } }
.closet .wide-shot { margin: 0; position: relative; }
.closet .wide-shot img { height: 100%; }
.closet .side { padding: clamp(20px, 3vw, 36px); display: grid; gap: 14px; align-content: center; }
.closet p { margin: 0; }
.closet .fine { color: var(--ink-soft); }

/* fair play stamps */
.fair { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px clamp(18px, 3vw, 40px); }
.fair li {
  font-family: var(--display); font-size: clamp(19px, 2.2vw, 25px); line-height: 1.05; letter-spacing: 0.03em; color: var(--stamp);
  border: 3px solid currentColor; border-radius: 8px; padding: 10px 16px 7px; text-align: center; transform: rotate(var(--r, -3deg));
  background: color-mix(in srgb, var(--paper) 55%, transparent);
}
.fair li:nth-child(2) { --r: 2deg; } .fair li:nth-child(3) { --r: -1.5deg; } .fair li:nth-child(4) { --r: 3deg; }
html[lang="ar"] .fair li { font-family: var(--display-ar); font-weight: 800; letter-spacing: 0; padding-block: 6px 6px; }

/* support */
.help { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
@media (max-width: 860px) { .help { grid-template-columns: minmax(0, 1fr); } }
.faq { padding: clamp(10px, 2vw, 18px) clamp(18px, 3vw, 34px); }
.faq details { border-bottom: 1px dashed var(--rule); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: flex-start; gap: 14px; padding: 16px 0;
  font-weight: 700; font-size: 18px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center;
  font-family: var(--display); font-size: 19px; line-height: 1; margin-top: 1px;
}
.faq details[open] summary::before { content: "\2212"; background: var(--ink); color: var(--paper); }
.faq .ans { padding: 0 0 18px 42px; color: var(--ink-soft); max-width: 64ch; }
html[lang="ar"] .faq .ans { padding: 0 42px 18px 0; }
.faq .ans p { margin: 0 0 10px; }
.faq .ans p:last-child { margin-bottom: 0; }
.ui { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; color: var(--ink); white-space: nowrap; }
html[lang="ar"] .ui { font-family: var(--display-ar); font-weight: 800; letter-spacing: 0; }
.contact { padding: clamp(20px, 3vw, 30px); display: grid; gap: 12px; }
.contact h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; }
html[lang="ar"] .contact h3 { font-family: var(--display-ar); font-weight: 800; line-height: 1.35; }
.contact p { margin: 0; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.addr { font-family: var(--typed); font-size: clamp(15px, 3.6vw, 18px); user-select: all; word-break: break-all; direction: ltr; unicode-bidi: isolate; }
.copy {
  font: 700 14px/1 var(--body); color: var(--paper); background: var(--ink); border: 0; border-radius: 999px; padding: 11px 16px;
  min-height: 40px; cursor: pointer;
}
.copied { font-size: 14px; color: var(--ink-soft); }

/* studio */
.studio { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 30px); align-items: center; padding: clamp(20px, 3vw, 34px); }
@media (max-width: 600px) { .studio { grid-template-columns: minmax(0, 1fr); } }
.studio .seal {
  width: 108px; height: 108px; border-radius: 50%; border: 3px solid var(--stamp); color: var(--stamp); display: grid; place-items: center;
  font-family: var(--display); font-size: 26px; line-height: 0.92; text-align: center; transform: rotate(-8deg); direction: ltr;
}
.studio .seal small { display: block; font-family: var(--typed); font-size: 11px; letter-spacing: 0.14em; }
.studio h2 { margin-bottom: 10px; }
.studio p { margin: 0 0 8px; max-width: 64ch; }
.studio p:last-child { margin-bottom: 0; }

/* ---------------- footer ---------------- */
.foot { background: var(--night); color: rgba(255, 245, 224, 0.84); font-size: 15px; }
.foot .wrap { padding-block: 34px calc(30px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: minmax(0, 1fr); } }
.foot h4 { margin: 0 0 8px; font-family: var(--typed); font-weight: 400; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .foot h4 { font-family: var(--body); font-weight: 800; letter-spacing: 0; font-size: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--cream); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { margin: 8px 0 0; }
.foot .addr { font-size: 14.5px; }
html[lang="ar"] .foot .addr { text-align: right; }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 245, 224, 0.15); padding-top: 16px; font-size: 13px; color: rgba(255, 245, 224, 0.62); display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }

/* ---------------- privacy, terms and deletion (one typed sheet in a folder) ---------------- */
.doc { max-width: 860px; margin: 0 auto; padding-block: clamp(26px, 5vw, 56px) clamp(40px, 6vw, 72px); }
.doc .tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-inline-start: 18px; }
.doc .tabs a {
  font: 700 14px/1.2 var(--body); color: var(--ink); text-decoration: none; background: var(--kraft); border: 1.5px solid var(--desk-edge);
  border-bottom: 0; border-radius: 10px 10px 0 0; padding: 10px 16px 9px; position: relative; top: 1.5px;
}
.doc .tabs a:hover { background: var(--paper); }
.doc article { padding: clamp(22px, 5vw, 56px) clamp(18px, 5vw, 64px) clamp(28px, 5vw, 56px); line-height: 1.7; font-size: 16px; }
.doc article[lang="ar"] { font-size: 17px; line-height: 1.85; }
.doc .masthead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.doc .game { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 8vw, 58px); line-height: 0.95; letter-spacing: 0.01em; margin: 0; }
.doc .sub { font-weight: 700; font-size: 18px; margin: 10px 0 0; }
.doc .updated { font-family: var(--typed); font-size: 13px; color: var(--ink-soft); margin: 6px 0 0; letter-spacing: 0.04em; }
.doc .stamp {
  font-family: var(--typed); font-size: 15px; letter-spacing: 0.18em; color: var(--stamp); border: 2.5px solid var(--stamp);
  border-radius: 6px; padding: 6px 12px 4px; transform: rotate(-6deg); margin-top: 8px; white-space: nowrap; opacity: 0.9;
}
.doc [dir="rtl"] .stamp { transform: rotate(6deg); letter-spacing: 0; font-family: var(--display-ar); font-size: 18px; padding: 4px 14px; }
.doc .lead { font-size: 17.5px; margin: 22px 0 0; max-width: 66ch; }
.doc section { padding-top: 34px; scroll-margin-top: 16px; }
.doc section + section { border-top: 1px dashed var(--rule); margin-top: 34px; }
.doc .eyebrow { margin-bottom: 4px; font-size: 13px; }
.doc [dir="rtl"] .eyebrow { font-family: var(--body); font-weight: 700; letter-spacing: 0; font-size: 13px; }
.doc h2 { font-size: clamp(28px, 5vw, 36px); line-height: 1.1; margin: 0 0 14px; }
.doc [dir="rtl"] h2 { font-family: var(--display-ar); font-weight: 700; line-height: 1.3; }
.doc h3 { font-weight: 700; font-size: 18px; margin: 26px 0 8px; }
.doc p { margin: 0 0 12px; max-width: 68ch; }
.doc ul, .doc ol { margin: 0 0 12px; padding-inline-start: 22px; max-width: 68ch; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--stamp); }
.doc .note { background: var(--note); border-inline-start: 4px solid var(--stamp); padding: 14px 18px; margin: 14px 0; border-radius: 0 6px 6px 0; }
.doc [dir="rtl"] .note { border-radius: 6px 0 0 6px; }
.doc .note p:last-child, .doc .note ul:last-child { margin-bottom: 0; }
.doc .howto { counter-reset: s; list-style: none; padding-inline-start: 0; }
.doc .howto li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; margin-bottom: 12px; }
.doc .howto li::before {
  content: counter(s); font-family: var(--display); font-size: 20px; line-height: 34px; text-align: center; width: 34px; height: 34px;
  border-radius: 50%; border: 2px solid var(--ink); color: var(--ink);
}
.doc .mail { margin: 10px 0 14px; }
.doc footer { font-family: var(--typed); font-size: 13px; color: var(--ink-soft); margin-top: 40px; padding-top: 16px; border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
@media (max-width: 480px) { .doc .tabs a { padding: 9px 11px 8px; font-size: 13px; } .doc .stamp { display: none; } }

/* ---------------- room invite ---------------- */
.invite { min-height: 60vh; display: grid; place-items: center; padding-block: clamp(30px, 6vw, 70px); }
.invite .casefile { width: min(560px, 100%); margin-top: 34px; }
.invite h1 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 42px); line-height: 1.05; text-align: center; }
html[lang="ar"] .invite h1 { font-family: var(--display-ar); font-weight: 800; line-height: 1.35; }
.code {
  margin: 14px auto 6px; display: block; width: fit-content; max-width: 100%; direction: ltr; font-family: var(--typed); font-size: clamp(38px, 10vw, 58px);
  letter-spacing: 0.16em; line-height: 1.1; padding: 12px 20px 8px 28px; background: var(--paper); border: 2px dashed var(--kraft-edge); border-radius: 8px;
}
.invite .hint { text-align: center; margin: 0 0 18px; color: var(--ink-soft); font-size: 15.5px; }
.invite ol { margin: 18px 0 0; padding-inline-start: 22px; font-size: 15.5px; }
.invite ol li { margin-bottom: 6px; }
.invite .small { font-size: 14px; color: var(--ink-soft); text-align: center; margin: 14px 0 0; }

/* ---------------- missing page ---------------- */
.lost { min-height: 55vh; display: grid; place-items: center; text-align: center; padding-block: 60px; }
.lost h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 72px); line-height: 1; margin: 0 0 10px; }
html[lang="ar"] .lost h1 { font-family: var(--display-ar); font-weight: 800; line-height: 1.3; }
.lost p { margin: 0 0 22px; font-size: 18px; }
.lost .btn { display: inline-flex; }
