:root {
  --acc: #0b7a55;
  --acc-ink: #fff;
  --r: 14px;
  --icon-r: 24%;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --bg: #eef1f4;
  --card: #fff;
  --line: #dce2e8;
  --ink: #16212c;
  --muted: #4b5866;
  --soft: #f5f7f9;
  --acc-soft: color-mix(in srgb, var(--acc) 9%, #fff);
  --acc-line: color-mix(in srgb, var(--acc) 30%, #fff);
  --danger: #9b1c1c;
  --col: 704px;
  --gap: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
}
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; flex: none; }
.sym { position:absolute;width:0;height:0;overflow:hidden }
a { color: var(--acc); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--col) + 32px); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 10px 14px; z-index: 5; }
.skip:focus { left: 8px; }

.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand__logo { height: 28px; width: auto; border-radius: 4px; }
.brand__sub { color: var(--muted); font-size: 14px; padding-left: 10px; border-left: 1px solid var(--line); }
.top__nav { display: flex; gap: 8px; }
.strip { border-top: 1px solid var(--line); background: var(--card); }
.strip ul { display: flex; gap: 4px; list-style: none; margin: 0 auto; overflow-x: auto; scrollbar-width: thin; }
.strip li { flex: none; }
.strip a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap;
  color: var(--muted); font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent;
}
.strip a:hover { color: var(--ink); }
.strip a[aria-current] { color: var(--acc); border-bottom-color: var(--acc); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: calc(var(--r) * .7);
  font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; background: none; color: var(--acc);
}
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: var(--soft); }
.btn--line { border-color: var(--acc-line); background: var(--card); }
.btn--line:hover { background: var(--acc-soft); }
.btn--soft { background: var(--acc-soft); border-color: var(--acc-line); }
.btn--soft:hover { border-color: var(--acc); }

.crumbs { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 2px 0; font-size: 14px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--muted); }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.crumbs [aria-current] { color: var(--ink); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; margin-bottom: var(--gap);
}
.card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card__head h2 { font-size: 19px; }
.card__title { display: flex; align-items: center; gap: 8px; }
.card__title svg { color: var(--acc); }

