/* biome-ignore-all lint/style/noDescendingSpecificity: the rules are for different parts of the page, written section by section, and none of them meets another on one element */

/* playfooz.com in the look the owner chose (design/v2/site.html, "Diwaniya Arcade" in the colors of "Sticker Pop"),
   light and dark. Arabic first, right to left; the English pages set dir="ltr" and use the same rules through logical
   properties.

   SURFACES, one rule each
     ground   sky blue (dark #07212B): the only page background
     card     cream, black text: every summary card
     reading  white, black text: long text only (a post's body, the terms, the privacy statement)
     console  #111: the scoreboard cabinet and the question card
     band     black with cream text (dark: sky with black text): fair play only
     footer   black, cream text

   Text is black on sky, yellow, red-orange, peach, cream and white, never white on those. Depth is one solid bottom
   edge, never a blurred shadow. Answers are coded by color and by shape. Motion is springy and short, and every
   animation has a reduced version at the end of this file. */

/* The fonts are served by the show server (web/site.ts, files in web/fonts), never fetched from Google. Fredoka is
   Latin only, so a page in Arabic asks for it only for the Latin letters and spaces it shows. */
@font-face {
  font-family: "Alexandria";
  src: url("/site/fonts/Alexandria.ttf?v=3rdgajkcsm9g5") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("/site/fonts/Fredoka.ttf?v=1c9jbxyp74l51") format("truetype");
  font-weight: 300 700;
  font-stretch: 75% 125%;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Readex Pro";
  src: url("/site/fonts/ReadexPro.ttf?v=4249fihshtsh") format("truetype");
  font-weight: 160 700;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --sky: #04aad3;
  --sky-d: #03738f;
  --badge: #0d8ee0;
  --cream: #f9e7b3;
  --coal: #111;
  --yellow: #febd27;
  --yellow-d: #c4860a;
  --red: #e44417;
  --red-d: #a32c0a;
  --peach: #f6ae74;
  --peach-d: #c27a3f;

  --ground: var(--sky);
  --ink: #000;
  --ink-2: #06242e;
  --card: var(--cream);
  --on-card: #000;
  --on-card-2: #3a3320;
  --edge: #000;
  --focus: #000;
  --band: #000;
  --on-band: var(--cream);
  --band-edge: var(--yellow);
  --band-tag: var(--yellow);
  --on-band-tag: #000;
  --tag: #000;
  --on-tag: var(--cream);
  --cushion: repeating-linear-gradient(
    90deg,
    var(--red) 0 34px,
    var(--cream) 34px 46px,
    var(--yellow) 46px 52px,
    var(--cream) 52px 64px
  );

  --fd: "Fredoka", "Alexandria", system-ui, sans-serif;
  --fb: "Readex Pro", system-ui, sans-serif;
  --fs-h2: clamp(28px, 4vw, 48px);
  --fs-h3: clamp(20px, 2.2vw, 25px);
  --fs-body: 17px;
  --fs-sm: 14px;
  --fs-led: clamp(40px, 6.4vw, 76px);
  --r-card: 28px;
  --r-btn: 20px;
  --r-chip: 14px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

/* Dark follows the system, and a visitor's own choice (the theme button sets data-theme) wins over the system. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #07212b;
    --ink: var(--cream);
    --ink-2: #b9d3dc;
    --edge: var(--sky);
    --focus: var(--yellow);
    --band: var(--sky);
    --on-band: #000;
    --band-edge: #000;
    --band-tag: #000;
    --on-band-tag: var(--cream);
    --tag: var(--yellow);
    --on-tag: #000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #07212b;
  --ink: var(--cream);
  --ink-2: #b9d3dc;
  --edge: var(--sky);
  --focus: var(--yellow);
  --band: var(--sky);
  --on-band: #000;
  --band-edge: #000;
  --band-tag: #000;
  --on-band-tag: var(--cream);
  --tag: var(--yellow);
  --on-tag: #000;
  color-scheme: dark;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--fs-body) / 1.75 var(--fb);
  /* The footer stays at the bottom of a short page, such as the not-found page. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
h1,
h2,
h3,
p,
figure,
blockquote,
ol,
ul {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--fd);
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
}
a {
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
img {
  max-width: 100%;
}
[hidden] {
  /* biome-ignore lint/complexity/noImportantStyles: a hidden element stays hidden whatever display its class sets */
  display: none !important;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
/* The focus ring follows the surface it is drawn on: black on the ground in light and on cream and white, yellow on
   the dark ground, the console and the footer. */
.faq,
.toc,
.contact,
.prose {
  --focus: #000;
}
.qcard,
.foot {
  --focus: var(--yellow);
}
.faq summary:focus-visible {
  outline-offset: -5px;
}

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.logo {
  display: block;
  height: auto;
  aspect-ratio: 1671 / 1285;
}
.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
html[dir="rtl"] .flip {
  transform: scaleX(-1);
}
html[dir="ltr"] .bk {
  transform: scaleX(-1);
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -80px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: var(--r-chip);
  background: #fff;
  color: #000;
  font: 700 15px / 1.2 var(--fd);
  box-shadow: 0 4px 0 var(--edge);
}
.skip:focus {
  top: 8px;
}

/* ---------- header ---------- */
.topin {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 12px;
}
.brand .logo {
  width: 84px;
  transform: rotate(-4deg);
  filter: drop-shadow(3px 4px 0 var(--edge));
}
/* The home page's hero carries the big logo, so the header's is left out there. */
body[data-page="home"] .brand {
  display: none;
}
.top nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-inline-start: auto;
}
.top nav a,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font: 700 15px / 1 var(--fd);
  padding: 11px 15px;
  border-radius: var(--r-chip);
  background: var(--cream);
  color: #000;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--edge);
  transition:
    transform 0.2s var(--spring),
    box-shadow 0.12s;
}
.top nav a:hover {
  transform: translateY(-3px);
}
.top nav a:active,
.chip:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--edge);
}
.top nav a[aria-current] {
  background: var(--yellow);
}
.chip {
  background: #fff;
  border: 0;
}
.tools {
  display: flex;
  gap: 8px;
}
@media (max-width: 760px) {
  .top nav {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: space-between;
    gap: 4px;
  }
  .tools {
    margin-inline-start: auto;
  }
}

