:root {
  --bg: #08111b;
  --bg-elevated: #0d1725;
  --bg-surface: #111d2d;
  --bg-surface-2: #152235;
  --bg-soft: #0c1522;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(125, 211, 252, 0.25);
  --text: #e6edf7;
  --text-strong: #f8fbff;
  --text-soft: #96a6bc;
  --muted: #7f8da3;
  --primary: #4ea2ff;
  --primary-strong: #2b7fff;
  --primary-soft: rgba(78, 162, 255, 0.16);
  --cyan: #3dd9ff;
  --amber: #ffb454;
  --danger: #ff6b78;
  --success: #53d89b;
  --shadow-lg: 0 22px 48px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 28px rgba(0, 0, 0, 0.26);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(61, 217, 255, 0.10), transparent 26%),
    radial-gradient(circle at top left, rgba(78, 162, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #08111b 0%, #09131f 45%, #07101a 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: #9ed4ff; text-decoration: none; }
a:hover { color: #c5e6ff; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font: inherit;
}
button { cursor: pointer; }
input, select, textarea {
  width: 100%;
  background: rgba(10, 17, 27, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(61, 217, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(61, 217, 255, 0.12);
}
textarea { min-height: 150px; resize: vertical; }

h1, h2, h3, h4 {
  color: var(--text-strong);
  line-height: 1.15;
  margin: 0 0 0.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
p, ul, ol { margin-top: 0; }

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}
.narrow { max-width: 820px; }
.section {
  padding: 2rem 0;
}
.alt-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.03));
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(18, 29, 45, 0.96), rgba(11, 21, 34, 0.97));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.18), transparent 55%);
  pointer-events: none;
}
.subtle-card {
  background: linear-gradient(180deg, rgba(16, 26, 40, 0.98), rgba(9, 18, 29, 0.98));
}
.lead {
  font-size: 1.08rem;
  color: #c2cfdf;
  max-width: 66ch;
}
.muted, .text-soft { color: var(--text-soft); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #8dc8ff;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 700;
  margin-bottom: .8rem;
}
.eyebrow::before {
  content: "";
  width: 1.7rem;
  height: 1px;
  background: rgba(141, 200, 255, .55);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-main { flex: 1; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 13, 21, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: var(--text-strong);
}
.brand strong { display: block; font-size: 1rem; }
.brand small { display: block; color: var(--text-soft); font-size: .82rem; }
.site-nav, .nav-actions, .locale-switch {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.site-nav a {
  padding: .72rem .92rem;
  border-radius: 11px;
  color: #c5d3e5;
  font-size: .95rem;
}
.site-nav a:hover,
.locale-switch a:hover {
  background: rgba(255,255,255,0.05);
  color: #f5fbff;
}
.locale-switch a {
  padding: .55rem .65rem;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: .8rem;
  font-weight: 700;
}
.locale-switch a.active {
  background: rgba(78, 162, 255, 0.14);
  color: #dff2ff;
}
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #dce8f5;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 42px;
  padding: .74rem 1.02rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #07121e;
  background: linear-gradient(180deg, #6fc3ff, #4199ff 70%);
  box-shadow: 0 16px 30px rgba(31, 112, 215, 0.26);
}
.btn-primary:hover { color: #04101c; }
.btn-soft {
  color: #dce9f5;
  background: rgba(255,255,255,0.04);
  border-color: rgba(148, 163, 184, 0.18);
}
.btn-soft:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(148, 163, 184, 0.28);
}
.btn-ghost {
  color: #b9c8da;
  background: transparent;
  border-color: rgba(148, 163, 184, 0.16);
}
.btn-ghost:hover {
  color: #edf5ff;
  background: rgba(255,255,255,0.05);
}
.inline-form { display: inline-flex; margin: 0; }
.text-link {
  color: #cbe8ff;
  font-weight: 700;
}
.text-link:hover { color: #ffffff; }

.hero-section {
  padding: 2.6rem 0 2rem;
}
.hero-grid,
.hero-grid-strict {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 1.5rem;
  align-items: stretch;
}
.hero-section h1,
.tool-hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 4.3rem);
}
.hero-actions,
.panel-action-row,
.card-meta-row,
.section-head-spread {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.hero-chip-row,
.strict-chip-row {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .5rem .78rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: #d3e5f7;
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: .84rem;
}
.small-chip { min-height: 30px; padding: .35rem .6rem; font-size: .75rem; }

.hero-console,
.tool-specs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
}
.hero-console-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.hero-console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.launcher-card {
  display: block;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.launcher-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 11px;
  background: rgba(78, 162, 255, 0.14);
  color: #dff1ff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: .7rem;
}
.launcher-card strong { display: block; color: #f7fbff; }
.launcher-card small { color: var(--text-soft); }
.launcher-card:hover {
  border-color: rgba(78, 162, 255, 0.34);
  background: rgba(78, 162, 255, 0.08);
}
.hero-telemetry,
.spec-list,
.stat-grid,
.value-grid,
.card-grid,
.category-grid,
.result-grid,
.metrics-grid,
.tool-copy-grid,
.footer-grid,
.admin-stats {
  display: grid;
  gap: 1rem;
}
.hero-telemetry,
.spec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-telemetry div,
.spec-list div {
  padding: .9rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.hero-telemetry span,
.spec-list span,
.metric-box span,
.result-grid span,
.mouse-box span,
.stat-card span,
.value-card span {
  display: block;
  color: var(--text-soft);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .45rem;
}
.hero-telemetry strong,
.spec-list strong,
.metric-box strong,
.result-grid strong,
.mouse-box strong,
.stat-card strong {
  display: block;
  color: var(--text-strong);
  font-size: 1.3rem;
}

.stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-copy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.section-head.center {
  text-align: center;
  display: block;
}
.two-col,
.two-col-balanced,
.tool-layout,
.tool-hero-grid {
  display: grid;
  gap: 1.2rem;
}
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two-col-balanced { align-items: stretch; }
.tool-hero-grid { grid-template-columns: minmax(0, 1.1fr) 360px; align-items: stretch; }
.tool-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.tool-layout-wide { align-items: stretch; }
.tool-sidebar { display: grid; gap: 1rem; }

.icon-bubble {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(78, 162, 255, 0.15);
  color: #def2ff;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.tool-card, .blog-card, .value-card, .category-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.tool-card p, .blog-card p, .value-card p, .category-card p { flex: 1; color: #b9c8da; }

.feature-list,
.footer-list,
.steps {
  margin: 0;
  padding-left: 1.1rem;
  color: #c3d3e5;
}
.feature-list li,
.footer-list li,
.steps li { margin-bottom: .6rem; }
.footer-list { list-style: none; padding-left: 0; }
.footer-list a { color: #c7ddf2; }
.compact-steps li { margin-bottom: .8rem; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  font-size: .9rem;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
}
.breadcrumbs a { color: #b3c6dc; }
.breadcrumbs span { opacity: .55; }
.tool-hero {
  padding: 2rem 0 1.6rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.tool-runtime {
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(13, 21, 34, 0.98), rgba(8, 16, 26, 0.98));
}
.tool-runtime.theme-click {
  background:
    radial-gradient(circle at top right, rgba(78, 162, 255, 0.11), transparent 25%),
    linear-gradient(180deg, rgba(13, 21, 34, 0.98), rgba(8, 16, 26, 0.98));
}
.tool-runtime.theme-typing {
  background:
    radial-gradient(circle at top right, rgba(61, 217, 255, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(13, 21, 34, 0.98), rgba(9, 17, 28, 0.98));
}
.tool-runtime.theme-reaction,
.tool-hero.theme-reaction {
  background:
    radial-gradient(circle at top right, rgba(83, 216, 155, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(10, 21, 30, 0.98), rgba(8, 16, 24, 0.98));
}
.tool-runtime.theme-games,
.tool-hero.theme-games {
  background:
    radial-gradient(circle at top right, rgba(255, 180, 84, 0.08), transparent 22%),
    radial-gradient(circle at top left, rgba(78, 162, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(13, 21, 34, 0.98), rgba(8, 16, 26, 0.98));
}
.tool-runtime.theme-mouse,
.tool-hero.theme-mouse,
.tool-runtime.theme-space,
.tool-hero.theme-space,
.tool-runtime.theme-utility,
.tool-hero.theme-utility,
.tool-hero.theme-click,
.tool-hero.theme-typing {
  background:
    radial-gradient(circle at top right, rgba(78, 162, 255, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(10, 18, 29, 0.98), rgba(8, 14, 23, 0.98));
}
.runtime-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}
.runtime-header-controls {
  display: flex;
  gap: .8rem;
  align-items: center;
  flex-wrap: wrap;
}
.field-inline {
  display: grid;
  gap: .35rem;
  min-width: 140px;
}
.field-inline span { color: var(--text-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}
.metric-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  padding: 1rem;
}
.runtime-stage {
  margin-bottom: 1rem;
}
.tool-panel {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(9, 15, 24, 0.94), rgba(13, 21, 33, 0.96)),
    linear-gradient(135deg, rgba(255,255,255,0.02), transparent 55%);
  overflow: hidden;
}
.tool-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .18;
  pointer-events: none;
}
.panel-toolbar,
.history-row,
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
}
.panel-toolbar {
  position: relative;
  z-index: 2;
  padding: 1rem 1rem 0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 34px;
  padding: .45rem .72rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255,255,255,0.04);
  color: #d3e5f7;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8aa0b9;
}
.status-pill.is-live::before { background: var(--success); box-shadow: 0 0 0 6px rgba(83, 216, 155, 0.12); }
.status-pill.is-alert::before { background: var(--danger); box-shadow: 0 0 0 6px rgba(255, 107, 120, 0.12); }
.status-pill.is-ready::before { background: var(--primary); box-shadow: 0 0 0 6px rgba(78, 162, 255, 0.12); }
.panel-inner,
.typing-stage,
.challenge-stage,
.mouse-grid,
.round-breakdown {
  position: relative;
  z-index: 2;
}
.panel-inner {
  padding: 2.3rem 1.1rem 1.3rem;
  text-align: center;
}
.panel-inner h3 { font-size: clamp(1.4rem, 2vw, 2rem); }
.panel-inner p { max-width: 46ch; margin: 0 auto 1.2rem; color: #b9c8da; }
.history-row {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.typing-stage {
  padding: 0 1rem 5rem;
}
.typing-text {
  min-height: 160px;
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(0,0,0,0.18);
  color: #dbe7f2;
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}
.typing-input {
  min-height: 140px;
  background: rgba(7, 13, 21, 0.92);
}
.char.correct { color: #dfffe8; background: rgba(83, 216, 155, 0.14); }
.char.wrong { color: #ffdfe2; background: rgba(255, 107, 120, 0.16); }
.char.current { outline: 1px solid rgba(61, 217, 255, 0.7); border-radius: 5px; }
.challenge-stage {
  position: absolute;
  inset: 84px 1rem 5rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(8, 14, 23, 0.65), rgba(11, 18, 29, 0.78));
  overflow: hidden;
}
.challenge-target {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 22px;
  background: radial-gradient(circle at 35% 35%, #86d8ff, #3589ff 70%, #2364e6 100%);
  box-shadow: 0 18px 34px rgba(31, 112, 215, 0.34);
  transform: translate(-50%, -50%);
  transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease, opacity .18s ease, transform .18s ease;
}
.challenge-target.is-hot {
  box-shadow: 0 0 0 8px rgba(61, 217, 255, 0.14), 0 18px 34px rgba(31, 112, 215, 0.34);
}
.challenge-target.is-hidden { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.72); }
.challenge-grid {
  position: absolute;
  inset: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  align-items: stretch;
}
.challenge-grid button {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255,255,255,0.03);
  color: #dce8f4;
  font-size: 1rem;
  font-weight: 800;
}
.challenge-grid button.active,
.challenge-grid button.flash {
  background: rgba(78, 162, 255, 0.18);
  border-color: rgba(78, 162, 255, 0.42);
  color: #ffffff;
}
.challenge-grid button.wrong {
  background: rgba(255, 107, 120, 0.20);
  border-color: rgba(255, 107, 120, 0.42);
}
.mouse-grid {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 5rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .7rem;
}
.mouse-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  padding: 1rem;
}
.result-card {
  padding-top: 1.2rem;
}
.result-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: .9rem; }
.round-breakdown {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.round-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .65rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #d8e7f6;
  font-size: .8rem;
}

.faq-list { display: grid; gap: .9rem; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: #edf4ff;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin-top: .8rem; color: #bfd0e3; }

.flash {
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  margin-bottom: 1rem;
}
.flash-success { background: rgba(83, 216, 155, 0.12); color: #c2f7d8; border-color: rgba(83, 216, 155, 0.28); }
.flash-error { background: rgba(255, 107, 120, 0.12); color: #ffd7db; border-color: rgba(255, 107, 120, 0.28); }
.form-stack {
  display: grid;
  gap: 1rem;
}
.form-stack label { display: grid; gap: .35rem; }
.form-stack label span { color: var(--text-soft); font-size: .88rem; font-weight: 600; }
.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: .7rem;
}
.checkbox-row input {
  width: 18px;
  height: 18px;
  padding: 0;
}
.top-gap { margin-top: 1rem; }

.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  text-align: left;
  padding: .9rem .85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #d4e0ee;
}
.table th { color: #8ebae2; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(6, 12, 19, 0.88);
  margin-top: 2rem;
}
.site-footer .footer-grid { padding: 2rem 0 1rem; }
.footer-bottom {
  padding: 0 0 1.5rem;
  color: var(--text-soft);
}

.admin-body {
  background: linear-gradient(180deg, #08111b, #09131f);
}
.admin-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}
.admin-sidebar {
  padding: 1.2rem;
  border-right: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(7, 13, 21, 0.88);
}
.admin-brand { margin-bottom: 1.3rem; }
.admin-nav {
  display: grid;
  gap: .35rem;
}
.admin-nav a {
  color: #c5d4e6;
  padding: .78rem .85rem;
  border-radius: 12px;
}
.admin-nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-main { padding: 1.2rem; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-copy,
.blog-copy,
.article-copy {
  color: #c3d3e5;
}
.page-copy h2,
.blog-copy h2,
.article-copy h2 { margin-top: 1.2rem; }

@media (max-width: 1100px) {
  .hero-grid,
  .hero-grid-strict,
  .tool-layout,
  .tool-hero-grid,
  .two-col,
  .footer-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .card-grid-4,
  .category-grid,
  .tool-copy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + .6rem);
    background: rgba(7, 13, 21, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    padding: .75rem;
    box-shadow: var(--shadow-md);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 860px) {
  .nav-wrap { flex-wrap: wrap; min-height: auto; padding: .8rem 0; }
  .nav-actions { width: 100%; justify-content: space-between; }
  .site-nav { top: 4.3rem; }
  .stat-grid,
  .value-grid,
  .card-grid-3,
  .card-grid-2,
  .result-grid,
  .metrics-grid,
  .hero-console-grid,
  .mouse-grid,
  .hero-telemetry,
  .spec-list,
  .tool-copy-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
  .runtime-header,
  .section-head,
  .panel-toolbar,
  .history-row,
  .result-head,
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .tool-panel { min-height: 560px; }
  .challenge-stage { inset: 132px 1rem 6.7rem; }
  .mouse-grid { bottom: 6.6rem; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 1rem), var(--container)); }
  .section { padding: 1.4rem 0; }
  .card, .tool-runtime { padding: 1rem; }
  .hero-section h1, .tool-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .btn { width: 100%; }
  .hero-actions .btn,
  .panel-action-row .btn,
  .nav-actions .btn,
  .nav-actions .inline-form { width: 100%; }
  .history-row { position: static; padding: 1rem; border-top: 1px solid rgba(148,163,184,.12); }
  .typing-stage { padding-bottom: 1rem; }
  .tool-panel { min-height: auto; }
  .challenge-stage { position: relative; inset: auto; height: 310px; margin: 0 1rem 1rem; }
  .mouse-grid { position: relative; left: auto; right: auto; bottom: auto; padding: 0 1rem 1rem; }
}
