:root {
  --bg: #071a2f;
  --panel: rgba(255, 255, 255, 0.055);
  --panel2: rgba(0, 0, 0, 0.18);
  --border: rgba(255, 255, 255, 0.1);
  --gold: #f2c14e;
  --gold2: #ffd77a;
  --text: #e9f1ff;
  --muted: rgba(233, 241, 255, 0.7);
  --ok: #65d7a1;
  --warn: #ffcf70;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Tajawal", system-ui, sans-serif;
  background:
    radial-gradient(
      1000px 520px at 80% -10%,
      rgba(242, 193, 78, 0.16),
      transparent 60%
    ),
    var(--bg);
  color: var(--text);
}
a {
  color: inherit;
}
.wrap {
  max-width: 1080px;
  margin: auto;
  padding: 18px 14px 70px;
}
.top,
.panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 22px;
}
.top {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.top h1 {
  margin: 0;
  color: var(--gold2);
}
.muted {
  color: var(--muted);
}
.btn {
  border: 1px solid rgba(242, 193, 78, 0.3);
  background: rgba(11, 42, 74, 0.7);
  color: var(--gold2);
  border-radius: 14px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
.btn.primary {
  background: var(--gold);
  color: #071a2f;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.stat {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 13px;
  background: var(--panel2);
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}
.stat strong {
  display: block;
  color: var(--gold2);
  font-size: 1.35rem;
  margin-top: 5px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  flex-wrap: wrap;
}
.tab {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 15px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}
.tab.active {
  border-color: rgba(242, 193, 78, 0.5);
  color: var(--gold2);
  background: rgba(242, 193, 78, 0.1);
}
.list {
  display: grid;
  gap: 12px;
}
.task {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 20px;
  padding: 16px;
}
.task-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.task h2,
.task h3 {
  margin: 0 0 6px;
  color: var(--gold2);
}
.task p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.chip,
.status {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(242, 193, 78, 0.2);
  font-size: 0.78rem;
  font-weight: 800;
}
.status {
  white-space: nowrap;
}
.status.wait {
  color: var(--warn);
}
.status.done {
  color: var(--ok);
  border-color: rgba(101, 215, 161, 0.25);
}
.status.missing {
  color: #ff9f9f;
  border-color: rgba(255, 100, 100, 0.35);
  background: rgba(255, 80, 80, 0.08);
}
.task--missing {
  border-color: rgba(255, 100, 100, 0.22);
}
.missing-note {
  margin-top: 12px !important;
  color: #ffc0c0 !important;
}
.actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.empty,
.message {
  border: 1px dashed rgba(242, 193, 78, 0.3);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
}
.message.error {
  color: #ffc0c0;
  border-color: rgba(255, 90, 90, 0.35);
}
.question {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.14);
  margin-bottom: 12px;
}
.question legend {
  font-weight: 900;
  color: var(--gold2);
  padding: 0 5px;
}
.option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 11px;
  border-radius: 14px;
  margin-top: 8px;
}
.response {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font: inherit;
  line-height: 1.8;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.meta {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: var(--panel2);
}
.meta span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.meta strong {
  display: block;
  margin-top: 5px;
}
.loader {
  text-align: center;
  padding: 50px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .stats,
  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .task-head {
    flex-direction: column;
  }
  .top {
    align-items: flex-start;
  }
}
@media (max-width: 440px) {
  .stats,
  .meta-grid {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.period-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  padding: 6px;
  border: 1px solid rgba(242, 193, 78, 0.2);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.14);
}
.period-tab {
  flex: 1;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px;
  background: transparent;
  color: var(--muted);
  font:
    800 14px "Tajawal",
    sans-serif;
  cursor: pointer;
}
.period-tab.active {
  color: var(--gold);
  border-color: rgba(242, 193, 78, 0.35);
  background: rgba(242, 193, 78, 0.1);
}

/* Dual progress indicators */
.progress-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.progress-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.16);
  min-width: 0;
}
.progress-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.progress-card-head span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}
.progress-card-head strong {
  display: block;
  color: var(--gold2);
  font-size: 1.45rem;
  margin-top: 4px;
}
.progress-card-head b {
  max-width: 48%;
  color: var(--text);
  font-size: 0.82rem;
  text-align: left;
}
.dual-progress {
  --pass: 50%;
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
  margin: 14px 0 9px;
}
.danger-zone {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pass);
  background: rgba(239, 83, 80, 0.38);
}
.success-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #3eaa72, #65d7a1);
  border-radius: inherit;
  z-index: 2;
  transition: width 0.35s ease;
}
.pass-marker {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: var(--pass);
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  z-index: 3;
}
.progress-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.analytics-subtitle {
  color: var(--gold2);
  margin: 18px 0 12px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.grade-scale-rows {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}
.grade-scale-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
}
@media (max-width: 700px) {
  .progress-cards,
  .settings-grid,
  .grade-scale-row {
    grid-template-columns: 1fr;
  }
  .progress-card-head {
    flex-direction: column;
  }
  .progress-card-head b {
    max-width: none;
    text-align: right;
  }
}

.course-chart-section {
  margin-top: 16px;
  border: 1px solid rgba(242, 193, 78, 0.2);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.14);
  padding: 16px;
  overflow: hidden;
}
.course-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.course-chart-head h2,
.course-chart-head h3 {
  margin: 0 0 4px;
  color: var(--gold, #f2c14e);
}
.course-chart-head p {
  margin: 0;
  color: var(--muted, rgba(233, 241, 255, 0.7));
  font-size: 0.86rem;
}
.progress-line-chart {
  width: 100%;
  min-height: 310px;
  overflow: hidden;
}
.progress-line-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
}
.chart-grid {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}
.chart-axis-text {
  fill: rgba(233, 241, 255, 0.66);
  font-size: 11px;
  font-family: Tajawal, sans-serif;
}
.chart-pass-line {
  stroke: #f2c14e;
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}
.chart-series {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-point {
  stroke: rgba(7, 26, 47, 0.9);
  stroke-width: 2;
}
.chart-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.chart-legend button,
.chart-legend span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.8rem;
}
.chart-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.chart-insight {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}
.chart-insight span {
  display: block;
  color: var(--muted, rgba(233, 241, 255, 0.7));
  font-size: 0.76rem;
}
.chart-insight strong {
  display: block;
  color: var(--gold, #f2c14e);
  margin-top: 4px;
}
.chart-course-select {
  min-width: 200px;
}
.chart-course-select span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted, rgba(233, 241, 255, 0.7));
  font-size: 0.78rem;
}
.chart-course-select select {
  width: 100%;
}
@media (max-width: 650px) {
  .chart-insights {
    grid-template-columns: 1fr;
  }
  .progress-line-chart {
    min-height: 260px;
  }
  .progress-line-chart svg {
    min-height: 250px;
  }
  .course-chart-head {
    display: block;
  }
  .chart-course-select {
    margin-top: 10px;
  }
}
.chart-series {
  transition: opacity 0.2s ease;
}
.chart-point {
  transition: opacity 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .chart-series,
  .chart-point {
    transition: none !important;
  }
}

/* Compact course selector */
.chart-course-select {
  width: min(100%, 300px);
  min-width: 220px;
  display: block;
}
.chart-course-select__control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(242, 193, 78, 0.28);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.035)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.chart-course-select__control:hover {
  border-color: rgba(242, 193, 78, 0.48);
  background: rgba(255, 255, 255, 0.07);
}
.chart-course-select__control:focus-within {
  border-color: rgba(242, 193, 78, 0.7);
  box-shadow:
    0 0 0 3px rgba(242, 193, 78, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.chart-course-select__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-inline-start: 5px;
  border-radius: 10px;
  background: rgba(242, 193, 78, 0.1);
  font-size: 1rem;
  pointer-events: none;
}
.chart-course-select select {
  appearance: none;
  -webkit-appearance: none;
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 10px 0 38px;
  background: transparent;
  color: var(--text);
  font:
    800 0.92rem "Tajawal",
    system-ui,
    sans-serif;
  cursor: pointer;
}
.chart-course-select select option {
  background: #0b2947;
  color: #e9f1ff;
}
.chart-course-select__arrow {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--gold2);
  border-bottom: 2px solid var(--gold2);
  transform: translateY(-68%) rotate(-45deg);
  pointer-events: none;
  transition: transform 0.18s ease;
}
.chart-course-select__control:focus-within .chart-course-select__arrow {
  transform: translateY(-35%) rotate(135deg);
}
@media (max-width: 650px) {
  .chart-course-select {
    width: 100%;
    min-width: 0;
    margin-top: 10px;
  }
}

