/* ============================================================
   W4GGJ Mission Control — theme
   Stencil "mission control" look: dark, blueprint grid,
   cyan + amber accents. Inspired by the F4IOW dashboard.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Saira+Stencil+One&family=Share+Tech+Mono&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --bg: #05070d;
  --bg2: #080b13;
  --panel: rgba(13, 19, 29, 0.72);
  --panel-solid: #0b111b;
  --border: rgba(80, 180, 190, 0.16);
  --border-strong: rgba(90, 200, 210, 0.34);
  --cyan: #3fe0cf;
  --cyan-dim: #63b4b2;
  --amber: #f6a821;
  --amber-soft: #ffcf7a;
  --green: #24d97a;
  --red: #ff4d4d;
  --text: #dce5ef;
  --muted: #7d8da3;
  --mono: 'Share Tech Mono', ui-monospace, monospace;
  --stencil: 'Saira Stencil One', 'Rajdhani', sans-serif;
  --body: 'Rajdhani', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(246, 168, 33, 0.10), transparent 60%),
    radial-gradient(900px 600px at 8% 8%, rgba(63, 224, 207, 0.07), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* blueprint grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(90, 180, 190, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 180, 190, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
  z-index: 0;
}

.wrap { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 0 22px 80px; }

/* ── Static header (top bar + ticker pinned together) ────── */
.site-header { position: sticky; top: 0; z-index: 50; }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 22px;
  background: rgba(5, 7, 13, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 9px;
  background: linear-gradient(135deg, var(--amber), #b5760a);
  display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 0 18px rgba(246, 168, 33, 0.35);
}
.brand .call { font-family: var(--stencil); font-size: 22px; letter-spacing: 1px; line-height: 1; }
.brand .sub { font-family: var(--mono); font-size: 10px; letter-spacing: 3px; color: var(--cyan-dim); }
.topbar .spacer { flex: 1; }
.clock { font-family: var(--mono); font-size: 17px; letter-spacing: 2px; color: var(--cyan); }
.clock small { display: block; font-size: 9px; letter-spacing: 3px; color: var(--muted); }

.pill {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  padding: 7px 14px; border-radius: 30px; border: 1px solid var(--border-strong);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot.live { background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; }
.dot.tx { background: var(--red); box-shadow: 0 0 12px var(--red); animation: pulse 0.7s infinite; }
.dot.mon { background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: pulse 2.4s infinite; }
.pill.tx { color: var(--red); border-color: rgba(255, 77, 77, 0.5); }
.pill.live { color: var(--green); }
.pill.mon { color: var(--amber); border-color: rgba(246, 168, 33, 0.5); }
.pill.portable-pill { color: var(--amber); border-color: rgba(246, 168, 33, 0.5); }
.portable-dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ── Ticker ──────────────────────────────────────────────── */
.ticker {
  overflow: hidden; white-space: nowrap;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 11, 19, 0.92);
  backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 11px; letter-spacing: 3px; color: var(--cyan-dim);
  padding: 8px 0;
}
.ticker span { display: inline-block; padding-left: 100%; animation: scroll 34s linear infinite; }
@keyframes scroll { to { transform: translateX(-100%); } }

/* Mobile: wrap the top bar so the status pills fit the screen instead of
   spilling off the right edge (the call/brand takes the first row, the clock
   and status pills wrap onto the next). */
@media (max-width: 620px) {
  .topbar { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; }
  .topbar .spacer { display: none; }
  .brand { flex: 1 1 100%; }
  .clock { font-size: 15px; }
  .pill { padding: 6px 11px; font-size: 10px; letter-spacing: 1.5px; }
}

/* ── Section headers ─────────────────────────────────────── */
.section { margin-top: 46px; }
.sec-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 4px; color: var(--cyan); }
.sec-title { font-family: var(--stencil); font-size: clamp(30px, 5vw, 52px); line-height: 1; margin: 6px 0 4px; }
.sec-desc { color: var(--muted); font-size: 15px; max-width: 680px; }
.sec-rule { height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); margin: 14px 0 22px; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
  backdrop-filter: blur(6px);
}
.card .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 3px; color: var(--muted); }
.card .big { font-family: var(--stencil); font-size: 34px; line-height: 1.05; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.auto { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 720px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }

.cyan { color: var(--cyan); }
.amber { color: var(--amber); }
.green { color: var(--green); }
.red { color: var(--red); }
.mono { font-family: var(--mono); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { margin-top: 34px; }
.hero h1 {
  font-family: var(--stencil); font-size: clamp(64px, 13vw, 150px); line-height: 0.9;
  background: linear-gradient(180deg, #eaf6f4 20%, var(--cyan) 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}
.hero .kick { font-family: var(--mono); font-size: 12px; letter-spacing: 4px; color: var(--cyan); margin-bottom: 12px; }
.hero .tag { font-size: 20px; margin-top: 14px; }
.hero .tag b { color: var(--amber); }
.hero .desc { color: var(--muted); margin-top: 12px; max-width: 560px; line-height: 1.5; }
.facts { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.facts .f .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--muted); }
.facts .f .v { font-family: var(--stencil); font-size: 20px; }

/* ── Live radio big readout ──────────────────────────────── */
.radio-main { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
@media (max-width: 820px) { .radio-main { grid-template-columns: 1fr; } }
.freq-readout { text-align: center; padding: 26px 20px; }
.freq-readout .hz {
  font-family: var(--stencil); font-size: clamp(46px, 9vw, 84px); line-height: 1;
  color: #eafffb; text-shadow: 0 0 30px rgba(63, 224, 207, 0.25); letter-spacing: 2px;
}
.freq-readout .unit { font-family: var(--mono); color: var(--cyan-dim); letter-spacing: 4px; font-size: 14px; }
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.chip {
  font-family: var(--mono); font-size: 13px; letter-spacing: 2px;
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: rgba(63, 224, 207, 0.05);
}
.chip.tx { color: var(--red); border-color: rgba(255, 77, 77, 0.5); }
.chip.rx { color: var(--green); border-color: rgba(36, 217, 122, 0.4); }
.chip.digi { color: var(--amber); border-color: rgba(246, 168, 33, 0.45); background: rgba(246, 168, 33, 0.06); }

/* S-meter — analog swinging-needle gauge */
.smeter .s-val { font-family: var(--stencil); font-size: 40px; text-align: center; }
.s-gauge { width: 100%; }
.s-gauge svg { width: 100%; height: auto; display: block; }
.s-face { fill: rgba(4,6,11,0.55); stroke: var(--border-strong); stroke-width: 1; }
.s-tick { stroke: var(--muted); stroke-width: 1.3; }
.s-tick.maj { stroke: var(--cyan-dim); stroke-width: 2.3; }
.s-tick.red { stroke: var(--red); }
.s-lab { fill: var(--cyan-dim); font-family: var(--mono); font-size: 11px; text-anchor: middle; }
.s-lab.red { fill: var(--red); }
.s-needle { stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(246,168,33,0.55)); }
.s-hub { fill: var(--amber-soft); stroke: var(--panel-solid); stroke-width: 2; }

/* ── Decode feed ─────────────────────────────────────────── */
.feed { max-height: 340px; overflow-y: auto; }
.feed-row {
  display: grid; grid-template-columns: 62px 44px 52px 1fr; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 13px; padding: 7px 4px;
  border-bottom: 1px solid rgba(90, 180, 190, 0.07);
}
.feed-row .t { color: var(--muted); font-size: 11px; }
.feed-row .snr { text-align: right; }
.feed-row .msg { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row.cq .msg { color: var(--amber); }
.feed-row.new { animation: flashIn 1.4s ease; }
@keyframes flashIn { from { background: rgba(63, 224, 207, 0.16); } to { background: transparent; } }
.empty { color: var(--muted); font-family: var(--mono); font-size: 13px; padding: 20px; text-align: center; }

/* ── Band chips (propagation) ────────────────────────────── */
.band-chip { text-align: center; padding: 10px 4px; border-radius: 10px; border: 1px solid var(--border); }
.band-chip .bn { font-family: var(--stencil); font-size: 16px; }
.band-chip .bc { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; }
.band-good { border-color: rgba(36, 217, 122, 0.4); } .band-good .bc { color: var(--green); }
.band-fair { border-color: rgba(246, 168, 33, 0.4); } .band-fair .bc { color: var(--amber); }
.band-poor { border-color: rgba(255, 77, 77, 0.35); } .band-poor .bc { color: var(--red); }

/* ── Log table ───────────────────────────────────────────── */
/* On a narrow phone the 7-column log scrolls inside its card instead of
   pushing the whole page wider than the viewport. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.log-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
.log-table th, .log-table td { white-space: nowrap; }
.log-table th { text-align: left; font-size: 10px; letter-spacing: 2px; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--border); font-weight: normal; }
.log-table td { padding: 9px 6px; border-bottom: 1px solid rgba(90, 180, 190, 0.06); }
.log-table tr.fresh td { animation: flashIn 2s ease; }
.log-table .call { color: var(--cyan); }

/* ── POTA / DX rows ──────────────────────────────────────── */
.spot-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 6px; border-bottom: 1px solid rgba(90,180,190,0.07); font-family: var(--mono); font-size: 13px; }
.spot-row .a { color: var(--cyan); }
.spot-row .meta { color: var(--muted); font-size: 11px; }
.spot-row .f { color: var(--amber); text-align: right; }

/* ── PSKReporter ─────────────────────────────────────────── */
.psk-open {
  display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: 2px;
  color: var(--cyan); text-decoration: none; padding: 13px 22px;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--panel);
  transition: border-color .2s, color .2s;
}
.psk-open:hover { border-color: var(--cyan); color: #eafffb; box-shadow: 0 0 18px rgba(63, 224, 207, 0.18); }

/* ── Mode awareness (voice / CW vs digital) ─────────────────── */
.digi-badge {
  display: none; margin-left: 12px; vertical-align: middle;
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  color: var(--amber); border: 1px solid rgba(246, 168, 33, 0.4);
  border-radius: 5px; padding: 2px 8px;
}
body.voice-mode .digi-badge { display: inline-block; }
body.voice-mode #sec-decodes,
body.voice-mode #sec-psk { opacity: .45; filter: saturate(.55); transition: opacity .3s, filter .3s; }

/* ── Live station audio ─────────────────────────────────────── */
.stream-wrap { margin-top: 18px; text-align: center; }
.stream-btn {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: 14px; letter-spacing: 2px;
  color: var(--cyan); background: rgba(63, 224, 207, 0.08);
  border: 1px solid var(--cyan-dim); border-radius: 10px;
  padding: 11px 22px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.stream-btn:hover { background: rgba(63, 224, 207, 0.16); border-color: var(--cyan); box-shadow: 0 0 18px rgba(63, 224, 207, 0.18); }
.stream-btn.playing { color: var(--green); border-color: rgba(36, 217, 122, 0.55); background: rgba(36, 217, 122, 0.10); box-shadow: 0 0 18px rgba(36, 217, 122, 0.16); }
.stream-btn.loading { opacity: .75; cursor: progress; }
.stream-btn.offline { color: var(--muted); border-color: var(--border); background: transparent; cursor: not-allowed; box-shadow: none; }
.stream-ico { font-size: 13px; line-height: 1; }
.stream-btn.playing .stream-ico { display: none; }
.stream-eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.stream-btn.playing .stream-eq { display: inline-flex; }
.stream-eq i { width: 3px; height: 14px; background: var(--green); border-radius: 1px; transform-origin: bottom; animation: eqbar .9s ease-in-out infinite; }
.stream-eq i:nth-child(1) { animation-delay: 0s; }
.stream-eq i:nth-child(2) { animation-delay: .18s; }
.stream-eq i:nth-child(3) { animation-delay: .36s; }
.stream-eq i:nth-child(4) { animation-delay: .54s; }
@keyframes eqbar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .stream-eq i { animation: none; transform: scaleY(.7); } }

.foot { margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--muted); text-align: center; }

/* ── World Reach map ──────────────────────────────────────── */
.worldmap-card { padding: 10px; }
#worldmap {
  width: 100%; height: auto; display: block; border-radius: 12px;
  background: #050e15; overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6);
}
.wm-grat path { fill: none; stroke: rgba(90, 200, 210, 0.07); stroke-width: 0.5; }
.wm-land {
  fill: #123641; stroke: rgba(90, 200, 210, 0.35); stroke-width: 0.4;
  stroke-linejoin: round;
}
.wm-term { fill: rgba(1, 6, 14, 0.5); stroke: rgba(80, 190, 200, 0.10); stroke-width: 0.5; }
.wm-reach circle { fill: var(--cyan); opacity: 0.22; }
.wm-trail { fill: none; stroke-width: 0.7; opacity: 0.20; stroke-linecap: round; }
.wm-pulse {
  fill: none; stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 44 956; stroke-dashoffset: 1000;
  filter: url(#wm-glow);
  animation: wm-travel 3.2s linear infinite;
}
@keyframes wm-travel { to { stroke-dashoffset: 0; } }
.wm-end { filter: url(#wm-glow); animation: wm-endpulse 3.2s ease-out infinite; }
@keyframes wm-endpulse { 0%, 55% { opacity: 0; } 70% { opacity: 1; } 100% { opacity: 0.55; } }
.wm-home-dot { fill: url(#wm-home); filter: url(#wm-glow); }
.wm-home-ring {
  fill: none; stroke: var(--amber); stroke-width: 1.2;
  transform-box: fill-box; transform-origin: center;
  animation: wm-ring 2.6s ease-out infinite;
}
@keyframes wm-ring {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(3.6); opacity: 0; }
}
.wm-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px;
  color: var(--muted); padding: 12px 8px 4px;
}
.wm-legend .wm-key {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  vertical-align: -1px; margin-right: 6px;
}
.wm-key.reach { background: var(--cyan); opacity: 0.4; }
.wm-key.arc { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.wm-key.home { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.wm-key.night { background: rgba(1, 6, 14, 0.9); border: 1px solid rgba(80, 190, 200, 0.25); border-radius: 2px; }
.wm-count { margin-left: auto; color: var(--cyan-dim); }
@media (prefers-reduced-motion: reduce) {
  .wm-pulse { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; opacity: 0.5; }
  .wm-end { animation: none; opacity: 0.6; }
  .wm-home-ring { animation: none; opacity: 0.4; }
}

/* ── Awards · Worked All States map ───────────────────────── */
.awards-card { padding: 14px; }
#usmap {
  width: 100%; height: auto; display: block; max-height: 62vh;
  background: #050e15; border-radius: 12px; padding: 8px;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.55);
}
.us-st {
  fill: #10262e; stroke: #06121a; stroke-width: 1;
  transition: fill .5s ease, filter .5s ease;
}
.us-st.worked {
  fill: var(--cyan);
  filter: drop-shadow(0 0 3px rgba(63, 224, 207, 0.6));
}
.us-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 12px; font-family: var(--mono); font-size: 11px;
}
.us-missing-lbl { color: var(--muted); letter-spacing: 1px; }
.us-missing { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.us-chip {
  display: inline-block; padding: 2px 7px; border-radius: 6px;
  background: rgba(246, 168, 33, 0.10); border: 1px solid rgba(246, 168, 33, 0.35);
  color: var(--amber-soft); font-size: 11px; letter-spacing: 1px;
}

/* ── Activity · calendar + charts ─────────────────────────── */
.act-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.cal-wrap { overflow-x: auto; padding-bottom: 4px; }
#cal { width: 100%; min-width: 720px; height: auto; display: block; }
.cal-cell { stroke: rgba(0,0,0,0.25); stroke-width: 0.5; transition: fill .3s; }
.cal-cell.l0 { fill: #10262e; }
.cal-cell.l1 { fill: rgba(63,224,207,0.22); }
.cal-cell.l2 { fill: rgba(63,224,207,0.42); }
.cal-cell.l3 { fill: rgba(63,224,207,0.66); }
.cal-cell.l4 { fill: #3fe0cf; }
.cal-mon, .cal-dow { fill: var(--muted); font-family: var(--mono); font-size: 9px; }
.cal-dow { text-anchor: start; }
.cal-legend {
  display: flex; align-items: center; gap: 5px; margin-top: 10px;
  font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 1px;
}
.cal-key { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.cal-key.l0 { background: #10262e; }
.cal-key.l1 { background: rgba(63,224,207,0.22); }
.cal-key.l2 { background: rgba(63,224,207,0.42); }
.cal-key.l3 { background: rgba(63,224,207,0.66); }
.cal-key.l4 { background: #3fe0cf; }
.cal-peak { margin-left: auto; color: var(--cyan-dim); }
.chart-wrap { margin-top: 8px; }
#hrs, #yrs { width: 100%; height: auto; display: block; }
.act-bar { fill: rgba(63,224,207,0.5); transition: fill .3s; }
.act-bar.peak { fill: var(--cyan); filter: drop-shadow(0 0 3px rgba(63,224,207,0.6)); }
.act-ax { fill: var(--muted); font-family: var(--mono); font-size: 9px; text-anchor: middle; }
.act-val { fill: var(--cyan-dim); font-family: var(--mono); font-size: 9px; text-anchor: middle; }
.bar-list { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; }
.bar-lab { width: 52px; color: var(--text); letter-spacing: 1px; flex: none; }
.bar-track { flex: 1; height: 10px; background: rgba(90,200,210,0.08); border-radius: 5px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, rgba(63,224,207,0.55), var(--cyan)); border-radius: 5px; }
.bar-val { width: 56px; text-align: right; color: var(--cyan-dim); flex: none; }

/* ── Station Records ribbon (top of page) ─────────────────── */
.records-bar {
  display: flex; align-items: stretch; margin: 26px 0 4px;
  background: linear-gradient(180deg, rgba(13,19,29,0.9), rgba(9,13,20,0.9));
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 10px 30px rgba(0,0,0,0.35);
  overflow-x: auto; position: relative;
}
.records-bar::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--amber), transparent);
  opacity: 0.65; border-radius: 14px 14px 0 0;
}
.rec {
  flex: 1 0 auto; min-width: 118px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 16px 16px; text-align: center;
  border-left: 1px solid var(--border);
}
.rec:first-child { border-left: 0; }
.rec-ico { font-size: 17px; line-height: 1; filter: grayscale(0.1); }
.rec-v { font-family: var(--stencil); font-size: 26px; line-height: 1; color: var(--text); white-space: nowrap; }
.rec-l { font-family: var(--mono); font-size: 9px; letter-spacing: 1.4px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .rec { min-width: 108px; padding: 14px 13px; } .rec-v { font-size: 22px; } }

/* ── Live "new contact" flash ─────────────────────────────── */
.qso-flash {
  position: fixed; top: 74px; left: 50%; z-index: 60;
  width: min(92vw, 380px);
  transform: translate(-50%, -24px) scale(0.96);
  opacity: 0; pointer-events: none;
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.9,.3,1.3);
}
.qso-flash.show { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.qf-card {
  position: relative; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(15,32,38,0.98), rgba(9,15,22,0.98));
  border: 1px solid var(--cyan-dim); border-radius: 16px;
  padding: 16px 22px 15px;
  box-shadow: 0 0 34px rgba(63,224,207,0.28), 0 16px 46px rgba(0,0,0,0.55);
  animation: qf-glow 2.4s ease-in-out infinite;
}
.qf-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--amber), transparent);
}
@keyframes qf-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(63,224,207,0.22), 0 16px 46px rgba(0,0,0,0.55); }
  50% { box-shadow: 0 0 44px rgba(63,224,207,0.42), 0 16px 46px rgba(0,0,0,0.55); }
}
.qf-head {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2.5px;
  color: var(--cyan); margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 7px;
}
.qf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: qf-blink 1s steps(2) infinite; }
@keyframes qf-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.qf-call { font-family: var(--stencil); font-size: 34px; line-height: 1; color: var(--text); }
.qf-meta { font-family: var(--body); font-weight: 600; font-size: 14px; color: var(--cyan-dim); margin-top: 6px; letter-spacing: 0.5px; }
.qf-time { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 6px; letter-spacing: 1px; }
.qf-x {
  position: absolute; top: 6px; right: 9px; background: none; border: 0;
  color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 4px;
}
.qf-x:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .qso-flash { transition: opacity .3s; transform: translate(-50%, 0); }
  .qf-card { animation: none; }
  .qf-dot { animation: none; }
}

