:root {
  --black: #000000;
  --green: #33ffcc;
  --cyan: #66ffff;
  --link: #cc99ff;
  --visited: #66cccc;
  --active: #ff0066;
  --pink: #ff0099;
  --red: #ff0000;
  --gold: #ffcc66;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black) url("tile.jpg") repeat;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--green);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 3px
    ),
    transparent;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: var(--link);
}

a:visited {
  color: var(--visited);
}

a:active {
  color: var(--active);
}

a:focus-visible {
  outline: 2px dashed var(--gold);
  outline-offset: 4px;
}

#stars-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  animation: twinkling 1s ease-in-out infinite;
}

@keyframes twinkling {
  0% {
    opacity: 0.15;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.15;
  }
}

.site-shell {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 48px) 40px;
}

.hero {
  text-align: center;
}

.alert {
  display: block;
  width: min(319px, 100%);
  height: auto;
  margin: 0 auto 8px;
}

.tagline {
  margin: 0;
  color: var(--cyan);
  font-size: 32px;
}

.tagline span {
  color: var(--red);
}

.banner {
  display: block;
  width: min(747px, 100%);
  height: auto;
  margin: 16px auto 0;
}

.intro {
  max-width: 980px;
  margin: 32px auto;
  font-size: 20px;
}

.intro p {
  margin: 0 0 20px;
}

.divider {
  width: 80%;
  height: 1px;
  margin: 22px auto;
  border: 0;
  background: var(--green);
}

.divider.wide {
  width: 85%;
}

.resources-title {
  margin: 0;
  color: var(--pink);
  text-align: center;
  font-size: 32px;
  line-height: 1.25;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-card {
  display: flex;
  align-items: center;
  min-height: 82px;
  padding: 12px 16px;
  gap: 18px;
  border: 1px solid rgba(51, 255, 204, 0.72);
  background: rgba(0, 0, 0, 0.76);
}

.resource-card img {
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
}

.resource-card a {
  font-size: 24px;
  font-weight: 700;
}

.note {
  display: inline-block;
  margin-left: 4px;
  color: #ccffff;
  font-size: 18px;
  font-style: italic;
}

.site-footer {
  margin-top: 28px;
  text-align: right;
}

.site-footer img {
  width: min(246px, 60vw);
  height: auto;
}

.social-transmissions,
.counter-transmissions,
.radio-transmissions {
  position: relative;
  margin: 42px auto;
  padding: 24px;
  border: 1px solid rgba(102, 255, 255, 0.55);
  background:
    radial-gradient(circle at 12% 12%, rgba(204, 153, 255, 0.18), transparent 28%),
    radial-gradient(circle at 84% 0%, rgba(255, 204, 102, 0.14), transparent 24%),
    rgba(0, 0, 0, 0.76);
  box-shadow: 0 0 24px rgba(102, 255, 255, 0.12);
}

.social-transmissions::before,
.counter-transmissions::before,
.radio-transmissions::before {
  position: absolute;
  inset: 8px;
  z-index: -1;
  border: 1px dashed rgba(51, 255, 204, 0.28);
  content: "";
}

.signal-dashboard {
  display: grid;
  grid-template-columns: minmax(360px, 1.12fr) minmax(290px, 0.88fr);
  gap: 24px;
  align-items: start;
  margin: 42px auto;
}

.signal-dashboard .radio-transmissions,
.signal-dashboard .social-transmissions {
  height: 100%;
  margin: 0;
}

.dashboard-panel {
  overflow: hidden;
}

.radio-side {
  grid-column: 1;
}

.friends-side {
  grid-column: 2;
}

.friends-side .section-console {
  margin-bottom: 16px;
}

.friends-side .cosmic-title {
  font-size: clamp(22px, 2.5vw, 30px);
}

.friends-side .friend-grid {
  grid-template-columns: 1fr;
  max-height: 980px;
  padding-right: 5px;
  overflow: auto;
}

.friends-side .friend-card,
.friends-side .friend-card.primary,
.friends-side .friend-card:nth-child(2),
.friends-side .friend-card:nth-child(3),
.friends-side .friend-card:nth-child(4),
.friends-side .friend-card:nth-child(5) {
  grid-column: auto;
  min-height: auto;
}

.friends-side .friend-card {
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 14px;
}

.friends-side .rank-label,
.friends-side .status-badge,
.friends-side .friend-meta,
.friends-side .stat-line {
  grid-column: 1 / -1;
}

.friends-side .friend-avatar {
  grid-row: 2 / span 2;
  width: 64px;
  height: 64px;
  margin: 0;
}

.friends-side .friend-name {
  text-align: left;
  font-size: 21px;
}

.friends-side .status-badge {
  justify-self: start;
}

.section-console {
  margin-bottom: 22px;
  text-align: center;
}

.console-label {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0;
}

.console-copy {
  max-width: 680px;
  margin: 10px auto 0;
  color: #ccffff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
}

.cosmic-title {
  margin: 0;
  color: var(--pink);
  text-align: center;
  font-size: 30px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 0, 153, 0.45);
}

