﻿:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-soft: #fbfbfc;
  --text: #1d2520;
  --muted: #6b756f;
  --line: #e0e4e7;
  --primary: #27735f;
  --primary-dark: #1d5c4d;
  --accent: #e9b949;
  --shadow: 0 18px 45px rgba(37, 53, 46, 0.10);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-display: "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

#test,
#score-records,
#features,
#guide,
#faq,
#score-levels {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 46%, #eef0f2 100%);
  font-family: var(--font-sans);
  line-height: 1.6;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(1200px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  gap: 10px;
}

.brand {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  color: #07172f;
  font-family: var(--font-display);
  font-size: clamp(1.24rem, 2vw, 1.72rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-name {
  display: inline-block;
}

.brand-tld {
  display: inline-flex;
  align-items: center;
  min-height: 1.1em;
  margin-left: 0.08em;
  padding: 0.05em 0.23em 0.09em;
  color: #ffffff;
  background: #6b65dc;
  border-radius: 0.34em;
  line-height: 0.96;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 10px;
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: #eef1f3;
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.language-switcher summary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border-radius: 999px;
  color: #172a3b;
  background: #f5f8fb;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::marker {
  content: "";
}

.language-switcher summary:hover,
.language-switcher[open] summary {
  background: #eef3ff;
  box-shadow: 0 10px 24px rgba(93, 110, 219, 0.12);
}

.language-switcher summary svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-symbol {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 132px;
  padding: 6px;
  border: 1px solid rgba(93, 156, 236, 0.14);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(23, 42, 59, 0.13);
}

.language-menu a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  transition: background-color 180ms ease, color 180ms ease;
}

.language-menu a:hover,
.language-menu a[aria-current="page"] {
  color: #172a3b;
  background: #eef3ff;
}

.hero {
  position: relative;
  overflow: hidden;
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: clamp(54px, 7vw, 76px) clamp(18px, 5vw, 64px) clamp(42px, 5vw, 56px);
  text-align: center;
  background: #ffffff;
  border-radius: 32px;
}

.hero > * {
  position: relative;
}

.hero-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.2vw, 5.4rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
}

h1 span {
  display: inline-block;
}

.title-cps {
  color: #6b65dc;
}

.title-test {
  color: #c46be4;
}

.title-side {
  position: relative;
  margin: 0 0 8px;
  color: #111318;
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  font-family: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", "SF Pro Rounded", cursive;
  font-weight: 800;
  line-height: 1;
  transform: rotate(-1.5deg);
}

.title-side::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -10px;
  height: 5px;
  background: linear-gradient(90deg, #6574df, #ba64d9, rgba(236, 138, 93, 0.18));
  border-radius: 58% 42% 55% 45% / 55% 45% 58% 42%;
  transform: rotate(-1deg);
}

.hero-copy {
  display: inline-block;
  max-width: min(900px, 100%);
  margin: 24px auto 0;
  color: #111318;
  font-family: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", "SF Pro Rounded", cursive;
  font-size: clamp(1.02rem, 1.55vw, 1.18rem);
  font-weight: 800;
  line-height: 1.45;
  white-space: nowrap;
  transform: rotate(-0.6deg);
}
.test-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 58px;
}

.test-panel {
  --click-stack-pad: clamp(18px, 3vw, 30px);
  --duration-toolbar-height: 24px;
  --duration-toolbar-gap: 18px;
  --click-stack-height: clamp(430px, 46vw, 560px);
  position: relative;
  overflow: hidden;
  display: grid;
  gap: clamp(18px, 2.6vw, 26px);
  padding: clamp(18px, 3.2vw, 36px);
  background: #ffffff;
  border-radius: 24px;
}

.test-panel::before {
  content: none;
}

.test-panel > * {
  position: relative;
}

.test-panel:fullscreen {
  --click-stack-pad: clamp(26px, 4vh, 54px);
  --duration-toolbar-gap: clamp(22px, 3vh, 34px);
  --click-stack-height: min(76vh, 760px);
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: clamp(26px, 5vh, 64px) clamp(38px, 5vw, 76px);
  border-radius: 0;
  overflow: auto;
}

.test-panel:fullscreen .tester-workspace {
  min-height: calc(100vh - (clamp(26px, 5vh, 64px) * 2));
  align-items: center;
}

.test-panel:fullscreen .click-stack {
  grid-template-rows: minmax(520px, 1fr) auto;
}

.test-panel:fullscreen .click-area {
  min-height: min(62vh, 640px);
}

.test-panel:fullscreen .click-area-title {
  font-size: clamp(3.5rem, 5.2vw, 6.1rem);
}

