/* 35mm 全画幅 3D 客厅取景器 · 黄铜项圈牌 & 打孔登机存根按钮（hub3d- 前缀） */
.hub3d-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hub3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
  overflow: hidden;
  background: radial-gradient(circle at 55% 42%, #EAE5DA 0%, #D4CFC3 100%);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

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

.hub3d-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

/* 35mm 相机取景器四角标线 */
.hub3d-viewfinder {
  position: absolute;
  inset: 14px;
  z-index: 7;
  pointer-events: none;
}

.vf-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(21, 20, 23, 0.34);
  border-style: solid;
  border-width: 0;
}

.vf-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.vf-stamp {
  position: absolute;
  left: 4px;
  top: 98px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(21, 20, 23, 0.56);
  background: rgba(245, 239, 226, 0.72);
  padding: 2px 7px;
  border-radius: 3px;
}

.hub3d-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  transition: box-shadow 300ms ease, background 300ms ease;
}

.hub3d-vignette.is-warn {
  box-shadow: inset 0 0 110px rgba(201, 59, 43, 0.72);
  animation: hubWarnPulse 640ms ease-in-out infinite;
}

.hub3d-vignette.is-sulk {
  background: radial-gradient(circle at 50% 45%, rgba(44, 72, 108, 0.1), rgba(14, 22, 34, 0.42));
}

/* Belvedere 12x50 Brass Binocular Optical Viewfinder */
.hub3d-binoculars {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  transition: opacity 380ms cubic-bezier(0.22, 1, 0.36, 1);
  background:
    radial-gradient(circle at 38% 50%, rgba(0, 0, 0, 0) 26%, rgba(8, 10, 14, 0.92) 41%),
    radial-gradient(circle at 62% 50%, rgba(0, 0, 0, 0) 26%, rgba(8, 10, 14, 0.92) 41%);
}

.hub3d-binoculars.is-active {
  opacity: 1;
}

.binocular-reticle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 26px;
}

.binocular-hud-top {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(18, 16, 15, 0.62);
  border: 1px solid rgba(223, 190, 125, 0.42);
  color: #DFBE7D;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(8px);
}

.binocular-crosshair {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(223, 190, 125, 0.42);
  box-shadow: inset 0 0 24px rgba(255, 225, 165, 0.08);
  position: relative;
}

.binocular-crosshair::before,
.binocular-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(223, 190, 125, 0.55);
}

.binocular-crosshair::before {
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 1px;
  transform: translateX(-0.5px);
}

.binocular-crosshair::after {
  top: 50%;
  left: 12px;
  right: 12px;
  height: 1px;
  transform: translateY(-0.5px);
}

.binocular-exit-btn {
  pointer-events: auto;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(223, 190, 125, 0.5);
  background: rgba(20, 18, 16, 0.78);
  color: #F6EEDD;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, background 160ms ease;
}

.binocular-exit-btn:hover {
  transform: translateY(-1px);
  background: rgba(34, 29, 24, 0.9);
}

@keyframes hubWarnPulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.hub3d-loading {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle at 50% 45%, rgba(36, 33, 38, 0.86), rgba(18, 17, 20, 0.94));
  backdrop-filter: blur(14px);
  color: #F5EFE2;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hub3d-loading-track {
  width: min(220px, 56vw);
  height: 2px;
  border-radius: 999px;
  background: rgba(245, 239, 226, 0.14);
  overflow: hidden;
}

.hub3d-loading-fill {
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(223, 190, 125, 0.72), #FFE9AE);
  transition: width 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hub3d-loading-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(223, 190, 125, 0.78);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hub3d-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hub3d-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  transition: opacity 240ms ease;
}

.hub3d-pins.is-hidden {
  opacity: 0;
}

/* 共同空间热区基础定位 */
.hub3d-pin {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--font-sans);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: transform 130ms var(--ease-out), filter 150ms ease;
}

.hub3d-pin:active {
  transform: translate(-50%, calc(-50% + 2px)) scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .hub3d-pin:hover {
    transform: translate(-50%, calc(-50% - 3px));
  }
}

/* 形态 A：极简呼吸小黄铜点（默认零遮挡 · 悬停/聚焦展开微胶囊标签） */
.hub3d-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* 44x44px 无感触控热区 */
.hub3d-dot::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}

/* 外圈呼吸香槟金光环（仅合成器 transform + opacity） */
.hub3d-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(223, 190, 125, 0.85);
  box-shadow: 0 0 10px rgba(223, 190, 125, 0.48);
  animation: brassDotBreath 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes brassDotBreath {
  0% {
    transform: scale(0.92);
    opacity: 0.88;
  }
  70% {
    transform: scale(1.42);
    opacity: 0;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}

.dot-core {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 250, 236, 0.92);
  background: radial-gradient(circle at 32% 28%, #FFFDF5 0%, #ECD093 58%, #C49A49 100%);
  color: #5A1622;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 4px 14px rgba(92, 66, 20, 0.22),
    0 0 14px rgba(244, 212, 140, 0.45);
  transition: transform 140ms var(--ease-out);
}

.dot-core svg {
  width: 13px;
  height: 13px;
}

.dot-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translate(-50%, 5px) scale(0.94);
  transform-origin: bottom center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(223, 190, 125, 0.55);
  background: rgba(21, 20, 23, 0.92);
  color: #FFF8EC;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms var(--ease-out), transform 170ms var(--ease-out);
  z-index: 4;
}

.dot-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 7px;
  height: 7px;
  background: rgba(21, 20, 23, 0.92);
  border-right: 1px solid rgba(223, 190, 125, 0.55);
  border-bottom: 1px solid rgba(223, 190, 125, 0.55);
  transform: translateX(-50%) rotate(45deg);
}

.dot-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.dot-sub {
  font-size: 10px;
  font-weight: 700;
  color: #DFBE7D;
}

