/* OUTDOOR DAY TOGGLE V6.10.9e4 — moon dual; soft blue aura in day only; no default button chrome */
.outdoor-day-toggle {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border: none !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.outdoor-day-toggle:focus,
.outdoor-day-toggle:focus-visible {
  outline: 1px solid rgba(125, 211, 252, 0.55);
  outline-offset: 2px;
}
.outdoor-day-toggle:hover { transform: scale(1.08); }
.outdoor-day-toggle:active { transform: scale(0.94); }
/* Soft blue halo — rises only in light mode */
.outdoor-day-toggle::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.28) 0%, rgba(56, 189, 248, 0.12) 42%, transparent 70%);
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 0;
}
/* 초승달 — 항상 C자, 살짝 기울여 운치 + 시인성 (절대 태양으로 바꾸지 않음) */
.outdoor-crescent {
  position: relative;
  z-index: 1;
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 5px 0 0 0 #dce7f8 !important;
  filter:
    drop-shadow(0 0 3px rgba(186, 214, 255, 0.75))
    drop-shadow(0 0 7px rgba(125, 211, 252, 0.4)) !important;
  transform: rotate(-22deg);
  transition: box-shadow 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}
/* 나이트(라이트 OFF): e234 — 달빛 원복 (e231/e233 완화 전) */
.outdoor-day-toggle:not(.is-day) .outdoor-crescent,
.outdoor-day-toggle[aria-pressed="false"] .outdoor-crescent {
  box-shadow: inset 5px 0 0 0 #f0f6ff !important;
  filter:
    drop-shadow(0 0 4px rgba(220, 235, 255, 0.95))
    drop-shadow(0 0 10px rgba(125, 211, 252, 0.55))
    drop-shadow(0 0 16px rgba(90, 212, 255, 0.35)) !important;
  transform: rotate(-22deg) scale(1.05);
}
.outdoor-day-toggle.is-day::before,
.outdoor-day-toggle[aria-pressed="true"]::before {
  opacity: 1;
  transform: scale(1);
}
/* 라이트(흰 패널): 달은 더 진하게 — 흰 배경에서 죽지 않게 */
.outdoor-day-toggle.is-day .outdoor-crescent,
.outdoor-day-toggle[aria-pressed="true"] .outdoor-crescent {
  box-shadow: inset 5px 0 0 0 #3b5f8a !important;
  filter:
    drop-shadow(0 0 3px rgba(56, 189, 248, 0.7))
    drop-shadow(0 0 8px rgba(14, 165, 233, 0.45)) !important;
  transform: rotate(-22deg);
}
.phone-container.theme-outdoor-day {
  /* chrome panels light; galaxy zone stays cosmic */
  background: linear-gradient(180deg, #0a1628 0%, #0b1730 42%, #e8eef6 72%, #f1f5f9 100%) !important;
  background-image:
    radial-gradient(ellipse 90% 55% at 50% 18%, rgba(90, 212, 255, 0.12) 0%, transparent 55%),
    url('cosmic_bg.png') !important;
  background-size: cover !important;
  background-position: center top !important;
}
.phone-container.theme-outdoor-day #scr-home { background: transparent !important; }
.phone-container.theme-outdoor-day .background-layer { display: block !important; opacity: 0.85 !important; }
.phone-container.theme-outdoor-day .screen-glare { display: none !important; }
/* KEEP galaxy canvas + silver materials in light mode */
.phone-container.theme-outdoor-day #scr-home #global-canvas {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  filter: none !important;
}
.phone-container.theme-outdoor-day #scr-home #drawing-zone,
.phone-container.theme-outdoor-day #scr-home .drawing-zone {
  background: rgba(5, 12, 28, 0.45) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  border-color: rgba(90, 212, 255, 0.28) !important;
}
/*
 * THEME BOX TINT — LIGHT/OUTDOOR ONLY
 * --theme-box-fill / --theme-box-border 는 .theme-outdoor-day 안에서만 사용.
 * 다크 모드(:not(.theme-outdoor-day))에 동일 규칙을 복사·확장 금지.
 */
