/* Aetheris Design System — 车机兼容：无 Google Fonts 外链 */
:root {
  --aura-bg: #0c0f0f;
  --aura-surface: #121414;
  --aura-on-surface: #e2e2e2;
  --aura-on-surface-variant: #cfc4c5;
  --aura-secondary: #c3c0ff;
  --aura-secondary-container: #3626ce;
  --aura-tertiary: #d2bbff;
  --aura-outline: #988e90;
  --aura-camp: #f0c060;
  --aura-margin: clamp(24px, 5vw, 64px);
  --font-manrope: system-ui, -apple-system, 'PingFang SC', 'Helvetica Neue', sans-serif;
  --font-space: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* 内联 SVG 图标 */
.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: currentColor;
}
.ico svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ico-sm { width: 20px; height: 20px; }
.ico-play { width: 32px; height: 32px; }
.ico-scene { width: 48px; height: 48px; }

#ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── Screens ─── */
#scene-camp {
  background: #000000;
  overflow: hidden;
}

.aura-screen {
  background: var(--aura-bg);
  color: var(--aura-on-surface);
  font-family: var(--font-manrope);
  overflow: hidden;
  flex-direction: column;
}

.aura-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem var(--aura-margin);
  background: transparent;
  pointer-events: none;
}
.aura-header > * { pointer-events: auto; }

.aura-back {
  background: none;
  border: none;
  color: var(--aura-on-surface-variant);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}
.aura-back:hover { color: var(--aura-on-surface); }

.aura-header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.aura-theater-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.aura-theater-btn {
  appearance: none;
  border: 1px solid rgba(210, 187, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(226, 226, 226, 0.85);
  font-family: var(--font-space);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.aura-theater-btn[hidden] {
  display: none !important;
}
.aura-theater-btn:hover {
  border-color: rgba(210, 187, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.aura-meta {
  position: fixed;
  top: 25%;
  left: var(--aura-margin);
  z-index: 5;
  opacity: 0.2;
  pointer-events: none;
}
.aura-meta-line {
  font-family: var(--font-space);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--aura-on-surface-variant);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 2rem;
}

.aura-main {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.aura-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  transform: translateY(-3rem);
  transition: transform 0.7s ease-out;
}

.aura-visual-wrap {
  position: relative;
  width: min(500px, 85vw);
  height: min(500px, 85vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.breath-ring-aura {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  animation: none;
  transition: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.breath-ring-aura.outer { border-color: rgba(195,192,255,0.04); }
.breath-ring-aura.inner { border-color: rgba(195,192,255,0.07); }

.aura-art {
  position: relative;
  z-index: 20;
  width: min(320px, 64vw);
  height: min(320px, 64vw);
  filter: drop-shadow(0 0 20px rgba(195,192,255,0.12));
  animation: none;
  transition: none;
  will-change: transform;
  backface-visibility: hidden;
}
.aura-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.aura-screen[data-aura-mode="sleep"] .aura-art {
  filter: drop-shadow(0 0 30px rgba(123,97,255,0.15));
}
.aura-screen[data-aura-mode="breathe"] .aura-art {
  filter: drop-shadow(0 0 40px rgba(255,153,0,0.2)) drop-shadow(0 0 60px rgba(54,38,206,0.15));
}

.aura-typography { text-align: center; pointer-events: none; }
.aura-typography > * { pointer-events: auto; }
.aura-label {
  font-family: var(--font-space);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--aura-secondary);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}
.aura-title {
  font-family: var(--font-manrope);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 200;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(226,226,226,0.3);
}
.aura-timer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.aura-timer-line {
  width: 3rem;
  height: 1px;
  background: rgba(152,142,144,0.3);
}
.aura-timer {
  font-family: var(--font-space);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--aura-on-surface);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.aura-timer-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.aura-timer-btn:hover {
  border-color: rgba(210,187,255,0.28);
  background: rgba(255,255,255,0.05);
}
.aura-timer-btn:active { transform: scale(0.98); }
.aura-timer-duration {
  font-family: var(--font-space);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aura-on-surface-variant);
}
.focus-duration-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 auto;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--aura-on-surface-variant);
  font-family: var(--font-space);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}
.focus-duration-chevron {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* 弹出式时长选择 */
.timer-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.timer-sheet.open {
  pointer-events: auto;
  opacity: 1;
}
.timer-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.timer-sheet-panel {
  position: relative;
  width: min(28rem, calc(100% - 2rem));
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(18,20,20,0.94);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  transform: translateY(16px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.timer-sheet.open .timer-sheet-panel {
  transform: translateY(0);
}
.timer-sheet-handle {
  width: 2.5rem;
  height: 3px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
}
.timer-sheet-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--aura-on-surface);
  margin-bottom: 0.35rem;
}
.timer-sheet-sub {
  text-align: center;
  font-family: var(--font-space);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--aura-on-surface-variant);
  margin-bottom: 1.1rem;
}
.timer-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.timer-sheet-option {
  padding: 0.7rem 0.5rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--aura-on-surface-variant);
  font-family: var(--font-space);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}
.timer-sheet-option:hover {
  border-color: rgba(210,187,255,0.25);
  color: var(--aura-on-surface);
}
.timer-sheet-option.active {
  border-color: rgba(210,187,255,0.45);
  background: rgba(54,38,206,0.22);
  color: var(--aura-tertiary);
  box-shadow: 0 0 24px rgba(210,187,255,0.12);
}
body.timer-sheet-open { overflow: hidden; }

/* Nap 程序化动态默认背景 */
#scene-nap.nap-ambient-on::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 0%, transparent 50%, rgba(0,0,0,0.35) 100%);
}
#scene-nap.nap-ambient-on .aura-bg-layer {
  opacity: 0 !important;
  visibility: hidden;
}
#scene-nap.nap-ambient-on .nap-mode-backgrounds {
  z-index: 2;
}
#scene-nap.nap-ambient-on .aura-main,
#scene-nap.nap-ambient-on .aura-meta {
  position: relative;
  z-index: 3;
}
#scene-nap.nap-ambient-on.nap-waking .nap-mode-backgrounds {
  opacity: 0.3;
  transition: opacity 10s ease;
}

