/* =========================================================
   BA4IFR Guestbook · 2026
   Dark navy + signal gold, no external fonts or assets.
   ========================================================= */

:root {
  --bg: #070d18;
  --bg-2: #0a1220;
  --panel: #0e1a2b;
  --panel-2: #111f34;
  --line: #1f314b;
  --line-soft: rgba(127, 156, 196, 0.14);
  --text: #e9effb;
  --muted: #8fa2bb;
  --muted-2: #6d8098;
  --gold: #f0b429;
  --gold-2: #ffd777;
  --gold-3: #c88a0a;
  --gold-dim: rgba(240, 180, 41, 0.11);
  --gold-line: rgba(240, 180, 41, 0.28);
  --green: #5ee1a0;
  --green-dim: rgba(94, 225, 160, 0.1);
  --red: #ff8484;
  --red-dim: rgba(255, 132, 132, 0.1);
  --radius: 18px;
  --sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 720px at 82% -12%, rgba(240, 180, 41, 0.09), transparent 62%),
    radial-gradient(900px 650px at -8% 18%, rgba(64, 117, 190, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 162, 187, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 162, 187, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 8%, transparent 78%);
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 8%, transparent 78%);
}

::selection {
  background: rgba(240, 180, 41, 0.28);
  color: #fff;
}

a {
  color: var(--gold-2);
  text-decoration: none;
}

a:hover {
  color: #ffe9ab;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(94, 225, 160, 0.1), 0 0 10px rgba(94, 225, 160, 0.6);
  flex: none;
}

.led.gold {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.1), 0 0 10px rgba(240, 180, 41, 0.55);
}

.led.off {
  background: var(--muted-2);
  box-shadow: none;
}

/* ---------------- top bar ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(31, 49, 75, 0.55);
  background: rgba(7, 13, 24, 0.74);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold-line);
  border-radius: 11px;
  background: var(--gold-dim);
  color: var(--gold);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--gold-2);
}

.brand-text span {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--muted-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}

.nav a {
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.18s ease;
}

.nav a:hover {
  color: var(--gold-2);
}

.lang-toggle {
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: all 0.18s ease;
}

.lang-toggle:hover {
  border-color: var(--gold-line);
  color: var(--gold-2);
  background: var(--gold-dim);
}

/* ---------------- shell / hero ---------------- */

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: 54px;
  padding: 70px 0 54px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted-2);
}

.eyebrow-sep {
  color: var(--line);
}

h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.hero-call {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fff0bd 4%, var(--gold-2) 34%, var(--gold) 65%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(240, 180, 41, 0.18));
}

.hero-sub {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  opacity: 0.8;
}

.meta-link {
  color: var(--muted);
  transition: color 0.18s ease;
}

.meta-link:hover {
  color: var(--gold-2);
}

.meta-link svg {
  width: 12px;
  height: 12px;
  opacity: 0.65;
}

/* station card */

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 24px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(155deg, rgba(240, 180, 41, 0.1), transparent 38%),
    linear-gradient(180deg, #101d30, #0b1524);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.75;
}

.hero-card::after {
  content: "QSL";
  position: absolute;
  right: -10px;
  top: 50px;
  font-family: var(--mono);
  font-size: 92px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.022);
  pointer-events: none;
}

.hero-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}

.card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-code {
  color: var(--gold);
  opacity: 0.8;
}

.hero-card-call {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: clamp(34px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--gold-2);
  text-shadow: 0 0 32px rgba(240, 180, 41, 0.18);
}

.hero-card-role {
  position: relative;
  z-index: 1;
  margin-top: 11px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.hero-card-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  margin: 22px 0 18px;
}

.hero-card-wave i {
  flex: 1;
  height: 30%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(240, 180, 41, 0.15));
  transform-origin: center;
  animation: wave 3.4s ease-in-out infinite;
}

