:root {
  --glass-bg: rgba(14, 12, 30, 0.56);
  --glass-strong: rgba(12, 10, 26, 0.86);
  --glass-border: rgba(255, 224, 160, 0.28);
  --gold: #ffe099;
  --rose: #ff9ec7;
  --ice: #7cf7ff;
  --text-main: #f8f4ec;
  --text-dim: rgba(242, 236, 226, 0.76);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body,
#canvas-root {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #070614;
  color: var(--text-main);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

#canvas-root {
  position: fixed;
  inset: 0;
  touch-action: none;
}

#canvas-root canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* 启动加载过渡层 */
.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(circle at center, #151034 0%, #070614 75%);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.boot-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 224, 160, 0.16);
  border-top-color: var(--gold);
  border-right-color: var(--rose);
  animation: bootSpin 1s linear infinite;
}

.boot-title {
  font-size: 16px;
  letter-spacing: 0.24em;
  color: var(--gold);
  font-weight: 600;
}

.boot-sub {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

@keyframes bootSpin {
  to { transform: rotate(360deg); }
}

/* 顶部 HUD */
.hud-top {
  position: fixed;
  top: calc(22px + var(--safe-top));
  left: calc(28px + var(--safe-left));
  right: calc(28px + var(--safe-right));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
  z-index: 20;
}

.brand-block,
.countdown-card,
.control-dock,
.mobile-dock {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
  pointer-events: auto;
}

.stage-badge {
  padding-left: 8px;
  border-left: 1px solid rgba(255, 224, 160, 0.28);
  color: #dff5ff;
  letter-spacing: 0.06em;
}

.hero-script {
  margin-top: 8px;
  font-family: "Georgia", "Palatino Linotype", "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 4vw, 50px);
  letter-spacing: 0.03em;
  background: linear-gradient(120deg, #fff9e6 0%, #ffe099 42%, #ffb4d6 78%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 212, 130, 0.35));
}

.hero-sub {
  margin-top: 4px;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.countdown-card {
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  flex-shrink: 0;
}

.cd-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  opacity: 0.88;
  margin-bottom: 4px;
}

.cd-grid {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-family: "JetBrains Mono", "Consolas", monospace;
}

.cd-grid span {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: #fff8ea;
}

.cd-grid small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.cd-sep {
  font-size: 17px;
  color: var(--gold);
  opacity: 0.7;
}

.cd-holiday {
  display: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff4d6;
  padding: 4px 2px;
}

.countdown-card.is-christmas .cd-grid { display: none; }
.countdown-card.is-christmas .cd-holiday { display: block; }

/* 实机交互演示衔接过场卡片 */
.demo-bridge-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  z-index: 32;
  background: radial-gradient(circle at center, rgba(16, 12, 34, 0.42) 0%, rgba(7, 6, 20, 0.84) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bridge-card {
  text-align: center;
  padding: 36px 52px;
  max-width: calc(100vw - 36px);
  border-radius: 26px;
  background: rgba(14, 11, 32, 0.68);
  border: 1px solid rgba(255, 224, 153, 0.42);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62), inset 0 0 42px rgba(255, 214, 138, 0.1);
}

.bridge-kicker {
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 12px;
}

.bridge-title {
  font-family: "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
  font-size: clamp(28px, 4.8vw, 60px);
  font-weight: 700;
  letter-spacing: 0.2em;
  padding-left: 0.2em;
  background: linear-gradient(120deg, #fffdf5 0%, #ffe299 48%, #ffadd2 86%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 212, 128, 0.42));
}

.bridge-divider {
  width: min(300px, 68vw);
  height: 2px;
  margin: 18px auto 16px;
  background: rgba(255, 224, 153, 0.22);
  border-radius: 99px;
  overflow: hidden;
}

.bridge-divider span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7cf7ff, #ffe099, #ff9ec7);
  box-shadow: 0 0 12px rgba(255, 224, 153, 0.85);
}

.bridge-sub {
  font-size: clamp(13px, 1.8vw, 17px);
  letter-spacing: 0.12em;
  color: rgba(250, 243, 232, 0.88);
}

/* 桌面端底部控制栏 */
.control-dock {
  position: fixed;
  left: 50%;
  bottom: calc(18px + var(--safe-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 22px;
  background: rgba(12, 10, 26, 0.68);
  border: 1px solid rgba(255, 224, 160, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  z-index: 30;
  width: max-content;
  max-width: calc(100vw - 24px);
}

.dock-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.dock-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f3eee5;
  padding: 5.5px 10.5px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.dock-btn:hover {
  background: rgba(255, 224, 153, 0.18);
  border-color: rgba(255, 224, 153, 0.5);
  transform: translateY(-1px);
}

.dock-btn.active {
  background: linear-gradient(135deg, rgba(255, 218, 138, 0.36), rgba(255, 146, 198, 0.26));
  border-color: rgba(255, 224, 153, 0.76);
  color: #fffaf0;
}

.dock-btn.accent {
  background: linear-gradient(135deg, rgba(185, 38, 68, 0.82), rgba(226, 168, 75, 0.76));
  border-color: rgba(255, 224, 153, 0.84);
  color: #fffef9;
  font-weight: 600;
}

.dock-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 2px;
}

/* 手机端底部超精简胶囊栏 + 半屏抽屉 */
.mobile-dock {
  display: none;
  position: fixed;
  left: 50%;
  bottom: calc(14px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 30;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(12, 10, 26, 0.76);
  border: 1px solid rgba(255, 224, 160, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.52);
  gap: 6px;
  align-items: center;
  max-width: calc(100vw - 20px);
}

.m-pill-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f6efe3;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.m-pill-btn.active {
  background: linear-gradient(135deg, rgba(255, 218, 138, 0.36), rgba(255, 146, 198, 0.28));
  border-color: rgba(255, 224, 153, 0.78);
  color: #fff;
}

.m-pill-btn.accent {
  background: linear-gradient(135deg, rgba(185, 38, 68, 0.84), rgba(226, 168, 75, 0.78));
  border-color: rgba(255, 224, 153, 0.85);
  color: #fff;
  font-weight: 600;
}

/* 手机端半屏抽屉 */
.mobile-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 12, 0.45);
  z-index: 38;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 42;
  max-height: 70dvh;
  overflow-y: auto;
  padding: 12px 16px calc(22px + var(--safe-bottom));
  border-radius: 22px 22px 0 0;
  background: rgba(14, 12, 30, 0.94);
  border-top: 1px solid rgba(255, 224, 153, 0.35);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.65);
  transform: translateY(105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-sheet.open {
  transform: translateY(0);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 224, 153, 0.35);
  margin: 0 auto 2px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

.sheet-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}

.sheet-section-title {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sheet-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.sheet-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f4eee5;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.sheet-btn.active {
  background: linear-gradient(135deg, rgba(255, 218, 138, 0.34), rgba(255, 146, 198, 0.24));
  border-color: rgba(255, 224, 153, 0.78);
  color: #fff;
}

/* 定制抽屉（桌面右侧 / 手机居中全宽适配） */
.drawer {
  position: fixed;
  top: calc(20px + var(--safe-top));
  right: calc(20px + var(--safe-right));
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100dvh - 40px - var(--safe-top) - var(--safe-bottom));
  overflow-y: auto;
  padding: 18px;
  border-radius: 20px;
  background: var(--glass-strong);
  border: 1px solid rgba(255, 224, 153, 0.34);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  z-index: 46;
  display: none;
  flex-direction: column;
  gap: 11px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.62);
}

.drawer.open {
  display: flex;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

.drawer-head button {
  background: none;
  border: none;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  padding: 2px 6px;
}

.drawer label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--text-dim);
}

.drawer input[type="text"],
.drawer textarea,
.drawer select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 224, 153, 0.24);
  border-radius: 10px;
  padding: 8px 10px;
  color: #fff;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.drawer select option {
  background: #141128;
  color: #fff;
}