/* Nap 场景背景切换 */
.nap-bg-btn-wrap {
  position: relative;
  margin-left: auto;
}
.nap-bg-btn { margin-left: 0; }
.bookmark-hint-anchor {
  position: relative;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}
.bookmark-hint {
  --hint-star-offset: 2.75rem;
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 220, 120, 0.35);
  border-radius: 999px;
  background: rgba(18, 20, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--aura-on-surface);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 200, 100, 0.12);
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  visibility: hidden;
  z-index: 60;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.bookmark-hint::before {
  content: '';
  position: absolute;
  top: -6px;
  /* 左移一个浏览器工具栏图标宽度，对准五角星收藏按钮 */
  right: calc(0.75rem + var(--hint-star-offset));
  width: 10px;
  height: 10px;
  background: rgba(18, 20, 24, 0.88);
  border-left: 1px solid rgba(255, 220, 120, 0.35);
  border-top: 1px solid rgba(255, 220, 120, 0.35);
  transform: rotate(45deg);
}
.bookmark-hint.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}
.bookmark-hint-star {
  width: 1rem;
  height: 1rem;
  color: #ffd166;
  flex-shrink: 0;
}
.bookmark-hint-text { line-height: 1.2; }
.bookmark-hint:active { transform: translateY(0) scale(0.98); }

.nap-scene-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.nap-scene-bg-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}
.nap-scene-bg-layer.active { opacity: 1; }
.nap-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.8s ease-out;
  user-select: none;
  pointer-events: none;
}
.nap-bg-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}
.nap-bg-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.75) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, rgba(0,0,0,0.45) 100%);
}
#scene-nap.nap-has-scene-bg .aura-bg-layer { opacity: 0 !important; }
#scene-nap.nap-has-scene-bg .aura-title,
#scene-nap.nap-has-scene-bg .aura-timer {
  text-shadow: 0 2px 24px rgba(0,0,0,0.65);
}

#scene-nap {
  --nap-panel-max: clamp(12.5rem, 32vh, 16rem);
  --nap-sound-scroll-max: clamp(6.25rem, 17vh, 9rem);
}

#scene-nap .horizon-bar {
  background: rgba(6,6,8,0.72);
  border-color: rgba(255,255,255,0.06);
}
#scene-nap .nap-horizon {
  border-radius: 1.5rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding-bottom: 0.35rem;
  max-height: var(--nap-panel-max);
  overflow: hidden;
}
.nap-horizon-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: nowrap;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nap-soundscapes-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: var(--nap-sound-scroll-max);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding-right: 0.15rem;
  margin-right: -0.1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(210,187,255,0.25) transparent;
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 14px), transparent 100%);
}
.nap-soundscapes-scroll::-webkit-scrollbar {
  width: 4px;
}
.nap-soundscapes-scroll::-webkit-scrollbar-thumb {
  background: rgba(210,187,255,0.22);
  border-radius: 999px;
}
#scene-nap .horizon-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.nap-soundscapes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-left: 0.15rem;
  padding-bottom: 0.35rem;
  align-content: flex-start;
}
.nap-sound-chip {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: rgba(207,196,197,0.72);
  font-family: var(--font-space);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.nap-sound-chip:hover {
  color: rgba(226,226,226,0.85);
  border-color: rgba(210,187,255,0.2);
}
.nap-sound-chip.active {
  color: rgba(226,226,226,0.95);
  border-color: rgba(210,187,255,0.38);
  background: rgba(54,38,206,0.16);
  box-shadow: 0 0 20px rgba(210,187,255,0.08);
}
#scene-nap .aura-label {
  color: rgba(210,187,255,0.55);
}
#scene-nap .aura-title {
  color: rgba(226,226,226,0.92);
}