.friend-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.friend-card {
  position: relative;
  display: grid;
  min-height: 250px;
  padding: 18px;
  border: 1px solid rgba(51, 255, 204, 0.62);
  background: rgba(0, 0, 0, 0.82);
  box-shadow: inset 0 0 20px rgba(102, 255, 255, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.friend-card:hover,
.friend-card:focus-within,
.counter-row:hover {
  border-color: rgba(255, 204, 102, 0.92);
  box-shadow: 0 0 18px rgba(255, 204, 102, 0.14), inset 0 0 20px rgba(102, 255, 255, 0.08);
  transform: translateY(-3px);
}

.friend-card.primary {
  grid-column: 2 / span 4;
  min-height: 280px;
  border-color: rgba(255, 204, 102, 0.9);
}

.friend-card.primary::after {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 204, 102, 0.72);
  color: var(--gold);
  background: rgba(0, 0, 0, 0.82);
  content: "BEST FRIEND";
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.friend-card:nth-child(2),
.friend-card:nth-child(3),
.friend-card:nth-child(4),
.friend-card:nth-child(5) {
  grid-column: span 3;
}

.rank-label,
.status-badge,
.detail-label {
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.friend-avatar,
.leader-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(102, 255, 255, 0.75);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgba(102, 255, 255, 0.36), transparent 16px),
    radial-gradient(circle at 50% 78%, rgba(204, 153, 255, 0.26), transparent 22px),
    #050614;
  color: #ccffff;
  font-family: Consolas, "Courier New", monospace;
  isolation: isolate;
}

.generated-avatar {
  position: relative;
  background:
    radial-gradient(circle at 50% 30%, hsla(var(--avatar-hue, 186), 100%, 76%, 0.88), transparent 18%),
    radial-gradient(circle at 34% 42%, rgba(255, 255, 255, 0.82) 0 3px, transparent 4px),
    radial-gradient(circle at 66% 42%, rgba(255, 255, 255, 0.82) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 84%, hsla(calc(var(--avatar-hue, 186) + 84), 100%, 66%, 0.46), transparent 32%),
    linear-gradient(145deg, #030510, hsl(var(--avatar-hue, 186), 78%, 18%));
  text-shadow: 0 0 6px rgba(102, 255, 255, 0.85);
  box-shadow:
    inset 0 0 16px rgba(255, 255, 255, 0.08),
    0 0 18px hsla(var(--avatar-hue, 186), 100%, 66%, 0.22);
}

.generated-avatar::before {
  position: absolute;
  inset: 10%;
  z-index: -1;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: inherit;
  content: "";
  animation: avatarOrbit 1800ms linear infinite;
}

.generated-avatar span {
  position: relative;
  z-index: 1;
}

@keyframes avatarOrbit {
  to {
    transform: rotate(1turn);
  }
}

.friend-avatar {
  width: 82px;
  height: 82px;
  margin: 14px auto 10px;
  font-size: 24px;
}

.friend-avatar img,
.leader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-name {
  margin: 0;
  color: #ffffff;
  font-size: 25px;
  text-align: center;
  overflow-wrap: anywhere;
}

.friend-meta {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.status-badge {
  justify-self: center;
  padding: 4px 8px;
  border: 1px solid rgba(51, 255, 204, 0.56);
  color: var(--green);
  background: rgba(51, 255, 204, 0.08);
}

.signal-track {
  width: 100%;
  height: 12px;
  border: 1px solid rgba(102, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.06);
}

.signal-fill {
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--green) 0 8px, transparent 8px 11px);
  transition: width 420ms ease;
}

.friend-card.is-visible .signal-fill {
  width: var(--signal-width, 0%);
}

.stat-line {
  margin: 0;
  color: #ccffff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.honorable-card {
  max-width: 480px;
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(204, 153, 255, 0.68);
  background: rgba(0, 0, 0, 0.78);
  text-align: center;
}

.honorable-card h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 15px;
}

