:root {
  --bg0: #030907;
  --bg1: #071713;
  --ink: #e8f5ee;
  --muted: #7f9b90;
  --lime: #9cff57;
  --cyan: #38d9ff;
  --mint: #2ef0a0;
  --amber: #ffc247;
  --panel: rgba(5, 16, 13, 0.86);
  --line: rgba(156, 255, 87, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 42%, #0b231c 0%, var(--bg1) 45%, var(--bg0) 100%);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#scene text { font-family: Inter, system-ui, sans-serif; }
#scene .mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
#scene .hit { cursor: pointer; }
#scene [data-team] { transition: opacity 0.5s ease; }

/* glow pulses: opacity only, cheap to animate */
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes spin { to { stroke-dashoffset: -60; } }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
.pulse.fast { animation-duration: 1.3s; }
.flow { animation: flow 1.1s linear infinite; }
.spin { animation: spin 3s linear infinite; }

.hud { position: fixed; z-index: 5; }

.brand { top: 22px; left: 26px; display: flex; align-items: center; gap: 14px; }
.brand .mark {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(160deg, #0f2a20, #06130f); border: 1.5px solid rgba(156, 255, 87, 0.55);
  box-shadow: 0 0 22px rgba(156, 255, 87, 0.35), inset 0 0 14px rgba(156, 255, 87, 0.15);
}
.brand .mark span { font-weight: 900; font-size: 18px; letter-spacing: -0.02em; color: var(--lime); text-shadow: 0 0 12px rgba(156, 255, 87, 0.8); }
.brand .name { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand .sub { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lime); margin-top: 3px; opacity: 0.9; }

.status { top: 26px; right: 28px; text-align: right; }
.status .live { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px;
  background: rgba(46, 240, 160, 0.08); border: 1px solid rgba(46, 240, 160, 0.4); color: var(--mint); }
.status .live i { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 1.6s ease-in-out infinite; }
.status .clock { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--muted); margin-top: 9px; letter-spacing: 0.06em; }

.nav {
  left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px;
  background: rgba(4, 13, 11, 0.82); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.nav button {
  font: 600 13px Inter, sans-serif; color: var(--muted); background: transparent; border: 0; border-radius: 999px;
  padding: 9px 15px; cursor: pointer; display: flex; align-items: center; gap: 7px; transition: color 0.2s, background 0.2s;
}
.nav button:hover { color: var(--ink); }
.nav button .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--lime)); box-shadow: 0 0 8px var(--c, var(--lime)); }
.nav button.on { color: #04110c; background: var(--c, var(--lime)); box-shadow: 0 0 18px var(--c, var(--lime)); }
.nav button.on .dot { background: #04110c; box-shadow: none; }
.nav .sep { width: 1px; background: var(--line); margin: 6px 2px; }

.card {
  top: 104px; right: 28px; width: 340px; max-height: calc(100vh - 190px); overflow: auto; padding: 20px;
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 18px;
  box-shadow: 0 0 40px color-mix(in srgb, var(--c) 18%, transparent), 0 20px 60px rgba(0, 0, 0, 0.55); backdrop-filter: blur(10px);
  animation: cardIn 0.35s ease-out;
}
@keyframes cardIn { from { opacity: 0; transform: translateX(24px); } }
.card .step { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.2em; color: var(--c); text-transform: uppercase; }
.card h2 { font-weight: 900; font-size: 26px; letter-spacing: -0.02em; margin-top: 4px; }
.card .what { color: #b7cbc2; font-size: 14px; line-height: 1.45; margin-top: 8px; }
.card .bots { margin-top: 16px; display: grid; gap: 10px; }
.card .bot { padding: 12px 13px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); }
.card .bot b { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.card .bot b i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); animation: pulse 1.4s ease-in-out infinite; }
.card .bot p { color: #93aaa0; font-size: 12.5px; line-height: 1.4; margin-top: 4px; }
.card .bot .now { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--c); margin-top: 7px; }
.card .next { margin-top: 14px; font-size: 13px; color: #b7cbc2; display: flex; align-items: center; gap: 8px; }
.card .next span { color: var(--c2, var(--ink)); font-weight: 700; }
.card .x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12);
  background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; }

.feed { left: 26px; bottom: 92px; width: 380px; display: grid; gap: 7px; }
.feed .row {
  font-size: 12.5px; color: #b9cdc4; padding: 8px 12px; border-radius: 10px; background: rgba(4, 13, 11, 0.72);
  border-left: 3px solid var(--c); display: flex; gap: 8px; align-items: baseline; animation: rowIn 0.4s ease-out;
}
.feed .row b { color: var(--c); font-weight: 700; white-space: nowrap; }
.feed .row time { margin-left: auto; flex-shrink: 0; font-family: "JetBrains Mono", monospace; font-size: 11px; color: #5f7a70; }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }

body.focused .feed { opacity: 0.0; pointer-events: none; transition: opacity 0.3s; }

@media (max-width: 1300px) { .feed { display: none; } }

@media (max-width: 900px) {
  .feed { display: none; }
  .card { top: auto; bottom: 86px; right: 12px; left: 12px; width: auto; max-height: 40vh; }
  .nav { max-width: calc(100vw - 16px); overflow-x: auto; }
  .brand .name { font-size: 15px; }
}

/* inside the website (?embed=1) */
body.embed .feed, body.embed .status .clock { display: none; }
body.embed .brand { top: 14px; left: 16px; gap: 10px; }
body.embed .brand .mark { width: 38px; height: 38px; border-radius: 11px; }
body.embed .brand .mark span { font-size: 13px; }
body.embed .brand .name { font-size: 15px; }
body.embed .brand .sub { font-size: 10px; }
body.embed .status { top: 18px; right: 16px; }
body.embed .status .live { font-size: 12px; padding: 6px 11px; }
body.embed .nav { bottom: 12px; }
body.embed .nav button { font-size: 12px; padding: 7px 11px; }
body.embed .card { top: 70px; right: 16px; width: 300px; max-height: calc(100vh - 140px); padding: 16px; }
body.embed .card h2 { font-size: 22px; }
@media (max-width: 760px) {
  body.embed .status { display: none; }
  body.embed .brand .sub { display: none; }
  body.embed .nav { left: 8px; right: 8px; transform: none; max-width: none; }
  body.embed .card { top: auto; left: 8px; right: 8px; bottom: 62px; width: auto; max-height: 46vh; padding: 14px; }
  body.embed .card .bot p { display: none; }
  body.embed .card .what { font-size: 13px; }
}