.drawer-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wax-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.wax-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wax-dot.active {
  border-color: #fff;
  transform: scale(1.14);
  box-shadow: 0 0 12px rgba(255, 224, 153, 0.8);
}

.photo-upload-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mini-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 224, 153, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #f6efe2;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
}

.mini-btn:hover {
  background: rgba(255, 224, 153, 0.2);
}

.apply-btn {
  margin-top: 2px;
  padding: 10px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #e7b85e, #d46a92);
  color: #160d18;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.share-btn {
  padding: 9px;
  border-radius: 12px;
  border: 1px solid rgba(124, 247, 255, 0.45);
  background: rgba(124, 247, 255, 0.12);
  color: #dff9ff;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
}

.hud-toggles {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 224, 153, 0.16);
}

.hud-toggles-title {
  font-size: 11.5px;
  color: var(--gold);
  margin-bottom: 8px;
}

.hud-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

.drawer label.toggle-chip {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #f2ebe0;
  cursor: pointer;
}

.drawer label.toggle-chip input {
  width: 14px;
  height: 14px;
  accent-color: #e7b85e;
  cursor: pointer;
}

/* 悬浮提示与 AI 手势窗口 */
.toast {
  position: fixed;
  top: calc(20px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(20, 16, 38, 0.9);
  border: 1px solid rgba(255, 224, 153, 0.48);
  color: #fff4d8;
  font-size: 12.5px;
  max-width: calc(100vw - 32px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.gesture-panel {
  position: fixed;
  right: calc(20px + var(--safe-right));
  bottom: calc(74px + var(--safe-bottom));
  width: 210px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(12, 10, 26, 0.85);
  border: 1px solid rgba(255, 224, 153, 0.42);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  z-index: 35;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gesture-panel.active { display: flex; }

.gesture-panel.cam-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(12px) scale(0.95);
}

.gesture-hide-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 224, 153, 0.42);
  background: rgba(12, 10, 26, 0.72);
  color: #f8f0dc;
  font-size: 11px;
  cursor: pointer;
}

.gesture-media {
  position: relative;
  width: 100%;
  height: 144px;
  background: #080714;
}

.gesture-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: block;
}