.honorable-card p {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
}

.counter-panel {
  display: grid;
  gap: 20px;
}

.counter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(51, 255, 204, 0.52);
  background: rgba(0, 0, 0, 0.74);
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
}

.digit-counter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.digit {
  min-width: 24px;
  padding: 4px 5px;
  border: 1px solid rgba(102, 255, 255, 0.55);
  background: #050505;
  color: var(--green);
  text-align: center;
  box-shadow: inset 0 0 8px rgba(51, 255, 204, 0.14);
}

.leaderboard-wrap {
  overflow-x: auto;
}

.leaderboard {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.72);
  font-family: Consolas, "Courier New", monospace;
}

.leaderboard caption {
  margin-bottom: 10px;
  color: var(--pink);
  font-size: 18px;
  text-align: left;
}

.leaderboard th,
.leaderboard td {
  padding: 12px;
  border-bottom: 1px solid rgba(102, 255, 255, 0.24);
  text-align: left;
}

.leaderboard th {
  color: var(--gold);
}

.counter-row {
  border: 1px solid transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.leader-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leader-avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.leader-details {
  display: none;
  color: #ccffff;
  font-size: 12px;
}

.counter-row.is-open .leader-details {
  display: block;
  margin-top: 6px;
}

.row-toggle {
  color: inherit;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.empty-signal {
  margin: 12px 0 0;
  padding: 14px;
  border: 1px dashed rgba(255, 204, 102, 0.58);
  color: #ccffff;
  background: rgba(0, 0, 0, 0.66);
  font-family: Consolas, "Courier New", monospace;
}

.radio-player {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.radio-shell {
  position: relative;
  min-height: 520px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(102, 255, 255, 0.5);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 20%, rgba(172, 93, 255, 0.22), transparent 96px),
    radial-gradient(circle at 18% 76%, rgba(51, 255, 204, 0.18), transparent 120px),
    linear-gradient(145deg, rgba(7, 10, 15, 0.92), rgba(0, 0, 0, 0.9));
  box-shadow:
    inset 0 0 32px rgba(102, 255, 255, 0.08),
    0 0 30px rgba(102, 255, 255, 0.16);
}

.radio-shell::before,
.radio-shell::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.radio-shell::before {
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.08) 45%, transparent 52% 100%);
  mix-blend-mode: screen;
  transform: translateX(-45%);
  animation: consoleSweep 4200ms ease-in-out infinite;
}

.radio-shell::after {
  inset: 10px;
  border: 1px dashed rgba(204, 153, 255, 0.18);
  border-radius: 22px;
}

.radio-console-scan,
.radio-console-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.radio-console-scan {
  z-index: 2;
  background:
    repeating-linear-gradient(0deg, rgba(102, 255, 255, 0.12) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, transparent, rgba(204, 153, 255, 0.16), transparent);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: consoleScan 900ms linear infinite;
}

.radio-console-glow {
  z-index: 0;
  background:
    radial-gradient(circle at 82% 57%, rgba(255, 134, 0, 0.22), transparent 12%),
    radial-gradient(circle at 45% 42%, rgba(51, 255, 204, 0.24), transparent 22%),
    radial-gradient(circle at 68% 40%, rgba(170, 84, 255, 0.34), transparent 18%);
  filter: blur(16px);
  animation: consoleGlow 1100ms ease-in-out infinite alternate;
}

@keyframes consoleFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.006);
  }
}

@keyframes consoleScan {
  to {
    background-position: 0 10px, 140px 0;
  }
}

@keyframes consoleGlow {
  from {
    opacity: 0.45;
  }

  to {
    opacity: 0.82;
  }
}

@keyframes consoleSweep {
  50% {
    transform: translateX(45%);
  }
}

.radio-screen {
  position: relative;
  z-index: 1;
  padding: 14px;
  border: 1px solid rgba(51, 255, 204, 0.58);
  border-radius: 24px 10px 26px 10px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #07140c;
  background-size: 18px 18px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.72);
}

