/**
 * McIntosh Cast Receiver — P0 Nest Hub instrument face
 * -----------------------------------------------------------------------------
 * Tokens mirror Apple/McIntoshHome/Theme/McIntoshTheme.swift (legend green,
 * meter blue family, chassis black). Keep hex values in sync when retuning iOS.
 *
 * Layout: brand bar → dual meters → meta (title + seat) → whisper nav.
 * Ambient rule: soft blue/green bloom only under meters — Nest is a room lamp.
 */

:root {
  --chassis: #0a0b0d;
  --chassis-elevated: #121416;
  --legend-green: #38eb61;
  --legend-green-dim: #1f7a38;
  --meter-blue: #268cff;
  --meter-blue-deep: #0d388c;
  --meter-scale: rgba(255, 255, 255, 0.55);
  --hairline: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --text-dim: rgba(255, 255, 255, 0.42);
  --green-stroke: rgba(56, 235, 97, 0.22);
  --green-halo: rgba(56, 235, 97, 0.26);
}

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

html,
body {
  width: 100%;
  height: 100%;
  background: #000;
  color: var(--text);
  font-family: "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.chassis {
  display: flex;
  flex-direction: column;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 55% at 50% 42%, rgba(13, 56, 140, 0.18), transparent 70%),
    var(--chassis);
}

.brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5.5vh 5.8vw 0;
}

.brand-mark {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 700;
  font-size: clamp(22px, 2.9vw, 30px);
  color: var(--legend-green);
  text-shadow: 0 0 20px rgba(56, 235, 97, 0.32);
  letter-spacing: 0.01em;
}

.model {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(11px, 1.35vw, 14px);
  color: var(--text-dim);
  letter-spacing: 0.18em;
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3.2vh;
  padding: 1vh 4vw 2vh;
}

.meters {
  display: flex;
  gap: 2.8vw;
  width: min(94vw, 920px);
  justify-content: center;
}

.meters canvas {
  width: min(42vw, 400px);
  height: auto;
  aspect-ratio: 400 / 186;
  background: var(--chassis-elevated);
  border-radius: 14px;
  border: 1px solid var(--green-stroke);
  box-shadow:
    inset 0 0 40px rgba(38, 140, 255, 0.08),
    0 0 60px var(--green-halo),
    0 0 130px rgba(56, 235, 97, 0.13);
}

.meta {
  text-align: center;
  max-width: 85vw;
}

.title {
  font-size: clamp(20px, 2.7vw, 28px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.35em;
}

.artist {
  font-size: clamp(13px, 1.55vw, 16px);
  color: rgba(56, 235, 97, 0.8);
  font-weight: 500;
}

.artist .seat {
  color: rgba(255, 255, 255, 0.3);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78em;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.nav-whisper {
  display: flex;
  justify-content: space-around;
  padding: 2.2vh 8.8vw 4vh;
  border-top: 1px solid var(--hairline);
  background: rgba(18, 20, 22, 0.9);
  font-size: clamp(11px, 1.25vw, 13px);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.32);
}

.nav-whisper .active {
  color: var(--legend-green);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