.nap-dawn-overlay {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 110%, rgba(255, 210, 140, 0.92) 0%, rgba(255, 170, 90, 0.55) 32%, rgba(255, 130, 70, 0.22) 55%, transparent 72%),
    linear-gradient(180deg, rgba(255, 240, 220, 0.15) 0%, rgba(255, 180, 100, 0.35) 100%);
  transition: opacity 14s ease-out;
}
.nap-dawn-overlay.active { opacity: 1; }
#scene-nap.nap-waking .aura-bg-layer { opacity: 0.25 !important; transition: opacity 10s ease; }
#scene-nap.nap-waking .nap-scene-bg-layer { opacity: 0.35 !important; }
#scene-nap.nap-waking .aura-title { color: rgba(255, 235, 210, 0.95); }

.bg-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.bg-sheet-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.55rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.bg-sheet-card:hover {
  border-color: rgba(210,187,255,0.25);
}
.bg-sheet-card.active {
  border-color: rgba(210,187,255,0.45);
  background: rgba(54,38,206,0.18);
  box-shadow: 0 0 24px rgba(210,187,255,0.1);
}
.bg-sheet-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0.65rem;
  object-fit: cover;
  object-position: center;
}
.bg-sheet-thumb-default {
  background:
    linear-gradient(135deg, rgba(0,200,255,0.35) 0%, rgba(120,60,220,0.3) 45%, rgba(255,100,60,0.25) 100%),
    radial-gradient(ellipse 90% 50% at 50% 100%, rgba(255,140,100,0.2) 0%, transparent 55%),
    #04060f;
}
.bg-sheet-card-label {
  font-size: 0.82rem;
  color: var(--aura-on-surface);
  letter-spacing: 0.06em;
}
.bg-sheet-card-desc {
  font-family: var(--font-space);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--aura-on-surface-variant);
  text-transform: uppercase;
}

.aura-breath-hint {
  margin-top: 1rem;
  font-family: var(--font-space);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--aura-tertiary);
  opacity: 0;
  transition: opacity 0.5s;
}
.aura-screen[data-aura-mode="breathe"] .aura-breath-hint { opacity: 0.85; }

/* Backgrounds */
.aura-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.aura-bg-stardust {
  background: radial-gradient(circle at center, #1a1a2e 0%, #0c0f0f 100%);
}
.aura-bg-stardust::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(white, transparent 1px);
  background-size: 100px 100px;
  opacity: 0.08;
  animation: none;
}
.aura-bg-stardust::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(30,27,75,0.2), transparent, rgba(59,7,100,0.2));
}

.aura-bg-drift {
  background: radial-gradient(circle at 50% 50%, #0c0f0f 0%, #050607 100%);
}
.aura-bg-drift::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(51,35,204,0.05) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(123,97,255,0.05) 0%, transparent 40%);
  animation: none;
}

.aura-bg-sunset {
  background: radial-gradient(circle at center, #1a0f00 0%, #0c0f0f 70%),
              linear-gradient(to bottom, #0c0f0f, #050510);
  background-blend-mode: soft-light;
}
.aura-bg-sunset::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 150vmax; height: 150vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,153,0,0.05) 0%, rgba(54,38,206,0.05) 40%, transparent 70%);
  animation: none;
}

.aura-bg-camp {
  background: #000000;
}
.aura-bg-focus {
  background: transparent;
}
#scene-focus.aura-screen {
  background: transparent;
}

.aura-bg-layer { opacity: 0; transition: opacity 0.8s; }
.aura-bg-layer.active { opacity: 1; }

/* Horizon Nav */
.aura-horizon {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding:
    0
    max(1rem, env(safe-area-inset-right, 0px))
    calc(1.25rem + env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.horizon-bar {
  pointer-events: auto;
  background: rgba(18,20,20,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  max-width: 56rem;
  width: 100%;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 0 60px rgba(51,35,204,0.1);
  flex-wrap: wrap;
}
.horizon-modes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.horizon-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--aura-on-surface-variant);
  font-family: var(--font-space);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.horizon-mode:hover {
  background: rgba(255,255,255,0.05);
  color: var(--aura-on-surface);
}
.horizon-mode .ico { transition: transform 0.3s; }
.horizon-mode:hover .ico { transform: scale(1.1); }
.horizon-mode.active {
  transform: scale(1.08);
  color: var(--aura-tertiary);
  background: rgba(0,0,0,0.3);
  box-shadow: 0 0 40px rgba(210,187,255,0.15);
}
.horizon-mode.active.mode-secondary {
  color: var(--aura-secondary);
  box-shadow: 0 0 40px rgba(54,38,206,0.3);
  background: rgba(54,38,206,0.2);
}
.horizon-mode.active.mode-camp {
  color: var(--aura-camp);
  box-shadow: 0 0 40px rgba(240,192,96,0.2);
  background: rgba(240,192,96,0.1);
}

.horizon-volume {
  display: flex;
  flex: min(32vw, 320px);
  align-items: center;
  gap: 0.75rem;
  margin: 0 0.5rem;
  min-width: 120px;
}
.horizon-volume .ico {
  color: var(--aura-on-surface-variant);
}
.volume-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.12);
  position: relative;
  cursor: pointer;
  border-radius: 999px;
}
.volume-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  background: var(--aura-tertiary);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(210,187,255,0.45);
  transition: width 0.15s;
  pointer-events: none;
}
.volume-input {
  -webkit-appearance: none;
  position: absolute;
  inset: -10px 0;
  width: 100%;
  height: 24px;
  opacity: 1;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.volume-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: #efe8ff;
  box-shadow: 0 0 10px rgba(210,187,255,0.25);
}
.volume-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  background: #efe8ff;
  box-shadow: 0 0 10px rgba(210,187,255,0.25);
}