.radio-lcd {
  min-height: 136px;
  padding: 14px;
  border: 1px solid rgba(167, 255, 181, 0.58);
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(167, 255, 181, 0.18), transparent 44px),
    rgba(5, 31, 12, 0.9);
  color: #a7ffb5;
  font-family: Consolas, "Courier New", monospace;
  box-shadow: inset 0 0 18px rgba(167, 255, 181, 0.12);
}

.radio-kicker {
  color: var(--gold);
  font-size: 12px;
}

.radio-lcd h2 {
  margin: 8px 0 4px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.radio-lcd p {
  margin: 0;
  color: #ccffff;
}

.radio-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--gold);
  font-size: 12px;
}

.wire-visualizer {
  position: relative;
  min-height: 132px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(102, 255, 255, 0.28);
  background:
    radial-gradient(circle at center, rgba(51, 255, 204, 0.12), transparent 60%),
    rgba(0, 0, 0, 0.58);
}

.wire-visualizer::before,
.wire-visualizer::after {
  position: absolute;
  inset: 10px;
  pointer-events: none;
  content: "";
}

.wire-visualizer::before {
  background:
    linear-gradient(90deg, rgba(51, 255, 204, 0.22) 1px, transparent 1px),
    linear-gradient(0deg, rgba(51, 255, 204, 0.18) 1px, transparent 1px);
  background-size: 28px 18px;
  clip-path: polygon(8% 12%, 92% 12%, 100% 88%, 0 88%);
  transform: perspective(180px) rotateX(48deg);
  transform-origin: center bottom;
  animation: wireGridDrift 1200ms linear infinite;
}

.wire-visualizer::after {
  border: 1px solid rgba(255, 204, 102, 0.32);
  clip-path: polygon(50% 12%, 92% 48%, 50% 88%, 8% 48%);
  box-shadow:
    inset 0 0 0 14px rgba(51, 255, 204, 0.06),
    inset 0 0 0 28px rgba(51, 255, 204, 0.04),
    0 0 18px rgba(51, 255, 204, 0.18);
  animation: wireDiamondPulse 700ms ease-in-out infinite alternate;
}

#radio-visualizer {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 132px;
}

.wire-bars {
  position: absolute;
  z-index: 2;
  inset: auto 8px 8px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  height: 48px;
  opacity: 0.7;
}

@keyframes wireGridDrift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 28px 18px, 28px 18px;
  }
}

@keyframes wireDiamondPulse {
  from {
    opacity: 0.45;
    transform: scale(0.94);
  }

  to {
    opacity: 0.95;
    transform: scale(1.02);
  }
}

.wire-bars span {
  height: var(--bar-height, 40%);
  margin: 0 2px;
  border: 1px solid rgba(51, 255, 204, 0.8);
  background: linear-gradient(to top, rgba(51, 255, 204, 0.1), rgba(51, 255, 204, 0.46));
  transform-origin: bottom;
}

.wire-bars span:nth-child(1) { --bar-height: 25%; }
.wire-bars span:nth-child(2) { --bar-height: 52%; }
.wire-bars span:nth-child(3) { --bar-height: 74%; }
.wire-bars span:nth-child(4) { --bar-height: 36%; }
.wire-bars span:nth-child(5) { --bar-height: 88%; }
.wire-bars span:nth-child(6) { --bar-height: 46%; }
.wire-bars span:nth-child(7) { --bar-height: 64%; }
.wire-bars span:nth-child(8) { --bar-height: 34%; }
.wire-bars span:nth-child(9) { --bar-height: 78%; }
.wire-bars span:nth-child(10) { --bar-height: 58%; }
.wire-bars span:nth-child(11) { --bar-height: 42%; }
.wire-bars span:nth-child(12) { --bar-height: 70%; }

.wire-bars span {
  animation: radioPulse 420ms ease-in-out infinite alternate;
  animation-delay: calc(var(--radio-index, 1) * 45ms);
}

@keyframes radioPulse {
  from {
    transform: scaleY(0.72);
    opacity: 0.62;
  }

  to {
    transform: scaleY(1.08);
    opacity: 1;
  }
}

.radio-controls {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.radio-button,
.radio-play,
.radio-link {
  min-width: 48px;
  min-height: 40px;
  border: 1px solid rgba(255, 204, 102, 0.72);
  border-radius: 999px;
  color: #050505;
  background: linear-gradient(#ffb33c, #d76500);
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.22);
}

.radio-button:hover,
.radio-play:hover,
.radio-link:hover {
  filter: brightness(1.16);
  transform: translateY(-1px);
}

.radio-play,
.radio-link {
  display: grid;
  place-items: center;
  min-width: 82px;
}

.radio-button:disabled,
.radio-play:disabled,
.radio-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.52;
}