/* ---------- buttons ---------- */
.btn,
.btn2,
.asb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.btn {
  font: 800 20px / 1 var(--fd);
  padding: 19px 28px;
  border-radius: var(--r-btn);
  background: var(--yellow);
  color: #000;
  box-shadow: 0 8px 0 var(--yellow-d);
  transition:
    transform 0.12s var(--spring),
    box-shadow 0.12s;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 0 var(--yellow-d);
}
.btn:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 var(--yellow-d);
}
.btn2 {
  font: 800 17px / 1 var(--fd);
  padding: 14px 20px;
  border-radius: 16px;
  background: #fff;
  color: #000;
  box-shadow: 0 6px 0 var(--edge);
  transition:
    transform 0.12s var(--spring),
    box-shadow 0.12s;
}
.btn2:hover {
  transform: translateY(-2px);
}
.btn2:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--edge);
}
/* "Coming soon to the App Store": a label, not a link, until the app is there. */
.asb {
  background: #000;
  color: #fff;
  border-radius: 16px;
  padding: 10px 18px;
  box-shadow: 0 6px 0 #3d3d3d;
  font-family: var(--fd);
}
.asb .ico {
  width: 26px;
  height: 26px;
}
.asbt {
  display: grid;
  line-height: 1.15;
  text-align: start;
}
.asbt small {
  font-size: 11px;
}
.asbt b {
  font-size: 18px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(8px, 2vw, 24px) 0;
  overflow-x: clip;
}
.heroin {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 940px) {
  .heroin {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
}
.htext {
  container-type: inline-size;
  display: grid;
  gap: 18px;
  justify-items: start;
}
.htext .logo {
  width: clamp(190px, 56cqw, 300px);
  transform: rotate(-3deg);
  filter: drop-shadow(8px 10px 0 var(--edge));
}
.hero h1 {
  font-size: clamp(30px, 11cqw, 64px);
  line-height: 1.2;
}
@supports not (width: 1cqw) {
  .hero h1 {
    font-size: clamp(30px, 6vw, 56px);
  }
}
/* Always two lines, broken after the first words. */
.hero h1 .l {
  display: block;
  white-space: nowrap;
}
.hsub {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  max-width: 38ch;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.inv {
  font: 600 var(--fs-sm) / 1.5 var(--fb);
  color: var(--ink-2);
}

/* The scoreboard cabinet, with two shapes tucked behind it. */
.cabwrap {
  position: relative;
  isolation: isolate;
  padding: clamp(10px, 2.4vw, 28px);
}
.disc,
.dot {
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 50%;
}
.disc {
  inset-block-start: -4%;
  inset-inline-end: -5%;
  width: 56%;
  background: var(--yellow);
}
.dot {
  inset-block-end: -3%;
  inset-inline-end: -4%;
  width: 26%;
  background: var(--red);
}
.cab {
  background: var(--coal);
  color: #fff;
  border-radius: 34px;
  padding: 14px;
  display: grid;
  gap: 12px;
  box-shadow: 0 12px 0 var(--edge);
  transform: rotate(1.5deg);
}
.screen {
  background: #000 radial-gradient(#2c2c2c 1px, transparent 1.5px) 0 0 / 8px 8px;
  border-radius: 24px;
  padding: 16px 10px 14px;
  text-align: center;
}
.cdl {
  font: 700 15px / 1.5 var(--fd);
  color: var(--cream);
}
.when {
  font: 600 14px / 1.5 var(--fb);
  color: #fff;
  min-height: 1.5em;
  margin-bottom: 4px;
}
.cd {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 14px);
}
.cdu {
  text-align: center;
}
.cdu b {
  display: block;
  font: 800 var(--fs-led) / 1.1 var(--fd);
  font-variant-numeric: tabular-nums;
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(254, 189, 39, 0.6);
}
.cdu i {
  display: block;
  min-height: 1.4em;
  font: 600 12px / 1.4 var(--fb);
  font-style: normal;
  color: #c9c9c9;
}
.cdsep {
  width: 10px;
  height: 36px;
  background:
    radial-gradient(circle 4px at 50% 8px, var(--red) 96%, transparent),
    radial-gradient(circle 4px at 50% 28px, var(--red) 96%, transparent);
}
.screen .note {
  margin-top: 6px;
  font: 600 12px / 1.5 var(--fb);
  color: #c9c9c9;
}
.screen .status {
  display: none;
  margin: 10px 6px 0;
  padding: 10px 14px;
  border-radius: var(--r-chip);
  background: var(--yellow);
  color: #000;
  font: 700 16px / 1.5 var(--fd);
  box-shadow: 0 4px 0 var(--yellow-d);
}
.next-show.is-lobby .status,
.next-show.is-live .status,
.next-show.is-between .status,
.next-show.is-failed .status {
  display: block;
}
.next-show.is-live :is(.cd, .when, .note),
.next-show.is-between :is(.cd, .when, .note),
.next-show.is-failed :is(.cd, .when, .note) {
  display: none;
}

/* The sample leaderboard, cream on the console. */
.lb {
  background: var(--cream);
  color: #000;
  border-radius: 24px;
  padding: 14px;
}
.lbt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 800 16px / 1.4 var(--fd);
}
.lbt small {
  font: 600 12px / 1.8 var(--fb);
  background: #000;
  color: #fff;
  padding: 0 10px;
  border-radius: 999px;
}
.lb ol {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}
.lbr {
  display: grid;
  grid-template-columns: 26px 38px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 7px 12px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.16);
  animation: pop 0.5s var(--spring) backwards;
}
.r1 {
  animation-delay: 0.1s;
}
.r2 {
  animation-delay: 0.2s;
}
.r3 {
  animation-delay: 0.3s;
}
.r4 {
  animation-delay: 0.4s;
}
@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}
.r0 {
  background: var(--yellow);
}
/* "You" is marked by a dashed outline as well as by the name. */
.r4 {
  outline: 3px dashed #000;
  outline-offset: -3px;
}
.rk {
  font: 800 18px / 1 var(--fd);
  text-align: center;
}
.av,
.pav {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 800 17px / 1 var(--fd);
  color: #000;
  background: var(--sky);
}
.av {
  width: 38px;
  height: 38px;
}
.r0 .av {
  background: #fff;
}
.r1 .av,
.v1 {
  background: var(--red);
}
.r2 .av,
.v2 {
  background: var(--peach);
}
.r3 .av,
.v3 {
  background: var(--yellow);
}
.r4 .av {
  background: var(--cream);
}
.nm {
  font: 700 16px / 1.3 var(--fd);
}
.sc {
  font: 800 18px / 1 var(--fd);
  font-variant-numeric: tabular-nums;
}
.sc.bump {
  animation: bump 0.4s var(--spring);
}
@keyframes bump {
  50% {
    transform: scale(1.35);
  }
}

