:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #05070b;
  color: #f6f3eb;
  --news-title-color: #2b7f9c;
  --news-body-color: #163d4f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(43, 125, 140, 0.34), transparent 25rem),
    radial-gradient(circle at 88% 62%, rgba(186, 76, 52, 0.24), transparent 28rem),
    linear-gradient(135deg, #05070b 0%, #12141a 48%, #090b10 100%);
}

.shell,
.stage,
#globe {
  width: 100vw;
  height: 100vh;
}

.stage {
  position: relative;
  isolation: isolate;
}

.stage::before {
  content: "";
  position: absolute;
  inset: -4vh -4vw;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(124, 227, 210, 0.22), transparent 18rem),
    radial-gradient(circle at 50% 48%, rgba(141, 183, 255, 0.1), transparent 28rem),
    radial-gradient(circle at 22% 18%, rgba(43, 125, 140, 0.14), transparent 24rem),
    radial-gradient(circle at 78% 22%, rgba(255, 178, 95, 0.1), transparent 22rem),
    linear-gradient(180deg, rgba(5, 7, 11, 0.38), rgba(5, 7, 11, 0.74));
  filter: saturate(1.02) contrast(1.04) brightness(0.82);
  opacity: 0.92;
  transform: scale(1.02);
  transition:
    opacity 0.45s ease,
    filter 0.45s ease,
    transform 0.45s ease;
  pointer-events: none;
}

.stage::after {
  content: "";
  position: absolute;
  inset: -6vh -6vw;
  z-index: 0;
  background-image: var(--music-fx-image, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: 0;
  filter: saturate(1.8) contrast(1.7) brightness(0.58);
  transform: scale(1.04);
  transition:
    opacity 0.42s ease,
    filter 0.42s ease,
    transform 0.42s ease;
  pointer-events: none;
}

body.music-active .stage::before {
  opacity: 1;
  filter: saturate(1.18) contrast(1.2) brightness(0.96);
  animation: music-background-pan 9s ease-in-out infinite alternate;
}

body.music-active.music-fx-ready .stage::after {
  opacity: 0.3;
  animation: music-fx-pulse 5.5s ease-in-out infinite alternate;
}

@keyframes music-background-pan {
  from {
    transform: scale(1.03) translate3d(-1.4vw, -0.8vh, 0);
  }
  to {
    transform: scale(1.09) translate3d(1.3vw, 1vh, 0);
  }
}

@keyframes music-fx-pulse {
  from {
    filter: saturate(1.7) contrast(1.55) brightness(0.48) blur(0);
    transform: scale(1.04) translate3d(1vw, -1vh, 0);
  }
  to {
    filter: saturate(2.25) contrast(2.05) brightness(0.68) blur(1px);
    transform: scale(1.12) translate3d(-1.2vw, 1vh, 0);
  }
}

#globe {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#globe canvas {
  display: block;
  width: 100%;
  height: 100%;
}

body.music-active #globe canvas {
  filter: contrast(1.08) saturate(1.12);
}

.globe-boot-error {
  margin: 0;
  padding: 1rem 1.25rem;
  color: #ffb25f;
  font-size: 0.92rem;
  line-height: 1.45;
}

.sling-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.impact-particle-layer,
.sling-letter-trail {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.impact-particle {
  position: absolute;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity, left, top;
  font-size: clamp(0.8rem, 1.6vw, 1.1rem);
  font-weight: 900;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.55),
    0 2px 12px rgba(0, 0, 0, 0.7);
}

.sling-letter-particle.is-hit {
  color: #ff6b6b !important;
  text-shadow:
    0 0 16px rgba(255, 107, 107, 0.85),
    0 2px 12px rgba(0, 0, 0, 0.7);
}

.sling-letter-particle {
  position: absolute;
  font-size: clamp(1rem, 2.2vw, 1.65rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 0 18px currentColor,
    0 0 5px rgba(255, 255, 255, 0.28),
    0 2px 12px rgba(0, 0, 0, 0.62);
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity, left, top;
}

.sling-layer line,
.sling-layer circle {
  display: none;
}

.sling-layer.is-active line,
.sling-layer.is-active circle {
  display: block;
}

#slingBandA,
#slingBandB {
  stroke: rgba(255, 178, 95, 1);
  stroke-width: 7;
  stroke-linecap: round;
  filter: drop-shadow(0 0 14px rgba(255, 178, 95, 0.95));
}