.hero-card-wave i:nth-child(1) { height: 18%; animation-delay: -0.2s; }
.hero-card-wave i:nth-child(2) { height: 42%; animation-delay: -0.9s; }
.hero-card-wave i:nth-child(3) { height: 66%; animation-delay: -1.5s; }
.hero-card-wave i:nth-child(4) { height: 34%; animation-delay: -0.5s; }
.hero-card-wave i:nth-child(5) { height: 84%; animation-delay: -1.1s; }
.hero-card-wave i:nth-child(6) { height: 52%; animation-delay: -2.1s; }
.hero-card-wave i:nth-child(7) { height: 100%; animation-delay: -0.7s; }
.hero-card-wave i:nth-child(8) { height: 46%; animation-delay: -1.7s; }
.hero-card-wave i:nth-child(9) { height: 72%; animation-delay: -0.3s; }
.hero-card-wave i:nth-child(10) { height: 32%; animation-delay: -1.3s; }
.hero-card-wave i:nth-child(11) { height: 54%; animation-delay: -2.4s; }
.hero-card-wave i:nth-child(12) { height: 20%; animation-delay: -0.6s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.72); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

.hero-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.hero-card-stats strong {
  display: block;
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

.hero-card-stats strong.is-word {
  padding-top: 3px;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--gold-2);
}

.hero-card-stats span {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.hero-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
}

/* ---------------- layout ---------------- */

.layout {
  display: grid;
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #101d30, #0c1626);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.panel-head-small {
  margin-bottom: 14px;
}

.step {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  background: var(--gold-dim);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.panel-head h2,
.feed-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.55;
}

.lookup-form label,
.field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.input-row {
  display: flex;
  gap: 8px;
}

.input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--gold);
  opacity: 0.65;
  pointer-events: none;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #08111f;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input {
  height: 46px;
  padding: 0 13px;
}

#callInput {
  padding-left: 42px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

