.live-redesign-page {
  --live-bg: #06080d;
  --live-panel: rgba(14, 20, 31, 0.76);
  --live-panel-strong: rgba(18, 26, 39, 0.92);
  --live-panel-soft: rgba(255, 255, 255, 0.055);
  --live-border: rgba(255, 255, 255, 0.14);
  --live-border-soft: rgba(255, 255, 255, 0.085);
  --live-text: #f8fafc;
  --live-muted: rgba(226, 232, 240, 0.68);
  --live-faint: rgba(226, 232, 240, 0.46);
  --live-gold: #e7c36d;
  --live-gold-strong: #ffd98b;
  --live-red: #ff4b40;
  --live-green: #35d39f;
  --live-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  background: #06080d;
  color: #f8fafc;
}

.live-redesign-page .whatsapp-cta {
  display: none;
}

.live-main {
  min-height: calc(100svh - 72px);
  overflow-x: clip;
  background:
    radial-gradient(circle at 20% 4%, rgba(215, 185, 104, 0.16), transparent 28rem),
    radial-gradient(circle at 84% 14%, rgba(202, 53, 44, 0.12), transparent 24rem),
    linear-gradient(145deg, #06080d 0%, #0c111b 42%, #111827 100%);
}

.live-command {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: calc(100svh - 104px);
  padding: 24px;
}

.live-command::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
}

.live-command::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.52)),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.48) 100%);
  pointer-events: none;
}

.live-command-glow {
  position: absolute;
  inset: 26px 24px auto;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 195, 109, 0.86), rgba(255, 75, 64, 0.42), transparent);
  box-shadow: 0 0 38px rgba(231, 195, 109, 0.28);
}

.live-split {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(340px, 1fr);
  gap: 18px;
  width: min(1440px, 100%);
  height: min(820px, calc(100svh - 168px));
  min-height: 680px;
  margin: 0 auto;
}

.live-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--live-border);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.035)),
    var(--live-panel);
  box-shadow: var(--live-shadow);
  backdrop-filter: blur(22px);
}

.live-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.16), transparent 18%, transparent 78%, rgba(231, 195, 109, 0.08)),
    radial-gradient(circle at 0% 0%, rgba(231, 195, 109, 0.13), transparent 19rem);
  pointer-events: none;
}

.live-panel--competition {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 28px 34px;
}

.live-panel--exams {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 28px 30px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.032)),
    rgba(10, 15, 24, 0.84);
}

.live-panel--exams::before {
  background:
    radial-gradient(circle at 78% 4%, rgba(255, 75, 64, 0.13), transparent 14rem),
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 32%);
}

.live-panel-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 11px;
}

.live-panel-copy h1,
.live-panel-copy h2 {
  margin: 0;
  color: var(--live-text);
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.live-panel-copy h1 {
  max-width: 9.5ch;
  font-size: 3.45rem;
}

.live-panel-copy h2 {
  max-width: 10ch;
  font-size: 2.65rem;
}

.live-panel-copy p {
  max-width: 34ch;
  margin: 0;
  color: var(--live-muted);
  font-size: 1.06rem;
  font-weight: 620;
  line-height: 1.45;
}

.live-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  color: var(--live-gold-strong);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.live-gold-line {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--live-gold));
}

.live-eyebrow--red {
  color: #ffb2ad;
}

.live-dot,
.live-status-chip span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--live-red);
  box-shadow: 0 0 0 6px rgba(255, 75, 64, 0.14), 0 0 24px rgba(255, 75, 64, 0.58);
}

.weekly-command-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.live-action,
.live-mini-action,
.weekly-exam-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font: 780 0.88rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.live-action:hover,
.live-mini-action:hover,
.weekly-exam-link:hover {
  transform: translateY(-1px);
}

.live-action:focus-visible,
.live-mini-action:focus-visible,
.weekly-exam-link:focus-visible,
.weekly-tabs button:focus-visible,
.live-runner-option:focus-visible {
  outline: 2px solid var(--live-gold-strong);
  outline-offset: 3px;
}

.live-action--gold,
.live-action--primary {
  border: 1px solid rgba(255, 229, 160, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 227, 147, 0.98), rgba(198, 150, 58, 0.96));
  color: #16120a;
  padding: 0 20px;
  box-shadow: 0 16px 38px rgba(231, 195, 109, 0.2);
}

.live-action--primary {
  width: 100%;
}

.live-action:disabled,
.live-mini-action:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.weekly-reset-chip {
  display: inline-grid;
  gap: 4px;
  min-width: 154px;
  border: 1px solid rgba(231, 195, 109, 0.2);
  border-radius: 10px;
  background: rgba(231, 195, 109, 0.075);
  padding: 9px 12px;
}

.weekly-reset-chip span,
.weekly-board-head span,
.live-access-head span,
.live-session-row dt,
.live-rule-grid dt {
  color: var(--live-faint);
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1.1;
  text-transform: uppercase;
}

