.tour-box {
  position: fixed;
  z-index: 10000;
  bottom: 16px;
  left: 16px;
  background: rgba(20,20,40,0.92);
  border: 2px solid #4CAF50;
  border-radius: 14px;
  padding: 14px 18px 10px;
  width: clamp(280px, 25vw, 380px);
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  animation: tourBoxIn 0.3s ease;
  pointer-events: auto;
}

@keyframes tourBoxIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tour-sentence-display {
  min-height: 22px;
  margin-bottom: 8px;
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  color: #bbb;
  line-height: 1.45;
  transition: opacity 0.3s ease;
}

.tour-box-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tour-box-btn {
  padding: 5px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
}

.tour-box-btn.skip {
  background: transparent;
  color: #777;
  border: 1px solid #444;
  padding: 4px 10px;
}

.tour-box-btn.skip:hover {
  color: #bbb;
  border-color: #666;
}

.tour-pause-btn {
  width: 28px;
  height: 28px;
  background: none;
  border: 1px solid #555;
  border-radius: 50%;
  color: #ccc;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}

.tour-pause-btn:hover {
  color: #4CAF50;
  border-color: #4CAF50;
}

.tour-pause-btn svg {
  width: 14px;
  height: 14px;
}

.tour-volume-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.tour-mute-btn {
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.2s;
}

.tour-mute-btn:hover {
  color: #4CAF50;
}

.tour-mute-btn svg {
  width: 18px;
  height: 18px;
}

.tour-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #333;
  outline: none;
  cursor: pointer;
}

.tour-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4CAF50;
  cursor: pointer;
  border: 2px solid #fff;
}

.tour-vol-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4CAF50;
  cursor: pointer;
  border: 2px solid #fff;
}

.tour-vol-slider.muted {
  opacity: 0.35;
}

.tour-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tour-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
  border: 1.5px solid #555;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
  flex-shrink: 0;
}

.tour-dot:hover {
  border-color: #4CAF50;
  transform: scale(1.3);
}

.tour-dot.active {
  background: #4CAF50;
  border-color: #4CAF50;
}

.tour-dot.current {
  background: #fff;
  border-color: #4CAF50;
  box-shadow: 0 0 6px rgba(76,175,80,0.6);
}

.tour-resume-btn {
  width: 100%;
  padding: 10px 16px;
  background: rgba(76, 175, 80, 0.15);
  border: 1.5px solid #4CAF50;
  border-radius: 8px;
  color: #4CAF50;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.2s, transform 0.1s;
  animation: tourResumeGlow 2s ease-in-out infinite;
}

.tour-resume-btn:hover {
  background: rgba(76, 175, 80, 0.25);
}

.tour-resume-btn:active {
  transform: scale(0.97);
}

@keyframes tourResumeGlow {
  0%, 100% { border-color: #4CAF50; }
  50% { border-color: #81c784; box-shadow: 0 0 8px rgba(76, 175, 80, 0.3); }
}

.tour-slide-overlay {
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 0;
  width: 56%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.tour-slide-overlay .tour-slide-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.tour-alert-overlay {
  position: fixed;
  z-index: 10010;
  top: clamp(16px, 3vh, 40px);
  right: clamp(16px, 3vw, 40px);
  animation: tourBoxIn 0.3s ease;
}

.tour-alert-card {
  background: linear-gradient(145deg, #1a2332, #1e293b);
  border: 2px solid #4CAF50;
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  width: clamp(320px, 30vw, 440px);
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 30px rgba(76,175,80,0.15);
}

.tour-alert-title {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 700;
  color: #4CAF50;
  margin-bottom: 10px;
}

.tour-alert-desc {
  font-size: clamp(0.8rem, 1vw, 0.92rem);
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 16px;
}

.tour-alert-label {
  display: block;
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tour-alert-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1.5px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  color: #e0e0e0;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.tour-alert-input:focus {
  border-color: #4CAF50;
}

.tour-alert-input::placeholder {
  color: #475569;
}

.tour-alert-buttons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.tour-alert-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.tour-alert-btn:active {
  transform: scale(0.97);
}

.tour-alert-btn.skip {
  background: transparent;
  color: #888;
  border: 1.5px solid #334155;
}

.tour-alert-btn.skip:hover {
  color: #ccc;
  border-color: #555;
}

.tour-alert-btn.send {
  background: #4CAF50;
  color: #fff;
}

.tour-alert-btn.send:hover {
  background: #45a049;
}

.tour-alert-note {
  font-size: 0.72rem;
  color: #555;
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}