/* ---------- section rhythm ---------- */
.sec {
  padding-block: clamp(28px, 4.4vw, 56px);
}
.sh {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-bottom: 28px;
}
.shk {
  font: 800 14px / 1.9 var(--fd);
  background: var(--tag);
  color: var(--on-tag);
  border-radius: 10px;
  padding: 0 12px;
}

/* ---------- cards: one style ---------- */
.step,
.fcard,
.post,
.faq,
.toc,
.contact {
  background: var(--card);
  color: var(--on-card);
  border-radius: var(--r-card);
  box-shadow: 0 8px 0 var(--edge);
}

/* how to play */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.step {
  padding: 26px 24px 28px;
  display: grid;
  gap: 8px;
  align-content: start;
  transition: transform 0.25s var(--spring);
}
.step:hover {
  transform: translateY(-6px);
}
.step:nth-child(1) {
  --c: var(--red);
  --cd: var(--red-d);
}
.step:nth-child(2) {
  --c: var(--yellow);
  --cd: var(--yellow-d);
}
.step:nth-child(3) {
  --c: var(--sky);
  --cd: var(--sky-d);
}
.sn {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 800 30px / 1 var(--fd);
  color: #000;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.65) 0 11%, transparent 12%), var(--c);
  box-shadow: 0 7px 0 var(--cd);
  margin-bottom: 12px;
}
.step p,
.fcard p,
.post p {
  color: var(--on-card-2);
}
.facts {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 15px / 1.4 var(--fd);
  background: #fff;
  color: #000;
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 4px 0 var(--edge);
}
.facts li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--red);
}
.facts li:nth-child(3n + 2)::before {
  background: var(--yellow);
  border-radius: 50%;
}
.facts li:nth-child(3n)::before {
  background: var(--sky);
  transform: rotate(45deg);
}
@media (max-width: 560px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .facts li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* the diwaniya: friends on a cushion, with tea. The only local details. */
.palsin {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 900px) {
  .palsin {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}
.ptext {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.ptext p {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 40ch;
}
.scene {
  position: relative;
  height: clamp(250px, 28vw, 310px);
  background: var(--badge);
  border-radius: 36px;
  box-shadow: 0 10px 0 var(--edge);
  overflow: hidden;
}
.scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 56px;
  background: var(--cushion);
}
.seat {
  position: absolute;
  inset: auto 0 30px;
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 26px);
  z-index: 1;
}
.pav {
  width: clamp(54px, 8vw, 76px);
  aspect-ratio: 1;
  font-size: clamp(22px, 3vw, 30px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
  animation: bob 4s ease-in-out infinite alternate;
}
@keyframes bob {
  to {
    transform: translateY(-10px);
  }
}
.v0 {
  background: #fff;
}
.v1 {
  animation-delay: 0.6s;
}
.v2 {
  animation-delay: 1.2s;
}
.v3 {
  animation-delay: 1.8s;
}
.bub {
  position: absolute;
  z-index: 1;
  background: #fff;
  color: #000;
  font: 800 16px / 1.4 var(--fd);
  padding: 8px 16px;
  border-radius: 18px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
}
.bub::after {
  content: "";
  position: absolute;
  bottom: -9px;
  inset-inline-start: 22px;
  border: 10px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
}
.u1 {
  top: 26px;
  inset-inline-start: 8%;
  transform: rotate(-4deg);
}
.u2 {
  top: 78px;
  inset-inline-end: 7%;
  transform: rotate(3deg);
  background: var(--yellow);
}
.u2::after {
  border-top-color: var(--yellow);
}
.tea {
  position: absolute;
  z-index: 2;
  width: 40px;
  height: 48px;
  bottom: 50px;
}
.t1 {
  inset-inline-start: 5%;
}
.t2 {
  inset-inline-end: 5%;
}

/* ---------- the question console ---------- */
.qcard {
  max-width: 820px;
  margin-inline: auto;
  background: var(--coal);
  color: #fff;
  border-radius: 36px;
  padding: clamp(16px, 3vw, 30px);
  display: grid;
  gap: 18px;
  box-shadow: 0 12px 0 var(--edge);
}
.qtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.qnum {
  font: 700 15px / 1.4 var(--fd);
  color: var(--yellow);
}
.timer {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--yellow);
  color: #000;
  box-shadow: 0 5px 0 var(--yellow-d);
}
.qt {
  font: 800 28px / 1 var(--fd);
  font-variant-numeric: tabular-nums;
}
.low .timer {
  background: var(--red);
  box-shadow: 0 5px 0 var(--red-d);
}
/* Ten segments that go out one a second; the fill is clipped from the end by --s, the segments left. */
.tbar {
  overflow: hidden;
  height: 20px;
  background: repeating-linear-gradient(
    90deg,
    #3a3a3a 0 calc(10% - 5px),
    transparent calc(10% - 5px) 10%
  );
}
.tbar i {
  display: block;
  height: 100%;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0 calc(10% - 5px),
    transparent calc(10% - 5px) 10%
  );
  clip-path: inset(0 calc((10 - var(--s, 10)) * 10%) 0 0);
}
.low .tbar i {
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0 calc(10% - 5px),
    transparent calc(10% - 5px) 10%
  );
}
html[dir="rtl"] .tbar {
  transform: scaleX(-1);
}
.qtext {
  font-size: clamp(24px, 3.6vw, 40px);
  color: var(--cream);
  text-align: center;
  padding-block: 6px;
}
.answers {
  display: grid;
  gap: 20px 14px;
  grid-template-columns: 1fr 1fr;
  padding-bottom: 8px;
}
@media (max-width: 560px) {
  .answers {
    grid-template-columns: 1fr;
  }
}
.ans {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
  width: 100%;
  font: 800 19px / 1.25 var(--fd);
  padding: 18px 16px;
  border: 0;
  border-radius: 22px;
  color: #000;
  background: var(--c);
  /* Every answer sits on a cream edge, in both themes. */
  box-shadow: 0 8px 0 var(--cream);
  transition:
    transform 0.12s var(--spring),
    box-shadow 0.12s;
}
.ans[disabled] {
  cursor: default;
}
.a0 {
  --c: var(--sky);
}
.a1 {
  --c: var(--yellow);
}
.a2 {
  --c: var(--red);
}
.a3 {
  --c: var(--peach);
}
/* A drop, a star, a flame and a sparkle (marks.ts): the answers are told apart by their mark as well as by color. */
.shape {
  display: block;
  flex: none;
  width: 26px;
  height: 26px;
  fill: #000;
}
.ans:not([disabled]):hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 0 var(--cream);
}
.ans.picked {
  transform: translateY(6px);
  box-shadow:
    0 2px 0 var(--cream),
    0 0 0 4px #fff;
}
.ans.ok {
  box-shadow:
    0 8px 0 var(--cream),
    0 0 0 5px #fff;
  animation: okpop 0.45s var(--spring);
}
@keyframes okpop {
  50% {
    transform: scale(1.03);
  }
}
.ans.bad {
  outline: 4px dashed #fff;
  outline-offset: 3px;
}
.ans.dim {
  opacity: 0.4;
}
.mark {
  margin-inline-start: auto;
  white-space: nowrap;
  font: 800 14px / 1.8 var(--fd);
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 0 10px;
}
.mark:empty {
  display: none;
}
.lbl {
  min-width: 0;
}
.qstatus {
  min-height: 1.8em;
  text-align: center;
  font: 700 16px / 1.6 var(--fd);
}
.qnote {
  text-align: center;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  margin-top: 30px;
}