.radio-volume {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr);
  gap: 12px;
  align-items: center;
  max-width: 360px;
  margin: 12px auto 0;
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.radio-volume input {
  accent-color: var(--green);
}

.radio-youtube-frame {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 0;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0.01;
  pointer-events: none;
}

.radio-empty {
  padding: 16px;
  border: 1px dashed rgba(255, 204, 102, 0.58);
  color: #ccffff;
  background: rgba(0, 0, 0, 0.66);
  font-family: Consolas, "Courier New", monospace;
}

.radio-player {
  gap: 10px;
}

.radio-shell {
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background:
    radial-gradient(ellipse at 50% 56%, rgba(122, 68, 255, 0.24), transparent 52%),
    #000;
  box-shadow:
    0 0 34px rgba(102, 255, 255, 0.22),
    0 0 52px rgba(164, 86, 255, 0.18);
}

.radio-shell::before {
  z-index: 5;
  background:
    repeating-linear-gradient(0deg, rgba(102, 255, 255, 0.06) 0 1px, transparent 1px 6px),
    linear-gradient(120deg, transparent 0 36%, rgba(255, 255, 255, 0.12) 46%, transparent 56% 100%);
  border-radius: inherit;
  opacity: 0.7;
}

.radio-shell::after {
  inset: 4.5% 3.2%;
  z-index: 2;
  border: 1px solid rgba(102, 255, 255, 0.12);
  border-radius: 30px;
}

.radio-console-scan {
  z-index: 3;
  opacity: 0.34;
}

.radio-console-glow {
  z-index: 1;
  opacity: 0.72;
}

.radio-screen {
  position: absolute;
  left: 37.8%;
  top: 31.6%;
  z-index: 6;
  width: 33.2%;
  height: 36%;
  padding: clamp(6px, 1.2vw, 13px);
  border-color: rgba(102, 255, 255, 0.46);
  border-radius: 1.2vw;
  background:
    linear-gradient(rgba(102, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 255, 255, 0.04) 1px, transparent 1px),
    rgba(0, 6, 10, 0.82);
  background-size: 18px 14px;
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.78),
    0 0 18px rgba(102, 255, 255, 0.16);
}

.radio-lcd {
  min-height: 37%;
  padding: clamp(5px, 0.95vw, 11px);
  border-color: rgba(102, 255, 255, 0.36);
  background:
    radial-gradient(circle at 14% 24%, rgba(168, 84, 255, 0.25), transparent 42px),
    rgba(0, 0, 0, 0.55);
  color: #66ffff;
}

.radio-kicker {
  color: #cc99ff;
  font-size: clamp(8px, 0.85vw, 12px);
  letter-spacing: 0.08em;
}

.radio-lcd h2 {
  margin: 0.3em 0 0.1em;
  color: #f6ffff;
  font-size: clamp(11px, 1.55vw, 22px);
  text-shadow: 0 0 12px rgba(102, 255, 255, 0.55);
}

.radio-lcd p,
.radio-meta {
  font-size: clamp(8px, 0.85vw, 12px);
}

.radio-meta {
  margin-top: 0.55em;
  color: #cc99ff;
}

.wire-visualizer {
  height: 47%;
  min-height: 0;
  margin-top: 2.6%;
  border-color: rgba(102, 255, 255, 0.2);
  border-radius: 0.7vw;
  background:
    radial-gradient(circle at center, rgba(164, 86, 255, 0.16), transparent 56%),
    rgba(0, 0, 0, 0.44);
}

#radio-visualizer {
  height: 100%;
}

.wire-bars {
  height: 34%;
}

.radio-controls {
  position: absolute;
  left: 37.8%;
  top: 71.6%;
  z-index: 7;
  width: 33.2%;
  margin: 0;
  gap: clamp(5px, 0.9vw, 12px);
}

.radio-button,
.radio-play,
.radio-link {
  min-width: clamp(40px, 5.6vw, 86px);
  min-height: clamp(28px, 3.6vw, 45px);
  border-color: rgba(204, 153, 255, 0.78);
  color: #f4eaff;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(#20172e, #06070d);
  font-size: clamp(9px, 1vw, 14px);
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(204, 153, 255, 0.9);
  box-shadow:
    inset 0 0 14px rgba(102, 255, 255, 0.12),
    0 0 14px rgba(164, 86, 255, 0.25);
}