.test-panel:fullscreen .click-area-icon {
  width: clamp(118px, 8vw, 150px);
  height: clamp(118px, 8vw, 150px);
}

.test-panel:fullscreen .side-panel {
  min-height: var(--click-stack-height);
}

.test-panel:fullscreen .stat-card {
  padding: clamp(18px, 2vw, 26px);
}

.test-panel:fullscreen .stat-value {
  font-size: clamp(2.1rem, 3.2vw, 3.4rem);
}

.tester-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: stretch;
}

.side-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--duration-toolbar-gap);
  align-content: start;
  min-height: var(--click-stack-height);
  padding-top: var(--click-stack-pad);
  padding-bottom: var(--click-stack-pad);
}

.click-stack {
  display: grid;
  grid-template-rows: minmax(300px, 1fr) auto;
  gap: var(--duration-toolbar-gap);
  align-content: stretch;
  min-height: var(--click-stack-height);
  padding: var(--click-stack-pad);
  background: #ffffff;
  border-radius: 22px;
  box-shadow: none;
}

.time-toolbar {
  display: grid;
  grid-template-columns: repeat(7, minmax(38px, 1fr));
  justify-content: stretch;
  align-self: start;
  gap: clamp(8px, 1.4vw, 16px);
  width: min(520px, calc(100% - 28px));
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.time-btn {
  position: relative;
  min-width: 0;
  min-height: 34px;
  height: 34px;
  padding: 0 4px 6px;
  color: #64736f;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.time-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 2px;
  background: transparent;
  border-radius: 999px;
  transform: translateX(-50%) scaleX(0.65);
  transition: transform 160ms ease, background-color 160ms ease;
}

.time-btn:hover {
  color: #172a3b;
  background: rgba(238, 247, 255, 0.72);
}

.time-btn.active {
  color: #172a3b;
  background: transparent;
  box-shadow: none;
}

.time-btn.active::after {
  background: rgba(107, 101, 220, 0.56);
  transform: translateX(-50%) scaleX(1);
}

.click-area {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  clip-path: inset(0 round 20px);
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 0;
  height: 100%;
  padding: clamp(28px, 5vw, 56px);
  color: var(--text);
  background: #eef7ff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 22px rgba(42, 90, 145, 0.05);
  transition: transform 120ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.click-area::before {
  content: none;
}

.click-area::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vw, 36px);
  width: min(220px, 42%);
  height: 3px;
  background: #6b65dc;
  border-radius: 999px;
  z-index: 1;
  opacity: 0.18;
  pointer-events: none;
  transform: translateX(-50%);
}

.click-area:hover {
  background: #e7f3ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 14px 28px rgba(42, 90, 145, 0.07);
}

.click-area:active,
.click-area.is-pressing {
  border-color: transparent;
  transform: scale(0.988);
}

.click-area:focus {
  outline: none;
}

.click-area:focus-visible,
.time-btn:focus-visible,
.nav-links a:focus-visible,
.language-switcher summary:focus-visible,
.language-switcher a:focus-visible,
.tool-btn:focus-visible {
  outline: 3px solid rgba(107, 101, 220, 0.25);
  outline-offset: 3px;
}

.click-area-title {
  position: relative;
  z-index: 3;
  display: block;
  font-size: clamp(2.05rem, 4.7vw, 3.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: #172a3b;
  transition: opacity 140ms ease, transform 140ms ease;
}

.click-area-icon {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(92px, 8vw, 118px);
  height: clamp(92px, 8vw, 118px);
  margin-bottom: 2px;
  color: #172a3b;
  opacity: 0.96;
  transition: opacity 140ms ease, transform 140ms ease;
}

.click-area-icon svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  fill: none;
  overflow: visible;
  stroke: currentColor;
  stroke-width: 1.95;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.click-source-icon {
  filter: drop-shadow(0 5px 12px rgba(23, 42, 59, 0.12));
}

.click-area-subtitle {
  position: relative;
  z-index: 3;
  display: block;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  transition: opacity 140ms ease, transform 140ms ease;
}

.click-area:hover .click-area-icon {
  transform: translateY(-3px) scale(1.02);
}

.click-area[data-state="running"] {
  background: #eaf6ff;
  border-color: rgba(91, 121, 214, 0.12);
}

.click-area[data-state="running"] .click-area-icon,
.click-area[data-state="running"] .click-area-title,
.click-area[data-state="running"] .click-area-subtitle {
  opacity: 0;
  transform: translateY(4px) scale(0.98);
}

.click-area[data-state="finished"] {
  color: #5b625e;
  background: #f1f7fd;
  border-color: rgba(91, 121, 214, 0.10);
  cursor: default;
}

.click-effect {
  position: absolute;
  left: var(--click-x);
  top: var(--click-y);
  z-index: 2;
  display: block;
  width: var(--ripple-size);
  height: var(--ripple-size);
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(107, 101, 220, 0.04) 0 34%, rgba(107, 101, 220, 0.18) 35% 43%, transparent 44%),
    radial-gradient(circle, rgba(93, 156, 236, 0.20) 0 42%, transparent 63%);
  box-shadow: inset 0 0 0 2px rgba(107, 101, 220, 0.18);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
  animation: areaRipple 700ms ease-out forwards;
}