.hub3d-dot:focus-visible .dot-popover {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .hub3d-dot:hover {
    z-index: 12;
  }
  .hub3d-dot:hover .dot-core {
    transform: scale(1.1);
  }
  .hub3d-dot:hover .dot-popover {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* 形态 B：左下角折叠式「出门钥匙夹 / 通行钥匙夹」 */
.hub3d-keyholder {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 12;
  pointer-events: auto;
}

.hub3d-keyholder.is-open {
  z-index: 42;
}

body.is-hub3d-act .hub3d-keyholder {
  opacity: 0;
  pointer-events: none;
}

.keyholder-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(223, 190, 125, 0.48);
  background: rgba(24, 19, 17, 0.78);
  backdrop-filter: blur(14px);
  color: #FAF2E1;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 194, 0.14),
    0 8px 24px rgba(12, 10, 8, 0.22);
  transition: transform 130ms var(--ease-out), box-shadow 130ms var(--ease-out), background-color 140ms ease;
}

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

.keyholder-fob {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #FCEBB6, #B88B3A);
  color: #211408;
  font-size: 11px;
  border: 1px solid #151417;
}

.keyholder-count {
  font-size: 10px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(223, 190, 125, 0.2);
  color: #F4D891;
  border: 1px solid rgba(223, 190, 125, 0.4);
}

.keyholder-tray {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(300px, calc(100vw - 36px));
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid #DFBE7D;
  background: linear-gradient(170deg, #221612 0%, #140D0B 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.52);
  display: flex;
  flex-direction: column;
  gap: 7px;
  transform-origin: bottom left;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95) translateY(6px);
  transition: opacity 180ms var(--ease-out), transform 190ms var(--ease-out);
}

.hub3d-keyholder.is-open .keyholder-tray {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.keyholder-tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(244, 216, 145, 0.78);
  padding: 0 2px 4px;
  border-bottom: 1px dashed rgba(223, 190, 125, 0.28);
}

.keyholder-item {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-radius: 7px;
  border: 1px solid rgba(223, 190, 125, 0.35);
  background: #16231D;
  color: #F6F1E5;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: var(--font-sans);
  transition: transform 130ms var(--ease-out), border-color 140ms ease;
}

.keyholder-item:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .keyholder-item:hover {
    border-color: #DFBE7D;
    transform: translateX(2px);
  }
}

.stub-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  min-width: 0;
  flex: 1;
}

.stub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #DFBE7D;
  flex: 0 0 auto;
}

.stub-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  min-width: 0;
}

.stub-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.stub-sub {
  font-size: 10px;
  color: rgba(246, 241, 229, 0.7);
}

.stub-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  background: #DFBE7D;
  color: #151417;
  border-left: 1.5px dashed #151417;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* 电影胶片底部柔光对白字幕（零黑框、无硬边缘、完全不挡布鲁斯面部） */
.hub3d-speech {
  position: absolute;
  left: 50%;
  bottom: 44px;
  z-index: 10;
  transform: translate(-50%, 6px);
  width: min(92vw, 600px);
  padding: 16px 38px 14px;
  border: 0;
  background: radial-gradient(
    closest-side,
    rgba(12, 10, 9, 0.56) 0%,
    rgba(12, 10, 9, 0.24) 58%,
    rgba(12, 10, 9, 0) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  filter: blur(2px);
  transition: opacity 240ms var(--ease-out), transform 260ms var(--ease-out), filter 220ms ease;
}

.hub3d-speech.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  filter: blur(0);
}

.speech-cue {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(244, 212, 140, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.speech-line {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #FFF8EB;
  text-shadow:
    0 1.5px 3px rgba(0, 0, 0, 0.96),
    0 0 16px rgba(0, 0, 0, 0.72);
}

.hub3d-speech.is-sulk .speech-cue {
  color: rgba(164, 202, 245, 0.92);
}

.hub3d-speech.is-sulk .speech-line {
  color: #EAF3FF;
}

body.mood-sulk.is-hub3d-view:not(.is-hub3d-act) .hub3d-speech {
  bottom: 156px;
}

body.is-hub3d-act .hub3d-speech {
  bottom: 84px;
}

/* 右下角镜头归中悬浮键 + 底部操作条（无黑色硬底阴影） */
.hub3d-reset-btn {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(223, 190, 125, 0.44);
  background: rgba(24, 21, 19, 0.74);
  backdrop-filter: blur(12px);
  color: #FAF2E1;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(10, 8, 6, 0.2);
  transition: transform 120ms var(--ease-out), background-color 140ms ease;
}

.hub3d-reset-btn:active {
  transform: scale(0.96);
}

/* 右侧悬浮电梯式双层楼层切换胶囊（1F 挑空客厅 ⇄ 2F 阳光阁楼） */
.hub3d-floor-switch {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(223, 190, 125, 0.48);
  background: rgba(20, 18, 17, 0.78);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 204, 0.14),
    0 12px 28px rgba(10, 8, 6, 0.24);
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}

body.is-hub3d-act .hub3d-floor-switch {
  opacity: 0;
  pointer-events: none;
}

.floor-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 78px;
  padding: 5px 9px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(246, 241, 229, 0.72);
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 120ms var(--ease-out);
}

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

.floor-pill-code {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #DFBE7D;
}

.floor-pill-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.floor-pill.is-active {
  background: linear-gradient(135deg, rgba(223, 190, 125, 0.26), rgba(145, 36, 54, 0.42));
  border-color: rgba(223, 190, 125, 0.72);
  color: #FFF9EE;
  box-shadow: inset 0 1px 0 rgba(255, 248, 226, 0.24);
}

.floor-pill.is-active .floor-pill-code {
  color: #FFE7A8;
}

@media (hover: hover) and (pointer: fine) {
  .floor-pill:hover:not(.is-active) {
    background: rgba(255, 248, 232, 0.08);
    color: #FFF8EC;
  }
}

