:root {
  --glass-bg: rgba(9, 18, 35, 0.62);
  --glass-bg-deep: rgba(7, 14, 28, 0.78);
  --glass-border: rgba(186, 224, 255, 0.18);
  --glass-gold-border: rgba(255, 220, 138, 0.34);
  --text-main: #f4f7fc;
  --text-soft: rgba(220, 234, 252, 0.76);
  --text-muted: rgba(184, 206, 232, 0.58);
  --gold: #ffde8a;
  --cyan: #58e1ff;
  --magenta: #f04b7a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #040916;
  color: var(--text-main);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-font-smoothing: antialiased;
}

#scene-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  touch-action: none;
}

#scene-container canvas {
  display: block;
  touch-action: none;
}

/* Safari 友好的不可见视频源，避免 display:none 暂停解码 */
.sr-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  opacity: 0.001;
  pointer-events: none;
  z-index: -1;
}

/* 通用玻璃拟态面板 */
.hud-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 12px 34px rgba(2, 8, 22, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  border-radius: 16px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 224, 150, 0.8);
  margin-bottom: 4px;
}

/* 左上角品牌卡片 */
.hud-top-left {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 20;
  padding: 14px 16px 13px;
  width: 282px;
}

.brand-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.14em;
  background: linear-gradient(120deg, #ffffff 10%, #ffe6a8 65%, #a8f0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.25;
}

.brand-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 11px;
}

.meta-pill {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 220, 138, 0.14);
  border: 1px solid rgba(255, 220, 138, 0.3);
  color: #ffe8a8;
}

.meta-pill-soft {
  background: rgba(110, 210, 255, 0.12);
  border-color: rgba(110, 210, 255, 0.25);
  color: #bfefff;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.chip-toggle .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  transition: all 0.22s ease;
}

.chip-toggle.active {
  color: #fff6dc;
  background: rgba(255, 220, 135, 0.14);
  border-color: rgba(255, 220, 135, 0.42);
}

.chip-toggle.active .dot {
  background: #ffe08a;
  box-shadow: 0 0 8px #ffd875;
}

.chip-toggle:hover {
  border-color: rgba(255, 232, 165, 0.55);
  color: #fff;
}

/* 顶部居中动态主题横幅（复刻“光影重温” / “万愿升空”） */
.hud-top-center {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 11px 28px 12px;
  text-align: center;
  min-width: 280px;
  max-width: 440px;
  border-color: var(--glass-gold-border);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.banner-badge {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(164, 235, 255, 0.85);
  margin-bottom: 3px;
}

.banner-title {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  color: #fff8e6;
  text-shadow: 0 0 18px rgba(255, 222, 138, 0.42);
}

.banner-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.06em;
}

/* 右上角工具胶囊 */
.hud-top-right {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.icon-pill .pill-icon {
  color: var(--gold);
  font-size: 13px;
}

.icon-pill:hover,
.icon-pill.active {
  border-color: rgba(255, 222, 138, 0.55);
  background: rgba(255, 220, 138, 0.15);
  box-shadow: 0 0 16px rgba(255, 214, 118, 0.22);
}

/* 底部居中：单张照片详情卡（光影重温） */
.photo-detail-card {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 22;
  width: min(440px, calc(100vw - 36px));
  padding: 14px 22px 15px;
  text-align: center;
  border-color: var(--glass-gold-border);
  background: rgba(10, 18, 34, 0.76);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.photo-detail-card.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(18px);
}

.detail-counter {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 4px;
}

.detail-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.08em;
}

.detail-caption {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.5;
}

.detail-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.detail-btn {
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #eef5ff;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.detail-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 224, 145, 0.55);
}

.detail-btn-primary {
  background: rgba(255, 218, 128, 0.18);
  border-color: rgba(255, 218, 128, 0.55);
  color: #ffefc2;
}

/* 底部主控制胶囊栏 */
.hud-bottom-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  max-width: calc(100vw - 20px);
  overflow-x: auto;
  scrollbar-width: none;
}

.hud-bottom-dock::-webkit-scrollbar {
  display: none;
}

.dock-presets,
.dock-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dock-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
}

.dock-btn .mini-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.dock-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.dock-btn.active {
  color: #fff6dc;
  background: rgba(255, 222, 138, 0.16);
  border-color: rgba(255, 222, 138, 0.42);
}

.dock-btn.active .mini-dot {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.dock-btn-wish:hover,
.dock-btn-wish.active {
  border-color: rgba(110, 232, 255, 0.55);
  background: rgba(88, 225, 255, 0.16);
}

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
}

