:root {
  --tm360-teal: #0f6f73;
  --tm360-warm-white: #faf8f3;
  --tm360-charcoal: #333333;
  --tm360-border: #d8d5cf;
}

.tm360 {
  width: 100%;
  color: var(--tm360-charcoal);
  font-family: Inter, Arial, sans-serif;
}

.tm360__stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #fff;
  border: 1px solid var(--tm360-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.tm360__stage.is-dragging { cursor: grabbing; }

.tm360__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1997 / 833;
  object-fit: contain;
  pointer-events: none;
}

.tm360__badge,
.tm360__hint {
  position: absolute;
  color: #fff;
  background: rgba(15, 111, 115, 0.9);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tm360__badge { top: 16px; left: 16px; padding: 7px 11px; }
.tm360__hint { bottom: 16px; left: 50%; padding: 8px 14px; transform: translateX(-50%); transition: opacity 180ms ease; }

.tm360__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 14px;
  flex-wrap: wrap;
}

.tm360__button {
  appearance: none;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--tm360-teal);
  border-radius: 8px;
  background: #fff;
  color: var(--tm360-teal);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tm360__button:hover,
.tm360__button:focus-visible { background: #eef7f7; }
.tm360__button--primary { background: var(--tm360-teal); color: #fff; }
.tm360__button--primary:hover,
.tm360__button--primary:focus-visible { background: #0b5d60; }
.tm360__count { min-width: 88px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }

@media (max-width: 767px) {
  .tm360__stage { border-radius: 8px; }
  .tm360__badge { top: 10px; left: 10px; }
  .tm360__hint { bottom: 10px; white-space: nowrap; }
  .tm360__controls { gap: 7px; padding-top: 10px; }
  .tm360__button { min-height: 36px; padding: 7px 10px; font-size: 13px; }
  .tm360__count { order: 5; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tm360__hint { transition: none; }
}