.gesture-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gesture-status {
  padding: 6px 8px 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
}

.gesture-legend {
  padding: 2px 8px 7px;
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.4;
}

/* 右下角主隐藏/展开与切换入口 */
.hud-master-toggle {
  position: fixed;
  right: calc(20px + var(--safe-right));
  bottom: calc(20px + var(--safe-bottom));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 224, 160, 0.32);
  background: rgba(14, 12, 30, 0.64);
  backdrop-filter: blur(14px);
  color: #f6eedc;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

body.hud-all-hidden .hud-master-toggle {
  opacity: 0.3;
  padding: 8px 10px;
}

body.hud-all-hidden .hud-master-toggle .hud-toggle-label { display: none; }

.hud-element-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(10px) scale(0.98) !important;
}

.control-dock.hud-element-hidden,
.mobile-dock.hud-element-hidden {
  transform: translateX(-50%) translateY(18px) scale(0.98) !important;
}

body.hud-all-hidden .brand-block,
body.hud-all-hidden .countdown-card,
body.hud-all-hidden .control-dock,
body.hud-all-hidden .mobile-dock,
body.hud-all-hidden .drawer,
body.hud-all-hidden .gesture-panel {
  opacity: 0 !important;
  pointer-events: none !important;
}

.mode-switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 224, 160, 0.26);
  color: #e6f4ff;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
  margin-left: 6px;
}

/* 手机端专属布局（通过 layout-mobile 类激活） */
body.layout-mobile .control-dock { display: none !important; }
body.layout-mobile .mobile-dock { display: flex; }

body.layout-mobile .hud-top {
  top: calc(12px + var(--safe-top));
  left: calc(14px + var(--safe-left));
  right: calc(14px + var(--safe-right));
  align-items: flex-start;
}

body.layout-mobile .brand-pill {
  padding: 4px 10px;
  font-size: 11px;
  gap: 5px;
  white-space: nowrap;
}

body.layout-mobile .stage-badge {
  display: none;
}

body.layout-mobile .mode-switch-link {
  padding: 2px 7px;
  font-size: 10.5px;
  margin-left: 3px;
  white-space: nowrap;
}

body.layout-mobile .hero-script {
  margin-top: 4px;
  font-size: 23px;
}

body.layout-mobile .hero-sub {
  font-size: 11.5px;
  max-width: 56vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.layout-mobile .countdown-card {
  padding: 6px 10px;
  border-radius: 12px;
}

body.layout-mobile .cd-label {
  font-size: 8.5px;
  margin-bottom: 2px;
}

body.layout-mobile .cd-grid { gap: 3px; }
body.layout-mobile .cd-grid span { font-size: 13.5px; }
body.layout-mobile .cd-grid small { font-size: 7.5px; }
body.layout-mobile .cd-sep { font-size: 12px; }

body.layout-mobile .hud-master-toggle {
  top: calc(66px + var(--safe-top));
  bottom: auto;
  right: calc(14px + var(--safe-right));
  padding: 4px 9px;
  font-size: 11px;
}

body.layout-mobile .hud-master-toggle .hud-toggle-label {
  display: none;
}

body.layout-mobile .gesture-panel {
  right: calc(12px + var(--safe-right));
  bottom: calc(74px + var(--safe-bottom));
  width: 146px;
}

body.layout-mobile .gesture-media { height: 102px; }
body.layout-mobile .gesture-legend { display: none; }

body.layout-mobile .drawer {
  top: auto;
  left: 12px;
  right: 12px;
  bottom: calc(14px + var(--safe-bottom));
  width: auto;
  max-height: 76dvh;
}

/* 桌面端隐藏手机专用底部栏 */
body.layout-pc .mobile-dock,
body.layout-pc .mobile-sheet,
body.layout-pc .mobile-sheet-backdrop {
  display: none !important;
}

/* 提示角标 */
.interact-hint {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-bottom));
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(12, 10, 26, 0.48);
  border: 1px solid rgba(255, 224, 160, 0.16);
  color: rgba(255, 240, 206, 0.72);
  font-size: 11px;
  letter-spacing: 0.06em;
  pointer-events: none;
  z-index: 15;
  white-space: nowrap;
  transition: opacity 0.4s ease;
}

body.layout-mobile .interact-hint {
  bottom: calc(70px + var(--safe-bottom));
  font-size: 10.5px;
}

body.hud-all-hidden .interact-hint {
  opacity: 0 !important;
}
