/* Robot Touch Lab — page-scoped styles (loaded via pageCss on /robot-touch-lab/). */
.rtl {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rtl__hud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.rtl__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 78px;
  padding: 8px 14px;
  background: #fff;
  border: 2px solid #e6ebf5;
  border-radius: 14px;
  box-shadow: 0 2px 0 rgba(20, 40, 90, 0.06);
}
.rtl__stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7794;
}
.rtl__stat-val {
  font-weight: 800;
  font-size: 1.15rem;
  color: #16224a;
  font-variant-numeric: tabular-nums;
}

.rtl__stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.rtl__canvas {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(15, 27, 61, 0.28);
  touch-action: none;         /* we handle taps ourselves */
  cursor: crosshair;
}

/* start / game-over overlay */
.rtl__banner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 18, 40, 0.55);
  border-radius: 22px;
}
.rtl__banner.is-on { display: flex; }
.rtl__card {
  background: #fff;
  border-radius: 18px;
  padding: 22px 22px 24px;
  max-width: 460px;
  text-align: center;
  box-shadow: 0 12px 34px rgba(10, 18, 40, 0.4);
}
.rtl__card-title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: #16224a;
}
.rtl__card-line {
  margin: 0 0 10px;
  color: #3a4666;
  font-size: 0.98rem;
  line-height: 1.45;
}

.rtl__timer {
  height: 10px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #e6ebf5;
  border-radius: 999px;
  overflow: hidden;
}
.rtl__timer-bar {
  height: 100%;
  width: 0%;
  background: #4ac0ff;
  border-radius: 999px;
  transition: width 90ms linear, background 200ms linear;
}

.rtl__caption {
  margin: 0;
  text-align: center;
  min-height: 2.6em;
  color: #33406a;
  font-weight: 600;
  line-height: 1.35;
}

.rtl__controls {
  display: flex;
  justify-content: center;
}
.rtl__btn {
  font: inherit;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  padding: 12px 22px;
  cursor: pointer;
  color: #fff;
  transition: transform 90ms ease, filter 120ms ease;
}
.rtl__btn:hover { filter: brightness(1.06); }
.rtl__btn:active { transform: translateY(1px); }
.rtl__btn:focus-visible { outline: 3px solid #7c5cff; outline-offset: 2px; }
.rtl__btn--reject {
  background: #e8563f;
  box-shadow: 0 4px 0 #b93b28;
}
.rtl__btn--go {
  margin-top: 6px;
  background: #4a7cff;
  box-shadow: 0 4px 0 #2f57c8;
  font-size: 1.05rem;
}

@media (max-width: 560px) {
  .rtl__stat { min-width: 64px; padding: 6px 10px; }
  .rtl__card { padding: 18px; }
}