.horizon-play {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: var(--aura-on-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease-out;
  flex-shrink: 0;
}
.horizon-play:hover { background: rgba(255,255,255,0.1); }
.horizon-play:active { transform: scale(0.95); }
.horizon-play.playing {
  box-shadow: 0 0 40px rgba(210,187,255,0.15);
}
.horizon-play .ico-play { width: 2rem; height: 2rem; }

/* Camp panels */
.camp-panel { display: none; width: 100%; max-width: 720px; padding: 0 var(--aura-margin); }
.camp-panel.active { display: block; }
.camp-glass {
  background: rgba(10, 11, 13, 0.3);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  padding: 1.25rem;
}
.camp-stats-aura {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.camp-sys-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 1rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}
.camp-sys-status.active {
  opacity: 1;
  transform: translateY(0);
}
.camp-sys-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3dff9a;
  box-shadow:
    0 0 6px rgba(61, 255, 154, 0.85),
    0 0 14px rgba(61, 255, 154, 0.35);
  animation: campSysLedBreath 2.4s ease-in-out infinite;
}
.camp-sys-label {
  font-family: var(--font-space);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(61, 255, 154, 0.72);
}
@keyframes campSysLedBreath {
  0%, 100% {
    opacity: 0.55;
    box-shadow:
      0 0 4px rgba(61, 255, 154, 0.45),
      0 0 10px rgba(61, 255, 154, 0.18);
  }
  50% {
    opacity: 1;
    box-shadow:
      0 0 8px rgba(61, 255, 154, 0.95),
      0 0 18px rgba(61, 255, 154, 0.4);
  }
}
.flip-display.skittering .flip-digit {
  color: rgba(240, 192, 96, 0.85);
  text-shadow: 0 0 8px rgba(240, 192, 96, 0.25);
}
.flip-display.skittering .flip-inner {
  animation: none;
}
.camp-stat-aura .stat-label {
  font-family: var(--font-space);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--aura-on-surface-variant);
}
.camp-clock-aura {
  font-family: var(--font-manrope);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 200;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.5rem;
}
.camp-status-aura {
  font-size: 0.8rem;
  color: var(--aura-on-surface-variant);
  margin-top: 1rem;
}
.compass-aura-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}
.compass-stage {
  perspective: 600px;
  width: 160px;
  height: 160px;
  position: relative;
}
.compass-astro-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: compassAstroBreath 4.5s ease-in-out infinite;
  will-change: opacity, transform;
}
.compass-aura-wrap[data-astro-mode="day"] .compass-astro-glow {
  background: radial-gradient(circle, rgba(240, 192, 96, 0.42) 0%, rgba(240, 192, 96, 0.12) 42%, transparent 72%);
}
.compass-aura-wrap[data-astro-mode="night"] .compass-astro-glow {
  background: radial-gradient(circle, rgba(130, 175, 255, 0.4) 0%, rgba(100, 140, 255, 0.12) 42%, transparent 72%);
}
@keyframes compassAstroBreath {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.06);
  }
}
.compass-ring-aura {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(240,192,96,0.25);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  box-shadow: inset 0 0 30px rgba(240,192,96,0.05);
}
.compass-aura-wrap[data-astro-mode="night"] .compass-ring-aura {
  border-color: rgba(140, 175, 255, 0.28);
  box-shadow: inset 0 0 30px rgba(120, 160, 255, 0.06);
}
.compass-n-aura,
.compass-e-aura,
.compass-s-aura,
.compass-w-aura {
  position: absolute;
  font-family: var(--font-space);
  font-size: 10px;
  color: var(--aura-camp);
  letter-spacing: 0.15em;
}
.compass-aura-wrap[data-astro-mode="night"] .compass-n-aura,
.compass-aura-wrap[data-astro-mode="night"] .compass-e-aura,
.compass-aura-wrap[data-astro-mode="night"] .compass-s-aura,
.compass-aura-wrap[data-astro-mode="night"] .compass-w-aura {
  color: rgba(170, 200, 255, 0.85);
}
.compass-n-aura { top: 10px; left: 50%; transform: translateX(-50%); }
.compass-e-aura { right: 10px; top: 50%; transform: translateY(-50%); }
.compass-s-aura { bottom: 10px; left: 50%; transform: translateX(-50%); }
.compass-w-aura { left: 10px; top: 50%; transform: translateY(-50%); }
.compass-needle-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 52px solid rgba(240,192,96,0.9);
  filter: drop-shadow(0 0 8px rgba(240,192,96,0.4));
  transform-origin: 50% 85%;
  transform: translate(-50%, -85%) rotateZ(0deg);
  transition: transform 0.95s linear, border-bottom-color 0.8s ease, filter 0.8s ease;
  z-index: 2;
}
.compass-aura-wrap[data-astro-mode="night"] .compass-needle-aura {
  border-bottom-color: rgba(160, 195, 255, 0.92);
  filter: drop-shadow(0 0 10px rgba(130, 175, 255, 0.45));
}
.compass-phase-label {
  font-family: var(--font-space);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--aura-on-surface-variant);
  opacity: 0.75;
  margin: 0;
}
.compass-heading-readout {
  font-family: var(--font-space);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--aura-camp);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.compass-aura-wrap[data-astro-mode="night"] .compass-heading-readout {
  color: rgba(180, 205, 255, 0.95);
}
.compass-astro-status {
  font-family: var(--font-space);
  font-size: 9px !important;
  letter-spacing: 0.18em;
  opacity: 0.55;
  transition: opacity 0.6s ease;
}

