/* ============================================================
   ttgod.css — "Relay Station" theme.
   Palette: amber #F5A623 / teal #00BFA5 / dark slate #1A1A2E
   ============================================================ */

.ttgod-panel {
  --theme-primary: #f5a623;
  --theme-bg: #1a1a2e;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,191,165,0.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(26,26,46,0.96), rgba(14,14,28,0.93));
  color: #d8dcea;
}
.ttgod-panel .panel-return { border-color: rgba(245,166,35,0.4); color: #f5a623; }
.ttgod-panel .panel-return:hover { background: rgba(245,166,35,0.15); }
.ttgod-panel .eyebrow { color: #f5a623; }
.ttgod-panel h1 { color: #fff; text-shadow: 0 0 40px rgba(245,166,35,0.5), 0 0 80px rgba(0,191,165,0.4); }
.ttgod-panel h2 { color: #00bfa5; }
.ttgod-panel h3 { color: #f5a623; }
.ttgod-panel p { color: #a8b0c4; }
.ttgod-panel strong { color: #fff; }
.ttgod-panel code { background: rgba(245,166,35,0.12); color: #f5a623; }
.ttgod-panel .muted { color: #6a7388; font-size: 12px; letter-spacing: 0.04em; }

/* hero with radar */
.ttgod-hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border: 1px solid rgba(0,191,165,0.25); border-radius: 4px; background: #1a1a2e; }
.radar-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ttgod-hero-text { position: relative; z-index: 2; text-align: center; padding: 24px; }
.ttgod-subtitle { color: #00bfa5; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; margin-top: 8px; }

/* flowchart */
.flow-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 24px 12px; background: rgba(0,0,0,0.3); border: 1px solid rgba(0,191,165,0.2); border-radius: 4px; max-width: 760px; }
.flow-node { padding: 12px 18px; border: 1px solid rgba(0,191,165,0.3); border-radius: 4px; color: #00bfa5; font-size: 13px; font-weight: 700; background: rgba(26,26,46,0.6); transition: none; }
.flow-arrow { color: #f5a623; font-size: 18px; }

/* flip cards */
.flip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 760px; }
.flip-card { perspective: 1000px; height: 140px; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 500ms cubic-bezier(0.22,1,0.36,1); transform-style: preserve-3d; }
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-face { position: absolute; inset: 0; backface-visibility: hidden; display: flex; align-items: center; justify-content: center; padding: 18px; text-align: center; border: 1px solid rgba(245,166,35,0.3); border-radius: 4px; font-size: 14px; }
.flip-front { background: rgba(245,166,35,0.1); color: #f5a623; font-weight: 700; }
.flip-back { background: rgba(0,191,165,0.1); color: #a8b0c4; font-size: 12px; transform: rotateY(180deg); border-color: rgba(0,191,165,0.4); }

/* API explorer terminal */
.api-terminal { background: #0c0c18; border: 1px solid rgba(0,191,165,0.3); border-radius: 4px; max-width: 760px; font-size: 12px; overflow: hidden; }
.api-output { padding: 14px 16px; height: 240px; overflow-y: auto; font-family: 'JetBrains Mono', monospace; }
.api-output::-webkit-scrollbar { width: 6px; }
.api-output::-webkit-scrollbar-thumb { background: rgba(0,191,165,0.3); }
.api-line { padding: 2px 0; }
.api-sys { color: #6a7388; }
.api-cmd { color: #f5a623; }
.api-prompt { color: #00bfa5; margin-right: 6px; }
.api-resp .api-json { color: #d8dcea; white-space: pre-wrap; margin: 4px 0 8px; }
.api-json .json-key { color: #f5a623; }
.api-json .json-str { color: #6fdc8c; }
.api-json .json-num { color: #00bfa5; }
.api-json .json-bool { color: #ff79c6; }
.api-json .json-null { color: #ff79c6; }
.api-err-block { padding: 4px 0; }
.api-err { color: #ff4d4d; }
.api-err-hint { color: #6a7388; }
.api-input-line { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid rgba(0,191,165,0.2); background: rgba(0,0,0,0.4); }
.api-input { flex: 1; background: transparent; border: none; outline: none; color: #d8dcea; font-family: inherit; font-size: 12px; }

/* campaign phase visualizer */
.phase-viz { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; max-width: 760px; padding: 24px 12px; background: rgba(0,0,0,0.3); border: 1px solid rgba(0,191,165,0.2); border-radius: 4px; }
.phase-node { text-align: center; flex: 1; min-width: 140px; }
.phase-dot { width: 16px; height: 16px; margin: 0 auto 10px; border-radius: 50%; border: 2px solid rgba(0,191,165,0.4); background: transparent; transition: all 400ms; }
.phase-node.is-active .phase-dot { background: #f5a623; border-color: #f5a623; box-shadow: 0 0 16px #f5a623; }
.phase-name { color: #a8b0c4; font-size: 13px; font-weight: 700; margin-bottom: 4px; transition: color 400ms; }
.phase-node.is-active .phase-name { color: #fff; }
.phase-desc { color: #6a7388; font-size: 10px; }
.phase-line { flex: 0 0 40px; height: 2px; margin-top: 7px; background: rgba(0,191,165,0.2); transition: background 400ms; align-self: flex-start; }
.phase-line.is-active { background: linear-gradient(90deg, #f5a623, #00bfa5); box-shadow: 0 0 8px #f5a623; }

.ttgod-cta:hover { box-shadow: 0 0 20px rgba(245,166,35,0.5); }
