/* Campus chrome aligned with the university: floating menus, glow, gradient tiles. */

.fx-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.shell, header.top, .site-foot, .bottom-nav { position: relative; z-index: 1; }
.bottom-nav { position: fixed; z-index: 30; }

header.top {
  position: sticky;
  top: 10px;
  margin: 10px 10px 0;
  border-radius: 22px;
  border: 1px solid rgba(167, 139, 250, 0.55);
  background: color-mix(in srgb, var(--cc-surface, #fff) 82%, transparent);
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.22),
    0 0 28px rgba(34, 211, 238, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px) saturate(1.3);
}
@media (max-width: 800px) {
  header.top {
    top: 8px;
    height: auto;
    max-height: none;
    margin: 8px 8px 0;
  }
}

.bottom-nav {
  left: 10px;
  right: 10px;
  bottom: 10px;
  width: auto;
  border-radius: 22px;
  border: 1px solid rgba(129, 140, 248, 0.55);
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.28),
    0 0 24px rgba(34, 211, 238, 0.5);
  background: color-mix(in srgb, var(--cc-surface, #fff) 88%, #e0e7ff);
}
.bottom-nav svg {
  filter: drop-shadow(0 3px 0 rgba(15, 23, 42, 0.25)) drop-shadow(0 0 6px rgba(34, 211, 238, 0.7));
}

.track-tile,
.lesson-card,
.card,
.panel {
  background: linear-gradient(155deg, color-mix(in srgb, var(--cc-surface, #fff) 70%, #ecfeff), color-mix(in srgb, var(--cc-surface, #fff) 78%, #fce7f3));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16), 0 6px 0 rgba(49, 46, 129, 0.1);
}
.neon-hero {
  border-radius: 28px;
  box-shadow: 0 20px 44px rgba(30, 27, 75, 0.28), 0 0 36px rgba(34, 211, 238, 0.35);
}

a[href="https://linktr.ee/cypherMonkey"] .brand-mark {
  color: #39e75f;
  filter: drop-shadow(0 0 8px rgba(57, 231, 95, 0.85));
}
.brand-row {
  padding: 8px;
  border-radius: 16px;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--cc-surface, #fff), var(--cc-surface, #fff)) padding-box,
    linear-gradient(120deg, #22d3ee, #a78bfa, #f472b6) border-box;
}

.disclaimer-panel {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid #047857;
  background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 42%, #dbeafe 100%);
  color: #052e2b;
  box-shadow: 0 10px 24px rgba(6, 78, 59, 0.12);
}
.disclaimer-panel h2,
.disclaimer-panel p,
.disclaimer-panel strong { color: #052e2b; }
.disclaimer-panel a { color: #1e3a8a; font-weight: 800; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 4px 6px 4px 0;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #082f49;
  background: linear-gradient(120deg, #fde047, #22d3ee 50%, #f472b6);
}
.section-dl { margin: 12px 0; }

.guide-panel[hidden] { display: none !important; }
.guide-panel {
  border: 2px solid #0891b2;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 22px rgba(34, 211, 238, 0.4);
}
.guide-launch {
  border-radius: 18px;
  box-shadow: 0 8px 0 #312e81, 0 0 18px rgba(34, 211, 238, 0.55);
}

.read-sentence.is-spoken {
  background: #fde047;
  color: #1c1917;
  border-radius: 4px;
  box-shadow: 0 0 0 3px #fde047;
}
.is-reading {
  outline: 3px solid #22d3ee;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.28);
  border-radius: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="reduce"]) .track-tile,
  html:not([data-motion="reduce"]) .lesson-card,
  html:not([data-motion="reduce"]) .card {
    transition: transform 0.22s ease;
  }
  html:not([data-motion="reduce"]) .track-tile:hover,
  html:not([data-motion="reduce"]) .lesson-card:hover,
  html:not([data-motion="reduce"]) .card:hover {
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .fx-particles,
  html:not([data-motion="full"]) .track-tile,
  html:not([data-motion="full"]) .monkey { animation: none !important; transition: none !important; }
}
html[data-motion="reduce"] .fx-particles { display: none; }
html[data-motion="reduce"] .track-tile:hover,
html[data-motion="reduce"] .card:hover { transform: none; }

.site-foot { margin-bottom: 120px; }
.sources-deeper {
  margin: 18px 0;
  padding: 14px 16px;
  border: 2px solid #0f766e;
  border-radius: 16px;
  background: #ecfdf5;
  color: #052e2b;
}
.sources-deeper h2,
.sources-deeper li,
.sources-deeper p { color: #052e2b; }
.sources-deeper a { color: #0b3a8f; font-weight: 800; }
.sources-deeper .is-confirm { border-left: 4px solid #b45309; padding-left: 8px; }
@media (max-width: 800px) {
  .guide {
    right: 8px;
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .guide-launch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .guide-launch { min-width: 48px; padding: 0 12px; }
}
