/* Schumann Live — /mobil visual dashboard (no copy, data-first) */
:root {
  --m-bg: #020610;
  --m-panel: rgba(6, 14, 28, 0.88);
  --m-cyan: #67e8f9;
  --m-gold: #fde68a;
  --m-green: #34d399;
  --m-safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body.sr-mobil {
  margin: 0;
  min-height: 100%;
  background: var(--m-bg);
  color: #e2e8f0;
  font-family: "Roboto Mono", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  touch-action: manipulation;
}

.sr-mobil-app {
  min-height: 100dvh;
  padding: 0 0 calc(4.5rem + var(--m-safe-b));
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(99, 102, 241, 0.08), transparent 50%),
    var(--m-bg);
}

.sr-mobil-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: max(0.65rem, env(safe-area-inset-top)) 0.85rem 0.5rem;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(2, 6, 16, 0.92), rgba(2, 6, 16, 0.55));
}

.sr-mobil-status {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--m-green);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
  animation: mPulse 1.8s ease-in-out infinite;
}

.sr-mobil-status--amber { background: #fbbf24; box-shadow: 0 0 12px rgba(251, 191, 36, 0.7); }
.sr-mobil-status--red { background: #f87171; box-shadow: 0 0 12px rgba(248, 113, 113, 0.7); }

.sr-mobil-top-actions { margin-left: auto; display: flex; gap: 0.4rem; }

.sr-mobil-icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(103, 232, 249, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--m-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.sr-mobil-icon-btn--accent {
  border-color: rgba(251, 191, 36, 0.45);
  color: var(--m-gold);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.15), rgba(34, 211, 238, 0.08));
}

.sr-mobil-hero {
  padding: 0.5rem 1rem 0.25rem;
  display: flex;
  justify-content: center;
}

.sr-mobil-ring-wrap {
  position: relative;
  width: min(17rem, 78vw);
  aspect-ratio: 1;
}

.sr-mobil-ring-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sr-mobil-ring-pulse {
  animation: mRing 7.83s ease-in-out infinite;
  transform-origin: center;
}

.sr-mobil-ring-pulse--b { animation-delay: -3.9s; }

.sr-mobil-wave-path {
  animation: mWaveShift 3.2s ease-in-out infinite;
}

.sr-mobil-hz-block {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sr-mobil-hz {
  font-size: clamp(2.8rem, 12vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #f0fdfa, var(--m-cyan) 45%, var(--m-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.35));
}

.sr-mobil-hz-unit {
  font-size: 0.85rem;
  color: rgba(103, 232, 249, 0.65);
  margin-top: -0.15rem;
}

.sr-mobil-amp-ring {
  position: absolute;
  right: -0.25rem;
  bottom: 0.5rem;
  width: 3rem;
  height: 3rem;
}

.sr-mobil-amp-gauge { width: 100%; height: 100%; transform: rotate(-90deg); }

.sr-mobil-amp-ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--m-green);
}

.sr-mobil-bands {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
  padding: 0.75rem 0.85rem;
}

.sr-mobil-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.sr-mobil-band-bar {
  width: 100%;
  height: 4.5rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(103, 232, 249, 0.12);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.sr-mobil-band-bar i {
  display: block;
  width: 100%;
  height: var(--h, 40%);
  background: linear-gradient(180deg, var(--m-cyan), rgba(34, 211, 238, 0.15));
  border-radius: 0.45rem 0.45rem 0 0;
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sr-mobil-band-freq {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.9);
}

.sr-mobil-band-tag {
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  color: rgba(103, 232, 249, 0.55);
}

.sr-mobil-panel {
  margin: 0.65rem 0.85rem;
  border-radius: 1rem;
  background: var(--m-panel);
  border: 1px solid rgba(103, 232, 249, 0.14);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(2, 8, 22, 0.45);
}

.sr-mobil-panel-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--m-cyan);
}

.sr-mobil-coords {
  font-size: 0.55rem;
  color: rgba(148, 163, 184, 0.75);
  margin-left: auto;
}

.sr-mobil-live-dot i {
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--m-green);
  animation: mPulse 1.4s ease-in-out infinite;
}

.sr-mobil-spectro-frame {
  aspect-ratio: 16/10;
  background: #0a1020;
}

.sr-mobil-spectro-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#sr-mobil-chart {
  display: block;
  width: 100%;
  height: 10rem;
}

.sr-mobil-meters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.5rem 0.85rem 1rem;
}

.sr-mobil-meter {
  position: relative;
  text-align: center;
}

.sr-mobil-meter svg { width: 100%; height: auto; display: block; }

.sr-mobil-meter-ico {
  position: absolute;
  bottom: 0.15rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  opacity: 0.55;
}

.sr-mobil-dock {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.55rem + var(--m-safe-b));
  z-index: 50;
  display: flex;
  justify-content: space-around;
  padding: 0.4rem 0.35rem;
  border-radius: 1.15rem;
  background: rgba(4, 10, 22, 0.92);
  border: 1px solid rgba(103, 232, 249, 0.2);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.sr-mobil-dock-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(148, 163, 184, 0.75);
  padding: 0.45rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.sr-mobil-dock-btn.is-active,
.sr-mobil-dock-btn:active {
  color: var(--m-cyan);
  background: rgba(34, 211, 238, 0.12);
}

.sr-mobil-dock-btn--install {
  color: var(--m-gold);
}

@keyframes mPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.92); }
}

@keyframes mRing {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@keyframes mWaveShift {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@media (min-width: 520px) {
  .sr-mobil-app { max-width: 480px; margin: 0 auto; }
}
