:root {
  --bg: #07060f;
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #f8f5ff;
  --muted: #b9b2d4;
  --danger: #ff8f96;
  --success: #8ef2b5;
  --gradient-main: linear-gradient(110deg, #6d45ff 0%, #a643f1 34%, #ff7a32 100%);
  --gradient-glow:
    radial-gradient(circle at 10% 8%, rgba(126, 73, 255, 0.5), transparent 38%),
    radial-gradient(circle at 88% 15%, rgba(255, 117, 46, 0.36), transparent 43%),
    radial-gradient(circle at 52% 100%, rgba(60, 20, 112, 0.6), transparent 45%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #08070f;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.page-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: var(--gradient-glow);
  z-index: -1;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 14px 20px;
  display: grid;
  gap: 10px;
}

.glass-card {
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(23, 19, 40, 0.84), rgba(17, 15, 31, 0.8));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.brand-wrap strong {
  font-family: Outfit, Manrope, sans-serif;
  font-size: 1.03rem;
}

.brand-sub {
  color: #a89fc4;
  font-size: 0.82rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-main);
  box-shadow: 0 0 18px rgba(170, 83, 255, 0.6);
}

.event-badges {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.badge-soft,
.badge-link,
.live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #f3ecff;
}

.badge-soft {
  color: #efe7ff;
}

.badge-link {
  color: #f3ecff;
}

button.badge-link {
  cursor: pointer;
}

.badge-link.ghost {
  color: #e7dbff;
  background: rgba(112, 74, 192, 0.2);
}

.badge-link:hover,
.live-pill:hover {
  filter: brightness(1.07);
}

.display-screen {
  padding: 14px;
}

.display-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.display-header-centered {
  text-align: center;
}

.screen-label {
  font-family: Outfit, Manrope, sans-serif;
  font-size: 1.22rem;
  letter-spacing: 0.06em;
  color: #f7f0ff;
  font-weight: 800;
}

.live-pill {
  background: rgba(255, 75, 97, 0.16);
  border-color: rgba(255, 95, 118, 0.45);
  color: #ffe2e8;
}

.live-pill-compact {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f76;
  box-shadow: 0 0 12px rgba(255, 95, 118, 0.75);
}

.live-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 420px 1fr;
  gap: 10px;
  align-items: stretch;
  min-height: 420px;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.live-col {
  border-radius: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
}

.live-col h3 {
  margin: 0 0 8px;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  color: #cabfe3;
}

.quote-big {
  margin: auto 0;
  color: #fff8ff;
  font-family: Manrope, system-ui, sans-serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.05vw, 1.95rem);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  align-self: center;
  width: 96%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.live-center {
  border-radius: 16px;
  padding: 14px 14px 12px;
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.2);
}

.live-center img {
  width: 186px;
  height: 186px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
}

.live-center p {
  margin: 0;
  font-weight: 800;
  font-family: Outfit, Manrope, sans-serif;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.05;
  max-width: 100%;
  overflow: hidden;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.live-center small {
  color: #ddd2f3;
  font-size: clamp(1.06rem, 1.5vw, 1.42rem);
  font-weight: 600;
  line-height: 1.1;
  margin-top: -1px;
  max-width: 100%;
  overflow: hidden;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.display-bottom {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 340px 1fr;
  gap: 10px;
  align-items: center;
}

.stat-box,
.join-box {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  min-height: 132px;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
  padding: 10px;
}

.stat-num {
  font-family: Outfit, Manrope, sans-serif;
  font-size: 2.9rem;
  line-height: 1;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
  font-size: 0.84rem;
}

.join-box {
  gap: 7px;
}

.join-box img {
  width: 86px;
  height: 86px;
  border-radius: 10px;
  background: #fff;
}

.join-box a {
  color: #ecdfff;
  text-decoration: none;
  font-size: 0.73rem;
}

.join-box a:hover {
  text-decoration: underline;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.cta-primary {
  color: #fff;
  background: var(--gradient-main);
  box-shadow: 0 10px 25px rgba(138, 75, 255, 0.35);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 9, 0.78);
}

.modal-card {
  position: relative;
  z-index: 2;
  width: min(680px, 92vw);
  max-height: 90vh;
  overflow: auto;
  margin: 5vh auto;
  padding: 18px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-head h2 {
  margin: 0;
  font-family: Outfit, Manrope, sans-serif;
  font-size: 1.3rem;
}

.close-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 12px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 11px;
}

.field > span {
  font-size: 0.88rem;
  color: #dfd8fa;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(4, 4, 12, 0.62);
  color: #fff;
  padding: 10px 12px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(190, 126, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(129, 84, 255, 0.2);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.hint {
  min-height: 14px;
  margin: 0;
  font-size: 0.76rem;
  color: #afa4d0;
}

.hint.error {
  color: var(--danger);
}

.status {
  min-height: 20px;
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--success);
}

.legal-copy {
  margin: 0;
  color: #eedfda;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 10px;
  }

  .brand-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "live title";
    column-gap: 10px;
    row-gap: 0;
    align-items: center;
  }

  .brand-wrap .live-pill {
    grid-area: live;
    justify-self: start;
  }

  .brand-wrap strong {
    grid-area: title;
    font-size: 1.08rem;
  }

  .brand-wrap .brand-sub {
    display: none;
  }

  .event-badges {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .event-badges .badge-link {
    width: 100%;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .display-header {
    justify-content: center;
    text-align: center;
  }

  .live-card,
  .display-bottom {
    grid-template-columns: 1fr;
  }

  .live-center img {
    width: 128px;
    height: 128px;
  }

  .quote-big {
    font-size: clamp(1.35rem, 6.2vw, 2rem);
    -webkit-line-clamp: 4;
  }
}
