: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;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
  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;
  height: 100dvh;
}

.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 {
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 243, 235, 0.3), transparent 18rem),
    linear-gradient(90deg, rgba(124, 227, 210, 0), rgba(124, 227, 210, 0.16), rgba(124, 227, 210, 0)),
    linear-gradient(180deg, rgba(5, 7, 11, 0.06), rgba(5, 7, 11, 0.64));
  opacity: 0.28;
  filter: saturate(1.08) contrast(1.04);
  animation: music-strobe 3.8s steps(1, end) infinite;
}

body.music-active.music-fx-ready .stage::after {
  opacity: 0.34;
  animation: music-fireworks 7.5s steps(1, end) infinite;
}

body.music-active .stage::after {
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 178, 95, 0.72) 0 0.12rem, transparent 0.18rem),
    radial-gradient(circle at 24% 28%, rgba(255, 178, 95, 0.18) 0 2.8rem, transparent 4.2rem),
    radial-gradient(circle at 76% 38%, rgba(124, 227, 210, 0.78) 0 0.12rem, transparent 0.18rem),
    radial-gradient(circle at 76% 38%, rgba(124, 227, 210, 0.16) 0 2.4rem, transparent 3.8rem),
    radial-gradient(circle at 50% 74%, rgba(141, 183, 255, 0.72) 0 0.12rem, transparent 0.18rem),
    radial-gradient(circle at 50% 74%, rgba(141, 183, 255, 0.14) 0 2.2rem, transparent 3.5rem);
  mix-blend-mode: screen;
  opacity: 0.22;
  filter: saturate(1.2);
  animation: music-fireworks 7.5s steps(1, end) infinite;
}

body.play-active:not(.music-active) .stage::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(72, 190, 255, 0.16), transparent 16rem),
    radial-gradient(circle at 35% 72%, rgba(255, 178, 95, 0.12), transparent 18rem),
    linear-gradient(110deg, rgba(124, 227, 210, 0), rgba(124, 227, 210, 0.12), rgba(124, 227, 210, 0)),
    linear-gradient(180deg, rgba(5, 7, 11, 0.08), rgba(5, 7, 11, 0.68));
  opacity: 0.34;
  filter: saturate(1.08) contrast(1.05);
  animation: play-background-drift 6.8s ease-in-out infinite alternate;
}

body.play-active:not(.music-active) .stage::after {
  background:
    radial-gradient(circle at 22% 36%, rgba(72, 190, 255, 0.38) 0 0.1rem, transparent 0.16rem),
    radial-gradient(circle at 22% 36%, rgba(72, 190, 255, 0.12) 0 2.1rem, transparent 3.4rem),
    radial-gradient(circle at 72% 58%, rgba(255, 178, 95, 0.32) 0 0.1rem, transparent 0.16rem),
    radial-gradient(circle at 72% 58%, rgba(255, 178, 95, 0.1) 0 1.9rem, transparent 3rem);
  mix-blend-mode: screen;
  opacity: 0.2;
  filter: saturate(1.15);
  animation: play-background-sparks 5.6s steps(1, end) infinite;
}

@keyframes play-background-drift {
  from {
    transform: scale(1.01) translate3d(-0.5vw, 0.3vh, 0);
  }
  to {
    transform: scale(1.025) translate3d(0.6vw, -0.4vh, 0);
  }
}

@keyframes play-background-sparks {
  0%, 32%, 66%, 100% {
    opacity: 0.08;
    transform: scale(0.99);
  }
  34% {
    opacity: 0.24;
    transform: scale(1.025);
  }
  70% {
    opacity: 0.2;
    transform: scale(1.02);
  }
}

@keyframes music-strobe {
  0%, 38%, 100% {
    opacity: 0.12;
    transform: scale(1.01);
  }
  40% {
    opacity: 0.45;
    transform: scale(1.018);
  }
  43% {
    opacity: 0.18;
  }
  68% {
    opacity: 0.34;
  }
  70% {
    opacity: 0.14;
  }
}

@keyframes music-fireworks {
  0%, 22%, 46%, 72%, 100% {
    opacity: 0;
    transform: scale(0.98);
  }
  24% {
    opacity: 0.32;
    transform: scale(1.02);
  }
  28% {
    opacity: 0.12;
    transform: scale(1.08);
  }
  50% {
    opacity: 0.26;
    transform: scale(1.01);
  }
  54% {
    opacity: 0.1;
    transform: scale(1.07);
  }
  76% {
    opacity: 0.28;
    transform: scale(1.015);
  }
  80% {
    opacity: 0.1;
    transform: scale(1.075);
  }
}

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