/* 底部中央：黑曜石黄铜逗狗动作胶囊条（与左侧钥匙夹、右侧归中键零重叠） */
.hub3d-tricks-bar {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  max-width: calc(100vw - 260px);
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 999px;
  border: 1px solid rgba(223, 190, 125, 0.42);
  background: rgba(20, 18, 17, 0.78);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 194, 0.14),
    0 10px 26px rgba(10, 8, 6, 0.22);
  pointer-events: auto;
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}

.hub3d-tricks-bar::-webkit-scrollbar {
  display: none;
}

.trick-pill {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(250, 242, 225, 0.84);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 150ms ease, color 150ms ease, transform 110ms var(--ease-out);
}

.trick-ico {
  color: #DFBE7D;
  flex: 0 0 auto;
}

.trick-pill:active {
  transform: scale(0.95);
}

.trick-pill.is-playing,
.trick-pill.is-active {
  background: rgba(223, 190, 125, 0.24);
  color: #FFEBB7;
  box-shadow: inset 0 0 0 1px rgba(223, 190, 125, 0.44);
}

@media (hover: hover) and (pointer: fine) {
  .trick-pill:hover {
    background: rgba(255, 244, 218, 0.12);
    color: #FFF8EB;
  }
}

body.is-hub3d-act .hub3d-tricks-bar {
  opacity: 0;
  pointer-events: none;
}

body.is-hub3d-view:not(.is-hub3d-act) .hub3d-speech {
  bottom: 64px;
}

.trick-pill.is-ai-chat {
  background: rgba(125, 30, 46, 0.72);
  color: #FFECC2;
  border: 1px solid rgba(223, 190, 125, 0.36);
}

/* DeepSeek 实时逗狗对话浮条 */
.hub3d-chat-popover {
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translate(-50%, 8px) scale(0.97);
  z-index: 22;
  width: min(92vw, 440px);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(223, 190, 125, 0.48);
  background: rgba(20, 17, 16, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 190ms var(--ease-out);
}

.hub3d-chat-popover.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

body.is-hub3d-act .hub3d-chat-popover {
  opacity: 0 !important;
  pointer-events: none !important;
}

.chat-chips-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chat-chips-row::-webkit-scrollbar {
  display: none;
}

.chat-chip {
  appearance: none;
  border: 1px solid rgba(223, 190, 125, 0.3);
  background: rgba(255, 245, 224, 0.08);
  color: #F4DFB2;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid rgba(223, 190, 125, 0.38);
  background: rgba(12, 10, 10, 0.72);
  color: #FFF8EB;
}

.chat-input::placeholder {
  color: rgba(250, 242, 225, 0.44);
  font-size: 12.5px;
}

.chat-send-btn {
  appearance: none;
  border: 0;
  border-radius: 9px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #F3D999, #C99A42);
  color: #1F1409;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-send-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* 管家与车队内线浮动控制面板 */
.hub3d-concierge-popover {
  position: absolute;
  left: 50%;
  bottom: 68px;
  transform: translate(-50%, 10px) scale(0.97);
  z-index: 42;
  width: min(92vw, 408px);
  padding: 14px 15px 15px;
  border-radius: 14px;
  border: 1px solid rgba(223, 190, 125, 0.52);
  background: rgba(18, 15, 14, 0.92);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 206, 0.14),
    0 22px 48px rgba(0, 0, 0, 0.56);
  color: #FAF2E1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 190ms ease, transform 210ms var(--ease-out);
}

.hub3d-concierge-popover.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

body.is-hub3d-act .hub3d-concierge-popover {
  opacity: 0 !important;
  pointer-events: none !important;
}

.concierge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(223, 190, 125, 0.28);
}

.concierge-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #DFBE7D;
}

.concierge-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #FFF8EB;
  margin-top: 2px;
}

.concierge-close {
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(223, 190, 125, 0.35);
  background: rgba(255, 248, 236, 0.08);
  color: #FAF2E1;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.concierge-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.concierge-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(223, 190, 125, 0.28);
  background: rgba(34, 29, 26, 0.78);
  color: #FAF2E1;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 110ms var(--ease-out);
}

.concierge-action-btn:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .concierge-action-btn:hover {
    border-color: rgba(223, 190, 125, 0.72);
    background: rgba(52, 42, 36, 0.9);
  }
}

.concierge-act-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.concierge-act-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #FFF8EC;
}

.concierge-act-sub {
  font-size: 10.5px;
  color: rgba(246, 239, 226, 0.68);
}

.concierge-act-tag {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(223, 190, 125, 0.42);
  color: #F4D891;
  background: rgba(223, 190, 125, 0.12);
}

.concierge-action-btn.is-active .concierge-act-tag {
  background: #DFBE7D;
  color: #17130F;
}

.concierge-pantry-cta {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 160, 145, 0.5);
  background: rgba(125, 30, 46, 0.72);
  color: #FFF6EE;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.hub3d-hint {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 10;
  padding: 4px 12px;
  border-radius: 5px;
  background: rgba(21, 20, 23, 0.72);
  color: #F5EFE2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body.is-hub3d-act .hub3d-hint,
body.is-hub3d-act .hub3d-viewfinder .vf-stamp {
  opacity: 0;
}

/* 客厅内 3D 近景互动 UI 叠层 */
.hub3d-act-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: none;
  pointer-events: auto;
  touch-action: none;
}

.hub3d-act-overlay.is-active {
  display: block;
}

.hub3d-act-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.hub3d-act-top > * {
  pointer-events: auto;
}

.hub3d-glass-pill {
  border: 1px solid rgba(223, 190, 125, 0.45);
  border-radius: 999px;
  background: rgba(22, 19, 18, 0.76);
  backdrop-filter: blur(12px);
  color: #FAF2E1;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10, 8, 6, 0.24);
  transition: transform 110ms var(--ease-out), background-color 140ms ease;
}

