/* Ambient Screen Styles */
:root {
  --bg-dark: #0a0a0b;
  --bg-warm: #0d0806;
  --text-primary: rgba(255, 248, 240, 0.85);
  --text-secondary: rgba(255, 220, 180, 0.5);
  --text-dim: rgba(255, 200, 150, 0.25);
  --accent-warm: #e8a060;
  --accent-amber: #d4935a;
  --accent-orange: #c07848;
  --glow-warm: rgba(255, 180, 120, 0.4);
  --glow-soft: rgba(255, 200, 160, 0.15);
  --panel-bg: rgba(0, 0, 0, 0.5);
  --panel-border: rgba(255, 200, 150, 0.08);
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  cursor: default;
  transition: background 1s ease;
}

body.theme-warm-glow {
  background: var(--bg-warm);
}

body.cursor-hidden {
  cursor: none;
}

/* Mode transition overlay */
body.mode-transitioning .widgets,
body.mode-transitioning .floating-words,
body.mode-transitioning .news-display,
body.mode-transitioning .mind-share-display {
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
}

/* First-run hint */
.first-run-hint {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: rgba(20, 15, 12, 0.9);
  border: 1px solid var(--accent-warm);
  border-radius: 12px;
  padding: 12px 18px;
  z-index: 99;
  opacity: 0;
  transform: translateY(10px);
  animation: hintAppear 0.5s ease 2s forwards;
  pointer-events: none;
}

.first-run-hint span {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.first-run-hint::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--accent-warm);
}

.first-run-hint.hidden {
  display: none;
}

@keyframes hintAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Canvas for orbs */
#orbCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

body.theme-warm-glow #orbCanvas {
  opacity: 1;
}

/* Widgets Container - with anti-burn drift using margin instead of transform */
.widgets {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vh, 48px);
  padding: clamp(24px, 4vw, 60px);
  max-height: 90vh;
  animation: subtleDrift 120s ease-in-out infinite;
}

/* Anti-burn-in: Subtle position drift using margin (doesn't conflict with transform) */
@keyframes subtleDrift {
  0%, 100% {
    margin-top: 0;
    margin-left: 0;
  }
  25% {
    margin-top: -2vh;
    margin-left: 2vw;
  }
  50% {
    margin-top: 2vh;
    margin-left: -2vw;
  }
  75% {
    margin-top: -3vh;
    margin-left: 0;
  }
}

/* Mindful Mode: Time anchored at top */
body.mindful-mode .widgets {
  top: 0;
  transform: translate(-50%, 0);
  padding-top: 8vh;
}

/* Widget Base */
.widget {
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.widget.visible {
  opacity: 1;
  transform: translateY(0);
}

.widget.hidden {
  display: none !important;
}

/* Time Widget */
.time-widget {
  transition-delay: 0s;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.time-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 7vw, 100px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
  color: rgba(255, 210, 170, 0.8);
  max-width: 90vw;
  white-space: nowrap;
  text-shadow:
    0 0 30px rgba(255, 180, 120, 0.5),
    0 0 60px rgba(255, 160, 100, 0.3),
    0 0 100px rgba(255, 140, 80, 0.2),
    0 0 150px rgba(255, 120, 60, 0.1);
  animation: timeGlow 4s ease-in-out infinite;
  transition: font-size 0.6s ease, color 0.4s ease, opacity 2.5s ease;
}

/* Mindful Mode: Smaller, subtler time at top */
body.mindful-mode .time-display {
  font-size: clamp(48px, 10vw, 90px);
  color: rgba(255, 210, 170, 0.6);
  text-shadow:
    0 0 20px rgba(255, 180, 120, 0.35),
    0 0 40px rgba(255, 160, 100, 0.2),
    0 0 60px rgba(255, 140, 80, 0.1);
}

body.mindful-mode .date-display {
  color: rgba(255, 200, 160, 0.35);
  margin-top: 12px;
}

@keyframes timeGlow {
  0%, 100% {
    text-shadow:
      0 0 30px rgba(255, 180, 120, 0.5),
      0 0 60px rgba(255, 160, 100, 0.3),
      0 0 100px rgba(255, 140, 80, 0.2),
      0 0 150px rgba(255, 120, 60, 0.1);
  }
  50% {
    text-shadow:
      0 0 40px rgba(255, 180, 120, 0.6),
      0 0 80px rgba(255, 160, 100, 0.4),
      0 0 120px rgba(255, 140, 80, 0.25),
      0 0 180px rgba(255, 120, 60, 0.15);
  }
}

.time-display .colon {
  animation: colonPulse 2s ease-in-out infinite;
}

@keyframes colonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.date-display {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(12px, 2vw, 24px);
  color: rgba(255, 200, 160, 0.45);
  margin-top: clamp(12px, 2vh, 24px);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(255, 180, 120, 0.25);
  transition: opacity 2.5s ease;
}

/* Weather Widget */
.weather-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 2.5s ease;
}