/* ── SDR band scope (in the Live Radio section) ───────────── */
.scope-card { margin-top: 16px; }
.scope-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.scope-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: var(--cyan);
  border: 1px solid var(--cyan-dim); border-radius: 6px; padding: 2px 9px;
}
.scope-plot {
  position: relative; width: 100%; border-radius: 10px; overflow: hidden;
  background: #030a12; border: 1px solid var(--border);
}
/* image-rendering:auto so the browser bilinearly smooths the (decimated on
   the cloud) waterfall instead of showing hard blocky pixels */
#scope-spec, #scope-fall { width: 100%; display: block; image-rendering: auto; }
#scope-spec { height: 90px; border-bottom: 1px solid rgba(90,200,210,0.12); }
#scope-fall { height: 150px; }
.scope-axis {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 1px;
}
.scope-axis .amber { color: var(--amber); }

/* ── Contest / live-run panel ───────────────────────────────── */
.live-badge {
  margin-left: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  color: var(--red); border: 1px solid rgba(255, 77, 77, 0.5); border-radius: 4px;
  padding: 1px 6px; animation: ct-pulse 1.6s ease-in-out infinite;
}
@keyframes ct-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.ct-grid {
  display: grid; grid-template-columns: minmax(200px, 0.9fr) 1.4fr 1.2fr;
  gap: 14px; align-items: stretch;
}
.ct-hero {
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(63, 224, 207, 0.10), transparent 60%),
    var(--panel);
  border-color: var(--border-strong);
}
.ct-rate { font-family: var(--stencil); font-size: 58px; line-height: 1; color: var(--cyan); margin-top: 4px; }
.ct-rate small { font-family: var(--mono); font-size: 13px; letter-spacing: 2px; color: var(--muted); margin-left: 8px; }
.ct-sub { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--muted); margin-top: 8px; }
.ct-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-tile { display: flex; flex-direction: column; justify-content: center; }
.ct-v { font-family: var(--stencil); font-size: 34px; line-height: 1.05; margin-top: 3px; }
.ct-bands { display: flex; flex-direction: column; }
.ct-bars { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.ct-bar { display: grid; grid-template-columns: 44px 1fr 34px; align-items: center; gap: 8px; }
.ct-bl { font-family: var(--mono); font-size: 11px; color: var(--text); letter-spacing: 1px; }
.ct-bt { height: 12px; background: rgba(90, 180, 190, 0.10); border-radius: 6px; overflow: hidden; }
.ct-bf { display: block; height: 100%; border-radius: 6px; transition: width 0.6s ease; }
.ct-bn { font-family: var(--mono); font-size: 12px; color: var(--cyan); text-align: right; }
@media (max-width: 860px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-rate { font-size: 48px; }
}
