:root {
  color-scheme: dark;
  --bg: #030406;
  --ink: #f5f5f7;
  --soft: #d2d4d8;
  --muted: #9ca0a8;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(18, 18, 21, 0.58);
  --panel-strong: rgba(12, 12, 14, 0.82);
  --accent: #0a84ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  background:
    linear-gradient(130deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.68)),
    linear-gradient(180deg, rgba(7, 7, 9, 0.16), rgba(7, 7, 9, 0.84)),
    url("https://images.unsplash.com/photo-1519501025264-65ba15a82390?auto=format&fit=crop&w=2400&q=80") center / cover no-repeat;
  filter: saturate(0.9) contrast(1.05);
  transform: scale(1.02);
}

.loading-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(520px, 720px) minmax(270px, 360px);
  gap: 14px;
  align-items: end;
  width: min(1120px, calc(100vw - 64px));
  height: 100%;
  margin: 0 auto;
  padding: 0 0 7vh;
}

.hero-panel,
.side-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px) saturate(120%);
}

.hero-panel {
  overflow: hidden;
  padding: 28px;
}

.topline,
.brand-lockup,
.live-badge,
.panel-heading {
  display: flex;
  align-items: center;
}

.topline {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  min-width: 0;
  gap: 18px;
}

.brand-icon {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.04);
}

.brand-icon span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8bc8ff, var(--accent));
  box-shadow: 0 0 20px rgba(10, 132, 255, 0.45);
}

.eyebrow,
.message-label,
.meta-row span,
.panel-heading p {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 800;
}

h1 {
  max-width: 100%;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: clamp(50px, 6.4vw, 78px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0;
}

.live-badge {
  gap: 8px;
  min-width: 126px;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(10, 132, 255, 0.34);
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.14);
  color: #e9f3ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-badge span,
.panel-heading span {
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(10, 132, 255, 0.9);
}

.meta-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin: 30px 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
}

.meta-row div {
  min-width: 0;
  padding: 13px 14px;
  background: rgba(6, 11, 16, 0.58);
}

.meta-row strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #eef5fb;
  font-size: 14px;
}

.progress-wrap,
.message-card {
  position: relative;
  z-index: 1;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 850;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #63b3ff, #0a84ff);
  box-shadow: 0 0 20px rgba(10, 132, 255, 0.5);
  transition: width 650ms cubic-bezier(.2, .8, .2, 1);
}

.message-card {
  min-height: 112px;
  margin-top: 22px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.random-message {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: clamp(22px, 2.55vw, 31px);
  line-height: 1.16;
  font-weight: 850;
  text-wrap: balance;
}

.side-panel {
  padding: 22px;
  background: rgba(12, 12, 14, 0.72);
}

.panel-heading {
  gap: 10px;
  margin-bottom: 18px;
}

ul {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 0;
  list-style: none;
}

li {
  min-height: 42px;
  padding: 0 0 0 14px;
  border-left: 2px solid rgba(10, 132, 255, 0.7);
  color: #d9e4ed;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .loading-shell {
    grid-template-columns: 1fr;
    align-content: end;
    width: min(100vw - 28px, 620px);
    padding: 24px 0;
  }

  .hero-panel {
    padding: 22px;
  }

  .topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .meta-row {
    grid-template-columns: 1fr;
  }

  .side-panel {
    display: none;
  }
}