@keyframes areaRipple {
  0% {
    opacity: 0.74;
    transform: translate(-50%, -50%) scale(0.08);
  }

  35% {
    opacity: 0.52;
  }

  70% {
    opacity: 0.25;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-self: start;
  height: 100%;
  margin-top: 0;
}

.tool-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  min-height: 34px;
  margin-top: 0;
  padding-right: 18px;
}

.tool-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #66746f;
  background: #eef6ff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.tool-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
}

.tool-btn:hover {
  color: #172a3b;
  background: #e6f1ff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 8px 16px rgba(23, 42, 59, 0.05);
}

.tool-btn.is-on {
  color: #514bc5;
  background: #ecebff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 16px rgba(107, 101, 220, 0.10);
}

.tool-btn.is-off {
  color: #66746f;
  background: #eef6ff;
}

.stat-card {
  --stat-accent: #6b65dc;
  --stat-soft: #f4f5fb;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 14px;
  min-height: 0;
  padding: 15px 18px;
  background: #ffffff;
  border-radius: 18px 16px 20px 15px;
  box-shadow: none;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.stat-card:nth-child(1) {
  --stat-accent: #6b65dc;
}

.stat-card:nth-child(2) {
  --stat-accent: #5d9cec;
}

.stat-card:nth-child(3) {
  --stat-accent: #9a73cf;
}

.stat-card::before {
  content: none;
}

.stat-card:hover {
  transform: translateY(-1px);
  border-color: #d9dde6;
  box-shadow: 0 10px 22px rgba(35, 55, 72, 0.05);
}

.stat-meta {
  position: relative;
  z-index: 1;
  display: contents;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--stat-accent);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.75), transparent 35%),
    color-mix(in srgb, var(--stat-accent) 16%, #ffffff);
  border-radius: 48% 42% 52% 40% / 42% 52% 38% 48%;
  transform: rotate(-3deg);
}

.stat-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-label,
.result-label {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-family: "SF Pro Rounded", "Avenir Next Rounded", "Comic Sans MS", var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: none;
}

.stat-value {
  position: relative;
  z-index: 1;
  display: block;
  justify-self: end;
  text-align: right;
  margin-top: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.1;
  color: #172a3b;
}

.stat-value::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: 5px 0 0 auto;
  background: currentColor;
  border-radius: 999px;
  opacity: 0.28;
  transform: rotate(-4deg);
}


.records-section {
  width: min(1200px, calc(100% - 32px));
  margin: -24px auto 28px;
  padding: clamp(18px, 3vw, 28px);
  background: #ffffff;
  border-radius: 22px 20px 24px 19px;
}

.records-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.records-title-block {
  min-width: 0;
}

.records-kicker {
  margin: 0 0 4px;
  color: #6b65dc;
  font-family: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", "SF Pro Rounded", cursive;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.4;
}

.records-head h2 {
  margin: 0;
  color: #172a3b;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.05;
}

.records-clear {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #5d6edb;
  background: #eef3ff;
  border: none;
  border-radius: 14px 12px 15px 11px;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.records-clear svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.records-clear:hover {
  border-color: rgba(93, 110, 219, 0.28);
  color: #4656bf;
  background: #e8efff;
  transform: translateY(-1px);
}

.records-clear:focus-visible {
  outline: 3px solid rgba(107, 101, 220, 0.25);
  outline-offset: 3px;
}

.records-table-wrap {
  position: relative;
  overflow: hidden;
  padding: 7px;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 18px 16px 20px 15px;
}

.records-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  text-align: center;
  table-layout: fixed;
}

/*.records-table th:nth-child(1),*/
/*.records-table td:nth-child(1) {*/
/*  width: 22%;*/
/*}*/

.records-table th:nth-child(2),
.records-table td:nth-child(2),
.records-table th:nth-child(3),
.records-table td:nth-child(3),
.records-table th:nth-child(4),
.records-table td:nth-child(4) {
  width: 17%;
}

.records-table th:nth-child(5),
.records-table td:nth-child(5) {
  width: 27%;
}

