@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Share+Tech+Mono&display=swap');

:root {
  --bg: #04080f;
  --panel: rgba(10, 14, 22, 0.9);
  --line: rgba(72, 242, 227, 0.2);
  --accent: #48f2e3;
  --accent-2: #9cfb87;
  --text: #dff7ff;
  --muted: #8da0b5;
  --radius: 10px;
  --pad: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body.gg-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(72, 242, 227, 0.10), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(156, 251, 135, 0.08), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
}

.gg-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--pad) + 2px);
  background: linear-gradient(145deg, rgba(6, 9, 15, 0.95), rgba(8, 12, 18, 0.95));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(72, 242, 227, 0.18);
  box-shadow: var(--shadow);
}

.gg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gg-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(72, 242, 227, 0.6), rgba(156, 251, 135, 0.2));
  color: #021010;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(72, 242, 227, 0.4);
}

.gg-title {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gg-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.gg-search input {
  width: min(520px, 60vw);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(72, 242, 227, 0.25);
  background: rgba(8, 12, 18, 0.9);
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gg-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(72, 242, 227, 0.35);
}

.gg-shell {
  position: relative;
  width: 100%;
  height: calc(100vh - 88px);
  overflow: hidden;
}

#gg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(72, 242, 227, 0.05), transparent),
              radial-gradient(circle at 80% 30%, rgba(156, 251, 135, 0.05), transparent 40%),
              transparent;
}

.gg-legend { display: none; }

.gg-article {
  max-width: 960px;
  margin: 28px auto;
  padding: 0 18px 48px;
}

.gg-article h1 {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gg-meta {
  color: var(--muted);
  margin-bottom: 18px;
}

.gg-content {
  background: rgba(10, 15, 26, 0.7);
  border: 1px solid rgba(0, 255, 247, 0.12);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.gg-content p { line-height: 1.7; }
.gg-content a { color: var(--accent); }

.gg-terms { margin-bottom: 16px; display: grid; gap: 6px; }
.gg-term-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gg-term-label { color: var(--muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: .06em; }
.gg-term-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(72, 242, 227, 0.4);
  color: var(--text);
  background: rgba(72, 242, 227, 0.08);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: .03em;
  transition: border-color .2s, box-shadow .2s, transform .1s;
}
.gg-term-pill:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(72, 242, 227, 0.2);
  transform: translateY(-1px);
}
.notice {
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.notice-info { border-color: rgba(0, 255, 247, 0.4); background: rgba(0, 255, 247, 0.08); }
.notice-warning { border-color: #ffcc66; background: rgba(255, 204, 102, 0.1); }
.notice-error { border-color: #ff6fb7; background: rgba(255, 111, 183, 0.12); }
.notice-tip { border-color: #aaf96d; background: rgba(170, 249, 109, 0.08); }

.gg-back {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 247, 0.25);
  background: rgba(8, 12, 22, 0.85);
}

pre {
  position: relative;
  background: #0c111c;
  border: 1px solid rgba(72, 242, 227, 0.22);
  color: #dff7ff;
  padding: 14px;
  border-radius: 8px;
  overflow: auto;
  box-shadow: inset 0 0 0 1px rgba(255, 61, 179, 0.12), 0 8px 24px rgba(0, 0, 0, 0.4);
}

code {
  background: #0c111c;
  color: #9cfb87;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(72, 242, 227, 0.15);
}

pre code {
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  font: 12px 'Share Tech Mono', monospace;
  letter-spacing: .05em;
  background: rgba(72, 242, 227, 0.12);
  color: #dff7ff;
  border: 1px solid rgba(72, 242, 227, 0.4);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 61, 179, 0.08), 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: background-color .2s, color .2s, box-shadow .2s, transform .1s;
  backdrop-filter: blur(3px);
}

.copy-button:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #1a0a15;
  box-shadow: var(--shadow);
}

.copy-button:active {
  transform: translateY(1px);
}

@media (max-width: 768px) {
  .gg-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .gg-shell {
    height: calc(100vh - 132px);
  }
  .gg-legend {
    position: static;
    margin: 12px;
  }
  .gg-search input {
    width: 100%;
  }
}
