.rt-wrap {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 24px;
  color: #333;
  font-size: 14px;
}

.rt-device {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.rt-device strong {
  color: #0f172a;
  font-weight: 700;
}

.rt-stage {
  width: 100%;
  min-height: 320px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  outline: none;
  transition: background-color 0.08s ease;
  box-sizing: border-box;
}

.rt-stage:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.rt-stage-inner {
  padding: 24px 16px;
  pointer-events: none;
}

.rt-icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 12px;
}

.rt-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.rt-sub {
  font-size: 15px;
  opacity: 0.92;
  line-height: 1.5;
}

.rt-state-idle {
  background: #2563eb;
  color: #fff;
}

.rt-state-wait {
  background: #dc2626;
  color: #fff;
}

.rt-state-go {
  background: #16a34a;
  color: #fff;
}

.rt-state-result {
  background: #0f766e;
  color: #fff;
}

.rt-state-early {
  background: #b45309;
  color: #fff;
}

.rt-state-done {
  background: #1e293b;
  color: #fff;
}

.rt-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.rt-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
}

.rt-stat-label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.rt-stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.rt-attempts {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.rt-attempts-title {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.rt-attempt-list {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

.rt-final {
  margin-top: 16px;
  padding: 20px 16px;
  text-align: center;
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}

.rt-final-ms {
  font-size: 48px;
  font-weight: 800;
  color: #166534;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.rt-final-ms small {
  font-size: 20px;
  font-weight: 600;
  margin-left: 4px;
}

.rt-final-level {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #14532d;
}

.rt-final-meta {
  margin: 8px auto 0;
  max-width: 560px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.rt-final-desc {
  margin: 8px auto 16px;
  max-width: 520px;
  color: #475569;
  line-height: 1.7;
}

.rt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  background: #16a34a;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.rt-btn:hover {
  background: #15803d;
}

.rt-intro {
  width: 100%;
  box-sizing: border-box;
  margin-top: 28px;
  padding: 16px 18px;
  background: #f7f9fc;
  border-left: 4px solid #2563eb;
  border-radius: 0 6px 6px 0;
  color: #555;
  line-height: 1.8;
}

.rt-intro h2 {
  margin: 18px 0 8px;
  font-size: 17px;
  color: #333;
  font-weight: 600;
}

.rt-intro h2:first-child {
  margin-top: 0;
}

.rt-intro h3 {
  margin: 12px 0 6px;
  font-size: 15px;
  color: #444;
  font-weight: 600;
}

.rt-intro p,
.rt-intro ol,
.rt-intro ul {
  margin: 0;
}

.rt-intro ol,
.rt-intro ul {
  padding-left: 1.4em;
  margin-top: 6px;
}

.rt-intro li {
  margin: 4px 0;
}

@media (max-width: 768px) {
  .rt-stage {
    min-height: 260px;
  }

  .rt-title {
    font-size: 22px;
  }

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

  .rt-final-ms {
    font-size: 40px;
  }
}