#globe canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

body.music-active #globe canvas {
  filter: none;
}

.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);
}


.news-vanish-flash {
  position: absolute;
  width: clamp(3.8rem, 10vw, 7.5rem);
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 8%, currentColor 9% 13%, transparent 45%),
    conic-gradient(from 20deg, transparent 0 12%, currentColor 14% 16%, transparent 18% 30%, rgba(255, 240, 106, 0.9) 32% 34%, transparent 36% 100%);
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 18px currentColor) drop-shadow(0 0 34px rgba(255, 240, 106, 0.42));
  pointer-events: none;
  will-change: transform, opacity, left, top;
}

.news-vanish-tag {
  position: absolute;
  padding: 0.08rem 0.28rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: rgba(5, 7, 11, 0.74);
  color: currentColor;
  font-size: clamp(0.62rem, 1.2vw, 0.88rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 0 12px currentColor,
    0 2px 10px rgba(0, 0, 0, 0.82);
  pointer-events: none;
  will-change: transform, opacity, left, top;
}

.news-vanish-shard {
  position: absolute;
  min-width: 0.55em;
  line-height: 1;
  color: currentColor;
  font-size: clamp(0.8rem, 1.75vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-shadow:
    0 0 16px currentColor,
    0 0 5px rgba(255, 255, 255, 0.5),
    0 2px 12px rgba(0, 0, 0, 0.72);
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity, left, top;
}

.news-vanish-shard.is-hot {
  filter: drop-shadow(0 0 14px rgba(255, 240, 106, 0.78));
}

.news-vanish-dust {
  position: absolute;
  width: clamp(0.25rem, 0.7vw, 0.46rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    0 0 10px currentColor,
    0 0 22px rgba(255, 240, 106, 0.36);
  pointer-events: none;
  will-change: transform, opacity, left, top;
}

.damage-percent-popup {
  position: absolute;
  z-index: 7;
  padding: 0.025rem 0.12rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.74);
  font-size: clamp(0.42rem, 0.78vw, 0.62rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  pointer-events: none;
  text-shadow:
    0 0 10px currentColor,
    0 0 4px rgba(255, 255, 255, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.82);
  user-select: none;
  white-space: nowrap;
  will-change: transform, opacity, left, top;
}

.growth-percent-popup {
  position: absolute;
  z-index: 7;
  padding: 0.04rem 0.22rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.68);
  font-size: clamp(0.58rem, 1.2vw, 0.88rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.028em;
  pointer-events: none;
  text-shadow:
    0 0 10px currentColor,
    0 0 4px rgba(255, 255, 255, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.78);
  user-select: none;
  white-space: nowrap;
  will-change: transform, opacity, left, top;
}

.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));
}

.sling-layer.is-jump #slingBandA,
.sling-layer.is-jump #slingBandB {
  stroke: rgba(72, 190, 255, 1);
  filter: drop-shadow(0 0 16px rgba(72, 190, 255, 0.95));
}

.sling-layer.is-jump #slingAim {
  stroke: rgba(190, 238, 255, 1);
  stroke-dasharray: 4 7;
  filter: drop-shadow(0 0 14px rgba(72, 190, 255, 0.95));
}

.sling-layer.is-jump #slingArrow path {
  fill: #bff0ff;
}

.sling-layer.is-jump #slingAnchor {
  fill: rgba(72, 190, 255, 0.22);
  stroke: rgba(72, 190, 255, 0.95);
  filter: drop-shadow(0 0 12px rgba(72, 190, 255, 0.78));
}

.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;
}

.widget-hide-tab {
  position: absolute;
  z-index: 5;
  left: clamp(1rem, 2.5vw, 2rem);
  top: clamp(0.72rem, 1.8vh, 1.1rem);
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.05rem;
  padding: 0.34rem 0.62rem 0.34rem 0.48rem;
  border: 1px solid rgba(124, 227, 210, 0.42);
  border-radius: 13px 13px 13px 4px;
  background:
    linear-gradient(135deg, rgba(124, 227, 210, 0.24), rgba(255, 178, 95, 0.12)),
    rgba(7, 10, 16, 0.86);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34), 0 0 22px rgba(124, 227, 210, 0.16);
  color: #f6f3eb;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(16px);
}

