

:root, :root[data-theme="dark"] {
  color-scheme: dark light;
  --bg: #0b0f16;
  --bg-soft: #121824;
  --line: #1f2937;
  --fg: #e8eef6;
  --fg-dim: #9fb0c4;
  --accent: #3ea8ff;
  --accent-ink: #04121f;
  --radius: 16px;
  --max: 68rem;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fc; --bg-soft: #ffffff; --line: #dde5ef;
    --fg: #101828; --fg-dim: #52627a; --accent: #0b62c4; --accent-ink: #ffffff;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f9fc; --bg-soft: #ffffff; --line: #dde5ef;
  --fg: #101828; --fg-dim: #52627a; --accent: #0b62c4; --accent-ink: #ffffff;
}
:root[data-theme="dark"] { color-scheme: dark; }

[hidden] { display: none !important; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.top {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 1.1rem 1.25rem;
  border-block-end: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1.3rem; color: var(--fg); letter-spacing: .02em;
}
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px; display: block;
  border: 1px solid var(--line); object-fit: cover;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.links { display: flex; gap: 1rem; flex-wrap: wrap; order: 2; }
.links a { color: var(--fg-dim); font-size: .95rem; }
.links a[aria-current="page"] { color: var(--fg); font-weight: 600; }

.themeswitch {
  display: none; order: 3; margin-inline-start: auto;
  align-items: center; gap: .2rem; padding: .2rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft);
}
:root[data-js] .themeswitch { display: inline-flex; }
.themeswitch button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; padding: 0; margin: 0;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--fg-dim);
  font: inherit; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.themeswitch button:hover { color: var(--fg); }
.themeswitch button:focus-visible { outline-offset: 3px; }
.themeswitch svg { width: 17px; height: 17px; display: block; pointer-events: none; }
:root[data-theme="system"] .themeswitch [data-set="system"],
:root[data-theme="light"] .themeswitch [data-set="light"],
:root[data-theme="dark"] .themeswitch [data-set="dark"] {
  background: var(--accent); color: var(--accent-ink);
}

main { max-width: var(--max); margin: 0 auto; padding: 2.2rem 1.25rem 3rem; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.9rem); line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -.015em; }
h2 { font-size: 1.15rem; margin: 0 0 .45rem; }
p { margin: 0 0 1rem; }
.lede { color: var(--fg-dim); font-size: 1.08rem; max-width: 46rem; }
.note { color: var(--fg-dim); font-size: .93rem; }

.hero { padding-block: 1.5rem 2rem; }
.hero.withface {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.hero .face {
  width: 100%; max-width: 22rem; height: auto; justify-self: end;
  border-radius: 20px; border: 1px solid var(--line); display: block;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .38);
}
@media (max-width: 760px) {
  .hero.withface { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero .face { justify-self: center; max-width: 15rem; }
}
.cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-block-start: 1.4rem; }
.btn {
  display: inline-block; padding: .72rem 1.15rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--fg);
  font-weight: 600; font-size: .97rem;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.25rem;
}
.card p { margin: 0; color: var(--fg-dim); font-size: .97rem; }
main > .card + .card { margin-block-start: 1rem; }

.cards.duo { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); }

.games { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .55rem; }
.games.tiles { grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); align-items: start; }
.game {
  display: block;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px;
}
.ghead {
  display: flex; gap: .25rem .9rem; align-items: baseline; flex-wrap: wrap;
  padding: .8rem 2.5rem .8rem 1rem; cursor: pointer; list-style: none;
  position: relative; min-height: 2.75rem;
}
[dir="rtl"] .ghead { padding: .8rem 1rem .8rem 2.5rem; }
.ghead-flat { cursor: default; padding-inline-end: 1rem; }
.ghead::-webkit-details-marker { display: none; }
.ghead::marker { content: ""; }

.gtile > .ghead::after {
  content: ""; position: absolute; inset-inline-end: 1.05rem; top: 1.15rem;
  width: .45rem; height: .45rem;
  border-right: 2px solid var(--fg-dim); border-bottom: 2px solid var(--fg-dim);
  transform: rotate(45deg); transition: transform .2s ease;
}
.gtile[open] > .ghead::after { transform: rotate(-135deg); top: 1.35rem; }
.gtile > .ghead:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.gmore {
  flex: 1 1 100%; color: var(--accent); font-size: .82rem; font-weight: 600;
  letter-spacing: .01em;
}
.gtile[open] > .ghead .gmore { opacity: .55; }