#stars-canvas,
.camp-starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

#scene-camp .aura-bg-camp {
  opacity: 0;
  visibility: hidden;
}

.camp-evening-rim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s ease;
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(120, 140, 220, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 70% 40% at 20% 80%, rgba(240, 192, 96, 0.015) 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 80% 75%, rgba(180, 160, 255, 0.02) 0%, transparent 55%);
}
.camp-evening-rim.active { opacity: 1; }
#scene-camp.camp-evening .aura-bg-camp {
  box-shadow: none;
}

/* 露营 · 地形模式共用星空背景（照片层永久隐藏） */
.camp-terrain-bg {
  display: none;
}
#scene-camp[data-camp-mode="terrain"] .camp-glass {
  background: rgba(10, 11, 13, 0.3);
  border-color: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}
#scene-camp[data-camp-mode="terrain"] .camp-clock-aura,
#scene-camp[data-camp-mode="terrain"] .aura-label,
#scene-camp[data-camp-mode="terrain"] .flip-digit {
  text-shadow: none;
}

/* Heritage UI 暂时隐藏：html.heritage-ui-off（由 focus-theme.js 开关控制） */
html.heritage-ui-off .focus-theme-bar,
html.heritage-ui-off .focus-theme-preview,
html.heritage-ui-off .focus-theme-gauge-stub,
html.heritage-ui-off .porsche-cluster {
  display: none !important;
}

/* Pro 付费角标 / 调音台遮罩 */
.pro-locked {
  position: relative;
  border-color: rgba(245, 165, 36, 0.35) !important;
}
.pro-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.35rem;
  pointer-events: none;
  vertical-align: middle;
  line-height: 0;
}
.pro-key-icon {
  display: block;
  filter: drop-shadow(0 0 4px rgba(245, 165, 36, 0.45));
}
.aura-theater-btn.pro-locked,
.nap-sound-chip.pro-locked,
.timer-sheet-option.pro-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.timer-sheet-option.pro-locked .pro-key {
  margin-right: 0.25rem;
}
.timer-sheet-option.pro-locked .pro-key-icon {
  width: 11px;
  height: 11px;
}
.oasis-console.pro-locked-panel {
  position: relative;
}
.pro-panel-veil {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
  background: rgba(6, 8, 12, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: rgba(226, 226, 226, 0.92);
  font-family: var(--font-space);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.pro-panel-veil .pro-key {
  margin-right: 0;
}
.pro-panel-veil .pro-key-icon {
  width: 22px;
  height: 22px;
}
.oasis-fader.pro-locked {
  opacity: 0.45;
  pointer-events: none;
}

/* Focus · 极客数字软装 */
#scene-focus.focus-zen {
  overflow-y: auto;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  --focus-accent: #d2bbff;
  --focus-surface: rgba(255,255,255,0.04);
}
#scene-focus.theme-porsche {
  --focus-accent: #c41e3a;
  --focus-surface: rgba(196, 30, 58, 0.08);
}
#scene-focus.theme-gtr {
  --focus-accent: #e8f0ff;
  --focus-surface: rgba(80, 120, 255, 0.1);
}

