/* ==========================================================================
   GIANT GAMERS NETWORK — UNIVERSAL GLOBAL HEADER, STATS TICKER & RADIO BAR
   Applies across all network domains:
   - giantgamers.com (Portal & Subpages)
   - arcade.giantgamers.com (Arcade)
   - giantgamers.top (Spirit Beasts)
   - giantgamers.us (HouseCat)
   - giantgamers.win (WhiskerVale)
   ========================================================================== */

:root {
  --gg-bg: #070918;
  --gg-bar-bg: rgba(7, 10, 26, 0.96);
  --gg-border: rgba(147, 51, 234, 0.38);
  --gg-cyan: #00f0ff;
  --gg-purple: #a855f7;
  --gg-pink: #ec4899;
  --gg-green: #22c55e;
  --gg-text: #e2e8f0;
  --gg-muted: #94a3b8;
  --gg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --gg-bottom-bar-height: 64px;
}

/* Page padding reservation for the fixed bottom radio bar */
body.has-gg-radio-bar,
body.has-global-radio {
  padding-bottom: var(--gg-bottom-bar-height) !important;
}

/* ==========================================================================
   1. NETWORK STATS TICKER & UTILITY BAR (TOP)
   ========================================================================== */
.gg-network-ticker-bar {
  background: #040612;
  border-bottom: 1px solid rgba(147, 51, 234, 0.3);
  font-family: var(--gg-font);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--gg-muted);
  position: relative;
  z-index: 10001;
  user-select: none;
}

.gg-ticker-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.gg-stats-stream {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.gg-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-weight: 600;
  color: #7dd3fc;
}

.gg-stat-item strong {
  color: #ffffff;
  font-weight: 800;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.gg-stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gg-green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  display: inline-block;
  animation: gg-dot-pulse 2s infinite ease-in-out;
}

/* Only the radio lamp becomes green after a fresh station health response. */
.gg-stat-item.gg-stat-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39ff69;
  box-shadow: 0 0 9px #39ff69;
}

@keyframes gg-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.gg-ticker-clock strong {
  color: var(--gg-cyan);
}

.gg-ticker-shortcuts {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gg-ticker-shortcuts a {
  color: var(--gg-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.gg-ticker-shortcuts a:hover {
  color: var(--gg-cyan);
}

/* ==========================================================================
   2. GLOBAL HEADER MENU (MATCHINGmedia_1792860477042_dbe7c1fe.png)
   ========================================================================== */
.gg-global-header {
  background: var(--gg-bar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gg-border);
  font-family: var(--gg-font);
  position: sticky;
  top: 0;
  z-index: 10000;
}

.gg-header-container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gg-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.gg-brand-emblem {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.45));
}

.gg-brand-text {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  display: flex;
  gap: 4px;
}

.gg-word-giant {
  color: var(--gg-cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.gg-word-gamers {
  color: var(--gg-pink);
  text-shadow: 0 0 12px rgba(236, 72, 153, 0.6);
}

.gg-header-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  flex-wrap: wrap;
}

.gg-nav-item {
  position: relative;
}

.gg-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  color: var(--gg-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.gg-nav-link:hover,
.gg-nav-item:hover > .gg-nav-link,
.gg-nav-link.is-active {
  background: rgba(147, 51, 234, 0.18);
  color: var(--gg-cyan);
}

.gg-nav-link.is-active {
  border-bottom: 2px solid var(--gg-cyan);
}

.gg-caret {
  font-size: 0.65rem;
  color: var(--gg-muted);
  transition: transform 0.15s ease;
}

.gg-nav-item:hover .gg-caret {
  transform: rotate(180deg);
  color: var(--gg-cyan);
}

/* Dropdown Flyouts */
.gg-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #090c22;
  border: 1px solid var(--gg-border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  padding: 6px 0;
  z-index: 10002;
}

.gg-nav-item:hover > .gg-dropdown-menu,
.gg-nav-item:focus-within > .gg-dropdown-menu,
.gg-nav-details:hover .gg-dropdown-menu,
.gg-nav-details:focus-within .gg-dropdown-menu {
  display: block;
}

.gg-dropdown-menu a {
  display: flex;
  flex-direction: column;
  padding: 8px 14px;
  color: var(--gg-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.12s ease;
}

.gg-dropdown-menu a:hover {
  background: rgba(147, 51, 234, 0.25);
  color: var(--gg-cyan);
}

.gg-dropdown-menu a small {
  color: var(--gg-muted);
  font-size: 0.72rem;
  font-weight: normal;
  margin-top: 2px;
}

/* Header Action Buttons (Account & Status) */
.gg-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.gg-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(147, 51, 234, 0.4);
  background: rgba(15, 20, 45, 0.6);
  color: var(--gg-text);
  transition: all 0.15s ease;
}

.gg-btn-action:hover {
  background: rgba(147, 51, 234, 0.3);
  border-color: var(--gg-cyan);
  color: #fff;
  transform: translateY(-1px);
}

.gg-status-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gg-green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

/* ==========================================================================
   3. PERSISTENT FIXED BOTTOM RADIO BAR
   ========================================================================== */
.gg-persistent-radio-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--gg-bottom-bar-height);
  background: rgba(6, 8, 22, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(147, 51, 234, 0.4);
  font-family: var(--gg-font);
  color: var(--gg-text);
  z-index: 99999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
}

.gg-radio-bar-inner {
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Match the portal dock order: Play, station, volume, popout, requests. */
.gg-radio-center { display: contents; }
.gg-radio-center .gg-btn-play-toggle { order: 0; flex: none; width: 48px; height: 48px; color: #fff; background: linear-gradient(180deg,#1a63e0,#0f4bb8); }
.gg-radio-left { order: 1; flex: 1 1 260px; }
.gg-radio-album-art { display: none; }
.gg-radio-center .gg-volume-wrapper { order: 2; }
.gg-radio-center .gg-btn-popout, .gg-btn-popout {
  order: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.08);
  color: #00f0ff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex: none;
}
.gg-btn-popout:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}
.gg-btn-popout:focus-visible { outline: 2px solid #00f0ff; outline-offset: 3px; }
html body input:focus-visible { outline: 2px solid #00f0ff !important; outline-offset: 2px; }
.gg-radio-right { order: 4; }

/* Left: Art & Meta */
.gg-radio-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  max-width: 380px;
}

.gg-radio-album-art {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(147, 51, 234, 0.3);
  background: #000;
  flex-shrink: 0;
}

.gg-radio-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  line-height: 1.25;
}

.gg-radio-station-badge {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gg-cyan);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gg-radio-live-ping {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gg-green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.9);
  display: inline-block;
}

.gg-radio-track-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gg-radio-track-artist {
  font-size: 0.74rem;
  color: var(--gg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Center: Play / Pause, Mute, Volume */
.gg-radio-center {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gg-btn-play-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--gg-cyan), var(--gg-purple));
  color: #000;
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gg-btn-play-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.7);
}