/* Global course context */
.course-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(242, 193, 78, 0.22);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.14);
}
.course-context__copy {
  min-width: 0;
}
.course-context__copy span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 3px;
}
.course-context__copy strong {
  display: block;
  color: var(--gold2);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.course-context .chart-course-select {
  margin: 0;
  flex: 0 1 320px;
}
@media (max-width: 650px) {
  .course-context {
    align-items: stretch;
    flex-direction: column;
  }
  .course-context .chart-course-select {
    width: 100%;
    max-width: none;
    flex-basis: auto;
    margin: 0;
  }
}

/* Custom course picker */
.course-context {
  position: relative;
  overflow: visible;
}
.course-picker {
  position: relative;
  flex: 0 1 340px;
  min-width: 250px;
  z-index: 20;
}
.course-picker__button {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid rgba(242, 193, 78, 0.34);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.035)
  );
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  text-align: right;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.course-picker__button:hover {
  border-color: rgba(242, 193, 78, 0.55);
  background: rgba(255, 255, 255, 0.08);
}
.course-picker__button:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.14);
}
.course-picker__button:disabled {
  cursor: default;
  opacity: 0.82;
}
.course-picker__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(242, 193, 78, 0.1);
  border: 1px solid rgba(242, 193, 78, 0.2);
}
.course-picker__label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--gold2);
}
.course-picker__chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
}
.course-picker[data-open="true"] .course-picker__chevron {
  transform: rotate(135deg);
}
.course-picker__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 999;
  max-height: 300px;
  overflow: auto;
  padding: 7px;
  border-radius: 16px;
  border: 1px solid rgba(242, 193, 78, 0.28);
  background: #0b223c;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  transform-origin: top;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px) scale(0.985);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0s linear 0.16s;
}
@keyframes courseMenuIn {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.course-picker__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  text-align: right;
  cursor: pointer;
}
.course-picker__option:hover,
.course-picker__option:focus-visible {
  outline: none;
  background: rgba(242, 193, 78, 0.1);
}
.course-picker__option.is-selected {
  background: rgba(242, 193, 78, 0.13);
}
.course-picker__option-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
}
.course-picker__option-copy {
  flex: 1;
  min-width: 0;
}
.course-picker__option-copy strong {
  display: block;
  color: var(--gold2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.course-picker__option-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}
.course-picker__check {
  width: 20px;
  flex: 0 0 auto;
  color: var(--gold);
  font-weight: 900;
  text-align: center;
}
@media (max-width: 650px) {
  .course-picker {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }
  .course-picker__menu {
    position: absolute;
  }
}

/* Student performance report */
.student-report {
  margin: 16px 0 18px;
  padding: 16px;
  border: 1px solid rgba(242, 193, 78, 0.22);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.14);
}
.student-report__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.student-report__head h2 {
  margin: 0 0 4px;
  color: var(--gold);
}
.student-report__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.student-report__print {
  white-space: nowrap;
}
.student-report__table-wrap {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}
.student-report__table {
  width: 100%;
  border-collapse: collapse;
}
.student-report__table th,
.student-report__table td {
  padding: 13px 15px;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.student-report__table thead th {
  color: var(--muted);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.035);
}
.student-report__table td:last-child,
.student-report__table th:last-child {
  text-align: left;
}
.student-report__table tbody tr:last-child td {
  border-bottom: 0;
}
.student-report__table strong {
  color: var(--gold2);
  font-size: 1rem;
}
.student-report__total {
  background: rgba(242, 193, 78, 0.08);
}
.student-report__total td {
  font-weight: 900;
}
.student-report__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.student-report__meta > div {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.student-report__meta span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 4px;
}
.student-report__meta strong {
  display: block;
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .student-report__head {
    align-items: stretch;
    flex-direction: column;
  }
  .student-report__print {
    width: 100%;
    justify-content: center;
  }
  .student-report__meta {
    grid-template-columns: 1fr;
  }
  .student-report__table th,
  .student-report__table td {
    padding: 12px 10px;
  }
}

.course-picker[data-open="true"] .course-picker__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

/* Direct participation system task */
.direct-participation-task {
  position: relative;
  overflow: hidden;
  border-color: rgba(185, 156, 255, 0.48);
  background: linear-gradient(
    145deg,
    rgba(83, 48, 148, 0.28),
    rgba(10, 32, 56, 0.94)
  );
  box-shadow:
    inset 3px 0 0 #b99cff,
    0 16px 38px rgba(36, 15, 75, 0.22);
}
.direct-participation-task:before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  left: -100px;
  top: -130px;
  background: radial-gradient(
    circle,
    rgba(185, 156, 255, 0.18),
    transparent 68%
  );
  pointer-events: none;
}
.direct-participation-task__head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.direct-participation-task__head h2 {
  color: #e7dcff;
  margin: 5px 0 7px;
}
.direct-participation-task__head p {
  max-width: 680px;
}
.direct-participation-task__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cdbbff;
  font-size: 0.76rem;
  font-weight: 900;
}
.direct-participation-task__eyebrow span {
  font-size: 1rem;
}
.direct-participation-task__score {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}
.direct-participation-task__score span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}
.direct-participation-task__score strong {
  display: block;
  color: #f0e9ff;
  font-size: 1.65rem;
  margin-top: 3px;
}
.direct-participation-task__score strong small {
  font-size: 0.85rem;
  color: #cbbdf0;
}
.direct-participation-task__score > b {
  color: #cdbbff;
  font-size: 1.05rem;
}
.direct-participation-progress {
  height: 14px;
  margin-top: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(185, 156, 255, 0.16);
}
.direct-participation-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8258d6, #c4a9ff);
  box-shadow: 0 0 18px rgba(185, 156, 255, 0.42);
  transition: width 0.35s ease;
}
.direct-participation-task__footer {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.direct-participation-task__footer span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(185, 156, 255, 0.21);
  background: rgba(185, 156, 255, 0.07);
  color: #d8cbfa;
  font-size: 0.75rem;
  font-weight: 800;
}
.direct-participation-note {
  margin-top: 13px !important;
  padding-top: 12px;
  border-top: 1px solid rgba(185, 156, 255, 0.15);
}
@media (max-width: 650px) {
  .direct-participation-task__head {
    flex-direction: column;
  }
  .direct-participation-task__head .status {
    align-self: flex-start;
  }
  .direct-participation-task__score strong {
    font-size: 1.4rem;
  }
}

.imported-chip {
  border-color: rgba(185, 156, 255, 0.45) !important;
  background: rgba(185, 156, 255, 0.12) !important;
}