#slingAim {
  stroke: rgba(246, 243, 235, 1);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 8;
  marker-end: url("#slingArrow");
  filter: drop-shadow(0 0 12px rgba(246, 243, 235, 0.9));
}

#slingArrow path {
  fill: #f6f3eb;
}

#slingAnchor {
  fill: rgba(255, 178, 95, 0.2);
  stroke: rgba(255, 178, 95, 0.95);
  stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(255, 178, 95, 0.7));
}

.hud {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.38);
}

.hud-left {
  left: 0;
  right: 0;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 3.45rem;
  padding: 0.45rem clamp(0.9rem, 2.4vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.82), rgba(6, 8, 12, 0.42));
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.hud-right {
  left: clamp(1rem, 2.5vw, 2rem);
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(0.8rem, 2.5vh, 1.5rem);
  width: auto;
}

.bottom-widget {
  display: grid;
  gap: 0;
  max-width: min(68rem, calc(100vw - 2rem));
  margin-left: auto;
  margin-right: auto;
  padding: 0.3rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(9, 12, 18, 0.84), rgba(7, 10, 16, 0.76));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.bottom-widget-grid {
  display: grid;
  grid-template-columns:
    minmax(13rem, 1.35fr)
    minmax(7rem, 0.72fr)
    minmax(6rem, 0.56fr)
    minmax(10.5rem, 0.9fr)
    minmax(9rem, 0.8fr);
  align-items: stretch;
  gap: 0;
}

.chat-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7rem, 14rem) auto;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.1rem;
  padding: 0.22rem 0.2rem 0.36rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-feed {
  display: flex;
  gap: 0.45rem;
  min-width: 0;
  overflow: hidden;
  color: rgba(246, 243, 235, 0.72);
  font-size: 0.72rem;
  white-space: nowrap;
}

.chat-message {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-message strong {
  color: var(--chat-color, #7ce3d2);
  font-weight: 900;
}

.chat-bar input {
  min-width: 0;
  height: 1.72rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f6f3eb;
  padding: 0 0.65rem;
  font: inherit;
  font-size: 0.72rem;
  outline: none;
}

.chat-bar input:focus {
  border-color: rgba(124, 227, 210, 0.72);
  box-shadow: 0 0 0 2px rgba(124, 227, 210, 0.12);
}

.chat-bar button {
  height: 1.72rem;
  border: 0;
  border-radius: 999px;
  background: #7ce3d2;
  color: #051015;
  padding: 0 0.72rem;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

body.minimal-view .stage > :not(#globe) {
  display: none !important;
}

body.minimal-view .stage::before,
body.minimal-view .stage::after {
  opacity: 0 !important;
  animation: none !important;
}

body.minimal-view .hud-right {
  pointer-events: none;
}

.eyebrow {
  display: none;
  margin: 0;
  max-width: min(36rem, calc(100vw - 2rem));
  overflow-wrap: anywhere;
  color: #7ce3d2;
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.music-active .hud-left h1 {
  max-width: none;
  font-size: 1.02rem;
}

.summary {
  margin: 0;
  max-width: none;
  color: rgba(246, 243, 235, 0.78);
  font-size: 0.78rem;
  line-height: 1.15;
  white-space: nowrap;
}

.titlebar-commands {
  justify-self: end;
}

.brick-legend {
  display: none;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.75rem 0 0;
  max-width: 28rem;
  color: rgba(246, 243, 235, 0.62);
  font-size: 0.78rem;
  line-height: 1.4;
}

.brick-legend-play {
  color: #7ce3d2;
  font-weight: 900;
}

.brick-legend-lock {
  color: #ff6b6b;
  font-weight: 900;
}

.metric,
.player-card,
.coin-card,
.audio-card,
.growth-clock-card,
.news-feed {
  min-height: 4.4rem;
}

.bottom-widget-grid > .metric,
.bottom-widget-grid > .player-card,
.bottom-widget-grid > .coin-card,
.bottom-widget-grid > .audio-card,
.bottom-widget-grid > .growth-clock-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-height: 3.8rem;
}

.bottom-widget-grid > * + * {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.bottom-widget > .news-feed {
  box-shadow: none;
  backdrop-filter: none;
  margin-top: 0.2rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
}

.player-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
}

.player-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  border-radius: 50%;
  color: #061013;
  font-size: 1rem;
  font-weight: 850;
  box-shadow: 0 0 24px var(--player-glow, rgba(124, 227, 210, 0.68));
}

.player-avatar-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.player-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.player-label {
  color: #7ce3d2;
  font-size: 0.68rem;
  font-weight: 780;
  text-transform: uppercase;
}

.player-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.96rem;
}

.player-copy span:last-child {
  color: rgba(246, 243, 235, 0.68);
  font-size: 0.74rem;
}

.coin-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.72rem;
}

