/* test-cps.com — site styles (2026-11 refresh). System fonts only, no external requests. */

:root {
  --accent: #649cff;
  --accent-strong: #3b7cf0;
  --accent-soft: #eaf1ff;
  --ink: #1d2530;
  --ink-2: #3a4554;
  --muted: #5f6b7a;
  --line: #e2e7f0;
  --bg: #f4f6fb;
  --card: #fff;
  --green: #2fd88a;
  --green-strong: #1fbf74;
  --green-soft: #e9fbf1;
  --head-a: #6a7378;
  --head-b: #3a4549;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(31, 45, 72, .08), 0 2px 6px rgba(31, 45, 72, .05);
  --shadow-pop: 0 18px 48px rgba(20, 30, 50, .18), 0 3px 10px rgba(20, 30, 50, .08);
  --sb-thumb: rgba(100, 156, 255, .55);
  --sb-thumb-hover: rgba(59, 124, 240, .8);
  --sb-track: transparent;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Noto Sans", sans-serif;
}

:lang(zh-Hant) { --font: system-ui, -apple-system, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC", sans-serif; }
:lang(ja) { --font: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans CJK JP", "Noto Sans JP", sans-serif; }
:lang(ko) { --font: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Noto Sans KR", sans-serif; }
:lang(th) { --font: system-ui, -apple-system, "Segoe UI", "Leelawadee UI", "Thonburi", "Noto Sans Thai", Tahoma, sans-serif; }
:lang(ar) { --font: system-ui, -apple-system, "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", sans-serif; }
:lang(he) { --font: system-ui, -apple-system, "Segoe UI", Arial, "Noto Sans Hebrew", sans-serif; }
:lang(hi) { --font: system-ui, -apple-system, "Segoe UI", "Nirmala UI", "Kohinoor Devanagari", "Noto Sans Devanagari", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { color: #2563d9; text-decoration: underline; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(100, 156, 255, .55); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }

/* ---------- Scrollbars ---------- */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--sb-track); }
::-webkit-scrollbar-thumb {
  background-color: var(--sb-thumb);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
  min-height: 40px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--sb-thumb-hover); }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--sb-thumb) var(--sb-track); scrollbar-width: thin; }
  .lang__list, .prose__table { scrollbar-color: var(--sb-thumb) var(--sb-track); scrollbar-width: thin; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 900; padding-top: 10px; }