/* Student timeline */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.student-timeline-section {
  margin: 22px 0;
  padding: 22px;
  border: 1px solid rgba(242, 193, 78, 0.24);
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.018)
  );
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}
.student-timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.student-timeline-kicker {
  color: #f2c14e;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.student-timeline-head h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}
.student-timeline-head p {
  margin: 0;
  color: var(--muted);
}
.timeline-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.timeline-stat {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(242, 193, 78, 0.17);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}
.timeline-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}
.timeline-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.3rem;
}
.timeline-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.timeline-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.timeline-filter {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.timeline-filter.active {
  border-color: rgba(242, 193, 78, 0.5);
  background: rgba(242, 193, 78, 0.12);
  color: #ffe39a;
}
.timeline-search {
  flex: 0 1 290px;
}
.timeline-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 13px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--text);
  font: inherit;
  outline: none;
}
.timeline-search input:focus {
  border-color: rgba(242, 193, 78, 0.52);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.08);
}
.student-timeline {
  position: relative;
}
.student-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 20px;
  width: 2px;
  background: linear-gradient(
    rgba(242, 193, 78, 0.5),
    rgba(242, 193, 78, 0.06)
  );
}
.timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  padding-bottom: 14px;
  animation: timelineReveal 0.38s ease both;
}
.timeline-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 193, 78, 0.45);
  border-radius: 50%;
  background: #10263c;
  color: #ffe39a;
  font-weight: 900;
  box-shadow: 0 0 0 5px #0b1d30;
}
.timeline-card {
  padding: 16px;
  border: 1px solid rgba(242, 193, 78, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.timeline-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 193, 78, 0.36);
}
.timeline-event--completed .timeline-card {
  border-color: rgba(103, 215, 161, 0.3);
  box-shadow: 0 0 24px rgba(103, 215, 161, 0.07);
}
.timeline-event--completed .timeline-marker {
  border-color: rgba(103, 215, 161, 0.55);
  color: #87e7b8;
}
.timeline-event--pending .timeline-card {
  opacity: 0.72;
}
.timeline-event--overdue .timeline-card {
  border-color: rgba(255, 157, 66, 0.45);
  box-shadow: 0 0 22px rgba(255, 157, 66, 0.07);
}
.timeline-event--overdue .timeline-marker {
  border-color: rgba(255, 157, 66, 0.62);
  color: #ffb66d;
}
.timeline-event--scheduled .timeline-card {
  border-color: rgba(85, 194, 255, 0.38);
}
.timeline-event--scheduled .timeline-marker {
  border-color: rgba(85, 194, 255, 0.58);
  color: #79d0ff;
}
.timeline-event--transfer .timeline-card {
  border-color: rgba(185, 156, 255, 0.34);
}
.timeline-event--transfer .timeline-marker {
  border-color: rgba(185, 156, 255, 0.58);
  color: #cfbcff;
}
.timeline-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.timeline-event-type {
  color: #f2c14e;
  font-size: 0.73rem;
  font-weight: 900;
}
.timeline-card h3 {
  margin: 3px 0 0;
  font-size: 1.02rem;
}
.timeline-card time {
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
}
.timeline-card > p {
  margin: 10px 0 0;
  color: var(--muted);
}
.timeline-score {
  display: inline-flex;
  align-items: end;
  gap: 9px;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(242, 193, 78, 0.2);
  border-radius: 12px;
  background: rgba(242, 193, 78, 0.06);
}
.timeline-score span,
.timeline-transfer span {
  color: var(--muted);
  font-size: 0.72rem;
}
.timeline-score small {
  color: var(--muted);
  font-size: 0.75rem;
}
.timeline-transfer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(185, 156, 255, 0.06);
}
.timeline-transfer div {
  display: grid;
  gap: 3px;
}
.timeline-transfer i {
  color: #cfbcff;
  font-style: normal;
  font-weight: 900;
}
.timeline-action {
  display: inline-flex;
  margin-top: 13px;
}
.timeline-load-more {
  display: block;
  margin: 8px auto 0;
}
.timeline-empty {
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}
@keyframes timelineReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 900px) {
  .timeline-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .student-timeline-section {
    padding: 16px;
    border-radius: 19px;
  }
  .timeline-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .timeline-search {
    flex-basis: auto;
  }
  .timeline-card-head {
    flex-direction: column;
    gap: 5px;
  }
  .timeline-card time {
    white-space: normal;
  }
  .timeline-transfer {
    grid-template-columns: 1fr;
  }
  .timeline-transfer i {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-event {
    animation: none;
  }
  .timeline-card {
    transition: none;
  }
}

/* Standalone student timeline page */
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.timeline-page .student-timeline-section {
  margin-top: 22px;
}
.timeline-scope-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.timeline-select-field {
  display: grid;
  gap: 7px;
}
.timeline-select-field > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.timeline-select-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 9px 12px;
  background: #0d2237;
  color: var(--text);
  font: inherit;
  outline: none;
}
.timeline-select-field select:focus {
  border-color: rgba(242, 193, 78, 0.52);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.08);
}
.timeline-tools--search-only {
  justify-content: flex-end;
}
@media (max-width: 900px) {
  .timeline-scope-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .top-actions {
    width: 100%;
  }
  .top-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .timeline-scope-filters {
    grid-template-columns: 1fr;
  }
}