.records-table-wrap:has(.records-empty:not([hidden])) .records-table {
  display: none;
}

.records-table th,
.records-table td {
  padding: 12px 14px;
  text-align: center;
  white-space: nowrap;
}

.records-table thead th {
  color: #65706b;
  background: transparent;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
}

.records-table tbody th,
.records-table tbody td {
  color: #172a3b;
  background: #ffffff;
  border: 0;
  font-size: 0.93rem;
  font-weight: 750;
}

.records-table tbody th {
  border-radius: 12px 0 0 12px;
}

.records-table tbody td:last-child {
  border-radius: 0 12px 12px 0;
}

.records-table tbody tr:hover {
  transform: translateY(-1px);
}

.records-table tbody tr {
  transition: transform 180ms ease;
}

.records-table tbody tr:hover th,
.records-table tbody tr:hover td {
  background: #fbfdff;
  box-shadow: none;
}

.records-table tbody td:nth-child(4),
.records-table tbody td:nth-child(5) {
  font-weight: 900;
}

.records-table tbody td:nth-child(5) {
  color: #172a3b;
}

.records-empty {
  margin: 0;
  padding: 24px 16px 26px;
  color: #65706b;
  text-align: center;
  background: #fbfdff;
  border-radius: 14px 12px 16px 11px;
  font-weight: 750;
}

.records-empty[hidden] {
  display: none;
}

.click-progress {
  --runner-progress: 0%;
  --trail-speed: 1.8s;
  --trail-play: paused;
  --jet-width: 0px;
  --jet-height: 10px;
  --jet-opacity: 0;
  --jet-speed: 1.4s;
  position: relative;
  overflow: visible;
  justify-self: stretch;
  width: 100%;
  margin-top: clamp(-28px, -2.4vw, -14px);
  padding: 14px clamp(16px, 3vw, 24px) 18px;
  background: transparent;
  border: 0;
  border-radius: 14px 12px 15px 12px;
  box-shadow: none;
}
.runner-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.runner-progress-head h2 {
  margin: 0;
  color: #172a3b;
  font-size: 0.96rem;
  line-height: 1.1;
}

.runner-progress-head p {
  margin: 0;
  color: var(--muted);
  font-family: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", "SF Pro Rounded", cursive;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: right;
}

.runner-track-wrap {
  position: relative;
  padding: 24px 8px 12px;
}

.runner-track-wrap::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  height: 18px;
  background:
    radial-gradient(circle at 5px 50%, rgba(107, 101, 220, 0.18) 0 2px, transparent 2.8px) 0 0 / 28px 100% repeat-x,
    radial-gradient(circle at 16px 50%, rgba(93, 156, 236, 0.16) 0 1.6px, transparent 2.4px) 0 0 / 28px 100% repeat-x;
  opacity: 0.8;
  pointer-events: none;
  animation: pawTrail var(--trail-speed) linear infinite;
  animation-play-state: var(--trail-play);
  transform: translateY(-44%) rotate(-0.25deg);
}

.runner-track {
  position: relative;
  height: 44px;
}

.runner-track::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, rgba(107, 101, 220, 0.18), rgba(93, 156, 236, 0.14));
  border-radius: 999px 70% 999px 70%;
  transform: translateY(-50%) rotate(-0.25deg);
}

.runner-track::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: var(--runner-progress);
  max-width: calc(100% - 24px);
  height: 5px;
  background: linear-gradient(90deg, #6b65dc, #5d9cec);
  border-radius: 999px 70% 999px 70%;
  box-shadow: 0 0 0 4px rgba(107, 101, 220, 0.055);
  transform: translateY(-50%) rotate(-0.25deg);
  transition: width 90ms linear;
}

.track-end {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 2px solid #6b65dc;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(107, 101, 220, 0.07);
}

.track-start {
  left: 7px;
}

.track-finish {
  right: 7px;
}

.finish-flag {
  position: absolute;
  right: -1px;
  top: -6px;
  z-index: 5;
  width: 24px;
  height: 28px;
  transform: rotate(3deg);
}

.finish-flag::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 2px;
  height: 22px;
  background: #172a3b;
  border-radius: 999px;
}

.finish-flag::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 16px;
  height: 12px;
  background: repeating-conic-gradient(#172a3b 0 25%, #ffffff 0 50%) 0 0 / 7px 7px;
  border: 1px solid #172a3b;
  border-radius: 3px 4px 4px 3px;
}

.cute-runner {
  position: absolute;
  left: clamp(14px, var(--runner-progress), calc(100% - 18px));
  top: 50%;
  z-index: 6;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -74%);
  transition: left 120ms ease-out;
}

