/* Header contact */
.gpm-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  color: rgb(226 232 240);
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.gpm-contact-link:hover {
  border-color: rgba(34,211,238,0.35);
  background: rgba(34,211,238,0.12);
  color: rgb(207 250 254);
}

/* Comic news overlay */
.gpm-news-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}
.gpm-news-runner {
  position: absolute;
  left: -420px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: flex-end;
  gap: 18px;
  animation: gpm-news-sprint 10s ease-in-out forwards;
}
.gpm-news-bubble {
  max-width: min(520px, 68vw);
  border-radius: 24px;
  border: 1px solid rgba(34,211,238,0.28);
  background: rgba(2,6,23,0.95);
  box-shadow: 0 22px 80px rgba(0,0,0,.45);
  padding: 18px 20px;
  color: #e2e8f0;
  backdrop-filter: blur(10px);
}
.gpm-news-bubble::before {
  content: "";
  position: absolute;
}
.gpm-news-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: #67e8f9;
}
.gpm-news-text {
  margin-top: 10px;
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.55;
}
.gpm-news-close {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #cbd5e1;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.gpm-news-miner {
  position: relative;
  width: 150px;
  height: 170px;
  flex: 0 0 auto;
}
.gpm-miner-head {
  position: absolute;
  left: 45px;
  top: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg,#f8fafc,#cbd5e1);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.gpm-miner-helmet {
  position: absolute;
  left: 34px;
  top: 2px;
  width: 78px;
  height: 34px;
  border-radius: 40px 40px 14px 14px;
  background: linear-gradient(180deg,#f59e0b,#d97706);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.15);
}
.gpm-miner-lamp {
  position: absolute;
  left: 70px;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fde68a;
  box-shadow: 0 0 18px rgba(253,230,138,.85);
}
.gpm-miner-body {
  position: absolute;
  left: 34px;
  top: 70px;
  width: 74px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(180deg,#22d3ee,#0891b2);
  box-shadow: 0 10px 34px rgba(0,0,0,.32);
}
.gpm-miner-arm {
  position: absolute;
  top: 80px;
  width: 18px;
  height: 54px;
  border-radius: 16px;
  background: #cbd5e1;
  transform-origin: top center;
}
.gpm-miner-arm.left { left: 20px; animation: gpm-arm-left .9s ease-in-out infinite; }
.gpm-miner-arm.right { left: 106px; animation: gpm-arm-right .9s ease-in-out infinite; }
.gpm-miner-leg {
  position: absolute;
  top: 126px;
  width: 18px;
  height: 48px;
  border-radius: 16px;
  background: #e2e8f0;
  transform-origin: top center;
}
.gpm-miner-leg.left { left: 48px; animation: gpm-leg-left .8s ease-in-out infinite; }
.gpm-miner-leg.right { left: 82px; animation: gpm-leg-right .8s ease-in-out infinite; }
.gpm-dust {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 150px;
  height: 40px;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.24), transparent 28%), radial-gradient(circle at 60% 40%, rgba(34,211,238,.18), transparent 26%), radial-gradient(circle at 80% 60%, rgba(255,255,255,.12), transparent 18%);
  filter: blur(6px);
  opacity: .9;
}
@keyframes gpm-news-sprint {
  0% { left: -460px; opacity: 0; }
  12% { left: calc(50% - 350px); opacity: 1; }
  75% { left: calc(50% - 350px); opacity: 1; }
  100% { left: calc(100% + 40px); opacity: 0; }
}
@keyframes gpm-leg-left { 0%,100% { transform: rotate(16deg);} 50% { transform: rotate(-18deg);} }
@keyframes gpm-leg-right { 0%,100% { transform: rotate(-18deg);} 50% { transform: rotate(16deg);} }
@keyframes gpm-arm-left { 0%,100% { transform: rotate(-12deg);} 50% { transform: rotate(18deg);} }
@keyframes gpm-arm-right { 0%,100% { transform: rotate(18deg);} 50% { transform: rotate(-12deg);} }

/* Worker tabs */
.gpm-worker-tabs-wrap { margin-bottom: 1rem; }
.gpm-worker-tabbar {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}
.gpm-worker-tab {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: transparent;
  color: rgb(148 163 184);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.gpm-worker-tab.is-active {
  background: rgba(34,211,238,0.14);
  color: rgb(207 250 254);
  box-shadow: inset 0 0 0 1px rgba(34,211,238,0.2);
}
.gpm-worker-view[hidden] { display: none !important; }

/* Smaller worker cards */
.gpm-worker-card-grid,
.worker-sps-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px !important;
}
.gpm-worker-card,
.worker-sps-card {
  width: min(320px, 100%);
  flex: 1 1 260px;
  max-width: 320px;
}
.worker-sps-card {
  padding: 14px 16px !important;
}
.worker-sps-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px 18px !important;
}
.worker-sps-metric-value { font-size: 14px; }
.worker-sps-chart-wrap { margin-bottom: 8px; }

@media (max-width: 900px) {
  .gpm-news-runner { gap: 12px; }
  .gpm-news-miner { width: 110px; transform: scale(.8); transform-origin: bottom left; }
  .gpm-news-bubble { max-width: min(80vw, 460px); }
  @keyframes gpm-news-sprint {
    0% { left: -420px; opacity: 0; }
    12% { left: 6vw; opacity: 1; }
    75% { left: 6vw; opacity: 1; }
    100% { left: calc(100% + 20px); opacity: 0; }
  }
}
