:root {
  color-scheme: light;
  --blue: #0a3a8f;
  --deep-blue: #0a3a8f;
  --blue-soft: #eef5ff;
  --green: #009b63;
  --emerald: #009b63;
  --green-soft: #effbf5;
  --cyan: #16c8d9;
  --red: #ff3b30;
  --orange: #f06a26;
  --cinnabar: #d84a1b;
  --ochre-brown: #8a4f2a;
  --yellow: #fbbc04;
  --ink: #111827;
  --muted: #687385;
  --line: #e5e9f2;
  --paper: #ffffff;
  --shadow: 0 16px 38px rgba(28, 45, 80, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
}

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

button,
input {
  font: inherit;
}

.site-header {
  min-height: 102px;
  background: #fff;
}

.brand,
.header-tools,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.text-brand strong {
  letter-spacing: 0;
}

.mini-mark {
  display: inline-flex;
  align-items: baseline;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.13em;
}

.mini-mark span:nth-child(1),
.mini-mark span:nth-child(2) {
  color: var(--blue);
  -webkit-text-stroke: 1px var(--blue);
  color: transparent;
}

.mini-mark span:nth-child(3) {
  color: var(--green);
}

.mini-mark span:nth-child(4) {
  color: var(--blue);
}

.nav {
  justify-content: center;
  gap: clamp(24px, 4vw, 52px);
  color: #202634;
  font-size: 15px;
  font-weight: 760;
}

.nav a {
  position: relative;
  display: inline-flex;
  min-height: 72px;
  align-items: center;
}

.nav a.active {
  color: var(--blue);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.header-tools {
  gap: 22px;
  color: #202634;
  font-size: 14px;
  font-weight: 720;
  white-space: nowrap;
}

.login-link {
  min-height: 42px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(10, 58, 143, 0.22);
}

.hero {
  position: relative;
  display: flex;
  min-height: 590px;
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 22px 0 92px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  position: relative;
  display: flex;
  width: min(860px, 100%);
  min-height: 150px;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 28px);
}

.hero-orange-mark {
  width: clamp(58px, 8vw, 88px);
  height: clamp(58px, 8vw, 88px);
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(138, 79, 42, 0.18));
  animation: orangeMarkLoop 5.8s cubic-bezier(0.18, 0.82, 0.22, 1) infinite both;
}

