/* 独立 3D 传送场景开发样式（前缀 .sc3d-，与客厅 hub3d 隔离互不干扰） */
.sc3d-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #E7ECE8 0%, #CFD9D3 100%);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.sc3d-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.sc3d-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: none;
}

.sc3d-hud > * {
  pointer-events: auto;
}

.sc3d-btn {
  appearance: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 7px;
  border: 1.5px solid #151417;
  background: #F5EFE2;
  color: #151417;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 3px 0 #151417, 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 110ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 110ms cubic-bezier(0.23, 1, 0.32, 1);
}

.sc3d-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #151417;
}

.sc3d-btn.is-primary {
  background: #7D1E2E;
  color: #FFF8EC;
}

.sc3d-badge {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1.5px solid #151417;
  background: #161519;
  color: #DFBE7D;
  font-size: 12px;
  font-weight: 800;
}

.sc3d-footer-bar {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: min(92vw, 520px);
}

/* ELW·02 ELOWEN · 有机市集专属补充样式（统一 .sc3d- 前缀，烟熏黑曜石毛玻璃 + 香槟金描边，零硬黑投影） */
.sc3d-wh-wrap {
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.sc3d-wh-wrap .hub3d-stage {
  background: radial-gradient(circle at 50% 34%, #32353d 0%, #17191e 100%);
}

.sc3d-wh-wrap .vf-corner {
  border-color: rgba(236, 214, 162, 0.42);
}

.sc3d-wh-wrap .vf-stamp {
  color: rgba(245, 232, 196, 0.88);
  background: rgba(16, 15, 19, 0.62);
  border: 1px solid rgba(223, 190, 125, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sc3d-wh-wrap .hub3d-settle-actions .th-btn-primary,
.sc3d-wh-wrap .hub3d-settle-actions .th-btn-ghost {
  appearance: none;
  cursor: pointer;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), background 160ms ease, border-color 160ms ease;
}

.sc3d-wh-wrap .hub3d-settle-actions .th-btn-primary {
  background: linear-gradient(135deg, #8A2033 0%, #6D1726 100%);
  color: #FFF8EC;
  border: 1px solid rgba(232, 199, 134, 0.68);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
}

.sc3d-wh-wrap .hub3d-settle-actions .th-btn-ghost {
  background: rgba(24, 22, 26, 0.78);
  color: #F4E9D2;
  border: 1px solid rgba(223, 190, 125, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sc3d-wh-wrap .hub3d-settle-actions .th-btn-primary:active,
.sc3d-wh-wrap .hub3d-settle-actions .th-btn-ghost:active {
  transform: scale(0.97);
}

/* 冷柜雾气擦拭专属交互区 */
.sc3d-wh-frost-zone {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(192, 228, 255, 0.45);
  background: radial-gradient(circle at 50% 45%, rgba(220, 240, 255, 0.24), rgba(140, 184, 218, 0.14));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 28px rgba(196, 232, 255, 0.24);
  transition: opacity 220ms ease, backdrop-filter 220ms ease;
}

.sc3d-wh-frost-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(235, 246, 255, 0.88);
  text-shadow: 0 1px 8px rgba(10, 24, 42, 0.7);
  pointer-events: none;
}

@media (max-width: 720px) {
  .sc3d-wh-wrap .hub3d-tricks-bar {
    gap: 2px;
    max-width: calc(100vw - 16px);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sc3d-wh-wrap .hub3d-tricks-bar::-webkit-scrollbar {
    display: none;
  }
  .sc3d-wh-wrap .trick-pill {
    flex-shrink: 0;
    padding: 6px 8px;
    font-size: 10.5px;
  }
}

/* 白帆游艇码头 · 静奢海事控件 */
.sc3d-yacht-wrap .hub3d-stage {
  background: radial-gradient(circle at 55% 28%, #213d59 0%, #101d2c 100%);
}

.sc3d-yacht-wrap .vf-corner {
  border-color: rgba(180, 154, 114, 0.45);
}

.sc3d-yacht-wrap .vf-stamp {
  color: rgba(239, 224, 198, 0.88);
  background: rgba(16, 26, 38, 0.64);
  border: 1px solid rgba(180, 154, 114, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sc3d-yacht-cam-strip {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  max-width: calc(100vw - 190px);
}

.sc3d-yacht-pill {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(180, 154, 114, 0.38);
  background: rgba(16, 28, 42, 0.72);
  color: #EFE0C6;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 140ms ease, border-color 140ms ease, transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
}

.sc3d-yacht-pill:hover {
  border-color: rgba(213, 200, 175, 0.72);
  background: rgba(20, 39, 59, 0.88);
}

.sc3d-yacht-pill.is-active {
  background: rgba(180, 154, 114, 0.24);
  border-color: rgba(239, 224, 198, 0.85);
  color: #FFFDF8;
}

.sc3d-yacht-pill.is-skip {
  background: rgba(101, 44, 57, 0.86);
  border-color: rgba(239, 224, 198, 0.52);
  color: #FFF6EE;
}

.sc3d-yacht-pill:active {
  transform: scale(0.97);
}

.sc3d-yacht-drone-bar {
  position: absolute;
  left: 16px;
  bottom: 68px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(180, 154, 114, 0.34);
  background: rgba(14, 24, 36, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sc3d-yacht-crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #B49A72;
  flex-shrink: 0;
}

.sc3d-yacht-drone-status {
  position: absolute;
  top: 56px;
  left: 16px;
  z-index: 16;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(180, 154, 114, 0.42);
  background: rgba(14, 24, 36, 0.82);
  color: #EFE0C6;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 220ms ease;
}

.sc3d-yacht-drone-status.hidden {
  opacity: 0;
  pointer-events: none;
}

.sc3d-yacht-fade {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: #0e1a27;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.sc3d-yacht-fade.is-active {
  opacity: 1;
  pointer-events: auto;
}

.sc3d-yacht-wrap.is-drone-playing .hub3d-pins,
.sc3d-yacht-wrap.is-drone-playing .hub3d-tricks-bar,
.sc3d-yacht-wrap.is-drone-playing .hub3d-reset-btn,
.sc3d-yacht-wrap.is-drone-playing .sc3d-yacht-cam-strip {
  opacity: 0.25;
  pointer-events: none;
}

/* In full app (#view-scene covers viewport under .hud-bar), push yacht top controls cleanly below .hud-bar */
#view-scene .sc3d-yacht-cam-strip {
  top: 108px;
  left: 16px;
}

#view-scene .sc3d-yacht-wrap .vf-stamp {
  top: 112px;
  right: 16px;
  left: auto;
}

#view-scene .sc3d-yacht-drone-status {
  top: 150px;
  left: 16px;
}

.sc3d-yacht-wrap .hub3d-pins {
  z-index: 16;
}

.sc3d-yacht-wrap .hub3d-act-overlay {
  z-index: 28;
}

#view-scene .sc3d-yacht-wrap .hub3d-act-top {
  top: 44px;
}

#view-scene .sc3d-yacht-wrap .hub3d-act-prompt {
  top: 90px;
}

.sc3d-yacht-wrap .hub3d-settle,
.sc3d-yacht-wrap .hub3d-swap-banner {
  z-index: 30;
}

body.is-hub3d-act .sc3d-yacht-cam-strip,
body.is-hub3d-act .sc3d-yacht-drone-bar,
body.is-hub3d-act .sc3d-yacht-drone-status {
  opacity: 0;
  pointer-events: none;
}

.sc3d-yacht-wrap .hub3d-speech {
  z-index: 20;
  bottom: 112px !important;
}

.sc3d-yacht-wrap .hub3d-chat-popover {
  bottom: 122px !important;
}

@media (max-width: 1000px) {
  .sc3d-yacht-wrap .hub3d-speech {
    bottom: 162px !important;
  }
  .sc3d-yacht-wrap .hub3d-chat-popover {
    bottom: 168px !important;
  }
  .sc3d-yacht-cam-strip {
    max-width: calc(100vw - 148px);
    gap: 4px;
  }
  #view-scene .sc3d-yacht-cam-strip {
    top: 144px;
    left: 16px;
    max-width: calc(100vw - 32px);
  }
  #view-scene .sc3d-yacht-wrap .vf-stamp {
    display: none;
  }
  #view-scene .sc3d-yacht-drone-status {
    top: 184px;
    left: 16px;
  }
  .sc3d-yacht-pill {
    padding: 5px 8px;
    font-size: 10.5px;
  }
  .sc3d-yacht-drone-bar {
    left: 50%;
    transform: translateX(-50%);
    bottom: 118px;
    max-width: calc(100vw - 24px);
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sc3d-yacht-drone-bar::-webkit-scrollbar {
    display: none;
  }
}

