:root {
  --bg: #fafafa;
  --panel-blue: #2c87c5;
  --panel-red: #cb4b3f;
  --panel-green: #4caf50;
  --text-dark: #f7f7f7;
  --body-text: #333;
  --card-border: #e7e7e7;
  --muted: #808080;
  --content-max-width: 1060px;
  --content-padding-x: 16px;
  --nav-blue: #2c87c5;
  --nav-blue-hover: #236fa3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--body-text);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.layout-narrow {
  width: min(var(--content-max-width), 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--content-padding-x);
  padding-right: var(--content-padding-x);
  box-sizing: border-box;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 56px;
}

.footer-inner {
  text-align: center;
}

.page > .topbar {
  display: block;
  padding: 0;
  height: auto;
  min-height: 56px;
}

.topbar {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0;
  color: #fff;
}

.brand-logo {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.brand-logo:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
  border-radius: 8px;
}

.brand-icon {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  border-radius: 6px;
  display: block;
}

.brand-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-title:hover {
  color: #fff;
}

.brand-title:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
  border-radius: 4px;
}

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 2px;
  transition:
    color 120ms ease,
    background-color 120ms ease,
    border-color 120ms ease;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.82);
}

.nav-link[aria-current="page"] {
  color: #fff;
  font-weight: 700;
  border-left: 2px solid rgba(255, 255, 255, 0.55);
  border-right: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  padding-left: 12px;
  padding-right: 12px;
}

.content {
  width: min(var(--content-max-width), 100%);
  margin: 0 auto 56px;
  padding: 0 var(--content-padding-x);
}

.reaction-panel {
  min-height: 420px;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  display: grid;
  place-items: center;
  text-align: center;
  outline: none;
  transition: background-color 120ms ease;
}

.reaction-panel:focus-visible {
  box-shadow:
    0 0 0 4px rgba(44, 135, 197, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.reaction-panel.state-idle {
  background: var(--panel-blue);
}

.reaction-panel.state-waiting,
.reaction-panel.state-too-soon {
  background: var(--panel-red);
}

.reaction-panel.state-ready {
  background: var(--panel-green);
  /* 与原站一致：绿幕无过渡，避免计时早于「可见全绿」 */
  transition: none;
}

.panel-inner {
  color: var(--text-dark);
  padding: 32px 16px;
}

.panel-inner h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.12;
}

.panel-inner p {
  margin: 12px 0 0;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 500;
}

.panel-inner #panel-hint {
  margin-top: 10px;
  font-size: 30px;
}

.icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 24px;
  position: relative;
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
}

.icon-lightning::before {
  left: 34px;
  top: 2px;
  width: 24px;
  height: 88px;
  background: var(--text-dark);
  clip-path: polygon(44% 0, 100% 0, 60% 44%, 82% 44%, 0 100%, 30% 58%, 8% 58%);
}

.icon-circle::before {
  inset: 6px;
  border: 8px solid var(--text-dark);
  border-radius: 50%;
}

.icon-cross::before,
.icon-cross::after {
  left: 44px;
  top: 5px;
  width: 6px;
  height: 82px;
  background: var(--text-dark);
  border-radius: 4px;
}

.icon-cross::before {
  transform: rotate(45deg);
}

.icon-cross::after {
  transform: rotate(-45deg);
}