.weekly-reset-chip strong,
.weekly-board-head strong,
.live-access-head strong {
  color: var(--live-text);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 760;
}

.weekly-board,
.live-access-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--live-border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(3, 7, 13, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.weekly-board {
  display: grid;
  align-self: stretch;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.weekly-board-head,
.live-access-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--live-border-soft);
}

.weekly-board-head div,
.live-access-head div {
  display: grid;
  gap: 5px;
}

.weekly-board-head strong {
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: 1rem;
}

.weekly-exam-link,
.live-mini-action {
  border: 1px solid rgba(231, 195, 109, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: var(--live-gold-strong);
  padding: 0 14px;
}

.live-mini-action--dark {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--live-text);
}

.live-mini-action--glass {
  width: 100%;
  color: var(--live-text);
}

.weekly-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--live-border-soft);
}

.weekly-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--live-faint);
  padding: 0 12px;
  font: 780 0.78rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.weekly-tabs button.is-active {
  background: rgba(231, 195, 109, 0.13);
  color: var(--live-gold-strong);
  box-shadow: inset 0 0 0 1px rgba(231, 195, 109, 0.2);
}

.weekly-table-wrap {
  min-width: 0;
  overflow: hidden;
}

.weekly-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.weekly-table th,
.weekly-table td {
  padding: 0 14px;
}

.weekly-table th {
  height: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--live-faint);
  font-size: 0.68rem;
  font-weight: 820;
  text-align: left;
  text-transform: uppercase;
}

.weekly-table td {
  height: 27px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(248, 250, 252, 0.86);
  font-size: 0.84rem;
  font-weight: 680;
}

.weekly-table tr:last-child td {
  border-bottom: 0;
}

.weekly-table th:first-child,
.weekly-table td:first-child {
  width: 54px;
}

.weekly-table th:nth-child(3),
.weekly-table td:nth-child(3) {
  width: 132px;
}

.weekly-table th:nth-child(4),
.weekly-table td:nth-child(4),
.weekly-table th:nth-child(5),
.weekly-table td:nth-child(5) {
  width: 86px;
  text-align: right;
}

.weekly-table tr.is-podium td:first-child {
  color: var(--live-gold-strong);
}

.weekly-table tr.is-podium .weekly-user-cell {
  color: #fff7dd;
}

.weekly-table tr.is-self td {
  background: linear-gradient(90deg, rgba(231, 195, 109, 0.18), rgba(231, 195, 109, 0.06));
  color: #fff;
}

.weekly-table tr.is-placeholder td {
  color: rgba(226, 232, 240, 0.34);
}

.weekly-rank-cell,
.weekly-score-cell span,
.weekly-trend-cell {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.weekly-user-cell {
  overflow: hidden;
  color: var(--live-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-score-cell {
  position: relative;
}

.weekly-score-cell span {
  position: relative;
  z-index: 1;
}

.weekly-score-cell i {
  position: absolute;
  right: 14px;
  bottom: 8px;
  left: 14px;
  display: block;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--live-gold), rgba(255, 75, 64, 0.58));
  opacity: 0.9;
}

.weekly-trend-cell {
  color: var(--live-gold-strong);
}

.live-access-panel {
  display: grid;
  align-self: stretch;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.live-access-head strong {
  font-size: 1.28rem;
}

.live-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  border: 1px solid rgba(255, 75, 64, 0.2);
  border-radius: 999px;
  background: rgba(255, 75, 64, 0.08);
  color: #ffd1cd;
  padding: 0 12px;
}

.live-status-chip b {
  font-size: 0.72rem;
  font-weight: 820;
  white-space: nowrap;
}

.live-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--live-border-soft);
}

.live-module-grid span {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(248, 250, 252, 0.82);
  padding: 9px 11px;
  font-size: 0.78rem;
  font-weight: 760;
  white-space: nowrap;
}

.live-module-grid span:last-child {
  grid-column: 1 / -1;
}

.live-timeline {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 13px 18px;
  overflow: auto;
  overscroll-behavior: contain;
}

.live-session-row {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 13px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.live-session-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.42);
  box-shadow: 0 0 0 5px rgba(226, 232, 240, 0.07);
}

.live-session-row.is-running .live-session-dot {
  background: var(--live-green);
  box-shadow: 0 0 0 5px rgba(53, 211, 159, 0.12), 0 0 22px rgba(53, 211, 159, 0.34);
}

.live-session-row strong {
  display: block;
  overflow: hidden;
  margin: 0 0 5px;
  color: var(--live-text);
  font-size: 0.95rem;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-session-state {
  display: block;
  margin: 0 0 10px;
  color: #ffb8b4;
  font-size: 0.75rem;
  font-weight: 800;
}

.live-session-row dl,
.live-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.live-session-row dd,
.live-rule-grid dd {
  margin: 5px 0 0;
  color: rgba(248, 250, 252, 0.9);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

.live-session-actions {
  display: flex;
  grid-column: 2;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.live-access-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 13px 18px 16px;
  border-top: 1px solid var(--live-border-soft);
}

.live-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 7, 13, 0.7);
  backdrop-filter: blur(12px);
}

