:root {
  --eqw-bg: #0a0c12;
  --eqw-panel: #141a26;
  --eqw-text: #f2f4f8;
  --eqw-muted: #8b95a8;
  --eqw-line: rgba(255, 255, 255, 0.1);
  --eqw-accent: #22d3ee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--eqw-text);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(34, 211, 238, 0.18) 0%, transparent 55%),
    radial-gradient(700px 380px at 5% 0%, rgba(80, 70, 180, 0.25) 0%, var(--eqw-bg) 60%);
}

.eqw-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.eqw-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.eqw-hero p,
.eqw-muted {
  color: var(--eqw-muted);
  line-height: 1.5;
}

.eqw-card {
  background: color-mix(in srgb, var(--eqw-panel) 94%, black);
  border: 1px solid var(--eqw-line);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  margin-top: 1rem;
}

.hidden { display: none !important; }

.eqw-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.eqw-code {
  display: block;
  margin: 0.7rem 0;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--eqw-line);
  background: #0b1018;
  word-break: break-all;
  font-size: 0.82rem;
}

.eqw-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--eqw-line);
  background: #1c2536;
  color: var(--eqw-text);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.btn--primary {
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  border-color: transparent;
  color: #041016;
  font-weight: 700;
}

.btn--danger {
  background: #3a1a22;
  border-color: rgba(255, 77, 109, 0.35);
}

.btn--ghost {
  background: transparent;
}

.eqw-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  color: var(--eqw-muted);
  font-size: 0.9rem;
}

.eqw-field input,
.eqw-field textarea {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--eqw-line);
  background: #0b1018;
  color: var(--eqw-text);
  font: inherit;
}

.eqw-field textarea {
  min-height: 96px;
  resize: vertical;
}

.eqw-live {
  padding: 1rem;
  border-radius: 14px;
  background: #0b1018;
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.eqw-live__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eqw-accent);
  margin: 0 0 0.35rem;
}

.eqw-live__name {
  margin: 0 0 0.25rem;
  font-weight: 800;
}

.eqw-live__text {
  margin: 0;
  line-height: 1.4;
}

.eqw-q {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--eqw-line);
  background: #0b1018;
  margin-bottom: 0.65rem;
}

.eqw-q.is-live {
  border-color: rgba(34, 211, 238, 0.5);
}

.eqw-q__name {
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.eqw-q__text {
  margin: 0 0 0.65rem;
  color: #d7deea;
}

.eqw-status {
  color: var(--eqw-muted);
  font-size: 0.9rem;
}

.eqw-audio-list audio {
  width: 100%;
  margin-top: 0.35rem;
}

/* Join page */
.eqw-join-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--eqw-text);
  background:
    radial-gradient(800px 380px at 50% -15%, rgba(34, 211, 238, 0.2), transparent 60%),
    var(--eqw-bg);
}

.eqw-join-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.75rem 1rem 3rem;
}

/* Overlay */
.eqw-overlay-html,
.eqw-overlay-body {
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  background: transparent !important;
}

.eqw-overlay-root {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2.5rem;
  pointer-events: none;
}

.eqw-overlay-card {
  max-width: min(920px, 92vw);
  padding: 1.1rem 1.4rem 1.2rem;
  border-radius: 18px;
  background: rgba(8, 12, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color: #fff;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.eqw-overlay-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.eqw-overlay-card__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #22d3ee;
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.eqw-overlay-card__name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 800;
}

.eqw-overlay-card__text {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