.hub3d-glass-pill:active {
  transform: scale(0.96);
}

.hub3d-act-prompt {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(56vw, 420px);
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFDF8;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(21, 20, 23, 0.8);
  border: 1px solid rgba(223, 190, 125, 0.52);
  pointer-events: none;
}

.hub3d-brush-zone {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  width: 48%;
  height: 50%;
  max-width: 400px;
  border-radius: 50%;
  border: 1.5px dashed rgba(223, 190, 125, 0.65);
  background: radial-gradient(circle, rgba(223, 190, 125, 0.08), transparent 70%);
  pointer-events: none;
}

.hub3d-progress {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(64%, 280px);
  height: 10px;
  border-radius: 4px;
  border: 1.5px solid #151417;
  background: rgba(21, 20, 23, 0.68);
  overflow: hidden;
  pointer-events: none;
}

.hub3d-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #D99B3B, #F8DC94);
  transition: width 70ms linear;
}

/* 警戒拉环条纹开关（DRYER / SPEAKER / ESPRESSO） */
.hub3d-hazard-btn {
  position: absolute;
  right: 18px;
  bottom: 84px;
  padding: 12px 14px 8px;
  border-radius: 9px;
  border: 1px solid rgba(255, 165, 148, 0.45);
  background:
    repeating-linear-gradient(-45deg, #E8553F 0 6px, #241918 6px 12px) top / 100% 6px no-repeat,
    rgba(130, 30, 24, 0.9);
  backdrop-filter: blur(8px);
  color: #FFF3EE;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(32, 6, 4, 0.34);
  transition: transform 110ms var(--ease-out);
}

.hub3d-hazard-btn:active {
  transform: scale(0.96);
}

/* 黑胶台琴键按钮（TOWEL / BLANKET / VINYL） */
.hub3d-props-row {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: min(94%, 480px);
}

.hub3d-prop-btn {
  padding: 11px 16px 9px;
  border-radius: 10px;
  border: 1px solid rgba(223, 190, 125, 0.45);
  background:
    linear-gradient(90deg, #DFBE7D, #DFBE7D) top / 100% 3px no-repeat,
    rgba(24, 21, 20, 0.84);
  backdrop-filter: blur(12px);
  color: #F6F1E5;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(10, 8, 6, 0.28);
  transition: transform 110ms var(--ease-out), opacity 160ms ease;
}

.hub3d-prop-btn:active {
  transform: scale(0.96);
}

.hub3d-prop-btn.is-done {
  opacity: 0.35;
  pointer-events: none;
  transform: scale(0.95);
}

.hub3d-ball-btn {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  background:
    radial-gradient(circle at 35% 28%, #F3FF96, #9EC422);
  color: #1F2B0B;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 12px 26px rgba(24, 34, 6, 0.34);
}

.hub3d-phone-banner {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 28;
  width: min(56%, 290px);
  padding: 9px 13px;
  border-radius: 10px;
  border: 1.5px solid #DFBE7D;
  background: #161519;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
  transition: transform 300ms var(--ease-out);
}

.hub3d-phone-banner.is-shown {
  transform: translate(-50%, 2px);
}

.hub3d-phone-app {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #3D7EFF, #2856D6);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  flex: 0 0 auto;
}

.hub3d-phone-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hub3d-phone-title {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.68);
}

.hub3d-phone-text {
  font-size: 12.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub3d-settle {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 16px);
  z-index: 30;
  width: min(92%, 440px);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(223, 190, 125, 0.55);
  background: rgba(20, 18, 20, 0.9);
  backdrop-filter: blur(16px);
  color: #F6F1E5;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.44);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms var(--ease-out);
}

.hub3d-settle.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.hub3d-settle-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.hub3d-settle-delta {
  font-size: 26px;
  font-weight: 900;
  color: #DFBE7D;
}

.hub3d-settle-delta.is-neg {
  color: #FF7B6B;
}

.hub3d-settle-line {
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.hub3d-settle-status {
  font-size: 12px;
  color: rgba(246, 241, 229, 0.72);
  margin-bottom: 12px;
}

.hub3d-settle-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hub3d-swap-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 32;
  padding: 18px 26px;
  border-radius: 14px;
  background: rgba(20, 18, 20, 0.92);
  backdrop-filter: blur(16px);
  border: 1.5px solid #DFBE7D;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: #F6F1E5;
  text-align: center;
  display: none;
}

.hub3d-swap-banner.is-visible {
  display: block;
}

.hub3d-swap-num {
  font-size: 44px;
  font-weight: 900;
  color: #DFBE7D;
}

/* 环球旅行传送弹窗标签页 */
.tp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tp-tab {
  padding: 7px 13px;
  border-radius: 6px;
  border: 1.5px solid #151417;
  background: #EDE4D1;
  color: #151417;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 0 #151417;
}

.tp-tab.is-active {
  background: #7D1E2E;
  color: #FFF8EC;
}

/* Apple Fluid Minimalism × Quiet Luxury HUD Additions */
.floor-pill,
.trick-pill,
.concierge-action-btn,
.keyholder-btn {
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease, border-color 180ms ease;
}

.floor-pill:active,
.trick-pill:active,
.concierge-action-btn:active,
.keyholder-btn:active {
  transform: scale(0.97);
}

.hub3d-tv-osd {
  position: absolute;
  top: 118px;
  right: 16px;
  z-index: 14;
  max-width: min(320px, calc(100vw - 32px));
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(223, 190, 125, 0.32);
  background: rgba(18, 17, 16, 0.76);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  color: #F6F1E5;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 240ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.hub3d-tv-osd.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tv-osd-code {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #DFBE7D;
  font-variant-numeric: tabular-nums;
}

.tv-osd-title {
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 2px;
  color: #F8F3E8;
}

.hub3d-lucky-toast {
  position: absolute;
  top: 118px;
  left: 50%;
  transform: translate(-50%, -12px) scale(0.96);
  z-index: 26;
  min-width: 260px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(235, 204, 138, 0.56);
  background: rgba(20, 18, 16, 0.84);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  color: #F7F1E4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition: opacity 320ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hub3d-lucky-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.trick-pill.is-sunset-cuddle {
  border-color: rgba(240, 198, 128, 0.56);
  background: linear-gradient(135deg, rgba(101, 44, 57, 0.72), rgba(44, 34, 28, 0.88));
  color: #FFF3DA;
}

.hub3d-sunset-pill {
  position: absolute;
  top: 118px;
  left: 50%;
  transform: translate(-50%, -8px) scale(0.97);
  z-index: 25;
  width: min(360px, calc(100vw - 32px));
  padding: 10px 14px 11px;
  border-radius: 16px;
  border: 1px solid rgba(235, 204, 138, 0.45);
  background: rgba(20, 18, 16, 0.84);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  color: #F7F1E4;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  transition: opacity 260ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hub3d-sunset-pill.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.sunset-pill-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sunset-pill-label {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
  color: #FFEAC2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sunset-pill-done {
  flex: 0 0 auto;
  border: 1px solid rgba(235, 204, 138, 0.5);
  background: rgba(235, 204, 138, 0.16);
  color: #FFE7B3;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
}

.sunset-pill-done:active {
  transform: scale(0.96);
}

.sunset-pill-track {
  margin-top: 8px;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.sunset-pill-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #D99B52, #FFE39E);
}

.lucky-star-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 228, 158, 0.34), rgba(223, 190, 125, 0.12));
  border: 1px solid rgba(235, 204, 138, 0.6);
  display: grid;
  place-items: center;
  color: #FFE7A6;
  font-size: 14px;
  flex: 0 0 auto;
}

