/* 我的星空 V1 — 产品层覆盖真实引擎，非 Stellarium Web 皮肤 */
.ms-v1-page #msLegacyRoot {
  display: none !important;
}
.ms-v1-page {
  --ms-ink: #e8eef8;
  --ms-muted: rgba(232, 238, 248, 0.72);
  --ms-gold: #d4b56a;
  --ms-glass: rgba(8, 12, 22, 0.48);
  --ms-glass-border: rgba(212, 181, 106, 0.18);
  --ms-danger: #f0a8a8;
  --ms-ok: #a8d8b8;
  background: #05080f;
  color: var(--ms-ink);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}
/* 全幅星空：藏站点头尾与回顶，避免页脚撑出滚动把顶栏裁掉 */
.ms-v1-page .site-header,
.ms-v1-page .yc-site-header,
.ms-v1-page .yc-header,
.ms-v1-page .yc-header-wrap,
.ms-v1-page .commercial-footer,
.ms-v1-page .yc-footer,
.ms-v1-page .yc-commercial-footer,
.ms-v1-page .yc-back-to-top,
.ms-v1-page .yc-feedback-fab,
.ms-v1-page #ycFeedbackFab {
  display: none !important;
}
.ms-v1-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.ms-selected-name {
  position: absolute;
  z-index: 5;
  transform: translateX(-50%);
  max-width: min(260px, 80%);
  color: #fff;
  font: 600 14px/1.4 "Microsoft YaHei", sans-serif;
  text-align: center;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
}
.ms-selected-name[hidden] { display: none; }
.ms-v1-stage {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 70%, #142038 0%, #05080f 70%);
}
.ms-v1-stage canvas#stel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  /* Display size from CSS only; backing store set in JS via DPR. */
  image-rendering: auto;
}
.ms-v1-stage canvas#msOverlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 2; /* below landscape so hills/lake/city occlude low stars */
  image-rendering: auto;
}

/*
 * Layer: 360° cylindrical landscape (synced to camera yaw/FOV/pitch).
 * Above constellation overlay so ground occludes stars behind hills/lake/city.
 * UI dock stays higher.
 */
.ms-v1-landscape {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.ms-v1-pano-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  transition: opacity 0.45s ease;
  opacity: 1;
  /* keep photo ground readable; halo is drawn in canvas */
  filter: brightness(0.95) saturate(1.02);
}
.ms-v1-pano-canvas.ms-v1-pano-fade {
  opacity: 0;
}
.ms-v1-landscape.is-crossfading .ms-v1-pano-fade {
  opacity: 1;
}
.ms-v1-landscape[data-tone="dusk"] .ms-v1-pano-canvas {
  filter: brightness(0.95) saturate(1.08) sepia(0.14);
}
.ms-v1-landscape[data-tone="twilight"] .ms-v1-pano-canvas {
  filter: brightness(0.88) saturate(0.92) hue-rotate(-6deg);
}
.ms-v1-landscape[data-tone="night"] .ms-v1-pano-canvas {
  filter: brightness(0.86) saturate(0.9) hue-rotate(-8deg);
}
.ms-v1-landscape[data-tone="predawn"] .ms-v1-pano-canvas {
  filter: brightness(0.78) saturate(0.85) hue-rotate(-12deg);
}
.ms-v1-landscape[data-tone="day"] .ms-v1-pano-canvas {
  filter: brightness(1) saturate(1.05);
}
/* City night: keep window lights readable — never crush to black */
.ms-v1-landscape[data-land="city"][data-tone="night"] .ms-v1-pano-canvas,
.ms-v1-landscape[data-land="city"][data-tone="predawn"] .ms-v1-pano-canvas {
  filter: brightness(0.92) contrast(1.15) saturate(1.08);
}
.ms-v1-landscape[data-land="city"][data-tone="twilight"] .ms-v1-pano-canvas {
  filter: brightness(0.94) contrast(1.1) saturate(1.05);
}