.coin-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  position: relative;
  width: 2.2rem;
  height: 1.8rem;
  border: 2px solid #2d2417;
  border-radius: 3px;
  background:
    linear-gradient(#2d2417, #2d2417) 0.42rem 0.5rem / 0.72rem 0.16rem no-repeat,
    linear-gradient(#2d2417, #2d2417) 0.42rem 0.86rem / 1.55rem 0.12rem no-repeat,
    linear-gradient(#2d2417, #2d2417) 0.42rem 1.16rem / 1.25rem 0.12rem no-repeat,
    linear-gradient(#c79b54, #c79b54) 1.68rem 0.42rem / 0.52rem 0.52rem no-repeat,
    #f2ead8;
  box-shadow: 0 0 16px rgba(255, 178, 95, 0.38);
}

.coin-icon::before {
  content: "";
  position: absolute;
  left: -0.26rem;
  top: 0.24rem;
  width: 0.22rem;
  height: 1.55rem;
  border: 2px solid #2d2417;
  border-right: 0;
  border-radius: 3px 0 0 3px;
  background: #d8c8aa;
}

.coin-icon i {
  position: absolute;
  right: 0.34rem;
  bottom: 0.28rem;
  width: 0.72rem;
  height: 0.12rem;
  background: #2d2417;
  box-shadow: 0 -0.28rem 0 #2d2417;
}

.coin-card div {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}

.coin-value {
  font-size: 1.7rem;
  font-weight: 820;
  line-height: 1;
}

.coin-label {
  color: rgba(246, 243, 235, 0.72);
  font-size: 0.78rem;
}

.metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.55rem 0.72rem;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 780;
  line-height: 1;
}

.metric-label {
  color: rgba(246, 243, 235, 0.72);
  font-size: 0.74rem;
  line-height: 1.25;
}

.growth-clock-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.72rem;
}

.growth-clock-dial {
  --growth-phase: 0;
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: conic-gradient(
    var(--news-owner-color, #7ce3d2) calc(var(--growth-phase) * 360deg),
    rgba(124, 227, 210, 0.14) 0
  );
  box-shadow:
    inset 0 0 0 2px rgba(124, 227, 210, 0.35),
    0 0 18px rgba(124, 227, 210, 0.22);
  transition: background 0.15s linear;
}

.growth-clock-dial::after {
  content: "";
  display: block;
  width: 0.48rem;
  height: 0.48rem;
  margin: 0.86rem auto;
  border-radius: 50%;
  background: #f6f3eb;
  box-shadow: 0 0 8px rgba(124, 227, 210, 0.65);
}

.growth-clock-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.growth-clock-time {
  max-width: 12rem;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  line-height: 1.08;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.growth-clock-label {
  color: rgba(246, 243, 235, 0.72);
  font-size: 0.72rem;
  line-height: 1.25;
}

.growth-clock-label strong {
  color: #7ce3d2;
  font-weight: 820;
}

.growth-clock-energy {
  color: #7ce3d2;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.growth-clock-energy[data-low="1"] {
  color: #ffb25f;
}

.growth-clock-hint {
  display: block;
  max-width: 12rem;
  margin-top: 0.12rem;
  overflow: hidden;
  color: rgba(246, 243, 235, 0.48);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brick-legend-energy {
  color: #7ce3d2;
  margin-left: 0.35rem;
}

.audio-card {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.72rem;
  pointer-events: auto;
}

#audioTitle,
.audio-title,
#audioTrackLabel,
.audio-track-label {
  display: none !important;
}

.shuffle-button,
.audio-button {
  min-height: 2rem;
  min-width: 2rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(124, 227, 210, 0.42);
  border-radius: 8px;
  color: #061013;
  background: #7ce3d2;
  box-shadow: 0 0 20px rgba(124, 227, 210, 0.25);
  font: inherit;
  font-weight: 820;
  text-transform: none !important;
  letter-spacing: 0;
  cursor: pointer;
}

.shuffle-button {
  font-size: 0;
}

.audio-btn-glyph {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.shuffle-button:hover,
.audio-button:hover {
  background: #9cf0e4;
}

#shuffleAudio.is-playing {
  color: #f6f3eb;
  background: rgba(255, 178, 95, 0.18);
  border-color: rgba(255, 178, 95, 0.58);
}

body.news-focus .news-feed,
body.news-focus .coin-card {
  display: none !important;
}

body.news-focus .bottom-widget {
  opacity: 1;
}

body.news-focus .hud,
body.music-active .hud {
  opacity: 1;
}

body.music-active .news-spotlight {
  display: none !important;
}

body.music-active .audio-card {
  display: flex !important;
  border-color: rgba(255, 178, 95, 0.35);
}

.audio-now-playing {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: rgba(246, 243, 235, 0.78);
  font-size: 0.68rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.news-focus #globe {
  filter: none;
}

.drop-toast {
  position: absolute;
  z-index: 8;
  top: clamp(1rem, 4vh, 2rem);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: min(36rem, calc(100vw - 2rem));
  padding: 0.65rem 1rem;
  border: 1px solid rgba(124, 227, 210, 0.45);
  border-radius: 10px;
  background: rgba(5, 7, 11, 0.9);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  color: #f6f3eb;
  font-size: 0.9rem;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.drop-toast[hidden] {
  display: none;
}

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

.drop-toast[data-phase="pending"] {
  border-color: rgba(255, 178, 95, 0.62);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(255, 178, 95, 0.28);
  animation: drop-toast-pulse 0.7s ease-in-out infinite alternate;
}

.drop-toast[data-phase="error"] {
  border-color: rgba(255, 107, 107, 0.55);
}

.drop-toast[data-phase="pending"] .drop-toast-mark,
.drop-toast[data-phase="pending"] strong {
  color: #ffb25f;
}

.drop-toast[data-phase="error"] .drop-toast-mark {
  color: #ff6b6b;
}

@keyframes drop-toast-pulse {
  from {
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.45),
      0 0 18px rgba(255, 178, 95, 0.2);
  }
  to {
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.45),
      0 0 32px rgba(255, 178, 95, 0.42);
  }
}

.drop-click-ripple {
  position: absolute;
  z-index: 7;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid rgba(255, 178, 95, 0.85);
  border-radius: 50%;
  pointer-events: none;
  animation: drop-click-ripple 0.55s ease-out forwards;
}

@keyframes drop-click-ripple {
  from {
    opacity: 0.95;
    transform: scale(0.35);
  }
  to {
    opacity: 0;
    transform: scale(3.2);
  }
}

.drop-toast-mark {
  flex: 0 0 auto;
  color: #7ce3d2;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.drop-toast strong {
  color: #7ce3d2;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.drop-toast-title {
  min-width: 0;
  overflow: hidden;
  color: rgba(246, 243, 235, 0.82);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.news-focus .drop-toast {
  top: auto;
  left: auto;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: calc(min(25vh, 14rem) + 1rem);
  transform: none;
}

.news-spotlight {
  position: absolute;
  z-index: 9;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 3vh, 1.5rem);
  left: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  width: min(22rem, calc(42vw - 1rem));
  max-height: min(22vh, 12rem);
  padding: 0.45rem;
  border: 1px solid rgba(255, 178, 95, 0.38);
  border-radius: 10px;
  background: rgba(5, 7, 11, 0.88);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  transform: none;
  pointer-events: auto;
}

.news-spotlight[hidden] {
  display: none;
}

.news-spotlight-close {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #f6f3eb;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.news-spotlight-media {
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0d12;
  min-height: 5rem;
}

.news-spotlight-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 5rem;
  max-height: min(20vh, 11rem);
  object-fit: cover;
}

.news-spotlight-copy {
  display: none;
}

.news-spotlight-kicker {
  margin: 0;
  color: var(--news-body-color);
  font-size: 0.68rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-spotlight-title {
  margin: 0;
  color: var(--news-title-color);
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-spotlight-text {
  display: none;
}

.view-lock-badge {
  position: absolute;
  z-index: 7;
  top: clamp(1rem, 4vh, 2rem);
  right: clamp(1rem, 2.5vw, 2rem);
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 178, 95, 0.45);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.88);
  color: rgba(246, 243, 235, 0.9);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.view-locked #globe canvas {
  cursor: default;
}

body.view-locked.sling-active #globe canvas {
  cursor: grabbing;
}

@media (max-width: 720px) {
  .news-spotlight {
    width: min(20rem, calc(88vw - 1rem));
    max-height: min(28vh, 13rem);
  }
}

body.music-active #shuffleAudio.is-playing {
  animation: music-btn-pulse 0.55s ease-in-out infinite alternate;
}