.hero__head { display: flex; gap: 18px; align-items: flex-start; }
.appicon {
  flex: none; width: 104px; height: 104px; border-radius: var(--icon-r);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .08);
}
.appicon--sm { width: 56px; height: 56px; }
.hero__id { min-width: 0; }
.hero h1 { font-size: 29px; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.hero__dev { margin: 8px 0 10px; color: var(--muted); font-size: 15px; }
.hero__dev b { color: var(--acc); }
.hero__sub { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 999px; background: var(--soft); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.chips svg { width: 15px; height: 15px; }
.chips .chips__age { color: var(--danger); border-color: #e7c2c2; background: #fbf1f1; font-weight: 700; }

.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0 16px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.metrics > div { padding: 12px 8px; text-align: center; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
.metrics > div + div { border-left: 1px solid var(--line); }
.metrics dt { font-size: 13px; color: var(--muted); }
.metrics dd { margin: 0; font-size: 19px; font-weight: 700; }

.cta {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center;
  column-gap: 12px; width: 100%; min-height: 60px; padding: 10px 20px;
  border-radius: var(--r); background: var(--acc); color: var(--acc-ink); text-decoration: none;
}
.cta__txt { font-weight: 700; font-size: 19px; grid-column: 1; }
.cta__meta { grid-column: 1; font-size: 13px; }
.cta__ico { grid-column: 2; grid-row: 1 / span 2; width: 28px; height: 28px; }
.cta:hover { background: color-mix(in srgb, var(--acc) 86%, #000); }
.cta--compact { width: auto; min-height: 52px; grid-template-rows: auto; }
.cta--compact .cta__ico { grid-row: 1; width: 22px; height: 22px; }
.cta--compact .cta__txt { font-size: 17px; }

.hero__alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

.promo {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 16px;
  margin-top: 14px; padding: 12px 14px; border-radius: calc(var(--r) * .8);
  background: var(--soft); border: 1px dashed var(--line);
}
.promo__label { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.promo__offer b { font-size: 16px; }

.hero--mini .hero__head { align-items: center; gap: 14px; }
.hero--mini .appicon { width: 56px; height: 56px; }
.hero--mini h1 { font-size: 24px; }
.hero--mini .cta { margin-top: 16px; }

.shots {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 4px 8px; margin: 0 -4px; scrollbar-width: thin;
}
.shot { flex: 0 0 132px; margin: 0; scroll-snap-align: start; }
.shot img { width: 132px; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #eef0f3; }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.3; }

.toc { border: 1px solid var(--line); border-radius: calc(var(--r) * .8); background: var(--soft); padding: 14px 16px; margin-bottom: 8px; }
.toc__head { margin: 0 0 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.toc__head span { color: var(--muted); font-size: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc > ol > li + li { border-top: 1px solid var(--line); }
.toc > ol > li > a { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; font-weight: 600; text-decoration: none; color: var(--ink); min-height: 44px; }
.toc > ol > li > a:hover { color: var(--acc); }
.toc__n { font: 700 13px/1 ui-monospace, "DejaVu Sans Mono", monospace; color: var(--acc); }
.toc ul { list-style: none; margin: -4px 0 8px; padding: 0 0 0 30px; display: flex; flex-wrap: wrap; gap: 6px; }
.toc ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 4px 12px; font-size: 14px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--muted);
}
.toc ul a:hover { border-color: var(--acc); color: var(--acc); }

.sec { border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.about .card__head + .sec, .about .card__head + .prose + .sec { border-top: 0; }
.about .prose + .sec { border-top: 1px solid var(--line); }
.about > .sec:first-child { border-top: 0; }
.sec > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px;
  padding: 14px 0; min-height: 52px;
}
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary h2 { font-size: 18px; grid-column: 1; scroll-margin-top: 16px; }
.sec__meta { grid-column: 1; font-size: 13px; color: var(--muted); margin-top: 2px; }
.sec__chev { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); }
.sec:not([open]) > summary:hover h2 { color: var(--acc); }
.sec[open] > summary .sec__chev { transform: rotate(180deg); }
.sec__body { padding-bottom: 18px; scroll-margin-top: 110px; }
.sec__back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; text-decoration: none; }
.sec__back svg { width: 16px; height: 16px; }

.prose { font-size: 16.5px; line-height: 1.65; overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose h2 { font-size: 19px; margin: 26px 0 10px; scroll-margin-top: 16px; }
.prose h3 { font-size: 17px; margin: 22px 0 8px; scroll-margin-top: 16px; }
.prose h4 { font-size: 16px; margin: 18px 0 6px; }
.prose ol, .prose ul { margin: 0 0 14px; padding-left: 0; list-style: none; counter-reset: li; }
.prose ol > li, .prose ul > li { position: relative; padding: 0 0 8px 36px; counter-increment: li; }
.prose ol > li::before {
  content: counter(li); position: absolute; left: 0; top: .1em;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--acc-soft); color: var(--acc); font-size: 13px; font-weight: 700; line-height: 1;
}
.prose ul > li::before { content: ""; position: absolute; left: 10px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--acc); }
.prose li.li-titled > strong { display: block; }
.prose blockquote { margin: 0 0 14px; padding: 8px 16px; border-left: 4px solid var(--acc); background: var(--acc-soft); border-radius: 0 8px 8px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose pre { overflow-x: auto; }
.prose img { height: auto; border-radius: 8px; }
.tbl { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 8px; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15px; }
.tbl th, .tbl td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: break-word; }
.tbl th { background: var(--soft); }

.faq { display: grid; gap: 8px; }
.qa { border: 1px solid var(--line); border-radius: calc(var(--r) * .7); }
.qa > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; min-height: 48px; font-weight: 600;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary svg { color: var(--muted); }
.qa[open] > summary svg { transform: rotate(180deg); }
.qa[open] { background: var(--soft); }
.qa p { margin: 0; padding: 0 14px 14px; color: var(--muted); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.facts > div { background: var(--soft); border-radius: 8px; padding: 10px 12px; }
.facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: st; }
.steps li { counter-increment: st; border: 1px solid var(--line); border-radius: calc(var(--r) * .7); padding: 12px; font-size: 14px; color: var(--muted); }
.steps li::before {
  content: counter(st); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px;
  border-radius: var(--icon-r); background: var(--acc); color: var(--acc-ink); font-weight: 700;
}
.steps b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

.warn {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: var(--gap);
  padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid #e3c9c9;
}
.warn__age { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--danger); color: var(--danger); font-weight: 800; }
.warn p { margin: 0; font-size: 14px; color: var(--muted); }

.final { display: flex; align-items: center; gap: 14px; }
.final__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.final__txt b { font-size: 17px; }
.final__txt span { font-size: 14px; color: var(--muted); }

.doc { padding: 24px; }
.doc h1 { font-size: 26px; margin-bottom: 14px; }

.foot { background: var(--card); border-top: 1px solid var(--line); margin-top: 24px; }
.foot__in { padding-top: 18px; padding-bottom: 24px; display: grid; gap: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--muted); font-size: 14px; }
.foot__legal p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.foot__line { margin: 0; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.foot__age { display: inline-grid; place-items: center; flex: none; min-width: 34px; height: 24px; border: 1px solid var(--danger); color: var(--danger); border-radius: 4px; font-weight: 700; font-size: 12px; }

.nf { max-width: 560px; margin: 0 auto; padding: 72px 20px 96px; text-align: center; }
.nf h1 { margin: 0 0 12px; font-size: 28px; }
.nf p { margin: 0 0 24px; color: var(--muted); }
.nf .btn { border-color: var(--acc-line); }

@media (prefers-reduced-motion: no-preference) {
  .btn, .cta, .toc a, .strip a, .sec__chev, .qa > summary svg { transition: background-color .15s, border-color .15s, color .15s, transform .2s; }
}

@media (max-width: 640px) {
  .brand__sub { display: none; }
  .card { padding: 16px; }
  .hero__head { gap: 14px; }
  .appicon { width: 76px; height: 76px; }
  .appicon--sm, .hero--mini .appicon { width: 56px; height: 56px; }
  .hero h1 { font-size: 23px; }
  .hero--mini h1 { font-size: 21px; }
  .card__head h2 { font-size: 18px; }
  .sec > summary h2 { font-size: 17px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics > div:nth-child(3) { border-left: 0; }
  .metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .promo { grid-template-columns: 1fr; }
  .shot { flex-basis: 120px; }
  .shot img { width: 120px; }
  .facts > div { padding: 9px 10px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .final { flex-wrap: wrap; }
  .final .cta { width: 100%; }
  .top__nav .btn { padding: 0 12px; }
  .doc { padding: 16px; }
  .hero--mini .cta { width: 100%; }
}
@media (max-width: 400px) {
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .steps li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 10px 12px; }
  .steps li::before { margin: 0; grid-row: 1 / span 2; }
  .steps b { grid-column: 2; }
}

.stage { display: block; }
.hero.has-pic .stage {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); grid-template-areas: "pic stats";
  gap: 16px 20px; align-items: center; margin: 18px 0 16px;
}
.hero.has-pic.pic-r .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); grid-template-areas: "stats pic"; }
.hero.has-pic .metrics { grid-area: stats; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; border: 0; }
.hero.has-pic .metrics > div { border: 0; background: var(--soft); border-radius: calc(var(--r) * .7); padding: 12px 8px; }

.pic {
  grid-area: pic; margin: 0; min-width: 0; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--acc-soft); border: 1px solid var(--acc-line); border-radius: var(--r);
}
.pic img { display: block; height: auto; }
.pic.show-banner img { width: 100%; object-fit: contain; border-radius: calc(var(--r) * .8); }
.pic__ph { display: flex; justify-content: center; align-items: flex-start; gap: 10px; width: 100%; }
.pic.show-pair .pic__ph img { width: calc(50% - 5px); }
.pic.show-shot .pic__ph img { width: 62%; }
.pic__ph img { border-radius: calc(var(--r) * .7); border: 1px solid var(--line); background: var(--card); }
.pic figcaption { margin: 0; font-size: 13px; line-height: 1.35; color: var(--muted); text-align: center; }
.look-frame.show-banner img, .look-frame .pic__ph img { padding: 5px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 16px rgb(22 33 44 / .14); }
.look-round.show-banner img { border-radius: calc(var(--r) + 8px); }
.look-tilt.show-banner img, .look-tilt .pic__ph { transform: rotate(-2deg); box-shadow: 0 8px 18px rgb(22 33 44 / .18); }
.look-tilt .pic__ph { box-shadow: none; }
.look-tilt .pic__ph img { box-shadow: 0 8px 18px rgb(22 33 44 / .18); }
.pic-l .look-tilt.show-banner img, .pic-l .look-tilt .pic__ph { transform: rotate(2deg); }

.hero--mini.has-pic {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); grid-template-areas: "head pic" "cta pic";
  grid-template-rows: auto 1fr; column-gap: 20px; align-items: start;
}
.hero--mini.has-pic.pic-l { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); grid-template-areas: "pic head" "pic cta"; }
.hero--mini.has-pic .hero__head { grid-area: head; }
.hero--mini.has-pic .cta { grid-area: cta; justify-self: start; }