.action-cyan {
  background: linear-gradient(135deg, rgba(24, 152, 196, 0.82), rgba(30, 198, 212, 0.78));
  border-color: rgba(145, 244, 255, 0.48);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(34, 190, 218, 0.28);
}

.action-cyan:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.action-gold {
  background: rgba(255, 214, 118, 0.18);
  border-color: rgba(255, 220, 138, 0.48);
  color: #ffefc4;
}

.action-gold:hover {
  background: rgba(255, 214, 118, 0.28);
  transform: translateY(-1px);
}

.action-magenta {
  background: linear-gradient(135deg, rgba(212, 48, 96, 0.88), rgba(244, 86, 128, 0.86));
  border-color: rgba(255, 172, 198, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(235, 62, 114, 0.35);
}

.action-magenta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.action-magenta.active {
  box-shadow: 0 0 22px rgba(255, 86, 136, 0.65);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.action-magenta.active .live-dot {
  background: #7dffb8;
  box-shadow: 0 0 8px #7dffb8;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* 收起状态下的超迷你手势唤出胶囊（完全不挡照片和奇境视野） */
.gesture-mini-pill {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 26;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(9, 18, 36, 0.78);
  border-color: rgba(110, 255, 176, 0.45);
  color: #effaf3;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
}

.gesture-mini-pill:hover {
  border-color: rgba(255, 224, 145, 0.72);
  transform: translateY(-1px);
}

.gesture-mini-pill.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.92);
}

.mini-pill-arrow {
  font-size: 10px;
  color: var(--gold);
}

/* 右下角摄像头手势监控浮窗 */
.gesture-widget {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 27;
  width: 268px;
  padding: 10px 10px 11px;
  background: var(--glass-bg-deep);
  border-color: rgba(255, 146, 180, 0.36);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.gesture-widget.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.96);
}

.gesture-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.gesture-widget-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #ffeaf1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.widget-pill-btn {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #eef5ff;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.widget-pill-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 224, 145, 0.55);
}

.widget-pill-danger {
  background: rgba(235, 58, 98, 0.28);
  border-color: rgba(255, 130, 160, 0.5);
  color: #ffdce5;
}

.widget-pill-danger:hover {
  background: rgba(235, 58, 98, 0.52);
  color: #fff;
}

.live-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffbe5c;
}

.live-indicator.active {
  background: #6effb0;
  box-shadow: 0 0 8px #6effb0;
}

.live-indicator.error {
  background: #ff6b78;
}

.widget-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 5px;
}

.widget-close-btn:hover {
  color: #fff;
}

.gesture-canvas-wrap {
  position: relative;
  width: 100%;
  height: 162px;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(circle at center, #0e2240, #050b18);
  border: 1px solid rgba(170, 220, 255, 0.18);
}

#gesture-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gesture-overlay-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7, 16, 32, 0.78);
  border: 1px solid rgba(255, 224, 145, 0.42);
  font-size: 11.5px;
  color: #ffefc4;
  backdrop-filter: blur(8px);
}

.gesture-quick-hints {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 8px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-soft);
}

.sim-drawer {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 7px;
  font-size: 11px;
  color: var(--text-muted);
}

.sim-drawer summary {
  cursor: pointer;
  outline: none;
}