.gg-volume-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gg-btn-mute {
  background: none;
  border: none;
  color: var(--gg-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.12s ease;
}

.gg-btn-mute:hover {
  color: #fff;
}

.gg-volume-slider {
  width: 80px;
  accent-color: var(--gg-cyan);
  cursor: pointer;
}

/* Right: Inline Song Search & Request */
.gg-radio-right {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 260px;
}

.gg-radio-search-box {
  position: relative;
  width: 100%;
}

.gg-search-icon-inside {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gg-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.gg-radio-search-input {
  width: 100%;
  padding: 7px 12px 7px 32px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(147, 51, 234, 0.4);
  border-radius: 20px;
  color: #fff;
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  transition: all 0.15s ease;
}

.gg-radio-search-input:focus {
  outline: 2px solid var(--gg-cyan);
  outline-offset: 2px;
  border-color: var(--gg-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  background: #0f172a;
}

/* Search Flyout Modal (Floats UP above the bottom bar) */
.gg-radio-request-flyout {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 360px;
  max-width: 90vw;
  max-height: 420px;
  background: #090c22;
  border: 1px solid var(--gg-border);
  border-radius: 10px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  z-index: 100000;
  flex-direction: column;
}

.gg-radio-request-flyout.is-open {
  display: flex;
}

.gg-flyout-header {
  padding: 10px 14px;
  background: rgba(147, 51, 234, 0.15);
  border-bottom: 1px solid rgba(147, 51, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gg-cyan);
}

.gg-flyout-status {
  padding: 8px 12px;
  font-size: 0.74rem;
  display: none;
}

.gg-flyout-status.is-visible {
  display: block;
}

.gg-flyout-status.status-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-bottom: 1px solid rgba(34, 197, 94, 0.3);
}

.gg-flyout-status.status-error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
}

.gg-flyout-results-list {
  overflow-y: auto;
  max-height: 320px;
}

.gg-flyout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.12s ease;
}

.gg-flyout-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.gg-flyout-thumb {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  background: #000;
  flex-shrink: 0;
}

.gg-flyout-info {
  flex: 1;
  min-width: 0;
}