.widget-hide-tab::after {
  content: "";
  position: absolute;
  left: 0.48rem;
  top: calc(100% + 0.24rem);
  width: 1.35rem;
  height: 0.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 227, 210, 0.62), rgba(124, 227, 210, 0));
}

.widget-hide-tab:hover,
.widget-hide-tab:focus-visible {
  border-color: rgba(124, 227, 210, 0.82);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4), 0 0 28px rgba(124, 227, 210, 0.34);
  outline: none;
}

.mobile-action-pad {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: max(0.8rem, env(safe-area-inset-bottom));
  display: none;
  grid-template-columns: repeat(2, minmax(6.2rem, 1fr));
  gap: 0.55rem;
  width: min(21rem, calc(100vw - 1.4rem));
  transform: translateX(-50%);
  pointer-events: none;
}

.mobile-action {
  min-height: 4rem;
  border: 1px solid rgba(124, 227, 210, 0.45);
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, rgba(12, 20, 24, 0.92), rgba(4, 8, 13, 0.78));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #f6f3eb;
  display: grid;
  align-content: center;
  gap: 0.12rem;
  font: inherit;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  touch-action: manipulation;
  pointer-events: auto;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.mobile-action span {
  color: rgba(216, 245, 239, 0.72);
  font-size: 0.68rem;
}

.mobile-action strong {
  font-size: 1.08rem;
}

.mobile-action-generate {
  border-color: rgba(124, 227, 210, 0.56);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), 0 0 24px rgba(124, 227, 210, 0.18);
}

.mobile-action-shoot {
  border-color: rgba(255, 178, 95, 0.62);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), 0 0 24px rgba(255, 178, 95, 0.2);
}

.mobile-action:active {
  transform: translateY(2px) scale(0.985);
}

.mobile-action-status {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 100%;
  margin: 0;
  padding: 0.2rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(3, 7, 11, 0.58);
  color: rgba(246, 243, 235, 0.74);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.widget-hide-tab-icon {
  position: relative;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid #7ce3d2;
  border-radius: 0.24rem;
  box-shadow: inset 0 0 0 2px rgba(7, 10, 16, 0.72);
}

.widget-hide-tab-icon::before,
.widget-hide-tab-icon::after {
  content: "";
  position: absolute;
  background: #7ce3d2;
}

.widget-hide-tab-icon::before {
  left: 0.18rem;
  right: 0.18rem;
  top: 0.25rem;
  height: 2px;
}

.widget-hide-tab-icon::after {
  left: 0.18rem;
  right: 0.18rem;
  bottom: 0.25rem;
  height: 2px;
}

body.minimal-view .widget-hide-tab {
  border-color: rgba(255, 178, 95, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 178, 95, 0.24), rgba(124, 227, 210, 0.08)),
    rgba(7, 10, 16, 0.86);
}

body.minimal-view .widget-hide-tab-icon {
  border-color: #ffb25f;
}

body.minimal-view .widget-hide-tab-icon::before,
body.minimal-view .widget-hide-tab-icon::after {
  background: #ffb25f;
}

.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 .hud,
body.minimal-view .news-spotlight,
body.minimal-view .coord-debug-panel,
body.minimal-view .coord-debug-label,
body.minimal-view .black-music-dot {
  display: none !important;
}

body.mobile-layout.minimal-view:not(.black-music-active) .black-music-dot {
  display: block !important;
}

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

body.minimal-view.music-active .stage::before {
  opacity: 0.28 !important;
  animation: music-strobe 3.8s steps(1, end) infinite !important;
}

body.minimal-view.music-active .stage::after {
  opacity: 0.22 !important;
  animation: music-fireworks 7.5s steps(1, end) infinite !important;
}

body.minimal-view.play-active:not(.music-active) .stage::before {
  opacity: 0.28 !important;
  animation: play-background-drift 6.8s ease-in-out infinite alternate !important;
}

body.minimal-view.play-active:not(.music-active) .stage::after {
  opacity: 0.16 !important;
  animation: play-background-sparks 5.6s steps(1, end) infinite !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;
}

.player-edit-toggle {
  align-self: flex-start;
  border: 0;
  border-radius: 999px;
  background: rgba(124, 227, 210, 0.16);
  color: #7ce3d2;
  padding: 0.18rem 0.52rem;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

.player-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.32rem;
  min-width: min(24rem, calc(100vw - 4rem));
}

.player-edit-form[hidden] {
  display: none;
}