.live-modal-card {
  width: min(680px, 100%);
  max-height: min(760px, calc(100svh - 36px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(9, 14, 23, 0.96);
  color: var(--live-text);
  padding: 26px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}

.live-modal-card--runner,
.live-modal-card--weekly {
  width: min(900px, 100%);
}

.live-modal-card h2 {
  margin: 0 0 16px;
  color: var(--live-text);
  font-size: 1.65rem;
  letter-spacing: 0;
}

.live-modal-kicker {
  margin: 0 0 6px;
  color: var(--live-faint);
  font-size: 0.75rem;
  font-weight: 820;
}

.live-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 20px;
}

.live-rule-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.live-runner-score {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 7px;
  background: rgba(231, 195, 109, 0.12);
  color: var(--live-gold-strong);
  padding: 0 12px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 760;
}

.live-runner-question {
  white-space: pre-wrap;
  color: rgba(248, 250, 252, 0.92);
  line-height: 1.58;
}

.live-runner-feedback {
  color: var(--live-muted);
  line-height: 1.55;
}

.live-runner-options,
.weekly-exam-options {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.live-runner-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--live-text);
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.live-runner-option span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(231, 195, 109, 0.12);
  color: var(--live-gold-strong);
  font-size: 0.74rem;
  font-weight: 820;
}

.live-runner-option strong {
  font-size: 0.9rem;
  font-weight: 680;
}

.live-runner-option:hover,
.live-runner-option.is-selected {
  border-color: rgba(231, 195, 109, 0.52);
  background: rgba(231, 195, 109, 0.13);
}

.weekly-exam-list {
  display: grid;
  gap: 16px;
}

.weekly-exam-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.weekly-exam-question > strong {
  display: block;
  color: var(--live-text);
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .live-split {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  }

  .live-panel--competition,
  .live-panel--exams {
    padding: 24px;
  }

  .live-panel-copy h1 {
    font-size: 3.85rem;
  }

  .live-panel-copy h2 {
    font-size: 2.72rem;
  }

  .weekly-table th,
  .weekly-table td {
    padding: 0 10px;
  }

  .weekly-table th:nth-child(3),
  .weekly-table td:nth-child(3) {
    width: 106px;
  }

  .weekly-table th:nth-child(4),
  .weekly-table td:nth-child(4),
  .weekly-table th:nth-child(5),
  .weekly-table td:nth-child(5) {
    width: 70px;
  }
}

@media (max-width: 900px) {
  .live-command {
    min-height: auto;
    padding: 18px;
  }

  .live-split {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .live-panel--competition,
  .live-panel--exams {
    min-height: auto;
  }

  .live-panel-copy h1,
  .live-panel-copy h2 {
    max-width: 12ch;
  }

  .live-access-panel {
    grid-template-rows: auto auto auto auto;
  }

  .live-timeline {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 620px) {
  .live-main {
    min-height: auto;
  }

  .live-command {
    padding: 0;
  }

  .live-split {
    gap: 0;
  }

  .live-panel {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .live-panel--competition,
  .live-panel--exams {
    padding: 24px 16px;
  }

  .live-panel-copy h1,
  .live-panel-copy h2 {
    font-size: 2.65rem;
  }

  .live-panel-copy p {
    font-size: 0.98rem;
  }

  .weekly-command-row,
  .weekly-board-head,
  .live-access-head {
    align-items: stretch;
    flex-direction: column;
  }

  .weekly-reset-chip,
  .weekly-exam-link {
    width: 100%;
  }

  .weekly-tabs {
    overflow-x: auto;
  }

  .weekly-table th,
  .weekly-table td {
    padding: 0 8px;
  }

  .weekly-table th {
    height: 32px;
    font-size: 0.62rem;
  }

  .weekly-table td {
    height: 38px;
    font-size: 0.78rem;
  }

  .weekly-table th:first-child,
  .weekly-table td:first-child {
    width: 40px;
  }

  .weekly-table th:nth-child(3),
  .weekly-table td:nth-child(3) {
    width: 84px;
  }

  .weekly-table th:nth-child(4),
  .weekly-table td:nth-child(4),
  .weekly-table th:nth-child(5),
  .weekly-table td:nth-child(5) {
    display: none;
  }

  .weekly-score-cell i {
    right: 8px;
    left: 8px;
  }

  .live-module-grid {
    grid-template-columns: 1fr;
  }

  .live-module-grid span:last-child {
    grid-column: auto;
  }

  .live-session-row dl,
  .live-rule-grid {
    grid-template-columns: 1fr 1fr;
  }

  .live-modal-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-action,
  .live-mini-action,
  .weekly-exam-link {
    transition: none;
  }
}