.lucky-toast-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lucky-toast-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFE9B2;
}

.lucky-toast-sub {
  font-size: 11.5px;
  color: rgba(247, 241, 228, 0.86);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .floor-pill,
  .trick-pill,
  .hub3d-tv-osd,
  .hub3d-lucky-toast {
    transition: none;
  }
}

@media (max-width: 920px) {
  .hub3d-tricks-bar {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 28px);
    padding: 4px;
  }
  .hub3d-chat-popover {
    bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }
  .hub3d-concierge-popover {
    bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  }
  body.is-hub3d-view:not(.is-hub3d-act) .hub3d-speech {
    bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 720px) {
  .hub3d-viewfinder {
    inset: 8px;
  }
  .vf-stamp {
    display: none;
  }
  .hub3d-keyholder {
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .keyholder-btn {
    padding: 6px 10px 6px 8px;
    font-size: 11.5px;
  }
  .hub3d-tricks-bar {
    bottom: calc(54px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 20px);
    padding: 3px;
  }
  .hub3d-chat-popover {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  .hub3d-concierge-popover {
    bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  }
  .trick-pill {
    font-size: 11px;
    padding: 6px 9px;
  }
  body.is-hub3d-view:not(.is-hub3d-act) .hub3d-speech {
    bottom: calc(98px + env(safe-area-inset-bottom, 0px));
    width: min(92vw, 360px);
    padding: 9px 14px;
  }
  body.mood-sulk.is-hub3d-view:not(.is-hub3d-act) .hub3d-speech {
    bottom: 168px;
  }
  .speech-line {
    font-size: 13px;
  }
  .hub3d-hint {
    display: none;
  }
  .hub3d-reset-btn {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 6px 10px;
    font-size: 11px;
  }
  .hub3d-act-prompt {
    top: 56px;
    width: min(88vw, 340px);
    font-size: 12.5px;
  }
}

/* 1F 西翼山景餐厨：Apple Fluid Minimalist 仪式感悬浮条 + 内嵌双门冰箱鲜食面板 */
.hub3d-kitchen-dock {
  position: absolute;
  left: 18px;
  top: 158px;
  transform: translateY(-6px);
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(223, 190, 125, 0.36);
  background: rgba(20, 18, 17, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 12px 32px rgba(10, 8, 6, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hub3d-kitchen-dock.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.is-hub3d-act .hub3d-kitchen-dock {
  opacity: 0 !important;
  pointer-events: none !important;
}

.kitchen-dock-pill {
  appearance: none;
  border: 1px solid transparent;
  background: rgba(255, 248, 232, 0.06);
  color: rgba(246, 241, 229, 0.88);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease;
}

.kitchen-dock-pill:active {
  transform: scale(0.97);
}

.kitchen-dock-pill.is-active {
  background: rgba(101, 44, 57, 0.68);
  border-color: rgba(223, 190, 125, 0.68);
  color: #FFF8EC;
}

.hub3d-fridge-drawer {
  position: absolute;
  left: 18px;
  top: auto;
  bottom: 78px;
  transform: translateY(10px) scale(0.97);
  z-index: 15;
  width: min(88vw, 282px);
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid rgba(223, 190, 125, 0.42);
  background: rgba(20, 19, 18, 0.84);
  backdrop-filter: blur(22px) saturate(165%);
  box-shadow: 0 20px 44px rgba(8, 6, 4, 0.42);
  color: #F6F1E5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 190ms ease, transform 210ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hub3d-fridge-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.hub3d-kitchen-dock.is-hidden-for-fridge {
  opacity: 0 !important;
  pointer-events: none !important;
}

.fridge-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.fridge-drawer-kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #DFBE7D;
  font-weight: 800;
}

.fridge-drawer-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFF9EE;
  margin-top: 2px;
}

.fridge-drawer-close {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #F6F1E5;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

.fridge-shelf-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.fridge-shelf-row {
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid rgba(255, 240, 204, 0.08);
}

.fridge-shelf-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #DFBE7D;
}

.fridge-shelf-items {
  font-size: 11.5px;
  color: rgba(255, 249, 238, 0.9);
  margin-top: 2px;
  line-height: 1.4;
}

.fridge-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fridge-act-btn {
  appearance: none;
  border: 1px solid rgba(223, 190, 125, 0.36);
  background: rgba(255, 248, 232, 0.08);
  color: #FFF8EC;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.fridge-act-btn.is-primary {
  background: rgba(101, 44, 57, 0.72);
  border-color: rgba(223, 190, 125, 0.56);
}

/* 东翼九尺黑檀木三角钢琴琴谱架 (Music Desk) */
.hub3d-piano-drawer {
  top: 158px;
  bottom: auto;
  width: min(90vw, 312px);
  max-height: calc(100dvh - 310px);
  overflow-y: auto;
  transform: translateY(-6px) scale(0.97);
}

.hub3d-piano-drawer.is-open {
  transform: translateY(0) scale(1);
}

.piano-now-bar {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid rgba(255, 240, 204, 0.10);
  margin-bottom: 9px;
}

.piano-now-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.piano-now-label {
  font-size: 11px;
  font-weight: 700;
  color: #F6E6C2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.piano-now-time {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(246, 241, 229, 0.72);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.piano-progress-track {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.12);
  overflow: hidden;
}

.piano-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #DFBE7D 0%, #F7E4B6 100%);
  transition: width 180ms linear;
}

.piano-track-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.piano-track-btn {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 240, 204, 0.10);
  background: rgba(255, 250, 240, 0.05);
  color: #F6F1E5;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease;
}

.piano-track-btn:active {
  transform: scale(0.98);
}

.piano-track-btn.is-selected {
  border-color: rgba(223, 190, 125, 0.42);
  background: rgba(223, 190, 125, 0.09);
}

.piano-track-btn.is-playing {
  background: rgba(101, 44, 57, 0.68);
  border-color: rgba(223, 190, 125, 0.72);
  color: #FFF8EC;
}

.piano-track-idx {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #DFBE7D;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.piano-track-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.piano-track-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFF9EE;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.piano-track-title small {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(246, 241, 229, 0.68);
}

.piano-track-meta {
  font-size: 10px;
  color: rgba(223, 190, 125, 0.85);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.piano-track-ind {
  font-size: 13px;
  color: #FFE5A3;
  opacity: 0.24;
  transition: opacity 150ms ease;
}

.piano-track-btn.is-playing .piano-track-ind {
  opacity: 1;
}

.piano-drawer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.piano-drawer-actions .fridge-act-btn {
  text-align: center;
  padding: 8px 6px;
  font-size: 11.5px;
}

@media (prefers-reduced-motion: reduce) {
  .hub3d-fridge-drawer,
  .piano-track-btn,
  .piano-progress-fill {
    transition: none;
  }
}

/* 入户门旁 Whole-Home Smart Control Panel (Apple Home / Lutron 黑曜石触控智控屏) */
.hub3d-smart-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 26;
  width: min(92vw, 440px);
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(223, 190, 125, 0.44);
  background: rgba(15, 17, 21, 0.88);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.56);
  color: #F4F6FA;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 900px) {
  .hub3d-smart-panel {
    left: 72%;
    width: 400px;
  }
}

