:root {
  --bg: #0a0a0a;
  --fg: #d8d8d8;
  --muted: #6a6a6a;
  --panel: rgba(0, 0, 0, 0.55);
  --panel-border: rgba(255, 255, 255, 0.08);
  --accent: #ff3b3b;

  --c-session: cyan;
  --c-twitch: hotpink;
  --c-chat: lime;
  --c-trading: gold;
  --c-social: lightblue;
  --c-other: #d8d8d8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "DejaVu Sans Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 18px;
  line-height: 1.4;
}

.canvas {
  position: relative;
  width: 1280px;
  height: 720px;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}

.log {
  position: absolute;
  inset: 96px 24px 96px 24px;
  margin: 0;
  padding: 16px 20px;
  list-style: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  word-break: break-word;
}

.evt {
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--c-other);
  padding: 1px 0;
}

.evt .ts {
  color: var(--muted);
  margin-right: 8px;
}

.evt .src {
  font-weight: 600;
  margin-right: 8px;
}

.evt.source-session { color: var(--c-session); }
.evt.source-twitch  { color: var(--c-twitch); }
.evt.source-chat    { color: var(--c-chat); }
.evt.source-trading { color: var(--c-trading); }
.evt.source-social  { color: var(--c-social); }

.live-badge {
  position: absolute;
  top: 28px;
  right: 32px;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(255, 59, 59, 0.45);
  animation: livePulse 1s ease-in-out infinite;
}

.clock {
  position: absolute;
  bottom: 28px;
  right: 32px;
  font-size: 22px;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

@keyframes livePulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}
