.fxg360-tour, .fxg360-tour * { box-sizing: border-box; }
.fxg360-tour {
  --fxg360-accent: #e2bc78;
  --fxg360-panel: rgba(18,24,31,.9);
  --fxg360-glass: rgba(18,24,31,.76);
  --fxg360-text: #fff;
  --fxg360-border: rgba(255,255,255,.22);
  --fxg360-hover: rgba(255,255,255,.14);
  position: relative; width: 100%; height: var(--fxg360-height,620px); min-height: 240px;
  overflow: hidden; isolation: isolate; background: #141c24; color: var(--fxg360-text);
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  border-radius: 16px; outline: none; contain: layout paint;
  container-type: inline-size; container-name: fxg360;
}
.fxg360-tour[data-fxg360-skin="light"] {
  --fxg360-panel: rgba(250,251,252,.97);
  --fxg360-glass: rgba(250,251,252,.9);
  --fxg360-text: #202a33;
  --fxg360-border: rgba(20,30,40,.17);
  --fxg360-hover: rgba(20,30,40,.09);
}
.fxg360-tour:focus-visible { outline: 3px solid var(--fxg360-accent); outline-offset: 2px; }
.fxg360-tour:fullscreen, .fxg360-tour.is-fullscreen { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
.fxg360-tour [hidden] { display: none !important; }
.fxg360-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; user-select: none; }
.fxg360-tour.is-dragging .fxg360-canvas { cursor: grabbing; }
.fxg360-loading {
  position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; padding: 24px; color: #fff;
  background: rgba(18,24,31,.8); text-align: center; font-size: 14px; pointer-events: none;
}
.fxg360-spinner { width: 36px; height: 36px; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--fxg360-accent); border-radius: 50%; animation: fxg360-spin .9s linear infinite; }
@keyframes fxg360-spin { to { transform: rotate(360deg); } }
.fxg360-hotspots { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.fxg360-tour .fxg360-hotspot {
  position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; min-width: 56px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  color: #fff; background: transparent; box-shadow: none; font: inherit; line-height: 1;
  text-decoration: none; cursor: pointer; pointer-events: auto; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.fxg360-hotspot-marker {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 2px solid #fff; border-radius: 50%; color: #fff;
  background: rgba(255,255,255,.14); box-shadow: 0 2px 10px rgba(0,0,0,.26),inset 0 0 0 1px rgba(255,255,255,.32);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background 180ms ease,transform 180ms ease;
}
.fxg360-hotspot-marker svg { display: block; width: 22px; height: 22px; }
.fxg360-hotspot-scene .fxg360-hotspot-marker { width: 16px; height: 16px; border-width: 2px; }
.fxg360-hotspot-scene .fxg360-hotspot-marker svg { width: 8px; height: 8px; }
.fxg360-hotspot-scene .fxg360-hotspot-marker::before,
.fxg360-hotspot-scene .fxg360-hotspot-marker::after {
  content: ""; position: absolute; inset: -3px; border: 2px solid rgba(255,255,255,.9);
  border-radius: inherit; opacity: 0; pointer-events: none; animation: fxg360-ring 2.8s ease-out infinite;
  will-change: transform,opacity;
}
.fxg360-hotspot-scene .fxg360-hotspot-marker::after { animation-delay: 1.4s; }
@keyframes fxg360-ring {
  0% { opacity: .75; transform: scale(1); }
  80%,100% { opacity: 0; transform: scale(1.85); }
}
.fxg360-hotspot:hover .fxg360-hotspot-marker,
.fxg360-hotspot:focus-visible .fxg360-hotspot-marker { transform: scale(1.08); background: rgba(255,255,255,.24); }
.fxg360-hotspot:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.fxg360-hotspot-label {
  position: absolute; bottom: calc(100% + 8px); left: 50%; max-width: 200px; overflow: hidden;
  padding: 9px 13px; color: #fff; background: rgba(15,22,30,.92); border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px; font-size: 12px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis;
  white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%,4px);
  transition: opacity 160ms ease,transform 160ms ease;
}
.fxg360-hotspot:hover .fxg360-hotspot-label,
.fxg360-hotspot:focus-visible .fxg360-hotspot-label { opacity: 1; transform: translate(-50%,0); }
.fxg360-tour[data-fxg360-hotspots="solid"] .fxg360-hotspot-marker { color: #17212a; background: var(--fxg360-accent); }
.fxg360-tour[data-fxg360-hotspots="solid"] .fxg360-hotspot-marker::before,
.fxg360-tour[data-fxg360-hotspots="solid"] .fxg360-hotspot-marker::after { display: none; }
.fxg360-tour.is-motion-suspended .fxg360-hotspot-marker::before,
.fxg360-tour.is-motion-suspended .fxg360-hotspot-marker::after { animation-play-state: paused; }
.fxg360-tour.has-dialog .fxg360-hotspots, .fxg360-tour.has-error .fxg360-hotspots { visibility: hidden; }
.fxg360-toolbar {
  position: absolute; z-index: 6; left: 50%; bottom: max(20px,env(safe-area-inset-bottom));
  transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; width: max-content; max-width: calc(100% - 24px); gap: 4px; padding: 8px 12px;
  color: var(--fxg360-text); background: var(--fxg360-glass); border: 1px solid var(--fxg360-border);
  border-radius: 20px; box-shadow: 0 8px 32px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.fxg360-tour .fxg360-control {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px;
  width: 44px; height: 44px; min-width: 44px; margin: 0; padding: 0;
  border: 1px solid transparent; border-radius: 12px; color: var(--fxg360-text);
  background: transparent; box-shadow: none; font: inherit; font-size: 20px; line-height: 1;
  cursor: pointer; touch-action: manipulation; transition: background 180ms ease,color 180ms ease;
}
.fxg360-control svg { display: block; width: 21px; height: 21px; }
.fxg360-tour .fxg360-control:hover { background: var(--fxg360-hover); }
.fxg360-tour .fxg360-control.is-active { color: #17212a; background: var(--fxg360-accent); }
.fxg360-control:focus-visible { outline: 2px solid var(--fxg360-text); outline-offset: 2px; }
.fxg360-scene-title {
  position: absolute; z-index: 4; top: 22px; left: 22px; max-width: calc(100% - 44px); padding: 12px 16px;
  color: var(--fxg360-text); background: var(--fxg360-glass); border: 1px solid var(--fxg360-border);
  border-radius: 12px; font-size: 14px; font-weight: 600; letter-spacing: .02em; line-height: 1.4;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); pointer-events: none;
}
.fxg360-logo {
  position: absolute; z-index: 4; top: 22px; right: 22px; display: block;
  width: auto; max-width: min(220px,38%); height: auto; max-height: 82px;
  object-fit: contain; object-position: top right; pointer-events: none; user-select: none;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,.3));
}
.fxg360-tour.has-logo .fxg360-scene-title { max-width: 52%; }
.fxg360-scene-menu {
  position: absolute; z-index: 5; left: 50%; bottom: max(98px,calc(env(safe-area-inset-bottom) + 78px));
  transform: translateX(-50%); width: min(460px,calc(100% - 32px)); max-height: 55%;
  padding: 12px; overflow: auto; overscroll-behavior: contain; color: var(--fxg360-text);
  background: var(--fxg360-panel); border: 1px solid var(--fxg360-border); border-radius: 16px;
  box-shadow: 0 16px 44px rgba(0,0,0,.3); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.fxg360-scene-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.fxg360-tour .fxg360-scene-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 6px;
  border: 1px solid transparent; border-radius: 10px; color: var(--fxg360-text);
  background: var(--fxg360-hover); text-align: left; font: inherit; font-size: 12px; cursor: pointer;
}
.fxg360-tour .fxg360-scene-card:hover, .fxg360-tour .fxg360-scene-card.is-current { border-color: var(--fxg360-accent); }
.fxg360-scene-card:focus-visible { outline: 2px solid var(--fxg360-text); outline-offset: 1px; }
.fxg360-scene-card img, .fxg360-scene-placeholder { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: #292d34; border-radius: 6px; }
.fxg360-scene-card > span:last-child { overflow: hidden; padding: 0 4px 4px; text-overflow: ellipsis; white-space: nowrap; }
.fxg360-dialog { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 64px 24px 24px; background: rgba(5,7,10,.62); backdrop-filter: blur(4px); }
.fxg360-dialog-content { width: min(520px,100%); max-height: 100%; padding: 28px; overflow: auto; color: var(--fxg360-text); background: var(--fxg360-panel); border: 1px solid var(--fxg360-border); border-radius: 16px; box-shadow: 0 18px 60px rgba(0,0,0,.4); font-size: 15px; line-height: 1.65; }
.fxg360-dialog-content h3 { margin: 0 0 12px; color: inherit; font-size: 21px; }
.fxg360-dialog-content > :last-child { margin-bottom: 0; }
.fxg360-tour .fxg360-dialog-close { position: absolute; z-index: 1; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--fxg360-border); border-radius: 50%; color: var(--fxg360-text); background: var(--fxg360-panel); font-size: 26px; cursor: pointer; }
.fxg360-dialog-close:focus-visible { outline: 2px solid var(--fxg360-accent); outline-offset: 2px; }
.fxg360-notice { padding: 14px 16px; border-left: 4px solid #dba617; color: #332b18; background: #fff8e5; }
@media (max-width: 600px) {
  .fxg360-tour { height: var(--fxg360-mobile-height,420px); min-height: 220px; border-radius: 12px; }
}
@container fxg360 (max-width: 600px) {
  .fxg360-toolbar { bottom: max(12px,env(safe-area-inset-bottom)); gap: 2px; padding: 6px; border-radius: 16px; }
  .fxg360-scene-title { top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 10px 12px; font-size: 12px; }
  .fxg360-logo { top: 12px; right: 12px; max-width: 34%; max-height: 62px; }
  .fxg360-tour.has-logo .fxg360-scene-title { max-width: 56%; }
  .fxg360-scene-menu { bottom: max(82px,calc(env(safe-area-inset-bottom) + 70px)); width: calc(100% - 24px); }
  .fxg360-dialog { padding: 64px 14px 14px; }
  .fxg360-dialog-content { padding: 20px; }
}
@container fxg360 (max-width: 380px) {
  .fxg360-toolbar { gap: 0; }
  .fxg360-tour .fxg360-control { flex-basis: 40px; width: 40px; min-width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .fxg360-spinner { animation: none !important; }
  .fxg360-control, .fxg360-hotspot-marker, .fxg360-hotspot-label { transition: none !important; }
}