.daily-stats-root {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.daily-stats-card.statistics {
  margin-top: 0;
}

.daily-stats-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.daily-stats-date {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  flex: 1 1 auto;
  min-width: 0;
}

.statistics .daily-stats-date {
  margin: 0;
}

.daily-stats-clear {
  flex-shrink: 0;
}

.daily-history-title {
  margin: 18px 0 0;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.statistics {
  margin-top: 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 20px;
  color: #fff;
}

.about {
  margin-top: 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 20px;
  color: #fff;
}

.statistics h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.about h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.statistics .stat-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.statistics .stat-label {
  color: rgba(255, 255, 255, 0.62);
}

.statistics .stat-value {
  color: #fff;
}

.statistics .history-header h3 {
  color: #fff;
}

.statistics .history-list {
  color: rgba(255, 255, 255, 0.88);
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.statistics .history-list li {
  padding: 0;
  font-size: 14px;
}

.statistics .history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  min-height: 48px;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .statistics .history-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .statistics .history-list {
    grid-template-columns: 1fr;
  }
}

.statistics .history-row-main {
  min-width: 0;
}

.statistics .history-remove {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}

.statistics .history-remove-icon {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-0.06em);
}

.statistics .history-remove:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.statistics .history-remove:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.statistics .ghost-btn {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.statistics .ghost-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.statistics .primary-btn {
  background: var(--panel-blue);
  border-color: var(--panel-blue);
  color: #fff;
}

.stats-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.stat-card {
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 12px;
  background: #fcfcfc;
}

.stat-label {
  margin: 0;
  font-size: 13px;
  color: #7a7a7a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stat-value {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 700;
  color: #3d3d3d;
}

.history-header {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-header h3 {
  margin: 0;
  font-size: 17px;
}

.history-list {
  margin: 10px 0 0;
  padding-left: 22px;
  color: #4f4f4f;
}

.history-list li {
  padding: 4px 0;
  font-size: 15px;
}

.ghost-btn,
.primary-btn {
  border-radius: 4px;
  border: 1px solid #d2d2d2;
  background: #fff;
  color: #505050;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}

.primary-btn {
  background: #2c87c5;
  border-color: #2c87c5;
  color: #fff;
}

.primary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.about p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  padding: 20px 16px 24px;
  text-align: center;
}

.footer-beian {
  margin: 0 0 12px;
  line-height: 1.5;
}

.footer-beian-link {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.footer-beian-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  margin: 0 auto 14px;
  max-width: 42em;
  line-height: 1.65;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-friends {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-friends-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.06em;
}

.footer-friends-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  align-items: center;
}

.footer-friends-list a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.footer-friends-list a:hover {
  color: #fff;
  text-decoration: underline;
}

/* 百度联盟：相对视口右下角固定悬浮 */
.baidu-union-float {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 100;
  line-height: 0;
  max-width: min(360px, calc(100vw - 24px));
  pointer-events: auto;
}

.baidu-union-float ._wr6zeh335s {
  display: inline-block;
  max-width: 100%;
}

@media (max-width: 920px) {
  .panel-inner h1 {
    font-size: 42px;
  }

  .panel-inner p {
    font-size: 24px;
  }

  .panel-inner #panel-hint {
    font-size: 22px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    min-height: 52px;
    gap: 10px;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .brand-icon {
    height: 34px;
  }

  .brand-title {
    font-size: 1.12rem;
    white-space: normal;
    min-width: 0;
  }

  .nav {
    font-size: 13px;
  }

  .nav-link {
    padding: 6px 10px;
  }

  .nav-link[aria-current="page"] {
    padding-left: 8px;
    padding-right: 8px;
  }

  .panel-inner h1 {
    font-size: 34px;
  }
}
:root {
  --bg: #0b1322;
  --surface: #172135;
  --surface-2: #202c45;
  --text: #f6f8ff;
  --muted: #9ea8bc;
  --primary: #2c7cff;
  --primary-hover: #1f67dc;
  --danger: #e5484d;
  --success: #2ca46d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, #1e315f, transparent 40%),
    radial-gradient(circle at 100% 0%, #133b64, transparent 42%),
    var(--bg);
  min-height: 100vh;
}

.page-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 20px 20px;
  box-sizing: border-box;
}

/* 为右侧固定广告留出空间，避免正文与页脚被挡 */
@media (min-width: 1181px) {
  .page-shell {
    padding-right: calc(20px + 160px + 16px);
  }
}

.topbar {
  width: 100%;
  margin: 0;
  padding: 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 主内容区（广告已脱离文档流固定到视口右侧） */
.content-with-rail {
  display: block;
  width: 100%;
}

/* 右侧竖条：视口垂直居中固定，随滚轮时保持在屏幕中间 */
.ad-rail-right {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  text-align: center;
  box-sizing: border-box;
  z-index: 40;
  -webkit-overflow-scrolling: touch;
  /* 略作衬底，避免与白边广告糊成一片 */
  padding: 8px 0;
  pointer-events: auto;
}

.ad-rail-right iframe {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

@media (max-width: 1180px) {
  .ad-rail-right {
    display: none;
  }

  .page-shell {
    padding-right: 20px;
  }
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand h1 {
  margin: 0;
  font-size: 1.5rem;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #4a8dff, #35d7dc);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.52rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.logo span:last-child {
  font-size: 0.5rem;
}

main {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 1120px;
  margin: 0;
  padding: 20px 0;
}

.site-footer {
  width: 100%;
  margin: 28px 0 0;
  padding: 0;
}

.footer-panel {
  background: rgba(23, 33, 53, 0.72);
  border: 1px solid rgba(52, 69, 106, 0.85);
  border-radius: 16px;
  padding: 18px 22px 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 16px 48px rgba(0, 0, 0, 0.22);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-links-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(158, 168, 188, 0.95);
}

.footer-links-label::before {
  content: "";
  width: 3px;
  height: 1rem;
  border-radius: 3px;
  background: linear-gradient(180deg, #4a8dff, #35d7dc);
  flex-shrink: 0;
}

.footer-link-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.footer-links a:hover {
  color: #6ba3ff;
  border-bottom-color: rgba(44, 124, 255, 0.45);
}

.footer-links-sep {
  color: rgba(52, 69, 106, 0.95);
  user-select: none;
  font-weight: 600;
}

.footer-meta {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(52, 69, 106, 0.55);
  color: rgba(158, 168, 188, 0.82);
  font-size: 0.8rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.home h2 {
  margin: 12px 0 6px;
  font-size: 2rem;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card,
.primary-btn,
.ghost-btn {
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: 0.14s ease;
}

.card {
  text-align: left;
  background: rgba(23, 33, 53, 0.92);
  border: 1px solid #34456a;
  border-radius: 14px;
  padding: 18px;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #66a2ff;
  box-shadow: 0 10px 25px rgba(18, 65, 130, 0.25);
}

.card h3 {
  margin: 0 0 6px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.history-board {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.history-column {
  background: rgba(23, 33, 53, 0.8);
  border: 1px solid #34456a;
  border-radius: 12px;
  padding: 14px;
}

.history-column h3 {
  margin: 0 0 10px;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.history-list li {
  font-size: 0.92rem;
  color: #ced8ea;
  border-bottom: 1px dashed #374b73;
  padding-bottom: 6px;
}

.flow-step {
  animation: panel-in 0.2s ease;
}

.rule-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #d6e4ff;
  line-height: 1.7;
}

.panel {
  background: rgba(23, 33, 53, 0.88);
  border: 1px solid #34456a;
  border-radius: 16px;
  padding: 24px;
  animation: panel-in 0.2s ease;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel h2 {
  margin-top: 0;
}

.primary-btn {
  background: var(--primary);
  padding: 10px 18px;
  border-radius: 10px;
  margin-top: 14px;
}

.primary-btn:hover {
  background: var(--primary-hover);
}

.ghost-btn {
  background: transparent;
  border: 1px solid #4e6288;
  padding: 9px 16px;
  border-radius: 10px;
}

.ghost-btn:hover {
  border-color: #7e93bb;
}

.result {
  margin-top: 14px;
  min-height: 24px;
  color: #8ec5ff;
}

.meta-note {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: #9fb0cf;
}

.hidden {
  display: none !important;
}

.reaction-pad {
  margin-top: 14px;
  height: 260px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  user-select: none;
}

.reaction-pad.idle {
  background: #334d7c;
}

.reaction-pad.wait {
  background: var(--danger);
}

.reaction-pad.ready {
  background: var(--success);
}

.number-display {
  margin: 14px 0;
  min-height: 70px;
  border-radius: 12px;
  border: 1px solid #48618f;
  background: #101b30;
  display: grid;
  place-items: center;
  font-size: 2rem;
  letter-spacing: 0.2rem;
}

#numberInput {
  width: 240px;
  max-width: 100%;
  background: #101b30;
  color: var(--text);
  border: 1px solid #48618f;
  border-radius: 8px;
  padding: 10px 12px;
  margin-right: 8px;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #bed4ff;
}

.word-card {
  margin-top: 14px;
  min-height: 120px;
  border-radius: 12px;
  background: #101b30;
  border: 1px solid #48618f;
  display: grid;
  place-items: center;
  font-size: 2rem;
  text-transform: lowercase;
}

.actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.grid {
  margin-top: 16px;
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cell {
  aspect-ratio: 1;
  background: #101b30;
  border: 1px solid #48618f;
  border-radius: 10px;
  cursor: pointer;
}

.cell.active {
  background: #63acff;
}

.typing-prompt {
  margin: 14px 0 10px;
  line-height: 1.7;
  background: #101b30;
  border: 1px solid #48618f;
  border-radius: 12px;
  padding: 12px;
  color: #d8e6ff;
}

.typing-input {
  width: 100%;
  resize: vertical;
  border-radius: 10px;
  background: #0d1628;
  color: var(--text);
  border: 1px solid #48618f;
  padding: 12px;
  font: inherit;
}

.aim-arena {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid #48618f;
  background: #101b30;
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
}

.aim-target {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f1f5ff;
  border: 4px solid #ff5d73;
  margin: 0;
  padding: 0;
}

.aim-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #a8bcdf;
}

.chimp-grid {
  margin-top: 14px;
  width: min(450px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.chimp-cell {
  aspect-ratio: 1;
  border: 1px solid #48618f;
  border-radius: 10px;
  background: #101b30;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  cursor: pointer;
}

.chimp-cell.showing {
  background: #e9eef8;
  color: #0a1020;
  font-weight: 600;
}

.chimp-cell.correct {
  background: #2ca46d;
}

.chimp-cell.wrong {
  background: #e5484d;
}

.stats-table {
  margin-top: 12px;
  overflow-x: auto;
}

.stats-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.stats-table th,
.stats-table td {
  text-align: left;
  border-bottom: 1px solid #30456f;
  padding: 10px 8px;
  color: #d7e4fb;
}

.stats-table th {
  color: #a8bce0;
  font-weight: 600;
}

@media (max-width: 560px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .word-card {
    font-size: 1.5rem;
  }

  .aim-arena {
    height: 300px;
  }
}

/* 反应区加高（全宽样式已在前面定义） */
.reaction-panel {
  min-height: 560px;
}

@media (max-width: 920px) {
  .reaction-panel {
    min-height: 480px;
  }
}

@media (max-width: 560px) {
  .reaction-panel {
    min-height: 420px;
  }
}