.hub3d-smart-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.smart-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.smart-panel-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #DFBE7D;
  font-weight: 800;
}

.smart-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
}

.smart-panel-close {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.10);
  color: #F4F6FA;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
}

.smart-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.smart-tile {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: #E8ECF2;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.smart-tile:active {
  transform: scale(0.97);
}

.smart-tile.is-on {
  background: rgba(71, 168, 189, 0.18);
  border-color: rgba(127, 216, 255, 0.55);
}

.smart-tile-kicker {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #9FB0C4;
}

.smart-tile-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.smart-tile-state {
  font-size: 11px;
  color: #DFBE7D;
}

@media (max-width: 720px) {
  .hub3d-kitchen-dock {
    left: 10px;
    top: 128px;
    padding: 4px;
    gap: 3px;
  }
  .kitchen-dock-pill {
    font-size: 10.5px;
    padding: 5px 8px;
  }
  .hub3d-fridge-drawer {
    left: 12px;
    top: auto;
    bottom: 108px;
    transform: translateY(8px) scale(0.97);
  }
  .hub3d-fridge-drawer.is-open {
    transform: translateY(0) scale(1);
  }
  .hub3d-piano-drawer {
    top: 128px;
    bottom: auto;
    max-height: calc(100dvh - 290px);
  }
}

