.rs-game {
  display: grid;
  gap: 14px;
}

.rs-question {
  color: #17202a;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
}

.rs-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 34%),
    linear-gradient(#ffffff, #f7f9fc);
  padding: 14px;
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.rs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.rs-stat {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  display: grid;
  gap: 2px;
  color: #475467;
}

.rs-stat span {
  font-size: 12px;
  font-weight: 750;
}

.rs-stat strong {
  color: #17202a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
}

.rs-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.rs-scale {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  min-height: 148px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(180, 83, 9, 0.32) 48% 52%, transparent 52%),
    linear-gradient(#f8fafc, #eef2f6);
  overflow: hidden;
}

.rs-scale::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
}

.rs-wing {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 126px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #17202a;
  padding: 8px;
  cursor: pointer;
  touch-action: manipulation;
  display: grid;
  align-content: center;
  gap: 8px;
  transition: transform 240ms ease, opacity 240ms ease, border-color 180ms ease, background 180ms ease;
}

.rs-wing:active {
  transform: scale(0.985);
}

.rs-wing:focus-visible,
.rs-button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: 2px;
}

.rs-wing-mark {
  position: absolute;
  top: 7px;
  width: 26px;
  min-height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #17202a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.rs-wing-left .rs-wing-mark {
  left: 7px;
}

.rs-wing-right .rs-wing-mark {
  right: 7px;
}

.rs-ticks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
  gap: 4px;
  align-items: center;
}

.rs-tick {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #98a2b3;
  border-radius: 8px;
  background: #fff;
  color: #17202a;
  display: grid;
  place-items: center;
  padding: 4px 3px;
  font-weight: 900;
  line-height: 1.05;
  box-shadow: 0 4px 12px rgba(20, 31, 50, 0.06);
  transition: transform 240ms ease, opacity 240ms ease, background 180ms ease, border-color 180ms ease;
}

.rs-tick span {
  font-size: 17px;
}

.rs-tick small {
  color: #667085;
  font-size: 10px;
  font-weight: 850;
}

.rs-tick-mini {
  min-height: 46px;
  box-shadow: none;
}

.rs-tick.rs-out {
  background: #eef2f6;
  border-color: #d0d5dd;
  color: #98a2b3;
  opacity: 0.55;
}

.rs-tick.rs-mid {
  background: #fef3c7;
  border-color: #d97706;
  transform: translateY(-4px);
}

.rs-tick.rs-ordered {
  background: #dbeafe;
  border-color: #2563eb;
}

.rs-tick.rs-removing {
  background: #fff1f0;
  border-color: #b42318;
  opacity: 0.62;
}

.rs-tick.rs-hit {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #0f3f3a;
  animation: rs-hit 760ms ease infinite;
}

.rs-empty {
  min-height: 44px;
  border: 1px dashed #98a2b3;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.rs-needle {
  position: relative;
  z-index: 3;
  min-width: 0;
  min-height: 126px;
  border: 2px solid #d97706;
  border-radius: 8px;
  background: #fffbeb;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 8px 6px;
  box-shadow: 0 10px 22px rgba(180, 83, 9, 0.15);
}

.rs-needle::before,
.rs-needle::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: #d97706;
  opacity: 0.72;
}

.rs-needle::before {
  top: -11px;
}

.rs-needle::after {
  bottom: -11px;
}

.rs-needle-label {
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
}

.rs-phase-discard.rs-ordered-left .rs-wing-left,
.rs-phase-discard.rs-ordered-right .rs-wing-right {
  border-color: #2563eb;
  background: #eff6ff;
}

.rs-closing-left .rs-wing-left,
.rs-closing-right .rs-wing-right {
  border-color: #b42318;
  background: #fff1f0;
  opacity: 0.28;
}

.rs-closing-left .rs-wing-left {
  transform: translateX(-38%) scale(0.86);
}

.rs-closing-right .rs-wing-right {
  transform: translateX(38%) scale(0.86);
}

.rs-wrong {
  border-color: #b42318;
  background: #fff1f0;
  animation: rs-shake 360ms ease;
}

.rs-range {
  min-height: 46px;
  border: 1px dashed #98a2b3;
  border-radius: 8px;
  background: #fff;
  color: #475467;
  padding: 8px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  font-weight: 750;
}

.rs-range-chip {
  min-height: 34px;
  border-radius: 999px;
  background: #eef2f6;
  color: #344054;
  padding: 6px 9px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  font-weight: 850;
}

.rs-range-chip strong {
  color: #0f766e;
}

.rs-status {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  padding: 11px 12px;
  line-height: 1.45;
}

.rs-status.good {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.rs-status.warn {
  border-color: var(--warn);
  background: #fff7ed;
}

.rs-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.rs-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #17202a;
  padding: 0 13px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.rs-button:active {
  transform: scale(0.98);
}

.rs-button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@keyframes rs-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@keyframes rs-hit {
  0%, 100% { transform: translateY(-2px) scale(1); }
  50% { transform: translateY(-5px) scale(1.06); }
}

@media (max-width: 520px) {
  .rs-board {
    padding: 12px;
  }

  .rs-scale {
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    gap: 6px;
    padding: 8px;
    min-height: 138px;
  }

  .rs-wing,
  .rs-needle {
    min-height: 118px;
    padding: 7px 5px;
  }

  .rs-wing-mark {
    top: 5px;
    width: 24px;
    min-height: 22px;
  }

  .rs-ticks {
    grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
    gap: 4px;
  }

  .rs-tick {
    min-height: 44px;
    border-radius: 7px;
  }

  .rs-tick span {
    font-size: 16px;
  }

  .rs-strip {
    gap: 4px;
  }
}

@media (max-width: 380px) {
  .rs-scale {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  }

  .rs-tick span {
    font-size: 15px;
  }

  .rs-tick small {
    font-size: 9px;
  }

  .rs-button {
    flex: 1 1 140px;
  }
}