.weather-info {
  text-align: center;
}

.weather-temp {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 8vw, 80px);
  font-weight: 300;
  color: rgba(255, 210, 170, 0.7);
  text-shadow:
    0 0 20px rgba(255, 180, 120, 0.4),
    0 0 40px rgba(255, 160, 100, 0.2);
  line-height: 1;
  animation: tempGlow 5s ease-in-out infinite;
  transition: opacity 2.5s ease;
}

@keyframes tempGlow {
  0%, 100% {
    text-shadow:
      0 0 20px rgba(255, 180, 120, 0.4),
      0 0 40px rgba(255, 160, 100, 0.2);
  }
  50% {
    text-shadow:
      0 0 25px rgba(255, 180, 120, 0.5),
      0 0 50px rgba(255, 160, 100, 0.3);
  }
}

.weather-condition {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(10px, 1.5vw, 18px);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 300;
  margin-top: clamp(6px, 1vh, 12px);
  transition: opacity 2.5s ease;
}

/* Sun Arc Widget */
.sun-arc-widget {
  width: clamp(250px, 40vw, 500px);
  max-width: 90vw;
  transition: opacity 2.5s ease;
}

.sun-arc-svg {
  width: 100%;
  height: auto;
}

.sun-arc-path {
  opacity: 0.4;
}

.sun-marker {
  fill: #e8a060;
  filter: drop-shadow(0 0 12px var(--glow-warm)) drop-shadow(0 0 24px var(--glow-soft));
  transition: cx 0.5s ease, cy 0.5s ease;
}

.arc-label {
  font-family: 'Inter', sans-serif;
  font-size: clamp(10px, 1.2vw, 16px);
  font-weight: 300;
  letter-spacing: 0.05em;
  fill: var(--text-dim);
}

.sunrise-label {
  text-anchor: start;
}

.sunset-label {
  text-anchor: end;
}