/* CSS lite sky fallback */
.ms-lite-sky .ms-v1-stage {
  background:
    radial-gradient(1px 1px at 12% 18%, #fff 0, transparent 100%),
    radial-gradient(1px 1px at 28% 42%, #ffe9b0 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 22%, #fff 0, transparent 100%),
    radial-gradient(1px 1px at 62% 55%, #cde 0, transparent 100%),
    radial-gradient(1px 1px at 78% 30%, #fff 0, transparent 100%),
    radial-gradient(1.2px 1.2px at 88% 48%, #ffe9b0 0, transparent 100%),
    radial-gradient(1px 1px at 35% 70%, #fff 0, transparent 100%),
    radial-gradient(ellipse at 50% 100%, #1a2840 0%, #05080f 55%);
}
.ms-lite-sky #stel-canvas { opacity: 0.15; }

.ms-v1-loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080b10;
  text-align: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.ms-v1-loading.is-fading {
  opacity: 0;
  pointer-events: none;
}
.ms-v1-loading[hidden] { display: none !important; }
.ms-v1-loading .box {
  position: relative;
  z-index: 1;
  width: min(280px, 100%);
  color: var(--ms-ink);
}
.ms-load-bar {
  height: 2px;
  border-radius: 1px;
  background: #242b34;
  overflow: hidden;
  margin: 16px 0 0;
  width: 100%;
}
.ms-load-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: #d4b56a;
  transition: width 0.35s ease;
}
.ms-load-stage {
  margin: 0;
  color: #c9d0d9;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
  min-height: 21px;
}
@media (prefers-reduced-motion: reduce) {
  .ms-v1-loading, .ms-load-bar span { transition: none; }
}

/* Panels: lower, narrower, translucent — sky first */
.ms-v1-panel {
  position: absolute;
  top: auto;
  bottom: 18px;
  max-height: min(62vh, 560px);
  width: min(300px, calc(100vw - 24px));
  z-index: 10;
  overflow: auto;
  padding: 14px 12px 16px;
  border-radius: 16px;
  background: var(--ms-glass);
  border: 1px solid var(--ms-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.ms-v1-panel.ms-ui-ready {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.ms-v1-panel-left { left: 16px; }
.ms-v1-panel-right { right: 16px; }
.ms-v1-panel h1 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.ms-v1-crumb {
  margin: 0 0 6px;
  font-size: 0.75rem;
}
.ms-v1-crumb a { color: inherit; opacity: 0.7; }
.ms-v1-panel .ms-sub {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--ms-muted);
}
.ms-v1-panel label {
  display: block;
  font-size: 0.76rem;
  color: var(--ms-muted);
  margin: 6px 0 3px;
}
.ms-v1-panel input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ms-ink);
  font-size: 0.9rem;
}
.ms-v1-panel button,
.ms-v1-dock button {
  width: 100%;
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 0;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  background: linear-gradient(180deg, #c9a85a, #a8883e);
  color: #1a1408;
}
.ms-v1-panel button.ms-ghost,
.ms-v1-dock button {
  background: rgba(8, 12, 22, 0.55);
  border: 1px solid rgba(212, 181, 106, 0.35);
  color: var(--ms-gold);
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.ms-v1-panel button.ms-mini {
  width: auto;
  margin: 0;
  padding: 4px 10px;
  font-size: 0.75rem;
}
.ms-v1-panel button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ms-v1-city-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  max-height: 140px;
  overflow: auto;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ms-v1-city-list[hidden] { display: none; }
.ms-v1-city-list li {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.86rem;
}
.ms-v1-city-list li:hover { background: rgba(212, 181, 106, 0.12); }
.ms-v1-coords {
  margin: 4px 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(232, 238, 248, 0.55);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.ms-v1-time-label .ms-v1-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ms-v1-time-label .ms-v1-time-row input[type="time"] {
  flex: 1;
  min-width: 0;
}
.ms-v1-time-label .ms-sync-clock {
  flex: 0 0 auto;
  margin-top: 0;
  white-space: nowrap;
}
.ms-v1-time-label .ms-sync-clock.is-live {
  border-color: rgba(168, 216, 184, 0.45);
  color: #a8d8b8;
}
#msClockHint.is-paused {
  color: rgba(240, 168, 168, 0.75);
}

.ms-v1-sign-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ms-v1-sign-title {
  font-size: 1.3rem;
  margin: 0 0 2px;
  font-weight: 650;
}
.ms-v1-sign-en {
  display: none; /* 正式前台不显示英文主标题副线 */
  margin: 0 0 6px;
  color: rgba(212, 181, 106, 0.55);
  font-size: 0.72rem;
}
.ms-v1-tonight-list .ms-en { display: none !important; }

.ms-sky-debug {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  margin: 0;
  padding: 8px 10px;
  max-width: 280px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #9fef9f;
  font: 11px/1.45 ui-monospace, Consolas, monospace;
  white-space: pre;
  pointer-events: none;
}
.ms-sky-debug[hidden] { display: none !important; }
.ms-v1-meta-line {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--ms-muted);
}
.ms-v1-section-label {
  margin: 10px 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(212, 181, 106, 0.85);
  text-transform: none;
}
.ms-v1-kv {
  display: grid;
  gap: 5px;
  margin: 0 0 8px;
  font-size: 0.86rem;
}
.ms-v1-kv div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.ms-v1-kv dt { color: var(--ms-muted); margin: 0; }
.ms-v1-kv dd { margin: 0; text-align: right; }
.ms-v1-advice {
  margin: 0 0 8px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ms-ink);
}
.ms-v1-warn { color: var(--ms-danger); }
.ms-v1-ok { color: var(--ms-ok); }

/* Bottom dock — max 5 actions */
.ms-v1-dock {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: min(640px, calc(100vw - 340px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.ms-v1-dock.ms-ui-ready {
  opacity: 1;
  pointer-events: auto;
}
.ms-v1-dock button {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.ms-v1-night-btn {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 4;
  border: 1px solid rgba(212, 181, 106, 0.4);
  background: rgba(8, 12, 22, 0.65);
  color: var(--ms-gold);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
}
.ms-v1-night-btn[hidden] { display: none; }

.ms-v1-land-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--ms-muted);
}
.ms-v1-land-pick button {
  width: auto;
  margin: 0;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ms-muted);
  border-radius: 999px;
}
.ms-v1-land-pick button.is-on {
  border-color: rgba(212, 181, 106, 0.55);
  color: var(--ms-gold);
  background: rgba(212, 181, 106, 0.12);
}

.ms-v1-guide-steps {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 0.86rem;
  line-height: 1.45;
}
.ms-v1-guide-steps li { margin: 6px 0; color: var(--ms-muted); }
.ms-v1-guide-steps li.is-on { color: var(--ms-ink); }
.ms-v1-guide-steps li span {
  display: block;
  font-size: 0.72rem;
  color: var(--ms-gold);
  margin-bottom: 2px;
}

.ms-v1-card {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ms-v1-card:last-child { border-bottom: 0; margin-bottom: 0; }
.ms-v1-card h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}
.ms-v1-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ms-v1-stars { color: var(--ms-gold); letter-spacing: 0.08em; margin: 0 0 6px; }
.ms-v1-fortune-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ms-ink);
}
.ms-v1-dots {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}
.ms-v1-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.ms-v1-dots span.is-on { background: var(--ms-gold); }
.ms-v1-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ms-muted);
}
.ms-v1-tonight-list { list-style: none; margin: 0; padding: 0; }
.ms-v1-tonight-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.86rem;
}
.ms-v1-tonight-list .ms-en {
  display: block;
  font-size: 0.7rem;
  opacity: 0.55;
  font-weight: 400;
}
.ms-v1-tonight-list button {
  width: auto;
  margin: 0;
  padding: 5px 10px;
  font-size: 0.76rem;
}
.ms-v1-disclaimer {
  margin: 10px 0 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: rgba(232, 238, 248, 0.4);
}
.ms-v1-attr {
  margin-top: 10px;
  font-size: 0.68rem;
  color: rgba(232, 238, 248, 0.35);
  line-height: 1.4;
}
.ms-v1-attr a { color: rgba(212, 181, 106, 0.7); }
.ms-v1-weak {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 4;
  font-size: 0.75rem;
  color: var(--ms-muted);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
}
.ms-v1-weak[hidden] { display: none; }

.ms-v1-fallback {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 24px;
  background: transparent;
  text-align: center;
  pointer-events: none;
}
.ms-v1-fallback > div {
  pointer-events: auto;
  max-width: 360px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(8, 12, 22, 0.72);
  border: 1px solid rgba(212, 181, 106, 0.25);
}
.ms-v1-fallback[hidden] { display: none !important; }

.ms-v1-sheet {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ms-v1-sheet.ms-ui-ready { opacity: 1; }
.ms-v1-sheet-tabs {
  display: flex;
  gap: 4px;
}
.ms-v1-sheet-tabs button {
  flex: 1;
  margin: 0;
  background: transparent;
  border: 0;
  color: var(--ms-muted);
  padding: 10px 6px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.82rem;
}
.ms-v1-sheet-tabs button.is-on {
  background: rgba(212, 181, 106, 0.18);
  color: var(--ms-ink);
}

@media (max-width: 960px) {
  .ms-v1-panel-left,
  .ms-v1-panel-right {
    display: none;
  }
  .ms-v1-dock {
    bottom: auto;
    top: 10px;
    max-width: calc(100% - 16px);
  }
  .ms-v1-dock button {
    padding: 6px 9px;
    font-size: 0.72rem;
  }
  .ms-v1-night-btn { bottom: 52vh; }
  /* mobile: same full-stage pano canvas; coverage controlled in JS (~25–35%) */
  .ms-v1-landscape { inset: 0; height: auto; }
  .ms-v1-sheet {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    max-height: 42vh;
    overflow: auto;
    padding: 10px 14px 18px;
    border-radius: 18px 18px 0 0;
    background: var(--ms-glass);
    border: 1px solid var(--ms-glass-border);
    backdrop-filter: blur(14px);
  }
  .ms-v1-sheet.is-expanded { max-height: 78vh; }
  .ms-v1-sheet .ms-handle {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 auto 10px;
  }
}

/* —— V1.1 immersive chrome —— */
.ms-v1-obs {
  margin: 12px 0 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(212, 181, 106, 0.12);
}
.ms-obs-line {
  margin: 2px 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(232, 238, 248, 0.78);
}
.ms-v1-back {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 14;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.45);
  border: 1px solid rgba(212, 181, 106, 0.2);
  color: rgba(232, 238, 248, 0.82);
  font-size: 0.78rem;
  text-decoration: none;
  backdrop-filter: blur(8px);
  opacity: 0.72;
  transition: opacity 0.3s ease;
}
.ms-v1-back:hover { opacity: 1; color: #fff; }

.ms-v1-compass {
  position: absolute;
  right: 18px;
  bottom: 88px;
  z-index: 11;
  width: 80px;
  height: 80px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(212, 181, 106, 0.28);
  background: rgba(8, 12, 22, 0.42);
  backdrop-filter: blur(8px);
  color: rgba(232, 238, 248, 0.75);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.ms-v1-compass:hover { opacity: 0.95; }
.ms-compass-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
}
.ms-compass-n, .ms-compass-e, .ms-compass-s, .ms-compass-w {
  position: absolute;
  font-size: 0.62rem;
  font-weight: 650;
  color: rgba(232, 210, 150, 0.9);
}
.ms-compass-n { top: 8px; left: 50%; transform: translateX(-50%); }
.ms-compass-s { bottom: 8px; left: 50%; transform: translateX(-50%); color: rgba(232,238,248,0.55); }
.ms-compass-e { right: 9px; top: 50%; transform: translateY(-50%); color: rgba(232,238,248,0.55); }
.ms-compass-w { left: 9px; top: 50%; transform: translateY(-50%); color: rgba(232,238,248,0.55); }
.ms-compass-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 28px;
  margin: -24px 0 0 -1px;
  background: linear-gradient(180deg, #e8d296 0%, rgba(232,210,150,0.15) 100%);
  border-radius: 2px;
  transform-origin: 50% 85%;
  transform: rotate(0deg);
  transition: transform 0.12s linear;
}

.ms-v1-exit-immerse {
  position: absolute;
  top: 14px;
  right: 110px;
  z-index: 16;
  margin: 0;
  padding: 8px 12px;
  font-size: 0.78rem;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.55);
  border: 1px solid rgba(212, 181, 106, 0.28);
}

/* Halo is drawn on canvas along landscape ridge — no CSS bar */
.ms-v1-landscape::before,
.ms-v1-landscape::after {
  content: none !important;
  display: none !important;
}
.ms-v1-fs-float {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 18;
  margin: 0;
  padding: 8px 14px;
  font-size: 0.82rem;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.62);
  border: 1px solid rgba(212, 181, 106, 0.35);
  color: #e8eef8;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.ms-v1-fs-float:hover {
  border-color: rgba(212, 181, 106, 0.6);
}

/* Fullscreen / immersive */
body.ms-fs-mode .site-header,
body.ms-fs-mode .yc-site-header,
body.ms-fs-mode .yc-header,
body.ms-fs-mode .yc-header-wrap,
body.ms-immerse-mode .site-header,
body.ms-immerse-mode .yc-site-header,
body.ms-immerse-mode .yc-header,
body.ms-immerse-mode .yc-header-wrap,
body.ms-fs-mode .commercial-footer,
body.ms-fs-mode .yc-footer,
body.ms-fs-mode .yc-commercial-footer,
body.ms-immerse-mode .commercial-footer,
body.ms-immerse-mode .yc-footer,
body.ms-immerse-mode .yc-commercial-footer {
  display: none !important;
}
body.ms-fs-mode .ms-v1-shell,
body.ms-immerse-mode .ms-v1-shell {
  min-height: 100vh;
}
body.ms-immerse-mode .ms-v1-panel,
body.ms-immerse-mode .ms-v1-dock,
body.ms-immerse-mode .ms-v1-sheet {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.45s ease;
}
body.ms-immerse-mode.ms-controls-on .ms-v1-panel,
body.ms-immerse-mode.ms-controls-on .ms-v1-dock,
body.ms-immerse-mode.ms-controls-on .ms-v1-sheet,
body.ms-immerse-mode.ms-controls-on .ms-v1-back,
body.ms-immerse-mode.ms-controls-on .ms-v1-compass {
  opacity: 1 !important;
  pointer-events: auto !important;
}
body.ms-immerse-mode .ms-v1-exit-immerse { display: inline-flex; }
body.ms-immerse-mode:not(.ms-controls-on) .ms-v1-back,
body.ms-immerse-mode:not(.ms-controls-on) .ms-v1-compass {
  opacity: 0;
  pointer-events: none;
}
body.ms-immerse-mode .ms-v1-compass {
  bottom: 24px;
}

@media (max-width: 960px) {
  .ms-v1-compass {
    width: 64px;
    height: 64px;
    right: 12px;
    bottom: 52vh;
  }
  .ms-compass-needle { height: 22px; margin-top: -19px; }
  .ms-v1-dock { max-width: calc(100% - 16px); }
  .ms-v1-back { top: 8px; left: 8px; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ms-v1-shell * {
    transition: none !important;
    animation: none !important;
  }
}