.cute-runner::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 12px;
  z-index: 0;
  width: 42px;
  height: 18px;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 96% 50%, rgba(255, 255, 255, 0.95) 0 14%, rgba(93, 156, 236, 0.55) 15% 34%, transparent 68%),
    radial-gradient(circle at 30% 40%, rgba(233, 185, 73, 0.78) 0 2px, transparent 3px),
    linear-gradient(90deg, transparent 0%, rgba(107, 101, 220, 0.18) 28%, rgba(93, 156, 236, 0.52) 100%);
  border-radius: 999px 70% 70% 999px;
  clip-path: polygon(0 50%, 22% 16%, 100% 36%, 100% 64%, 22% 84%);
  filter: blur(0.15px);
  transform: scaleX(0.55);
  transform-origin: 100% 50%;
}
.cute-runner.is-launching::after {
  animation: jetLaunch 520ms ease-out forwards;
}

.runner-wake {
  position: absolute;
  right: 24px;
  top: 10px;
  z-index: 0;
  width: var(--jet-width);
  height: var(--jet-height);
  opacity: var(--jet-opacity);
  pointer-events: none;
  background:
    radial-gradient(ellipse at 98% 50%, rgba(255, 255, 255, 0.96) 0 13%, rgba(93, 156, 236, 0.58) 14% 34%, transparent 66%),
    radial-gradient(circle at 30% 36%, rgba(233, 185, 73, 0.78) 0 2px, transparent 3px),
    radial-gradient(circle at 16% 66%, rgba(107, 101, 220, 0.42) 0 1.7px, transparent 2.7px),
    linear-gradient(90deg, transparent 0%, rgba(107, 101, 220, 0.16) 24%, rgba(93, 156, 236, 0.48) 100%);
  border-radius: 999px 70% 70% 999px;
  clip-path: polygon(0 50%, 20% 18%, 100% 36%, 100% 64%, 20% 82%);
  filter: blur(0.1px);
  transform: translateX(0) scaleX(1);
  transform-origin: 100% 50%;
  transition: width 120ms ease-out, height 120ms ease-out, opacity 100ms ease-out;
  animation: jetFlicker var(--jet-speed) ease-in-out infinite;
  animation-play-state: var(--trail-play);
}

.runner-wake::before,
.runner-wake::after {
  content: "";
  position: absolute;
  right: 3px;
  height: 2px;
  border-radius: 999px;
  background: rgba(107, 101, 220, 0.34);
  transform-origin: 100% 50%;
}

.runner-wake::before {
  top: -3px;
  width: 58%;
  transform: rotate(-9deg);
}

.runner-wake::after {
  bottom: -3px;
  width: 44%;
  background: rgba(93, 156, 236, 0.30);
  transform: rotate(8deg);
}
.runner-shadow {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 1px;
  z-index: 1;
  height: 4px;
  background: rgba(23, 42, 59, 0.12);
  border-radius: 50%;
}

.runner-animal {
  position: absolute;
  inset: -2px 0 0;
  height: 100%;
  z-index: 2;
  object-fit: contain;
  transform: scaleX(-1);
  transform-origin: 50% 82%;
  filter: drop-shadow(0 3px 3px rgba(23, 42, 59, 0.12));
}
.runner-effects {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.runner-spark {
  position: absolute;
  left: clamp(18px, var(--runner-progress), calc(100% - 22px));
  top: 4px;
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: translateX(-32px);
  animation: runnerSpark 460ms ease-out forwards;
}

.runner-spark::before,
.runner-spark::after {
  content: "";
  position: absolute;
  background: #e9b949;
}

.runner-spark::before {
  left: 6px;
  top: 0;
  width: 3px;
  height: 14px;
  border-radius: 999px;
  transform: rotate(38deg);
}

.runner-spark::after {
  left: 0;
  top: 6px;
  width: 14px;
  height: 3px;
  border-radius: 999px;
  transform: rotate(38deg);
}

.idle {
  --trail-play: paused;
  --jet-opacity: 0;
  --jet-width: 0px;
  --jet-height: 10px;
}

.walk {
  --trail-speed: 1.8s;
  --trail-play: running;
  --jet-width: 18px;
  --jet-height: 10px;
  --jet-opacity: 0.46;
  --jet-speed: 0.95s;
}

.run {
  --trail-speed: 1.15s;
  --trail-play: running;
  --jet-width: 30px;
  --jet-height: 13px;
  --jet-opacity: 0.62;
  --jet-speed: 0.62s;
}

.fast {
  --trail-speed: 0.72s;
  --trail-play: running;
  --jet-width: 44px;
  --jet-height: 16px;
  --jet-opacity: 0.78;
  --jet-speed: 0.38s;
}

.sprint {
  --trail-speed: 0.42s;
  --trail-play: running;
  --jet-width: 58px;
  --jet-height: 19px;
  --jet-opacity: 0.94;
  --jet-speed: 0.22s;
}

.sprint .runner-animal {
  filter: drop-shadow(8px 0 0 rgba(93, 156, 236, 0.12)) drop-shadow(0 2px 2px rgba(23, 42, 59, 0.10));
}

.sprint .runner-track::after {
  box-shadow: 0 0 10px rgba(93, 156, 236, 0.18);
}

@keyframes pawTrail {
  100% {
    background-position: -28px 0, -14px 0;
  }
}

@keyframes jetFlicker {
  0%,
  100% {
    transform: translateX(0) scaleX(0.96) scaleY(0.92);
    filter: blur(0.1px);
  }

  50% {
    transform: translateX(-2px) scaleX(1.08) scaleY(1.05);
    filter: blur(0.25px);
  }
}

@keyframes jetLaunch {
  0% {
    opacity: 0.95;
    transform: translateX(2px) scaleX(0.45) scaleY(0.82);
  }

  100% {
    opacity: 0;
    transform: translateX(-26px) scaleX(1.65) scaleY(1.25);
  }
}
@keyframes runnerSpark {
  0% {
    opacity: 0;
    transform: translate(-18px, 8px) scale(0.4) rotate(0deg);
  }

  18% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate(-42px, -8px) scale(1.1) rotate(70deg);
  }
}