/* Plan B · 三段式贪刀连击 & 划走静音手机干扰 */
.pyl-phone-card {
  position: absolute;
  top: 16%;
  left: 50%;
  transform: translate3d(-50%, -20px, 0) scale(0.95);
  z-index: 38;
  width: min(88vw, 352px);
  padding: 10px 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(223, 190, 125, 0.52);
  background: rgba(18, 17, 22, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #FAF6ED;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
  opacity: 0;
  cursor: grab;
  touch-action: pan-y;
  overflow: hidden;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pyl-phone-card.is-shown {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.pyl-phone-card.is-muted {
  opacity: 0;
  transform: translate3d(40%, -8px, 0) scale(0.92);
  pointer-events: none;
}

.pyl-phone-app {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #3D7EFF, #2856D6);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #FFF;
  flex: 0 0 auto;
}

.pyl-phone-body {
  flex: 1;
  min-width: 0;
}

.pyl-phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pyl-phone-title {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
}

.pyl-phone-hint {
  font-size: 10px;
  color: #DFBE7D;
  font-weight: 700;
}

.pyl-phone-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFDF8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.pyl-phone-mute {
  appearance: none;
  border: 1px solid rgba(223, 190, 125, 0.48);
  background: rgba(223, 190, 125, 0.14);
  color: #F7E1AC;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}

.pyl-phone-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.pyl-phone-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #E86B56, #DFBE7D);
}

.pyl-backdrop {
  position: absolute;
  inset: 0;
  z-index: 34;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 16px 26px;
  background: linear-gradient(180deg, rgba(14, 13, 16, 0.08) 0%, rgba(14, 13, 16, 0.56) 100%);
  pointer-events: auto;
}

.pyl-card {
  width: min(94vw, 438px);
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(223, 190, 125, 0.55);
  background: rgba(19, 17, 20, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  color: #FAF4E8;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.5);
}

.pyl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pyl-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #DFBE7D;
}

.pyl-banked,
.pyl-beat-count {
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(65, 132, 92, 0.25);
  border: 1px solid rgba(114, 201, 146, 0.45);
  color: #C7F3D4;
}

.pyl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.pyl-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.pyl-chip.is-craving {
  background: rgba(223, 190, 125, 0.2);
  border: 1px solid rgba(223, 190, 125, 0.65);
  color: #FFE4A3;
}

.pyl-chip.is-habit {
  background: rgba(232, 107, 86, 0.2);
  border: 1px solid rgba(232, 107, 86, 0.5);
  color: #FFC6BC;
}

.pyl-chip.is-revenge {
  background: rgba(116, 26, 42, 0.72);
  border: 1px solid rgba(255, 188, 125, 0.65);
  color: #FFE4B5;
}

.pyl-desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(250, 244, 232, 0.88);
  margin: 0 0 13px;
}

.pyl-desc strong {
  color: #FFE3A4;
}

.pyl-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px;
}

.pyl-btn-bank,
.pyl-btn-push,
.pyl-btn-strike {
  appearance: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 110ms var(--ease-out), background-color 140ms ease;
}

.pyl-btn-bank {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #FAF4E8;
}

.pyl-btn-push,
.pyl-btn-strike {
  border: 1px solid rgba(245, 214, 146, 0.72);
  background: linear-gradient(135deg, #D5AA52 0%, #8A2334 100%);
  color: #FFFDF8;
  box-shadow: 0 8px 22px rgba(138, 35, 52, 0.35);
}

.pyl-btn-bank:active,
.pyl-btn-push:active,
.pyl-btn-strike:active {
  transform: scale(0.96);
}

.pyl-gauge-wrap {
  position: relative;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid rgba(223, 190, 125, 0.45);
  background: rgba(12, 11, 14, 0.85);
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 12px;
}

.pyl-sweet-zone {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(223, 190, 125, 0.28), rgba(246, 214, 134, 0.65), rgba(223, 190, 125, 0.28));
  border: 1px solid rgba(255, 224, 150, 0.82);
}

.pyl-needle {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 5px;
  margin-left: -2.5px;
  border-radius: 3px;
  background: #FFFDF8;
  box-shadow: 0 0 12px rgba(255, 240, 200, 0.95);
}

.pyl-gauge-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pyl-timer-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.pyl-timer-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #DFBE7D, #66C48D);
}


/* -------------------------------------------------------------------------
 * 3D Spatial & Physical Zero-Penalty Games (.spg-*)
 * ------------------------------------------------------------------------- */
.spg-hud-pill {
  position: absolute;
  top: 62px;
  right: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(223, 190, 125, 0.48);
  background: rgba(16, 15, 19, 0.78);
  backdrop-filter: blur(12px);
  color: #FAF2E1;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
#view-scene .sc3d-yacht-wrap .spg-hud-pill {
  top: 90px;
}
.spg-hud-kicker {
  color: #DFBE7D;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.spg-hud-val {
  color: #FFFDF8;
  font-size: 13px;
}