textarea {
  min-height: 116px;
  padding: 12px 13px;
  line-height: 1.7;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #566a83;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

input:hover,
textarea:hover {
  border-color: #2b4262;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold-line);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.09);
  background: #091423;
}

.hint {
  min-height: 18px;
  margin: 7px 0 0;
  font-size: 11px;
  color: var(--muted-2);
}

.hint.error {
  color: var(--red);
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-line {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.btn-line:hover:not(:disabled) {
  border-color: var(--gold-line);
  background: var(--gold-dim);
  color: var(--gold-2);
}

.btn-gold {
  border: 1px solid rgba(255, 219, 130, 0.5);
  background: linear-gradient(180deg, #ffd875, var(--gold) 70%, #e0a018);
  color: #241800;
  box-shadow: 0 8px 24px rgba(240, 180, 41, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-gold:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(240, 180, 41, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-gold:active:not(:disabled) {
  transform: translateY(0);
}

.btn-small {
  height: 36px;
  padding: 0 14px;
  font-size: 11.5px;
  border-radius: 9px;
}

/* qso result */

.qso-result {
  margin-top: 4px;
}

.qso-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.qso-card.idle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-style: dashed;
  background: transparent;
  color: var(--muted-2);
}

.qso-card.idle svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--gold);
  opacity: 0.55;
  margin-top: 1px;
}

.qso-card.idle strong {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.qso-card.idle p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.55;
}

.qso-card.loading {
  display: grid;
  gap: 9px;
}

.sk-line {
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, #15253c 20%, #1e3452 40%, #15253c 60%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

.sk-line.short {
  width: 42%;
}

.sk-line.mid {
  width: 68%;
}

@keyframes shimmer {
  to { background-position: -220% 0; }
}

.qso-status {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.qso-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--green-dim);
  background: var(--green-dim);
  color: var(--green);
}

.qso-icon svg {
  width: 17px;
  height: 17px;
}

.qso-icon.miss {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.qso-icon.warn {
  border-color: var(--gold-line);
  background: var(--gold-dim);
  color: var(--gold);
}

.qso-title {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.qso-sub {
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.5;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  vertical-align: 1px;
}

.source-chip.demo {
  border-color: var(--gold-line);
  color: var(--gold);
  background: var(--gold-dim);
}

.qso-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.chip.band {
  border-color: rgba(240, 180, 41, 0.22);
  color: var(--gold-2);
  background: rgba(240, 180, 41, 0.06);
}

.chip.confirm {
  border-color: var(--line);
  color: var(--muted-2);
}

.chip.confirm.is-confirmed {
  border-color: rgba(94, 225, 160, 0.28);
  background: var(--green-dim);
  color: var(--green);
}

.qso-latest {
  margin-top: 13px;
  padding: 10px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.16);
}

.qso-latest-label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.qso-latest-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.qso-latest-line b {
  color: var(--text);
  font-weight: 600;
}

.qso-latest-line .sep {
  color: var(--line);
}

.qso-toggle {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.qso-toggle:hover {
  color: var(--gold-2);
}

.qso-list {
  max-height: 220px;
  margin-top: 9px;
  overflow-y: auto;
  border-top: 1px solid var(--line-soft);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.qso-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 1px;
  border-bottom: 1px solid rgba(31, 49, 75, 0.45);
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
}

.qso-row:last-child {
  border-bottom: 0;
}

.qso-row span:first-child {
  color: var(--text);
}

.qso-row .muted {
  color: var(--muted-2);
}

.qso-note {
  margin: 9px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted-2);
}

.qso-card.miss {
  background: rgba(255, 255, 255, 0.018);
}

.qso-card.matched {
  border-color: rgba(94, 225, 160, 0.22);
  background: linear-gradient(180deg, rgba(94, 225, 160, 0.045), rgba(255, 255, 255, 0.015));
}

.qso-card.offline {
  background: rgba(240, 180, 41, 0.035);
  border-color: rgba(240, 180, 41, 0.16);
}

.qso-card .qso-title {
  color: var(--text);
}

/* divider */

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 20px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* message form */

.posting-as {
  margin: 0 0 14px;
  font-size: 11px;
  color: var(--muted-2);
}

.posting-as strong {
  margin: 0 2px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--gold-2);
  letter-spacing: 0.06em;
}

.field {
  margin-bottom: 14px;
}

.optional {
  margin-left: 4px;
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.label-row label {
  margin-bottom: 8px;
}

.counter {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.counter.near-limit {
  color: var(--gold);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.privacy {
  max-width: 235px;
  margin: 0;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.55;
}

.form-actions .btn {
  flex: none;
}

/* ---------------- feed ---------------- */

.feed {
  min-width: 0;
}

.feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 2px 18px;
}

.feed-head h2 {
  font-size: 22px;
}

.feed-meta {
  margin: 3px 0 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.public-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  white-space: nowrap;
}

.public-tag .led {
  width: 4px;
  height: 4px;
}

.message-list {
  display: grid;
  gap: 12px;
}

.msg {
  position: relative;
  padding: 17px 18px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(17, 31, 52, 0.86), rgba(12, 22, 38, 0.9));
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.msg::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(240, 180, 41, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.msg:hover {
  border-color: #2a405f;
  background: linear-gradient(180deg, rgba(19, 35, 58, 0.92), rgba(13, 24, 41, 0.94));
}

.msg:hover::before {
  opacity: 1;
}

.msg-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 20%, rgba(240, 180, 41, 0.22), transparent 70%),
    #0b1524;
  color: var(--gold-2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.msg-id {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.msg-call {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--gold-2);
  line-height: 1.3;
}

.msg-name {
  overflow: hidden;
  max-width: 210px;
  color: var(--muted-2);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-time {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--muted-2);
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  white-space: nowrap;
}

.badge.qso {
  border-color: rgba(240, 180, 41, 0.22);
  background: rgba(240, 180, 41, 0.07);
  color: var(--gold-2);
}

.badge.new {
  border-color: rgba(94, 225, 160, 0.2);
  background: var(--green-dim);
  color: var(--green);
}

.badge.qso svg {
  width: 9px;
  height: 9px;
}

.badge.qso.confirmed {
  border-color: rgba(94, 225, 160, 0.26);
  background: var(--green-dim);
  color: var(--green);
}

.msg-body {
  margin: 11px 0 0 43px;
  color: #dae3f2;
  font-size: 13.5px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.msg-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 11px 0 0 43px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted-2);
}

.msg-foot .qso-ref {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.msg-foot svg {
  width: 10px;
  height: 10px;
  opacity: 0.65;
}

.msg-foot .dot {
  color: var(--line);
}

/* skeletons / empty / error */

.msg-skeleton {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(17, 31, 52, 0.55);
}

.msg-skeleton span {
  display: block;
  height: 10px;
  margin-bottom: 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, #132238 20%, #1c304c 40%, #132238 60%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

.msg-skeleton span:first-child {
  width: 28%;
}

.msg-skeleton span:nth-child(2) {
  width: 82%;
}

.msg-skeleton span:last-child {
  width: 54%;
  margin-bottom: 0;
}

.empty {
  padding: 58px 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-2);
}

.empty-icon svg {
  width: 28px;
  height: 28px;
}

.empty h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.empty p {
  margin: 5px 0 0;
  color: var(--muted-2);
  font-size: 12px;
}

.feed-error {
  padding: 24px;
  border: 1px solid rgba(255, 132, 132, 0.22);
  border-radius: 14px;
  background: var(--red-dim);
  text-align: center;
}

.feed-error p {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
}

.feed-foot {
  display: flex;
  justify-content: center;
  padding: 18px 0 0;
}

/* ---------------- footer ---------------- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 32px 38px;
  border-top: 1px solid rgba(31, 49, 75, 0.55);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.footer-left,
.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.footer-call strong {
  color: var(--gold);
  font-weight: 600;
}

.footer-dot {
  color: var(--line);
}

.footer-right a {
  color: var(--muted-2);
}

.footer-right a:hover {
  color: var(--gold-2);
}

/* ---------------- toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 100;
  padding: 11px 18px;
  border: 1px solid rgba(255, 224, 150, 0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd97d, var(--gold));
  color: #241800;
  font-size: 12.5px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  border-color: rgba(255, 190, 190, 0.5);
  background: linear-gradient(180deg, #ff9c9c, #f06b6b);
  color: #2a0c0c;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 200;
  padding: 14px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: #1a1a12;
  color: var(--gold-2);
  text-align: center;
  font-size: 13px;
}

/* ---------------- responsive ---------------- */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 48px 0 40px;
  }

  .hero-card {
    max-width: 440px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .compose {
    order: 1;
  }

  .feed {
    order: 2;
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 15px 18px;
    gap: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 12px;
  }

  .shell {
    padding: 0 18px 52px;
  }

  .hero {
    padding: 34px 0 32px;
    gap: 28px;
  }

  h1 {
    font-size: clamp(33px, 10vw, 44px);
  }

  .hero-sub {
    font-size: 14px;
    line-height: 1.75;
  }

  .hero-card {
    max-width: none;
    padding: 20px;
  }

  .panel {
    padding: 20px;
    border-radius: 17px;
  }

  .feed-head {
    align-items: center;
    margin-top: 6px;
  }

  .feed-head h2 {
    font-size: 19px;
  }

  .public-tag {
    padding: 4px 6px;
    letter-spacing: 0.08em;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .privacy {
    max-width: none;
    order: 2;
  }

  .form-actions .btn {
    width: 100%;
    order: 1;
  }

  .msg {
    padding: 15px;
  }

  .msg-body,
  .msg-foot {
    margin-left: 0;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px 30px;
  }
}

@media (max-width: 360px) {
  .nav a[data-i18n="navQsl"] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