.feature-section,
.faq-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: clamp(22px, 4vw, 38px);
  background: #ffffff;
  border-radius: 24px;
}

.section-intro {
  max-width: 760px;
  margin: 0 0 clamp(20px, 3vw, 30px);
}

.section-kicker {
  margin: 0 0 4px;
  color: #6b65dc;
  font-family: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", "SF Pro Rounded", cursive;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.4;
}

.section-intro h2 {
  margin: 0;
  color: #172a3b;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.05;
}

.seo-section .section-intro h2 {
  display: block;
  margin: 0;
  color: #172a3b;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.05;
}

.section-intro p:not(.section-kicker) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-width: 0;
  padding: 18px;
  background: #fbfdff;
  border: 0;
  border-radius: 16px;
  transition: transform 180ms ease, background-color 180ms ease;
}

.feature-card:hover {
  background: #f8fbff;
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  color: #6b65dc;
  background: #f1f4ff;
  border-radius: 12px;
}

.feature-card:nth-child(2n) .feature-icon {
  color: #5d9cec;
  background: #eef6ff;
  border-color: rgba(93, 156, 236, 0.16);
}

.feature-card:nth-child(3n) .feature-icon {
  color: #9a73cf;
  background: #f6f1ff;
  border-color: rgba(154, 115, 207, 0.16);
}

.feature-card:nth-child(4n) .feature-icon {
  color: #2f9b86;
  background: #eef9f6;
  border-color: rgba(47, 155, 134, 0.16);
}

.feature-card:nth-child(4) .feature-icon {
  color: #5d6edb;
  background: #eef3ff;
  border-color: rgba(93, 110, 219, 0.16);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: #172a3b;
  font-size: 1rem;
  line-height: 1.25;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.66;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  overflow: hidden;
  background: #fbfdff;
  border-radius: 14px;
}

.faq-list details[open] {
  background: #f8fbff;
  border-color: rgba(107, 101, 220, 0.18);
}

.faq-list summary {
  position: relative;
  min-height: 54px;
  padding: 15px 52px 15px 18px;
  color: #172a3b;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #6b65dc;
  background: #f1f4ff;
  border-radius: 50%;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.72;
}

.seo-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: clamp(22px, 4vw, 38px);
  background: #ffffff;
  border-top: 1px solid rgba(23, 42, 59, 0.08);
  border-radius:24px;
}

.guide-intro {
  margin-bottom: 8px;
}

.seo-section .section-kicker {
  color: #6b65dc;
}