/* Published AI performance report */
.student-ai-performance-report {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(
    145deg,
    rgba(242, 193, 78, 0.08),
    rgba(255, 255, 255, 0.025)
  );
}
.student-ai-performance-report__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.student-ai-performance-report__head span,
.student-ai-performance-report__head time {
  color: var(--muted);
  font-size: 0.9rem;
}
.student-ai-performance-report__head h2 {
  margin: 4px 0 0;
}
.student-ai-report-summary {
  font-size: 1.04rem;
  line-height: 1.9;
}
.student-ai-report-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}
.student-ai-report-columns section,
.student-ai-performance-report > section {
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 14px;
}
.student-ai-report-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--gold2);
}
.student-ai-report-item:last-child {
  border-bottom: 0;
}
.student-ai-report-item strong {
  display: block;
  margin-bottom: 4px;
}
.student-ai-report-item p {
  margin: 0;
  color: var(--muted);
}
.student-ai-plan {
  display: grid;
  gap: 9px;
}
.student-ai-plan-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}
.student-ai-plan-step b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.student-ai-learning {
  margin-top: 16px;
  border-right: 3px solid var(--gold, #e6bd5a);
  padding: 10px 14px;
}
.student-ai-learning p {
  margin-top: 0;
}
.student-ai-learning strong {
  display: block;
}
@media (max-width: 720px) {
  .student-ai-report-columns {
    grid-template-columns: 1fr;
  }
  .student-ai-performance-report__head {
    display: block;
  }
  .student-ai-performance-report__head time {
    display: block;
    margin-top: 8px;
  }
}
.student-ai-response h1,
.student-ai-response h2,
.student-ai-response h3 {
  color: var(--gold2);
  font-weight: 800;
}

.student-ai-response strong {
  color: var(--gold2);
}

.live-challenge-task{border-color:rgba(242,193,78,.34)}.live-challenge-eyebrow{color:var(--gold);font-weight:800;margin-bottom:6px}.live-challenge-member-note{color:var(--muted);font-weight:700;padding:10px 0}

/* Live challenge waiting room */
.live-room-wrap{max-width:1180px}.live-room-status{margin:18px 0;padding:20px;border:1px solid var(--line);border-radius:18px;text-align:center;display:grid;gap:6px}.live-room-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.live-room-group{border:1px solid var(--line);border-radius:20px;padding:18px;background:var(--panel)}.live-room-group.is-my-group{outline:2px solid rgba(242,193,78,.55)}.live-room-group-head{display:flex;align-items:center;gap:12px}.live-room-avatar{font-size:2rem}.live-room-group h2{margin:0}.live-room-group p{margin:4px 0 0}.live-room-members{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.live-room-members span{padding:7px 10px;border-radius:999px;border:1px solid var(--line)}.live-room-editor{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:14px}.live-room-editor label{display:grid;gap:5px}.live-room-editor input{width:100%;padding:11px;border-radius:12px;border:1px solid var(--line);background:transparent;color:inherit}.live-question-panel{margin-top:20px;padding:24px;border:1px solid var(--line);border-radius:22px}.live-question-top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.live-question-panel h2{font-size:clamp(1.5rem,4vw,2.6rem);margin:36px 0}.live-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.live-option{padding:18px;border:1px solid var(--line);border-radius:16px;background:transparent;color:inherit;text-align:right;display:flex;gap:12px;font:inherit}@media(max-width:700px){.live-options{grid-template-columns:1fr}}

/* =========================================================
   NTF Live Challenge — cinematic show layer
   Uses the existing task and room APIs; presentation only.
   ========================================================= */
.lc-show-body{margin:0;min-height:100vh;overflow-x:hidden;background:#04111f;color:#fff;font-family:"Tajawal",sans-serif}
.lc-stage{position:relative;isolation:isolate;min-height:100vh;overflow:hidden;padding:clamp(18px,3vw,42px);background:radial-gradient(circle at 50% -15%,rgba(242,193,78,.17),transparent 38%),linear-gradient(145deg,#04111f 0%,#071a2e 48%,#03101c 100%)}
.lc-stage:before{content:"";position:absolute;inset:0;z-index:-4;opacity:.28;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:54px 54px;mask-image:linear-gradient(to bottom,#000,transparent 80%)}
.lc-stage:after{content:"";position:absolute;z-index:-3;inset:auto -10% -35% -10%;height:62%;border-radius:50%;background:radial-gradient(ellipse,rgba(242,193,78,.13),transparent 65%);filter:blur(30px)}
.lc-orb{position:absolute;z-index:-2;width:38vw;aspect-ratio:1;border-radius:50%;filter:blur(80px);opacity:.2;pointer-events:none;animation:lcFloat 10s ease-in-out infinite alternate}
.lc-orb-a{top:15%;right:-22%;background:#f2c14e}.lc-orb-b{bottom:-25%;left:-18%;background:#2675ff;animation-delay:-4s}
@keyframes lcFloat{to{transform:translate3d(3vw,-3vh,0) scale(1.08)}}
.lc-show-header{position:relative;z-index:5;display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:20px;max-width:1500px;margin:0 auto 28px}
.lc-title-stack{text-align:center}.lc-title-stack h1{margin:5px 0 4px;font-size:clamp(2rem,4vw,4rem);line-height:1;font-weight:900;letter-spacing:-.045em}.lc-title-stack p{margin:0;color:rgba(255,255,255,.62);font-weight:600}
.lc-eyebrow{display:inline-flex;align-items:center;gap:8px;color:#f2c14e;font-size:.78rem;font-weight:900;letter-spacing:.18em;text-transform:uppercase}
.lc-ghost-link{justify-self:start;color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.13);border-radius:999px;padding:10px 16px;background:rgba(255,255,255,.035);backdrop-filter:blur(14px);transition:.25s ease}.lc-ghost-link:hover{border-color:rgba(242,193,78,.5);transform:translateY(-2px)}
.lc-live-chip{justify-self:end;display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:10px 14px;background:rgba(3,13,24,.55);font-size:.82rem;font-weight:800}.lc-live-chip span{width:8px;height:8px;border-radius:50%;background:#43e38b;box-shadow:0 0 0 0 rgba(67,227,139,.6);animation:lcPulse 1.7s infinite}
@keyframes lcPulse{70%{box-shadow:0 0 0 10px rgba(67,227,139,0)}}
.lc-loading-state{min-height:55vh;display:grid;place-content:center;justify-items:center;gap:18px;text-align:center}.lc-loading-state span{color:rgba(255,255,255,.65)}
.lc-loader-ring{width:52px;height:52px;border-radius:50%;border:3px solid rgba(255,255,255,.12);border-top-color:#f2c14e;animation:lcSpin .8s linear infinite}@keyframes lcSpin{to{transform:rotate(360deg)}}
.lc-room-scene{max-width:1500px;margin:auto}.lc-readiness-line{text-align:center;margin:12px auto 28px}.lc-readiness-line>div{direction:ltr;display:flex;justify-content:center;align-items:baseline;gap:3px}.lc-big-number{font-size:clamp(3rem,7vw,6rem);line-height:.9;font-weight:900;color:#f2c14e;text-shadow:0 0 34px rgba(242,193,78,.3)}.lc-readiness-line p{margin:8px 0 0;color:rgba(255,255,255,.62);font-weight:700}
.lc-team-arena{display:flex;justify-content:center;align-items:stretch;flex-wrap:wrap;gap:clamp(16px,2.4vw,34px);perspective:1200px}
.lc-team{--team-size:clamp(230px,20vw,310px);position:relative;width:var(--team-size);min-height:330px;display:flex;flex-direction:column;align-items:center;text-align:center;padding:26px 18px 20px;border:1px solid rgba(255,255,255,.1);border-radius:36% 36% 24px 24px/22% 22% 24px 24px;background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.018));backdrop-filter:blur(18px);box-shadow:0 24px 60px rgba(0,0,0,.22);animation:lcTeamIn .65s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--team-index) * 90ms);transition:.35s ease}
.lc-team:hover{transform:translateY(-7px);border-color:rgba(242,193,78,.32)}
@keyframes lcTeamIn{from{opacity:0;transform:translateY(34px) rotateX(8deg) scale(.94)}to{opacity:1;transform:none}}
.lc-team.just-ready{animation:lcReadyImpact .8s cubic-bezier(.2,.9,.2,1)}@keyframes lcReadyImpact{40%{transform:scale(1.07)}70%{transform:scale(.98)}}
.lc-team-aura{position:absolute;inset:14% 12% auto;height:45%;border-radius:50%;background:radial-gradient(circle,rgba(242,193,78,.17),transparent 70%);filter:blur(12px);opacity:.7}.lc-team.is-waiting{filter:saturate(.5);opacity:.72}.lc-team.is-ready .lc-team-aura,.lc-team.is-my-team .lc-team-aura{opacity:1;animation:lcAura 2.6s ease-in-out infinite}@keyframes lcAura{50%{transform:scale(1.12);opacity:.55}}
.lc-team.is-my-team{border-color:rgba(242,193,78,.62);box-shadow:0 0 0 1px rgba(242,193,78,.16),0 28px 80px rgba(0,0,0,.3)}
.lc-team-emblem{position:relative;width:112px;height:112px;display:grid;place-items:center;margin:-2px auto 14px;border-radius:50%;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.2),rgba(242,193,78,.08) 36%,rgba(0,0,0,.18) 72%);border:1px solid rgba(242,193,78,.38);box-shadow:inset 0 0 24px rgba(255,255,255,.06),0 16px 35px rgba(0,0,0,.28)}.lc-team-emblem:before,.lc-team-emblem:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(242,193,78,.18)}.lc-team-emblem:before{inset:-8px}.lc-team-emblem:after{inset:-16px;border-style:dashed;animation:lcOrbit 18s linear infinite}@keyframes lcOrbit{to{transform:rotate(360deg)}}.lc-team-emblem span{font-size:3.2rem;filter:drop-shadow(0 8px 12px rgba(0,0,0,.35))}
.lc-team-copy{position:relative}.lc-team-copy h2{margin:8px 0 2px;font-size:clamp(1.35rem,2vw,1.8rem);font-weight:900}.lc-team-copy p{margin:0;color:rgba(255,255,255,.56);font-size:.82rem}.lc-team-status{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:6px 10px;background:rgba(0,0,0,.22);font-size:.7rem;font-weight:900}.lc-team-status i{width:7px;height:7px;border-radius:50%;background:#43e38b}.lc-team.is-waiting .lc-team-status i{background:#f2c14e}
.lc-members-cloud{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:17px}.lc-member{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.055);color:rgba(255,255,255,.72);font-size:.72rem;border:1px solid rgba(255,255,255,.07)}.lc-member b{font-size:.6rem;color:#f2c14e}.lc-member.is-leader{background:rgba(242,193,78,.1);color:#fff}
.lc-teacher-console{position:sticky;bottom:20px;z-index:9;display:flex;justify-content:space-between;align-items:center;gap:20px;max-width:920px;margin:38px auto 0;padding:14px 14px 14px 24px;border:1px solid rgba(255,255,255,.13);border-radius:24px;background:rgba(3,13,24,.78);backdrop-filter:blur(24px);box-shadow:0 24px 70px rgba(0,0,0,.36)}.lc-console-copy{display:grid;gap:3px}.lc-console-copy span{color:rgba(255,255,255,.55);font-size:.82rem}.lc-start-button{border:0;border-radius:18px;padding:17px 24px;display:flex;align-items:center;gap:22px;background:#f2c14e;color:#092036;font:900 1rem "Tajawal",sans-serif;cursor:pointer;box-shadow:0 10px 30px rgba(242,193,78,.22);transition:.25s ease}.lc-start-button:hover{transform:translateY(-3px) scale(1.015)}.lc-start-button b{font-size:1.35rem}.lc-start-button:disabled{opacity:.6;cursor:wait}
.lc-room-scene.is-launching{animation:lcSceneLeave .8s ease forwards}@keyframes lcSceneLeave{to{opacity:.08;transform:scale(.86);filter:blur(8px)}}
.lc-countdown{position:fixed;inset:0;z-index:100;display:grid;place-content:center;justify-items:center;background:radial-gradient(circle,rgba(242,193,78,.12),rgba(2,9,16,.9) 58%);backdrop-filter:blur(10px)}.lc-countdown[hidden]{display:none}.lc-countdown span{font-size:clamp(1rem,2vw,1.5rem);font-weight:900;letter-spacing:.2em;color:#f2c14e}.lc-countdown strong{font-size:clamp(7rem,24vw,19rem);line-height:.9;font-weight:900;text-shadow:0 0 70px rgba(242,193,78,.35)}.lc-countdown strong.pop{animation:lcCountPop .65s cubic-bezier(.15,.85,.2,1)}@keyframes lcCountPop{0%{opacity:0;transform:scale(1.6)}55%{opacity:1;transform:scale(.9)}100%{transform:scale(1)}}
.lc-student-waiting-copy{text-align:center;margin:12px auto 32px}.lc-student-waiting-copy span{color:#f2c14e;font-size:.78rem;font-weight:900;letter-spacing:.15em}.lc-student-waiting-copy strong{display:block;margin:5px 0;font-size:clamp(1.5rem,3vw,2.5rem)}.lc-student-waiting-copy p{margin:0;color:rgba(255,255,255,.58)}
.lc-student-arena .lc-team:not(.is-my-team){transform:scale(.9);opacity:.7}.lc-customize-team{margin-top:auto;border:1px solid rgba(242,193,78,.38);border-radius:999px;padding:10px 15px;background:rgba(242,193,78,.09);color:#f7d77f;font:800 .82rem "Tajawal",sans-serif;cursor:pointer;transition:.2s}.lc-customize-team:hover{background:#f2c14e;color:#092036}
.lc-identity-modal{position:fixed;inset:0;z-index:110;display:grid;place-items:center;padding:20px;background:rgba(0,5,10,.78);backdrop-filter:blur(16px)}.lc-identity-modal[hidden]{display:none}.lc-identity-sheet{position:relative;width:min(520px,100%);padding:30px;border-radius:30px;border:1px solid rgba(255,255,255,.14);background:#071a2e;box-shadow:0 40px 100px rgba(0,0,0,.5);animation:lcSheetIn .35s ease}@keyframes lcSheetIn{from{opacity:0;transform:translateY(24px) scale(.96)}}.lc-identity-sheet h2{margin:6px 0 22px;font-size:1.8rem}.lc-identity-sheet label{display:block;margin:14px 0 7px;font-weight:800}.lc-identity-sheet input[type=text],.lc-identity-sheet input:not([type]){width:100%;box-sizing:border-box;padding:14px 16px;border-radius:15px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.045);color:#fff;font:inherit;outline:none}.lc-identity-sheet input:focus{border-color:#f2c14e;box-shadow:0 0 0 3px rgba(242,193,78,.12)}.lc-close-button{position:absolute;top:16px;left:16px;width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.12);background:transparent;color:#fff;font-size:1.4rem;cursor:pointer}.lc-avatar-choices{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}.lc-avatar-choices button{aspect-ratio:1;border-radius:15px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);font-size:1.55rem;cursor:pointer;transition:.2s}.lc-avatar-choices button:hover,.lc-avatar-choices button.is-selected{transform:translateY(-3px);border-color:#f2c14e;background:rgba(242,193,78,.12);box-shadow:0 10px 25px rgba(0,0,0,.22)}.lc-save-identity{width:100%;margin-top:22px;padding:15px;border:0;border-radius:16px;background:#f2c14e;color:#092036;font:900 1rem "Tajawal",sans-serif;cursor:pointer}
.lc-speed-lines{position:absolute;inset:0;z-index:-2;opacity:.1;background:repeating-linear-gradient(115deg,transparent 0 46px,rgba(255,255,255,.18) 47px 48px,transparent 49px 96px);animation:lcLines 16s linear infinite}@keyframes lcLines{to{background-position:600px 0}}
.lc-question-scene{max-width:1500px;margin:auto}.lc-question-hud{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:25px}.lc-question-progress{display:grid;gap:8px}.lc-question-progress span{font-weight:900}.lc-question-progress>div{width:min(320px,100%);height:7px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden}.lc-question-progress i{display:block;height:100%;border-radius:inherit;background:#f2c14e;box-shadow:0 0 16px rgba(242,193,78,.45);transition:width .4s ease}.lc-multiplier{justify-self:center;padding:9px 16px;border:1px solid rgba(242,193,78,.36);border-radius:999px;background:rgba(242,193,78,.09);color:#f7d77f;font-weight:900}.lc-timer{justify-self:end;display:flex;align-items:baseline;gap:10px}.lc-timer span{color:rgba(255,255,255,.52);font-size:.75rem;font-weight:800}.lc-timer strong{font-size:2.2rem;font-weight:900;font-variant-numeric:tabular-nums}.lc-time-critical .lc-timer strong{color:#ff6b6b;animation:lcTimerBeat .65s infinite}@keyframes lcTimerBeat{50%{transform:scale(1.12)}}
.lc-question-focus{text-align:center;max-width:1200px;margin:clamp(52px,8vh,105px) auto clamp(38px,6vh,70px)}.lc-question-kicker{color:#f2c14e;font-size:.8rem;font-weight:900;letter-spacing:.12em}.lc-question-focus h1{margin:16px 0 0;font-size:clamp(2rem,5.2vw,5.6rem);line-height:1.25;font-weight:900;letter-spacing:-.035em;text-wrap:balance;text-shadow:0 18px 40px rgba(0,0,0,.28)}
.lc-answer-field{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:1250px;margin:auto}.lc-answer-option{position:relative;min-height:104px;display:grid;grid-template-columns:68px 1fr 18px;align-items:center;gap:16px;padding:16px 21px;border:1px solid rgba(255,255,255,.11);border-radius:24px;background:linear-gradient(120deg,rgba(255,255,255,.075),rgba(255,255,255,.025));color:#fff;text-align:right;font:800 clamp(1rem,1.7vw,1.35rem) "Tajawal",sans-serif;overflow:hidden;animation:lcOptionIn .5s ease both;animation-delay:calc(var(--option-index) * 90ms);transition:.22s ease}.lc-answer-option:before{content:"";position:absolute;inset:0 auto 0 0;width:0;background:linear-gradient(90deg,transparent,rgba(242,193,78,.13));transition:.3s}.lc-answer-option b{width:56px;height:56px;display:grid;place-items:center;border-radius:18px;background:rgba(242,193,78,.11);color:#f2c14e;font-size:1.35rem}.lc-answer-option i{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.12)}@keyframes lcOptionIn{from{opacity:0;transform:translateY(24px)}}
button.lc-answer-option{cursor:pointer}.lc-player-options button.lc-answer-option:hover{transform:translateY(-4px);border-color:rgba(242,193,78,.42)}.lc-player-options button.lc-answer-option:hover:before{width:100%}.lc-player-options .lc-answer-option.is-selected{border-color:#f2c14e;background:rgba(242,193,78,.14);transform:scale(1.015)}.lc-player-options .lc-answer-option.is-selected i{background:#43e38b;box-shadow:0 0 0 6px rgba(67,227,139,.12)}
.lc-answer-status{max-width:520px;margin:22px auto 0;padding:14px 18px;text-align:center;border-radius:18px;background:rgba(67,227,139,.1);border:1px solid rgba(67,227,139,.3)}.lc-answer-status[hidden]{display:none}.lc-answer-status strong,.lc-answer-status span{display:block}.lc-answer-status span{margin-top:2px;color:rgba(255,255,255,.6);font-size:.82rem}.lc-answer-status.show{animation:lcStatusIn .35s ease}@keyframes lcStatusIn{from{opacity:0;transform:translateY(12px)}}
.lc-presenter-footer{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:30px;color:rgba(255,255,255,.38);font-size:.68rem;font-weight:800;letter-spacing:.1em}.lc-presenter-footer i{width:4px;height:4px;border-radius:50%;background:#f2c14e}.question-enter .lc-question-focus{animation:lcQuestionIn .65s cubic-bezier(.2,.85,.2,1)}@keyframes lcQuestionIn{from{opacity:0;transform:translateY(-20px) scale(.97)}}
@media(max-width:800px){.lc-stage{padding:16px}.lc-show-header{grid-template-columns:auto 1fr auto;gap:10px}.lc-title-stack h1{font-size:1.55rem}.lc-title-stack p{font-size:.75rem}.lc-ghost-link{padding:8px 11px;font-size:.75rem}.lc-live-chip{padding:8px 10px;font-size:.7rem}.lc-team{--team-size:min(100%,330px)}.lc-teacher-console{position:relative;bottom:auto;flex-direction:column;text-align:center;padding:18px}.lc-start-button{width:100%;justify-content:center}.lc-question-hud{grid-template-columns:1fr auto}.lc-multiplier{grid-row:2;grid-column:1/-1}.lc-timer{grid-column:2}.lc-question-focus{margin:45px auto 30px}.lc-answer-field{grid-template-columns:1fr}.lc-answer-option{min-height:84px;grid-template-columns:54px 1fr 12px;padding:13px}.lc-answer-option b{width:46px;height:46px;border-radius:14px}.lc-avatar-choices{grid-template-columns:repeat(4,1fr)}}


/* Live Challenge — Phase 1 cartoon waiting room */
:root{
  --lc-sky:#69d8ff;
  --lc-sky-deep:#32bde9;
  --lc-yellow:#ffd84d;
  --lc-yellow-deep:#e9b91f;
  --lc-green:#63df7b;
  --lc-green-deep:#35b854;
  --lc-white:#fffdf7;
  --lc-ink:#153b57;
  --lc-coral:#ff7d72;
}
.lc-show-body{background:linear-gradient(180deg,var(--lc-sky) 0%,#8ee4ff 58%,#d9f8ff 100%);color:var(--lc-ink);font-family:"Baloo Bhaijaan 2","Tajawal",sans-serif}
.lc-stage{isolation:isolate;position:relative;min-height:100vh;overflow:hidden}
.lc-stage::before,.lc-stage::after{content:"";position:fixed;z-index:-3;width:320px;height:110px;border-radius:999px;background:rgba(255,255,255,.84);filter:drop-shadow(0 14px 0 rgba(255,255,255,.23));animation:lcCloudFloat 11s ease-in-out infinite alternate}
.lc-stage::before{top:16%;left:-80px}.lc-stage::after{top:58%;right:-100px;transform:scale(.75);animation-delay:-4s}
@keyframes lcCloudFloat{to{translate:50px 10px}}
.lc-orb{display:block!important;border-radius:48% 52% 63% 37%;opacity:.95;filter:none;background:var(--lc-yellow);box-shadow:inset 0 -12px 0 rgba(0,0,0,.08);animation:lcBlob 7s ease-in-out infinite alternate}
.lc-orb-b{background:var(--lc-green);animation-delay:-2.2s}
@keyframes lcBlob{to{transform:translateY(20px) rotate(9deg) scale(1.08)}}
.lc-show-header{border:3px solid rgba(255,255,255,.9);background:rgba(255,253,247,.82);box-shadow:0 10px 0 rgba(21,59,87,.13),0 22px 50px rgba(20,115,150,.16);backdrop-filter:blur(12px);border-radius:30px;padding:18px 20px}
.lc-title-stack h1{color:var(--lc-ink);text-shadow:0 3px 0 rgba(255,255,255,.9)}
.lc-title-stack p,.lc-console-copy span,.lc-student-waiting-copy p{color:#4c7087}
.lc-eyebrow{display:inline-flex;align-items:center;gap:8px;color:#137da4;font-weight:900;background:#dff8ff;border:2px solid #fff;border-radius:999px;padding:5px 12px;box-shadow:0 5px 0 rgba(21,59,87,.08)}
.lc-ghost-link,.lc-live-chip{border:0;background:var(--lc-white);color:var(--lc-ink);box-shadow:0 6px 0 rgba(21,59,87,.14);font-weight:900}
.lc-live-chip span{background:var(--lc-green);box-shadow:0 0 0 5px rgba(99,223,123,.2)}
.lc-loading-state{color:var(--lc-ink);background:rgba(255,253,247,.8);border:3px solid #fff;border-radius:30px;box-shadow:0 10px 0 rgba(21,59,87,.1)}
.lc-loader-ring{border-color:rgba(21,59,87,.14);border-top-color:var(--lc-yellow)}
.lc-readiness-line,.lc-student-waiting-copy{color:var(--lc-ink);text-align:center}
.lc-big-number{color:var(--lc-yellow-deep);text-shadow:0 4px 0 #fff,0 8px 0 rgba(21,59,87,.12)}
.lc-team-arena{gap:clamp(24px,3vw,46px);align-items:center;padding:20px 0 36px}
.lc-team{position:relative;background:transparent!important;border:0!important;box-shadow:none!important;filter:none;transform-origin:center bottom;animation:lcTeamDrop .65s cubic-bezier(.2,.9,.2,1.2) both;animation-delay:calc(var(--team-index)*.09s)}
@keyframes lcTeamDrop{from{opacity:0;transform:translateY(-35px) scale(.7) rotate(-5deg)}to{opacity:1;transform:none}}
.lc-team::after{content:"";position:absolute;left:15%;right:15%;bottom:-18px;height:24px;border-radius:50%;background:rgba(21,59,87,.15);filter:blur(5px);z-index:-1}
.lc-team-emblem{width:132px;height:132px;border:7px solid var(--lc-white);background:var(--lc-yellow);box-shadow:0 12px 0 var(--lc-yellow-deep),0 22px 32px rgba(21,59,87,.2),inset 0 9px 0 rgba(255,255,255,.38);border-radius:42% 58% 50% 50%;animation:lcMascotFloat 2.8s ease-in-out infinite}
.lc-team:nth-child(3n+2) .lc-team-emblem{background:var(--lc-green);box-shadow:0 12px 0 var(--lc-green-deep),0 22px 32px rgba(21,59,87,.2),inset 0 9px 0 rgba(255,255,255,.38)}
.lc-team:nth-child(3n+3) .lc-team-emblem{background:var(--lc-white);box-shadow:0 12px 0 #cdeff7,0 22px 32px rgba(21,59,87,.2),inset 0 9px 0 #fff}
@keyframes lcMascotFloat{50%{transform:translateY(-8px) rotate(2deg)}}
.lc-team-emblem span{font-size:3.7rem;filter:drop-shadow(0 5px 0 rgba(21,59,87,.13))}
.lc-team-aura{background:transparent!important;box-shadow:none!important}
.lc-team-copy{margin-top:20px;padding:12px 18px 14px;background:var(--lc-white);border:4px solid #fff;border-radius:24px;box-shadow:0 8px 0 rgba(21,59,87,.13),0 18px 28px rgba(21,59,87,.12);min-width:220px}
.lc-team-copy h2{color:var(--lc-ink);font-size:1.45rem;margin:3px 0}
.lc-team-copy p{color:#5c7b8f}
.lc-team-status{color:#167c40;font-weight:900}.lc-team-status i{background:var(--lc-green)}
.lc-team.is-waiting .lc-team-status{color:#9a6a00}.lc-team.is-waiting .lc-team-status i{background:var(--lc-yellow)}
.lc-team.is-my-team .lc-team-copy{outline:6px solid rgba(255,216,77,.55);animation:lcMyTeamPulse 2.2s ease-in-out infinite}
@keyframes lcMyTeamPulse{50%{outline-offset:5px}}
.lc-members-cloud{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-top:12px}
.lc-member{background:#eafaff;color:var(--lc-ink);border:2px solid #fff;border-radius:999px;box-shadow:0 4px 0 rgba(21,59,87,.1);font-weight:800}
.lc-member.is-leader{background:var(--lc-yellow);color:var(--lc-ink)}
.lc-member b{background:var(--lc-ink);color:#fff}
.lc-customize-team,.lc-start-button,.lc-save-identity{border:3px solid #fff!important;background:var(--lc-yellow)!important;color:var(--lc-ink)!important;box-shadow:0 8px 0 var(--lc-yellow-deep),0 15px 24px rgba(21,59,87,.18)!important;border-radius:20px!important;font-family:inherit!important;font-weight:900!important;transition:transform .16s ease,box-shadow .16s ease!important}
.lc-customize-team:hover,.lc-start-button:hover,.lc-save-identity:hover{transform:translateY(-3px) rotate(-1deg)!important}
.lc-customize-team:active,.lc-start-button:active,.lc-save-identity:active{transform:translateY(6px)!important;box-shadow:0 2px 0 var(--lc-yellow-deep)!important}
.lc-teacher-console{background:rgba(255,253,247,.9);border:4px solid #fff;box-shadow:0 10px 0 rgba(21,59,87,.13),0 22px 45px rgba(21,59,87,.15);color:var(--lc-ink)}
.lc-console-copy strong{color:var(--lc-ink)}
.lc-identity-modal{background:rgba(35,170,217,.62);backdrop-filter:blur(10px)}
.lc-identity-sheet{background:var(--lc-white);color:var(--lc-ink);border:5px solid #fff;box-shadow:0 14px 0 rgba(21,59,87,.14),0 35px 70px rgba(21,59,87,.2);border-radius:34px}
.lc-identity-sheet input[type=text],.lc-identity-sheet input:not([type]){background:#effbff;color:var(--lc-ink);border:3px solid #bceeff;box-shadow:inset 0 3px 0 rgba(21,59,87,.06)}
.lc-identity-sheet input:focus{border-color:var(--lc-yellow);box-shadow:0 0 0 5px rgba(255,216,77,.24)}
.lc-close-button{background:var(--lc-coral);color:white;border:3px solid white;box-shadow:0 5px 0 #d85f55}
.lc-avatar-choices button{background:#eafaff;border:3px solid #fff;box-shadow:0 5px 0 #b8e7f2;border-radius:18px}
.lc-avatar-choices button:hover,.lc-avatar-choices button.is-selected{border-color:#fff;background:var(--lc-yellow);box-shadow:0 6px 0 var(--lc-yellow-deep);transform:translateY(-4px) rotate(3deg)}
.lc-countdown{background:radial-gradient(circle,rgba(255,255,255,.97) 0 22%,rgba(255,216,77,.97) 23% 45%,rgba(105,216,255,.94) 46% 100%);color:var(--lc-ink)}
.lc-countdown strong{color:var(--lc-ink);text-shadow:0 8px 0 #fff,0 14px 0 rgba(21,59,87,.18)}
@media(max-width:800px){.lc-team-emblem{width:108px;height:108px}.lc-team-copy{min-width:min(250px,82vw)}.lc-show-header{border-radius:22px}.lc-stage::before,.lc-stage::after{opacity:.55}}

/* Live Challenge cartoon question flow */
.lc-question-stage,.lc-player-stage{position:relative;min-height:100vh;padding:clamp(18px,3vw,44px);overflow:hidden}.lc-question-scene,.lc-scoreboard-scene{position:relative;z-index:3;max-width:1400px;margin:auto}.lc-question-hud{grid-template-columns:1fr auto}.lc-question-progress>div{background:rgba(255,255,255,.58);box-shadow:inset 0 2px 0 rgba(255,255,255,.7)}.lc-question-progress i{background:#ffd84d;box-shadow:0 5px 0 #e9ad20}.lc-timer{padding:8px 18px;border:4px solid #fff;border-radius:24px;background:#fff7df;box-shadow:0 7px 0 #d8b14a;color:#24506a}.lc-timer span{color:#567b8d}.lc-timer strong{color:#24506a}.lc-question-focus{margin:clamp(45px,7vh,85px) auto clamp(28px,5vh,55px)}.lc-question-kicker{display:inline-block;padding:7px 18px;border-radius:999px;background:#fff;border:3px solid #d5f5ff;color:#19718e;box-shadow:0 6px 0 rgba(32,132,164,.18);letter-spacing:0}.lc-question-focus h1{color:#163e57;text-shadow:0 5px 0 rgba(255,255,255,.75);max-width:1200px;margin-inline:auto}.lc-team-hint{display:block;margin-top:12px;color:#2d7086;font-weight:800}.lc-answer-field{gap:22px}.lc-answer-option{min-height:120px;border:5px solid rgba(255,255,255,.95);border-radius:30px;color:#fff;box-shadow:0 10px 0 var(--lc-option-shadow),0 15px 24px rgba(38,91,114,.18);font-family:"Baloo Bhaijaan 2","Tajawal",sans-serif;transform:translateY(0);transition:transform .16s ease,filter .2s ease,opacity .2s ease;background:var(--lc-option-bg)}.lc-answer-option:before{display:none}.lc-answer-option b{background:rgba(255,255,255,.94);color:var(--lc-option-ink);border-radius:20px;box-shadow:0 5px 0 rgba(0,0,0,.12)}.lc-answer-option i{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.22);font-style:normal;font-size:2rem;font-weight:900}.lc-answer-option:hover{transform:translateY(-4px)}.lc-answer-option:active,.lc-answer-option.is-selected{transform:translateY(7px);box-shadow:0 3px 0 var(--lc-option-shadow),0 7px 14px rgba(38,91,114,.12)}.lc-option-0{--lc-option-bg:#ff6666;--lc-option-shadow:#c93f46;--lc-option-ink:#d9474d}.lc-option-1{--lc-option-bg:#58db7d;--lc-option-shadow:#29a954;--lc-option-ink:#24994a}.lc-option-2{--lc-option-bg:#ffd84d;--lc-option-shadow:#d9a817;--lc-option-ink:#a87500}.lc-option-3{--lc-option-bg:#4a9cff;--lc-option-shadow:#2572c7;--lc-option-ink:#2371c7}.lc-answer-option.is-correct{animation:lcCorrectPop .65s ease both;filter:saturate(1.12);outline:8px solid rgba(255,255,255,.82);outline-offset:3px}.lc-answer-option.is-correct i{background:#fff;color:#25a851;box-shadow:0 5px 0 rgba(0,0,0,.12)}body[data-challenge-phase="reveal"] .lc-answer-option:not(.is-correct){opacity:.42;filter:grayscale(.2)}@keyframes lcCorrectPop{0%,100%{transform:scale(1)}45%{transform:scale(1.07) rotate(-1deg)}}.lc-multiplier-bubble{position:absolute;z-index:20;left:50%;top:45%;transform:translate(-50%,-50%);min-width:min(430px,85vw);padding:28px 38px;text-align:center;border:7px solid #fff;border-radius:45% 55% 48% 52%/55% 45% 55% 45%;background:#ffd84d;color:#744c00;box-shadow:0 13px 0 #d9a817,0 22px 40px rgba(52,87,103,.22)}.lc-multiplier-bubble strong,.lc-multiplier-bubble span{display:block}.lc-multiplier-bubble strong{font-size:clamp(1.8rem,5vw,4.2rem)}.lc-multiplier-bubble span{font-size:1.5rem;font-weight:900}.lc-multiplier-bubble.show{animation:lcBubbleVisit 2s ease both}@keyframes lcBubbleVisit{0%{opacity:0;transform:translate(-50%,-50%) scale(.25) rotate(-9deg)}20%,72%{opacity:1;transform:translate(-50%,-50%) scale(1.05) rotate(2deg)}100%{opacity:0;transform:translate(-50%,-70%) scale(.7) rotate(7deg)}}.lc-scoreboard-scene{text-align:center;padding-top:clamp(25px,5vh,60px)}.lc-scoreboard-scene h1{margin:16px 0 30px;color:#16445e;font-size:clamp(2rem,5vw,4.8rem);text-shadow:0 5px 0 #fff}.lc-scoreboard-list{display:grid;gap:14px;max-width:1050px;margin:auto}.lc-score-team{display:grid;grid-template-columns:54px 72px minmax(0,1fr) auto auto;align-items:center;gap:18px;padding:14px 22px;border:5px solid #fff;border-radius:30px;background:#fffaf0;color:#19465c;box-shadow:0 9px 0 #aed9e6;animation:lcScoreIn .55s cubic-bezier(.2,.9,.25,1.15) both;animation-delay:calc(var(--rank) * 130ms);text-align:right}.lc-score-team.is-my-team{outline:7px solid rgba(255,216,77,.7);outline-offset:3px}.lc-score-rank{width:48px;height:48px;display:grid;place-items:center;border-radius:17px;background:#ffd84d;box-shadow:0 5px 0 #d7a919;font-size:1.4rem;font-weight:900}.lc-score-avatar{font-size:3rem}.lc-score-team div strong,.lc-score-team div small{display:block}.lc-score-team div strong{font-size:1.3rem}.lc-score-team div small{color:#6690a0}.lc-round-points{padding:7px 13px;border-radius:16px;background:#58db7d;color:#135d2c;font-size:1.25rem}.lc-total-points{min-width:120px;text-align:left;font-size:1.3rem}.lc-round-points span,.lc-total-points span{display:block;font-size:.72rem;font-weight:800;line-height:1.1;opacity:.72;margin-bottom:2px}.lc-round-points{text-align:center}.lc-total-points{text-align:center}.lc-next-question-note{color:#34748a;font-weight:800}.lc-score-team:nth-child(1){background:#fff4b8;box-shadow:0 9px 0 #e1b936}.lc-score-team:nth-child(2){background:#eff9fc}.lc-score-team:nth-child(3){background:#ffe8cf;box-shadow:0 9px 0 #dfac70}@keyframes lcScoreIn{from{opacity:0;transform:translateX(80px) scale(.92)}}@media(max-width:800px){.lc-question-hud{grid-template-columns:1fr auto}.lc-answer-option{min-height:90px}.lc-score-team{grid-template-columns:42px 52px 1fr auto;padding:12px;gap:10px}.lc-score-avatar{font-size:2rem}.lc-total-points{grid-column:3/5;text-align:right}.lc-round-points{font-size:1rem}}

/* Live Challenge question media */
.lc-question-media{width:min(860px,92vw);margin:24px auto 0;overflow:hidden;border:7px solid #fff;border-radius:30px;background:#fff8e8;box-shadow:0 10px 0 #a8d8e7,0 18px 30px rgba(45,103,126,.18)}
.lc-question-media img,.lc-question-media video,.lc-question-media iframe{display:block;width:100%;max-height:min(42vh,430px);object-fit:contain;background:#122b3a;border:0}
.lc-question-media iframe{aspect-ratio:16/9;max-height:none}.lc-question-focus:has(.lc-question-media:not([hidden])){margin-top:clamp(24px,4vh,48px)}
@media(max-width:760px){.lc-question-media{border-width:5px;border-radius:22px}.lc-question-media img,.lc-question-media video{max-height:34vh}}

/* Live Challenge — calm motion and stable rendering fixes */
.lc-loading-state[hidden]{display:none!important}
.lc-answer-field[hidden],.lc-question-media[hidden],.lc-scoreboard-scene[hidden],.lc-question-scene[hidden],.lc-multiplier-bubble[hidden],.lc-answer-status[hidden]{display:none!important}
.lc-team{animation-duration:.28s!important;animation-timing-function:ease-out!important;animation-delay:calc(var(--team-index)*35ms)!important}
.lc-team-emblem{animation:none!important}
.lc-team.is-my-team .lc-team-copy{animation:none!important;outline-offset:2px!important}
.lc-team-emblem:after,.lc-team.is-ready .lc-team-aura,.lc-team.is-my-team .lc-team-aura{animation:none!important}
.lc-answer-option{animation-duration:.24s!important;animation-delay:calc(var(--option-index)*35ms)!important;transition:transform .14s ease,filter .18s ease,opacity .18s ease!important}
.lc-answer-option.is-correct{animation:none!important;transform:none!important}
.question-enter .lc-question-focus{animation-duration:.3s!important}
.lc-score-team{animation-duration:.3s!important;animation-delay:calc(var(--rank)*55ms)!important}
.lc-time-critical .lc-timer strong{animation:none!important}
.lc-finished-state{min-height:72vh!important;padding:clamp(36px,6vw,80px)!important;background:rgba(255,253,247,.94)!important;border-width:6px!important;border-radius:44px!important}
.lc-finished-state .lc-loader-ring{display:none!important}
.lc-finished-state .lc-finished-trophy{font-size:clamp(5rem,12vw,10rem);line-height:1;margin-bottom:16px}
.lc-finished-state strong{font-size:clamp(3rem,8vw,7rem)!important;line-height:1.05;color:var(--lc-ink);text-shadow:0 6px 0 #fff}
.lc-finished-state span{font-size:clamp(1.25rem,3vw,2.3rem)!important;color:#3e738b!important;font-weight:900;margin-top:18px}
@media (prefers-reduced-motion: reduce){.lc-team,.lc-answer-option,.lc-score-team,.question-enter .lc-question-focus,.lc-multiplier-bubble.show{animation:none!important;transition:none!important}}


/* Phase 7: final celebration and podium */
.lc-celebration-scene[hidden]{display:none!important}
.lc-celebration-scene{position:relative;z-index:5;max-width:1400px;min-height:min(88vh,900px);margin:auto;padding:clamp(22px,4vw,52px);display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;text-align:center}
.lc-celebration-heading{position:relative;z-index:3}.lc-celebration-heading>span{display:inline-flex;padding:9px 18px;border:4px solid #fff;border-radius:999px;background:#ffd84d;color:#765300;box-shadow:0 6px 0 #d7a919;font-weight:900;font-size:clamp(1rem,2vw,1.35rem)}
.lc-celebration-heading h1{margin:20px 0 5px;color:#16445e;font-size:clamp(3.2rem,8vw,7rem);line-height:1;text-shadow:0 7px 0 #fff}.lc-celebration-heading p{margin:10px 0 28px;color:#34748a;font-size:clamp(1.2rem,2.4vw,2rem);font-weight:900}
.lc-podium{position:relative;z-index:3;width:min(1080px,100%);display:flex;align-items:flex-end;justify-content:center;gap:clamp(8px,2vw,28px);direction:ltr}.lc-podium-team{width:min(30%,300px);display:flex;flex-direction:column;align-items:center;direction:rtl;animation:lcPodiumEnter .65s cubic-bezier(.2,.9,.25,1.1) both}.lc-podium-rank-1{order:2}.lc-podium-rank-2{order:1}.lc-podium-rank-3{order:3}.lc-podium-mascot{font-size:clamp(3.8rem,8vw,7rem);line-height:1;filter:drop-shadow(0 8px 0 rgba(255,255,255,.8));margin-bottom:10px}.lc-podium-team>strong{max-width:100%;font-size:clamp(1.15rem,2.2vw,1.9rem);color:#16445e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lc-podium-score{margin:6px 0 12px;padding:6px 13px;border-radius:999px;background:#fff;color:#34748a;font-weight:900;box-shadow:0 4px 0 #bee0e9}.lc-podium-block{width:100%;min-height:clamp(125px,18vw,230px);padding:20px 8px;border:6px solid #fff;border-radius:30px 30px 12px 12px;background:#ffd84d;box-shadow:0 11px 0 #d7a919;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;color:#765300}.lc-podium-block b{font-size:clamp(2.3rem,5vw,4.6rem)}.lc-podium-block span{font-weight:900;font-size:clamp(.95rem,1.8vw,1.35rem)}.lc-podium-rank-1 .lc-podium-block{min-height:clamp(190px,27vw,330px);background:#ffd84d}.lc-podium-rank-2 .lc-podium-block{min-height:clamp(145px,21vw,260px);background:#e9f1f5;box-shadow:0 11px 0 #a9c5d0;color:#4f7180}.lc-podium-rank-3 .lc-podium-block{min-height:clamp(115px,17vw,210px);background:#f4b77e;box-shadow:0 11px 0 #c98148;color:#76421e}
.lc-celebration-actions{position:relative;z-index:4;margin-top:25px}.lc-sound-button{appearance:none;border:4px solid #fff;border-radius:20px;padding:12px 20px;background:#36c6ee;color:#123f56;box-shadow:0 6px 0 #168aac;font:900 1rem Tajawal,sans-serif;cursor:pointer}.lc-sound-button:active{transform:translateY(4px);box-shadow:0 2px 0 #168aac}.lc-sound-button.needs-interaction{animation:lcSoundHint 1.4s ease-in-out 2}
.lc-confetti{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}.lc-confetti i{position:absolute;top:-12%;left:var(--x);font-style:normal;font-size:clamp(.7rem,1.5vw,1.3rem);color:hsl(calc(var(--rotation) + 30),85%,55%);animation:lcConfettiFall var(--duration) linear var(--delay) 2 both;transform:rotate(var(--rotation))}
@keyframes lcPodiumEnter{from{opacity:0;transform:translateY(70px) scale(.92)}}@keyframes lcConfettiFall{to{transform:translateY(112vh) rotate(calc(var(--rotation) + 720deg))}}@keyframes lcSoundHint{50%{transform:scale(1.06)}}
@media(max-width:700px){.lc-celebration-scene{padding:18px 8px}.lc-podium{gap:5px}.lc-podium-team{width:32%}.lc-podium-block{border-width:4px;border-radius:20px 20px 8px 8px;padding:12px 4px}.lc-podium-team>strong{font-size:.95rem}.lc-podium-score{font-size:.75rem;padding:4px 7px}.lc-celebration-heading p{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.lc-podium-team,.lc-confetti i,.lc-sound-button.needs-interaction{animation:none!important}}

.task-question-media{margin:12px 0;border:1px solid var(--border);border-radius:16px;padding:8px;background:rgba(255,255,255,.04);display:grid;place-items:center}.task-question-media img{max-width:100%;max-height:420px;object-fit:contain;border-radius:12px}.task-question-media.video{aspect-ratio:16/9;padding:0;overflow:hidden}.task-question-media video,.task-question-media iframe{width:100%;height:100%;border:0;background:#000}.essay-answer{display:grid;gap:7px;margin-top:12px}.essay-answer span{font-weight:800;color:var(--gold2)}.essay-answer textarea{width:100%;resize:vertical;min-height:150px;border:1px solid var(--border);border-radius:15px;padding:12px;background:rgba(0,0,0,.18);color:var(--text);font:inherit;line-height:1.8}.group-submission{margin-top:16px;padding:15px;border:1px solid rgba(242,193,78,.24);border-radius:18px;background:rgba(242,193,78,.06)}.group-submit-head{display:grid;gap:4px;margin-bottom:10px}.group-submit-head span{color:var(--muted);font-size:.9rem}.group-candidates{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.group-member{display:flex;gap:8px;align-items:center;padding:9px 11px;border:1px solid var(--border);border-radius:12px;background:rgba(0,0,0,.12);cursor:pointer}.group-member input{accent-color:var(--gold)}

/* Essay grade review state: informational only; grade already counts in performance indicators. */
.grade-review-note{display:inline-block;margin-inline-start:6px;color:#9b6a00;font-size:.72rem;font-weight:800;white-space:nowrap}