.radio-play {
  color: #ffffff;
  border-color: rgba(102, 255, 255, 0.8);
  background:
    radial-gradient(circle at 50% 32%, rgba(102, 255, 255, 0.32), transparent 40%),
    linear-gradient(#2b1760, #090811);
}

.radio-volume {
  position: absolute;
  right: 11.4%;
  bottom: 19.6%;
  z-index: 7;
  grid-template-columns: 1fr;
  width: 16%;
  max-width: none;
  margin: 0;
  gap: 4px;
  color: #66ffff;
  font-size: clamp(8px, 0.85vw, 12px);
  text-align: center;
  text-shadow: 0 0 10px rgba(102, 255, 255, 0.75);
}

.radio-volume input {
  width: 100%;
  accent-color: #9b5cff;
}

.radio-station-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(102, 255, 255, 0.24);
  color: #ccffff;
  background: rgba(0, 0, 0, 0.58);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .site-shell {
    padding-top: 18px;
  }

  .tagline,
  .resources-title {
    font-size: 26px;
  }

  .intro {
    font-size: 18px;
  }

  .resource-list {
    grid-template-columns: 1fr;
  }

  .resource-card {
    align-items: flex-start;
  }

  .resource-card a {
    font-size: 21px;
  }

  .note {
    display: block;
    margin: 3px 0 0;
  }

  .social-transmissions,
  .counter-transmissions,
  .radio-transmissions {
    padding: 18px 14px;
  }

  .signal-dashboard {
    grid-template-columns: 1fr;
  }

  .radio-side,
  .friends-side {
    grid-column: auto;
  }

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

  .friend-card,
  .friend-card.primary,
  .friend-card:nth-child(2),
  .friend-card:nth-child(3),
  .friend-card:nth-child(4),
  .friend-card:nth-child(5) {
    grid-column: auto;
  }

  .friend-card.primary {
    min-height: 250px;
  }

  .counter-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .radio-player {
    grid-template-columns: 1fr;
  }

  .radio-shell {
    min-height: auto;
  }

  .radio-volume {
    right: 8%;
    bottom: 16%;
    width: 20%;
  }

  .radio-screen {
    left: 36.5%;
    top: 30.5%;
    width: 35.5%;
    height: 38%;
  }

  .radio-controls {
    left: 34%;
    top: 71%;
    width: 39%;
  }

  .radio-button,
  .radio-play,
  .radio-link {
    min-width: 38px;
  }
}

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

  .friend-card:hover,
  .friend-card:focus-within,
  .counter-row:hover,
  .reveal {
    transform: none;
  }
}

/* Naotacord radio shell: real interactive device, not a flat background image. */
.radio-player {
  display: grid;
  gap: 12px;
}

.radio-shell {
  --shell-cyan: #66ffff;
  --shell-purple: #a65cff;
  --shell-dark: #06070d;
  --shell-metal: #1a1c22;
  position: relative;
  isolation: isolate;
  min-height: 0;
  aspect-ratio: 16 / 8.7;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 46% 54% 44% 48% / 31% 33% 42% 39%;
  background:
    radial-gradient(circle at 16% 34%, rgba(255, 255, 255, 0.18), transparent 4%),
    radial-gradient(circle at 84% 38%, rgba(255, 255, 255, 0.14), transparent 5%),
    radial-gradient(ellipse at 51% 8%, rgba(164, 255, 255, 0.2), transparent 29%),
    linear-gradient(145deg, #30323a 0%, #11131a 35%, #07080d 68%, #171a21 100%);
  box-shadow:
    inset 0 2px 18px rgba(255, 255, 255, 0.12),
    inset 0 -34px 50px rgba(0, 0, 0, 0.72),
    0 0 42px rgba(102, 255, 255, 0.2),
    0 22px 60px rgba(0, 0, 0, 0.58);
}

.radio-shell::before,
.radio-shell::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.radio-shell::before {
  inset: 3.7% 2.8%;
  z-index: 1;
  border: 1px solid rgba(102, 255, 255, 0.18);
  border-radius: inherit;
  background:
    linear-gradient(116deg, transparent 0 34%, rgba(255, 255, 255, 0.09) 42%, transparent 52% 100%),
    repeating-linear-gradient(0deg, rgba(102, 255, 255, 0.045) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  animation: consoleSweep 5000ms ease-in-out infinite;
}

.radio-shell::after {
  left: 24%;
  right: 24%;
  bottom: 2.5%;
  z-index: 2;
  height: 5.5%;
  border: 1px solid rgba(102, 255, 255, 0.2);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(102, 255, 255, 0.1) 10px 11px),
    rgba(0, 0, 0, 0.38);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.62);
}