.seo-section article {
  --seo-accent: #7467df;
  --seo-soft: #f4f2ff;
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  background: transparent;
  border-bottom: 1px solid rgba(23, 42, 59, 0.08);
  border-radius: 0;
  box-shadow: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.seo-section article:nth-child(2) {
  --seo-accent: #5d9cec;
  --seo-soft: #eef6ff;
}

.seo-section article:nth-child(3) {
  --seo-accent: #9a73cf;
  --seo-soft: #f6f1ff;
}

.seo-section article:nth-child(4) {
  --seo-accent: #2f9b86;
  --seo-soft: #eef9f6;
}

.seo-section article:nth-child(5) {
  --seo-accent: #d89a3d;
  --seo-soft: #fff7ea;
}

.seo-section article::before {
  content: none;
}

.seo-section article::after {
  content: none;
}

.seo-section article:hover {
  border-color: color-mix(in srgb, var(--seo-accent) 28%, rgba(23, 42, 59, 0.08));
  transform: translateX(2px);
}

.seo-section h2 {
  display: flex;
  grid-column: 1 / 3;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  color: #17231e;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.25;
}

.seo-section h2 > span:last-child {
  min-width: 0;
}

.seo-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--seo-accent);
  background: var(--seo-soft);
  border-radius: 10px 8px 11px 8px;
  transform: rotate(-2deg);
}

.seo-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.seo-section p,
.seo-section ul {
  grid-column: 2 / 3;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.seo-section ul {
  padding-left: 0;
  list-style: none;
}

.seo-section li {
  position: relative;
  padding-left: 18px;
}

.seo-section li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.78em;
  width: 5px;
  height: 5px;
  background: var(--seo-accent);
  border-radius: 50%;
  opacity: 0.78;
}

.seo-section li + li {
  margin-top: 6px;
}

.score-level-detail {
  display: grid;
  grid-column: 2 / 3;
  gap: 16px;
  min-width: 0;
}

.score-level-detail p {
  grid-column: auto;
}

.score-level-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border-radius: 18px;
}

.score-level-matrix {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: #172a3b;
  font-size: 0.92rem;
}

.score-level-matrix th,
.score-level-matrix td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.score-level-matrix thead th {
  color: #59685f;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.score-level-matrix tbody th {
  color: #172a3b;
  font-weight: 900;
  white-space: nowrap;
}

.score-level-matrix tbody tr + tr {
  border-top: 1px solid rgba(116, 103, 223, 0.12);
}

.score-level-matrix td {
  color: #546960;
  line-height: 1.48;
}

@keyframes progress-flow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 180% 50%;
  }
}

@keyframes soft-pulse {
  50% {
    transform: scaleY(1.08);
  }
}

@keyframes easy-shine {
  50% {
    filter: brightness(1.08);
  }
}

@keyframes master-bounce {
  0%,
  100% {
    transform: scaleY(1);
  }
  45% {
    transform: scaleY(1.14);
  }
}


.rating-modal[hidden] {
  display: none;
}

.rating-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.rating-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(23, 42, 59, 0.28);
  backdrop-filter: blur(5px);
  pointer-events: none;
}

.rating-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(210px, 0.86fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  width: min(760px, calc(100vw - 34px));
  padding: clamp(16px, 3vw, 24px);
  color: #172a3b;
  background: #ffffff;
  border: 1px solid rgba(107, 101, 220, 0.14);
  border-radius: 22px 20px 24px 19px;
  box-shadow: 0 24px 70px rgba(23, 42, 59, 0.18);
}

.rating-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #5f6a64;
  background: #f2f5f7;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.rating-close:hover {
  color: #172a3b;
  background: #e8f2fb;
  transform: translateY(-1px);
}

.rating-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.rating-media {
  overflow: hidden;
  min-height: 220px;
  border-radius: 18px 16px 20px 15px;
  background: #e8f2fb;
}

.rating-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.rating-content {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 8px 34px 8px 0;
}

.rating-eyebrow {
  margin: 0;
  color: #65706b;
  font-family: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", "SF Pro Rounded", cursive;
  font-size: 0.88rem;
  font-weight: 800;
}

.rating-content h2 {
  margin: 0;
  color: #172a3b;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
}

.rating-stars {
  display: flex;
  gap: 4px;
  color: #d8dde4;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1;
}

.rating-stars span {
  transform: rotate(-4deg);
}

.rating-stars .filled {
  color: #f0b84d;
  text-shadow: 0 2px 0 rgba(23, 42, 59, 0.08);
}

.rating-summary {
  margin: 0;
  color: #65706b;
  font-size: 1rem;
  line-height: 1.65;
}