.focus-theme-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: auto;
}
.focus-theme-chip {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: rgba(207,196,197,0.55);
  border-radius: 999px;
  font-family: var(--font-space);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.focus-theme-chip:hover {
  color: rgba(226,226,226,0.9);
  border-color: rgba(255,255,255,0.2);
}
.focus-theme-chip.active {
  color: var(--aura-on-surface);
  border-color: rgba(210, 187, 255, 0.45);
  background: rgba(210, 187, 255, 0.12);
}
#scene-focus.theme-porsche .focus-theme-chip.active {
  border-color: rgba(196, 30, 58, 0.5);
  background: rgba(196, 30, 58, 0.16);
}
#scene-focus.theme-gtr .focus-theme-chip.active {
  border-color: rgba(160, 190, 255, 0.5);
  background: rgba(80, 120, 255, 0.16);
}
.focus-theme-preview {
  font-family: var(--font-space);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--aura-on-surface-variant);
  opacity: 0.7;
  text-align: center;
  margin-bottom: 0.75rem;
}
.focus-theme-gauge-stub {
  width: min(100%, 28rem);
  margin: 0 auto 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(210, 187, 255, 0.28);
  background: var(--focus-surface);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}
#scene-focus.theme-porsche .focus-theme-gauge-stub {
  border-color: rgba(196, 30, 58, 0.35);
}
#scene-focus.theme-gtr .focus-theme-gauge-stub {
  border-color: rgba(140, 175, 255, 0.35);
}
.focus-theme-gauge-label {
  font-family: var(--font-space);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--focus-accent);
  opacity: 0.8;
}
.focus-theme-gauge-text {
  font-size: 0.82rem;
  color: var(--aura-on-surface-variant);
}
#scene-focus.theme-porsche .focus-theme-gauge-text::after {
  content: ' · Porsche 911 skin pending';
}
#scene-focus.theme-gtr .focus-theme-gauge-text::after {
  content: ' · GTR R-Mode skin pending';
}

/* Pro 付费弹窗（body 级 fixed，盖过 .screen） */
.focus-paywall {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.focus-paywall.open {
  display: flex;
}
.focus-paywall-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.focus-paywall-panel {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
  max-height: min(90vh, 36rem);
  overflow-y: auto;
  padding: 1.6rem 1.45rem 1.35rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(210, 187, 255, 0.22);
  background: rgba(16, 18, 24, 0.96);
  box-shadow:
    0 28px 80px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.focus-paywall.open .focus-paywall-panel {
  transform: translateY(0) scale(1);
}
.focus-paywall-eyebrow {
  font-family: var(--font-space);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: rgba(210,187,255,0.65);
  margin-bottom: 0.55rem;
}
.focus-paywall-title {
  font-family: var(--font-manrope);
  font-weight: 300;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--aura-on-surface);
  margin-bottom: 0.7rem;
}
.focus-paywall-copy {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(207,196,197,0.85);
  margin-bottom: 1rem;
}
.focus-paywall-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding: 0;
}
.focus-paywall-perks li {
  font-family: var(--font-space);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(210,187,255,0.7);
  padding-left: 0.9rem;
  position: relative;
}
.focus-paywall-perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(210,187,255,0.7);
}
.focus-paywall-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.focus-paywall-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #d2bbff 0%, #8b7cff 100%);
  color: #0c0f0f;
  font-family: var(--font-space);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}
.focus-paywall-buy--ghost {
  background: rgba(255,255,255,0.06);
  color: rgba(226,226,226,0.88);
  border: 1px solid rgba(255,255,255,0.12);
}
.focus-paywall-buy:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.focus-paywall-dismiss {
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(207,196,197,0.65);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-family: var(--font-space);
  font-size: 10px;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.focus-paywall-note {
  margin-top: 0.85rem;
  font-size: 0.7rem;
  color: rgba(152,142,144,0.7);
  text-align: center;
}
body.focus-paywall-open { overflow: hidden; }

.focus-zen-main {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--aura-margin) 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: calc(100vh - 10rem);
  justify-content: center;
}
.focus-zen-clock-block {
  text-align: center;
  padding: 1rem 0 0.5rem;
}
.focus-zen-clock {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--aura-on-surface);
}
.focus-zen-date {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--aura-on-surface-variant);
}
.focus-zen-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--aura-on-surface-variant);
  flex-wrap: wrap;
}
.focus-zen-session { opacity: 0.75; }
.focus-zen-timer {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
}
.focus-zen-timer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.focus-zen-timer-display {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 6.5rem);
  font-weight: 300;
  text-align: center;
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0.5rem 0 1rem;
  color: var(--aura-tertiary);
  text-shadow: 0 0 40px rgba(210,187,255,0.15);
}
.focus-zen-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