.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding-block: 8px;
  padding-inline: 18px;
  border-radius: 16px;
  background: linear-gradient(110deg, var(--head-a) 0%, var(--head-b) 62%);
  box-shadow: 0 6px 20px rgba(30, 40, 50, .18);
  max-width: calc(1120px - 32px);
  width: calc(100% - 20px);
}
.logo { display: inline-flex; align-items: center; gap: 8px; color: #f3f7ff; flex: none; }
.logo:hover { color: #fff; text-decoration: none; }
.logo img { width: 38px; height: 38px; border-radius: 10px; }
.logo__text { font-size: 22px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: block;
  padding: 9px 11px;
  border-radius: 10px;
  color: #eef3f8;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); text-decoration: none; }
.nav__caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 32px; margin-inline-start: -6px;
  border: 0; border-radius: 8px; background: transparent; color: #eef3f8; cursor: pointer;
}
.nav__caret svg, .lang__arrow { transition: transform .2s ease; }
.nav__item--drop.is-open .nav__caret svg { transform: rotate(180deg); }
.nav__panel {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  display: none;
  grid-template-columns: repeat(2, minmax(190px, auto));
  gap: 4px 18px;
  padding: 12px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-pop);
  z-index: 950;
}
.nav__panel::before { content: ""; position: absolute; inset-inline: 0; top: -10px; height: 10px; }
.nav__item--drop:hover .nav__panel, .nav__item--drop.is-open .nav__panel { display: grid; animation: pop .16s ease-out; }
.nav__col { list-style: none; margin: 0; padding: 0; }
.nav__col a { display: block; padding: 7px 10px; border-radius: 9px; color: var(--ink-2); font-size: 14.5px; white-space: nowrap; }
.nav__col a:hover, .nav__col a:focus-visible { background: var(--accent-soft); color: var(--accent-strong); text-decoration: none; }
.nav__col a[aria-current="page"] { color: var(--accent-strong); font-weight: 700; background: var(--accent-soft); }

@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Language switcher ---------- */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding-inline: 12px 10px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #f3f7ff; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.lang__btn:hover { background: rgba(255, 255, 255, .18); }
.lang__btn[aria-expanded="true"] .lang__arrow { transform: rotate(180deg); }
.lang__panel {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  width: 270px;
  padding: 10px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-pop);
  z-index: 960;
  overflow: hidden;
  animation: pop .16s ease-out;
}
.lang__panel[hidden] { display: none; }
.lang__search-wrap { position: relative; margin-bottom: 8px; }
.lang__search-wrap::before {
  content: ""; position: absolute; inset-inline-start: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='%235f6b7a' stroke-width='2.2'/%3E%3Cpath d='m15.5 15.5 5 5' stroke='%235f6b7a' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  pointer-events: none;
}
.lang__search {
  width: 100%; height: 38px; padding-inline: 34px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: #f7f9fd;
  color: var(--ink); font: inherit; font-size: 14.5px;
}
.lang__search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(100, 156, 255, .22); background: #fff; }
.lang__search::-webkit-search-cancel-button { cursor: pointer; }
.lang__list { list-style: none; margin: 0; padding: 0; max-height: min(340px, 60vh); overflow-y: auto; overscroll-behavior: contain; }
.lang__list::-webkit-scrollbar { width: 14px; }
.lang__list::-webkit-scrollbar-thumb { border-width: 3px 6px 3px 3px; }
[dir="rtl"] .lang__list::-webkit-scrollbar-thumb { border-width: 3px 3px 3px 6px; }
.lang__list::-webkit-scrollbar-track { margin-block: 6px; }
.lang__opt {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  color: var(--ink-2); font-size: 15px;
}
.lang__opt:hover, .lang__opt:focus-visible { background: var(--accent-soft); color: var(--accent-strong); text-decoration: none; outline: none; }
.lang__name { flex: 1; }
.lang__code { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.lang__opt[aria-current="true"] { color: var(--accent-strong); font-weight: 700; background: var(--accent-soft); }
.lang__opt[aria-current="true"]::after {
  content: ""; width: 16px; height: 16px; flex: none;
  background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%233b7cf0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.lang__opt[aria-current="true"] .lang__code { color: var(--accent-strong); }
.lang__item--hidden { display: none; }
.lang__empty { padding: 10px; color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- Burger + mobile navigation ---------- */
.burger {
  display: none;
  margin-inline-start: auto;
  width: 44px; height: 44px; padding: 11px 10px;
  border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.burger span { display: block; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.25px) rotate(-45deg); }

@media (max-width: 1000px) {
  .burger { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow-pop);
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav.is-open { display: flex; animation: pop .16s ease-out; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { flex-wrap: wrap; }
  .nav__link { flex: 1; color: var(--ink); padding: 11px 12px; font-size: 16px; }
  .nav__link:hover, .nav__link[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); }
  .nav__caret { color: var(--ink-2); width: 44px; height: 44px; margin: 0; }
  .nav__panel {
    position: static; display: none; width: 100%;
    grid-template-columns: 1fr 1fr; gap: 0 8px;
    padding: 4px 0 8px; box-shadow: none; border-radius: 0; animation: none;
  }
  .nav__item--drop:hover .nav__panel { display: none; }
  .nav__item--drop.is-open .nav__panel { display: grid; }
  .nav__col a { white-space: normal; font-size: 15px; padding: 9px 12px; }
  .lang { border-top: 1px solid var(--line); padding-top: 8px; }
  .lang__btn { width: 100%; height: 44px; color: var(--ink); background: #f4f7fd; border-color: var(--line); justify-content: flex-start; }
  .lang__btn:hover { background: var(--accent-soft); }
  .lang__btn .lang__arrow { margin-inline-start: auto; }
  .lang__panel { position: static; width: 100%; padding: 8px 0 0; box-shadow: none; border-radius: 0; animation: none; }
  .lang__list { max-height: 300px; }
}
@media (max-width: 420px) {
  .logo__text { font-size: 19px; }
  .nav__panel { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
main { display: block; }
.hero { padding-top: 26px; padding-bottom: 8px; text-align: center; }
.crumbs ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-inline-end: 6px; color: #a5afbd; }
[dir="rtl"] .crumbs li + li::before { content: "‹"; }
.crumbs a { color: var(--muted); }
.hero__title { margin: 0; font-size: clamp(27px, 4.2vw, 38px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.hero__sub { margin: 10px auto 0; max-width: 720px; font-size: clamp(15.5px, 2vw, 18px); line-height: 1.5; font-weight: 400; color: var(--muted); }

/* ---------- Tool card ---------- */
.tool { padding-top: 18px; padding-bottom: 8px; }
.tool__card {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(14px, 3vw, 26px);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.timed__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.timed__stat {
  display: flex; align-items: center; justify-content: center;
  min-height: 62px; padding: 10px 12px;
  border-radius: 14px; background: #f3f6fc;
  font-size: clamp(17px, 2.4vw, 22px); font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
#clicks { color: var(--accent-strong); }

.rbutton {
  position: relative;
  display: block;
  width: 100%;
  border: 3px solid var(--green);
  border-radius: 20px;
  background: var(--green-soft);
  color: var(--ink);
  font-size: clamp(18px, 2.6vw, 23px);
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#clicker { height: 270px; padding: 16px; transition: background-color .15s ease, box-shadow .15s ease; }
#clicker:hover { background: #dcf8e8; box-shadow: inset 0 0 0 2px rgba(47, 216, 138, .25); }
#clicker:active { background: #d0f5e0; }
#reset { margin-top: 6px; }
.rbutton .ripple { position: absolute; background: rgba(0, 0, 0, .12); border-radius: 100%; transform: scale(0); pointer-events: none; }
.rbutton .ripple.show { animation: ripple .75s ease-out; }
@keyframes ripple { to { opacity: 0; transform: scale(2.5); } }

.btn, .btn-cps {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 26px;
  border: 0; border-radius: 999px;
  background: var(--green); color: #fff;
  font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center;
  cursor: pointer; box-shadow: 0 6px 16px rgba(31, 191, 116, .28);
  transition: background-color .15s ease, transform .1s ease;
}
.btn:hover, .btn-cps:hover { background: var(--green-strong); color: #fff; text-decoration: none; }
.btn:active, .btn-cps:active { transform: translateY(1px); }

/* Fullscreen mode of the tool card */
.tool__bar { display: flex; justify-content: flex-end; margin-top: 10px; }
.tool__full {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--muted); font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.tool__full:hover { color: var(--accent-strong); border-color: var(--accent); }
.tool__card.is-full {
  position: fixed; inset: 0; z-index: 1000; max-width: none; margin: 0; border-radius: 0;
  display: flex; flex-direction: column; justify-content: center; overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top)) 16px 16px;
}
.tool__card.is-full #clicker, .tool__card.is-full .clicks-zone { flex: 1; max-height: 70vh; min-height: 260px; }
body.no-scroll { overflow: hidden; }

/* ---------- Click zone (manual / right / double) ---------- */
.statistics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.statistics__item { position: relative; padding: 12px 8px; border-radius: 14px; background: #f3f6fc; text-align: center; }
.statistics__item input { width: 15px; height: 15px; margin: 0; margin-inline-end: 6px; vertical-align: -2px; accent-color: var(--accent-strong); }
.statistics__number { font-size: clamp(26px, 4.6vw, 38px); font-weight: 900; line-height: 1.15; margin-bottom: 4px; font-variant-numeric: tabular-nums; color: var(--ink); }
.statistics__title { color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.statistics__arrow {
  position: absolute; inset-inline-end: 10px; width: 26px; height: 22px;
  display: flex; align-items: center; justify-content: center; border-radius: 6px;
}
.statistics__arrow:hover { background: #e3ebfb; }
.statistics__arrow img { width: 12px; height: 12px; }
.statistics__arrow--up { top: 12px; }
.statistics__arrow--down { top: 36px; }
.clicks-zone {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; min-height: 270px;
  border: 3px solid var(--green); border-radius: 20px; background: var(--green-soft);
  overflow: hidden; cursor: pointer;
}
.clicks-zone__clicks { position: absolute; inset: 0; cursor: pointer; z-index: 1; }
.clicks-zone__start { padding: 16px; opacity: 1; max-height: 200%; transition: all .35s 0s, opacity .35s; }
.clicks-zone__start.hide { max-height: 0; padding: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.result-clicks {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  max-height: 0; overflow: hidden; opacity: 0; transition: all 0s, opacity .35s;
  cursor: default;
}
.result-clicks.open { max-height: 300%; opacity: 1; width: 100%; padding: 24px 14px; background: var(--green-soft); }
.result-clicks__title { color: var(--ink); font-size: clamp(26px, 4vw, 34px); font-weight: 800; margin-bottom: 4px; }
.result-clicks__text { color: var(--ink-2); font-size: clamp(16px, 2.2vw, 19px); line-height: 1.6; margin-bottom: 8px; font-weight: 500; }
.result-clicks__text span { font-weight: 800; }
.result-clicks__text span.speed { color: #f08c00; font-weight: 900; }
.result-clicks__img { margin-bottom: 14px; }
.result-clicks__img img { display: block; min-height: 120px; max-height: 190px; width: auto; }
.result-clicks__share { margin-top: 18px; }
.result-clicks__share-title { color: var(--ink); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.clicks-zone .ripple {
  position: fixed; width: 5px; height: 5px; border-radius: 50%; background: #9169eb;
  opacity: 0; pointer-events: none; animation: rippleEffect .88s 1;
}
@keyframes rippleEffect { 0% { transform: scale(1); opacity: .4; } 100% { transform: scale(50); opacity: 0; } }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.share-row a { display: inline-flex; border-radius: 14px; transition: transform .12s ease; }
.share-row a:hover { transform: translateY(-2px); }
.share-row img { width: 46px; height: 46px; }

/* ---------- Result modal (timed tests) ---------- */
.modal { position: fixed; inset: 0; z-index: 1060; display: none; overflow-x: hidden; overflow-y: auto; padding: 24px 12px; outline: 0; }
.modal.show { display: block; }
.modal-dialog { position: relative; max-width: 620px; margin: 4vh auto; transform: translateY(-12px); transition: transform .25s ease-out; }
.modal.in .modal-dialog { transform: none; }
.modal.fade { opacity: 0; transition: opacity .2s linear; }
.modal.fade.in { opacity: 1; }
.modal-content { position: relative; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-pop); text-align: center; overflow: hidden; }
.modal-header { display: flex; justify-content: flex-end; padding: 12px 12px 0; }
.btn-close {
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; background: #f1f4fa no-repeat center/16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3 3 13' stroke='%233a4554' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.btn-close:hover { background-color: #e3e9f5; }
.modal-body { padding: 0 clamp(14px, 4vw, 34px) 24px; }
#modal-title { margin: 0; font-size: clamp(26px, 5vw, 34px); line-height: 1.3; font-weight: 400; color: var(--ink); }
#modal-title b { font-weight: 800; color: var(--accent-strong); }
.head-text { margin: 2px 0; font-size: clamp(15px, 2.4vw, 19px); line-height: 1.55; color: var(--ink-2); }
.main-img { display: block; width: 190px; height: 190px; margin: 14px auto 4px; object-fit: contain; }
.modal-share { margin: 12px 0 16px; }
.p-text { margin-bottom: 10px; font-size: 17px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1050; background: rgba(16, 24, 36, .55); opacity: 0; transition: opacity .2s linear; }
.modal-backdrop.in { opacity: 1; }
@media (max-width: 480px) { .main-img { width: 120px; height: 120px; } }

/* ---------- Ads ---------- */
.no-padding { padding-inline: 0; }
.pb-5 { padding-bottom: 24px; }
.banner { display: block; }
.banner_under_mobile { display: none; }
@media (max-width: 479px) { .banner_under { display: none; } .banner_under_mobile { display: block; } }

/* ---------- Other tests grid ---------- */
.more { padding-top: 16px; padding-bottom: 8px; }
.more__title { margin: 0 0 16px; text-align: center; font-size: clamp(21px, 3vw, 27px); line-height: 1.3; font-weight: 800; }
.more__grid { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.more__card {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); color: var(--ink); font-weight: 650; font-size: 15px; line-height: 1.35;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.more__card:hover { color: var(--accent-strong); border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.more__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); }
.more__card--mouse .more__icon { background: var(--green-soft); color: var(--green-strong); }
@media (max-width: 560px) { .more__grid { grid-template-columns: 1fr 1fr; gap: 8px; } .more__card { padding: 10px; gap: 8px; font-size: 14px; } .more__icon { width: 32px; height: 32px; } }

/* ---------- Long texts ---------- */
.prose { max-width: 800px; margin-inline: auto; font-size: 17px; line-height: 1.75; color: var(--ink-2); }
:lang(zh-Hans) .prose, :lang(zh-Hant) .prose, :lang(ja) .prose, :lang(ko) .prose { line-height: 1.85; letter-spacing: .01em; }
:lang(th) .prose { line-height: 1.9; }
article.prose { padding-top: 28px; padding-bottom: 12px; }
.prose h2 { margin: 34px 0 12px; font-size: clamp(21px, 2.8vw, 26px); line-height: 1.3; font-weight: 800; color: var(--ink); }
.prose h3 { margin: 24px 0 8px; font-size: 19px; line-height: 1.4; font-weight: 750; color: var(--ink); }
.prose h4, .prose h5 { margin: 22px 0 8px; font-size: 17.5px; line-height: 1.4; font-weight: 750; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-inline-start: 24px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--accent-strong); }
.prose b, .prose strong { color: var(--ink); font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-color: rgba(59, 124, 240, .35); text-underline-offset: 3px; }
.prose__sec + .prose__sec { border-top: 1px solid var(--line); }
.prose__sec:first-child > h2:first-child { margin-top: 0; }
.prose__table { overflow-x: auto; margin: 4px 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.prose th, .prose td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: #f1f5fd; color: var(--ink); font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

/* index: old intro text with the picture */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: center; padding-top: 32px; padding-bottom: 8px; }
.intro__media img { display: block; width: 100%; max-width: 440px; margin-inline: auto; border-radius: 22px; box-shadow: var(--shadow); }
.intro__body { margin: 0; max-width: none; }
.intro__body h2 { margin-top: 12px; }
.intro__badge { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 14px; font-weight: 700; }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; gap: 18px; } .intro__media img { max-width: 320px; } }

/* old 3-step block (fallback while a language has no new text) */
.steps { padding-top: 34px; }
.steps__title { margin: 0 0 18px; text-align: center; font-size: clamp(21px, 3vw, 27px); line-height: 1.3; font-weight: 800; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps__item { padding: 22px 18px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-align: center; }
.steps__item img { width: 64px; height: 64px; }
.steps__item h3 { margin: 10px 0 6px; font-size: 19px; line-height: 1.35; }
.steps__item p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
@media (max-width: 760px) { .steps__list { grid-template-columns: 1fr; } }

/* ---------- Share block ---------- */
.share-block { margin-top: 36px; padding: 40px 0 44px; background: #e9f0fc; text-align: center; }
.share-block__inner { max-width: 820px; }
.share-block__title { margin: 0 0 10px; font-size: clamp(20px, 2.8vw, 25px); line-height: 1.3; font-weight: 800; }
.share-block__title--small { margin-top: 24px; font-size: 18px; }
.share-block__text { margin: 0 auto; color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }

/* ---------- Footer ---------- */
.site-footer { padding: 30px 0 22px; background: linear-gradient(110deg, #4a5459, #2f383c); color: #d8e0e6; }
.site-footer a { color: #e8eef3; }
.site-footer a:hover { color: #fff; }
.site-footer__top { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; }
.logo--footer img { width: 34px; height: 34px; }
.logo--footer .logo__text { font-size: 19px; }
.site-footer__tests { list-style: none; margin: 0; padding: 0; columns: 4 170px; column-gap: 20px; font-size: 14px; line-height: 1.5; }
.site-footer__tests li { break-inside: avoid; padding: 3px 0; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 640px) { .site-footer__top { grid-template-columns: 1fr; gap: 14px; } .site-footer__tests { columns: 2; } }

/* ---------- Service pages ---------- */
.legal { padding-top: 18px; padding-bottom: 28px; }
.legal__date { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.legal__date span { color: var(--ink); font-weight: 600; }
.legal__body { padding: clamp(18px, 4vw, 36px); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.legal__body address { font-style: normal; margin: 6px 0 14px; }
.notfound { max-width: 640px; padding-top: 12px; padding-bottom: 48px; text-align: center; color: var(--ink-2); font-size: 17px; }
.fb-wrap { max-width: 640px; padding-top: 12px; padding-bottom: 56px; }
[data-feedback-form] { display: block; padding: clamp(18px, 4vw, 30px); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); text-align: start; }
[data-feedback-form] .fb-label { display: block; font-weight: 650; margin: 16px 0 6px; }
[data-feedback-form] .fb-label:first-child { margin-top: 0; }
[data-feedback-form] .fb-opt { font-weight: 400; color: var(--muted); font-size: .9em; }
[data-feedback-form] .fb-field { display: block; width: 100%; padding: 12px 14px; font: inherit; line-height: 1.4; color: var(--ink); background: #fff; border: 1px solid #ccd3df; border-radius: 12px; margin: 0; }
[data-feedback-form] textarea.fb-field { resize: vertical; min-height: 150px; }
[data-feedback-form] input[type=file].fb-field { padding: 10px 12px; background: #f8fafd; }
[data-feedback-form] .fb-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(100, 156, 255, .22); }
[data-feedback-form] .fb-captcha { margin: 18px 0; }
[data-feedback-form] altcha-widget { --altcha-max-width: 100%; display: block; }
[data-feedback-form] .fb-btn { display: inline-flex; margin-top: 6px; padding: 13px 32px; font: inherit; font-weight: 700; color: #fff; background: var(--green); border: none; border-radius: 999px; cursor: pointer; }
[data-feedback-form] .fb-btn:hover { background: var(--green-strong); }
[data-feedback-form] .fb-status { margin: 14px 0 0; min-height: 1.2em; font-weight: 500; }
[data-feedback-form][data-state=error] .fb-status { color: #e43f52; }
[data-feedback-form][data-state=sent] .fb-status { color: #1fa874; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .site-header { padding-top: 6px; }
  .site-header__bar { width: calc(100% - 12px); padding-inline: 12px 8px; min-height: 58px; border-radius: 14px; }
  .hero { padding-top: 18px; }
  .tool { padding-inline: 10px; }
  #clicker { height: 230px; min-height: 230px; }
  .clicks-zone { height: auto; min-height: 230px; } /* the result card is taller than 230px */
  .statistics { gap: 6px; }
  .statistics__item { padding: 10px 4px; }
  .statistics__title { font-size: 11px; }
  .statistics__arrow { inset-inline-end: 2px; }
  .prose { font-size: 16.5px; }
  .share-block { padding: 30px 0 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Tools added in 2026-11 (butterfly, drag, scroll, reaction, aim) ---------- */
.clicks-zone.tool-area { height: auto; min-height: 270px; user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color .12s ease, border-color .12s ease; }
/* numbers like "12 / 30" must keep their order in RTL pages */
.tool__card--tool .statistics__number { direction: ltr; unicode-bidi: isolate; }
.tool-area:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; }
.tool-area.is-hit { background: #d0f5e0; }
.tool-area .clicks-zone__start { text-align: center; font-size: clamp(18px, 2.6vw, 23px); font-weight: 800; letter-spacing: .02em; color: var(--ink); pointer-events: none; }
.tool-area .result-clicks { width: 100%; }
#tool-result:not(.open) { visibility: hidden; }
#tool-result .result-clicks__btn { font-family: inherit; }
.tool-area--scroll { overscroll-behavior: contain; cursor: ns-resize; }
.tool-area--reaction { cursor: pointer; }
.tool-area--reaction .clicks-zone__start { padding: 24px; }
.tool-area--reaction.is-wait { background: #ffe5e1; border-color: #ff7b6b; }
.tool-area--reaction.is-go { background: #cbf6dd; border-color: var(--green-strong); }
.tool-area--reaction.is-early { background: #fff0d4; border-color: #f5a623; }
.tool-area--reaction.is-between { background: var(--accent-soft); border-color: var(--accent); }
.tool-area--aim { min-height: 420px; cursor: crosshair; background: #f3f6fc; border-color: var(--accent); }
.aim-field { position: absolute; inset: 0; z-index: 1; }
.aim-target {
  position: absolute; display: block; padding: 0; border: 0; border-radius: 50%; cursor: crosshair; touch-action: manipulation;
  background: radial-gradient(circle, #fff 0 14%, #ff4d5a 15% 38%, #fff 39% 60%, #ff4d5a 61% 100%);
  box-shadow: 0 2px 8px rgba(255, 77, 90, .35);
}
.aim-target:focus { outline: none; }
.aim-target:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; }
.tool__card.is-full .tool-area--aim { min-height: 60vh; }
@media (max-width: 640px) {
  .clicks-zone.tool-area { height: auto; min-height: 230px; }
  .tool-area--aim { min-height: 360px; }
}