/* ============================================================
   Floating Discord canvas — embedded app surface (shared)
   Discord sim is the proof object; cream shell bleeds at margins.
   ============================================================ */

:root {
  --dc-canvas-radius: 26px;
  --dc-canvas-bg: #0b0c0e;
  --dc-canvas-line: rgba(255, 255, 255, 0.14);
  --dc-canvas-chrome: linear-gradient(180deg, #1a1b1f 0%, #121316 100%);
}

.alloy-discord-canvas {
  position: relative;
  width: min(100%, 1080px);
  margin-inline: auto;
  border-radius: var(--dc-canvas-radius);
  overflow: hidden;
  background: var(--dc-canvas-bg);
  border: 1px solid var(--dc-canvas-line);
  box-shadow:
    0 34px 90px rgba(28, 25, 23, 0.38),
    0 0 0 1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.alloy-discord-canvas__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 14px;
  background: var(--dc-canvas-chrome);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.alloy-discord-canvas__dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.alloy-discord-canvas__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f3f46;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.alloy-discord-canvas__dots span:nth-child(1) { background: #52525b; }
.alloy-discord-canvas__dots span:nth-child(3) { background: #27272a; }

.alloy-discord-canvas__title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a1a1aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alloy-discord-canvas__status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #23a559;
}

.alloy-discord-canvas__stage {
  position: relative;
  min-height: clamp(400px, 58vh, 640px);
  background: var(--dc-canvas-bg);
}

.alloy-discord-canvas__stage .mount,
.alloy-discord-canvas__stage .ds-app {
  min-height: inherit;
}

.alloy-discord-canvas__stage .ds-app {
  height: 100%;
  border-radius: 0;
}

/* Narrative copy styled as Discord embed — not asymmetric marketing headers */
.discord-caption {
  width: min(100%, 1080px);
  margin: clamp(1rem, 2.5vh, 1.5rem) auto 0;
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--fg) 92%, transparent);
  color: color-mix(in srgb, var(--bg) 88%, transparent);
  font-size: 0.92rem;
  line-height: 1.55;
}

.discord-caption strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 700;
}

.discord-caption em {
  font-style: normal;
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .alloy-discord-canvas {
    border-radius: 20px;
  }
  .alloy-discord-canvas__stage {
    min-height: clamp(340px, 52vh, 480px);
  }
}