.logo-numbers {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(88px, 12vw, 138px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.n {
  display: inline-block;
  transform-origin: 50% 86%;
  animation: numberQueueKick 5.8s cubic-bezier(0.18, 0.82, 0.22, 1) infinite both;
  animation-delay: calc(var(--i) * 150ms);
}

.outline {
  color: var(--deep-blue);
  -webkit-text-stroke: 0 transparent;
  paint-order: stroke fill;
}

.n-one-a,
.n-one-b {
  color: var(--deep-blue);
}

.n-eight {
  color: var(--emerald);
}

.n-five {
  color: var(--ochre-brown);
}

.n-six {
  color: #101010;
}

.n-six::after {
  display: none;
}

.queue-ball {
  position: absolute;
  left: calc(50% - 260px);
  bottom: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff 0 10%, transparent 11%),
    conic-gradient(from 28deg, #fff0d2, var(--orange), var(--cinnabar), #7f1e10, var(--orange), #fff0d2);
  box-shadow: 0 10px 20px rgba(216, 74, 27, 0.22), 0 0 0 6px rgba(240, 106, 38, 0.12);
  animation: ballAcrossNumbers 5.8s cubic-bezier(0.65, 0, 0.35, 1) infinite both;
}

.hero-wordmark {
  margin-top: 8px;
  color: #05070c;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.055em;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  margin-top: 22px;
  color: #5d6675;
  font-size: 17px;
  letter-spacing: 0.34em;
}

.hero-kicker span {
  width: 50px;
  height: 1px;
  background: #9aa6b7;
}

.search-box {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  width: min(760px, 100%);
  min-height: 76px;
  margin-top: 42px;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid #d8deea;
  border-radius: 12px;
  box-shadow: 0 15px 36px rgba(31, 45, 75, 0.13);
}

.search-icon {
  justify-self: center;
  width: 24px;
  height: 24px;
  border: 2px solid #8d98a8;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  margin: 18px 0 0 17px;
  background: #8d98a8;
  border-radius: 999px;
  transform: rotate(45deg);
}

.search-box input {
  min-width: 0;
  height: 58px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 18px;
}

.search-box button {
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 18px;
  font-weight: 850;
  cursor: pointer;
}

.hot-search {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.hot-label {
  display: inline-flex;
  align-items: center;
  color: #202634;
  font-size: 15px;
  font-weight: 820;
}

.hot-label::before {
  content: "🔥";
  margin-right: 6px;
}

.hot-search button {
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
  color: #687385;
  font-size: 14px;
  cursor: pointer;
}

.wave-field {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 100vw;
  height: 130px;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
}

.wave {
  position: absolute;
  left: -6vw;
  right: -6vw;
  bottom: 22px;
  height: 120px;
  border-bottom: 4px solid;
  border-radius: 0 0 50% 50%;
}

.wave-a {
  border-color: rgba(23, 105, 245, 0.9);
  transform: rotate(-2.5deg);
}

.wave-b {
  bottom: 34px;
  border-color: rgba(37, 200, 120, 0.72);
  transform: rotate(2deg);
}

.wave-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #fff;
}

.dot-a {
  left: 25%;
  bottom: 50px;
  border-color: var(--blue);
}

.dot-b {
  left: 65%;
  bottom: 42px;
}

.dot-c {
  left: 81%;
  bottom: 84px;
}

.section {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-strip article {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  min-height: 78px;
}

.stats-strip strong {
  color: var(--ink);
  font-size: 26px;
  font-weight: 950;
}

.stats-strip p {
  grid-column: 2;
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.stat-icon,
.entry-icon {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.stat-icon::before,
.entry-icon::before {
  content: "";
  width: 30px;
  height: 30px;
  border: 4px solid currentColor;
  border-radius: 8px;
}

.robot::after,
.community::after,
.chat::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 10px;
  border: 4px solid currentColor;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  bottom: 3px;
}

.cube,
.sliders,
.community,
.chat {
  color: var(--green);
}

.download,
.api {
  color: var(--blue);
}

.news {
  color: var(--orange);
}

.search-results {
  display: none;
  padding: 48px 0;
}

body.has-query .search-results {
  display: block;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-head h2,
.analysis-section h2,
.quick-entry h2,
.method h2 {
  margin: 0;
  font-size: 26px;
}

.section-head p,
.method p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.data-date {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.filters,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters {
  margin-bottom: 14px;
}

.filter {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #3c4043;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.filter.active {
  color: #fff;
  border-color: transparent;
  background: var(--blue);
}

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

.resource-card {
  min-height: 214px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.resource-card h3,
.download-card h3 {
  margin: 0;
  font-size: 18px;
}

.resource-card p,
.download-card p {
  color: var(--muted);
  line-height: 1.72;
}

.tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #f5f7fb;
  color: #5d687a;
  font-size: 12px;
  font-weight: 760;
}

.resource-card a,
.download-card a,
.board-head a,
.more-button,
.method a {
  color: var(--blue);
  font-weight: 850;
}

.more-button {
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.more-button::after {
  content: "›";
  margin-left: 6px;
}

.more-button[aria-expanded="true"]::after {
  content: "⌃";
}

.leaderboards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  padding: 24px 0 34px;
  border-bottom: 1px solid var(--line);
}

.board + .board {
  border-left: 1px solid var(--line);
  padding-left: 44px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.board-head h2 {
  margin: 0;
  font-size: 24px;
}

.compact-ranking {
  display: grid;
}

.compact-row {
  display: grid;
  grid-template-columns: 44px 54px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.compact-row:last-child {
  border-bottom: 0;
}

.rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: #aab3c2;
  font-size: 14px;
  font-weight: 950;
}

.compact-row:nth-child(1) .rank-medal {
  background: var(--red);
}

.compact-row:nth-child(2) .rank-medal {
  background: var(--orange);
}

.compact-row:nth-child(3) .rank-medal {
  background: #ffb000;
}

.product-icon {
  --logo-bg: #111;
  --logo-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
  color: var(--logo-fg);
  background: var(--logo-bg);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  overflow: hidden;
}

.product-icon span {
  position: relative;
  z-index: 1;
}

.product-icon::before,
.product-icon::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.logo-openai {
  --logo-bg: radial-gradient(circle at 35% 32%, #3d4654, #101318 70%);
  --logo-fg: #fff;
  border-radius: 50%;
}

.logo-openai::before {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  transform: rotate(28deg);
}

.logo-codex {
  --logo-bg: linear-gradient(135deg, #111827, #0a3a8f);
  --logo-fg: #7df9c7;
  border-radius: 12px;
}

.logo-claude {
  --logo-bg: linear-gradient(135deg, #f7efe4, #d8ad82);
  --logo-fg: #7a431e;
}

.logo-google {
  --logo-bg: conic-gradient(from 40deg, #4285f4, #34a853, #fbbc04, #ea4335, #4285f4);
  --logo-fg: #fff;
}

.logo-cursor {
  --logo-bg: linear-gradient(135deg, #0b1020, #3b82f6);
  --logo-fg: #fff;
}

.logo-perplexity {
  --logo-bg: linear-gradient(135deg, #062e31, #12b8b0);
  --logo-fg: #e9fffb;
}

.logo-devin {
  --logo-bg: linear-gradient(135deg, #25113f, #7c3aed);
  --logo-fg: #fff;
}

.logo-dify {
  --logo-bg: linear-gradient(135deg, #064e3b, #22c55e);
  --logo-fg: #ecfdf5;
}

.logo-langgraph {
  --logo-bg: linear-gradient(135deg, #0f2c59, #38bdf8);
  --logo-fg: #fff;
}

.logo-n8n {
  --logo-bg: linear-gradient(135deg, #7c2d12, #f97316);
  --logo-fg: #fff7ed;
}

.logo-crewai {
  --logo-bg: linear-gradient(135deg, #2e1065, #a855f7);
  --logo-fg: #faf5ff;
}

.logo-autogen {
  --logo-bg:
    linear-gradient(90deg, #f25022 0 49%, transparent 49% 51%, #7fba00 51%),
    linear-gradient(#fff 0 49%, transparent 49% 51%, #fff 51%);
  --logo-fg: #111827;
}

.logo-xai {
  --logo-bg: #050505;
  --logo-fg: #f9fafb;
}

.logo-qwen {
  --logo-bg: linear-gradient(135deg, #1d4ed8, #7c3aed);
  --logo-fg: #eef2ff;
}

.logo-deepseek {
  --logo-bg: linear-gradient(135deg, #0f766e, #2563eb);
  --logo-fg: #ecfeff;
}

.logo-meta {
  --logo-bg: linear-gradient(135deg, #0866ff, #3b82f6);
  --logo-fg: #fff;
}

.logo-kimi {
  --logo-bg: radial-gradient(circle at 68% 34%, #ffffff 0 12%, transparent 13%), #111827;
  --logo-fg: #e5e7eb;
}

.logo-mistral {
  --logo-bg: linear-gradient(135deg, #ffb000, #ff5a1f);
  --logo-fg: #111827;
}

.logo-minimax {
  --logo-bg: linear-gradient(135deg, #ec4899, #8b5cf6);
  --logo-fg: #fff;
}

.logo-gemma {
  --logo-bg: linear-gradient(135deg, #e0f2fe, #fef3c7);
  --logo-fg: #0a3a8f;
}

.logo-ernie {
  --logo-bg: linear-gradient(135deg, #0a3a8f, #06b6d4);
  --logo-fg: #fff;
}

.compact-main strong {
  display: block;
  font-size: 17px;
}

.compact-main span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.compact-score {
  color: var(--blue);
  font-size: 20px;
  font-weight: 950;
}

.compact-row:nth-child(-n + 3) .compact-score {
  color: var(--red);
}

.analysis-section {
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--line);
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.analysis-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid;
  border-radius: 8px;
  background: #fff;
}

.analysis-card:nth-child(1) {
  border-color: rgba(23, 105, 245, 0.35);
  background: linear-gradient(145deg, #f8fbff, #fff);
}

.analysis-card:nth-child(2) {
  border-color: rgba(37, 200, 120, 0.35);
  background: linear-gradient(145deg, #f6fff9, #fff);
}

.analysis-card:nth-child(3) {
  border-color: rgba(22, 200, 217, 0.35);
  background: linear-gradient(145deg, #f6fdff, #fff);
}

.analysis-card:nth-child(4) {
  border-color: rgba(255, 159, 10, 0.38);
  background: linear-gradient(145deg, #fffaf1, #fff);
}

.analysis-card h3 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 19px;
}

.analysis-card:nth-child(2) h3 {
  color: #16894f;
}

.analysis-card:nth-child(3) h3 {
  color: #0589a1;
}

.analysis-card:nth-child(4) h3 {
  color: #b96a00;
}

.analysis-card ul {
  margin: 0;
  padding-left: 18px;
  color: #202634;
  line-height: 2;
}

.analysis-card a {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: var(--blue);
  font-weight: 850;
}

.analysis-art {
  position: absolute;
  right: 22px;
  bottom: 30px;
  width: 96px;
  height: 96px;
  opacity: 0.9;
}

.art-stack {
  background:
    linear-gradient(135deg, rgba(23, 105, 245, 0.05), rgba(23, 105, 245, 0.32)),
    linear-gradient(45deg, transparent 40%, rgba(23, 105, 245, 0.45) 40% 60%, transparent 60%);
  clip-path: polygon(50% 0, 100% 28%, 50% 56%, 0 28%);
  box-shadow: 0 38px 0 rgba(23, 105, 245, 0.32), 0 76px 0 rgba(23, 105, 245, 0.18);
}

.art-bars {
  background:
    linear-gradient(to top, rgba(37, 200, 120, 0.28) 0 26%, transparent 26%),
    linear-gradient(to top, rgba(37, 200, 120, 0.42) 0 48%, transparent 48%),
    linear-gradient(to top, rgba(37, 200, 120, 0.66) 0 74%, transparent 74%);
  background-size: 28% 100%;
  background-position: 0 0, 38px 0, 76px 0;
  background-repeat: no-repeat;
}

.art-vs {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 200, 217, 0.22);
  color: #0497ad;
  font-size: 30px;
  font-weight: 950;
}

.art-vs::before {
  content: "VS";
}

.art-trend {
  border-bottom: 18px solid #ffbd25;
  border-right: 18px solid #ffbd25;
  transform: skew(-16deg) rotate(-16deg);
}

.quick-entry {
  padding: 34px 0 42px;
  border-bottom: 1px solid var(--line);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.entry-grid a {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  min-height: 74px;
}

.entry-grid strong {
  display: block;
  font-size: 17px;
}

.entry-grid small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.download-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.download-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.download-card .license {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #16894f;
  font-size: 12px;
  font-weight: 800;
}

.method {
  padding: 34px 0 40px;
}

.method ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 clamp(28px, 4vw, 48px);
  color: #5d6675;
  border-top: 1px solid var(--line);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  font-size: 14px;
}

.icp {
  color: #4b5563;
  font-size: 18px;
  font-weight: 760;
}

.empty {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
}

@keyframes numberQueueKick {
  0% {
    transform: translateX(-0.62em) translateY(0.12em) rotate(-5deg) scale(0.94);
    opacity: 0.38;
  }
  12% {
    opacity: 1;
  }
  30% {
    transform: translateX(-0.28em) translateY(-0.08em) rotate(4deg) scale(1.04);
  }
  44%,
  82% {
    transform: translateX(0) translateY(0) rotate(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(0.28em) translateY(0.08em) rotate(4deg) scale(0.96);
    opacity: 0.52;
  }
}

@keyframes ballAcrossNumbers {
  0% {
    transform: translateX(-42px) translateY(18px) rotate(0turn) scale(0.7);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  30% {
    transform: translateX(110px) translateY(-18px) rotate(0.7turn) scale(1);
  }
  46% {
    transform: translateX(250px) translateY(10px) rotate(1.4turn) scale(0.94);
  }
  62% {
    transform: translateX(394px) translateY(-16px) rotate(2turn) scale(1);
  }
  76% {
    transform: translateX(482px) translateY(2px) rotate(2.4turn) scale(0.7);
    opacity: 0;
  }
  100% {
    transform: translateX(-42px) translateY(18px) rotate(0turn) scale(0.7);
    opacity: 0;
  }
}

@keyframes orangeMarkLoop {
  0% {
    transform: translateX(-18px) rotate(-12deg) scale(0.9);
    opacity: 0.58;
  }
  26% {
    transform: translateX(3px) rotate(4deg) scale(1.04);
    opacity: 1;
  }
  42%,
  82% {
    transform: translateX(0) rotate(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(12px) rotate(10deg) scale(0.94);
    opacity: 0.64;
  }
}

@media (max-width: 1080px) {
  .site-header {
    min-height: 86px;
    padding: 0;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav a {
    min-height: 42px;
  }

  .header-tools {
    gap: 12px;
  }

  .leaderboards,
  .analysis-grid,
  .entry-grid,
  .resource-list,
  .download-grid,
  .method ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board + .board {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 56px;
    padding: 0;
  }

  .header-tools {
    display: none;
  }

  .hero,
  .section,
  .stats-strip {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 44px 0 88px;
  }

  .logo-numbers {
    font-size: clamp(58px, 18vw, 82px);
  }

  .outline {
    -webkit-text-stroke-width: 0;
  }

  .hero-logo {
    gap: 8px;
  }

  .hero-orange-mark {
    width: 48px;
    height: 48px;
  }

  .queue-ball {
    display: none;
  }

  .hero-wordmark {
    font-size: 34px;
  }

  .hero-kicker {
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  .hero-kicker span {
    width: 28px;
  }

  .search-box {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 68px;
    border-radius: 24px;
  }

  .search-box button {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
    border-radius: 20px;
  }

  .stats-strip,
  .leaderboards,
  .analysis-grid,
  .entry-grid,
  .resource-list,
  .download-grid,
  .method ul {
    grid-template-columns: 1fr;
  }

  .stats-strip article {
    border-bottom: 1px solid var(--line);
  }

  .compact-row {
    grid-template-columns: 34px 44px 1fr auto;
    gap: 10px;
  }

  .analysis-card {
    min-height: 218px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 18px;
  }

  .icp {
    font-size: 15px;
  }
}

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

  .queue-ball {
    display: none;
  }
}