.sim-btn-grid {
  margin-top: 7px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.sim-btn {
  padding: 5px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #eaf3ff;
  font-size: 11px;
  cursor: pointer;
}

.sim-btn:hover {
  background: rgba(255, 220, 138, 0.2);
  border-color: rgba(255, 220, 138, 0.5);
}

/* Toast 提示 */
.toast-container {
  position: fixed;
  top: 108px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(8, 18, 36, 0.86);
  border: 1px solid rgba(255, 224, 145, 0.45);
  color: #fff6dc;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  animation: toastIn 0.28s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 弹窗通用样式 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 7, 18, 0.68);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  width: min(820px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: rgba(9, 19, 38, 0.92);
  border: 1px solid rgba(255, 224, 145, 0.32);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.modal-guide {
  width: min(640px, 100%);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-header h2 {
  font-size: 20px;
  color: #fff7e2;
  letter-spacing: 0.06em;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* 上传拖拽区 */
.upload-dropzone {
  border: 1.5px dashed rgba(130, 228, 255, 0.45);
  background: rgba(20, 48, 78, 0.28);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  transition: all 0.22s ease;
  margin-bottom: 18px;
}

.upload-dropzone.drag-over {
  border-color: var(--gold);
  background: rgba(255, 220, 138, 0.12);
}

.dropzone-icon {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 6px;
}

.dropzone-title {
  font-size: 14.5px;
  color: #ffffff;
  font-weight: 500;
}

.dropzone-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.dropzone-buttons {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* 照片管理网格 */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
}

.photo-item-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 224, 145, 0.22);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.photo-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
  background: #081224;
}

.photo-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photo-thumb-wrap:hover img {
  transform: scale(1.05);
}

.photo-thumb-index {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(8, 16, 30, 0.78);
  color: var(--gold);
  border: 1px solid rgba(255, 224, 145, 0.35);
}

.photo-item-body {
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.photo-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  padding: 5px 8px;
  color: #fff;
  font-size: 12px;
  outline: none;
}

.photo-input:focus {
  border-color: var(--gold);
}

.photo-item-footer {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
}

.mini-action {
  flex: 1;
  padding: 4px 6px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e6f2ff;
  font-size: 11.5px;
  cursor: pointer;
}

.mini-action:hover {
  background: rgba(255, 220, 138, 0.2);
}

.mini-action.danger:hover {
  background: rgba(240, 75, 110, 0.32);
  border-color: rgba(255, 120, 150, 0.5);
}

/* 手势指南弹窗 */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.guide-item {
  display: flex;
  gap: 12px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-emoji {
  font-size: 26px;
  line-height: 1.2;
  flex-shrink: 0;
}

.guide-info h3 {
  font-size: 14px;
  color: #ffefc4;
  margin-bottom: 4px;
}

.guide-info p {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.55;
}

.guide-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 1120px) {
  .hud-top-left {
    width: 224px;
    padding: 10px 12px;
  }
  .brand-title {
    font-size: 20px;
  }
  .hud-top-center {
    min-width: 196px;
    max-width: 290px;
    padding: 8px 16px;
  }
  .banner-title {
    font-size: 18px;
    letter-spacing: 0.16em;
  }
  .banner-subtitle {
    font-size: 11px;
  }
  .icon-pill {
    padding: 6px 10px;
    font-size: 11.5px;
    gap: 4px;
  }
  .hud-bottom-dock {
    gap: 6px;
    padding: 6px 10px;
  }
  .dock-btn {
    padding: 5px 8px;
    font-size: 11.5px;
    gap: 4px;
  }
  .action-pill {
    padding: 6px 10px;
    font-size: 11.5px;
  }
}

@media (max-width: 860px) {
  .hud-top-right {
    top: auto;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    right: 12px;
    flex-direction: column;
    align-items: flex-end;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

/* 手机竖屏专属精简适配（避免左右顶栏重叠，保留饱满 3D 视野） */
@media (max-width: 600px) {
  .hud-top-left {
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
    padding: 8px 11px;
  }
  .hud-top-left .eyebrow,
  .hud-top-left .brand-meta {
    display: none;
  }
  .brand-title {
    font-size: 16px;
    margin-bottom: 6px;
  }
  .chip-toggle {
    padding: 3px 7px;
    font-size: 10.5px;
  }
  .hud-top-center {
    top: calc(82px + env(safe-area-inset-top, 0px));
    min-width: 170px;
    max-width: calc(100vw - 28px);
    padding: 6px 14px;
  }
  .banner-badge {
    font-size: 9px;
  }
  .banner-title {
    font-size: 16px;
  }
  .banner-subtitle {
    font-size: 10.5px;
  }
  .photo-detail-card {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 24px);
    padding: 11px 14px 12px;
  }
  .detail-title {
    font-size: 15.5px;
  }
  .detail-caption {
    font-size: 11.5px;
  }
  .detail-btn {
    padding: 5px 11px;
    font-size: 11.5px;
  }
  .hud-bottom-dock {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 14px);
    padding: 5px 8px;
    gap: 5px;
  }
  .gesture-mini-pill {
    top: auto;
    right: 10px;
    bottom: calc(192px + env(safe-area-inset-bottom, 0px));
    padding: 5px 10px;
    font-size: 11px;
  }
  .gesture-widget {
    right: 10px;
    bottom: calc(168px + env(safe-area-inset-bottom, 0px));
    width: min(226px, calc(100vw - 24px));
    padding: 8px;
  }
  .gesture-canvas-wrap {
    height: 118px;
  }
  .gesture-quick-hints {
    grid-template-columns: 1fr 1fr;
    font-size: 10px;
  }
}