.moon-display {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.moon-display.visible {
  display: flex;
}

.moon-icon {
  font-size: clamp(28px, 4vw, 48px);
  filter: drop-shadow(0 0 15px rgba(200, 210, 255, 0.3));
}

.moon-phase {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(11px, 1.5vw, 18px);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 300;
}

/* Quote Widget */
.quote-widget {
  max-width: min(80vw, 700px);
  padding: clamp(12px, 2vw, 32px);
  transition: opacity 2.5s ease;
}

.quote-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(14px, 2vw, 24px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: clamp(8px, 1vh, 16px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
  text-shadow: 0 0 40px var(--glow-soft);
  max-width: 75vw;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quote-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.quote-author {
  font-family: 'Inter', sans-serif;
  font-size: clamp(9px, 1vw, 13px);
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
}

.quote-author.visible {
  opacity: 1;
}

/* Settings Button */
.settings-btn,
.fullscreen-btn {
  position: fixed;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(10px);
}

.settings-btn {
  right: 24px;
}

.fullscreen-btn {
  right: 84px;
}

.settings-btn:hover,
.fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: scale(1.05);
}

body.cursor-hidden .settings-btn,
body.cursor-hidden .fullscreen-btn {
  opacity: 0;
  pointer-events: none;
}

/* Settings Panel */
.settings-panel {
  position: fixed;
  right: -360px;
  top: 0;
  bottom: 0;
  width: 340px;
  max-width: 90vw;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--panel-border);
  z-index: 200;
  padding: 24px;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.settings-panel.open {
  right: 0;
}

.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.settings-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.settings-header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.settings-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.settings-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.settings-section {
  margin-bottom: 28px;
}

.settings-section h3 {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

/* Theme Selector */
.theme-selector {
  display: flex;
  gap: 8px;
}

.theme-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.theme-btn.active {
  background: rgba(255, 140, 66, 0.15);
  border-color: var(--accent-warm);
  color: var(--accent-warm);
}

/* Toggle Switches */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-row span:first-child {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-primary);
}

.toggle-row input {
  display: none;
}

.toggle-slider {
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  position: relative;
  transition: background 0.2s ease;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.toggle-row input:checked + .toggle-slider {
  background: var(--accent-warm);
}

.toggle-row input:checked + .toggle-slider::after {
  transform: translateX(20px);
}

/* Mode Selector */
.mode-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 180, 120, 0.2);
}

.mode-option input {
  display: none;
}

.mode-option input:checked + .mode-label {
  color: var(--accent-warm);
}

.mode-option input:checked ~ .mode-label::before {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
}

.mode-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
  margin-left: 28px;
  position: relative;
}

.mode-label::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  transition: all 0.2s ease;
}

.mode-desc {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 28px;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 600px) {
  .widgets {
    padding: 20px;
    gap: 24px;
  }

  body.mindful-mode .widgets {
    padding-top: 5vh;
  }

  .quote-widget {
    padding: 20px;
  }

  .settings-btn,
  .fullscreen-btn {
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .settings-btn {
    right: 16px;
  }

  .fullscreen-btn {
    right: 68px;
  }

  /* Mindful mode mobile adjustments */
  body.mindful-mode .time-display {
    font-size: clamp(36px, 12vw, 60px);
  }

  .floating-words {
    padding-top: 30px;
  }

  .entity-card .entity-name {
    font-size: clamp(36px, 12vw, 60px);
  }

  .entity-card .entity-info {
    font-size: clamp(18px, 4vw, 22px);
  }
}

/* Entity Display - Single Centered Card with anti-burn drift */
.floating-words {
  position: fixed;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 15;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 800px;
  padding: 0 20px;
  animation: contentDrift 90s ease-in-out infinite;
}

/* Anti-burn-in: Content area drift using margin */
@keyframes contentDrift {
  0%, 100% {
    margin-top: 0;
    margin-left: 0;
  }
  33% {
    margin-top: 2vh;
    margin-left: -2vw;
  }
  66% {
    margin-top: -2vh;
    margin-left: 2vw;
  }
}

.entity-card {
  pointer-events: auto;
  text-align: center;
  padding: 0;
  opacity: 0;
  animation: cardFadeIn 0.8s ease forwards;
}

.entity-card.fading-out {
  animation: cardFadeOut 0.6s ease forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
}

.entity-card .entity-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 6vw, 72px);
  font-weight: 400;
  color: rgba(255, 210, 170, 0.92);
  text-shadow:
    0 0 40px rgba(255, 180, 120, 0.5),
    0 0 80px rgba(255, 160, 100, 0.3);
  line-height: 1.15;
  margin-bottom: clamp(8px, 1vh, 16px);
  max-width: 85vw;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.entity-card .entity-type {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(10px, 1.2vw, 14px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 180, 120, 0.5);
  margin-bottom: clamp(12px, 2vh, 24px);
  display: block;
}

.entity-card .entity-info {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: rgba(255, 220, 190, 0.6);
  max-width: min(85vw, 750px);
  margin: 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Words Input Panel - hidden by default, shows on mouse movement */
.words-input-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px 32px;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.97) 0%, rgba(10, 10, 11, 0.85) 60%, rgba(10, 10, 11, 0.4) 85%, transparent 100%);
  z-index: 50;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.words-input-panel.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.words-input-panel.hidden {
  display: none;
}