.radio-device-face {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.radio-body-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 49% 41%, rgba(102, 255, 255, 0.13), transparent 27%),
    radial-gradient(circle at 82% 44%, rgba(164, 92, 255, 0.2), transparent 19%),
    radial-gradient(circle at 20% 45%, rgba(164, 92, 255, 0.18), transparent 17%);
  filter: blur(2px);
  animation: consoleGlow 1400ms ease-in-out infinite alternate;
}

.radio-left-orb,
.radio-right-orb {
  position: absolute;
  top: 21%;
  width: 18%;
  aspect-ratio: 1;
  border: 1px solid rgba(102, 255, 255, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(164, 92, 255, 0.28), transparent 22%),
    radial-gradient(circle at 42% 37%, #111824, #020309 62%);
  box-shadow:
    inset 0 0 26px rgba(0, 0, 0, 0.86),
    0 0 20px rgba(102, 255, 255, 0.16);
}

.radio-left-orb {
  left: 11.2%;
}

.radio-right-orb {
  right: 8.6%;
}

.radio-left-orb::before,
.radio-right-orb::before {
  position: absolute;
  inset: 12%;
  border: 2px dotted rgba(164, 92, 255, 0.72);
  border-radius: 50%;
  content: "";
  animation: wireDiamondPulse 900ms ease-in-out infinite alternate;
}

.radio-grip {
  position: absolute;
  right: 2.2%;
  width: 7.5%;
  height: 3.2%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d1018, #66ffff 48%, #10141a);
  box-shadow: 0 0 14px rgba(102, 255, 255, 0.36);
  transform: rotate(-11deg);
}

.radio-grip-one { top: 30%; }
.radio-grip-two { top: 39%; }
.radio-grip-three { top: 48%; }
.radio-grip-four { top: 57%; }
.radio-grip-five { top: 66%; }

.radio-brand-dial {
  position: absolute;
  left: 14.5%;
  top: 26%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 15%;
  aspect-ratio: 1;
  padding: 1.5%;
  border: 1px solid rgba(204, 153, 255, 0.38);
  border-radius: 50%;
  color: var(--shell-cyan);
  background:
    linear-gradient(rgba(102, 255, 255, 0.06) 1px, transparent 1px),
    #05080d;
  background-size: 100% 7px;
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.78),
    0 0 20px rgba(164, 92, 255, 0.26);
  font-family: Consolas, "Courier New", monospace;
  text-align: center;
}

.radio-antenna-icon {
  color: var(--shell-purple);
  font-size: clamp(14px, 2.1vw, 28px);
  line-height: 1;
  text-shadow: 0 0 12px var(--shell-purple);
}

.radio-brand-dial strong {
  font-size: clamp(8px, 1.05vw, 15px);
  line-height: 1.08;
  letter-spacing: 0.12em;
  text-shadow: 0 0 10px rgba(102, 255, 255, 0.82);
}

.radio-brand-dial small {
  color: #cc99ff;
  font-size: clamp(7px, 0.75vw, 10px);
  letter-spacing: 0.08em;
}

.radio-mini-wave {
  width: 82%;
  height: 10%;
  background: repeating-linear-gradient(90deg, transparent 0 4px, var(--shell-purple) 4px 5px, transparent 5px 9px);
  filter: drop-shadow(0 0 6px var(--shell-purple));
  animation: consoleScan 680ms linear infinite;
}

.radio-screen {
  position: absolute;
  left: 36%;
  top: 26.5%;
  z-index: 5;
  display: grid;
  grid-template-rows: minmax(0, 0.92fr) minmax(0, 1fr);
  width: 36%;
  height: 41%;
  padding: clamp(7px, 1vw, 13px);
  border: 1px solid rgba(102, 255, 255, 0.38);
  border-radius: 18px 14px 22px 14px;
  background:
    linear-gradient(rgba(102, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 255, 255, 0.035) 1px, transparent 1px),
    rgba(0, 8, 12, 0.88);
  background-size: 19px 16px;
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.85),
    0 0 18px rgba(102, 255, 255, 0.18);
}

