/* Page-only layout for /testar-mouse-online/. */

body.page-testar-mouse-online .ms-page { --ms-blue: #2563eb; --ms-ink: #172033; }
@media (min-width: 1100px) {
  body.page-testar-mouse-online .ms-page { --cv-aside: clamp(230px, 18vw, 280px); }
}
body.page-testar-mouse-online .ms-page .conv-title {
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}
body.page-testar-mouse-online .article .ms-page .conv-lede {
  margin: 0 0 18px;
  color: #4f63b8;
  font-size: 1.02rem;
  line-height: 1.4;
}
body.page-testar-mouse-online .article .ms-page .conv-perks { gap: 14px; }
body.page-testar-mouse-online .article .ms-page .conv-perks li { gap: 12px; font-size: 0.84rem; }
body.page-testar-mouse-online .ms-page .conv-perks strong { color: #1d4ed8; font-size: 0.95rem; }
body.page-testar-mouse-online .ms-page .conv-perk { width: 42px; height: 42px; background-size: 22px; }
body.page-testar-mouse-online .ms-page .conv-perk.is-click {
  background-color: #dbeafe;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232563eb' d='M12 2a7 7 0 0 0-7 7v6a7 7 0 0 0 14 0V9a7 7 0 0 0-7-7z'/%3E%3Cpath fill='%23bfdbfe' d='M12 3.1A6 6 0 0 1 17.9 9H12V3.1z'/%3E%3Cpath fill='%23fff' d='M11.2 3.4h1.6V10h-1.6z'/%3E%3C/svg%3E");
}
body.page-testar-mouse-online .ms-page .conv-perk.is-wheel {
  background-color: #ede9fe;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%237c3aed' d='M10 2h4a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm1 4h2v4h-2V6z'/%3E%3C/svg%3E");
}
body.page-testar-mouse-online .ms-page .conv-perk.is-free {
  background-color: #dcfce7;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%2316a34a'/%3E%3Cpath d='m7.5 12.2 3 3 6-6.2' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
body.page-testar-mouse-online .article .ms-page img.conv-art { max-width: 240px; margin: 16px 0 0; }

body.page-testar-mouse-online .ms-app {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
body.page-testar-mouse-online .ms-app [hidden] { display: none !important; }
body.page-testar-mouse-online .ms-page .conv-board {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.7fr);
  gap: 14px;
}
@media (max-width: 1100px) {
  body.page-testar-mouse-online .ms-page .conv-board { grid-template-columns: minmax(0, 1fr); }
}
body.page-testar-mouse-online .ms-page .conv-stack,
body.page-testar-mouse-online .ms-page .conv-card { min-width: 0; }
body.page-testar-mouse-online .ms-page .conv-stack { gap: 14px; }
body.page-testar-mouse-online .ms-page .conv-card,
body.page-testar-mouse-online .ms-page .conv-steps,
body.page-testar-mouse-online .ms-page .conv-tips {
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 22px rgba(15, 23, 42, 0.04);
}
body.page-testar-mouse-online .ms-page .conv-steps li > span:first-child {
  width: 36px;
  height: 36px;
  background: #e8eef8;
  color: #64748b;
}
body.page-testar-mouse-online .ms-page .conv-steps li.is-on > span:first-child { background: var(--ms-blue); color: #fff; }
body.page-testar-mouse-online .ms-page .conv-steps li.is-done > span:first-child { background: #16a34a; color: #fff; }
body.page-testar-mouse-online .ms-page .conv-steps li.is-on strong { color: var(--ms-blue); }
body.page-testar-mouse-online .ms-page .conv-card-title { color: #1d4ed8; }
body.page-testar-mouse-online .ms-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--ms-blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}
body.page-testar-mouse-online .ms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
body.page-testar-mouse-online .ms-head .conv-card-title { margin: 0; }
body.page-testar-mouse-online #ms-clear {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
body.page-testar-mouse-online .article .ms-hint,
body.page-testar-mouse-online .article .ms-note,
body.page-testar-mouse-online .article .ms-status,
body.page-testar-mouse-online .article .ms-empty,
body.page-testar-mouse-online .article .ms-banner p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
}
body.page-testar-mouse-online .article .ms-status {
  margin-top: 12px;
  color: #1d4ed8;
  font-weight: 700;
}
body.page-testar-mouse-online .article .ms-note { margin-top: 10px; font-size: 0.82rem; }

body.page-testar-mouse-online .ms-pad {
  margin-top: 14px;
  padding: 16px 16px 12px;
  border: 2px dashed #cbd5e1;
  border-radius: 18px;
  background: #f8fafc;
  touch-action: none;
  user-select: none;
  cursor: crosshair;
}
body.page-testar-mouse-online .ms-mouse {
  position: relative;
  width: 168px;
  height: 228px;
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid #cbd5e1;
  border-radius: 84px 84px 76px 76px;
  background: #fff;
}
body.page-testar-mouse-online .ms-half {
  position: absolute;
  top: 0;
  width: 50%;
  height: 42%;
  background: #f8fafc;
}
body.page-testar-mouse-online .ms-half[data-light="left"] { left: 0; border-right: 2px solid #e2e8f0; }
body.page-testar-mouse-online .ms-half[data-light="right"] { right: 0; }
body.page-testar-mouse-online .ms-wheel {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 22px;
  height: 46px;
  margin-left: -11px;
  border: 2px solid #94a3b8;
  border-radius: 11px;
  background: #e2e8f0;
}
body.page-testar-mouse-online .ms-letter {
  position: absolute;
  top: 62px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}
body.page-testar-mouse-online .ms-letter.is-l { left: 22px; }
body.page-testar-mouse-online .ms-letter.is-r { right: 22px; }
body.page-testar-mouse-online .ms-sides {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
body.page-testar-mouse-online .ms-sides span {
  min-width: 92px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}
body.page-testar-mouse-online .is-hot { background: #fde68a !important; border-color: #f59e0b !important; }
body.page-testar-mouse-online .is-hit { background: #bbf7d0 !important; border-color: #16a34a !important; }
body.page-testar-mouse-online .is-hot.is-hit { background: #fde68a !important; }

body.page-testar-mouse-online .ms-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
body.page-testar-mouse-online .ms-chips span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
}
body.page-testar-mouse-online .ms-banner {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
}
body.page-testar-mouse-online .ms-banner strong { display: block; color: #166534; font-size: 0.92rem; }
body.page-testar-mouse-online .article .ms-banner p { margin-top: 2px; color: #166534; }
body.page-testar-mouse-online .ms-stats { display: grid; gap: 0; margin: 0; }
body.page-testar-mouse-online .ms-stats div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #e8eef6;
}
body.page-testar-mouse-online .ms-stats dt { color: #64748b; font-size: 0.82rem; }
body.page-testar-mouse-online .ms-stats dd { margin: 0; color: var(--ms-ink); font-size: 0.9rem; font-weight: 800; }

body.page-testar-mouse-online .article .ms-tips { margin: 0; }
body.page-testar-mouse-online .article .ms-tips h2::before {
  content: "";
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5b400' d='M9 18h6v2H9zM12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E") center / 22px no-repeat;
}
body.page-testar-mouse-online .article .ms-tips li::before {
  content: "";
  background: #f5b400 url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

html[data-theme="dark"] body.page-testar-mouse-online .ms-pad,
html[data-theme="dark"] body.page-testar-mouse-online .ms-mouse,
html[data-theme="dark"] body.page-testar-mouse-online .ms-sides span,
html[data-theme="dark"] body.page-testar-mouse-online #ms-clear { background: #0f172a; color: #e2e8f0; border-color: #334155; }
html[data-theme="dark"] body.page-testar-mouse-online .ms-half { background: #1e293b; }
html[data-theme="dark"] body.page-testar-mouse-online .article .ms-hint,
html[data-theme="dark"] body.page-testar-mouse-online .article .ms-note,
html[data-theme="dark"] body.page-testar-mouse-online .ms-stats dt { color: #94a3b8; }
html[data-theme="dark"] body.page-testar-mouse-online .ms-stats dd { color: #e2e8f0; }
html[data-theme="dark"] body.page-testar-mouse-online .ms-stats div { border-color: #334155; }
html[data-theme="dark"] body.page-testar-mouse-online .ms-banner { background: #052e16; border-color: #166534; }