.gtile:not([open]) .gdesc {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gtilebody { display: grid; gap: .35rem; padding: 0 1rem 1rem; }
.gtile[open] > .gtilebody { animation: gopen .22s ease-out; }
@keyframes gopen {
  from { opacity: 0; transform: translateY(-.35rem); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gtile[open] > .gtilebody { animation: none; }
  .gtile > .ghead::after { transition: none; }
}

.caps { list-style: none; margin: 1.5rem 0; padding: 0;
  display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.cap {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: .8rem .95rem; font-size: .97rem;
  display: flex; flex-direction: column; gap: .3rem;
}

.cap b { font-weight: 650; }
.cap span { color: var(--fg-dim); font-size: .9rem; line-height: 1.45; }
.cap .capx { color: var(--accent); font-size: .82rem; font-weight: 600; }

.areas { margin-block-start: 1.5rem; }
@media (min-width: 46rem) { .areas { columns: 2; column-gap: 1rem; } }
@media (min-width: 68rem) { .areas { columns: 3; column-gap: 1rem; } }
.acount {
  font-size: .76rem; font-weight: 600; color: var(--fg-dim);
  letter-spacing: .03em; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.area {
  break-inside: avoid; margin-block-end: 1rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.05rem 1.2rem;
}
.area h2 {
  display: flex; align-items: baseline; justify-content: space-between; gap: .6rem;
  margin: 0 0 .55rem; padding-block-end: .45rem;
  font-size: 1.02rem; border-block-end: 1px solid var(--line);
}
.area ul { margin: 0; padding-inline-start: 0; list-style: none; }
.area li { color: var(--fg-dim); font-size: .93rem; line-height: 1.5; padding-block: .15rem; }

.gname { font-weight: 650; }
.gdesc { color: var(--fg-dim); font-size: .95rem; flex: 1 1 100%; }
.glangs { color: var(--fg-dim); font-size: .82rem; opacity: .8; flex: 1 1 100%; }
.gdeck { color: var(--accent); font-size: .82rem; font-weight: 600; flex: 1 1 100%; }
.game.app { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.prose { max-width: 44rem; }
.prose p { color: var(--fg-dim); }

.foot {
  border-block-start: 1px solid var(--line);
  max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem;
}
.langbar { display: flex; gap: .5rem .85rem; flex-wrap: wrap; align-items: baseline; margin-block-end: .9rem; }
.langlabel { color: var(--fg-dim); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.lang { font-size: .93rem; color: var(--fg-dim); }
.lang.on { color: var(--fg); font-weight: 650; }
.foot .note { margin: 0; font-size: .9rem; }

@media (max-width: 40rem) {
  body { font-size: 16px; }
  .top { padding: .9rem 1rem; gap: .8rem; }
  main { padding: 1.6rem 1rem 2.4rem; }
}

.guide { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.guide h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: .2rem 0 .5rem; }
.stats { color: var(--fg-dim); font-size: .95rem; margin: 0 0 1.5rem; }

.steps {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 0 0 2.2rem;
}
.steps h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.steps ol { margin: 0; padding-inline-start: 1.3rem; }
.steps li { margin: .4rem 0; }

.secttl { margin: 2.6rem 0 1.1rem; font-size: 1.35rem; }

.glayout { display: block; }
@media (min-width: 62rem) {
  .glayout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .gtoc { position: sticky; inset-block-start: 1.25rem; max-height: calc(100vh - 3rem); overflow-y: auto; }
}
.gtoc {
  margin-block-end: 2rem;
  padding: 1rem 1.1rem;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.toctitle {
  margin: 0 0 .7rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--fg-dim);
}
.tocgrp { margin-block-end: .9rem; }
.tocgrp:last-of-type { margin-block-end: 0; }
.tocwhere {
  margin: 0 0 .3rem; font-size: .76rem; color: var(--fg-dim);
  letter-spacing: .04em; text-transform: uppercase;
}
.gtoc a {
  display: block; padding: .22rem 0; font-size: .93rem; color: var(--fg);
  line-height: 1.45;
}
.gtoc a:hover { color: var(--accent); text-decoration: none; }
.tocnote { margin: 1rem 0 0; font-size: .82rem; color: var(--fg-dim); line-height: 1.5; }

.gsec { margin: 0 0 2.6rem; scroll-margin-block-start: 1.25rem; }
.gsec > h2 {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem;
  font-size: 1.3rem; margin: 0 0 .8rem;
  padding-block-end: .5rem; border-block-end: 1px solid var(--line);
}

.gfold > summary {
  list-style: none; cursor: pointer; position: relative;
  display: inline-flex; align-items: center;
  padding: .3rem 1.4rem .3rem 0;
  color: var(--fg-dim); font-size: .92rem;
}
.gfold > summary::-webkit-details-marker { display: none; }
.gfold > summary::marker { content: ""; }
.gfold > summary::after {
  content: ""; position: absolute; inset-inline-end: .25rem; top: .72rem;
  width: .4rem; height: .4rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.gfold[open] > summary::after { transform: rotate(-135deg); top: .85rem; }
.gfold > summary:hover { color: var(--accent); }
.gfold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gfold[open] > .features, .gfold[open] > .screens { animation: gopen .2s ease-out; }

.where { color: var(--fg-dim); font-size: .85rem; font-weight: 400; }
.badge {
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  padding: .12rem .5rem; border-radius: 999px;
  background: var(--line); color: var(--fg-dim);
}

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }

@media (min-width: 78rem) {
  .features { display: block; columns: 2; column-gap: 1rem; }
  .feature { break-inside: avoid; margin-block-end: 1rem; }
}
.feature {
  position: relative; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .9rem 1.1rem;
  transition: border-color .15s ease;
}

.feature::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0;
  block-size: 2px; opacity: .5;
  background: linear-gradient(to right, var(--accent), transparent 72%);
}
[dir="rtl"] .feature::before {
  background: linear-gradient(to left, var(--accent), transparent 72%);
}
.feature:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.feature h3 {
  margin: 0 0 .5rem; font-size: 1rem;
  display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
}

.cmds { list-style: none; margin: 0; padding: 0; }
.cmds li {
  display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap;
  padding: .25rem 0; border-block-start: 1px dashed var(--line);
}
.cmds li:first-child { border-block-start: 0; }

.cmds code {
  font: 600 .88rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent); white-space: nowrap;
  padding: .08rem .42rem; border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);

  direction: ltr; unicode-bidi: isolate;
}

.cmds span { color: var(--fg-dim); font-size: .93rem; min-width: 0; flex: 1 1 12rem; }

.index { margin-block-start: 3rem; }
.filter { display: block; margin: .9rem 0 1rem; }
.filter input {
  width: 100%; padding: .7rem .9rem; font-size: 1rem;
  color: var(--fg); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.filter input:focus { border-color: var(--accent); }
.cmds.all {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .4rem 1rem; background: var(--bg-soft);
  column-gap: 2rem;
}
@media (min-width: 52rem) { .cmds.all { columns: 2; } .cmds.all li { break-inside: avoid; } }
.none { color: var(--fg-dim); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.screens {
  display: grid; gap: .6rem;
  margin: 1rem 0 0; padding-block-start: .85rem;
  border-block-start: 1px dashed var(--line);
}
@media (min-width: 78rem) { .screens { grid-template-columns: 1fr 1fr; align-items: start; } }
.slabel {
  grid-column: 1 / -1;
  color: var(--fg-dim); font-size: .8rem; letter-spacing: .04em;
  text-transform: uppercase; margin-inline-end: .2rem;
}
.scr {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--fg-dim); font-size: .87rem; line-height: 1.5;
}

.scr.open {
  padding: 0; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease;
}
.scr.open > summary {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .5rem .85rem; border-radius: var(--radius);
  color: var(--fg); font-size: .92rem; line-height: 1.5;
  cursor: pointer; list-style: none; user-select: none;
}
.scr.open > summary::-webkit-details-marker { display: none; }

.scr.open > summary::after {
  content: "›"; color: var(--fg-dim); font-size: 1.1rem; line-height: 1;
  transition: transform .15s ease; transform-origin: center;
}
.scr.open[open] > summary::after { transform: rotate(90deg); }
.scr.open:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.scr.open[open] { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }

.prev {
  margin: 0; padding: .7rem .9rem .85rem;
  border: 0; border-block-start: 1px dashed var(--line);
  background: none; color: var(--fg); white-space: pre-wrap;
  font: .85rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-x: auto; max-inline-size: 100%;

  unicode-bidi: plaintext;
}

.ghero {
  margin: 0 0 1.8rem; padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    var(--bg-soft);
}
.ghero h1 { margin: 0 0 .5rem; }
.ghero .lede { margin: 0 0 .9rem; }
.ghero .stats { margin: 0; font-variant-numeric: tabular-nums; }

.gintro {
  margin: 0 0 1.1rem; color: var(--fg-dim);
  font-size: 1.02rem; line-height: 1.6; max-width: 44rem;
}

.anchor {
  color: var(--fg-dim); opacity: 0; text-decoration: none;
  margin-inline-end: .35rem; font-weight: 400;
  transition: opacity .12s ease;
}
.gsec > h2:hover .anchor, .anchor:focus-visible { opacity: .65; }

.totop { margin-block-start: 2.5rem; text-align: center; }
.totop a { font-size: .92rem; color: var(--fg-dim); }

.btn.ghost { background: transparent; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.howto h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: .2rem 0 .5rem; }

.hows { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.how {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft); padding: 1.2rem 1.3rem;
  scroll-margin-block-start: 1.5rem;
}
.howhead { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.hownum {
  display: inline-grid; place-items: center; flex: none;
  width: 1.7rem; height: 1.7rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .85rem; font-weight: 700; align-self: center;
}
.how h2 { margin: 0; font-size: 1.12rem; display: inline-flex; align-items: baseline; gap: .45rem; }
.howicon { font-size: 1.05rem; }
.howsteps { margin: .9rem 0 0; padding-inline-start: 0; list-style: none; counter-reset: howstep; }
.howsteps li {
  counter-increment: howstep; position: relative;
  padding-inline-start: 2rem; margin-block-end: .55rem;
  color: var(--fg); font-size: .97rem; line-height: 1.6;
}
.howsteps li::before {
  content: counter(howstep);
  position: absolute; inset-inline-start: 0; inset-block-start: .18rem;
  width: 1.35rem; height: 1.35rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg);
  display: grid; place-items: center;
  font-size: .76rem; font-weight: 650; color: var(--fg-dim);
}
.howtip, .howcmds {
  margin: .85rem 0 0; color: var(--fg-dim);
  font-size: .91rem; line-height: 1.55;
}
.howcmds { display: flex; flex-wrap: wrap; gap: .35rem; align-items: baseline; margin-block-start: .6rem; }
.howcmds code {
  border: 1px solid var(--line); border-radius: 7px;
  padding: .06rem .4rem; font-size: .85rem; color: var(--fg);
  background: var(--bg); white-space: nowrap;
}
.tiplabel {
  display: inline-block; margin-inline-end: .45rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--accent);
}
.how .where {
  margin-inline-start: auto; font-size: .78rem; color: var(--fg-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: .1rem .55rem;
  white-space: nowrap;
}

@media (max-width: 40rem) {
  .how { padding: 1rem 1.05rem; }
  .how .where { margin-inline-start: 0; }
}

@media (max-width: 52rem) {
  .top { gap: .7rem 1rem; padding-block: .85rem; }
  .links {
    flex-wrap: nowrap; overflow-x: auto; width: 100%;
    gap: .95rem; padding-block-end: .3rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .links::-webkit-scrollbar { display: none; }
  .links a { white-space: nowrap; }
  .themeswitch { order: 2; }
  .links { order: 3; }
}

.facts {
  margin-block: 2rem 1.6rem; padding-block: 1.3rem;
  border-block: 1px solid var(--line);
}
.facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
}
.facts li { display: flex; flex-direction: column; gap: .12rem; }
.facts b { font-size: 1.9rem; font-weight: 750; line-height: 1.1; letter-spacing: -.01em; }
.facts span { color: var(--fg-dim); font-size: .86rem; text-transform: lowercase; }
.facts .note { margin: 1rem 0 0; font-size: .86rem; }

.footpages {
  display: flex; gap: .5rem .85rem; flex-wrap: wrap; align-items: baseline;
  margin-block-end: 1rem;
}
.footpages a { font-size: .93rem; color: var(--fg-dim); }
.footpages a:hover { color: var(--accent); }
.foot .note + .note { margin-block-start: .5rem; opacity: .8; }

@media (max-width: 40rem) {
  .facts b { font-size: 1.6rem; }
  .facts ul { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
}

.facts a {
  display: flex; flex-direction: column; gap: .12rem;
  color: inherit; text-decoration: none; padding-block: .2rem;
  border-radius: 10px;
}
.facts a:hover { text-decoration: none; }
.facts a:hover b { color: var(--accent); }
.facts a:hover span { color: var(--fg); }

.facts.price {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; margin-block: 1.6rem 1.2rem;
  background:
    radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    var(--bg-soft);
}
.facts.price ul { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
.facts.price b { color: var(--accent); }

.langsec {
  margin-block-start: 2.4rem; padding-block-start: 1.6rem;
  border-block-start: 1px solid var(--line); scroll-margin-block-start: 1.5rem;
}
.langsec h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.langsec p { margin: 0 0 1rem; color: var(--fg-dim); max-width: 46rem; }
.langgrid { display: flex; flex-wrap: wrap; gap: .45rem; }
.langgrid .lang {
  border: 1px solid var(--line); border-radius: 999px;
  padding: .34rem .8rem; font-size: .92rem; background: var(--bg-soft);
  min-height: 2rem; display: inline-flex; align-items: center;
}
.langgrid .lang:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.langgrid .lang.on { color: var(--fg); font-weight: 650; border-color: var(--accent); }

.links a, .langbar .lang, .totop a, .note a {
  min-height: 2.25rem; display: inline-flex; align-items: center;
}
.langbar { gap: .35rem .7rem; }
.langbar .lang { padding-inline: .2rem; }

@media (max-width: 40rem) {
  .facts.price { padding: 1.1rem; }
  .facts.price ul { grid-template-columns: repeat(2, 1fr); }
  .langgrid .lang { min-height: 2.35rem; }
  .links a { min-height: 2.5rem; }
}

.ghow {
  flex: 1 1 100%; color: var(--fg); font-size: .93rem; line-height: 1.55;
  margin-block-start: .35rem; padding-inline-start: .7rem;
  border-inline-start: 2px solid color-mix(in srgb, var(--accent) 55%, var(--line));
}

@media (max-width: 52rem) {
  .card h2 a, .tocgrp a {
    min-height: 2.25rem; display: inline-flex; align-items: center;
  }
}

.ffold > summary {
  list-style: none; cursor: pointer; position: relative;
}
.ffold > summary::-webkit-details-marker { display: none; }
.ffold > summary::marker { content: ""; }
.ffold > summary h3 {
  display: flex; align-items: baseline; gap: .5rem; margin: 0;
  padding-inline-end: 1.6rem;
}
.ffold > summary::after {
  content: ""; position: absolute; inset-inline-end: .25rem; top: .55rem;
  width: .4rem; height: .4rem;
  border-right: 2px solid var(--fg-dim); border-bottom: 2px solid var(--fg-dim);
  transform: rotate(45deg); transition: transform .2s ease;
}
.ffold[open] > summary::after { transform: rotate(-135deg); top: .7rem; }
.ffold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fcount {
  margin-inline-start: auto; color: var(--fg-dim); font-size: .78rem;
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.ffold[open] > .cmds { animation: gopen .2s ease-out; }

.ifold > summary {
  cursor: pointer; font-weight: 600; color: var(--accent);
  padding-block: .55rem; min-height: 2.5rem; display: flex; align-items: center;
}
.ifold[open] > .filter { animation: gopen .2s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .ffold > summary::after, .gfold > summary::after { transition: none; }
  .ffold[open] > .cmds, .ifold[open] > .filter { animation: none; }
}

.gsteptitle {
  margin: .55rem 0 .15rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--fg-dim);
}
.gsteps {
  margin: 0; padding-inline-start: 1.35rem;
  display: grid; gap: .35rem;
}
.gsteps li {
  color: var(--fg); font-size: .92rem; line-height: 1.5;
  padding-inline-start: .15rem;
}
.gsteps li::marker { color: var(--accent); font-weight: 700; }

.howfold > summary.howhead {
  cursor: pointer; list-style: none; position: relative; padding-inline-end: 1.8rem;
}
.howfold > summary.howhead::-webkit-details-marker { display: none; }
.howfold > summary.howhead::marker { content: ""; }
.howfold > summary.howhead::after {
  content: ""; position: absolute; inset-inline-end: .2rem; top: .75rem;
  width: .45rem; height: .45rem;
  border-right: 2px solid var(--fg-dim); border-bottom: 2px solid var(--fg-dim);
  transform: rotate(45deg); transition: transform .2s ease;
}
.howfold[open] > summary.howhead::after { transform: rotate(-135deg); top: .95rem; }
.howfold > summary.howhead:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.howfold[open] > .howsteps { animation: gopen .22s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .howfold > summary.howhead::after { transition: none; }
  .howfold[open] > .howsteps { animation: none; }
}