.player-edit-form label {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  color: rgba(246, 243, 235, 0.62);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-edit-form input {
  min-width: 0;
  height: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #f6f3eb;
  padding: 0 0.45rem;
  font: inherit;
  font-size: 0.68rem;
  outline: none;
}

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

.player-edit-form input[type="color"] {
  padding: 0.12rem;
}

.player-edit-actions {
  display: flex;
  gap: 0.28rem;
}

.player-edit-actions button {
  height: 1.55rem;
  border: 0;
  border-radius: 999px;
  background: #7ce3d2;
  color: #051015;
  padding: 0 0.58rem;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.player-edit-actions button + button {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(246, 243, 235, 0.82);
}

.player-edit-status {
  align-self: center;
  min-height: 1rem;
  color: rgba(246, 243, 235, 0.62);
  font-size: 0.62rem !important;
}

.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-time.is-loading {
  color: #ffb25f;
  text-shadow: 0 0 16px rgba(255, 178, 95, 0.55);
}

.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;
}

.black-music-dot {
  position: fixed;
  z-index: 12;
  left: 50%;
  top: 68%;
  width: clamp(3.4rem, 9vw, 5.4rem);
  aspect-ratio: 1;
  border: 2px solid rgba(246, 243, 235, 0.88);
  border-radius: 50%;
  background: #000;
  box-shadow:
    0 0 0 0.35rem rgba(124, 227, 210, 0.13),
    0 0 34px rgba(0, 0, 0, 0.72),
    inset 0 0 18px rgba(124, 227, 210, 0.18);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.black-music-dot::before {
  content: "";
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: #7ce3d2;
  box-shadow: 0 0 18px rgba(124, 227, 210, 0.68);
}

.black-music-dot:hover {
  border-color: #7ce3d2;
}

.black-music-player {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: stretch;
  background: #000;
  color: #f6f3eb;
  overflow: hidden;
  pointer-events: auto;
}

.black-music-player[hidden] {
  display: none;
}

.black-music-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(1rem, 3vw, 2.4rem);
  background:
    linear-gradient(180deg, rgba(124, 227, 210, 0.08), transparent 28%),
    #000;
}

.black-music-head {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(246, 243, 235, 0.16);
}

.black-music-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 0;
}

