/* Viewer-facing interactive-toy reaction board (Lovense-style, owner
   recording parity 2026-08-04). Dark panel, pink accents, level tiles with
   duration + token bracket, live "Responding to" strip with countdown. */

.sl-toy-board-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12050;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sl-toy-board-backdrop[hidden] {
  display: none;
}

.sl-toy-board {
  width: 100%;
  max-width: 460px;
  max-height: min(86vh, 720px);
  overflow-y: auto;
  background: linear-gradient(170deg, #14101c, #0b0812);
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  padding: 16px;
  color: #e2e8f0;
  font-family: inherit;
}

.sl-toy-board-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sl-toy-board-ico {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ec4899, #a21caf);
  color: #fff;
  font-size: 16px;
}

.sl-toy-board-title {
  flex: 1 1 auto;
  min-width: 0;
}

.sl-toy-board-title strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.sl-toy-board-title span {
  font-size: 12px;
  color: #94a3b8;
}

.sl-toy-board-close {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.sl-toy-board-active {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(236, 72, 153, 0.14);
  border: 1px solid rgba(236, 72, 153, 0.4);
  font-size: 13px;
  margin-bottom: 12px;
}

.sl-toy-board-pulse {
  color: #ec4899;
  animation: slToyPulse 1s ease-in-out infinite;
}

@keyframes slToyPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

.sl-toy-board-secs {
  margin-left: auto;
  font-weight: 900;
  font-size: 16px;
  color: #f9a8d4;
  font-variant-numeric: tabular-nums;
}

.sl-toy-board-queue {
  font-size: 11px;
  color: #94a3b8;
}

.sl-toy-board-levels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.sl-toy-level {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.sl-toy-level:hover {
  border-color: rgba(236, 72, 153, 0.6);
  background: rgba(236, 72, 153, 0.1);
  transform: translateY(-1px);
}

.sl-toy-level strong {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.sl-toy-level-range {
  font-size: 11.5px;
  font-weight: 700;
  color: #fbbf24;
}

.sl-toy-level-range i {
  font-size: 10px;
}

.sl-toy-level em {
  font-style: normal;
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sl-toy-level-bars {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
}

.sl-toy-level-bars i {
  width: 4px;
  border-radius: 2px;
  background: rgba(236, 72, 153, 0.25);
}

.sl-toy-level-bars i:nth-child(1) { height: 4px; }
.sl-toy-level-bars i:nth-child(2) { height: 7px; }
.sl-toy-level-bars i:nth-child(3) { height: 9px; }
.sl-toy-level-bars i:nth-child(4) { height: 12px; }

.sl-toy-level-bars[data-strength="1"] i:nth-child(-n+1),
.sl-toy-level-bars[data-strength="2"] i:nth-child(-n+2),
.sl-toy-level-bars[data-strength="3"] i:nth-child(-n+3),
.sl-toy-level-bars[data-strength="4"] i {
  background: linear-gradient(180deg, #f472b6, #ec4899);
}

.sl-toy-board-foot {
  margin: 12px 2px 0;
  font-size: 11px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 480px) {
  .sl-toy-board {
    max-width: 100%;
    padding: 12px;
  }

  .sl-toy-level strong {
    font-size: 20px;
  }
}