/* ---------- fair play band ---------- */
.fair .wrap {
  background: var(--band);
  color: var(--on-band);
  border-radius: clamp(28px, 5vw, 56px);
  padding-block: clamp(28px, 5vw, 56px);
}
@media (max-width: 1260px) {
  .fair .wrap {
    margin-inline: clamp(10px, 2vw, 24px);
    padding-inline: clamp(14px, 3vw, 32px);
  }
}
.fair .shk {
  background: var(--band-tag);
  color: var(--on-band-tag);
}
.fairg,
.posts {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.fcard {
  padding: 24px;
  display: grid;
  gap: 8px;
  align-content: start;
  box-shadow: 0 8px 0 var(--band-edge);
}
.fi {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--sky);
  color: #000;
  box-shadow: 0 5px 0 var(--sky-d);
  margin-bottom: 8px;
}
.fi .ico {
  width: 32px;
  height: 32px;
}
.fcard:nth-child(2) .fi {
  background: var(--red);
  box-shadow: 0 5px 0 var(--red-d);
}
.fcard:nth-child(3) .fi {
  background: var(--peach);
  box-shadow: 0 5px 0 var(--peach-d);
}

/* ---------- posts ---------- */
.post {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s var(--spring);
}
.post:hover {
  transform: translateY(-6px);
}
.pthumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--c, var(--cream));
}
.pthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v-red {
  --c: var(--red);
}
.v-yellow {
  --c: var(--yellow);
}
.v-peach {
  --c: var(--peach);
}
/* A post with no picture wears one of the answer marks (a flame, a star or a sparkle), in black on its color. */
.gl {
  display: block;
  width: clamp(56px, 7vw, 92px);
  height: clamp(56px, 7vw, 92px);
  fill: #000;
}
.pbody {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 22px 24px;
  flex: 1;
}
.pdate {
  font-size: 13px;
  color: var(--on-card-2);
}
.post p {
  font-size: 16px;
  line-height: 1.65;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font: 800 16px / 1 var(--fd);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.allp {
  margin-top: 28px;
}
@media (min-width: 900px) {
  .bloglist {
    grid-template-columns: 1fr 1fr;
  }
  .bloglist .feat {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .bloglist .feat .pthumb {
    flex: 0 0 46%;
    aspect-ratio: auto;
    min-height: 280px;
  }
  .bloglist .feat .pbody {
    justify-content: center;
  }
}
.empty {
  padding-block: 28px;
  color: var(--ink-2);
}

/* ---------- inner pages ---------- */
.ph {
  padding-block: clamp(20px, 4vw, 44px) clamp(8px, 1.5vw, 16px);
}
.ph .wrap {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.ph h1 {
  font-size: clamp(34px, 5.2vw, 64px);
}
.ph p {
  font-weight: 500;
  font-size: 19px;
  color: var(--ink-2);
}

/* a post */
.art {
  max-width: 800px;
  padding-block: clamp(20px, 3vw, 40px);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font: 800 16px / 1 var(--fd);
  background: #fff;
  color: #000;
  padding: 12px 16px;
  border-radius: var(--r-chip);
  box-shadow: 0 5px 0 var(--edge);
  text-decoration: none;
}
.art h1 {
  font-size: clamp(32px, 5vw, 58px);
  margin-top: 10px;
}
.pmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.art .pmeta .pdate {
  color: var(--ink-2);
}
.lead {
  font: 500 clamp(18px, 2vw, 21px) / 1.7 var(--fb);
  color: var(--ink-2);
  margin-top: 12px;
}
.cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  margin-top: 24px;
  border-radius: var(--r-card);
  box-shadow: 0 8px 0 var(--edge);
}
.anext {
  padding-block: 24px 64px;
  display: grid;
  gap: 20px;
}
.anext h2 {
  font-size: var(--fs-h3);
}

/* The reading surface: a post's body, the terms and the privacy statement. White, black text. */
.prose {
  background: #fff;
  color: #000;
  border-radius: var(--r-card);
  box-shadow: 0 8px 0 var(--edge);
  padding: clamp(20px, 4vw, 40px);
  margin-top: 24px;
}
.prose > * + * {
  margin-top: 16px;
}
.prose > :is(h2, h3) {
  margin-top: 34px;
}
.prose h2 {
  font-size: clamp(23px, 3vw, 31px);
  scroll-margin-top: 20px;
}
.prose h3 {
  font-size: clamp(19px, 2.2vw, 24px);
}
.prose a {
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose ul,
.prose ol {
  padding-inline-start: 1.4em;
}
.prose li + li {
  margin-top: 6px;
}
.prose img {
  display: block;
  height: auto;
  border-radius: 20px;
}
/* A quote in a post is its callout. */
.prose blockquote {
  font: 800 clamp(22px, 3vw, 30px) / 1.35 var(--fd);
  background: var(--yellow);
  color: #000;
  border-radius: 24px;
  padding: 20px 24px;
  box-shadow: 0 7px 0 var(--yellow-d);
}
.prose blockquote p {
  margin: 0;
}
/* The Arabic page writes 0 to 9 like the English one (docs/DECISIONS.md, "Western digits by default"), so a numbered
   list's markers are the plain decimal ones. They are named here because a browser may otherwise follow the language. */
html[lang="ar"] .prose ol,
html[lang="ar"] .toc ol {
  list-style-type: decimal;
}

/* ---------- support ---------- */
.supg {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  padding-block: 12px 72px;
}
@media (max-width: 900px) {
  .supg {
    grid-template-columns: 1fr;
  }
}
.faqs {
  display: grid;
  gap: 14px;
}
.gh {
  font-size: var(--fs-h3);
  margin-top: 14px;
  scroll-margin-top: 20px;
}
.gh:first-child {
  margin-top: 0;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  font: 800 clamp(18px, 2vw, 21px) / 1.4 var(--fd);
  padding: 18px 22px;
  border-radius: inherit;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.pm {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #000;
  box-shadow: 0 4px 0 var(--red-d);
}
.pm::before,
.pm::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 3px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}
.pm::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq[open] .pm::after {
  transform: translate(-50%, -50%) rotate(0);
}
.fa {
  padding: 0 22px 22px;
  color: var(--on-card-2);
}
.fa > * + * {
  margin-top: 10px;
}
.fa a {
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.contact {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 26px;
  background: var(--yellow);
  scroll-margin-top: 20px;
}
.contact h2 {
  font-size: var(--fs-h3);
}
.contact .fi {
  background: #fff;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25);
}
.contact .btn {
  font-size: 16px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 8px 0 #000;
  overflow-wrap: anywhere;
}
.contact .btn:active {
  box-shadow: 0 2px 0 #000;
}

/* ---------- the terms and the privacy statement ---------- */
.legal {
  display: grid;
  gap: 32px;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  padding-bottom: 72px;
}
@media (max-width: 900px) {
  .legal {
    grid-template-columns: 1fr;
  }
}
.legal.solo {
  grid-template-columns: minmax(0, 1fr);
}
.legal .prose {
  margin-top: 0;
}
.ltext p,
.ltext li {
  color: var(--on-card-2);
}
/* The legal text has no callouts: a quote there is plain, in a quiet block. */
.ltext blockquote {
  font: 500 var(--fs-body) / 1.75 var(--fb);
  background: var(--cream);
  box-shadow: none;
  border-radius: 16px;
  padding: 14px 18px;
}
.toc {
  display: grid;
  gap: 14px;
  padding: 22px;
  position: sticky;
  top: 16px;
}
@media (max-width: 900px) {
  .toc {
    position: static;
  }
}
.toc h2 {
  font-size: 22px;
}
.toc ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.toc a:not(.btn2) {
  font: 700 16px / 1.5 var(--fd);
  text-decoration: none;
}
.toc a:not(.btn2):hover {
  text-decoration: underline;
}
.toc .btn2 {
  justify-self: start;
}

/* ---------- not found ---------- */
.lost {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding-block: clamp(36px, 8vw, 80px) 24px;
}
.lost .logo {
  width: 200px;
  transform: rotate(-3deg);
  filter: drop-shadow(8px 10px 0 var(--edge));
  margin-bottom: 12px;
}
.lost h1 {
  font-size: clamp(30px, 5vw, 48px);
}
.lost p {
  color: var(--ink-2);
}

/* ---------- a friend's link ---------- */
/* The page a link to someone's code opens: the logo, a cream card with the code in big letters, and the App Store label
   that says the app is not there yet. Same sticker look as the rest: one solid edge under the card, no blur. */
.friend {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  padding-block: clamp(32px, 7vw, 72px) 24px;
}
.friend .logo {
  width: 180px;
  transform: rotate(-3deg);
  filter: drop-shadow(8px 10px 0 var(--edge));
  margin-bottom: 8px;
}
.friend h1 {
  font-size: clamp(30px, 5vw, 48px);
}
.friend p {
  max-width: 34em;
}
.flead,
.fkeep {
  color: var(--ink-2);
}
.fcard {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 22px clamp(20px, 6vw, 44px) 24px;
  background: var(--card);
  color: var(--on-card);
  border-radius: var(--r-card);
  box-shadow: 0 8px 0 var(--edge);
}
.flabel {
  font: 700 var(--fs-sm) / 1.4 var(--fd);
  color: var(--on-card-2);
}
.fcode {
  font: 800 clamp(34px, 9vw, 60px) / 1.1 var(--fd);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  user-select: all;
}
.fkept {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

/* ---------- footer ---------- */
.foot {
  background: #000;
  color: var(--cream);
  margin-top: clamp(24px, 4vw, 48px);
  border-radius: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 0 0;
  border-top: 6px solid var(--edge);
}
.footin {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding-block: 40px;
}
.foot .logo {
  width: 120px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
}
.foot nav a {
  font: 700 16px / 1.6 var(--fd);
  text-decoration: none;
}
.foot nav a:hover {
  text-decoration: underline;
}
.ftag {
  font: 800 20px / 1.4 var(--fd);
  color: var(--yellow);
}
.copy {
  font-size: var(--fs-sm);
}

/* ---------- less motion ---------- */
/* No bobbing, no pop, no ticking bump, no springs. The question's timer still steps once a second, since it carries
   meaning and not decoration. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    /* biome-ignore lint/complexity/noImportantStyles: the one switch that turns every animation off, whatever its rule */
    animation: none !important;
    /* biome-ignore lint/complexity/noImportantStyles: the same for every transition */
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
