/* ==================== 8. GLASS STUDIO CHROME & DOCK ==================== */
.glass {
  background: var(--chrome-bg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--chrome-border);
  box-shadow: var(--chrome-shadow);
  color: var(--chrome-text);
}

#hint {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--chrome-mute);
  white-space: nowrap;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

#hint.fade {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
}

.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

#dock {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 40;
  max-width: calc(100vw - 18px);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
}

#dock::-webkit-scrollbar {
  display: none;
}

.d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: 999px;
  color: var(--chrome-text);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease, transform 0.12s ease;
}

.d:hover {
  background: var(--chrome-hover);
}

.d:active {
  transform: scale(0.96);
}

.d.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.d.primary {
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 100%);
  color: var(--accent-fg);
  font-weight: 600;
  box-shadow: 0 3px 12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.d.primary:hover {
  filter: brightness(1.06);
}

.d.icon-only {
  padding: 8px 9px;
}

.sep {
  width: 1px;
  height: 20px;
  background: var(--chrome-border-strong);
  margin: 0 3px;
  flex: none;
}

#zv {
  min-width: 52px;
  font-variant-numeric: tabular-nums;
}

/* Animated Sun / Moon Theme Toggle */
#bTheme {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  overflow: hidden;
}

#bTheme .theme-ic {
  position: absolute;
  width: 16px;
  height: 16px;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

body[data-mode="light"] #icSun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body[data-mode="light"] #icMoon {
  opacity: 0;
  transform: rotate(-75deg) scale(0.5);
}

body[data-mode="dark"] #icSun {
  opacity: 0;
  transform: rotate(75deg) scale(0.5);
}

body[data-mode="dark"] #icMoon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: var(--accent);
}
