:root {
  --bg-deep: #020612;
  --glass-bg: rgba(8, 16, 32, 0.68);
  --glass-bg-strong: rgba(7, 14, 28, 0.86);
  --glass-border: rgba(145, 225, 255, 0.18);
  --glass-border-gold: rgba(247, 212, 134, 0.42);
  --gold: #f7d688;
  --gold-bright: #ffebb5;
  --aurora: #4df5d8;
  --text-main: #f3f7ff;
  --text-muted: rgba(215, 232, 255, 0.72);
  --text-dim: rgba(190, 212, 240, 0.52);
  --shadow-panel: 0 20px 60px rgba(0, 0, 0, 0.55);
  --radius-pill: 999px;
  --radius-card: 16px;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  cursor: grab;
}

#canvas-container:active {
  cursor: grabbing;
}

#canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Loading screen */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(circle at 50% 40%, #091b36 0%, #020612 72%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.loader-star {
  width: 54px;
  height: 54px;
  color: var(--gold-bright);
  filter: drop-shadow(0 0 18px rgba(255, 220, 125, 0.75));
  animation: pulseStar 1.8s ease-in-out infinite;
}

@keyframes pulseStar {
  0%, 100% { transform: scale(0.92) rotate(0deg); opacity: 0.8; }
  50% { transform: scale(1.08) rotate(12deg); opacity: 1; }
}

.loader-title {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Songti SC", serif;
  font-size: 28px;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  text-shadow: 0 0 24px rgba(247, 214, 136, 0.45);
}

.loader-sub {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* UI Overlay */
#ui-layer {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

body.immersive #ui-layer .hide-in-immersive {
  opacity: 0;
  pointer-events: none !important;
  transform: translateY(-6px);
}

/* Top-Left Hero Greeting */
.hero-header {
  position: fixed;
  top: 26px;
  left: 30px;
  max-width: min(440px, calc(100vw - 120px));
  pointer-events: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(215, 240, 255, 0.86);
  margin-bottom: 10px;
}

.brand-row svg {
  width: 15px;
  height: 15px;
  color: var(--aurora);
  filter: drop-shadow(0 0 8px rgba(77, 245, 216, 0.65));
}

.sender-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(16, 30, 56, 0.56);
  border: 1px solid rgba(247, 214, 136, 0.28);
  backdrop-filter: blur(12px);
  font-size: 12px;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.sender-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 0 10px var(--aurora);
}

.hero-title {
  font-family: "Cormorant Garamond", "Playfair Display", "Times New Roman", "Songti SC", serif;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fffdf5 0%, #fce1a6 62%, #d8a64d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 20px rgba(247, 200, 100, 0.26));
  margin-bottom: 8px;
}

.hero-blessing {
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.55;
  color: rgba(240, 247, 255, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
  margin-bottom: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* Christmas Countdown */
.countdown-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(8, 17, 34, 0.52);
  border: 1px solid rgba(145, 225, 255, 0.14);
  backdrop-filter: blur(12px);
}

.countdown-label {
  font-size: 11px;
  color: var(--text-dim);
  padding-right: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.cd-unit {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.cd-num {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-bright);
}

.cd-txt {
  font-size: 10px;
  color: var(--text-dim);
}

/* Top-Right Quick Bar */
.top-right-bar {
  position: fixed;
  top: 24px;
  right: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  color: var(--text-main);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.pill-btn:hover {
  border-color: var(--glass-border-gold);
  background: rgba(18, 34, 62, 0.82);
  color: var(--gold-bright);
  transform: translateY(-1px);
}

.pill-btn.active {
  border-color: rgba(77, 245, 216, 0.55);
  background: rgba(16, 52, 66, 0.78);
  color: #a9fff0;
  box-shadow: 0 0 18px rgba(77, 245, 216, 0.22);
}

.pill-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Immersive restore button */
#exit-immersive-btn {
  position: fixed;
  top: 24px;
  right: 26px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.immersive #exit-immersive-btn {
  opacity: 0.72;
  pointer-events: auto;
}

body.immersive #exit-immersive-btn:hover {
  opacity: 1;
}

/* Right-Edge Circular Dock (Matches Douyin video UI!) */
.right-dock {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dock-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.dock-btn svg {
  width: 20px;
  height: 20px;
}

.dock-btn:hover {
  transform: scale(1.08);
  border-color: var(--glass-border-gold);
  color: var(--gold-bright);
  background: rgba(16, 30, 56, 0.88);
  box-shadow: 0 0 22px rgba(247, 214, 136, 0.25);
}

.dock-btn.active {
  border-color: var(--aurora);
  color: var(--aurora);
  background: rgba(12, 46, 58, 0.85);
  box-shadow: 0 0 22px rgba(77, 245, 216, 0.3);
}

.dock-btn .dock-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8d27a, #e29d38);
  color: #161006;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-btn .dock-tip {
  position: absolute;
  right: 58px;
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(7, 14, 28, 0.9);
  border: 1px solid rgba(145, 225, 255, 0.2);
  color: var(--text-main);
  font-size: 12px;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.dock-btn:hover .dock-tip {
  opacity: 1;
  transform: translateX(0);
}

/* Music spinning ring when playing */
.dock-btn.playing svg {
  animation: gentleSpin 6s linear infinite;
}

@keyframes gentleSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Photo Focus Navigation Bar */
.focus-controls {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(7, 14, 28, 0.8);
  border: 1px solid var(--glass-border-gold);
  backdrop-filter: blur(16px);
  pointer-events: none;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.focus-controls.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.focus-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.focus-nav-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(247, 214, 136, 0.14);
}

.focus-caption {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--gold-bright);
  padding: 0 6px;
}

/* Bottom Hint Bar */
.bottom-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(6, 13, 26, 0.52);
  border: 1px solid rgba(145, 225, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}

.hint-sep {
  opacity: 0.35;
}

/* Gesture HUD (Bottom-Left when Camera Active) */
.gesture-hud {
  position: fixed;
  left: 26px;
  bottom: 24px;
  width: 224px;
  padding: 12px;
  border-radius: var(--radius-card);
  background: var(--glass-bg-strong);
  border: 1px solid rgba(77, 245, 216, 0.32);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-panel);
  pointer-events: auto;
  display: none;
  flex-direction: column;
  gap: 9px;
}