.black-music-head span,
.black-music-status {
  color: rgba(124, 227, 210, 0.78);
  font-size: clamp(0.78rem, 1.6vw, 1rem);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.black-music-close {
  min-height: 2.25rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 178, 95, 0.72);
  border-radius: 6px;
  background: rgba(255, 178, 95, 0.12);
  color: #ffb25f;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}

.black-music-close:hover,
.black-music-close:focus-visible {
  border-color: #ffb25f;
  background: rgba(255, 178, 95, 0.2);
  outline: none;
}

.black-music-head strong {
  overflow: hidden;
  color: #f6f3eb;
  font-size: clamp(1.55rem, 5vw, 4.4rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.black-music-now {
  margin: 0;
  overflow: hidden;
  color: #ffb25f;
  font-size: clamp(0.88rem, 1.9vw, 1.18rem);
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.black-music-seek {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  min-height: 2.2rem;
  overflow: hidden;
}

.black-music-seek span {
  color: rgba(246, 243, 235, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.black-music-seek input {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  accent-color: #ffb25f;
  cursor: pointer;
}

.black-music-seek input:disabled {
  cursor: default;
  opacity: 0.48;
}

.black-music-seek i {
  position: absolute;
  right: 0;
  bottom: 0.15rem;
  left: 4.1rem;
  height: 0.18rem;
  width: 0%;
  background: #ffb25f;
  box-shadow: 0 0 14px rgba(255, 178, 95, 0.52);
  pointer-events: none;
}

.black-music-list {
  display: grid;
  align-content: start;
  gap: 0.14rem;
  min-height: 0;
  max-height: 100%;
  margin: 0;
  padding: 0.75rem 0.55rem 0.75rem 0;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(124, 227, 210, 0.86) rgba(246, 243, 235, 0.12);
  scrollbar-width: thin;
  list-style: none;
}

.black-music-list:focus {
  outline: 1px solid rgba(124, 227, 210, 0.42);
  outline-offset: 0.25rem;
}

.black-music-list::-webkit-scrollbar {
  width: 0.7rem;
}

.black-music-list::-webkit-scrollbar-track {
  background: rgba(246, 243, 235, 0.1);
}

.black-music-list::-webkit-scrollbar-thumb {
  background: rgba(124, 227, 210, 0.82);
}

.black-music-item {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) minmax(5rem, 18rem);
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.2rem);
  min-height: 2.15rem;
  padding: 0.32rem 0.75rem;
  border: 1px solid transparent;
  color: rgba(246, 243, 235, 0.72);
  cursor: pointer;
}

.black-music-index {
  color: rgba(255, 178, 95, 0.68);
  font-size: 0.82rem;
  font-weight: 900;
}

.black-music-item strong {
  overflow: hidden;
  font-size: clamp(0.95rem, 2.2vw, 1.35rem);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.black-music-item span:last-child {
  overflow: hidden;
  color: rgba(246, 243, 235, 0.42);
  font-size: 0.82rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.black-music-item.is-selected {
  border-color: rgba(124, 227, 210, 0.78);
  background: rgba(124, 227, 210, 0.13);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 28px rgba(124, 227, 210, 0.18);
}

.black-music-item.is-playing .black-music-index,
.black-music-item.is-playing strong {
  color: #ffb25f;
}

.black-music-status {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(246, 243, 235, 0.16);
}

body.black-music-active .hud,
body.black-music-active .news-spotlight,
body.black-music-active .mobile-action-pad,
body.black-music-active .widget-hide-tab,
body.black-music-active .sling-layer,
body.black-music-active .black-music-dot {
  display: none !important;
}

body.black-music-active {
  overflow: hidden;
}

@media (max-width: 720px) {
  .black-music-item {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .black-music-item span:last-child {
    display: none;
  }
}

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

.news-load-veil {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  display: grid;
  min-width: min(21rem, calc(100vw - 2rem));
  gap: 0.35rem;
  padding: 0.85rem 1rem 0.9rem 3.05rem;
  border: 1px solid rgba(255, 178, 95, 0.56);
  border-radius: 14px;
  background:
    radial-gradient(circle at 1.4rem 50%, rgba(255, 178, 95, 0.3), transparent 1.6rem),
    rgba(5, 7, 11, 0.9);
  box-shadow:
    0 16px 52px rgba(0, 0, 0, 0.48),
    0 0 34px rgba(255, 178, 95, 0.22);
  color: #f6f3eb;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 0.6rem));
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.news-load-veil::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: calc(50% - 0.6rem);
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid rgba(255, 178, 95, 0.28);
  border-top-color: #ffb25f;
  border-radius: 50%;
  animation: news-load-spin 0.9s linear infinite;
}

.news-load-veil[hidden],
.news-load-status[hidden] {
  display: none;
}

.news-load-veil.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.news-load-veil-title,
.news-load-veil-count {
  margin: 0;
}

.news-load-veil-title {
  color: #ffb25f;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-load-veil-count {
  color: rgba(246, 243, 235, 0.78);
  font-size: 0.82rem;
  line-height: 1.3;
}

.news-load-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  max-width: min(28rem, 48vw);
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(255, 178, 95, 0.34);
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.62);
  color: rgba(246, 243, 235, 0.72);
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.news-load-status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid rgba(255, 178, 95, 0.22);
  border-top-color: #ffb25f;
  border-radius: 50%;
  animation: news-load-spin 0.9s linear infinite;
}

.news-load-status.is-visible {
  opacity: 1;
}

.news-load-status-label {
  color: #ffb25f;
  font-weight: 800;
  text-transform: uppercase;
}

.news-load-status-count {
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes news-load-spin {
  to {
    transform: rotate(360deg);
  }
}

.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="pending"] {
  padding: 0.38rem 0.58rem;
  font-size: 0.68rem;
}

.drop-toast[data-phase="pending"] .drop-toast-mark {
  font-size: 0.72rem;
}

.drop-toast[data-phase="pending"] .drop-toast-title,
.drop-toast[data-phase="pending"] strong {
  font-size: 0.68rem;
}

.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, 211, 143, 0.62);
  border-radius: 10px;
  background: rgba(5, 7, 11, 0.88);
  box-shadow:
    0 0 0 1px rgba(124, 227, 210, 0.2),
    0 0 28px rgba(255, 178, 95, 0.24),
    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 {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(255, 245, 220, 0.5);
  background: #0a0d12;
  min-height: 5rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 178, 95, 0.28),
    0 0 22px rgba(124, 227, 210, 0.2);
}

.news-spotlight-media::after,
.news-card-figure::after {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  box-shadow:
    0 0 0 0.28rem rgba(255, 178, 95, 0.15),
    0 0 1.3rem rgba(124, 227, 210, 0.32),
    inset 0 0 1.2rem rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.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: none;
}

@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 {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 245, 220, 0.48);
  background: #0a0d12;
  box-shadow:
    inset 0 0 0 1px rgba(255, 178, 95, 0.22),
    0 0 18px rgba(124, 227, 210, 0.18);
}

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

.news-card-figure--text::after {
  display: none;
}

.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);
}