.radio-lcd {
  min-height: 0;
  padding: clamp(6px, 0.85vw, 11px);
  overflow: hidden;
  border: 1px solid rgba(102, 255, 255, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 16% 20%, rgba(164, 92, 255, 0.24), transparent 46px),
    rgba(0, 0, 0, 0.58);
  color: var(--shell-cyan);
  font-family: Consolas, "Courier New", monospace;
  box-shadow: inset 0 0 18px rgba(102, 255, 255, 0.08);
}

.radio-kicker {
  color: #cc99ff;
  font-size: clamp(7px, 0.7vw, 11px);
  letter-spacing: 0.1em;
}

.radio-lcd h2 {
  margin: 0.22em 0 0.05em;
  color: #f8ffff;
  font-size: clamp(11px, 1.45vw, 22px);
  line-height: 1.06;
  text-shadow: 0 0 12px rgba(102, 255, 255, 0.58);
}

.radio-lcd p,
.radio-meta {
  font-size: clamp(8px, 0.78vw, 12px);
}

.radio-lcd p {
  white-space: nowrap;
  overflow: hidden;
  color: #ccffff;
  text-overflow: ellipsis;
}

.radio-meta {
  margin-top: 0.45em;
  color: #cc99ff;
}

.wire-visualizer {
  min-height: 0;
  height: auto;
  margin-top: 3%;
  border: 1px solid rgba(102, 255, 255, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at center, rgba(164, 92, 255, 0.12), transparent 58%),
    rgba(0, 0, 0, 0.42);
}

#radio-visualizer {
  width: 100%;
  height: 100%;
}

.radio-transport {
  position: absolute;
  left: 38%;
  top: 71.5%;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  width: 32%;
  margin: 0;
  gap: clamp(5px, 0.8vw, 11px);
}

.radio-button,
.radio-play,
.radio-link {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: clamp(26px, 3.2vw, 42px);
  border: 1px solid rgba(204, 153, 255, 0.64);
  border-radius: 999px;
  color: #f6efff;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(#211a2c, #07080f);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(8px, 0.95vw, 13px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-shadow: 0 0 9px rgba(204, 153, 255, 0.82);
  box-shadow:
    inset 0 0 12px rgba(102, 255, 255, 0.08),
    0 0 12px rgba(164, 92, 255, 0.2);
}

.radio-play {
  border-color: rgba(102, 255, 255, 0.78);
  background:
    radial-gradient(circle at 50% 30%, rgba(102, 255, 255, 0.28), transparent 40%),
    linear-gradient(#351b68, #090811);
}

.radio-button:hover,
.radio-play:hover,
.radio-link:hover {
  filter: brightness(1.2);
  transform: translateY(-1px) scale(1.02);
}

.radio-button:active,
.radio-play:active,
.radio-link:active {
  transform: translateY(1px) scale(0.98);
}

.radio-button:disabled,
.radio-play:disabled,
.radio-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
}

.radio-volume {
  position: absolute;
  right: 11.8%;
  bottom: 20%;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr;
  width: 14.5%;
  max-width: none;
  margin: 0;
  gap: 4px;
  color: var(--shell-cyan);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(7px, 0.75vw, 11px);
  text-align: center;
  text-shadow: 0 0 10px rgba(102, 255, 255, 0.72);
}

.radio-volume input {
  width: 100%;
  accent-color: var(--shell-purple);
}

.radio-youtube-frame {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 0;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0.01;
  pointer-events: none;
}

.radio-station-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(102, 255, 255, 0.24);
  color: #ccffff;
  background: rgba(0, 0, 0, 0.58);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 760px) {
  .radio-shell {
    aspect-ratio: 1 / 1.08;
    border-radius: 34px;
  }

  .radio-left-orb,
  .radio-right-orb,
  .radio-grip,
  .radio-brand-dial {
    display: none;
  }

  .radio-screen {
    left: 8%;
    top: 10%;
    width: 84%;
    height: 58%;
  }

  .radio-transport {
    left: 9%;
    top: 73%;
    width: 82%;
  }

  .radio-volume {
    right: 14%;
    bottom: 7%;
    width: 72%;
  }
}