/* ASMR Oasis 调音台 */
.oasis-console {
  background: rgba(8, 10, 14, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.35rem;
  padding: 1.25rem 1.25rem 1.5rem;
}
.oasis-console-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.35rem;
}
.oasis-energy {
  font-family: var(--font-space);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(210, 187, 255, 0.55);
}
.oasis-faders {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(0.45rem, 1.6vw, 1rem) clamp(0.25rem, 1.2vw, 0.85rem);
  min-height: auto;
  padding: 0.85rem 0.15rem 0.25rem;
}
.oasis-fader {
  flex: 1 1 calc(20% - 0.7rem);
  max-width: calc(20% - 0.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 2.75rem;
  cursor: pointer;
}
.oasis-fader-track {
  position: relative;
  width: 44px;
  height: 11.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oasis-fader-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  pointer-events: none;
}
.oasis-fader-fill {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(230, 220, 255, 0.95), rgba(120, 100, 220, 0.35));
  box-shadow: 0 0 14px rgba(210, 187, 255, 0.35);
  pointer-events: none;
  transition: height 0.05s linear;
  z-index: 1;
}
.oasis-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 11.5rem;
  height: 44px;
  margin: 0;
  background: transparent;
  transform: rotate(-90deg);
  cursor: ns-resize;
  touch-action: none;
  position: relative;
  z-index: 2;
}
.oasis-slider::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
  border-radius: 999px;
}
.oasis-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7.5px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55);
  background: radial-gradient(circle at 35% 30%, #fff, #d8cbff 55%, #9b86e8);
  box-shadow:
    0 0 0 3px rgba(210, 187, 255, 0.12),
    0 0 18px rgba(210, 187, 255, 0.55);
}
.oasis-slider::-moz-range-track {
  height: 3px;
  background: transparent;
  border: none;
}
.oasis-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #d8cbff 55%, #9b86e8);
  box-shadow: 0 0 16px rgba(210, 187, 255, 0.5);
}
.oasis-fader-label {
  font-family: var(--font-space);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(207, 196, 197, 0.72);
  white-space: nowrap;
}
.oasis-hint {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--aura-on-surface-variant);
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .oasis-faders {
    gap: 0.55rem 0.2rem;
  }
  .oasis-fader {
    flex-basis: calc(20% - 0.25rem);
    max-width: calc(20% - 0.2rem);
    min-width: 2.4rem;
  }
  .oasis-fader-track { height: 8.5rem; }
  .oasis-slider { width: 8.5rem; }
  .oasis-fader-label { font-size: 9px; letter-spacing: 0.06em; }
}

@media (orientation: landscape) and (min-width: 900px) {
  #scene-focus .focus-zen-main {
    max-width: 1080px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
  }
  #scene-focus .focus-zen-clock-block {
    flex: 1 1 100%;
  }
  #scene-focus .focus-zen-timer {
    flex: 1 1 320px;
    max-width: 420px;
  }
  #scene-focus .oasis-console {
    flex: 1 1 480px;
    max-width: 640px;
  }
  #scene-focus .oasis-fader-track { height: 12rem; }
  #scene-focus .oasis-slider { width: 12rem; }
}

/* legacy bento (unused) */
.bento-aura {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(130px, auto);
  gap: 1rem;
}
.bento-aura .bento-cell {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s, opacity 0.3s;
}
.bento-aura .bento-cell[data-span="2"] { grid-column: span 2; }
.bento-aura .bento-cell[data-span="4"] { grid-column: span 4; }
.bento-aura .bento-cell.hidden { display: none; }
.bento-aura .bento-cell.dragging {
  opacity: 0.9;
  box-shadow: 0 20px 60px rgba(51,35,204,0.2);
  z-index: 20;
}
.bento-aura.edit-mode { outline: 1px dashed rgba(210,187,255,0.15); border-radius: 1rem; padding: 0.5rem; }

.focus-ripple {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
}
.focus-ripple.active {
  animation: rippleGlow 2.5s ease-out forwards;
}
@keyframes rippleGlow {
  0% { opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(210,187,255,0.35) 0%, transparent 8%); }
  30% { opacity: 1; }
  100% { opacity: 0; background: radial-gradient(circle at 50% 50%, transparent 0%, transparent 70%); }
}

/* Flip (shared) */
.flip-display { display: flex; gap: 2px; min-height: 1.75rem; align-items: center; }
.flip-display.mono { font-family: var(--font-space); }
.flip-digit {
  display: inline-block;
  overflow: hidden;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--aura-camp);
  font-variant-numeric: tabular-nums;
  height: 1.5rem;
  line-height: 1.5rem;
}
.flip-display.small .flip-digit { font-size: 0.9rem; height: 1.2rem; line-height: 1.2rem; }
.flip-digit.flipping .flip-inner { animation: flipTick 0.55s cubic-bezier(0.4,0,0.2,1); }
@keyframes flipTick {
  0% { transform: rotateX(0deg); opacity: 1; }
  45% { transform: rotateX(-90deg); opacity: 0.3; }
  55% { transform: rotateX(90deg); opacity: 0.3; }
  100% { transform: rotateX(0deg); opacity: 1; }
}

/* Shared form elements in aura */
.cell-label {
  font-family: var(--font-space);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aura-on-surface-variant);
}
.timer-display {
  font-family: var(--font-space);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  text-align: center;
  color: var(--aura-tertiary);
  font-variant-numeric: tabular-nums;
}
.tab, .preset, .action-btn {
  font-family: var(--font-space);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--aura-on-surface-variant);
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
}
.tab.active, .preset.active { border-color: rgba(210,187,255,0.4); color: var(--aura-tertiary); }
.action-btn.primary { background: rgba(54,38,206,0.3); border-color: rgba(210,187,255,0.3); color: var(--aura-on-surface); }
.mixer-row input[type="range"] {
  -webkit-appearance: none;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}