.play-stats-gfx-scrim {
  position: absolute;
  inset: 0;
  top: var(--play-stats-top, 0px);
  z-index: 12;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(124, 227, 210, 0.03) 0,
      rgba(124, 227, 210, 0.03) 1px,
      transparent 1px,
      transparent 18px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 178, 95, 0.025) 0,
      rgba(255, 178, 95, 0.025) 1px,
      transparent 1px,
      transparent 18px
    );
  opacity: 0.55;
  mix-blend-mode: screen;
}

.play-stats-gfx-layer {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--play-stats-top, 0px);
  z-index: 4;
  width: 100%;
  max-height: none;
  overflow: hidden;
  padding: 0.28rem clamp(0.75rem, 2vw, 1.5rem) 0.34rem;
  border: 0;
  border-bottom: 1px solid rgba(124, 227, 210, 0.34);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(5, 10, 14, 0.92), rgba(5, 10, 14, 0.78));
  color: #d8f5ef;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  font-size: 0.68rem;
  line-height: 1.2;
}

.play-stats-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.play-stats-gfx-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  flex-shrink: 0;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7ce3d2;
}

.play-stats-gfx-head kbd {
  padding: 0.08rem 0.32rem;
  border: 1px solid rgba(124, 227, 210, 0.5);
  border-radius: 0.35rem;
  font-size: 0.62rem;
  color: #fff7b0;
}

.play-stats-grid {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.38rem;
  margin: 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.play-stats-grid > div {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  flex: 0 0 auto;
  padding: 0.16rem 0.42rem;
  border: 1px solid rgba(124, 227, 210, 0.16);
  border-radius: 999px;
  background: rgba(124, 227, 210, 0.07);
  white-space: nowrap;
}

.play-stats-grid dt {
  margin: 0;
  color: rgba(216, 245, 239, 0.72);
}

.play-stats-grid dt::after {
  content: ":";
}

.play-stats-grid dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  color: #fff7b0;
}

.play-stats-players {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.28rem;
  padding-top: 0.28rem;
  border-top: 1px solid rgba(124, 227, 210, 0.16);
  min-width: 0;
  overflow-x: auto;
}

.play-stats-players h3 {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(124, 227, 210, 0.85);
}

.play-stats-player-list {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
}

.play-stats-player-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding: 0.14rem 0.42rem;
  border: 1px solid rgba(255, 178, 95, 0.22);
  border-radius: 999px;
  background: rgba(255, 178, 95, 0.08);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.play-stats-player-name {
  color: #ffb25f;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-stats-empty {
  color: rgba(216, 245, 239, 0.6);
  white-space: nowrap;
}

body:not(.play-stats-gfx-on) .play-stats-gfx-scrim,
body:not(.play-stats-gfx-on) .play-stats-gfx-layer {
  display: none;
}

.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: hidden;
  }

  body:not(.mobile-menus-open) .hud,
  body:not(.mobile-menus-open) .news-spotlight,
  body:not(.mobile-menus-open) .coord-debug-panel,
  body:not(.mobile-menus-open) .coord-debug-label {
    display: none !important;
  }

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

  .hud-right {
    left: 0.45rem;
    right: 0.45rem;
    bottom: max(0.45rem, env(safe-area-inset-bottom));
    width: auto;
  }

  .widget-hide-tab {
    left: 0.45rem;
    top: max(0.45rem, env(safe-area-inset-top));
    min-height: 2.3rem;
    padding: 0.42rem 0.68rem 0.42rem 0.52rem;
  }

  .mobile-action-pad {
    display: grid;
  }

  body.mobile-menus-open .mobile-action-pad {
    display: none;
  }

  .bottom-widget {
    max-height: 34vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .bottom-widget button,
  .bottom-widget input,
  .player-edit-form input,
  .player-edit-form button,
  .news-spotlight-close {
    min-height: 2.6rem;
    font-size: 1rem;
  }

  .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));
  }
}