.words-input-container {
  max-width: 100%;
  margin: 0 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 15, 12, 0.85);
  border: 1px solid rgba(255, 180, 120, 0.25);
  border-radius: 16px;
  padding: 8px 16px 8px 0;
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 30px rgba(255, 150, 100, 0.08),
    inset 0 1px 0 rgba(255, 200, 150, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.words-input-container:focus-within {
  border-color: rgba(255, 180, 120, 0.45);
  box-shadow:
    0 0 40px rgba(255, 150, 100, 0.15),
    0 0 80px rgba(255, 120, 80, 0.08),
    inset 0 1px 0 rgba(255, 200, 150, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.words-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 225, 190, 0.95);
  padding: 10px 8px 10px 20px;
  letter-spacing: 0.01em;
}

.words-input::placeholder {
  color: rgba(255, 180, 140, 0.4);
  font-style: italic;
}

.mic-btn,
.clear-words-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 180, 120, 0.08);
  border: 1px solid rgba(255, 180, 120, 0.2);
  color: rgba(255, 200, 160, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mic-btn:hover,
.clear-words-btn:hover {
  background: rgba(255, 180, 120, 0.18);
  color: rgba(255, 220, 180, 1);
  border-color: rgba(255, 180, 120, 0.4);
  transform: scale(1.05);
}

.mic-btn.listening {
  background: rgba(255, 100, 100, 0.2);
  border-color: rgba(255, 100, 100, 0.4);
  color: rgba(255, 150, 150, 1);
  animation: micPulse 1.5s ease-in-out infinite;
}

@keyframes micPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.words-hint {
  text-align: center;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 200, 150, 0.35);
  letter-spacing: 0.08em;
  margin-top: 14px;
}

.words-hint .word-count {
  color: rgba(255, 180, 120, 0.6);
  font-weight: 500;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* News Display - with anti-burn drift */
.news-display {
  position: fixed;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 15;
  pointer-events: none;
  display: none;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 850px;
  padding: 0 20px;
  animation: contentDrift 90s ease-in-out infinite;
}

.news-card {
  pointer-events: auto;
  text-align: center;
  padding: 0;
  opacity: 0;
  animation: cardFadeIn 0.8s ease forwards;
}

.news-card.fading-out {
  animation: cardFadeOut 0.6s ease forwards;
}

.news-card .news-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 7vw, 72px);
  font-weight: 400;
  color: rgba(255, 210, 170, 0.92);
  text-shadow:
    0 0 50px rgba(255, 180, 120, 0.55),
    0 0 100px rgba(255, 160, 100, 0.35),
    0 0 150px rgba(255, 140, 80, 0.2);
  line-height: 1.2;
  margin-bottom: clamp(12px, 1.5vh, 24px);
  max-width: 85vw;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .news-source {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(12px, 1.5vw, 20px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 180, 120, 0.5);
  margin-bottom: clamp(16px, 2vh, 28px);
  display: block;
}