.games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.games > li, .prose .games > li { min-width: 0; margin: 0; padding: 0; }
.prose .games > li::before { content: none; }
.game {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; color: var(--ink); text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) * .7);
}
a.game:hover { border-color: var(--acc); }
a.game:hover .game-n { color: var(--acc); }
.game img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 0; background: var(--ink); }
.game-n { display: block; flex: 1; min-width: 0; padding: 8px 4px 10px; font-size: 12.5px; font-weight: 600; line-height: 1.3; text-align: center; overflow-wrap: break-word; word-break: normal; }
.games.ribbon{display:flex;overflow-x:auto;scrollbar-width:thin;padding-bottom:6px}
.games.ribbon>li{flex:1 0 96px}

.prose, .sec__body { display: flow-root; }
.fig { margin: 18px 0; }
.fig img { display: block; max-width: 100%; height: auto; }
.fig figcaption { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.fig-side { width: min(200px, 60%); margin: 18px auto; text-align: center; }
.fig-side img { width: 100%; margin: 0 auto; border-radius: calc(var(--r) * .9); border: 1px solid var(--line); background: var(--card); }
.fig-pair { padding: 14px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); text-align: center; }
.fig-pair .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 200px)); gap: 12px; justify-content: center; }
.fig-pair img { width: 100%; border-radius: calc(var(--r) * .7); border: 1px solid var(--line); background: var(--card); }
.fig-wide { clear: both; text-align: center; }
.fig-wide img { margin: 0 auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
@media (min-width: 900px) {
  .fig-side.fig-r, .fig-side.fig-l { width: 190px; margin-top: 4px; margin-bottom: 14px; text-align: left; }
  .fig-side.fig-r { float: right; margin-right: 0; margin-left: 22px; }
  .fig-side.fig-l { float: left; margin-left: 0; margin-right: 22px; }
  .fig-side.fig-r figcaption, .fig-side.fig-l figcaption { text-align: left; }
  .fig-side ~ :is(h2, h3, h4, h5, h6, .fig, table, .tbl, dl, details, pre, hr, blockquote) { clear: both; }
}

@media (max-width: 640px) {
  .hero.has-pic .stage, .hero.has-pic.pic-r .stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pic" "stats"; gap: 14px; margin: 16px 0 14px; }
  .pic.show-banner img { width: auto; max-width: 100%; height: 140px; margin: 0 auto; }
  .hero.has-pic:not(.hero--mini):is(.hs-pair, .hs-shot) { display: flex; flex-direction: column; }
  .hero.has-pic:not(.hero--mini):is(.hs-pair, .hs-shot) .stage { display: contents; }
  .hero.has-pic:not(.hero--mini):is(.hs-pair, .hs-shot) .pic { margin: 16px 0 14px; }
  .hero.has-pic:not(.hero--mini):is(.hs-pair, .hs-shot) .metrics { order: 1; margin: 14px 0 0; }
  .hero.has-pic:not(.hero--mini):is(.hs-pair, .hs-shot) .promo { order: 2; }
  .hero--mini.has-pic, .hero--mini.has-pic.pic-l { display: block; }
  .hero--mini.has-pic .pic { margin-top: 14px; }
  .pic.show-pair .pic__ph img, .pic.show-shot .pic__ph img { width: auto; height: 240px; }
  .games { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .game-n { font-size: 12px; padding: 6px 3px 8px; }
  .games.ribbon { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 6px; scrollbar-width: thin; }
  .games.ribbon > li { flex: 0 0 38%; scroll-snap-align: start; }
  .fig-pair .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