.mixer-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--aura-tertiary);
}
.bento-cell textarea {
  flex: 1;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.75rem;
  color: var(--aura-on-surface);
  font-family: var(--font-manrope);
  resize: none;
  user-select: text;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.dot.active { background: #4ade80; box-shadow: 0 0 10px rgba(74,222,128,0.5); animation: pulse 2s ease infinite; }
.dot.break { background: #fbbf24; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

.cell-toolbar { display: none; position: absolute; top: 0.5rem; right: 0.5rem; gap: 0.25rem; z-index: 5; }
.bento-aura.edit-mode .cell-toolbar { display: flex; }
.drag-handle { cursor: grab; color: var(--aura-on-surface-variant); }
.cell-hide { background: rgba(255,80,80,0.15); border: 1px solid rgba(255,80,80,0.3); border-radius: 6px; color: #ff8080; width: 22px; height: 22px; cursor: pointer; }
.resize-handle { display: none; position: absolute; bottom: 6px; right: 8px; background: none; border: none; color: var(--aura-on-surface-variant); cursor: nwse-resize; }
.bento-aura.edit-mode .resize-handle { display: block; }
.hidden-tray { position: fixed; bottom: 7rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 40; }
.hidden-tray button {
  background: rgba(18,20,20,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: var(--aura-on-surface-variant);
  font-size: 0.75rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

@media (max-width: 768px) {
  .bento-aura { grid-template-columns: 1fr 1fr; }
  .bento-aura .bento-cell[data-span="2"],
  .bento-aura .bento-cell[data-span="4"] { grid-column: span 2; }
  .aura-center {
    transform: translateY(-0.5rem);
    gap: 2rem;
  }
  .aura-visual-wrap {
    width: min(420px, 80vw);
    height: min(420px, 80vw);
  }
  .aura-horizon {
    padding-bottom: calc(1.5rem + max(env(safe-area-inset-bottom, 0px), 16px));
  }
  .horizon-modes { gap: 0.25rem; }
  .horizon-mode { padding: 0.5rem 0.65rem; font-size: 9px; }
  .horizon-mode span:last-child { display: none; }
  .horizon-bar {
    padding: 0.75rem 0.875rem;
    border-radius: 1.25rem;
    gap: 0.5rem;
  }
  .horizon-play {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
  }
  .bookmark-hint {
    --hint-star-offset: 2.5rem;
    right: 0;
    max-width: calc(100vw - 2.5rem);
    white-space: normal;
    text-align: left;
    border-radius: 1rem;
    padding: 0.6rem 0.8rem;
  }
  .bookmark-hint::before {
    right: calc(0.75rem + var(--hint-star-offset));
  }
  .timer-sheet-grid { grid-template-columns: repeat(2, 1fr); }
  .horizon-volume {
    flex-basis: 100%;
    min-width: 0;
    margin: 0;
    order: 3;
  }
  #scene-nap.nap-ambient-on:not(.nap-has-scene-bg) .aura-center {
    bottom: calc(var(--nap-panel-max) + 0.75rem + env(safe-area-inset-bottom, 0px));
    gap: 0.65rem;
    transform: none;
  }
  #scene-nap .nap-horizon {
    flex-direction: column;
    align-items: stretch;
  }
  #scene-nap .horizon-controls {
    width: auto;
    justify-content: flex-end;
    flex-shrink: 0;
  }
  #scene-nap .horizon-volume {
    flex: 1;
    flex-basis: auto;
    order: 0;
    min-width: 0;
  }
  .nap-soundscapes-scroll {
    max-height: var(--nap-sound-scroll-max);
  }
  .nap-soundscapes {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
  }
  .nap-sound-chip {
    font-size: 13px;
    min-height: 2.65rem;
    padding: 0.6rem 1rem;
  }
}
@media (min-width: 900px) {
  .bookmark-hint {
    --hint-star-offset: 3.25rem;
    right: 0.75rem;
  }
}

/* 车机横屏：声景按钮再放大一档，方便手指点按 */
@media (orientation: landscape) and (min-width: 900px) {
  .nap-soundscapes {
    gap: 0.6rem;
  }
  .nap-sound-chip {
    font-size: 15px;
    min-height: 3.1rem;
    padding: 0.75rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .aura-center,
  .horizon-mode,
  .horizon-play,
  .volume-fill,
  .aura-bg-layer {
    transition: none;
  }
  .breath-ring-aura,
  .aura-art,
  .visualizer.playing span,
  .dot.active,
  .focus-ripple.active,
  .flip-digit.flipping .flip-inner {
    animation: none;
  }
}
@media (max-width: 480px) {
  .bento-aura { grid-template-columns: 1fr; }
  .bento-aura .bento-cell[data-span="2"],
  .bento-aura .bento-cell[data-span="4"] { grid-column: span 1; }
}