.spg-aim-pad {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(74vw, 380px);
  height: 112px;
  border-radius: 20px;
  border: 1.5px dashed rgba(223, 190, 125, 0.58);
  background: rgba(16, 15, 19, 0.52);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.spg-aim-reticle {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(223, 190, 125, 0.52);
  background: rgba(24, 21, 20, 0.84);
  color: #FFF3D4;
  font-size: 12.5px;
  font-weight: 700;
  pointer-events: none;
  transition: transform 90ms ease, border-color 140ms ease;
}
.spg-aim-reticle.is-active {
  border-color: #FFE49E;
  box-shadow: 0 0 18px rgba(242, 207, 114, 0.45);
}

.spg-vinyl-stage {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.spg-vinyl-disc {
  position: relative;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  border: 2px solid rgba(223, 190, 125, 0.72);
  background: radial-gradient(circle, #2a2422 0%, #141215 62%, #0c0b0e 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.spg-vinyl-disc.is-spinning .spg-vinyl-label {
  animation: spgSpin 4s linear infinite;
}
@keyframes spgSpin { to { transform: rotate(360deg); } }
.spg-vinyl-pulse {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid #FFE296;
  pointer-events: none;
}
.spg-vinyl-ring-target {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1.5px dashed rgba(223, 190, 125, 0.72);
  pointer-events: none;
}
.spg-vinyl-label {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #652C39, #8C3B4D);
  border: 2px solid #DFBE7D;
  color: #FFF4DC;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.spg-vinyl-arm {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 6px;
  height: 76px;
  border-radius: 3px;
  background: linear-gradient(180deg, #E2C686, #A8844A);
  transform-origin: top center;
  transform: rotate(-28deg);
  transition: transform 240ms ease;
}
.spg-vinyl-arm.is-dropped {
  transform: rotate(18deg);
}
.spg-vinyl-hint {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 15, 19, 0.76);
  border: 1px solid rgba(223, 190, 125, 0.36);
  color: #FAF2E1;
  font-size: 12px;
}

.spg-groom-halo {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 2px solid rgba(255, 224, 148, 0.85);
  background: radial-gradient(circle, rgba(255, 224, 148, 0.24), transparent 72%);
  box-shadow: 0 0 24px rgba(242, 207, 114, 0.38);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  color: #FFF5D8;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

.spg-latte-wrap {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
}
.spg-latte-wrap .hidden,
.spg-lever-box.hidden,
.spg-cup-box.hidden {
  display: none;
}
.spg-lever-box {
  padding: 14px 20px;
  border-radius: 18px;
  border: 1px solid rgba(223, 190, 125, 0.48);
  background: rgba(16, 15, 19, 0.82);
  backdrop-filter: blur(12px);
}
.spg-lever-track {
  position: relative;
  width: 118px;
  height: 190px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(223, 190, 125, 0.35);
}
.spg-lever-sweet {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 58%;
  height: 30%;
  border-radius: 10px;
  background: rgba(223, 190, 125, 0.28);
  border: 1px solid rgba(255, 224, 150, 0.72);
  display: grid;
  place-items: center;
  color: #FFE8AE;
  font-size: 11px;
  font-weight: 800;
}
.spg-lever-handle {
  position: absolute;
  top: 4px;
  left: 8px;
  right: 8px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #D5AA52, #9E7334);
  color: #1B1612;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
}
.spg-lever-handle.is-lit {
  box-shadow: 0 0 18px rgba(255, 224, 150, 0.85);
}

.spg-cup-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 20px;
  border: 1px solid rgba(223, 190, 125, 0.48);
  background: rgba(16, 15, 19, 0.82);
  backdrop-filter: blur(12px);
}
.spg-cup-canvas {
  border-radius: 50%;
  cursor: crosshair;
  touch-action: none;
}
.spg-cup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spg-cup-tip {
  color: #EADEC7;
  font-size: 11.5px;
}

.spg-vf-frame {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 176px;
  height: 128px;
  border: 2px solid rgba(235, 223, 198, 0.72);
  border-radius: 10px;
  background: rgba(16, 15, 19, 0.14);
  cursor: move;
  touch-action: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
}
.spg-vf-frame.is-locked {
  border-color: #FFE294;
  box-shadow: 0 0 22px rgba(242, 207, 114, 0.5);
}
.spg-vf-diamond {
  color: rgba(255, 232, 168, 0.85);
  font-size: 20px;
}
.spg-vf-frame.is-locked .spg-vf-diamond {
  color: #FFE294;
  transform: scale(1.25);
}

.spg-helm-dock {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(223, 190, 125, 0.52);
  background: rgba(14, 24, 36, 0.82);
  backdrop-filter: blur(12px);
}
.spg-helm-wheel {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 6px solid #C8A56A;
  box-shadow: inset 0 0 0 2px #5D4728, 0 6px 18px rgba(0, 0, 0, 0.45);
  cursor: ew-resize;
  touch-action: none;
  display: grid;
  place-items: center;
}
.spg-helm-spoke {
  position: absolute;
  width: 84px;
  height: 4px;
  background: #B49158;
}
.spg-helm-spoke.is-cross {
  transform: rotate(90deg);
}
.spg-helm-cap {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #221B15;
  border: 2px solid #DFBE7D;
  color: #FFE9B8;
  font-size: 9px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.spg-pour-card {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 18px;
  border: 1px solid rgba(223, 190, 125, 0.48);
  background: rgba(16, 15, 19, 0.82);
  backdrop-filter: blur(12px);
}
.spg-coupe-glass {
  position: relative;
  width: 96px;
  height: 112px;
  border: 2px solid rgba(235, 223, 198, 0.65);
  border-top: none;
  border-radius: 0 0 36px 36px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.spg-coupe-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 68%;
  height: 24%;
  background: rgba(242, 207, 114, 0.25);
  border-top: 1px dashed #FFE296;
  border-bottom: 1px dashed #FFE296;
  z-index: 2;
}
.spg-coupe-liquid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background: linear-gradient(180deg, #FFFDF5, #EBD9B2);
}

.spg-glider-board {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(80vw, 420px);
  height: 176px;
  border-radius: 18px;
  border: 1px solid rgba(223, 190, 125, 0.48);
  background: rgba(16, 15, 19, 0.78);
  backdrop-filter: blur(12px);
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
}
.spg-glider-items {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.spg-glider-drop {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 24px;
}
.spg-glider-cart {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #DFBE7D;
  background: rgba(45, 36, 30, 0.9);
  font-size: 20px;
  pointer-events: none;
}

.spg-sear-meter {
  position: relative;
  width: 240px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(223, 190, 125, 0.48);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.spg-sear-gold {
  position: absolute;
  left: 56%;
  width: 32%;
  top: 0;
  bottom: 0;
  background: rgba(242, 207, 114, 0.45);
  border-left: 1px solid #FFE296;
  border-right: 1px solid #FFE296;
}
.spg-sear-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0%;
  width: 6px;
  background: #FFFDF8;
  box-shadow: 0 0 10px #FFE296;
}

.spg-frost-box {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 340px;
  height: 170px;
  border-radius: 18px;
  border: 1.5px solid rgba(223, 190, 125, 0.56);
  background: rgba(20, 26, 32, 0.88);
  overflow: hidden;
}
.spg-frost-under {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px;
  gap: 8px;
}
.spg-frost-item {
  border: 1px solid rgba(223, 190, 125, 0.52);
  border-radius: 12px;
  background: rgba(34, 28, 26, 0.92);
  color: #FAF2E1;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 10px;
  cursor: pointer;
}
.spg-frost-item.is-picked {
  border-color: #66C48D;
  background: rgba(45, 92, 68, 0.88);
}
.spg-frost-canvas {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: none;
  transition: opacity 280ms ease;
}
.spg-frost-canvas.is-cleared {
  opacity: 0.12;
}
