:root {
  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.55);
  --bg-dark: #0a0e17;
  --border-dim: rgba(59, 130, 246, 0.45);
}

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

body {
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: transparent;
  font-family: 'JetBrains Mono', monospace;
  color: #ffffff;
}

.hidden {
  display: none !important;
}

.canvas {
  position: relative;
  width: 1920px;
  height: 1080px;
  background-color: var(--bg-dark);
}

/* Transparent background in live modes so cutouts show OBS/Streamlabs sources underneath */
.canvas.mode-live-center,
.canvas.mode-live-chat {
  background-color: transparent;
}

/* Decorative Grid & Code Glyphs */
.bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Hide background grids behind transparent screen areas in live modes */
.mode-live-center .bg-layer,
.mode-live-chat .bg-layer {
  background: var(--bg-dark);
}

.grid-top-right,
.grid-bottom-left {
  position: absolute;
  width: 480px;
  height: 340px;
  background-image:
    linear-gradient(to right, rgba(59, 130, 246, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
}

.grid-top-right {
  top: 20px;
  right: 20px;
  mask-image: radial-gradient(circle at top right, black 30%, transparent 75%);
}

.grid-bottom-left {
  bottom: 20px;
  left: 20px;
  mask-image: radial-gradient(circle at bottom left, black 30%, transparent 75%);
}

.glyph {
  position: absolute;
  color: rgba(148, 163, 184, 0.18);
  font-weight: 700;
  user-select: none;
}
.g1 { top: 270px; left: 230px; font-size: 44px; }
.g2 { top: 155px; left: 1085px; font-size: 24px; }
.g3 { top: 310px; right: 345px; font-size: 32px; }
.g4 { top: 430px; right: 225px; font-size: 26px; }
.g5 { bottom: 325px; left: 300px; font-size: 30px; }
.g6 { bottom: 290px; right: 300px; font-size: 30px; }

/* Outer Frame */
.outer-frame {
  position: absolute;
  inset: 52px 84px 68px 84px;
  border: 2px solid var(--border-dim);
  z-index: 3;
  pointer-events: none;
}

.top-left-tab {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 420px;
  height: 38px;
  background: linear-gradient(90deg, #60a5fa 0%, #2563eb 75%, transparent 100%);
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 16px;
}

.top-left-tab .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0a0e17;
}

.top-right-bar {
  position: absolute;
  top: -14px;
  right: 26px;
  width: 560px;
  height: 28px;
  background: #0a0e17;
  border: 2px solid var(--border-dim);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
  font-size: 13px;
  color: #93c5fd;
}

.corner-tl {
  position: absolute;
  top: -18px;
  left: -18px;
  width: 90px;
  height: 90px;
  border-top: 3px solid var(--accent-bright);
  border-left: 3px solid var(--accent-bright);
}

.corner-tr {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 140px;
  height: 140px;
  border-top: 4px solid var(--accent-bright);
  border-right: 4px solid var(--accent-bright);
}

.corner-bl {
  position: absolute;
  bottom: -18px;
  left: -18px;
  width: 130px;
  height: 130px;
  border-bottom: 4px solid var(--accent-bright);
  border-left: 4px solid var(--accent-bright);
}

.corner-br {
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 310px;
  height: 180px;
  border-bottom: 14px solid var(--accent);
  border-right: 14px solid var(--accent);
}

.bottom-accent-bar {
  position: absolute;
  bottom: -10px;
  left: 360px;
  width: 580px;
  height: 14px;
  background: var(--accent);
  clip-path: polygon(3% 0, 97% 0, 100% 100%, 0% 100%);
}

/* Fullscreen Text Center */
.fullscreen-center {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.title-wrapper {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
}

.cyber-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 86px;
  font-weight: 800;
  letter-spacing: 4px;
  line-height: 1.15;
  white-space: pre-line;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.18);
}

.cursor.underscore {
  width: 44px;
  height: 10px;
  background: #ffffff;
  margin-bottom: 14px;
  animation: blink 1s steps(2, start) infinite;
}

.cursor.block {
  width: 42px;
  height: 76px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  box-shadow: 0 0 24px var(--accent-glow);
  margin-bottom: 8px;
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

.cyber-subtitle {
  margin-top: 26px;
  font-size: 26px;
  letter-spacing: 2px;
}

.handle-text {
  color: #e2e8f0;
}

.status-text {
  color: #94a3b8;
}

/* Live Cutouts */
.live-layout {
  position: absolute;
  inset: 120px 115px 115px 115px;
  z-index: 2;
  display: flex;
  gap: 32px;
}

/* Center Cutout (Webcam / Solo Window) */
.mode-live-center .live-layout {
  justify-content: center;
  align-items: center;
}

.mode-live-center .main-cutout {
  width: 1250px;
  height: 720px;
  background: transparent;
  box-shadow: 0 0 0 9999px var(--bg-dark);
  border: 2px solid var(--border-dim);
}

/* Left Cutout + Right Chat Panel */
.mode-live-chat .main-cutout {
  flex: 1;
  height: 100%;
  background: transparent;
  box-shadow: 0 0 0 9999px var(--bg-dark);
  border: 2px solid var(--border-dim);
}

.chat-panel {
  width: 390px;
  height: 100%;
  background: rgba(10, 14, 23, 0.92);
  border: 2px solid var(--border-dim);
  display: flex;
  flex-direction: column;
  position: relative;
}

.chat-header {
  height: 36px;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 16px;
  letter-spacing: 1.5px;
  color: #e2e8f0;
}

.chat-win-controls {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #93c5fd;
}

.chat-body {
  position: relative;
  flex: 1;
}

.c1 { top: 150px; left: 70px; font-size: 32px; }
.c2 { top: 270px; right: 75px; font-size: 28px; }
.c3 { top: 380px; left: 45px; font-size: 40px; }
.c4 { bottom: 160px; left: 130px; font-size: 32px; }

/* Footer Bar */
.footer-bar {
  position: absolute;
  bottom: 24px;
  left: 84px;
  right: 84px;
  z-index: 5;
}

.square-bullet {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--accent-bright);
  box-shadow: 0 0 10px var(--accent-glow);
}

.footer-small {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 28px;
  padding-bottom: 58px;
  font-size: 22px;
  color: #cbd5e1;
}

.footer-live {
  display: flex;
  align-items: center;
  gap: 48px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-left: 2px solid var(--accent-bright);
  border-bottom: 2px solid var(--accent-bright);
}

.stat-box {
  width: 470px;
  height: 44px;
  border: 1px solid var(--border-dim);
  background: rgba(10, 14, 23, 0.95);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  font-size: 16px;
  letter-spacing: 1px;
}

.stat-label {
  color: #e2e8f0;
  font-weight: 700;
}

.stat-value {
  color: #60a5fa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
