/* arena-gradients.css
   SPKTKL Arena UI — Surface Gradients
   Use these classes to create the "stage" feel.
*/

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text-1);
}

/* App shell / arena canvas */
.app {
  min-height: 100vh;
  background:
    radial-gradient(1100px 720px at 50% 22%,
      var(--canvas-hi) 0%,
      var(--canvas-mid) 42%,
      var(--canvas-low) 78%,
      var(--canvas-edgeL) 100%),
    linear-gradient(to right,
      var(--canvas-edgeL) 0%,
      rgba(0,0,0,0) 22%,
      rgba(0,0,0,0) 78%,
      var(--canvas-edgeR) 100%);
}

/* Header "rigging cap" */
.header {
  background:
    linear-gradient(to bottom,
      var(--header-hi) 0%,
      var(--header-base) 55%,
      rgba(0,0,0,0) 100%),
    radial-gradient(900px 220px at 50% 0%,
      rgba(255,255,255,0.07) 0%,
      rgba(255,255,255,0.00) 70%);
  border-bottom: 1px solid var(--border-subtle);
}

/* Left rail "arena wall" */
.left-rail {
  background: linear-gradient(to bottom,
    var(--rail-top) 0%,
    var(--rail-mid) 45%,
    var(--rail-bot) 100%);
  border-right: 1px solid var(--border-subtle);
}

/* Elevated panel surface (chat, side panels, modals) */
.surface-panel {
  background:
    linear-gradient(to bottom,
      rgba(255,255,255,0.05) 0%,
      rgba(255,255,255,0.02) 40%,
      rgba(0,0,0,0.00) 100%),
    linear-gradient(to bottom,
      var(--panel-hi) 0%,
      var(--panel-base) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-2);
}

/* Optional: "stage spotlight" overlay behind the main canvas content */
.stage-spotlight {
  position: relative;
}

.stage-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 50% 35%,
      rgba(255,255,255,0.08) 0%,
      rgba(255,255,255,0.02) 35%,
      rgba(0,0,0,0.00) 70%);
}

/* Subtle divider */
.divider {
  border-top: 1px solid var(--border-subtle);
}

.app {
  position: relative;
  isolation: isolate; /* ensures blend mode behaves predictably */
}

/* Ensure content sits above the grain layer */
.app > * {
  position: relative;
  z-index: 2;
}