/* 패널 통흰 여백 제거 — 자식(테마/AI/마이크)만 흰 면, 라운드 유지 */
.phone-container.theme-outdoor-day #scr-home .home-input-panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.phone-container.theme-outdoor-day #scr-home .ai-toggle-bar {
  background: var(--theme-box-fill, #ffffff) !important;
  border-color: var(--theme-box-border, #94a3b8) !important;
  border-radius: 10px !important;
  border-top: 1px solid var(--theme-box-border, #94a3b8) !important;
}
.phone-container.theme-outdoor-day #scr-home .ai-toggle-bar > span,
.phone-container.theme-outdoor-day #scr-home .ai-toggle-bar span {
  color: #0f172a !important;
  font-weight: 800 !important;
}
.phone-container.theme-outdoor-day #scr-home .ai-btn {
  color: #334155 !important;
  font-weight: 800 !important;
}
.phone-container.theme-outdoor-day #scr-home .ai-btn.active {
  color: #0f172a !important;
  background: #38bdf8 !important;
}
.phone-container.theme-outdoor-day #scr-home .cosmic-theme-bar {
  background: var(--theme-box-fill, #ffffff) !important;
  border-color: var(--theme-box-border, #94a3b8) !important;
  border-radius: 10px !important;
  border-bottom: 1px solid var(--theme-box-border, #94a3b8) !important;
  margin-bottom: 3px !important;
}
.phone-container.theme-outdoor-day #scr-home .cosmic-theme-bar .theme-btn {
  color: #1e293b !important;
  font-weight: 800 !important;
}
.phone-container.theme-outdoor-day #scr-home .cosmic-theme-bar .theme-btn.active {
  color: #0f172a !important;
  background: #e2e8f0 !important;
  border-color: #64748b !important;
  box-shadow: none !important;
}
.phone-container.theme-outdoor-day #scr-home .voice-prompt-box,
.phone-container.theme-outdoor-day #scr-home #voice-prompt-trigger,
.phone-container.theme-outdoor-day #scr-home #qr-scan-trigger,
.phone-container.theme-outdoor-day #scr-home .prompt-container > div {
  background: var(--theme-box-fill, #f8fafc) !important;
  border-color: var(--theme-box-border, #64748b) !important;
  border-radius: 10px !important;
}
.phone-container.theme-outdoor-day #scr-home #voice-prompt-text,
.phone-container.theme-outdoor-day #scr-home #qr-scan-label,
.phone-container.theme-outdoor-day #scr-home .voice-prompt-box span,
.phone-container.theme-outdoor-day #scr-home .voice-prompt-box div,
.phone-container.theme-outdoor-day #scr-home #input-voice span {
  color: #0f172a !important;
  text-shadow: none !important;
  font-weight: 800 !important;
}
/* 결과카드·타이틀은 틴트/다크글자 금지 — 카드는 기본 다크 시인성 유지 */
/* #numbers-result-card 틴트 금지 — 툴바/입력창만 theme-box-fill */
.phone-container.theme-outdoor-day #scr-home .analysis-log-panel {
  border-radius: 10px !important;
}
.phone-container.theme-outdoor-day #home-bottom-chrome .carousel-label,
.phone-container.theme-outdoor-day #home-bottom-chrome .home-carousel-label,
.phone-container.theme-outdoor-day #home-bottom-chrome .stick-label,
.phone-container.theme-outdoor-day #home-bottom-chrome span,
.phone-container.theme-outdoor-day #scr-home .home-footer-label,
.phone-container.theme-outdoor-day #scr-home .grid-card-label {
  color: #0f172a !important;
  text-shadow: none !important;
  font-weight: 800 !important;
}
.phone-container.theme-outdoor-day #scr-home .smart-triple-bar .triple-bar-btn,
.phone-container.theme-outdoor-day #scr-home .triple-bar-btn {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: #64748b !important;
}
.phone-container.theme-outdoor-day #scr-home .triple-bar-btn span {
  color: #0f172a !important;
  font-weight: 800 !important;
}
/* 흰 패널 위 달: 진한 초승달 + 틸트 (인라인 스타일보다 우선) */
.phone-container.theme-outdoor-day .outdoor-day-toggle .outdoor-crescent {
  box-shadow: inset 5px 0 0 0 #2f4f78 !important;
  filter:
    drop-shadow(0 0 3px rgba(56, 189, 248, 0.75))
    drop-shadow(0 0 9px rgba(14, 165, 233, 0.5)) !important;
  transform: rotate(-22deg) !important;
}
.phone-container.theme-outdoor-day .outdoor-day-toggle.is-day::before,
.phone-container.theme-outdoor-day .outdoor-day-toggle[aria-pressed="true"]::before {
  opacity: 1;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.36) 0%, rgba(14, 165, 233, 0.16) 45%, transparent 72%);
}
.phone-container.theme-outdoor-day #scr-home .ai-toggle-bar {
  justify-content: space-between !important;
}
.phone-container.theme-outdoor-day #scr-home .ai-toggle-controls {
  margin-left: auto !important;
}
#scr-home .ai-toggle-bar { justify-content: space-between !important; }
#scr-home .ai-toggle-controls { margin-left: auto !important; display: flex; align-items: center; gap: 6px; }