@keyframes music-btn-pulse {
  from {
    box-shadow: 0 0 16px rgba(255, 178, 95, 0.28);
  }
  to {
    box-shadow: 0 0 30px rgba(255, 178, 95, 0.52);
  }
}

#audioPause[hidden] {
  display: none;
}

.news-feed {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 8.5rem;
  padding: 0.65rem 0.5rem 0.3rem;
}

.news-feed[hidden] {
  display: none;
}

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #7ce3d2;
  font-size: 0.9rem;
  font-weight: 780;
  text-transform: uppercase;
}

.news-header strong {
  color: #ffb25f;
}

#newsList {
  display: grid;
  gap: 0.65rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  overflow: auto;
  max-height: min(34rem, 42vh);
}

#newsList .news-card {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-card-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0d12;
}

.news-card-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-card-figure--text {
  position: relative;
  min-height: 10rem;
  background:
    linear-gradient(145deg, rgba(124, 227, 210, 0.2), rgba(255, 178, 95, 0.16)),
    rgba(7, 10, 16, 0.92);
}

.news-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.05) 20%, rgba(5, 7, 11, 0.88) 100%);
}

.news-card-overlay strong {
  color: var(--news-title-color);
  font-size: 1.05rem;
  line-height: 1.25;
}

.news-card-overlay span {
  color: var(--news-body-color);
  font-size: 0.92rem;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card-caption {
  margin: 0;
  overflow: hidden;
  color: var(--news-title-color);
  font-size: 0.92rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card-source {
  color: #ffb25f;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.coord-debug-panel {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(21rem, calc(100vw - 2rem));
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 240, 106, 0.52);
  border-radius: 0.9rem;
  background: rgba(5, 8, 12, 0.82);
  color: #fff7b0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.coord-debug-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coord-debug-head a {
  color: #7ce3d2;
  pointer-events: auto;
}

.coord-debug-readout,
.coord-debug-help {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.coord-debug-help {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.68);
}

.coord-debug-label {
  position: fixed;
  z-index: 39;
  padding: 0.14rem 0.34rem;
  border: 1px solid rgba(255, 240, 106, 0.65);
  border-radius: 999px;
  background: rgba(4, 7, 10, 0.76);
  color: #fff7b0;
  font-size: 0.63rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 0.45rem));
  white-space: nowrap;
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .hud-left {
    top: 0;
    grid-template-columns: 1fr;
    gap: 0.22rem;
    min-height: 3.8rem;
    padding: 0.42rem 0.8rem;
  }

  .hud-right {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
  }

  .bottom-widget-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chat-bar {
    grid-template-columns: 1fr auto;
  }

  .chat-feed {
    grid-column: 1 / -1;
  }

  .player-card,
  .audio-card {
    grid-column: 1 / -1;
  }

  .bottom-widget-grid > * + * {
    border-left: 0;
  }

  .bottom-widget-grid > * {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .bottom-widget-grid > :nth-child(-n + 2) {
    border-top: 0;
  }

  h1 {
    max-width: none;
    font-size: 1rem;
  }

  .summary {
    max-width: none;
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .titlebar-commands {
    justify-self: start;
  }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .bottom-widget-grid {
    grid-template-columns: minmax(13rem, 1.2fr) repeat(4, minmax(6.5rem, 0.65fr));
  }
}