.gesture-hud.visible {
  display: flex;
}

.gesture-hud-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--aurora);
}

.gesture-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.gesture-live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 0 10px var(--aurora);
  animation: blinkDot 1.4s ease-in-out infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.gesture-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 2px 4px;
}

.gesture-close-btn:hover {
  color: var(--text-main);
}

.gesture-preview-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #030915;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#gesture-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  opacity: 0.45;
}

#gesture-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
}

.gesture-status-pill {
  font-size: 12px;
  text-align: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(77, 245, 216, 0.1);
  border: 1px solid rgba(77, 245, 216, 0.22);
  color: #c8fff4;
}

.gesture-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  font-size: 11px;
  color: var(--text-dim);
}

/* Right Side Drawer: Memory Album & Customize */
.side-drawer {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(390px, calc(100vw - 32px));
  z-index: 30;
  border-radius: 20px;
  background: rgba(11, 20, 38, 0.88);
  border: 1px solid rgba(165, 220, 255, 0.2);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(calc(100% + 28px));
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}

.side-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(90deg);
}

.drawer-sub {
  padding: 10px 22px 6px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px 20px;
}

.drawer-body::-webkit-scrollbar {
  width: 5px;
}

.drawer-body::-webkit-scrollbar-thumb {
  background: rgba(247, 214, 136, 0.35);
  border-radius: 999px;
}

/* Upload Dropzone */
.upload-zone {
  border: 1.5px dashed rgba(247, 214, 136, 0.4);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  background: rgba(247, 214, 136, 0.05);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 16px;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--gold-bright);
  background: rgba(247, 214, 136, 0.12);
}

.upload-zone-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.upload-zone-sub {
  font-size: 11.5px;
  color: var(--text-dim);
}

/* Album 2-Column Grid (Matches step_41_shot_3.png!) */
.album-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.album-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 240, 200, 0.58);
  background: #0a1428;
  cursor: pointer;
  transition: all 0.24s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.album-item:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(247, 214, 136, 0.4);
}

.album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-item-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(5, 10, 20, 0.78);
  color: #ffd3d3;
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-item:hover .album-item-del {
  opacity: 1;
}

.album-item-del:hover {
  background: #d9384a;
  color: #fff;
}

.album-item-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4px 7px;
  font-size: 10.5px;
  background: linear-gradient(to top, rgba(4, 10, 22, 0.85), transparent);
  color: rgba(255, 248, 232, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 10px;
}

/* Form controls for Customize Drawer */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(155, 215, 255, 0.2);
  background: rgba(4, 10, 22, 0.65);
  color: var(--text-main);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(247, 214, 136, 0.14);
}

.form-textarea {
  resize: vertical;
  min-height: 70px;
}

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

.theme-card {
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.theme-card:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.theme-card.active {
  border-color: var(--gold-bright);
  background: rgba(247, 214, 136, 0.12);
}

.theme-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 0 auto 7px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.theme-name {
  font-size: 12px;
  color: var(--text-main);
}

.action-btn {
  flex: 1;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.action-btn.primary {
  background: linear-gradient(135deg, #f7d688 0%, #e1a847 100%);
  color: #161005;
  border: none;
  font-weight: 600;
  box-shadow: 0 6px 22px rgba(241, 189, 86, 0.32);
}

.action-btn.primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.music-upload-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.pill-btn.gold {
  border-color: rgba(247, 214, 136, 0.58);
  background: linear-gradient(135deg, rgba(247, 214, 136, 0.24), rgba(225, 168, 71, 0.16));
  color: var(--gold-bright);
  box-shadow: 0 0 22px rgba(247, 214, 136, 0.2);
}

.pill-btn.gold:hover {
  background: linear-gradient(135deg, rgba(247, 214, 136, 0.38), rgba(225, 168, 71, 0.28));
  border-color: var(--gold-bright);
}

/* Share Link Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(2, 6, 16, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.28s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.share-modal {
  width: min(430px, 100%);
  border-radius: 22px;
  background: rgba(10, 20, 38, 0.94);
  border: 1px solid var(--glass-border-gold);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  padding: 24px;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.open .share-modal {
  transform: translateY(0) scale(1);
}

.share-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.share-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-bright);
}

.share-modal-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.share-link-box {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(145, 225, 255, 0.25);
  background: rgba(4, 10, 22, 0.78);
  color: #a9fff0;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  word-break: break-all;
  user-select: text;
  margin-bottom: 16px;
}

.share-modal-actions {
  display: flex;
  gap: 10px;
}

/* Toast Notification */
#toast {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 60;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(10, 22, 42, 0.92);
  border: 1px solid var(--glass-border-gold);
  color: var(--gold-bright);
  font-size: 13px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

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

/* Responsive */
@media (max-width: 720px) {
  .hero-header {
    top: 16px;
    left: 16px;
  }
  .top-right-bar {
    top: 16px;
    right: 16px;
  }
  .right-dock {
    right: 12px;
  }
  .dock-btn {
    width: 42px;
    height: 42px;
  }
  .bottom-hint {
    font-size: 11px;
    padding: 6px 12px;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gesture-hud {
    left: 12px;
    bottom: 62px;
    width: 180px;
  }
}