.news-card .news-description {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(18px, 4vw, 36px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: rgba(255, 220, 190, 0.55);
  max-width: clamp(500px, 70vw, 900px);
  margin: 0 auto;
}

/* News mode layout */
body.news-mode .widgets {
  top: 0;
  transform: translate(-50%, 0);
  padding-top: 8vh;
}

body.news-mode .time-display {
  font-size: clamp(48px, 10vw, 90px);
  color: rgba(255, 210, 170, 0.6);
  text-shadow:
    0 0 20px rgba(255, 180, 120, 0.35),
    0 0 40px rgba(255, 160, 100, 0.2),
    0 0 60px rgba(255, 140, 80, 0.1);
}

body.news-mode .date-display {
  color: rgba(255, 200, 160, 0.35);
  margin-top: 12px;
}

/* Mobile news adjustments */
@media (max-width: 600px) {
  body.news-mode .widgets {
    padding-top: 5vh;
  }

  body.news-mode .time-display {
    font-size: clamp(36px, 12vw, 60px);
  }

  .news-card .news-headline {
    font-size: clamp(28px, 8vw, 48px);
  }

  .news-card .news-description {
    font-size: clamp(16px, 3.5vw, 20px);
  }
}

/* Mind Share Display - with anti-burn drift */
.mind-share-display {
  position: fixed;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 15;
  pointer-events: none;
  display: none;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 900px;
  padding: 0 20px;
  animation: contentDrift 90s ease-in-out infinite;
}

.mind-card {
  pointer-events: auto;
  text-align: center;
  padding: 0;
  opacity: 0;
  animation: cardFadeIn 0.8s ease forwards;
}

.mind-card.fading-out {
  animation: cardFadeOut 0.6s ease forwards;
}

.mind-card .mind-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(26px, 5vw, 64px);
  font-weight: 400;
  color: rgba(255, 210, 170, 0.92);
  text-shadow:
    0 0 40px rgba(255, 180, 120, 0.5),
    0 0 80px rgba(255, 160, 100, 0.3);
  line-height: 1.15;
  margin-bottom: clamp(8px, 1vh, 14px);
  max-width: 85vw;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.mind-card .mind-type {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 180, 120, 0.5);
  margin-bottom: clamp(10px, 1.8vh, 22px);
}

.mind-card .mind-info {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(15px, 2.2vw, 22px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: rgba(255, 220, 190, 0.6);
  max-width: min(85vw, 700px);
  margin: 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mind Share Waiting State */
.mind-share-waiting {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 14;
  text-align: center;
  pointer-events: none;
}

.mind-share-waiting.hidden {
  display: none;
}

.mind-share-waiting .waiting-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 210, 170, 0.5);
  animation: waitingPulse 3s ease-in-out infinite;
}

.mind-share-waiting .waiting-hint {
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1.2vw, 14px);
  color: rgba(255, 180, 120, 0.35);
  margin-top: 16px;
  letter-spacing: 0.05em;
}

@keyframes waitingPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

/* Mind Share Code Display */
.mind-share-code {
  position: fixed;
  bottom: clamp(20px, 3vh, 40px);
  left: 24px;
  z-index: 100;
  text-align: left;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.mind-share-code.visible {
  opacity: 1;
}

.mind-share-code .code-label {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 400;
  color: rgba(255, 200, 160, 0.4);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.mind-share-code .code-value {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  color: var(--accent-warm);
  letter-spacing: 0.2em;
  text-shadow: 0 0 30px rgba(255, 180, 120, 0.4);
}

/* Mind Share mode layout */
body.mind-share-mode .widgets {
  top: 0;
  transform: translate(-50%, 0);
  padding-top: 8vh;
}

body.mind-share-mode .time-display {
  font-size: clamp(48px, 10vw, 90px);
  color: rgba(255, 210, 170, 0.6);
  text-shadow:
    0 0 20px rgba(255, 180, 120, 0.35),
    0 0 40px rgba(255, 160, 100, 0.2),
    0 0 60px rgba(255, 140, 80, 0.1);
}

body.mind-share-mode .date-display {
  color: rgba(255, 200, 160, 0.35);
  margin-top: 12px;
}

/* Mobile mind share adjustments */
@media (max-width: 600px) {
  body.mind-share-mode .widgets {
    padding-top: 5vh;
  }

  body.mind-share-mode .time-display {
    font-size: clamp(28px, 10vw, 48px);
  }

  .mind-card .mind-name {
    font-size: clamp(24px, 8vw, 44px);
  }

  .mind-card .mind-info {
    font-size: clamp(14px, 3vw, 18px);
    -webkit-line-clamp: 5;
  }

  .mind-share-code {
    bottom: 16px;
    left: 16px;
  }

  .mind-share-code .code-value {
    font-size: clamp(20px, 6vw, 32px);
  }
}