.rating-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.rating-stats span {
  padding: 8px 10px;
  color: #65706b;
  background: #f4f7fb;
  border: 1px solid rgba(93, 156, 236, 0.14);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.rating-stats strong {
  color: #172a3b;
}

body.rating-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 138px;
  }

  #test,
  #score-records,
  #features,
  #guide,
  #faq,
  #score-levels {
    scroll-margin-top: 138px;
  }

  .rating-modal {
    padding: 16px;
  }

  .rating-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .rating-media,
  .rating-media img {
    min-height: 190px;
  }

  .rating-content {
    padding: 0;
  }
  .navbar {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .language-switcher {
    align-self: flex-start;
  }

  .hero {
    padding-top: 46px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-section,
  .faq-section {
    padding: 20px;
  }

  .records-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .records-clear {
    width: 44px;
  }

  .records-table-wrap {
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .records-table,
  .records-table thead,
  .records-table tbody,
  .records-table tr,
  .records-table th,
  .records-table td {
    display: block;
  }

  .records-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .records-table {
    border-spacing: 0;
  }

  .records-table tbody tr {
    margin-bottom: 10px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 16px 14px 18px 13px;
  }

  .records-table tbody th,
  .records-table tbody td {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    padding: 7px 2px;
    background: transparent;
    border: 0;
    border-radius: 0;
    white-space: normal;
    text-align: left;
  }

  .records-table tbody th::before,
  .records-table tbody td::before {
    content: attr(data-label);
    color: #65706b;
    font-size: 0.72rem;
    font-weight: 850;
    text-align: left;
    white-space: nowrap;
  }

  .records-table tbody th,
  .records-table tbody td {
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .time-btn {
    padding: 0 10px;
  }

  .click-area {
    min-height: 230px;
  }

  .tester-workspace {
    grid-template-columns: 1fr;
  }

  .side-panel {
    min-height: auto;
    padding: 0;
  }

  .click-stack {
    min-height: auto;
  }

  .stats-grid,
  .seo-section {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    height: auto;
    margin-top: 0;
  }

  .tool-controls {
    justify-content: flex-start;
    margin-top: 14px;
    padding-right: 0;
  }

  .runner-progress-head {
    align-items: stretch;
    flex-direction: column;
  }
  .seo-section {
    gap: 0;
    padding: 20px;
  }

  .seo-section article {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 0;
  }

  .seo-section h2 {
    grid-column: 1 / 3;
    align-items: center;
    gap: 12px;
    font-size: 1.14rem;
  }

  .seo-section .section-intro h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  }

  .seo-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-height: 760px) {
  .test-panel:fullscreen {
    --click-stack-height: min(82vh, 640px);
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .test-panel:fullscreen .click-stack {
    grid-template-rows: minmax(430px, 1fr) auto;
  }

  .test-panel:fullscreen .click-area {
    min-height: 430px;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 156px;
  }

  #test,
  #score-records,
  #features,
  #guide,
  #faq,
  #score-levels {
    scroll-margin-top: 156px;
  }

  .navbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 8px;
  }

  .brand {
    grid-column: 1 / -1;
  }

  .nav-links {
    grid-column: 1 / 2;
    width: auto;
    align-content: start;
    overflow: visible;
    white-space: normal;
  }

  .language-switcher {
    grid-column: 2 / 3;
    align-self: start;
    justify-self: end;
  }

  .language-menu {
    right: 0;
  }

  .tool-controls {
    justify-content: center;
    width: 100%;
    margin-top: 12px;
  }

  .records-head {
    position: relative;
    padding-right: 56px;
  }

  .records-clear {
    position: absolute;
    top: 0;
    right: 0;
  }

  .records-table tbody tr {
    padding: 14px 16px;
  }

  .records-table tbody th,
  .records-table tbody td {
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 34px;
    padding: 6px 0;
  }
}

@media (max-width: 460px) {
  .test-section,
  .records-section,
  .feature-section,
  .seo-section,
  .faq-section,
  .hero,
  .navbar {
    width: min(100% - 22px, 1200px);
  }

  .nav-links {
    gap: 4px;
    font-size: 0.86rem;
  }

  .nav-links a {
    padding: 7px 9px;
  }

  .language-switcher summary {
    width: 38px;
    min-height: 34px;
    padding: 6px;
    font-size: 0.8rem;
  }

  .language-symbol {
    width: 19px;
    height: 19px;
  }

  .language-menu a {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .records-section {
    margin-top: -30px;
    padding: 16px;
  }

  .feature-section,
  .seo-section,
  .faq-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 16px;
  }

  .faq-list summary {
    padding-left: 16px;
  }

  .test-panel {
    padding: 14px;
  }

  .click-area {
    min-height: 210px;
    padding: 20px;
  }

  .click-area-icon {
    width: 78px;
    height: 78px;
  }

  .time-toolbar {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
  }
  .time-btn {
    min-height: 32px;
    height: 32px;
    padding: 0 2px 6px;
    border-radius: 8px;
    font-size: 0.82rem;
  }
  .stat-card,
  .click-progress {
    padding: 14px;
  }
  .seo-section article {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .seo-section h2,
  .seo-section p,
  .seo-section ul,
  .score-level-detail {
    grid-column: 1 / 2;
  }

  .seo-icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
