.gg-flyout-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gg-flyout-artist {
  font-size: 0.72rem;
  color: var(--gg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gg-btn-flyout-request {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.1);
  color: var(--gg-cyan);
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.gg-btn-flyout-request:hover:not(:disabled) {
  background: var(--gg-cyan);
  color: #000;
}

.gg-btn-flyout-request:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Enhancements for giantgamers.com #radio-dock: ensure always full width with controls & request box */
html body #radio-dock {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: none !important;
  border-radius: 0 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: block !important;
  z-index: 50 !important;
}
#radio-dock .dock-inner {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  max-width: 1560px !important;
  min-height: 64px !important;
  width: min(100%, var(--wrap, 1560px)) !important;
  margin-inline: auto !important;
}
#radio-dock .dock-play {
  width: 46px !important;
  height: 46px !important;
  flex: none !important;
}
#radio-dock .dock-meta {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
#radio-dock .dock-meta p {
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
#radio-dock .dock-station {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 800 !important;
  font-size: .92rem !important;
}
#radio-dock .dock-now {
  color: var(--muted, #94a3b8) !important;
  font-size: .84rem !important;
}
#radio-dock .radio-wave {
  flex: none !important;
  width: 24px !important;
}
:root:not([data-radio="playing"]) #radio-dock .radio-wave {
  display: flex !important;
  visibility: hidden !important;
}
#radio-dock .gg-radio-right {
  margin-left: auto !important;
  min-width: 260px !important;
}
.gg-ticker-inner { justify-content: flex-start; }
.gg-portal-utility .utility-inner { width: min(100%, var(--wrap)); max-width: none; gap: 18px; min-height: 40px; }
.gg-portal-utility .gg-stats-stream { flex: 1 1 auto; min-width: 0; gap: clamp(12px, 1.3vw, 24px); overflow-x: auto; scrollbar-width: thin; white-space: nowrap; font-size: .68rem; }
.gg-portal-utility .utility-controls { flex: none; gap: 12px; margin-left: auto; }
.gg-portal-utility .utility-controls .utility-menu { display: block !important; }
.gg-portal-utility .gg-stat-item { flex: none; }
.gg-portal-utility .gg-ticker-clock { color: var(--gg-cyan); }
.gg-portal-utility { position: sticky !important; top: 0; z-index: 101; }
.gg-portal-utility ~ .site-header.approved-header { position: sticky; top: var(--gg-utility-height, 40px); }
html { scroll-padding-top: calc(var(--gg-utility-height, 0px) + var(--header-h, 68px) + 16px); }
.skip { z-index: 10010; }
.gg-portal-utility .gg-stats-stream { font-size: .72rem; }
.approved-header .brand-word .w-giant { color: #00f3ff; }
.approved-header .brand-word .w-gamers { color: #ff47ad; }
.gg-stat-item[data-metric-state="unavailable"] strong { color: #a6b0c1; font-weight: 650; }
.gg-network-health::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #8793a6; }
.gg-network-health[data-health="operational"]::before { background: #39ff69; box-shadow: 0 0 9px #39ff69; }
.gg-network-health[data-health="degraded"]::before,
.gg-network-health[data-health="maintenance"]::before { background: #ffb800; box-shadow: 0 0 9px #ffb800; }
html body [data-network-health-lamp] { background: #8793a6; box-shadow: none; animation: none; }
html body [data-network-health-lamp][data-health="operational"] { background: #39ff69; box-shadow: 0 0 9px #39ff69; animation: gg-dot-pulse 2s ease-in-out infinite; }
html body [data-network-health-lamp][data-health="degraded"],
html body [data-network-health-lamp][data-health="maintenance"] { background: #ffb800; box-shadow: 0 0 9px #ffb800; }
@media (prefers-reduced-motion: reduce) { html body [data-network-health-lamp] { animation: none !important; } }
@media (max-width: 900px) {
  .gg-portal-utility .utility-inner { flex-wrap: wrap; gap: 4px 12px; padding-block: 5px; }
  .gg-portal-utility .gg-stats-stream { flex-basis: 100%; padding-block: 3px; }
  .gg-portal-utility .utility-controls { width: 100%; justify-content: flex-end; }
  .gg-portal-utility .utility-controls summary,
  .gg-portal-utility .utility-controls button { min-height: 44px; display: inline-flex; align-items: center; }
  #radio-dock .dock-inner {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) auto auto;
    gap: 6px 8px !important;
    padding: 8px 12px !important;
  }
  #radio-dock .dock-play { grid-area: 1 / 1; }
  :root #radio-dock .dock-inner > .radio-wave { display: none !important; }
  #radio-dock .dock-meta { grid-area: 1 / 2; }
  #radio-dock .dock-volume { grid-area: 1 / 3; }
  #radio-dock .dock-link { grid-area: 1 / 4; width: 44px; min-width: 44px; height: 44px; padding: 0; justify-self: end; }
  #radio-dock .dock-link-text { display: none; }
  #radio-dock .gg-radio-right { grid-area: 2 / 1 / 3 / 3; width: 100%; min-width: 0 !important; }
  #radio-dock .webcat-visibility-toggle { grid-area: 2 / 3; }
  #radio-dock .gg-btn-popout { grid-area: 2 / 4; padding-inline: 8px; }
  #radio-dock .gg-radio-search-input { height: 44px; min-width: 0; }
  #radio-dock .dock-station { font-size: .72rem !important; gap: 4px !important; }
  #radio-dock .dock-station .tag { font-size: .58rem; padding-inline: 3px; }
  #radio-dock .dock-now { font-size: .65rem !important; }
}
@media (max-width: 700px) {
  .gg-ticker-inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .gg-stats-stream { flex-wrap: nowrap; white-space: nowrap; }
}

@media (max-width: 900px) {
  .gg-header-nav { display: none; }
  .gg-ticker-shortcuts { display: none; }
  .gg-radio-right { display: none; }
}

@media (max-width: 900px) {
  #radio-dock .gg-radio-right { display: flex !important; }
}

/* Keep the shared bar within narrow product pages. */
@media (max-width: 900px) {
  :root { --gg-bottom-bar-height: 112px; }
  .gg-persistent-radio-bar { height: auto; min-height: var(--gg-bottom-bar-height); padding: 7px 0; }
  .gg-persistent-radio-bar .gg-radio-bar-inner { flex-wrap: wrap; gap: 6px 10px; }
  .gg-persistent-radio-bar .gg-radio-right { display: flex; order: 4; flex: 1 1 100%; min-width: 0; }
}
@media (max-width: 480px) {
  .gg-header-brand .gg-brand-text { display: none; }
  .gg-header-container { gap: 8px; }
  .gg-persistent-radio-bar .gg-radio-left { flex: 1 1 0; min-width: 0; }
  .gg-persistent-radio-bar .gg-radio-meta { min-width: 0; }
}

/* Verified telemetry: green healthy, amber unknown/issues, red confirmed down. */
.gg-stat-item[data-health]::before { content: ''; display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #ffbf32; box-shadow: 0 0 7px #ffbf32; }
.gg-stat-item[data-health="operational"]::before { background: #39ff69; box-shadow: 0 0 9px #39ff69; animation: gg-telemetry-blink 1.8s ease-in-out infinite; }
.gg-stat-item[data-health="down"]::before { background: #ff465c; box-shadow: 0 0 9px #ff465c; animation: none; }
html body [data-network-health-lamp][data-health="unknown"] { background: #ffbf32; box-shadow: 0 0 7px #ffbf32; }
html body [data-network-health-lamp][data-health="down"] { background: #ff465c; box-shadow: 0 0 9px #ff465c; animation: none; }
@keyframes gg-telemetry-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .gg-stat-item[data-health]::before { animation: none; } }

/* Shared shell v20261026: product navigation remains below these two rows. */
#gg-global-network-root:not(.network-utility) { position: sticky; top: 0; z-index: 10020; font-family: var(--gg-font); }
#gg-global-network-root *, .gg-persistent-radio-bar * { box-sizing: border-box; }
#gg-global-network-root .gg-global-header { position: relative; }
.gg-header-container, .gg-ticker-inner, .gg-radio-bar-inner { max-width: 1760px; width: 94%; }
.gg-ticker-inner { flex-wrap: nowrap; padding: 7px 0; gap: 18px; }
.gg-stats-stream { flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; scrollbar-width: thin; gap: clamp(10px,1vw,20px); font-size: 11px; }
.gg-stat-item { text-decoration: none; flex: none; }
.gg-stat-item:focus-visible, .gg-nav-link:focus-visible, .gg-menu-toggle:focus-visible { outline: 2px solid #00f3ff; outline-offset: 3px; }
.gg-header-container { min-height: 68px; height: auto; padding: 9px 0; }
.gg-header-container nav { min-width: 0; }
.gg-header-nav { flex-wrap: nowrap; gap: 2px; }
.gg-header-brand { gap: 8px; }
.gg-brand-text { font-size: 16px; }
.gg-nav-link { padding: 9px 7px; font-size: 12px; white-space: nowrap; }
.gg-nav-details { position: relative; }
.gg-nav-details summary { cursor: pointer; list-style: none; }
.gg-nav-details summary::-webkit-details-marker { display: none; }
.gg-nav-details[open] .gg-dropdown-menu { display: block; }
.gg-nav-details .gg-dropdown-menu { width: 280px; max-width: 85vw; max-height: min(70dvh,640px); overflow-y: auto; overscroll-behavior: contain; }
.gg-header-actions { flex: none; }
.gg-btn-action { font-size: 12px; }
.gg-menu-toggle { display: none; border: 1px solid #8145ad; background: #141026; color: #edf6ff; padding: 10px 14px; border-radius: 8px; cursor: pointer; }
.gg-language { margin-left: auto; display: flex; align-items: center; gap: 5px; color: #d2e4f6; font-size: 11px; }
.gg-language select { background: #0a0e20; color: #d2e4f6; border: 1px solid #564276; border-radius: 5px; padding: 4px; max-width: 110px; }
.gg-legacy-dock { display: none !important; }
html body #radio-dock .gg-legacy-dock { display: none !important; }
html body .gg-persistent-radio-bar { min-height: 68px; height: auto; padding: 9px 0; background: #070b19f5; border-top: 1px solid #00d5ed; font-family: var(--gg-font); color: #edf6ff; }
html body .gg-radio-bar-inner { min-width: 0; gap: 14px; }
.gg-persistent-radio-bar .gg-radio-left { max-width: none; min-width: 120px; flex: 1 1 200px; }
.gg-radio-meta { min-width: 0; }
.gg-radio-station-badge { font-size: 10px; letter-spacing: .06em; }
.gg-radio-track-title { font-size: 13px; }
.gg-radio-track-artist { font-size: 11px; }
.gg-persistent-radio-bar .gg-radio-right { display: flex !important; min-width: 200px; width: min(28vw,380px); }
.gg-radio-live-ping { background: #ffbf32; animation: none; }
html[data-radio-health="online"] .gg-radio-live-ping { background: #39ff69; animation: gg-telemetry-blink 1.8s ease-in-out infinite; }
html[data-radio-health="offline"] .gg-radio-live-ping { background: #ff465c; animation: none; }
.gg-radio-request-flyout { max-height: min(420px,65vh); width: min(460px,90vw); right: 0; }
.gg-radio-search-input { width: 100%; }
.gg-persistent-radio-bar .webcat-visibility-toggle { order: 4; position: static !important; flex: none; font-size: 11px; padding: 9px; }
.gg-global-header ~ .header, body > .header, .sl-header, .arcade-header { scroll-margin-top: var(--gg-shell-height,110px); }
body:has(#gg-global-network-root) > .header, body:has(#gg-global-network-root) .sl-header { top: var(--gg-shell-height,110px); }
@media (max-width: 1250px) {
 .gg-header-container { flex-wrap: wrap; }
 .gg-menu-toggle { display: block; margin-left: auto; }
 .gg-header-container nav { display: none; order: 4; flex-basis: 100%; }
 .gg-menu-open .gg-header-container nav { display: block; }
 .gg-header-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
 .gg-nav-details .gg-dropdown-menu { position: relative; width: 100%; min-width: 0; }
 .gg-nav-details .gg-dropdown-menu a { white-space: normal; }
}
@media (max-width: 700px) {
 .gg-header-container, .gg-ticker-inner, .gg-radio-bar-inner { width: 94%; }
 .gg-ticker-inner { overflow: visible; flex-wrap: wrap; gap: 4px; }
 .gg-stats-stream { flex: 1 1 100%; font-size: 10px; }
 .gg-language { margin-left: auto; }
 .gg-header-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .gg-header-brand .gg-brand-text { display: flex; font-size: 13px; }
 .gg-header-actions { gap: 4px; }
 .gg-header-actions .gg-btn-action { padding: 7px; font-size: 11px; }
 .gg-brand-emblem { width: 34px; height: 34px; }
 .gg-menu-toggle { padding: 8px; font-size: 12px; }
 .gg-persistent-radio-bar .gg-radio-bar-inner { flex-wrap: wrap; gap: 6px 10px; padding: 0; }
 .gg-persistent-radio-bar .gg-radio-left { flex: 1 1 180px; min-width: 0; }
 .gg-persistent-radio-bar .gg-radio-right { flex: 1 1 100%; width: 100%; order: 8; }
 .gg-persistent-radio-bar .gg-volume-wrapper { flex: 1 1 110px; }
 .gg-persistent-radio-bar .gg-btn-popout { padding: 7px; font-size: 11px; min-height: 34px; }
 .gg-persistent-radio-bar .gg-btn-play-toggle { width: 40px; height: 40px; }
 .gg-persistent-radio-bar .gg-radio-search-input { height: 34px; }
}
@media (prefers-reduced-motion: reduce) { html[data-radio-health] .gg-radio-live-ping { animation: none; } }

#gg-global-network-root .gg-stat-item { font-family: var(--gg-font); font-size: inherit; letter-spacing: .02em; line-height: 1.5; }
#gg-global-network-root .gg-header-brand { margin: 0; padding: 0; }
#gg-global-network-root .gg-header-actions { display: flex; gap: 8px; }
@media (max-width: 700px) {
 #gg-global-network-root .gg-header-actions { gap: 4px; }
 #gg-global-network-root .gg-header-container { gap: 6px; }
 #gg-global-network-root .gg-header-brand .gg-brand-text { font-size: 12px; }
}

/* One shell implementation and dimensions on every owned application. */
html body .gg-legacy-header, html body .gg-legacy-utility { display: none !important; }
/* Hide superseded portal bars before deferred JS mounts the shared shell.
   Browsers with scripting disabled retain the original navigation. */
@media (scripting: enabled) {
  html:has(head script[src*="global-network-nav.js"]) body > .network-utility,
  html:has(head script[src*="global-network-nav.js"]) body > .site-header.approved-header { display:none !important; }
}
#gg-global-network-root { color: #e2e8f0; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 14px; line-height: 1.4; text-align: left; }
#gg-global-network-root a { text-decoration: none; }
#gg-global-network-root button, #gg-global-network-root select, #gg-global-network-root summary { font-family: inherit; line-height: 1.4; }
#gg-global-network-root .gg-network-ticker-bar { height: 40px; }
#gg-global-network-root .gg-ticker-inner { height: 40px; padding: 0; }
#gg-global-network-root .gg-header-container { height: 68px; min-height: 68px; padding: 9px 0; }
#gg-global-network-root .gg-header-actions .gg-btn-action { padding: 9px 12px; height: 38px; box-sizing: border-box; }
#gg-global-network-root .gg-universal-utilities { margin-left: auto; display: flex; flex: none; align-items: center; gap: 14px; white-space: nowrap; }
#gg-global-network-root .gg-effects-toggle { min-height: 28px; padding: 4px 8px; background: #201032; border: 1px solid #7734ac; border-radius: 5px; color: #d5afff; font-size: 11px; font-weight: 700; cursor: pointer; }
#gg-global-network-root .gg-utility-details { position: relative; font-size: 11px; }
#gg-global-network-root .gg-utility-details summary { cursor: pointer; list-style: none; padding: 6px 0; }
#gg-global-network-root .gg-utility-details summary::after { content: ' ⌄'; color: #5be9ff; }
#gg-global-network-root .gg-utility-panel { position: absolute; right: 0; top: 100%; width: 240px; padding: 8px; background: #0a0d20; border: 1px solid #784aa0; border-radius: 8px; z-index: 10; }
#gg-global-network-root .gg-utility-panel a { display: block; color: #d9eaff; padding: 10px; white-space: normal; }
#gg-global-network-root .gg-utility-panel a:hover { background: #27173a; }
#gg-global-network-root .gg-language { margin: 0; font-size: 11px; }
#gg-global-network-root .gg-language select { height: 28px; }
html { scroll-padding-top: calc(var(--gg-shell-height,108px) + 16px); }
html[data-gg-effects="off"] .ambient-scene, html[data-gg-effects="off"] #ambient-canvas { display: none !important; }
html body .gg-persistent-radio-bar { height: 68px !important; min-height: 68px !important; padding: 8px 0 !important; z-index: 10010 !important; }
html body .gg-persistent-radio-bar .gg-radio-bar-inner { display: grid !important; grid-template-columns: 48px minmax(140px,1fr) 150px 90px 76px minmax(220px,380px); grid-template-rows: 48px; gap: 12px; align-items: center; padding: 0; }
.gg-radio-center { display: contents; }
html body .gg-radio-bar-inner .gg-btn-play-toggle { grid-column: 1; grid-row: 1; margin: 0; }
html body .gg-radio-bar-inner .gg-radio-left { grid-column: 2; grid-row: 1; min-width: 0; width: auto; margin: 0; }
html body .gg-radio-bar-inner .gg-volume-wrapper { grid-column: 3; grid-row: 1; width: auto; }
html body .gg-radio-bar-inner .gg-btn-popout { grid-column: 4; grid-row: 1; min-width: 0; justify-content: center; padding: 6px; font-size: 11px; }
html body .gg-radio-bar-inner .webcat-visibility-toggle { grid-column: 5; grid-row: 1; justify-self: stretch; white-space: nowrap; padding: 6px; font-size: 11px; }
html body .gg-radio-bar-inner .gg-radio-right { grid-column: 6; grid-row: 1; min-width: 0; width: auto; margin: 0; }
html body .gg-radio-bar-inner .gg-radio-search-box { width: 100%; }
html body .gg-radio-bar-inner .gg-radio-search-input { height: 36px; font-family: var(--gg-font); font-size: 12px; }
html body .gg-radio-bar-inner .gg-radio-meta { font-family: var(--gg-font); font-size: 12px; line-height: 1.25; }
html body .gg-radio-bar-inner .gg-radio-track-title { line-height: 1.25; font-size: 13px; font-weight: 700; }
@media (max-width:1250px) {
 #gg-global-network-root .gg-header-container { height: auto; min-height: 64px; }
 #gg-global-network-root .gg-stats-stream { min-width: 0; flex: 1 1 auto; }
 #gg-global-network-root.gg-menu-open .gg-header-container { height: auto; }
}
@media (max-width:1100px) {
 html body .gg-persistent-radio-bar { height: 156px !important; min-height: 156px !important; }
 html body .gg-persistent-radio-bar .gg-radio-bar-inner { grid-template-columns: 48px minmax(90px,1fr) 105px; grid-template-rows: 48px 30px 34px; gap: 6px 10px; }
 html body .gg-radio-bar-inner .gg-radio-left { grid-column: 2; grid-row: 1; }
 html body .gg-radio-bar-inner .gg-volume-wrapper { grid-column: 3; grid-row: 1; min-width: 0; gap: 4px; }
 html body .gg-radio-bar-inner .gg-volume-slider { width: 72px; }
 html body .gg-radio-bar-inner .gg-btn-popout { grid-column: 1 / 3; grid-row: 2; justify-self: start; height: 30px; min-height: 30px; }
 html body .gg-radio-bar-inner .webcat-visibility-toggle { grid-column: 3; grid-row: 2; height: 30px; }
 html body .gg-radio-bar-inner .gg-radio-right { grid-column: 1 / -1; grid-row: 3; }
 html body .gg-radio-bar-inner .gg-btn-play-toggle { width: 40px; height: 40px; }
}
@media (max-width:700px) {
 #gg-global-network-root .gg-network-ticker-bar, #gg-global-network-root .gg-ticker-inner { height: 72px; }
 #gg-global-network-root .gg-ticker-inner { flex-wrap: wrap; align-content: center; gap: 3px; }
 #gg-global-network-root .gg-stats-stream { flex: 1 1 100%; height: 28px; }
 #gg-global-network-root .gg-universal-utilities { height: 34px; gap: 14px; }
 #gg-global-network-root .gg-header-container { min-height: 64px; }
 #gg-global-network-root .gg-header-actions .gg-btn-action { padding: 7px; height: 32px; font-size: 10px; }
 #gg-global-network-root .gg-header-brand .gg-brand-text { font-size: 11px; }
 #gg-global-network-root .gg-header-container { gap: 5px; }
}

html body .gg-persistent-radio-bar { border-top: 1px solid transparent; border-image: linear-gradient(90deg,#00f3ff,#a855f7,#ff007f) 1; }
/* XenForo's local navigation remains the third, product-specific row. */
body:has(#gg-global-network-root) .p-navSticky.is-sticky { top: var(--gg-shell-height,109px) !important; }
body:has(#gg-global-network-root) .p-navSticky { scroll-margin-top: var(--gg-shell-height,109px); }

/* Override historical portal ID rules with identical geometry for both dock IDs. */
html body :is(#radio-dock,#gg-global-radio-bar) .gg-radio-bar-inner { width: 94% !important; max-width: 1760px !important; height: 48px !important; display: grid !important; grid-template-columns: 48px minmax(140px,1fr) 150px 90px 76px minmax(220px,380px) !important; grid-template-rows: 48px !important; gap: 12px !important; }
html body :is(#radio-dock,#gg-global-radio-bar) .gg-btn-play-toggle { grid-column: 1 !important; grid-row: 1 !important; }
html body :is(#radio-dock,#gg-global-radio-bar) .gg-radio-left { grid-column: 2 !important; grid-row: 1 !important; min-width: 0 !important; }
html body :is(#radio-dock,#gg-global-radio-bar) .gg-volume-wrapper { grid-column: 3 !important; grid-row: 1 !important; }
html body :is(#radio-dock,#gg-global-radio-bar) .gg-btn-popout { grid-column: 4 !important; grid-row: 1 !important; }
html body :is(#radio-dock,#gg-global-radio-bar) .webcat-visibility-toggle { grid-column: 5 !important; grid-row: 1 !important; }
html body :is(#radio-dock,#gg-global-radio-bar) .gg-radio-right { grid-column: 6 !important; grid-row: 1 !important; min-width: 0 !important; width: 100% !important; margin: 0 !important; }
html body :is(#radio-dock,#gg-global-radio-bar) .gg-radio-search-box { width: 100% !important; }
html body :is(#radio-dock,#gg-global-radio-bar) .gg-radio-station-badge { white-space: nowrap; font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
html body :is(#radio-dock,#gg-global-radio-bar) .gg-radio-meta { max-height: 48px; overflow: hidden; }
@media (max-width:1100px) {
 html body :is(#radio-dock,#gg-global-radio-bar) .gg-radio-bar-inner { height: 124px !important; grid-template-columns: 48px minmax(90px,1fr) 105px !important; grid-template-rows: 48px 30px 34px !important; gap: 6px 10px !important; }
 html body :is(#radio-dock,#gg-global-radio-bar) .gg-btn-popout { grid-column: 1 / 3 !important; grid-row: 2 !important; }
 html body :is(#radio-dock,#gg-global-radio-bar) .webcat-visibility-toggle { grid-column: 3 !important; grid-row: 2 !important; }
 html body :is(#radio-dock,#gg-global-radio-bar) .gg-radio-right { grid-column: 1 / -1 !important; grid-row: 3 !important; }
}

.gg-traffic-page .gg-legacy-network-links, .gg-traffic-page .gg-legacy-network-link { display: none !important; }
.gg-traffic-page .gg-traffic-product-header, .gg-account-page .gg-account-product-header { top: var(--gg-shell-height,109px); }

/* Do not inherit account-form button dimensions or disclosure decoration. */
#gg-global-network-root button { width: auto; min-width: 0; margin-block: 0; box-shadow: none; }
#gg-global-network-root .gg-menu-toggle { font-size: 12px; font-weight: 600; line-height: 1.4; }
#gg-global-network-root .gg-utility-details summary { display: block; margin: 0; border: 0; border-radius: 0; padding: 6px 0; background: none; font-size: 11px; font-weight: 500; box-shadow: none; }
#gg-global-network-root .gg-nav-details summary { border: 0; background: transparent; box-shadow: none; }
html body :is(#radio-dock,#gg-global-radio-bar) { border-left: 0 !important; border-right: 0 !important; border-bottom: 0 !important; box-sizing: border-box !important; }
html body :is(#radio-dock,#gg-global-radio-bar) button { width: auto; min-width: 0; margin: 0; }
html body :is(#radio-dock,#gg-global-radio-bar) .gg-btn-play-toggle { width: 48px !important; height: 48px !important; }
html body :is(#radio-dock,#gg-global-radio-bar) .gg-btn-popout { width: auto !important; }
html body :is(#radio-dock,#gg-global-radio-bar) .gg-btn-mute { width: 28px !important; padding: 0; }
@media (max-width:1100px) { html body :is(#radio-dock,#gg-global-radio-bar) .gg-btn-play-toggle { width: 40px !important; height: 40px !important; } }

#gg-global-network-root .gg-menu-toggle { height: 44px; min-height: 44px; }
html body :is(#radio-dock,#gg-global-radio-bar) .gg-btn-play-toggle { min-height: 48px !important; }
html body :is(#radio-dock,#gg-global-radio-bar) .gg-btn-popout { min-height: 44px !important; }
html body :is(#radio-dock,#gg-global-radio-bar) .gg-btn-mute { min-height: 28px !important; height: 28px !important; }
/* Long public-tool menus remain reachable inside the phone viewport. */
@media(max-width:1250px){
 .gg-menu-open .gg-header-container nav{max-height:calc(100dvh - 235px);overflow-y:auto;overscroll-behavior:contain}
 .gg-header-nav>.gg-nav-item:has(.gg-nav-details[open]){grid-column:1/-1}
 .gg-nav-details[open] .gg-dropdown-menu{max-height:42dvh;width:100%;max-width:100%}
}
@media (max-width:1100px) {
 html body :is(#radio-dock,#gg-global-radio-bar) .gg-btn-play-toggle { min-height: 40px !important; }
 html body :is(#radio-dock,#gg-global-radio-bar) .gg-btn-popout { min-height: 30px !important; }
}

.gg-nav-details .gg-dropdown-menu.gg-secondlife-menu,
.gg-nav-details .gg-dropdown-menu.gg-mega-menu {
  width: min(840px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  padding: 16px;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: linear-gradient(135deg, rgba(15, 25, 43, 0.98), rgba(16, 9, 31, 0.98));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(147, 51, 234, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10005;
}
.gg-dropdown-right .gg-dropdown-menu.gg-mega-menu {
  left: auto;
  right: 0;
  transform: none;
}
.gg-mega-1col {
  width: min(340px, calc(100vw - 32px)) !important;
  grid-template-columns: 1fr !important;
}
.gg-mega-2cols {
  width: min(580px, calc(100vw - 32px)) !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.gg-nav-details[open] .gg-secondlife-menu,
.gg-nav-details:hover .gg-secondlife-menu,
.gg-nav-details:focus-within .gg-secondlife-menu,
.gg-nav-details[open] .gg-mega-menu,
.gg-nav-details:hover .gg-mega-menu,
.gg-nav-details:focus-within .gg-mega-menu {
  display: grid;
}
.gg-sl-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(6, 11, 22, 0.7);
}
.gg-sl-group h3 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--sl-tone);
}
.gg-sl-amber { --sl-tone: #ffbf60; }
.gg-sl-cyan { --sl-tone: #58edff; }
.gg-sl-purple { --sl-tone: #d696ff; }
.gg-sl-group a {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: 7px;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--sl-tone);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  transition: all 0.15s ease;
  text-decoration: none;
}
.gg-sl-group a small {
  font-size: 11px;
  font-weight: normal;
  color: #94a3b8;
  margin-top: 2px;
}
.gg-sl-group a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transform: translateX(2px);
}
@media(max-width:1100px) {
  .gg-nav-details .gg-dropdown-menu.gg-secondlife-menu,
  .gg-nav-details .gg-dropdown-menu.gg-mega-menu {
    position: static;
    width: 100%;
    max-width: 100%;
    transform: none;
    left: auto;
    right: auto;
    grid-template-columns: 1fr !important;
    padding: 10px;
    max-height: 60vh;
    overflow: auto;
  }
}
