*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #1a1a2e;
  --surface: #16213e;
  --accent: #e94560;
  --accent2: #0f3460;
  --green: #2ecc71;
  --yellow: #f1c40f;
  --blue: #3498db;
  --purple: #9b59b6;
  --text: #eaeaea;
  --muted: #a0a0b0;
  --opt-a: #E838A8;
  --opt-b: #FFE566;
  --opt-c: #5C3A9E;
  --opt-d: #45E0E8;
  --opt-e: #662c91;
  --opt-f: #104039;
  --transition-purple: #743c9b;
  --transition-lavender: #c398fb;
  --transition-pink: #e4a0ce;
}

body {
  font-family: "Nunito", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(233, 69, 96, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(15, 52, 96, 0.4), transparent 50%);
}

/* Persistent room code lives inside .host-utility-dock (see host utility styles). */

body.join-page {
  --mcq-result-polish: 3;
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: #d69c34;
  background-image: url("/assets/BG/Quick Questions - question.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
}

body.join-page::before {
  content: "";
  position: fixed;
  inset: -24px;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 196, 120, 0.18), rgba(255, 140, 190, 0.12)),
    url("/assets/BG/Quick Questions - question.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(10px);
  transform: translateZ(0);
}

.join-page #app {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}

.join-page #screen-join {
  color: #fff;
}

.join-page #screen-join h2 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.join-page #screen-join .connection-status,
.join-page #screen-join .field span {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.join-page #screen-join .connection-status {
  text-align: left;
  line-height: 1.35;
  min-height: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.join-page #screen-join .connection-status.ok {
  color: #d4ffe4;
}

.join-page #screen-join .connection-status.err,
.join-page #screen-join .error {
  color: #ffd4d4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.join-page #screen-join .field input {
  color: #fff;
}

.join-page #screen-join .field input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.join-page #join-room-code {
  letter-spacing: 0.08em;
}

html:has(body.join-page) {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.join-page .screen.active {
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

/* Neon game portal used between join screens. */
.join-page .host-page-transition,
#app.lango-host .host-page-transition {
  position: fixed;
  inset: 0;
  background: rgba(116, 60, 155, 0.22);
}

/* Host stage already uses transform scale — keep transition inside the stage box. */
#app.lango-host .host-page-transition {
  position: absolute;
}

.join-page .host-page-transition::before,
#app.lango-host .host-page-transition::before {
  inset: -24vmax;
  background:
    radial-gradient(circle, transparent 0 18%, rgba(255, 255, 255, 0.92) 18.5% 20%, transparent 20.5%),
    repeating-conic-gradient(
      from 18deg,
      var(--transition-purple) 0deg 24deg,
      var(--transition-lavender) 24deg 48deg,
      var(--transition-pink) 48deg 72deg
    );
  filter:
    saturate(1.08)
    drop-shadow(0 0 26px rgba(195, 152, 251, 0.88))
    drop-shadow(0 0 52px rgba(116, 60, 155, 0.58));
  transform: scale(0) rotate(-28deg);
  border-radius: 50%;
}

.join-page .host-page-transition::after,
#app.lango-host .host-page-transition::after {
  inset: 0;
  background:
    radial-gradient(circle at 12% 24%, #fff 0 4px, var(--transition-purple) 5px 8px, transparent 9px),
    radial-gradient(circle at 82% 18%, #fff 0 3px, var(--transition-lavender) 4px 7px, transparent 8px),
    radial-gradient(circle at 24% 78%, #fff 0 5px, var(--transition-pink) 6px 10px, transparent 11px),
    radial-gradient(circle at 88% 72%, #fff 0 4px, var(--transition-lavender) 5px 9px, transparent 10px),
    radial-gradient(circle at 55% 12%, #fff 0 3px, transparent 4px),
    radial-gradient(circle at 48% 88%, #fff 0 3px, transparent 4px);
  opacity: 0;
  transform: scale(0.72) rotate(-8deg);
}

.join-page .host-page-transition.is-playing::before,
#app.lango-host .host-page-transition.is-playing::before {
  animation: joinGamePortal 1.18s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.join-page .host-page-transition.is-playing::after,
#app.lango-host .host-page-transition.is-playing::after {
  animation: joinGameSparkBurst 1.18s ease-out forwards;
}

/* GSAP-driven transition layers (real DOM instead of ::before/::after). */
.join-page .host-page-transition__portal,
#app.lango-host .host-page-transition__portal,
.join-page .host-page-transition__sparks,
#app.lango-host .host-page-transition__sparks {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}

.join-page .host-page-transition__portal,
#app.lango-host .host-page-transition__portal {
  inset: -24vmax;
  z-index: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 18%, rgba(255, 255, 255, 0.92) 18.5% 20%, transparent 20.5%),
    repeating-conic-gradient(
      from 18deg,
      var(--transition-purple) 0deg 24deg,
      var(--transition-lavender) 24deg 48deg,
      var(--transition-pink) 48deg 72deg
    );
  filter:
    saturate(1.08)
    drop-shadow(0 0 26px rgba(195, 152, 251, 0.88))
    drop-shadow(0 0 52px rgba(116, 60, 155, 0.58));
  transform: scale(0) rotate(-28deg);
  opacity: 0;
}

.join-page .host-page-transition__sparks,
#app.lango-host .host-page-transition__sparks {
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 12% 24%, #fff 0 4px, var(--transition-purple) 5px 8px, transparent 9px),
    radial-gradient(circle at 82% 18%, #fff 0 3px, var(--transition-lavender) 4px 7px, transparent 8px),
    radial-gradient(circle at 24% 78%, #fff 0 5px, var(--transition-pink) 6px 10px, transparent 11px),
    radial-gradient(circle at 88% 72%, #fff 0 4px, var(--transition-lavender) 5px 9px, transparent 10px),
    radial-gradient(circle at 55% 12%, #fff 0 3px, transparent 4px),
    radial-gradient(circle at 48% 88%, #fff 0 3px, transparent 4px);
  opacity: 0;
  transform: scale(0.72) rotate(-8deg);
}

.join-page .host-page-transition.has-gsap-fx::before,
.join-page .host-page-transition.has-gsap-fx::after,
#app.lango-host .host-page-transition.has-gsap-fx::before,
#app.lango-host .host-page-transition.has-gsap-fx::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

html.lango-gsap-ready .join-page .host-page-transition.is-playing::before,
html.lango-gsap-ready .join-page .host-page-transition.is-playing::after,
html.lango-gsap-ready #app.lango-host .host-page-transition.is-playing::before,
html.lango-gsap-ready #app.lango-host .host-page-transition.is-playing::after,
html.lango-gsap-ready .join-page .host-page-transition.is-playing .join-transition-tommy.is-active,
html.lango-gsap-ready #app.lango-host .host-page-transition.is-playing .join-transition-tommy.is-active {
  animation: none !important;
}

.join-transition-cast {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.join-transition-tommy {
  position: relative;
  grid-area: 1 / 1;
  left: auto;
  top: auto;
  width: clamp(280px, 88vw, 560px);
  max-height: 82vh;
  height: auto;
  opacity: 0;
  visibility: hidden;
  object-fit: contain;
  /* Optical center: art sits slightly left/low in the PNG canvas. */
  transform: translate(3%, 6%) scale(0.52) rotate(-5deg);
  transform-origin: 50% 45%;
  filter:
    drop-shadow(0 10px 5px rgba(116, 60, 155, 0.34))
    drop-shadow(0 0 14px rgba(195, 152, 251, 0.75));
  will-change: transform, opacity;
}

.join-transition-tommy.is-active {
  visibility: visible;
}

.join-page .host-page-transition.is-playing .join-transition-tommy.is-active,
#app.lango-host .host-page-transition.is-playing .join-transition-tommy.is-active {
  animation: joinTommyJump 1.08s cubic-bezier(0.16, 1, 0.3, 1) 30ms both;
}

#app.lango-host .join-transition-tommy {
  width: 760px;
  max-height: 84%;
}

@keyframes joinTommyJump {
  0% {
    opacity: 0;
    transform: translate(3%, 42%) scale(0.52) rotate(-5deg);
  }
  34% {
    opacity: 1;
    transform: translate(3%, -8%) scale(1.08) rotate(1deg);
  }
  58% {
    opacity: 1;
    transform: translate(3%, 2%) scale(0.98) rotate(-1deg);
  }
  72%,
  82% {
    opacity: 1;
    transform: translate(3%, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(3%, -14%) scale(0.96) rotate(2deg);
  }
}

@keyframes joinGamePortal {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-28deg);
  }
  38% {
    opacity: 1;
    transform: scale(1.35) rotate(8deg);
  }
  76% {
    opacity: 1;
    transform: scale(1.35) rotate(18deg);
  }
  100% {
    opacity: 0;
    transform: scale(0) rotate(58deg);
  }
}

@keyframes joinGameSparkBurst {
  0%, 100% {
    opacity: 0;
    transform: scale(0.72) rotate(-8deg);
  }
  34%, 76% {
    opacity: 1;
    transform: scale(1.08) rotate(8deg);
  }
}

.join-page .screen.active,
#app.lango-host .screen.active {
  animation: joinScreenEnter 420ms cubic-bezier(0.2, 0.9, 0.25, 1.15) backwards;
}

@keyframes joinScreenEnter {
  from {
    opacity: 0;
    filter: brightness(1.35) saturate(1.15);
    transform: translateY(18px) scale(0.965);
  }
  to {
    opacity: 1;
    filter: brightness(1) saturate(1);
    transform: translateY(0) scale(1);
  }
}

.join-page #screen-player-question.active .option.player-btn {
  animation: joinAnswerButtonEnter 480ms cubic-bezier(0.18, 0.9, 0.25, 1.18) backwards;
}

.join-page #screen-player-question.active .option.player-btn:nth-child(1) { animation-delay: 80ms; }
.join-page #screen-player-question.active .option.player-btn:nth-child(2) { animation-delay: 140ms; }
.join-page #screen-player-question.active .option.player-btn:nth-child(3) { animation-delay: 200ms; }
.join-page #screen-player-question.active .option.player-btn:nth-child(4) { animation-delay: 260ms; }

@keyframes joinAnswerButtonEnter {
  from {
    opacity: 0;
    transform: translateX(-26px) scale(0.9);
  }
  70% {
    opacity: 1;
    transform: translateX(4px) scale(1.025);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.join-page #screen-player-results.active .player-mcq-result-card {
  animation: joinResultCardEnter 620ms cubic-bezier(0.16, 1, 0.3, 1) 100ms backwards;
}

@keyframes joinResultCardEnter {
  from {
    opacity: 0;
    transform: translateY(38px) scale(0.78) rotate(-2deg);
  }
  65% {
    opacity: 1;
    transform: translateY(-5px) scale(1.025) rotate(0.5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .join-page .screen.active,
  .join-page #screen-player-question.active .option.player-btn,
  .join-page #screen-player-results.active .player-mcq-result-card,
  #screen-player-question.is-answered .player-mcq-timer-card,
  #screen-player-question.is-answered .player-mcq-selected-label,
  #screen-player-question.is-answered .option.player-btn {
    animation: none;
  }

  #screen-player-question.is-answered::before,
  #screen-player-question.is-answered::after {
    display: none;
  }
}

#app {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  min-height: 100vh;
}

.host-page-transition {
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: none;
  pointer-events: none;
  overflow: hidden;
}

.host-page-transition::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(circle at 24% 44%, rgba(255, 255, 255, 0.96) 0 8%, transparent 8.2%),
    radial-gradient(circle at 34% 40%, rgba(255, 255, 255, 0.96) 0 11%, transparent 11.2%),
    radial-gradient(circle at 46% 45%, rgba(255, 255, 255, 0.96) 0 9%, transparent 9.2%),
    radial-gradient(circle at 58% 41%, rgba(255, 255, 255, 0.96) 0 12%, transparent 12.2%),
    linear-gradient(
      110deg,
      var(--transition-purple) 0 33%,
      var(--transition-lavender) 33% 66%,
      var(--transition-pink) 66% 100%
    );
  filter: drop-shadow(0 20px 36px rgba(116, 60, 155, 0.32));
  transform: translateX(-118%) rotate(-3deg);
}

.host-page-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, #fff 0 5px, var(--transition-lavender) 6px 8px, transparent 9px),
    radial-gradient(circle at 74% 31%, #fff 0 4px, var(--transition-pink) 5px 7px, transparent 8px),
    radial-gradient(circle at 42% 72%, #fff 0 6px, var(--transition-purple) 7px 9px, transparent 10px),
    radial-gradient(circle at 86% 68%, #fff 0 4px, var(--transition-lavender) 5px 7px, transparent 8px);
  opacity: 0;
}

.host-page-transition.is-playing {
  display: block;
}

.host-page-transition.is-playing::before {
  animation: hostPageTransitionSweep 1.18s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.host-page-transition.is-playing::after {
  animation: hostPageTransitionSparkles 1.18s ease forwards;
}

@keyframes hostPageTransitionSweep {
  0% {
    transform: translateX(-118%) rotate(-3deg);
  }
  44%,
  66% {
    transform: translateX(0) rotate(0deg);
  }
  100% {
    transform: translateX(118%) rotate(3deg);
  }
}

@keyframes hostPageTransitionSparkles {
  0%,
  18%,
  100% {
    opacity: 0;
    transform: scale(0.86);
  }
  48%,
  72% {
    opacity: 0.9;
    transform: scale(1);
  }
}

.screen {
  display: none;
  animation: fadeIn 0.3s ease;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  text-align: center;
  margin: 3rem 0 2.5rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1.5rem;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: white;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.site-nav {
  margin-bottom: 1.5rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--text);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-host {
  background: linear-gradient(135deg, #e94560, #c0392b);
}

.card-join {
  background: linear-gradient(135deg, #1368ce, #0f3460);
}

.card-icon {
  font-size: 2rem;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 800;
}

.card-desc {
  font-size: 0.9rem;
  opacity: 0.85;
}

.back-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
  padding: 0;
}

.screen-toolbar .back-btn {
  margin-bottom: 0;
}

.back-btn:hover {
  color: var(--text);
}

.screen-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.lango-host .screen.active:has(> .screen-toolbar) {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 4rem);
}

h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.field span {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 2px solid var(--accent2);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
}

.field textarea {
  resize: vertical;
  min-height: 5rem;
  font-weight: 600;
  line-height: 1.4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.btn:hover:not(:disabled) {
  transform: scale(1.02);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.primary {
  background: var(--accent);
  color: white;
  width: 100%;
}

.btn.secondary {
  background: var(--accent2);
  color: white;
  width: 100%;
  margin-top: 1rem;
}

.btn.large {
  font-size: 1.3rem;
  padding: 1.1rem;
  margin-top: 1.5rem;
}

.error {
  color: #ff6b6b;
  font-weight: 700;
  margin-top: 1rem;
  min-height: 1.5rem;
}

.pin-display {
  text-align: center;
  background: var(--surface);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.pin-label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pin-code {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  margin-top: 0.5rem;
  color: var(--accent);
}

.subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.join-links-wrap {
  margin-top: 1.25rem;
}

.join-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.join-links li {
  background: var(--surface);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  word-break: break-all;
}

.join-links a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

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

.join-links .link-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.connection-status {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  min-height: 1.25rem;
}

.connection-status.ok {
  color: var(--green);
}

.connection-status.err {
  color: #ff6b6b;
}

.player-list-wrap h3 {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.player-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 48px;
}

.player-list li {
  background: var(--accent2);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.progress-bar {
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.progress-bar div {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
  width: 0%;
}

.q-meta {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.question-text {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.question-image-wrap {
  margin-bottom: 1rem;
}

.question-image {
  display: block;
  width: 100%;
  max-width: 480px;
  max-height: 240px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.lango-host #screen-host-quiz-question .question-image,
.lango-host #screen-host-quiz-results .question-image {
  max-width: min(720px, 92vw);
  max-height: min(360px, 42vh);
}

.lango-host #screen-host-quiz-question .question-image-wrap,
.lango-host #screen-host-quiz-results .question-image-wrap {
  margin-bottom: 1.25rem;
}

.lango-host .host-quiz-results-question {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.options-grid {
  display: grid;
  gap: 0.75rem;
}

.option {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  border: none;
  text-align: left;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.option.player-btn {
  cursor: pointer;
  transition: transform 0.1s, filter 0.1s;
}

.option.player-btn:hover:not(:disabled) {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.option.player-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.option.selected {
  outline: 3px solid white;
  outline-offset: 2px;
}

.option.correct {
  outline: 3px solid var(--green);
}

.option.wrong {
  opacity: 0.5;
}

.option .bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.6s ease;
  z-index: 0;
}

.option .label {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
}

.option[data-index="0"] { background: var(--opt-a); }
.option[data-index="1"] { background: var(--opt-b); }
.option[data-index="2"] { background: var(--opt-c); }
.option[data-index="3"] { background: var(--opt-d); }
.option[data-index="4"] { background: var(--opt-e); }
.option[data-index="5"] { background: var(--opt-f); }

.answered-count {
  text-align: center;
  color: var(--muted);
  margin-top: 1.5rem;
  font-weight: 700;
}

.leaderboard {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.leaderboard h3 {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.leaderboard ol {
  list-style: none;
  counter-reset: rank;
}

.leaderboard ol li {
  counter-increment: rank;
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.leaderboard ol li::before {
  content: counter(rank) ". ";
  color: var(--muted);
  margin-right: 0.5rem;
}

.leaderboard ol li:first-child::before {
  content: "🥇 ";
}

.leaderboard ol li:nth-child(2)::before {
  content: "🥈 ";
}

.leaderboard ol li:nth-child(3)::before {
  content: "🥉 ";
}

.leaderboard .score {
  color: var(--yellow);
}

.leaderboard ol li.me {
  background: rgba(241, 196, 15, 0.12);
  border-radius: 8px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.leaderboard ol li.leaderboard-empty {
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
}

.leaderboard ol li.leaderboard-empty::before {
  content: none;
}

.exercise-leaderboard-panel {
  margin-top: 1.5rem;
}

.final-board li {
  font-size: 1.1rem;
  padding: 0.75rem 0 !important;
}

.waiting {
  text-align: center;
  padding: 3rem 1rem;
}

.pulse {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

/* Figma frame 124:15636 — uses the shared join-page background like MC quiz screens. */
.join-page #app:has(#screen-room-waiting.active) {
  width: min(744px, 100%);
  max-width: 744px;
  padding: 0;
}

.join-page #app:has(#screen-room-passive-waiting.active) {
  width: min(744px, 100%);
  max-width: 744px;
  padding: 0;
}

.join-page #screen-room-passive-waiting.passive-waiting-ui {
  position: relative;
  width: min(744px, 100vw);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
  color: #fff;
}

.join-page #screen-room-passive-waiting.passive-waiting-ui.active {
  display: block;
}

.passive-waiting-ui__content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 80px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.passive-waiting-ui__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.passive-waiting-ui__header h1,
.passive-waiting-ui__message-card p {
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.9px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.passive-waiting-ui__header h1 {
  flex: 0 0 auto;
  white-space: nowrap;
}

.passive-waiting-ui__main {
  width: 100%;
  min-height: 0;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.passive-waiting-ui__message-card {
  width: 100%;
  height: 600px;
  padding: 40px;
  border: 10px solid rgba(162, 89, 255, 0.6);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(142deg, rgba(162, 89, 255, 0.6), rgba(255, 107, 107, 0.6));
  box-shadow:
    inset 0 0 10px 4px rgba(255, 255, 255, 0.5),
    0 0 25px rgba(255, 105, 180, 0.5);
  backdrop-filter: blur(40px);
}

.passive-waiting-ui__message-card p {
  width: 100%;
}

.join-page #screen-room-waiting.general-waiting-ui {
  position: relative;
  width: min(744px, 100vw);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
  color: #fff;
}

.join-page #screen-room-waiting.general-waiting-ui.active {
  display: block;
}

.general-waiting-ui__content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 80px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.general-waiting-ui__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.general-waiting-ui__header h1 {
  flex: 0 0 auto;
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.9px;
  text-align: center;
  white-space: nowrap;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.general-waiting-ui__main {
  position: relative;
  width: 100%;
  min-height: 0;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.general-waiting-ui__message-card {
  width: 100%;
  height: 600px;
  padding: 40px;
  border: 10px solid rgba(162, 89, 255, 0.6);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(142deg, rgba(162, 89, 255, 0.6), rgba(255, 107, 107, 0.6));
  box-shadow:
    inset 0 0 10px 4px rgba(255, 255, 255, 0.5),
    0 0 25px rgba(255, 105, 180, 0.5);
  backdrop-filter: blur(40px);
}

.general-waiting-ui__message-card p {
  width: 100%;
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.9px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-height: 900px), (max-width: 560px) {
  .general-waiting-ui__content {
    padding-top: max(36px, env(safe-area-inset-top));
    padding-inline: 14px;
    gap: clamp(24px, 4vh, 40px);
  }

  .general-waiting-ui__header h1 {
    font-size: clamp(23px, 7vw, 34px);
  }

  .general-waiting-ui__message-card {
    height: min(600px, 68vh);
    height: min(600px, 68dvh);
    padding: 28px;
    border-width: 7px;
    border-radius: clamp(52px, 13vw, 100px);
  }

  .general-waiting-ui__message-card p {
    font-size: clamp(30px, 7vw, 40px);
  }

  .passive-waiting-ui__content {
    padding-top: max(36px, env(safe-area-inset-top));
    padding-inline: 14px;
    gap: clamp(24px, 4vh, 40px);
  }

  .passive-waiting-ui__header h1 {
    font-size: clamp(23px, 7vw, 34px);
  }

  .passive-waiting-ui__message-card {
    height: min(600px, 68vh);
    height: min(600px, 68dvh);
    padding: 28px;
    border-width: 7px;
    border-radius: clamp(52px, 13vw, 100px);
  }

  .passive-waiting-ui__message-card p {
    font-size: clamp(30px, 7vw, 40px);
  }
}

.timer-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid var(--accent2);
  border-top-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  animation: spin 1s linear infinite;
}

.timer-ring.urgent {
  border-top-color: #ff6b6b;
  color: #ff6b6b;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.feedback {
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-top: 1rem;
  min-height: 1.5rem;
}

.result-msg {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 900;
  padding: 2rem;
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 1.5rem;
}

.result-msg.correct {
  color: var(--green);
}

.result-msg.wrong {
  color: #ff6b6b;
}

/* Lango whiteboard host flow */
.flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.flow-steps .step {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.flow-steps .step.active {
  background: var(--accent);
  color: white;
}

.flow-steps .step.done {
  color: var(--green);
}

.pick-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pick-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 2px solid var(--accent2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pick-item:hover {
  border-color: var(--accent);
}

.pick-item.active {
  border-color: var(--accent);
  background: rgba(233, 69, 96, 0.12);
}

.pick-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.pick-meta {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.section-heading {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 1rem 0 0.5rem;
  font-weight: 800;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tabs .tab {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 2px solid var(--accent2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tabs .tab.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(233, 69, 96, 0.15);
}

.status-msg,
.hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.success-panel {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(46, 204, 113, 0.35);
}

.success-panel code {
  font-size: 0.85rem;
  color: var(--green);
}

.room-id-box {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(46, 204, 113, 0.12);
  border: 2px solid rgba(46, 204, 113, 0.45);
}

.room-id-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.room-id-value {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 800;
  word-break: break-all;
  margin: 0 0 0.75rem;
  line-height: 1.35;
  color: var(--text);
}

.btn.small {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.join-mode-switch {
  margin-top: 1.25rem;
}

.join-mode-switch a {
  color: var(--accent, #6c5ce7);
  font-weight: 700;
}

.meta-dl {
  margin-top: 1rem;
}

.meta-dl dt {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 800;
  margin-top: 0.75rem;
}

.meta-dl dd {
  font-weight: 700;
  word-break: break-all;
}

.participant-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.participant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 2px solid var(--accent2);
}

.participant-item.ready {
  border-color: rgba(46, 204, 113, 0.55);
}

.participant-name {
  font-weight: 800;
}

.participant-meta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.participant-item.ready .participant-meta {
  color: var(--green);
}

.error {
  color: #ff6b6b;
  font-weight: 700;
  margin-top: 0.75rem;
  min-height: 1.25rem;
}

/* —— Join layout preview (?preview=1) —— */

body.join-preview-mode {
  padding-bottom: 0;
}

body.join-preview-mode.join-preview-toolbar-open {
  padding-bottom: 5rem;
}

.join-preview-toolbar {
  position: fixed;
  left: max(0.75rem, env(safe-area-inset-left));
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 100000;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(22, 33, 62, 0.96);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 0.65rem;
}

.join-preview-toolbar.is-hidden {
  display: none;
}

.join-preview-toggle {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 100001;
  min-height: 42px;
  padding: 9px 16px 12px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: linear-gradient(180deg, #feca57, #ff9f43);
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 18px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.1),
    0 6px 0 rgba(0, 0, 0, 0.2),
    0 3px 12px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.join-preview-toggle.is-open {
  top: max(0.75rem, env(safe-area-inset-top));
  bottom: auto;
}

.join-preview-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.join-preview-title {
  font-weight: 900;
  font-size: 0.95rem;
}

.join-preview-field {
  display: grid;
  gap: 0.25rem;
}

.join-preview-field span {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.join-preview-field select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
}

.join-preview-hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.join-preview-hint code {
  font-size: 0.85em;
}

/* Figma 294:23996 — student MC quiz question */

#app:has(#screen-player-question.active) {
  width: min(100%, 744px);
  max-width: 744px;
  padding: 0;
}

#screen-player-question.player-mcq-screen.active {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.player-mcq-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.player-mcq-shell {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 80px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.player-mcq-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-mcq-header-side {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  align-items: center;
}

.player-mcq-header-side--end {
  justify-content: flex-end;
}

.player-mcq-score {
  width: max-content;
  padding: 5px 16px;
  border: 6px solid #fff;
  border-radius: 44px;
  background: linear-gradient(180deg, #feca57, #ff9f43);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.7068px;
  text-align: center;
  text-shadow: 1.57px 1.57px 3.14px rgba(0, 0, 0, 0.3);
  box-shadow:
    0 0 9.8px rgba(255, 105, 180, 0.5),
    inset 0 0 7.85px rgba(255, 255, 255, 0.5);
}

.player-mcq-title {
  flex: 0 0 auto;
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.9px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.player-mcq-help {
  min-height: 50px;
  padding: 10px 16px 16px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #feca57, #ff9f43);
  color: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.1),
    0 8px 0 rgba(0, 0, 0, 0.2),
    0 3px 1px rgba(0, 0, 0, 0.25);
}

.player-mcq-help-icon {
  width: 24px;
  height: 24px;
  border: 3px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.player-mcq-main {
  width: 100%;
  padding: 60px 70px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.player-mcq-timer-card {
  position: relative;
  width: 100%;
  min-height: min(280px, 42vh);
  padding: 36px 48px 28px;
  box-sizing: border-box;
  border: 4px solid #fc7dba;
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: visible;
  background: linear-gradient(91.93deg, rgba(177, 25, 128, 0.8) 11%, rgba(116, 60, 155, 0.8) 97%);
  box-shadow:
    0 0 25px rgba(255, 105, 180, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}

.player-mcq-countdown {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  transform: translate(50%, -50%);
}

#screen-player-question .player-mcq-countdown .timer-ring {
  width: 101px;
  height: 101px;
  margin: 0;
  border: 15px solid #feca57;
  border-radius: 50%;
  background: #fff;
  color: #ff9f43;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.75px;
  text-shadow: 1.67px 1.67px 3.33px rgba(0, 0, 0, 0.3);
  box-shadow:
    0 0 10.42px rgba(255, 105, 180, 0.5),
    inset 0 0 8.33px rgba(255, 255, 255, 0.5);
  animation: none;
}

#screen-player-question .player-mcq-question {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.25rem, 4.2vw, 1.875rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

#screen-player-question .player-mcq-image-wrap {
  max-width: 100%;
}

#screen-player-question .player-mcq-image-wrap .question-image {
  max-width: min(100%, 320px);
  max-height: min(28vh, 180px);
  border-radius: 16px;
  object-fit: contain;
}

#screen-player-question .timer-ring.urgent {
  border-color: #f33b3d;
  color: #f33b3d;
}

#screen-player-question.is-answered .timer-ring.urgent {
  border-color: #feca57;
  color: #ff9f43;
}

.player-mcq-options-wrap {
  width: 100%;
  padding: 0 20px;
}

.player-mcq-selected-label {
  width: 100%;
  margin: 0;
  color: #fff;
  font-family: "HK Grotesk", "Nunito", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 24px;
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#screen-player-question.is-answered::before {
  content: "ANSWER LOCKED!";
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 20;
  padding: 12px 28px 16px;
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: linear-gradient(135deg, #15c4f8, #9b7bff 52%, #ff72bd);
  color: #fff;
  font-size: clamp(28px, 7vw, 54px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.16),
    0 0 34px rgba(21, 196, 248, 0.8),
    0 0 64px rgba(255, 114, 189, 0.62);
  pointer-events: none;
  animation: playerAnswerLockedBanner 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

#screen-player-question.is-answered::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 19;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.82) 0 2%, transparent 18%),
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg 10deg,
      rgba(254, 202, 87, 0.72) 10deg 12deg,
      transparent 12deg 24deg,
      rgba(21, 196, 248, 0.62) 24deg 26deg
    );
  animation: playerAnswerLockBurst 820ms ease-out both;
}

@keyframes playerAnswerLockedBanner {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.35) rotate(-8deg); }
  42% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(2deg); }
  68% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
  100% { opacity: 0; transform: translate(-50%, -66%) scale(0.94) rotate(0); }
}

@keyframes playerAnswerLockBurst {
  0% { opacity: 0; transform: scale(0.45) rotate(-10deg); }
  28% { opacity: 0.86; }
  100% { opacity: 0; transform: scale(1.55) rotate(8deg); }
}

#screen-player-question.is-answered .player-mcq-timer-card {
  animation: playerAnsweredTimerSettle 520ms cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
}

#screen-player-question.is-answered .player-mcq-selected-label {
  animation: playerAnsweredLabelIn 420ms ease-out 360ms backwards;
}

.join-page #screen-player-question.is-answered .option.player-btn {
  opacity: 1;
  color: #d0d8e2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.1),
    inset 0 0 0 3px rgba(255, 255, 255, 0.5),
    0 10px 0 rgba(0, 0, 0, 0.2),
    0 4px 2px rgba(0, 0, 0, 0.25);
  animation: playerAnswerMuted 420ms ease-out 260ms backwards;
}

.join-page #screen-player-question.is-answered .option.player-btn.selected {
  color: #fff;
  outline: 0;
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.1),
    inset 0 0 0 3px rgba(255, 255, 255, 0.5),
    0 10px 0 rgba(0, 0, 0, 0.2),
    0 4px 1px rgba(0, 0, 0, 0.25);
  animation: playerAnswerSelected 680ms cubic-bezier(0.16, 1, 0.3, 1) 180ms backwards;
}

.join-page #screen-player-question.is-answered .option.player-btn.selected[data-index="0"] {
  background: var(--opt-a);
}

.join-page #screen-player-question.is-answered .option.player-btn.selected[data-index="1"] {
  background: var(--opt-b);
}

.join-page #screen-player-question.is-answered .option.player-btn.selected[data-index="2"] {
  background: var(--opt-c);
}

.join-page #screen-player-question.is-answered .option.player-btn.selected[data-index="3"] {
  background: var(--opt-d);
}

@keyframes playerAnsweredTimerSettle {
  0% { transform: scale(1); }
  38% { transform: scale(0.92); }
  72% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

@keyframes playerAnsweredLabelIn {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes playerAnswerMuted {
  from { opacity: 1; filter: saturate(1); transform: scale(1); }
  to { opacity: 1; filter: saturate(0.45); transform: scale(0.985); }
}

@keyframes playerAnswerSelected {
  0% { filter: brightness(1); transform: scale(1); }
  44% { filter: brightness(1.32); transform: scale(1.075); }
  72% { filter: brightness(1.08); transform: scale(0.985); }
  100% { filter: brightness(1); transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  #screen-player-question.is-answered::before,
  #screen-player-question.is-answered::after {
    display: none;
  }

  #screen-player-question.is-answered .player-mcq-timer-card,
  #screen-player-question.is-answered .player-mcq-selected-label,
  .join-page #screen-player-question.is-answered .option.player-btn {
    animation: none;
  }
}

#screen-player-question.is-answered .feedback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

#screen-player-question .options-grid.player-options {
  grid-template-columns: 1fr;
  gap: 30px;
}

#screen-player-question .option.player-btn {
  min-height: 60px;
  padding: 12px 18px 20px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 28px;
  letter-spacing: 0.48px;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.1),
    0 10px 0 rgba(0, 0, 0, 0.2),
    0 4px 1px rgba(0, 0, 0, 0.25);
}

#screen-player-question .option .label {
  justify-content: center;
}

#screen-player-question .option[data-index="0"] { background: var(--opt-a); }
#screen-player-question .option[data-index="1"] { background: var(--opt-b); }
#screen-player-question .option[data-index="2"] { background: var(--opt-c); }
#screen-player-question .option[data-index="3"] { background: var(--opt-d); }

#screen-player-question .option[data-index="1"],
.join-page #screen-player-question.is-answered .option.player-btn.selected[data-index="1"] {
  color: #4B2E83;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

#screen-player-question .option[data-index="3"],
.join-page #screen-player-question.is-answered .option.player-btn.selected[data-index="3"] {
  color: #1a3d42;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#screen-player-question .feedback {
  margin: -8px 0 0;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

#screen-player-question.is-previewing .player-mcq-options-wrap,
#screen-player-question.is-previewing .player-mcq-selected-label {
  display: none;
}

#screen-player-question.is-previewing .player-mcq-countdown {
  display: none;
}

#screen-player-question.is-previewing .player-mcq-main {
  justify-content: center;
}

#screen-player-question.is-previewing .player-mcq-timer-card {
  min-height: min(360px, 56vh);
}

.player-mcq-read-progress {
  width: min(100%, 420px);
  margin: 14px auto 0;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 2px 6px rgba(116, 60, 155, 0.12),
    0 4px 12px rgba(177, 25, 128, 0.12);
  overflow: hidden;
}

.player-mcq-read-progress-fill {
  width: 0%;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #feca57 0%, #ff9f43 55%, #f97316 100%);
  transition: none;
  will-change: width;
}

#screen-player-question.is-previewing .player-mcq-read-progress:not([hidden]) {
  display: block;
}

#screen-player-question:not(.is-previewing) .player-mcq-read-progress {
  display: none;
}

#screen-player-question.is-previewing .feedback {
  margin-top: 0;
  font-size: 1.1rem;
  font-weight: 900;
}

/* Figma 294:24186 — student MC quiz result */

#app:has(#screen-player-results.active) {
  width: min(100%, 744px);
  max-width: 744px;
  padding: 0;
}

#screen-player-results.player-mcq-result-screen.active {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.player-mcq-result-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.player-mcq-result-shell {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 80px 20px 10px;
  display: flex;
  flex-direction: column;
}

.player-mcq-result-header {
  position: absolute;
  top: 80px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-mcq-result-header-side {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  align-items: center;
}

.player-mcq-result-header-side--end {
  justify-content: flex-end;
}

.player-mcq-result-score {
  width: max-content;
  padding: 5px 16px;
  border: 6px solid #fff;
  border-radius: 44px;
  background: linear-gradient(180deg, #feca57, #ff9f43);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.7068px;
  text-shadow: 1.57px 1.57px 3.14px rgba(0, 0, 0, 0.3);
  box-shadow:
    0 0 9.8px rgba(255, 105, 180, 0.5),
    inset 0 0 7.85px rgba(255, 255, 255, 0.5);
}

.player-mcq-result-title {
  flex: 0 0 auto;
  color: #fff;
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.6px;
  text-align: center;
  -webkit-text-stroke: 3px #e878c8;
  paint-order: stroke fill;
  text-shadow: 0 3px 12px rgba(255, 120, 200, 0.45);
}

.player-mcq-result-help {
  min-height: 50px;
  padding: 10px 16px 16px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #feca57, #ff9f43);
  color: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.1),
    0 8px 0 rgba(0, 0, 0, 0.2),
    0 3px 1px rgba(0, 0, 0, 0.25);
}

.player-mcq-result-help-icon {
  width: 24px;
  height: 24px;
  border: 3px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.player-mcq-result-main {
  width: 100%;
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vh, 28px) clamp(10px, 4vw, 20px);
  box-sizing: border-box;
}

.player-mcq-result-card {
  width: 100%;
  max-width: min(100%, 420px);
  padding: clamp(28px, 6vw, 40px) clamp(20px, 5vw, 36px);
  border: 10px solid rgba(162, 89, 255, 0.55);
  border-radius: clamp(48px, 14vw, 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3.5vh, 28px);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 246, 252, 0.96) 42%,
      rgba(255, 252, 232, 0.94) 100%
    );
  box-shadow:
    0 14px 42px rgba(255, 140, 200, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  backdrop-filter: blur(100px);
}

#screen-player-results .result-msg {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.9px;
  text-align: center;
  -webkit-text-stroke: 4px #e978c5;
  paint-order: stroke fill;
  text-shadow: none;
}

#screen-player-results.is-correct .result-msg,
#screen-player-results.is-wrong .result-msg,
#screen-player-results .result-msg.correct {
  position: relative;
  isolation: isolate;
  display: block;
  max-width: 14ch;
  font-size: clamp(34px, 8.5vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
  color: #fff;
  -webkit-text-stroke: 0;
  paint-order: stroke fill;
  text-shadow:
    0 4px 0 rgba(130, 86, 165, 0.2),
    0 6px 10px rgba(0, 0, 0, 0.18);
}

#screen-player-results.is-correct .result-msg::before,
#screen-player-results.is-wrong .result-msg::before,
#screen-player-results .result-msg.correct::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #fc7dba 0%, #d77dde 50%, #947af7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-stroke: 10px transparent;
  paint-order: stroke fill;
  text-shadow: none;
}

#screen-player-results.is-wrong .result-msg {
  color: #fff;
}

#screen-player-results.is-wrong .player-mcq-result-points {
  display: none;
}

.player-mcq-result-icon {
  min-height: 154px;
  width: min(154px, 42vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 128px;
  line-height: 1;
}

.player-mcq-result-icon--lottie {
  font-size: 0;
}

.player-mcq-result-icon--lottie svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 154px;
}

#screen-player-results.is-wrong .player-mcq-result-icon--lottie {
  animation: joinResultIconBounce 900ms cubic-bezier(0.2, 1.6, 0.4, 1) 150ms backwards;
  filter: drop-shadow(0 8px 14px rgba(226, 27, 60, 0.35));
}

.player-mcq-result-points {
  position: relative;
  isolation: isolate;
  display: inline-block;
  margin: 0;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: #ff9f43;
  -webkit-text-fill-color: transparent;
  font-size: 48px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.75px;
  text-align: center;
  -webkit-text-stroke: 4px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.28));
}

.player-mcq-result-points::before {
  content: none;
}

#screen-player-results.is-correct .player-mcq-result-points {
  font-size: clamp(44px, 12vw, 62px);
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(255, 159, 67, 0.28),
    0 6px 8px rgba(0, 0, 0, 0.2);
}

.player-mcq-result-encouragement {
  position: relative;
  isolation: isolate;
  display: inline-block;
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.9px;
  text-align: center;
  -webkit-text-stroke: 0;
  paint-order: stroke fill;
  text-shadow:
    0 4px 0 rgba(110, 52, 139, 0.22),
    0 6px 7px rgba(0, 0, 0, 0.24);
}

.player-mcq-result-encouragement::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #b11980 0%, #8f2f91 48%, #743c9b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-stroke: 9px transparent;
  paint-order: stroke fill;
  text-shadow: none;
}

#screen-player-results.is-correct .player-mcq-result-encouragement {
  font-size: clamp(28px, 7.5vw, 38px);
  line-height: 1.15;
  letter-spacing: 0;
}

.player-mcq-result-data {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

/* === Result celebration polish v3 — bright, happy result screens === */
#screen-player-results .player-mcq-result-backdrop {
  background: linear-gradient(
    180deg,
    rgba(255, 226, 138, 0.34) 0%,
    rgba(255, 168, 210, 0.26) 58%,
    rgba(186, 160, 255, 0.24) 100%
  );
}

#screen-player-results.is-wrong .player-mcq-result-backdrop {
  background: linear-gradient(
    180deg,
    rgba(186, 200, 255, 0.3) 0%,
    rgba(255, 190, 220, 0.22) 100%
  );
}

#screen-player-results.is-correct .player-mcq-result-card {
  border-color: rgba(255, 176, 32, 0.65);
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 114, 189, 0.4) 0 10px, transparent 11px),
    radial-gradient(circle at 87% 13%, rgba(21, 196, 248, 0.4) 0 9px, transparent 10px),
    radial-gradient(circle at 91% 80%, rgba(254, 202, 87, 0.55) 0 11px, transparent 12px),
    radial-gradient(circle at 7% 84%, rgba(155, 123, 255, 0.4) 0 9px, transparent 10px),
    radial-gradient(circle at 78% 92%, rgba(255, 114, 189, 0.3) 0 7px, transparent 8px),
    linear-gradient(165deg, #fffbe9 0%, #fff3c4 45%, #ffe9f4 100%);
  box-shadow:
    0 18px 48px rgba(255, 170, 60, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

#screen-player-results.is-wrong .player-mcq-result-card {
  border-color: rgba(155, 123, 255, 0.5);
  background:
    linear-gradient(165deg, #fdf9ff 0%, #f3ecff 55%, #e9f4ff 100%);
  box-shadow:
    0 14px 42px rgba(155, 123, 255, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

#screen-player-results.is-correct .result-msg,
#screen-player-results .result-msg.correct {
  max-width: 16ch;
  background: linear-gradient(92deg, #ff4d9d 0%, #c04df0 55%, #7c5cff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  text-shadow: none;
  filter:
    drop-shadow(0 3px 0 rgba(255, 255, 255, 0.65))
    drop-shadow(0 8px 14px rgba(255, 77, 157, 0.3));
}

#screen-player-results.is-wrong .result-msg {
  background: linear-gradient(92deg, #8f5cf0 0%, #5f7cf9 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  text-shadow: none;
  filter: drop-shadow(0 3px 0 rgba(255, 255, 255, 0.6));
}

#screen-player-results.is-correct .result-msg::before,
#screen-player-results.is-wrong .result-msg::before,
#screen-player-results .result-msg.correct::before {
  content: none;
}

#screen-player-results.is-correct .player-mcq-result-icon {
  animation: joinResultIconBounce 900ms cubic-bezier(0.2, 1.6, 0.4, 1) 150ms backwards;
  filter: drop-shadow(0 10px 18px rgba(255, 170, 60, 0.45));
}

@keyframes joinResultIconBounce {
  from { transform: translateY(-46px) scale(0.5) rotate(-14deg); opacity: 0; }
  55% { transform: translateY(8px) scale(1.12) rotate(4deg); opacity: 1; }
  75% { transform: translateY(-4px) scale(0.98) rotate(-2deg); }
  to { transform: translateY(0) scale(1) rotate(0); opacity: 1; }
}

#screen-player-results.is-correct .player-mcq-result-points {
  -webkit-text-stroke: 0;
  background: linear-gradient(180deg, #ffd76e 0%, #ff9f43 70%, #f97316 100%);
  background-clip: text;
  -webkit-background-clip: text;
  filter:
    drop-shadow(0 3px 0 rgba(255, 255, 255, 0.7))
    drop-shadow(0 8px 12px rgba(249, 115, 22, 0.35));
  animation: joinResultPointsPop 700ms cubic-bezier(0.2, 1.4, 0.4, 1) 350ms backwards;
}

@keyframes joinResultPointsPop {
  from { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  to { transform: scale(1); opacity: 1; }
}

#screen-player-results .player-mcq-result-encouragement {
  color: #7c3aed;
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.65);
}

#screen-player-results .player-mcq-result-encouragement::before {
  content: none;
}

/* Gradient text needs the stroke fully gone — viewport media queries below
   re-add a transparent stroke width that erases the gradient fill. */
#screen-player-results.is-correct #player-result-msg,
#screen-player-results.is-wrong #player-result-msg,
#screen-player-results.is-correct #player-result-points {
  -webkit-text-stroke-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  #screen-player-results.is-correct .player-mcq-result-icon,
  #screen-player-results.is-correct .player-mcq-result-points {
    animation: none;
  }
}

/* Fit the 744 × 1132 Figma composition inside shorter tablets and phones. */
@media (max-height: 1132px) {
  #screen-player-question.player-mcq-screen.active,
  #screen-player-results.player-mcq-result-screen.active,
  .player-mcq-shell,
  .player-mcq-result-shell {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .player-mcq-shell {
    padding-top: max(56px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    gap: clamp(24px, 3.5vh, 40px);
  }

  .player-mcq-main {
    padding-top: clamp(28px, 5vh, 60px);
    padding-bottom: clamp(28px, 5vh, 60px);
    gap: clamp(28px, 3.5vh, 40px);
  }

  .player-mcq-result-shell {
    padding-top: max(56px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .player-mcq-result-header {
    top: max(56px, env(safe-area-inset-top));
  }

  .player-mcq-result-main {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .player-mcq-shell {
    min-height: 100vh;
    min-height: 100dvh;
    padding:
      max(36px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
    gap: 28px;
  }

  .player-mcq-score {
    padding: 4px 10px;
    border-width: 4px;
    font-size: 13px;
  }

  .player-mcq-title {
    font-size: clamp(23px, 7vw, 34px);
  }

  .player-mcq-help {
    min-height: 42px;
    padding: 8px 10px 12px;
    font-size: 0;
  }

  .player-mcq-main {
    padding: 28px clamp(10px, 5vw, 34px);
    gap: 32px;
  }

  .player-mcq-timer-card {
    min-height: min(220px, 38vh);
    padding: 28px 40px 22px;
  }

  #screen-player-question .player-mcq-countdown .timer-ring {
    width: 88px;
    height: 88px;
    border-width: 12px;
    font-size: 52px;
  }

  .player-mcq-options-wrap {
    padding: 0;
  }

  .player-mcq-selected-label {
    font-size: 22px;
  }

  #screen-player-question .option.player-btn {
    font-size: 20px;
    line-height: 24px;
    white-space: normal;
  }

  .player-mcq-result-shell {
    min-height: 100vh;
    min-height: 100dvh;
    padding:
      max(12px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
    gap: clamp(8px, 2vh, 16px);
  }

  .player-mcq-result-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    flex: 0 0 auto;
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .player-mcq-result-score {
    padding: 4px 10px;
    border-width: 4px;
    font-size: 13px;
  }

  .player-mcq-result-title {
    font-size: clamp(21px, 6.7vw, 34px);
    -webkit-text-stroke-width: 3px;
  }

  .player-mcq-result-help {
    min-height: 42px;
    padding: 8px 10px 12px;
    font-size: 0;
  }

  .player-mcq-result-main {
    min-height: 0;
    flex: 1 1 auto;
    padding: clamp(4px, 1.5vh, 12px) 0;
  }

  .player-mcq-result-card {
    padding: clamp(22px, 5.5vw, 34px) clamp(16px, 4.5vw, 22px);
    border-width: 7px;
    border-radius: clamp(44px, 13vw, 78px);
    gap: clamp(14px, 3vh, 22px);
  }

  #screen-player-results .result-msg {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.2;
    max-width: 15ch;
    -webkit-text-stroke-width: 3px;
    white-space: normal;
  }

  #screen-player-results.is-correct .result-msg,
  #screen-player-results.is-wrong .result-msg,
  #screen-player-results .result-msg.correct {
    font-size: clamp(26px, 7.2vw, 38px);
    line-height: 1.22;
    max-width: 14ch;
    -webkit-text-stroke-width: 3px;
  }

  #screen-player-results.is-correct .result-msg::before,
  #screen-player-results.is-wrong .result-msg::before,
  #screen-player-results .result-msg.correct::before {
    -webkit-text-stroke-width: 8px;
  }

  .player-mcq-result-icon {
    min-height: 96px;
    font-size: clamp(72px, 20vw, 96px);
  }

  .player-mcq-result-points {
    font-size: clamp(36px, 10vw, 44px);
  }

  #screen-player-results.is-correct .player-mcq-result-points {
    font-size: clamp(40px, 11vw, 54px);
    -webkit-text-stroke-width: 3px;
  }

  .player-mcq-result-points::before {
    content: none;
  }

  .player-mcq-result-encouragement {
    font-size: clamp(24px, 6.5vw, 28px);
    line-height: 1.15;
  }

  #screen-player-results.is-correct .player-mcq-result-encouragement {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.18;
  }

  .player-mcq-result-encouragement::before {
    -webkit-text-stroke-width: 8px;
  }
}

/* Compact phones such as iPhone SE and smaller Android devices. */
@media (max-width: 700px) and (max-height: 760px) and (orientation: portrait) {
  .player-mcq-shell {
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    gap: 18px;
  }

  .player-mcq-title,
  .player-mcq-result-title {
    font-size: clamp(20px, 6.5vw, 27px);
  }

  .player-mcq-main {
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 20px;
  }

  .player-mcq-timer-card {
    min-height: min(180px, 34vh);
    padding: 20px 36px 18px;
    border-radius: 30px;
  }

  #screen-player-question .player-mcq-countdown .timer-ring {
    width: 72px;
    height: 72px;
    border-width: 9px;
    font-size: 42px;
  }

  #screen-player-question .player-mcq-question {
    font-size: clamp(1.05rem, 4.8vw, 1.45rem);
  }

  #screen-player-question .options-grid.player-options {
    gap: 18px;
  }

  #screen-player-question .option.player-btn {
    min-height: 50px;
    padding: 9px 14px 15px;
    font-size: 17px;
    line-height: 21px;
    box-shadow:
      inset 0 -2px 2px rgba(0, 0, 0, 0.1),
      0 7px 0 rgba(0, 0, 0, 0.2),
      0 3px 1px rgba(0, 0, 0, 0.25);
  }

  .player-mcq-result-header {
    padding-top: max(4px, env(safe-area-inset-top));
  }

  .player-mcq-result-main {
    min-height: 0;
    padding: 0;
  }

  .player-mcq-result-card {
    padding: 20px 14px;
    gap: clamp(12px, 2.5vh, 18px);
  }

  .player-mcq-result-icon {
    min-height: 80px;
    font-size: clamp(64px, 18vw, 78px);
  }

  #screen-player-results.is-correct .player-mcq-result-points {
    font-size: clamp(36px, 10vw, 48px);
  }
}

/* Phone and small-tablet landscape: place timer and answers side by side. */
@media (max-height: 560px) and (orientation: landscape) {
  #screen-player-question.player-mcq-screen.active,
  #screen-player-results.player-mcq-result-screen.active,
  .player-mcq-shell,
  .player-mcq-result-shell {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .player-mcq-shell {
    padding:
      max(10px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
    gap: 10px;
  }

  .player-mcq-score,
  .player-mcq-result-score {
    padding: 3px 8px;
    border-width: 3px;
    font-size: 11px;
  }

  .player-mcq-title,
  .player-mcq-result-title {
    font-size: clamp(19px, 3.7vw, 28px);
  }

  .player-mcq-help,
  .player-mcq-result-help {
    min-height: 34px;
    padding: 5px 8px 8px;
    font-size: 0;
  }

  .player-mcq-help-icon,
  .player-mcq-result-help-icon {
    width: 20px;
    height: 20px;
    border-width: 2px;
    font-size: 13px;
  }

  .player-mcq-main {
    padding: 8px 12px;
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
    gap: 14px;
  }

  .player-mcq-timer-card {
    min-height: 0;
    padding: 12px 36px 10px 12px;
    border-width: 3px;
    border-radius: 26px;
  }

  #screen-player-question .player-mcq-countdown .timer-ring {
    width: 68px;
    height: 68px;
    border-width: 8px;
    font-size: 38px;
  }

  #screen-player-question .player-mcq-question {
    font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  }

  .player-mcq-options-wrap {
    padding: 0;
  }

  .player-mcq-selected-label {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding-top: 2px;
    font-size: 16px;
    line-height: 20px;
  }

  #screen-player-question.is-answered .player-mcq-options-wrap {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    padding-top: 28px;
  }

  #screen-player-question .options-grid.player-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #screen-player-question .option.player-btn {
    min-height: 50px;
    padding: 8px 10px 13px;
    font-size: clamp(13px, 2vw, 17px);
    line-height: 18px;
    border-width: 2px;
    box-shadow:
      inset 0 -2px 2px rgba(0, 0, 0, 0.1),
      0 6px 0 rgba(0, 0, 0, 0.2),
      0 2px 1px rgba(0, 0, 0, 0.25);
  }

  #screen-player-question .feedback {
    grid-column: 1 / -1;
    min-height: 18px;
    margin: 0;
    font-size: 14px;
  }

  .player-mcq-result-shell {
    padding:
      max(10px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }

  .player-mcq-result-header {
    top: max(10px, env(safe-area-inset-top));
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
  }

  .player-mcq-result-main {
    min-height: calc(100dvh - 20px);
    padding: 48px 8px 0;
  }

  .player-mcq-result-card {
    max-width: 640px;
    padding: 16px 24px;
    border-width: 6px;
    border-radius: 52px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 22px;
  }

  #screen-player-results .result-msg {
    grid-column: 1 / -1;
    font-size: clamp(22px, 4.5vw, 32px);
    -webkit-text-stroke-width: 3px;
  }

  #screen-player-results.is-correct .result-msg,
  #screen-player-results.is-wrong .result-msg,
  #screen-player-results .result-msg.correct {
    font-size: clamp(24px, 5vw, 36px);
    -webkit-text-stroke-width: 3px;
  }

  #screen-player-results.is-correct .result-msg::before,
  #screen-player-results.is-wrong .result-msg::before,
  #screen-player-results .result-msg.correct::before {
    -webkit-text-stroke-width: 7px;
  }

  .player-mcq-result-icon {
    grid-row: 2 / 4;
    min-height: 92px;
    font-size: 82px;
  }

  .player-mcq-result-points {
    align-self: end;
    font-size: 36px;
  }

  #screen-player-results.is-correct .player-mcq-result-points {
    font-size: clamp(36px, 6.6vw, 50px);
    -webkit-text-stroke-width: 3px;
  }

  .player-mcq-result-points::before {
    content: none;
  }

  .player-mcq-result-encouragement {
    align-self: start;
    font-size: 24px;
  }

  #screen-player-results.is-correct .player-mcq-result-encouragement {
    font-size: clamp(24px, 4.6vw, 34px);
  }

  .player-mcq-result-encouragement::before {
    -webkit-text-stroke-width: 7px;
  }
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .options-grid.player-options {
    grid-template-columns: 1fr 1fr;
  }

  .options-grid.host-options,
  .options-grid.results-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Lango login screen (Figma) */
.lango-host:has(#screen-login.active) {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.lango-host:has(#screen-login.active) .site-nav,
.lango-host:has(#screen-login.active) .flow-steps {
  display: none;
}

body:has(#screen-login.active) {
  background: #8ecfff;
  background-image: none;
}

.login-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.login-home-link {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  z-index: 20;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.login-home-link:hover {
  color: #fff;
}

.login-scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.login-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.login-panel {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: min(720px, calc(100% - 2rem));
  padding: 11rem 3rem 1.8rem;
  border-radius: 38px;
  border: 12px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    155deg,
    rgba(162, 89, 255, 0.6) 0%,
    rgba(255, 107, 107, 0.6) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  max-width: 100%;
}

.login-logo {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  width: 340px;
  max-width: 100%;
  transform: translate(-50%, -54%);
  pointer-events: none;
}

.login-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.login-form-wrap {
  width: 100%;
  max-width: 100%;
}

.login-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  letter-spacing: 0.9px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0 0 1.25rem;
  line-height: 1.1;
  white-space: nowrap;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.login-field {
  display: block;
}

.login-field input {
  width: 100%;
  padding: 1.25rem 1.8rem;
  border: none;
  border-radius: 26px;
  background: #fff;
  color: #333;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 400;
  box-shadow: 0 8px 16px rgba(108, 106, 171, 0.02);
}

.login-field input::placeholder {
  color: #b8babf;
}

.login-field input:focus {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

.login-btn {
  position: relative;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 86px;
  height: 98px;
  margin-top: 0.25rem;
  padding: 0;
  border: none;
  border-radius: 49px;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  text-shadow: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 10px 0 rgba(0, 0, 0, 0.2),
    inset 0 -2px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.login-btn-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.28em;
  transition: opacity 0.18s ease, transform 0.18s ease;
  user-select: none;
}

.login-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 3px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.login-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.login-btn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.2),
    inset 0 -2px 2px rgba(0, 0, 0, 0.1);
}

.login-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.login-btn.is-scanning {
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  color: #fff;
  text-shadow: none;
  box-shadow:
    0 10px 0 rgba(0, 0, 0, 0.2),
    inset 0 -2px 2px rgba(0, 0, 0, 0.1);
  opacity: 1;
  animation: loginBiometricButton 3.6s ease-in-out infinite;
}

.login-btn.is-success {
  opacity: 1;
  cursor: default;
}

.login-btn.is-fail {
  background: linear-gradient(180deg, #ff6b6b 0%, #ee3f46 100%);
  color: #fff;
  opacity: 1;
  box-shadow:
    0 10px 0 rgba(141, 35, 44, 0.34),
    inset 0 -2px 2px rgba(0, 0, 0, 0.12);
  animation: loginFailBounce 520ms cubic-bezier(0.2, 1.25, 0.35, 1);
}

.login-btn.is-fail::before {
  border-color: rgba(255, 255, 255, 0.58);
}

.login-btn.is-scanning::before {
  border-color: rgba(255, 255, 255, 0.5);
}

.login-btn.is-scanning .login-btn-text {
  animation: loginBiometricText 3.6s ease-in-out infinite;
}

.login-fingerprint,
.login-btn-ok {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.login-fingerprint {
  opacity: 0;
  stroke: rgba(255, 255, 255, 0.34);
  transition: opacity 1ms;
}

.login-fingerprint-active {
  stroke: #fff;
}

.login-fingerprint-out {
  opacity: 1;
}

.login-fingerprint-odd {
  stroke-dasharray: 0 50px;
  stroke-dashoffset: 1px;
  transition: stroke-dasharray 1ms;
}

.login-fingerprint-even {
  stroke-dasharray: 50px 50px;
  stroke-dashoffset: -41px;
  transition: stroke-dashoffset 1ms;
}

.login-btn-ok {
  opacity: 0;
}

.login-btn.is-scanning .login-fingerprint {
  opacity: 1;
  transition: opacity 220ms 120ms;
}

.login-btn.is-scanning .login-fingerprint-base .login-fingerprint-odd {
  stroke-dasharray: 50px 50px;
  transition: stroke-dasharray 560ms 100ms;
}

.login-btn.is-scanning .login-fingerprint-base .login-fingerprint-even {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 560ms;
}

.login-btn.is-scanning .login-fingerprint-active .login-fingerprint-odd {
  stroke-dasharray: 50px 50px;
  transition: stroke-dasharray 1180ms 820ms;
}

.login-btn.is-scanning .login-fingerprint-active .login-fingerprint-even {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1180ms 720ms;
}

.login-btn.is-scanning .login-fingerprint-out {
  opacity: 0;
  transition: opacity 220ms 2520ms;
}

.login-btn.is-scanning .login-btn-ok {
  animation: loginBiometricOk 3.6s ease-in-out infinite;
}

@keyframes loginBiometricButton {
  0%,
  100% {
    width: 100%;
    transform: translateY(0);
  }
  8%,
  86% {
    width: 86px;
    transform: translateY(0);
  }
  68% {
    transform: scale(1);
  }
  72% {
    transform: scale(1.14);
  }
  75% {
    transform: scale(1);
  }
}

@keyframes loginBiometricText {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  8%,
  86% {
    opacity: 0;
    transform: scale(0.55);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loginBiometricOk {
  0%,
  64% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  72% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
  76%,
  84% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  92%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
}

@keyframes loginFailBounce {
  0% {
    transform: translateY(0) scale(1);
  }
  28% {
    transform: translateY(-10px) scale(1.03);
  }
  52% {
    transform: translateY(5px) scale(0.98);
  }
  72% {
    transform: translateY(-3px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-btn.is-scanning,
  .login-btn.is-fail,
  .login-btn.is-scanning .login-btn-text,
  .login-btn.is-scanning .login-btn-ok {
    animation: none;
  }

  .login-btn.is-scanning {
    width: 100%;
  }

  .login-btn.is-scanning .login-btn-text {
    opacity: 1;
    transform: none;
  }

  .login-btn.is-scanning .login-fingerprint,
  .login-btn.is-scanning .login-btn-ok {
    opacity: 0;
  }
}

.login-error {
  min-height: 1.25rem;
  margin-top: 0.25rem;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.login-version {
  margin-top: -0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .login-panel {
    gap: 1rem;
    width: min(520px, calc(100% - 1.5rem));
    padding: 8.8rem 2rem 1.5rem;
    border-radius: 34px;
    border-width: 8px;
  }

  .login-logo {
    width: 280px;
  }

  .login-title {
    font-size: 1.55rem;
  }

  .login-field input {
    padding: 1.1rem 1.5rem;
    border-radius: 24px;
    font-size: 1.1rem;
  }

  .login-btn {
    height: 86px;
    border-radius: 43px;
    font-size: 1.4rem;
  }
}

/* Lango picker screens — class & course (Figma) */
.lango-host:has(#screen-class.active),
.lango-host:has(#screen-course.active),
.lango-host:has(#screen-section.active),
.lango-host:has(#screen-waiting.active),
.lango-host:has(#screen-host-video.active),
.lango-host:has(#screen-host-buzzin.active),
.lango-host:has(#screen-host-buzzin-feedback.active),
.lango-host:has(#screen-host-buzzin-empty.active),
.lango-host:has(#screen-host-quiz-preview.active),
.lango-host:has(#screen-host-quiz-question.active),
.lango-host:has(#screen-host-quiz-results.active),
.lango-host:has(#screen-host-fast-results.active),
.lango-host:has(#screen-host-quiz-finished.active) {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

#app.lango-host:has(#screen-class.active) {
  max-width: none;
}

.lango-host:has(#screen-class.active) .site-nav,
.lango-host:has(#screen-class.active) .flow-steps,
.lango-host:has(#screen-settings.active) .site-nav,
.lango-host:has(#screen-settings.active) .flow-steps,
.lango-host:has(#screen-course.active) .site-nav,
.lango-host:has(#screen-course.active) .flow-steps,
.lango-host:has(#screen-section.active) .site-nav,
.lango-host:has(#screen-section.active) .flow-steps,
.lango-host:has(#screen-waiting.active) .site-nav,
.lango-host:has(#screen-waiting.active) .flow-steps,
.lango-host:has(#screen-host-video.active) .site-nav,
.lango-host:has(#screen-host-video.active) .flow-steps,
.lango-host:has(#screen-host-buzzin.active) .site-nav,
.lango-host:has(#screen-host-buzzin.active) .flow-steps,
.lango-host:has(#screen-host-buzzin-feedback.active) .site-nav,
.lango-host:has(#screen-host-buzzin-feedback.active) .flow-steps,
.lango-host:has(#screen-host-buzzin-empty.active) .site-nav,
.lango-host:has(#screen-host-buzzin-empty.active) .flow-steps,
.lango-host:has(#screen-host-quiz-preview.active) .site-nav,
.lango-host:has(#screen-host-quiz-preview.active) .flow-steps,
.lango-host:has(#screen-host-quiz-question.active) .site-nav,
.lango-host:has(#screen-host-quiz-question.active) .flow-steps,
.lango-host:has(#screen-host-quiz-results.active) .site-nav,
.lango-host:has(#screen-host-quiz-results.active) .flow-steps,
.lango-host:has(#screen-host-fast-results.active) .site-nav,
.lango-host:has(#screen-host-fast-results.active) .flow-steps,
.lango-host:has(#screen-host-quiz-finished.active) .site-nav,
.lango-host:has(#screen-host-quiz-finished.active) .flow-steps {
  display: none;
}

.lango-host #screen-host-quiz-preview.active,
.lango-host #screen-host-quiz-question.active,
.lango-host #screen-host-quiz-results.active,
.lango-host #screen-host-fast-results.active,
.lango-host #screen-host-quiz-finished.active {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}

body:has(#screen-class.active),
body:has(#screen-section.active),
body:has(#screen-waiting.active),
body:has(#screen-host-video.active),
body:has(#screen-host-buzzin.active),
body:has(#screen-host-buzzin-feedback.active),
body:has(#screen-host-buzzin-empty.active) {
  background: #f5c842;
  background-image: none;
}

body:has(#screen-host-fast-results.active) {
  background: #f5c842;
  background-image: none;
  overflow: hidden;
}

body:has(#screen-course.active) {
  background: #f5c842;
  background-image: none;
}

body:has(#screen-host-quiz-preview.active),
body:has(#screen-host-quiz-question.active) {
  background: #f5c842;
  background-image: none;
  overflow: hidden;
}

.lango-host #screen-host-quiz-preview.active,
.lango-host #screen-host-quiz-question.active {
  max-width: none;
  margin: 0;
  padding: 0;
}

.host-mcq-preview-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #f5c842;
  color: #fff;
  font-family: "Nunito", sans-serif;
}

.host-mcq-preview-screen *,
.host-mcq-preview-screen *::before,
.host-mcq-preview-screen *::after {
  box-sizing: border-box;
}

.host-mcq-preview-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px);
  transform: scale(1.04);
  transform-origin: center;
  pointer-events: none;
}

.host-mcq-preview-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: none;
}

.host-mcq-preview-container {
  position: relative;
  z-index: 2;
  width: min(1280px, 100vw);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.host-mcq-preview-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.host-mcq-preview-title {
  flex: 1 0 0;
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 3.9vw, 3.125rem);
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.9px;
  text-align: center;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.3),
    0 0 8px rgba(177, 25, 128, 0.55);
}

.host-mcq-preview-main {
  position: relative;
  width: 100%;
  min-height: 0;
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.host-mcq-preview-question-box {
  position: relative;
  width: min(800px, calc(100vw - 40px));
  height: min(399px, 55vh);
  min-height: 320px;
  padding: 36px 36px 20px;
  border: 4px solid #fc7dba;
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(91.9deg, rgba(177, 25, 128, 0.8) 11%, rgba(116, 60, 155, 0.8) 97%);
  box-shadow:
    0 0 25px rgba(255, 105, 180, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.host-mcq-preview-points {
  position: absolute;
  top: 16px;
  left: 42px;
  margin: 0;
  color: transparent;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.75px;
  text-shadow:
    1.667px 1.667px 3.333px rgba(0, 0, 0, 0.3),
    0 2px 0 rgba(255, 255, 255, 0.85);
}

.host-mcq-preview-question {
  width: 100%;
  margin: 0;
  color: #fff;
  font-family: "HK Grotesk", "Nunito", sans-serif;
  font-size: clamp(1.45rem, 2.35vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.host-mcq-preview-image-wrap {
  width: min(344px, 46vw);
  height: min(205px, 28vh);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.host-mcq-preview-image-wrap[hidden] {
  display: none;
}

.host-mcq-preview-image {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: contain;
}

.host-mcq-preview-progress {
  width: min(800px, calc(100vw - 40px));
  margin-top: 18px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 2px 6px rgba(116, 60, 155, 0.18),
    0 4px 14px rgba(177, 25, 128, 0.15);
  overflow: hidden;
}

.host-mcq-preview-progress > div,
#host-quiz-preview-progress {
  display: block;
  width: 0%;
  max-width: 100%;
  height: 18px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #feca57 0%, #ff9f43 55%, #f97316 100%);
  box-shadow: 0 0 12px rgba(255, 159, 67, 0.45);
  transition: none;
  will-change: width;
}

#app.lango-host #screen-host-quiz-preview.is-read-phase .host-mcq-preview-progress {
  visibility: visible;
  opacity: 1;
}

#app.lango-host #screen-host-quiz-preview.is-read-phase #host-quiz-preview-progress {
  transform: translateZ(0);
}

.host-mcq-preview-footer {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  width: min(426px, calc(100vw - 20px));
  height: 70px;
  padding: 0 20px;
  border-radius: 0 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: rgba(255, 255, 255, 0.8);
}

.host-mcq-preview-footer-btn {
  min-width: 96px;
  height: 42px;
  padding: 9px 12px 13px;
  border: 0;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 20px;
  letter-spacing: 0.36px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.1),
    inset 0 0 0 3px rgba(255, 255, 255, 0.5),
    0 6px 0 rgba(0, 0, 0, 0.2),
    0 2px 1px rgba(0, 0, 0, 0.25);
}

.host-mcq-preview-footer-btn:disabled {
  cursor: default;
  opacity: 0.72;
}

.host-mcq-preview-footer-icon {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.15));
}

.host-mcq-preview-footer-icon--next {
  transform: rotate(180deg);
}

.host-mcq-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: #fff;
}

.host-mcq-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px);
  transform: scale(1.04);
  transform-origin: center;
  pointer-events: none;
}

.host-mcq-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: none;
}

.host-mcq-container {
  position: relative;
  z-index: 1;
  width: min(1280px, 100vw);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.host-mcq-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  margin: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.22);
}

.host-mcq-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.host-mcq-title {
  margin: 0;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: clamp(2.25rem, 3.9vw, 3.125rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.018em;
  text-align: center;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.3),
    0 0 8px rgba(177, 25, 128, 0.55);
}

.host-mcq-main {
  position: relative;
  width: min(800px, calc(100vw - 40px));
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  align-items: center;
}

.host-mcq-question-box {
  position: relative;
  width: 100%;
  min-height: min(399px, 55vh);
  padding: 36px 36px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 4px solid #fc7dba;
  border-radius: 40px;
  background: linear-gradient(91.9deg, rgba(177, 25, 128, 0.8) 11%, rgba(116, 60, 155, 0.8) 97%);
  box-shadow:
    0 0 25px rgba(255, 105, 180, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.host-mcq-points {
  position: absolute;
  top: 16px;
  left: 42px;
  margin: 0;
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.023em;
  color: #feca57;
  text-shadow:
    1.667px 1.667px 3.333px rgba(0, 0, 0, 0.3),
    0 2px 0 rgba(255, 255, 255, 0.85);
}

.host-mcq-sparkle {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fde047;
  opacity: 0.7;
  filter: blur(2px);
}

.host-mcq-question {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.45rem, 2.35vw, 1.875rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.host-mcq-image-wrap {
  margin: 0;
  display: flex;
  justify-content: center;
}

.host-mcq-image-wrap[hidden] {
  display: none;
}

.lango-host #screen-host-quiz-question .host-mcq-image {
  width: min(344px, 46vw);
  height: min(205px, 28vh);
  max-width: none;
  max-height: none;
  object-fit: contain;
  border: 0;
  border-radius: 20px;
  background: transparent;
}

.host-mcq-options {
  width: 100%;
  padding: 8px 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(60px, auto);
  gap: 16px;
}

.host-mcq-options .option {
  min-height: 60px;
  padding: 12px 18px 20px;
  border: 0;
  border-radius: 100px;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  font-weight: 900;
  line-height: 1.17;
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.1),
    inset 0 0 0 3px rgba(255, 255, 255, 0.5),
    0 10px 0 rgba(0, 0, 0, 0.2),
    0 4px 1px rgba(0, 0, 0, 0.25);
}

.host-mcq-options .option .label {
  justify-content: center;
}

.host-mcq-options .option[data-index="0"] {
  background: var(--opt-a);
}

.host-mcq-options .option[data-index="1"] {
  background: var(--opt-b);
  color: #4B2E83;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.host-mcq-options .option[data-index="2"] {
  background: var(--opt-c);
}

.host-mcq-options .option[data-index="3"] {
  background: var(--opt-d);
  color: #1a3d42;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.host-mcq-countdown {
  position: absolute;
  top: clamp(42px, 8.2vh, 59px);
  right: max(10vw, calc((100vw - 800px) / 2 - 51px));
  width: 101px;
  height: 101px;
  border: 15px solid #feca57;
  border-radius: 999px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow:
    0 0 10.417px rgba(255, 105, 180, 0.5),
    inset 0 0 8.333px rgba(255, 255, 255, 0.5);
}

.host-mcq-countdown span {
  font-family: "Nunito", sans-serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: #ff9f43;
  text-shadow:
    1.667px 1.667px 3.333px rgba(0, 0, 0, 0.3),
    0 2px 0 rgba(255, 255, 255, 0.9);
}

.host-mcq-footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(426px, calc(100vw - 20px));
  height: 70px;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-radius: 0 20px 20px 0;
  background: rgba(255, 255, 255, 0.8);
}

.host-mcq-footer-btn {
  min-width: 96px;
  min-height: 42px;
  padding: 9px 12px 13px;
  border: 0;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.1),
    inset 0 0 0 3px rgba(255, 255, 255, 0.5),
    0 6px 0 rgba(0, 0, 0, 0.2),
    0 2px 1px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.host-mcq-next-btn {
  opacity: 0.95;
  cursor: default;
}

.host-mcq-status {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: 280px;
  margin: 0;
  color: #fff;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.host-mcq-hidden-logout {
  display: none;
}

.host-mcq-result-screen {
  --mcq-result-polish: 3;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: #fff;
}

.host-mcq-result-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 236, 200, 0.3) 0%,
    rgba(255, 214, 232, 0.24) 100%
  );
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  pointer-events: none;
}

.host-mcq-result-container {
  position: relative;
  z-index: 1;
  width: 1280px;
  min-height: 720px;
  height: 720px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.host-mcq-result-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.host-mcq-result-title {
  margin: 0;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 50px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.018em;
  text-align: center;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.3),
    0 0 8px rgba(177, 25, 128, 0.55);
}

#app.lango-host #screen-host-quiz-results .host-mcq-result-title {
  font-size: clamp(54px, 5.4vw, 68px);
  letter-spacing: 0.045em;
  color: #fff;
  -webkit-text-fill-color: #fff;
  -webkit-text-stroke: 0.075em #ff6ec7;
  paint-order: stroke fill;
  text-shadow:
    0 4px 0 #743c9b,
    0 7px 0 rgba(177, 25, 128, 0.55),
    0 0 22px rgba(255, 190, 235, 0.65),
    0 0 10px rgba(254, 202, 87, 0.4);
}

.host-mcq-result-main {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.host-mcq-result-left {
  position: relative;
  width: 800px;
  height: 578px;
  flex: 0 0 auto;
}

.host-mcq-result-question-box,
.host-mcq-distribution,
.host-mcq-correct-board {
  border: 4px solid #fc7dba;
  border-radius: 40px;
  box-shadow:
    0 0 25px rgba(255, 105, 180, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.host-mcq-result-question-box {
  position: absolute;
  left: 0;
  top: 0;
  width: 800px;
  min-height: 278px;
  padding: 12px 24px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(
    118deg,
    #fffdf6 0%,
    #fff1d6 55%,
    #ffe3ef 100%
  );
}

.host-mcq-result-points {
  align-self: flex-end;
  margin: 0;
  color: #f59e0b;
  font-family: "Nunito", sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
  -webkit-text-stroke: 0.025em #fff;
  paint-order: stroke fill;
  text-shadow:
    1px 2px 0 #d97706,
    0 1px 0 rgba(255, 255, 255, 0.85);
}

.host-mcq-result-question,
#app.lango-host #screen-host-quiz-results .host-quiz-results-question {
  margin: 0;
  color: #a82472;
  font-family: "Nunito", sans-serif;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
  -webkit-text-stroke: 0.02em #fff;
  paint-order: stroke fill;
  text-shadow: 1px 2px 0 rgba(255, 220, 240, 0.95);
}

.host-mcq-result-correct {
  display: flex;
  align-items: center;
  gap: 16px;
}

.host-mcq-result-check {
  width: 36px;
  height: 36px;
  border: 3px solid #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #22c55e;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 1px 2px 0 #15803d;
}

.host-mcq-result-correct p {
  margin: 0;
  color: #5b2a6e;
  font-family: "Nunito", sans-serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 36px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.host-mcq-correct-letter {
  color: #15803d;
  font-weight: 900;
}

.host-mcq-correct-highlight {
  color: #16a34a;
  -webkit-text-stroke: 0.02em #fff;
  paint-order: stroke fill;
  text-shadow: 1px 1px 0 rgba(220, 252, 231, 0.9);
}

.host-mcq-legend-item--correct .host-mcq-legend-label,
.host-mcq-legend-item--correct .host-mcq-legend-copy {
  color: #15803d;
}

.host-mcq-result-image-wrap {
  display: none;
}

.host-mcq-distribution {
  position: absolute;
  left: 10px;
  top: 310px;
  width: 780px;
  min-height: 236px;
  padding: 10px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: rgba(255, 253, 248, 0.94);
}

.host-mcq-distribution-title {
  margin: 0 0 8px;
  color: #b11980;
  font-family: "Nunito", sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.035em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.host-mcq-distribution-body {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.host-mcq-donut {
  --donut-fill: #d1d5db 0% 100%;
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 999px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 34%, transparent 35%),
    conic-gradient(var(--donut-fill));
  box-shadow:
    0 0 20px rgba(255, 105, 180, 0.5),
    inset 0 0 8px rgba(255, 255, 255, 0.5);
}

.host-mcq-donut-label {
  color: #9d174d;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  max-width: 92px;
  padding: 0 6px;
}

.host-mcq-donut strong {
  color: #ea580c;
  font-family: "Nunito", sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
  text-shadow: 1px 2px 0 rgba(255, 255, 255, 0.75);
}

.host-mcq-legend {
  width: 450px;
  display: flex;
  flex-direction: column;
  gap: 11.5px;
}

.host-mcq-legend-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.host-mcq-legend-label {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #4a2b5c;
  font-family: "Nunito", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.28;
  text-shadow: none;
}

.host-mcq-legend-letter {
  color: #b11980;
  font-weight: 900;
}

.host-mcq-legend-item:nth-child(1) .host-mcq-legend-letter { color: #c02888; }
.host-mcq-legend-item:nth-child(2) .host-mcq-legend-letter { color: #c9a800; }
.host-mcq-legend-item:nth-child(3) .host-mcq-legend-letter { color: #5C3A9E; }
.host-mcq-legend-item:nth-child(4) .host-mcq-legend-letter { color: #1a9ba1; }

.host-mcq-legend-item--correct .host-mcq-legend-letter {
  color: #15803d;
}

.host-mcq-legend-label > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.host-mcq-legend-dot {
  width: 25px;
  height: 25px;
  border: 1px solid #fff;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--dot-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.host-mcq-legend-item strong {
  flex: 0 0 auto;
  color: #e8890c;
  font-family: "Nunito", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.host-mcq-legend-item strong span {
  font-size: 16px;
}

.host-mcq-correct-board {
  width: 420px;
  height: 542px;
  padding: 19px 36px 27px;
  box-sizing: border-box;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(162, 89, 255, 0.6);
  border-width: 8px;
  border-radius: 100px;
  box-shadow: 2px 4px 30px #ffb1ed;
}

.host-mcq-correct-board-header {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.host-mcq-correct-board-header h3 {
  margin: 0;
  color: #c9469a;
  font-family: "Nunito", sans-serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  -webkit-text-fill-color: #c9469a;
  -webkit-text-stroke: 0.03em #fff;
  paint-order: stroke fill;
  text-shadow: 1px 2px 0 #743c9b;
}

.host-mcq-correct-board-header p {
  margin: 0;
  color: #b11980;
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.host-mcq-correct-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.host-mcq-correct-student {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.host-mcq-correct-avatar {
  width: 80px;
  height: 80px;
  border: 3px solid #96e5dd;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,0.7), hsl(calc(var(--student-i, 0) * 44), 86%, 72%));
  color: #344356;
  font-family: "Nunito", sans-serif;
  font-size: 24px;
  font-weight: 900;
}

.host-mcq-correct-student p,
.host-mcq-correct-empty {
  margin: 0;
  color: #5b1848;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
}

.host-mcq-correct-empty {
  grid-column: 1 / -1;
  align-self: center;
}

.host-mcq-result-footer {
  top: 650px;
  bottom: auto;
}

/* Fast MC aggregate result, from Figma frame 294:17636. */
.host-fast-result-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: #fff;
  font-family: "Nunito", sans-serif;
}

.host-fast-result-screen * { box-sizing: border-box; }

.host-fast-result-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fast MC aggregate result — layout owned by host-fast-result.css */
.host-fast-result-stage {
  /* legacy Figma absolute+scale(1.5) removed */
}

.host-fast-result-title {
  /* legacy purple stroke title removed */
}

.host-fast-result-board {
  /* legacy fixed 1240x491 card removed */
}

.host-fast-result-groups {
  min-height: 0;
  height: 100%;
}

.host-fast-result-group {
  display: none; /* replaced by podium+sheet markup */
}

.host-fast-result-footer {
  /* legacy absolute+scale(1.5) footer removed */
}

/* Legacy student-card styles neutralized — owned by host-fast-result.css */
.host-fast-result-student,
.host-fast-result-score strong,
.host-fast-result-score span,
.host-fast-result-students {
  /* no-op leftovers */
}

.host-fast-result-button--back { filter: none; }
.host-fast-result-button img { width: 20px; height: 20px; }
.host-fast-result-next-icon { transform: rotate(180deg); }

.class-screen {
  min-height: 100vh;
  overflow: hidden;
}

.class-scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.class-screen .class-scene {
  display: flex;
  align-items: center;
  justify-content: center;
}

.class-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: blur(10px);
  -webkit-filter: blur(10px);
  transform: scale(1.08);
  transform-origin: center center;
}

.class-screen .class-bg {
  filter: blur(6px);
  -webkit-filter: blur(6px);
  transform: scale(1.04);
}

.class-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 1.25rem;
  backdrop-filter: blur(7.5px);
  -webkit-backdrop-filter: blur(7.5px);
  background: rgba(0, 0, 0, 0.1);
}

.class-screen .class-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  min-height: auto;
  margin: 0 auto;
  padding: 2rem 1.25rem 6rem;
  text-align: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.04);
}

.class-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.65rem 1rem;
  border-radius: 40px;
  backdrop-filter: blur(100px);
  -webkit-backdrop-filter: blur(100px);
}

.class-screen .class-header {
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  margin-bottom: 1.75rem;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: none;
  text-align: center;
}

.class-back-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem 0.8rem;
  border: none;
  border-radius: 100px;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.36px;
  text-transform: capitalize;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  cursor: pointer;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.2),
    inset 0 -2px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.class-back-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 3px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.class-back-btn:hover {
  transform: translateY(-1px);
}

.class-back-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.2),
    inset 0 -2px 2px rgba(0, 0, 0, 0.1);
}

.class-back-icon {
  display: block;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.15));
}

.class-page-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.9px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

.class-screen .class-page-title {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  -webkit-text-stroke: 1.5px rgba(192, 38, 211, 0.55);
  paint-order: stroke fill;
  text-shadow:
    2px 2px 0 rgba(168, 85, 247, 0.85),
    -1px 1px 0 rgba(168, 85, 247, 0.85),
    1px -1px 0 rgba(168, 85, 247, 0.85),
    0 3px 8px rgba(0, 0, 0, 0.28);
}

.class-title-mark {
  text-decoration: underline;
  text-decoration-color: rgba(52, 67, 86, 0.55);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.class-teacher-label {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.class-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.class-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.class-section-title {
  font-size: clamp(2rem, 4vw, 3.125rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.9px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1;
}

.class-screen .class-section-title {
  color: #ff6b9d;
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  text-shadow:
    2px 2px 0 rgba(168, 85, 247, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.22);
  text-align: center;
  width: 100%;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem 2rem;
}

@media (min-width: 900px) {
  .class-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 2rem;
  }
}

.class-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 132px;
  padding: 1.25rem;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #ecebf5 0%, #e2e1ee 100%);
  color: #344356;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    inset 0 -4px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.class-card-shine {
  position: absolute;
  inset: 3% 5% 52% 5%;
  border-radius: 12px 12px 999px 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  pointer-events: none;
}

.class-card:hover {
  transform: translateY(-2px);
}

.class-card.active {
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  color: #fff;
  box-shadow:
    0 12px 28px -6px rgba(255, 159, 67, 0.45),
    inset 0 -4px 8px rgba(0, 0, 0, 0.12);
}

.class-card.active .class-card-shine {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
}

.class-screen .class-login-btn {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 10;
  padding: 0.85rem 1.35rem 1.25rem;
  font-size: 1.5rem;
  gap: 0.65rem;
  background: linear-gradient(180deg, #ecebf1 0%, #c8c7d4 100%);
  color: #fff;
  box-shadow:
    0 7px 0 rgba(0, 0, 0, 0.18),
    inset 0 -2px 2px rgba(0, 0, 0, 0.08);
}

.class-screen .class-login-btn .class-back-icon {
  width: 32px;
  height: 32px;
}

.class-screen .class-login-btn::before {
  border-color: rgba(255, 255, 255, 0.65);
}

.class-screen .class-login-btn:hover {
  filter: brightness(1.03);
}

.class-screen .class-sections {
  gap: 1.75rem;
  width: 100%;
  align-items: center;
}

.class-screen .class-section {
  gap: 1rem;
  width: 100%;
  align-items: center;
}

.class-screen .class-grid {
  width: 100%;
  max-width: min(1280px, 94vw);
  margin: 0 auto;
}

.class-screen .class-status,
.class-screen .class-error {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.class-screen .class-card-name {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 800;
}

.class-screen .class-card-meta {
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0.82;
}

.class-screen .class-card.active .class-card-meta {
  opacity: 0.95;
}

.class-card.has-thumb {
  padding: 0;
  gap: 0;
  min-height: auto;
}

.class-card.has-thumb .class-card-shine {
  display: none;
}

.class-card-thumb {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 96px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.class-card.has-thumb .class-card-name {
  padding: 0.75rem 1rem 0;
}

.class-card.has-thumb .class-card-meta {
  padding: 0 1rem 1rem;
}

.class-card-name {
  position: relative;
  z-index: 1;
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  font-weight: 800;
  line-height: 1.1;
}

.class-card-meta {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.9;
}

.class-status,
.class-error {
  margin-top: 1rem;
  text-align: center;
  font-weight: 800;
  min-height: 1.25rem;
}

.class-status {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.class-error {
  color: #ffe0e0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* —— Host course picker (Figma: Select Your Course) —— */

.course-screen {
  min-height: 100vh;
  min-height: 100dvh;
}

.course-scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.course-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: blur(6px);
  -webkit-filter: blur(6px);
  transform: scale(1.04);
  transform-origin: center center;
}

.course-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  animation: course-float 4s ease-in-out infinite;
}

.course-decor--star {
  width: clamp(56px, 8vw, 90px);
  top: 14%;
  right: 10%;
  animation-delay: 0.4s;
}

.course-decor--sparkle-1 {
  width: clamp(36px, 5vw, 52px);
  top: 22%;
  left: 8%;
  animation-delay: 0s;
}

.course-decor--sparkle-2 {
  width: clamp(32px, 4.5vw, 48px);
  bottom: 18%;
  right: 14%;
  animation-delay: 1.2s;
}

@keyframes course-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(6deg);
  }
}

@keyframes course-card-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes course-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.course-toolbar,
.course-page {
  position: relative;
  z-index: 2;
}

.course-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 0.75rem 0.75rem 0;
  box-sizing: border-box;
}

.course-panel {
  width: 70vw;
  height: 70vh;
  max-width: 70vw;
  max-height: 70vh;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2rem);
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  overflow: hidden;
  box-shadow: none;
  position: relative;
}

.course-panel-header {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
}

.course-grid-scroll {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-quest-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 0.5rem;
}

.course-quest-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d5dce8;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.course-quest-dot.done {
  background: linear-gradient(180deg, #4ecdc4 0%, #2bb5ad 100%);
}

.course-quest-dot.active {
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.25);
  animation: course-quest-pulse 1.6s ease-in-out infinite;
}

.course-quest-line {
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: #d5dce8;
}

.course-quest-line.done {
  background: linear-gradient(90deg, #4ecdc4, #2bb5ad);
}

@keyframes course-quest-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

.course-step {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #8b4fa8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.course-count-badge {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ff9f43;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 159, 67, 0.12);
  display: inline-block;
}

.course-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem max(1rem, env(safe-area-inset-bottom));
  flex-wrap: wrap;
  margin-top: auto;
  flex-shrink: 0;
}

.course-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.course-toolbar-link {
  color: #743c9b;
  font-weight: 800;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(116, 60, 155, 0.1);
  white-space: nowrap;
}

.course-toolbar-link:hover {
  background: rgba(116, 60, 155, 0.18);
}

.course-toolbar-logout {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  color: #344356;
  background: rgba(52, 67, 86, 0.1);
  cursor: pointer;
  white-space: nowrap;
}

.course-toolbar-logout:hover {
  background: rgba(52, 67, 86, 0.16);
}

.course-page-title {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  background: linear-gradient(-86deg, #743c9b 2.8%, #b11980 89%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 12px rgba(177, 25, 128, 0.15));
}

.course-class-label {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #6b7280;
}

.course-class-label__eyebrow {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9333ea;
}

.course-class-label__name {
  display: block;
  font-weight: 800;
  color: #4c1d95;
}

.course-grid {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  width: 100%;
  align-content: center;
  justify-content: center;
}

.course-grid--count-1 {
  grid-template-columns: minmax(0, 390px);
  max-width: 390px;
}

.course-grid--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(820px, 100%);
}

.course-grid--count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-grid--count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(820px, 100%);
}

.course-grid--count-5 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 100%;
}

.course-grid--count-5 .course-pick-card:nth-child(1) {
  grid-column: 1 / 3;
}

.course-grid--count-5 .course-pick-card:nth-child(2) {
  grid-column: 3 / 5;
}

.course-grid--count-5 .course-pick-card:nth-child(3) {
  grid-column: 5 / 7;
}

.course-grid--count-5 .course-pick-card:nth-child(4) {
  grid-column: 2 / 4;
}

.course-grid--count-5 .course-pick-card:nth-child(5) {
  grid-column: 4 / 6;
}

.course-grid--count-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-grid--count-many {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-pick-card {
  position: relative;
  padding: 10px;
  border-radius: 33px;
  background: linear-gradient(135deg, #d184ff 0%, #ff91c7 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 14px 30px rgba(209, 132, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: course-card-pop 0.45s ease backwards;
  animation-delay: calc(var(--card-i, 0) * 0.07s);
}

.course-quest-badge {
  display: none;
}

.course-xp-badge {
  display: none;
}

.course-pick-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 18px 34px rgba(209, 132, 255, 0.3);
}

.course-pick-card.active {
  background: linear-gradient(135deg, #c06fff 0%, #ff8dbd 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 18px 34px rgba(255, 141, 189, 0.34);
}

.course-pick-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 24px;
  background: #fff;
  overflow: visible;
  padding: 20px 18px 26px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 4px 8px rgba(52, 67, 86, 0.08);
}

.course-pick-thumb {
  width: 100%;
  aspect-ratio: 1.98 / 1;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border-radius: 18px;
}

.course-pick-thumb--empty {
  background: linear-gradient(145deg, #e8ecf4 0%, #d5dce8 100%);
  border-radius: 18px;
}

.course-pick-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 0 0;
  text-align: center;
  flex: 1;
}

.course-pick-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 900;
  color: #ffad3d;
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.course-pick-desc {
  margin: 0;
  max-width: 300px;
  font-size: clamp(0.82rem, 1.15vw, 0.98rem);
  font-weight: 700;
  line-height: 1.45;
  color: #344356;
  flex: 1;
}

.course-pick-level {
  margin: 0;
  font-size: clamp(0.78rem, 1.08vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #344356;
}

.course-pick-stars {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1;
  color: #feca57;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 2px rgba(255, 159, 67, 0.35);
}

.course-pick-stars-more {
  font-size: 0.68rem;
  font-weight: 900;
  color: #8b4fa8;
  margin-left: 0.15rem;
}

.course-pick-select {
  width: 100%;
  min-width: 0;
  margin-top: 0.15rem;
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 19px;
  background: linear-gradient(180deg, #ffb347 0%, #ff9f43 100%);
  color: #fff;
  font-family: inherit;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 2px 0 rgba(180, 101, 28, 0.38);
  cursor: pointer;
  box-shadow:
    inset 0 -2px 0 rgba(255, 255, 255, 0.35),
    0 5px 0 #c87528,
    0 7px 10px rgba(52, 67, 86, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.course-pick-select:hover {
  background: #ffa952;
  transform: translateY(-1px);
}

.course-pick-select:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    0 2px 0 #c87528,
    0 3px 6px rgba(52, 67, 86, 0.22);
}

.course-pick-card.active .course-pick-select {
  background: linear-gradient(180deg, #ffb347 0%, #ff9f43 100%);
  color: #fff;
  box-shadow:
    inset 0 -2px 0 rgba(255, 255, 255, 0.35),
    0 5px 0 #c87528,
    0 7px 10px rgba(52, 67, 86, 0.28);
}

.course-pick-card--empty {
  opacity: 0.92;
}

.course-pick-select--disabled {
  cursor: not-allowed;
  opacity: 0.75;
  background: linear-gradient(180deg, #d5dce8 0%, #b8c2d4 100%);
  color: #5a6578;
  box-shadow:
    0 3px 0 #9aa5b8,
    0 4px 10px rgba(90, 101, 120, 0.2);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.course-pick-select--disabled:hover,
.course-pick-select--disabled:active {
  transform: none;
  box-shadow:
    0 3px 0 #9aa5b8,
    0 4px 10px rgba(90, 101, 120, 0.2);
}

.course-status,
.course-error {
  flex-shrink: 0;
  margin: 0;
  text-align: center;
  font-weight: 800;
  min-height: 1.25rem;
}

.course-status {
  color: #6b7280;
}

.course-error {
  color: #c0392b;
}

@media (max-width: 720px) {
  .course-page {
    padding: 0.5rem;
  }

  .course-panel {
    width: 70vw;
    height: 70vh;
    max-width: 70vw;
    max-height: 70vh;
    padding: 1rem;
  }

  .course-grid--count-3,
  .course-grid--count-6,
  .course-grid--count-many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-grid--count-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-grid--count-5 .course-pick-card:nth-child(n) {
    grid-column: auto;
  }

  .course-grid--count-1 {
    max-width: min(350px, 100%);
  }

  .course-grid--count-2,
  .course-grid--count-4 {
    max-width: 100%;
  }

  .course-decor--star {
    right: 4%;
    top: 10%;
  }

  .course-toolbar {
    padding: 0.85rem 1rem max(0.85rem, env(safe-area-inset-bottom));
  }

  .class-container {
    padding: 1rem;
  }

  .class-screen .class-container {
    padding: 1.5rem 1rem 5.5rem;
  }

  .class-screen .class-login-btn {
    left: 1rem;
    bottom: 1rem;
    padding: 0.75rem 1.15rem 1.1rem;
    font-size: 1.25rem;
  }

  .class-screen .class-login-btn .class-back-icon {
    width: 28px;
    height: 28px;
  }

  .class-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .class-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .class-card {
    min-height: 112px;
    padding: 1rem;
  }
}

.exercise-video {
  display: block;
  width: 100%;
  max-width: 960px;
  margin: 1rem auto;
  border-radius: 12px;
  background: #000;
}

.buzzin-questions {
  max-width: 640px;
  margin: 1rem auto;
  padding-left: 1.5rem;
  line-height: 1.6;
}

.buzzin-topic {
  max-width: 640px;
  margin: 0 auto 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.buzzin-questions li + li {
  margin-top: 0.75rem;
}

.buzzin-play-area {
  max-width: 420px;
  margin: 1.25rem auto 1.5rem;
  text-align: center;
}

.buzzin-status {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.buzzin-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 1.35rem 1.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5a72 0%, var(--accent) 55%, #c72f48 100%);
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.buzzin-btn:not(:disabled):hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(233, 69, 96, 0.55);
}

.buzzin-btn:not(:disabled):active {
  transform: scale(0.97);
}

.buzzin-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.buzzin-result {
  margin-top: 1rem;
  font-weight: 800;
  font-size: 1.1rem;
}

.buzzin-result--selected {
  color: var(--green);
}

.buzzin-result--late {
  color: var(--muted);
}

.buzzin-join-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(233, 69, 96, 0.12);
  border: 2px solid rgba(233, 69, 96, 0.35);
}

.buzzin-join-timer-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.buzzin-join-timer-value {
  min-width: 2.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
}

.host-buzzin-timer {
  margin-top: 0.75rem;
}

.buzzin-turn-area {
  margin-top: 1.25rem;
  text-align: left;
}

.buzzin-turn-status {
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
}

.buzzin-record-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.buzzin-record-btn {
  min-width: 10rem;
}

.buzzin-record-btn.is-recording {
  background: rgba(231, 76, 60, 0.18);
  border-color: rgba(231, 76, 60, 0.55);
  color: #ff8a80;
}

.buzzin-record-status {
  font-size: 0.95rem;
  color: var(--muted);
}

.buzzin-answer-input {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.buzzin-submitted {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(46, 204, 113, 0.12);
  border: 2px solid rgba(46, 204, 113, 0.35);
  text-align: left;
  line-height: 1.5;
}

.buzzin-retry-choice {
  margin-top: 0.85rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.28);
  text-align: center;
}

.buzzin-retry-choice__message {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.buzzin-retry-choice__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.buzzin-retry-skip-btn {
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.buzzin-retry-skip-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
}

.buzzin-retry-skip-btn:disabled,
.buzzin-retry-choice .buzzin-record-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.join-page #screen-room-buzzin.buzzin-interaction-screen {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  font-family: "Nunito", sans-serif;
}

.join-page #app:has(#screen-room-buzzin.active) {
  max-width: none;
  margin: 0;
  padding: 0;
}

.join-page #screen-room-buzzin.buzzin-interaction-screen.active {
  display: block;
}

.join-page .buzzin-interaction-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 80px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.join-page .buzzin-interaction-header {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-page .buzzin-interaction-title,
.join-page .buzzin-card-title h2 {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.9px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  -webkit-text-stroke: 4px #d17bea;
  paint-order: stroke fill;
  overflow-wrap: anywhere;
}

.join-page .buzzin-interaction-main {
  width: 100%;
  min-height: 0;
  flex: 1 0 0;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-page #screen-room-buzzin .buzzin-play-area {
  width: min(100%, 700px);
  max-width: none;
  min-height: 236px;
  margin: 0;
  padding: 40px;
  border: 10px solid rgba(162, 89, 255, 0.6);
  border-radius: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 2px 4px 30px #ffb1ed;
  backdrop-filter: blur(100px);
  text-align: center;
}

.join-page #screen-room-buzzin .buzzin-card-title {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.join-page #screen-room-buzzin .buzzin-topic {
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  background-image: linear-gradient(105deg, #743c9b 2.8%, #b11980 89%);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.join-page #screen-room-buzzin .buzzin-topic:empty {
  display: none;
}

.join-page #screen-room-buzzin .buzzin-status,
.join-page #screen-room-buzzin .buzzin-turn-status {
  max-width: 100%;
  margin: 0;
  color: #b11980;
  font-size: 18px;
  font-weight: 900;
  line-height: normal;
  text-align: center;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.join-page #screen-room-buzzin .buzzin-play-area:has(.buzzin-turn-area:not([hidden])) .buzzin-status {
  display: none;
}

.join-page #screen-room-buzzin .buzzin-btn,
.join-page #screen-room-buzzin .buzzin-record-btn {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 60px;
  margin: 0;
  padding: 12px 18px 20px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  line-height: 28px;
  letter-spacing: 0.48px;
  text-transform: capitalize;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.1),
    0 10px 0 rgba(0, 0, 0, 0.2),
    0 4px 1px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.join-page #screen-room-buzzin .buzzin-btn:not(:disabled):hover,
.join-page #screen-room-buzzin .buzzin-record-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.1),
    0 12px 0 rgba(0, 0, 0, 0.2),
    0 7px 12px rgba(0, 0, 0, 0.22);
}

.join-page #screen-room-buzzin .buzzin-btn:not(:disabled):active,
.join-page #screen-room-buzzin .buzzin-record-btn:not(:disabled):active,
.join-page #screen-room-buzzin .buzzin-record-btn.is-recording {
  transform: translateY(6px);
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.1),
    0 4px 0 rgba(0, 0, 0, 0.2),
    0 2px 1px rgba(0, 0, 0, 0.2);
}

.join-page #screen-room-buzzin .buzzin-btn:disabled,
.join-page #screen-room-buzzin .buzzin-record-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.join-page #screen-room-buzzin .buzzin-join-timer {
  min-width: 168px;
  min-height: 60px;
  margin: 0;
  padding: 10px 22px 14px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.1),
    0 8px 0 rgba(0, 0, 0, 0.18);
}

.join-page #screen-room-buzzin .buzzin-join-timer-label {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.36px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  text-transform: capitalize;
}

.join-page #screen-room-buzzin .buzzin-join-timer-value {
  min-width: auto;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.join-page #screen-room-buzzin .buzzin-result,
.join-page #screen-room-buzzin .buzzin-record-status,
.join-page #screen-room-buzzin .buzzin-submitted {
  max-width: 100%;
  margin: 0;
  color: #743c9b;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.join-page #screen-room-buzzin .buzzin-result--selected {
  color: #26890c;
}

.join-page #screen-room-buzzin .buzzin-result--late {
  color: #743c9b;
}

.join-page #screen-room-buzzin .buzzin-turn-area {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.join-page #screen-room-buzzin .buzzin-answer-prompt {
  width: min(100%, 560px);
  padding: 18px 22px 20px;
  border: 4px solid rgba(252, 125, 186, 0.85);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 244, 252, 0.98) 100%);
  box-shadow: 0 10px 28px rgba(177, 25, 128, 0.16);
  text-align: left;
}

.join-page #screen-room-buzzin .buzzin-answer-prompt__label {
  margin: 0 0 10px;
  color: #a855f7;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.join-page #screen-room-buzzin .buzzin-answer-prompt__question {
  margin: 0 0 10px;
  color: #344356;
  font-family: "HK Grotesk", "Nunito", sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

.join-page #screen-room-buzzin .buzzin-answer-prompt__lead {
  display: block;
  margin-bottom: 4px;
  color: #7c3aed;
  font-size: 15px;
  font-weight: 800;
}

.join-page #screen-room-buzzin .buzzin-answer-prompt__name {
  margin: 0 0 12px;
  color: #111827;
  font-family: "Nunito", sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.join-page #screen-room-buzzin .buzzin-answer-prompt__steps {
  margin: 0;
  padding-left: 22px;
  color: #344356;
  font-family: "HK Grotesk", "Nunito", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

.join-page #screen-room-buzzin .buzzin-answer-prompt__steps strong {
  color: #db2777;
  font-weight: 800;
}

.join-page #screen-room-buzzin.has-answer-prompt .buzzin-record-btn {
  animation: buzzinRecordPromptPulse 1.15s ease-in-out infinite;
  box-shadow:
    0 0 0 4px rgba(252, 125, 186, 0.28),
    0 10px 0 rgba(0, 0, 0, 0.18);
}

@keyframes buzzinRecordPromptPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .join-page #screen-room-buzzin.has-answer-prompt .buzzin-record-btn {
    animation: none;
  }
}

.join-page #screen-room-buzzin.is-recording .buzzin-answer-prompt {
  display: none !important;
}

.join-page #screen-room-buzzin .buzzin-watching-prompt {
  width: min(100%, 560px);
  padding: 18px 22px 20px;
  border: 4px solid rgba(162, 89, 255, 0.45);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 240, 255, 0.96) 100%);
  box-shadow: 0 10px 28px rgba(109, 40, 184, 0.12);
  text-align: left;
}

.join-page #screen-room-buzzin .buzzin-watching-prompt__label {
  margin: 0 0 10px;
  color: #7c3aed;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.join-page #screen-room-buzzin .buzzin-watching-prompt__question {
  margin: 0 0 10px;
  color: #344356;
  font-family: "HK Grotesk", "Nunito", sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

.join-page #screen-room-buzzin .buzzin-watching-prompt__lead {
  display: block;
  margin-bottom: 4px;
  color: #7c3aed;
  font-size: 15px;
  font-weight: 800;
}

.join-page #screen-room-buzzin .buzzin-watching-prompt__name {
  margin: 0 0 10px;
  color: #111827;
  font-family: "Nunito", sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.join-page #screen-room-buzzin .buzzin-watching-prompt__hint {
  margin: 0;
  color: #5b6472;
  font-family: "HK Grotesk", "Nunito", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.join-page #screen-room-buzzin.has-watching-prompt .buzzin-btn,
.join-page #screen-room-buzzin.has-watching-prompt .buzzin-record-btn,
.join-page #screen-room-buzzin.has-watching-prompt .buzzin-turn-area {
  display: none !important;
}

.join-page #screen-room-buzzin .buzzin-record-controls {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.join-page #screen-room-buzzin.is-recording .buzzin-play-area {
  gap: 30px;
}

.join-page #screen-room-buzzin.is-recording .buzzin-card-title {
  gap: 0;
}

.join-page #screen-room-buzzin.is-recording .buzzin-topic,
.join-page #screen-room-buzzin.is-recording .buzzin-status,
.join-page #screen-room-buzzin.is-recording .buzzin-turn-status,
.join-page #screen-room-buzzin.is-recording .buzzin-result,
.join-page #screen-room-buzzin.is-recording .buzzin-record-status {
  display: none !important;
}

.join-page #screen-room-buzzin.is-missed .buzzin-play-area {
  width: min(100%, 700px);
  min-height: 430px;
  padding: 64px 52px;
  gap: 36px;
}

.join-page #screen-room-buzzin.is-missed .buzzin-card-title {
  gap: 28px;
}

.join-page #screen-room-buzzin.is-missed .buzzin-card-title h2 {
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0.9px;
  -webkit-text-stroke-width: 5px;
}

.join-page #screen-room-buzzin.is-missed .buzzin-status {
  display: block;
  max-width: 560px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.48px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  -webkit-text-stroke: 3px #d17bea;
  paint-order: stroke fill;
}

.join-page #screen-room-buzzin .buzzin-recording-panel {
  width: min(100%, 494px);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.join-page #screen-room-buzzin .buzzin-recording-waveform {
  width: min(100%, 353px);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.join-page #screen-room-buzzin .buzzin-recording-waveform span {
  width: 5px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c88bf1 0%, #f28cb2 100%);
  box-shadow: 0 0 8px rgba(255, 177, 237, 0.45);
  animation: buzzinWavePulse 0.88s ease-in-out infinite;
}

.join-page #screen-room-buzzin .buzzin-recording-waveform span:nth-child(3n + 1) {
  height: 26px;
  animation-delay: -0.46s;
}

.join-page #screen-room-buzzin .buzzin-recording-waveform span:nth-child(3n + 2) {
  height: 34px;
  animation-delay: -0.22s;
}

.join-page #screen-room-buzzin .buzzin-recording-waveform span:nth-child(5n) {
  height: 42px;
  animation-delay: -0.68s;
}

.join-page #screen-room-buzzin .buzzin-recording-time {
  flex: 0 0 auto;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.9px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  -webkit-text-stroke: 3px #d17bea;
  paint-order: stroke fill;
  white-space: nowrap;
}

@keyframes buzzinWavePulse {
  0%,
  100% {
    transform: scaleY(0.58);
    opacity: 0.76;
  }

  50% {
    transform: scaleY(1.18);
    opacity: 1;
  }
}

.join-page #screen-room-buzzin .buzzin-submitted {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(38, 137, 12, 0.2);
  border-radius: 24px;
  background: rgba(38, 137, 12, 0.08);
}

.join-page #screen-room-buzzin [hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .join-page .buzzin-interaction-stage {
    width: 100%;
    padding: 54px 16px 10px;
    gap: 28px;
  }

  .join-page .buzzin-interaction-title,
  .join-page .buzzin-card-title h2 {
    font-size: 28px;
    -webkit-text-stroke-width: 3px;
  }

  .join-page #screen-room-buzzin .buzzin-play-area {
    width: calc(100vw - 32px);
    padding: 28px 22px 34px;
    border-width: 7px;
    border-radius: 46px;
    gap: 24px;
  }

  .join-page #screen-room-buzzin .buzzin-topic,
  .join-page #screen-room-buzzin .buzzin-status,
  .join-page #screen-room-buzzin .buzzin-turn-status {
    font-size: 16px;
  }

  .join-page #screen-room-buzzin .buzzin-btn,
  .join-page #screen-room-buzzin .buzzin-record-btn {
    width: min(100%, calc(100vw - 88px));
    min-height: 56px;
    font-size: 22px;
    line-height: 26px;
  }

  .join-page #screen-room-buzzin .buzzin-join-timer {
    max-width: 100%;
  }

  .join-page #screen-room-buzzin.is-missed .buzzin-play-area {
    min-height: 360px;
    padding: 48px 28px;
    gap: 28px;
  }

  .join-page #screen-room-buzzin.is-missed .buzzin-card-title h2 {
    font-size: 40px;
    -webkit-text-stroke-width: 4px;
  }

  .join-page #screen-room-buzzin.is-missed .buzzin-status {
    font-size: 24px;
    line-height: 1.18;
    -webkit-text-stroke-width: 2px;
  }

  .join-page #screen-room-buzzin .buzzin-recording-panel {
    width: 100%;
    gap: 14px;
  }

  .join-page #screen-room-buzzin .buzzin-recording-waveform {
    flex: 1 1 auto;
    min-width: 0;
    gap: 3px;
  }

  .join-page #screen-room-buzzin .buzzin-recording-waveform span {
    width: 4px;
  }

  .join-page #screen-room-buzzin .buzzin-recording-time {
    font-size: 24px;
    -webkit-text-stroke-width: 2px;
  }
}

.buzzin-turn-panel {
  max-width: 640px;
  margin: 0 auto 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.buzzin-responses {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.buzzin-responses li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0;
}

.buzzin-responses li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.buzzin-response-body {
  flex: 1;
  text-align: left;
}

.buzzin-response-body p {
  margin: 0.35rem 0 0;
  line-height: 1.5;
}

.buzzin-response-pending {
  color: var(--accent);
  font-style: italic;
}

.buzzin-analysis {
  margin: 0.65rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.25);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: left;
}

.buzzin-analysis-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c084fc;
}

.buzzin-analysis--pending {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-style: italic;
}

.buzzin-analysis--error {
  background: rgba(233, 69, 96, 0.1);
  border-color: rgba(233, 69, 96, 0.25);
  color: #ffb4c0;
}

.buzzin-analysis-play {
  display: inline-flex;
  margin-top: 0.55rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

.buzzin-score-pies {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.buzzin-score-pie {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.buzzin-score-pie__chart {
  position: relative;
  width: 72px;
  height: 72px;
}

.buzzin-score-pie__ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--pie-color) calc(var(--score) * 1%), #e7edf6 0);
  -webkit-mask: radial-gradient(farthest-side, transparent 63%, #000 64%);
  mask: radial-gradient(farthest-side, transparent 63%, #000 64%);
}

.buzzin-score-pie__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  color: #344356;
}

.buzzin-score-pie__label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #5b6475;
}

.buzzin-winners-panel {
  max-width: 640px;
  margin: 1rem auto 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: 16px;
  border: 2px solid var(--accent2);
}

.buzzin-winners {
  list-style: none;
  padding: 0;
  margin: 0;
}

.buzzin-winners li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  font-weight: 800;
  font-size: 1.05rem;
}

.buzzin-winners li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.buzzin-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.buzzin-winners li.hint {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— CMS light theme —— */

body.cms-light {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --accent: #c9841a;
  --accent-soft: rgba(201, 132, 26, 0.16);
  --accent2: #111111;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text: #000000;
  --muted: #525252;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --cms-topbar-h: 72px;
  --cms-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --transition-purple: #743c9b;
  --transition-lavender: #c398fb;
  --transition-pink: #e4a0ce;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  background-image: none;
}

body.cms-light::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.cms-light h1,
body.cms-light h2,
body.cms-light .cms-brand-product,
body.cms-light .cms-course-card-title,
body.cms-light .cms-subview-title {
  font-family: "DM Sans", "Nunito", sans-serif;
}

body.cms-light .btn {
  border-radius: 999px;
  transition:
    background 0.35s var(--cms-ease),
    transform 0.28s var(--cms-ease),
    box-shadow 0.35s var(--cms-ease),
    color 0.2s ease;
}

body.cms-light .btn:active:not(:disabled) {
  transform: scale(0.98);
}

body.cms-light .btn.primary {
  box-shadow: 0 10px 28px rgba(233, 69, 96, 0.26);
}

body.cms-light .btn.primary:hover:not(:disabled) {
  filter: none;
  transform: translateY(-1px);
}

body.cms-light .cms-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: auto;
  padding: 0.78rem 0.7rem 0.78rem 1.2rem;
}

body.cms-light .cms-panel-login .cms-cta,
body.cms-light #btn-save-sections,
body.cms-light #btn-save-exercises {
  width: 100%;
}

body.cms-light .cms-btn-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.35s var(--cms-ease);
}

body.cms-light .cms-cta:hover:not(:disabled) .cms-btn-glyph {
  transform: translateX(2px);
}

body.cms-light .btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

body.cms-light .btn.secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

body.cms-light .back-btn {
  color: var(--muted);
  font-weight: 800;
  border: none;
  background: transparent;
  padding: 0.35rem 0;
  margin-bottom: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

body.cms-light .back-btn:hover {
  color: var(--accent);
}

body.cms-light .back-btn::before {
  content: "← ";
}

body.cms-light .error {
  color: #ff8a9b;
}

body.cms-light .hint,
body.cms-light .status-msg {
  color: var(--muted);
}

body.cms-light .cms-panel,
body.cms-light .cms-section-card,
body.cms-light .cms-exercise-card,
body.cms-light .cms-exercise-section-group,
body.cms-light .cms-edit-surface {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

body.cms-light .cms-class-picker {
  border-color: var(--border);
  background: var(--surface-2);
}

body.cms-light .cms-class-option:hover {
  background: var(--wash);
}

body.cms-light .cms-icon-btn {
  background: var(--wash);
  color: var(--text);
}

body.cms-light .cms-icon-btn:hover {
  background: var(--accent);
  color: #fff;
}

body.cms-light .field input,
body.cms-light .field select,
body.cms-light .field textarea,
body.cms-light .cms-section-title,
body.cms-light .cms-exercise-title,
body.cms-light .cms-exercise-order,
body.cms-light .cms-exercise-type-select,
body.cms-light .cms-exercise-section-select,
body.cms-light .cms-q-text,
body.cms-light .cms-video-url,
body.cms-light .cms-buzzin-topic,
body.cms-light .cms-opt-text,
body.cms-light .cms-section-order,
body.cms-light .cms-exercise-add select,
body.cms-light .cms-section-add select {
  border-color: var(--border-strong);
  background: var(--surface-2);
  border-width: 1px;
  box-shadow: none;
}

body.cms-light .field input:focus,
body.cms-light .field select:focus,
body.cms-light .field textarea:focus,
body.cms-light .cms-section-title:focus,
body.cms-light .cms-exercise-title:focus,
body.cms-light .cms-q-text:focus,
body.cms-light .cms-video-url:focus,
body.cms-light .cms-buzzin-topic:focus,
body.cms-light .cms-opt-text:focus,
body.cms-light .cms-exercise-add select:focus,
body.cms-light .cms-exercise-type-select:focus,
body.cms-light .cms-section-order:focus,
body.cms-light .cms-exercise-order:focus {
  background: var(--surface);
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

body.cms-light .cms-question-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
}

body.cms-light .cms-tab {
  border-color: transparent;
  background: transparent;
}

body.cms-light .cms-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

body.cms-light .cms-course-card-thumb,
body.cms-light .cms-thumbnail-preview img,
body.cms-light .cms-q-image-preview img {
  background: var(--bg);
  border-color: var(--border);
}

body.cms-light .cms-course-card-thumb--empty {
  border-color: var(--border-strong);
  background:
    linear-gradient(135deg, #1c2a4a 0%, #0f3460 100%);
}

body.cms-light .cms-section-thumbnail {
  border-bottom-color: var(--border);
}

body.cms-light .cms-danger {
  background: rgba(233, 69, 96, 0.18) !important;
  color: #ffb4c0 !important;
  box-shadow: none !important;
}

body.cms-light .cms-danger:hover:not(:disabled) {
  background: rgba(233, 69, 96, 0.3) !important;
}

.config-panel {
  max-width: none;
}

.config-page-header .hint {
  max-width: 72ch;
}

.config-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  position: sticky;
  top: 0.65rem;
  z-index: 35;
  padding: 0.35rem 0 0.65rem;
}

.config-section-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-family: "Nunito", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.config-section-tab:hover {
  background: rgba(255, 255, 255, 0.24);
}

.config-section-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.28);
}

.config-section-panel {
  display: none;
}

.config-section-panel.is-active {
  display: block;
}

.config-panel-intro {
  margin: 0 0 1.1rem;
  max-width: 72ch;
}

.config-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 1.35rem 1.75rem;
  align-items: start;
}

.config-split-compact {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
}

.config-split-main {
  min-width: 0;
}

.config-split-side {
  position: sticky;
  top: 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.config-block + .config-block {
  margin-top: 1.1rem;
}

.config-block-title {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.config-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.config-field-grid .field-span-2 {
  grid-column: 1 / -1;
}

.config-field-meta {
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

.config-meta-compact {
  margin: 0;
  padding: 0.75rem 0.85rem;
  font-size: 0.88rem;
}

.config-meta-compact p {
  margin: 0.25rem 0;
}

.config-actions-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.config-actions-stack .btn {
  width: 100%;
  justify-content: center;
}

.config-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  margin-top: 1rem;
}

.config-actions-bar .btn {
  width: auto;
  flex: 0 1 auto;
}

.config-meta-inline {
  margin-bottom: 0.25rem;
}

.config-meta {
  margin: 1rem 0 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

.config-meta p {
  margin: 0.35rem 0;
}

.config-preview-wide {
  margin: 1.15rem 0 0;
}

.config-preview-wide .config-preview-json {
  white-space: pre;
  word-break: normal;
  min-height: 6rem;
  max-height: min(420px, 50vh);
  overflow: auto;
}

.config-preview {
  margin-bottom: 1.25rem;
}

.config-preview .field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.config-preview-json {
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: #1e2430;
  color: #e8edf4;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.config-section-spaced {
  margin-top: 1.5rem;
}

.config-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.config-inworld-test-preview {
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .config-field-grid {
    gap: 1rem 1.5rem;
  }

  .config-meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 2rem;
  }

  .config-meta-inline p {
    margin: 0;
  }
}

@media (max-width: 860px) {
  #app.cms-app.config-app {
    max-width: none;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .config-split,
  .config-split-compact {
    grid-template-columns: 1fr;
  }

  .config-split-side {
    position: static;
  }

  .config-field-grid {
    grid-template-columns: 1fr;
  }

  .config-field-grid .field-span-2 {
    grid-column: auto;
  }

  .config-actions-bar .btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 9rem;
  }
}

.cms-host-link {
  margin-left: 0;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.class-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.class-logout-btn {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  white-space: nowrap;
}

.class-logout-btn:hover {
  background: rgba(0, 0, 0, 0.4);
}

.class-header > .class-logout-btn {
  margin-left: auto;
}

.cms-host-link:hover {
  background: rgba(255, 255, 255, 0.35);
}

#app.cms-app {
  max-width: 1140px;
  padding-top: 0.35rem;
  position: relative;
  z-index: 2;
}

#app.cms-app.config-app {
  max-width: min(1360px, calc(100vw - 2.5rem));
}

body.cms-light .cms-app {
  padding-bottom: 4.5rem;
}

.cms-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  margin: 0 0 2.4rem;
  padding: 0.9rem 0 0.2rem;
  background: transparent;
  border: none;
  min-height: 0;
}

.cms-island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 58px;
  padding: 0.45rem 0.55rem 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(116, 60, 155, 0.08) inset,
    0 14px 34px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  flex-wrap: nowrap;
}

.cms-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.cms-brand-logo {
  display: block;
  width: auto;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

html[data-cms-theme="light"] .cms-brand-logo,
body.cms-light .cms-brand-logo {
  mix-blend-mode: screen;
}

body.cms-light:has(#screen-cms-login.active) .cms-brand-logo,
body.cms-light:has(#screen-config-login.active) .cms-brand-logo {
  mix-blend-mode: normal;
}

.cms-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: "DM Sans", "Nunito", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.cms-brand-sep {
  width: 1px;
  height: 1rem;
  background: var(--border-strong);
  flex-shrink: 0;
}

.cms-brand-product {
  white-space: nowrap;
}

.cms-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.cms-nav-group {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.cms-nav-main {
  margin-right: 0.15rem;
}

.cms-nav-tools {
  padding-right: 0.15rem;
}

.cms-nav-account {
  padding-left: 0.65rem;
  margin-left: 0.15rem;
  border-left: 1px solid var(--border);
}

.cms-nav-more {
  position: relative;
}

.cms-nav-more-trigger {
  list-style: none;
  cursor: pointer;
}

.cms-nav-more-trigger::-webkit-details-marker {
  display: none;
}

.cms-nav-more-trigger::after {
  content: "▾";
  margin-left: 0.15em;
  font-size: 0.72em;
  opacity: 0.65;
}

.cms-nav-more-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 11.5rem;
  padding: 0.35rem;
  border-radius: 14px;
  background: var(--paper, #fff);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.cms-nav-more:not([open]) .cms-nav-more-menu {
  display: none;
}

.cms-nav-more-menu .cms-link {
  display: block;
  width: 100%;
  text-align: left;
}

.cms-link {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.84rem;
  padding: 0.38rem 0.58rem;
  border-radius: 999px;
  transition: color 0.2s var(--cms-ease), background 0.2s var(--cms-ease);
  white-space: nowrap;
}

.cms-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.cms-teacher {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
  padding-right: 0.25rem;
  white-space: nowrap;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cms-logout {
  width: auto !important;
  margin-top: 0 !important;
  padding: 0.45rem 0.95rem !important;
  font-size: 0.86rem !important;
}

.cms-login-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  min-height: min(58dvh, 540px);
}

.cms-login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.cms-login-stage::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(26, 26, 46, 0.62) 0%, rgba(26, 26, 46, 0.22) 58%, rgba(15, 52, 96, 0.28) 100%);
}

body.cms-light:has(#screen-cms-login.active) .cms-topbar,
body.cms-light:has(#screen-config-login.active) .cms-topbar,
.cms-login-stage > *:not(.cms-login-bg) {
  position: relative;
  z-index: 2;
}

.cms-login-copy {
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.cms-login-copy h1 {
  margin: 0.2rem 0 0.7rem;
  max-width: 11ch;
  font-size: clamp(2.4rem, 5.4vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
  text-wrap: balance;
}

.cms-login-copy .hint {
  margin: 0;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.cms-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.7rem 1.6rem 1.8rem;
  max-width: 420px;
  margin: 2rem auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.28);
}

.config-app .cms-panel.config-panel {
  max-width: none;
  width: 100%;
  margin: 0;
}

.cms-login-stage .cms-panel {
  margin: 0;
}

.cms-panel-login {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  padding: 5.4rem 1.7rem 1.6rem;
  border-radius: 32px;
  border: 10px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    155deg,
    rgba(162, 89, 255, 0.6) 0%,
    rgba(255, 107, 107, 0.6) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

.cms-login-logo {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  width: 150px;
  transform: translate(-50%, -48%);
  pointer-events: none;
}

.cms-login-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.cms-panel-login h2 {
  margin: 0 0 1.1rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cms-panel-login .field span {
  color: rgba(255, 255, 255, 0.88);
}

.cms-panel-login .field input {
  background: #fff;
  color: #333;
  border: none;
  border-radius: 22px;
  padding: 0.95rem 1.15rem;
}

.cms-panel-login .field input:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

.cms-panel-login .cms-cta {
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  color: #fff;
  box-shadow:
    0 8px 0 rgba(0, 0, 0, 0.2),
    inset 0 -2px 2px rgba(0, 0, 0, 0.1);
}

.cms-panel-login .cms-cta:hover:not(:disabled) {
  filter: brightness(1.04);
}

.cms-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.cms-login-copy .cms-kicker {
  color: #ffd36a;
}

.cms-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.85rem;
  flex-wrap: wrap;
}

.cms-header h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2.1rem, 3.4vw, 2.85rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cms-header .hint {
  margin: 0;
  max-width: 42ch;
}

.cms-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cms-header-actions .btn {
  width: auto;
  min-width: 0;
  margin-top: 0;
  padding: 0.7rem 1.05rem;
  font-size: 0.95rem;
}

.cms-new-btn {
  width: auto !important;
  margin-top: 0 !important;
  white-space: nowrap;
}

.cms-course-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 820px) {
  .cms-login-stage {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }

  .cms-course-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 1.1rem;
  }
}

.cms-course-card {
  --spot-x: 50%;
  --spot-y: 40%;
  position: relative;
  isolation: isolate;
  display: block;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.cms-course-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--spot-x) var(--spot-y),
    rgba(233, 69, 96, 0.32),
    transparent 58%
  );
  transition: opacity 0.35s var(--cms-ease);
}

.cms-course-card:hover::after,
.cms-course-card.is-hot::after {
  opacity: 1;
}

.cms-course-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.05rem;
  width: 100%;
  min-height: 112px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 33, 62, 0.96), rgba(15, 52, 96, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cms-course-card-media {
  flex-shrink: 0;
  overflow: hidden;
  width: 92px;
  height: 92px;
  border-radius: 16px;
}

.cms-course-card-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg);
}

.cms-course-card-thumb--empty {
  border: 1px dashed var(--border-strong);
  background:
    linear-gradient(145deg, #24345c 0%, #0f3460 100%);
}

.cms-course-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.32rem;
  min-width: 0;
  padding: 0.1rem 0;
}

.cms-course-card--featured {
  grid-column: 1 / -1;
}

.cms-course-card--featured .cms-course-card-inner {
  min-height: 168px;
  padding: 1.15rem 1.2rem;
}

.cms-course-card--featured .cms-course-card-media {
  width: 210px;
  height: 140px;
}

.cms-course-card--featured .cms-course-card-title {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
}

html.lango-gsap-ready body.cms-light .cms-course-card:hover,
html.lango-gsap-ready body.cms-light .cms-course-card:active {
  transform: none;
}

body.cms-light .cms-course-card:hover {
  border-color: rgba(233, 69, 96, 0.45);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.cms-course-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cms-course-card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cms-course-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cms-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 3rem 2rem;
  border: 1px dashed var(--border-strong);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--text);
}

.cms-empty-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cms-empty-copy {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.cms-empty .btn {
  width: auto;
  margin-top: 0.5rem;
}

.cms-list-loading {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.85rem;
}

.cms-skeleton-card {
  height: 108px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #16213e 0%, #24345c 45%, #16213e 100%);
  background-size: 200% 100%;
  animation: cmsShimmer 1.2s ease-in-out infinite;
  border: 1px solid var(--border);
}

@keyframes cmsShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cms-skeleton-card {
    animation: none;
  }
}

.cms-thumbnail-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cms-thumbnail-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cms-thumbnail-preview img {
  width: 160px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg);
}

.cms-thumbnail-upload {
  width: fit-content;
  cursor: pointer;
}

.cms-thumbnail-hint {
  margin: 0;
}

.cms-edit-chrome {
  margin-bottom: 1.4rem;
}

.cms-edit-chrome h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cms-edit-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 1.5rem 1.5rem 1.65rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 44px rgba(0, 0, 0, 0.22);
}

.cms-tabs {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cms-tab {
  padding: 0.55rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.cms-tab.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.cms-tab-panel {
  display: none;
}

.cms-tab-panel.active {
  display: block;
}

.cms-class-hint {
  margin: 0.25rem 0 0.75rem;
}

.cms-class-picker {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.cms-class-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cms-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}

.cms-class-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.cms-class-option:hover {
  background: rgba(26, 31, 46, 0.04);
}

.cms-class-option input {
  flex-shrink: 0;
}

.cms-actions-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.cms-actions-row .btn {
  width: auto;
  flex: 0 1 auto;
  min-width: 140px;
  margin-top: 0;
}

.cms-danger {
  background: #8b2635 !important;
}

.cms-exercise-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cms-exercise-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.cms-exercise-preview-all {
  margin-left: auto;
  white-space: nowrap;
}

.cms-exercise-add {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cms-exercise-add select {
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
}

.btn.small {
  width: auto !important;
  margin-top: 0 !important;
  padding: 0.55rem 1rem !important;
  font-size: 0.95rem !important;
}

.cms-exercise-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

.cms-exercise-section-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem 1.25rem 1.25rem;
}

.cms-exercise-section-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
}

.cms-section-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cms-section-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cms-section-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.cms-section-card.dragging-section {
  opacity: 0.55;
}

.cms-section-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cms-section-title {
  flex: 1;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  background: var(--bg);
  color: var(--text);
}

.cms-section-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.cms-section-footer .hint {
  margin: 0;
}

.cms-subview-title {
  margin: 0.5rem 0 1rem;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.cms-subview .back-btn {
  margin-bottom: 0.25rem;
}

.cms-section-exercises {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0;
}

.cms-section-exercises-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.cms-section-exercises-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.cms-section-exercises-toolbar .hint {
  margin: 0;
  font-weight: 800;
}

.cms-no-exercises-hint {
  margin: 0 0 0.5rem;
}

.cms-section-exercises-toolbar .cms-exercise-add select {
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
}

.cms-section-thumbnail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cms-section-thumbnail-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cms-section-banner-preview-btn {
  display: block;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  background:
    linear-gradient(180deg, #9fe7ff 0%, #d7f6ff 48%, #fff4c2 100%);
}

.cms-section-banner-preview-btn:hover {
  filter: brightness(1.04);
}

.cms-section-banner-preview-btn:focus-visible {
  outline: 3px solid #7c5cbf;
  outline-offset: 3px;
}

.cms-section-thumbnail-preview img {
  display: block;
  width: 168px;
  height: 168px;
  border-radius: 0;
  object-fit: contain;
  border: 0;
  background: transparent;
}

.cms-section-banner-status {
  width: 100%;
  margin: 0;
}

.cms-section-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.cms-section-add-bottom {
  margin-bottom: 1.25rem;
}

.cms-section-add select {
  font-family: inherit;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  background: var(--bg);
  color: var(--text);
}

.cms-exercise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.cms-exercise-card.dragging {
  opacity: 0.55;
}

.cms-exercise-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cms-exercise-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.cms-drag-handle {
  cursor: grab;
  color: var(--muted);
  font-weight: 900;
  user-select: none;
  padding: 0.25rem;
  border-radius: 6px;
}

.cms-drag-handle:hover {
  background: rgba(26, 31, 46, 0.05);
  color: var(--text);
}

.cms-exercise-title {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
}

.cms-icon-btn {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: var(--accent2);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.cms-icon-btn:hover {
  background: var(--accent);
  color: #fff;
}

.cms-icon-btn:active {
  transform: scale(0.95);
}

.cms-section-order-field {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.cms-section-order-field .cms-order-label {
  font-weight: 900;
  color: var(--muted);
}

.cms-section-order {
  width: 3.25rem;
  font-family: inherit;
  font-weight: 800;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.45rem 0.35rem;
  background: var(--bg);
  color: var(--text);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cms-exercise-order {
  width: 100%;
  font-family: inherit;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: var(--bg);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.cms-exercise-section-select,
.cms-exercise-type-select {
  width: 100%;
  font-family: inherit;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: var(--bg);
  color: var(--text);
}

.cms-exercise-type-select {
  cursor: pointer;
}

.cms-options-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.cms-options-head span:first-child {
  width: 1.1rem;
  flex-shrink: 0;
}

.cms-option-correct-label {
  width: 4.5rem;
  flex-shrink: 0;
  text-align: center;
}

.cms-exercise-fields {
  display: grid;
  grid-template-columns: 7rem minmax(9rem, 1fr) 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cms-field-inline {
  margin-bottom: 0 !important;
}

.cms-field-inline input {
  font-size: 0.95rem !important;
  padding: 0.55rem 0.75rem !important;
}

.cms-video-caption-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem 1rem;
  margin: 0.35rem 0 0.85rem;
}

.cms-video-caption-tools .cms-field-inline {
  min-width: 160px;
}

.cms-video-caption-tools .hint {
  flex: 1 1 100%;
  margin: 0;
}

.cms-caption-track-list {
  flex: 1 1 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 0.85rem;
}

.cms-question-block {
  background: var(--bg);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
}

.cms-question-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 800;
  color: var(--muted);
}

.cms-q-text,
.cms-video-url,
.cms-buzzin-topic {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cms-option-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.cms-q-image-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cms-q-image-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.cms-q-image-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cms-q-image-preview img {
  width: 160px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface);
}

.cms-add-option {
  margin-bottom: 0.5rem;
}

.cms-opt-text {
  flex: 1;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
}

@media (max-width: 720px) {
  .cms-topbar {
    margin: 0 0 1.5rem;
    padding-top: 0.4rem;
  }

  .cms-island {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    padding: 0.75rem 0.8rem;
    flex-wrap: wrap;
  }

  .cms-topbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .cms-nav-group {
    flex-wrap: wrap;
  }

  .cms-nav-account {
    padding-left: 0;
    margin-left: 0;
    border-left: none;
  }

  .cms-login-copy h1 {
    max-width: 14ch;
  }

  .cms-panel-login {
    justify-self: stretch;
    max-width: none;
  }

  .cms-course-card--featured .cms-course-card-media {
    width: 92px;
    height: 92px;
  }

  .cms-header {
    align-items: flex-start;
  }

  .cms-tabs {
    width: 100%;
  }

  .cms-tab {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .cms-exercise-fields {
    grid-template-columns: 1fr;
  }

  .cms-host-link {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .cms-course-card {
    gap: 0.85rem;
  }

  .cms-course-card-thumb {
    width: 68px;
    height: 68px;
  }
}

html.lango-gsap-ready body.cms-light .screen.active {
  animation: none;
}

html.lango-gsap-ready body.cms-light .cms-course-card {
  will-change: transform;
}

body.cms-light .cms-section-card,
body.cms-light .cms-exercise-card,
body.cms-light .cms-tab,
body.cms-light .cms-link {
  transition:
    transform 0.35s var(--cms-ease),
    box-shadow 0.35s var(--cms-ease),
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.2s ease;
}

body.cms-light .cms-tab.active {
  transition: background 0.28s var(--cms-ease), color 0.2s ease, box-shadow 0.28s var(--cms-ease);
}

@media (prefers-reduced-motion: reduce) {
  body.cms-light .cms-course-card,
  body.cms-light .cms-section-card,
  body.cms-light .cms-exercise-card,
  body.cms-light .cms-tab,
  body.cms-light .btn,
  body.cms-light .cms-link,
  body.cms-light .cms-btn-glyph {
    transition: none !important;
  }

  body.cms-light .cms-course-card:hover,
  body.cms-light .cms-course-card:active {
    transform: none;
  }

  body.cms-light .cms-skeleton-card {
    animation: none;
  }

  html.lango-gsap-ready body.cms-light .cms-course-card {
    will-change: auto;
  }
}

/* —— Host section journey (Figma: Continue journey) —— */

.section-screen {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

.section-scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.section-scene .course-toolbar,
.section-scene .course-page {
  position: relative;
  z-index: 2;
}

.section-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: blur(10px);
  -webkit-filter: blur(10px);
  transform: scale(1.08);
  transform-origin: center center;
}

.section-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-sizing: border-box;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: 40px;
  backdrop-filter: blur(100px);
  -webkit-backdrop-filter: blur(100px);
  background: rgba(255, 255, 255, 0.12);
}

.section-header-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

.section-back-btn {
  flex-shrink: 0;
}

.section-journey-title {
  font-size: clamp(1.35rem, 2.5vw + 0.5rem, 2.25rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.9px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
  min-width: 0;
}

.section-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.section-logout-btn {
  flex-shrink: 0;
}

.section-course-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding-left: 10px;
  padding-right: 4px;
  min-width: 0;
}

.section-profile-pic {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 12px rgba(108, 106, 171, 0.24);
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-profile-pic.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-course-name {
  font-family: "DM Sans", "Nunito", sans-serif;
  font-size: clamp(0.875rem, 2vw, 1.25rem);
  font-weight: 600;
  color: #344356;
  text-align: right;
  line-height: 1.2;
  max-width: min(160px, 40vw);
  word-break: break-word;
}

.section-step-badge {
  margin: 0;
  font-family: "DM Sans", "Nunito", sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  background: linear-gradient(-86deg, #743c9b 2.8%, #b11980 89%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(100px);
  -webkit-backdrop-filter: blur(100px);
  white-space: nowrap;
}

.section-exercise-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  box-sizing: border-box;
  pointer-events: none;
}

.section-exercise-overlay:not([hidden]) {
  pointer-events: auto;
}

.section-exercise-overlay[hidden] {
  display: none !important;
}

.section-exercise-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: section-backdrop-in 0.2s ease;
  pointer-events: auto;
}

.section-exercise-overlay.is-closing {
  pointer-events: none;
}

.section-exercise-overlay.is-closing .section-exercise-backdrop {
  animation: section-backdrop-out 0.26s ease forwards;
}

.section-exercise-overlay.is-closing .section-exercise-panel {
  animation: section-panel-slide-out 0.26s ease forwards;
}

.section-scene--exercises-open .course-page,
.section-scene--exercises-open .course-toolbar {
  pointer-events: none;
  user-select: none;
}

.section-exercise-panel {
  position: relative;
  z-index: 1;
  flex: 0 0 min(440px, 100%);
  width: min(440px, 100%);
  max-width: 100%;
  display: flex;
  align-items: stretch;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  padding-left: 0;
  box-sizing: border-box;
  animation: section-panel-slide-in 0.28s ease;
  pointer-events: auto;
}

.section-exercise-panel-card {
  width: 100%;
  max-height: none;
  height: 100%;
}

.section-exercise-panel .exercise-panel {
  width: 100%;
  max-height: none;
  height: 100%;
}

.section-exercise-panel .exercise-panel-inner {
  max-height: none;
  height: 100%;
}

@keyframes section-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes section-backdrop-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes section-panel-slide-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes section-panel-slide-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(28px);
  }
}

.section-marker--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.section-marker--disabled .section-marker-ring {
  background: rgba(255, 255, 255, 0.65);
}

.section-journey-stage {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(140px, 28vw, 280px);
  padding: 0.25rem 0 0.5rem;
  width: 100%;
}

.section-character {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(187px, 20vw, 28%);
  max-height: 85%;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
  pointer-events: none;
  z-index: 3;
}

.section-map-wrap {
  position: relative;
  width: 100%;
  max-width: 1138px;
  margin: 0 auto;
  z-index: 2;
  background: transparent;
  padding-left: clamp(0px, 12vw, 140px);
  padding-right: clamp(0px, 2vw, 24px);
  box-sizing: border-box;
}

.section-map {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  background: transparent;
}

.section-markers {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.section-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: clamp(36px, 4vw, 44px);
  height: clamp(36px, 4vw, 44px);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
}

.section-marker-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 6px rgba(255, 105, 180, 0.45),
    inset 0 0 5px rgba(255, 255, 255, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.section-marker-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 900;
  color: #743c9b;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  z-index: 1;
}

.section-marker-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  background: rgba(20, 20, 40, 0.88);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.section-marker:hover .section-marker-ring,
.section-marker:focus-visible .section-marker-ring {
  transform: scale(1.12);
  box-shadow:
    0 0 12px rgba(255, 105, 180, 0.65),
    inset 0 0 5px rgba(255, 255, 255, 0.6);
}

.section-marker:hover .section-marker-tooltip,
.section-marker:focus-visible .section-marker-tooltip,
.section-marker.active .section-marker-tooltip {
  opacity: 1;
}

.section-marker.active .section-marker-ring {
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  border-color: #fff;
  box-shadow:
    0 0 10px rgba(255, 159, 67, 0.7),
    inset 0 0 5px rgba(255, 255, 255, 0.5);
}

.section-marker.active .section-marker-core {
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.section-mobile-picks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 1138px;
  margin: 0 auto;
}

.section-mobile-pick {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #344356;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.section-mobile-pick:active {
  transform: scale(0.98);
}

.section-mobile-pick.active {
  border-color: #ff9f43;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  color: #fff;
}

.section-mobile-pick-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(116, 60, 155, 0.12);
  font-weight: 900;
  font-size: 1rem;
}

.section-mobile-pick-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(116, 60, 155, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.section-mobile-pick.active .section-mobile-pick-num {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.section-mobile-pick-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.section-mobile-pick-title {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
}

.section-mobile-pick-meta {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.85;
}

.section-progress-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: min(400px, 100%);
  margin: 0 auto;
  padding: 10px 14px;
  border: 2px solid #fc7dba;
  border-radius: 20px;
  background: linear-gradient(-87deg, #743c9b 2.8%, #b11980 89%);
  box-shadow:
    0 0 6px rgba(255, 105, 180, 0.5),
    inset 0 0 5px rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
}

.section-progress-ring-wrap {
  flex-shrink: 0;
}

.section-progress-ring {
  --section-progress: 0deg;
  width: clamp(56px, 14vw, 72px);
  height: clamp(56px, 14vw, 72px);
  border-radius: 50%;
  background:
    conic-gradient(#feca57 var(--section-progress), rgba(255, 255, 255, 0.35) 0),
    #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(255, 105, 180, 0.5);
  position: relative;
}

.section-progress-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.5);
}

.section-progress-pct {
  position: relative;
  z-index: 1;
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  font-weight: 900;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.section-progress-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  text-align: left;
  line-height: 1.35;
  word-break: break-word;
}

.section-status,
.section-error {
  text-align: center;
  font-weight: 800;
  min-height: 1.25rem;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
}

.section-status {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.section-error {
  color: #ffe0e0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1024px) {
  .section-map-wrap {
    padding-left: clamp(0px, 10vw, 100px);
  }
}

@media (max-width: 900px) {
  .section-header {
    border-radius: 24px;
  }

  .section-character {
    width: min(110px, 22vw);
    opacity: 0.9;
  }

  .section-map-wrap {
    padding-left: clamp(0px, 8vw, 80px);
  }
}

@media (max-width: 768px) {
  .section-mobile-picks {
    display: flex;
  }

  .section-exercise-panel {
    flex-basis: 100%;
    width: 100%;
    padding: 0.75rem;
    padding-top: 2.5rem;
    align-items: flex-end;
  }

  .section-exercise-panel-card {
    max-height: min(78vh, 680px);
    height: auto;
  }

  .section-exercise-panel .exercise-panel-inner {
    max-height: min(calc(78vh - 6px), 674px);
    height: auto;
  }

  .exercise-panel-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .exercise-cancel-btn,
  .exercise-start-btn {
    width: 100%;
    min-width: 0;
  }

  .section-journey-stage {
    min-height: clamp(120px, 32vw, 200px);
  }

  .section-map-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .section-character {
    display: none;
  }

  .section-marker-tooltip {
    display: none;
  }

  .section-progress-label {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .section-container {
    padding: max(0.65rem, env(safe-area-inset-top)) max(0.65rem, env(safe-area-inset-right))
      max(0.65rem, env(safe-area-inset-bottom)) max(0.65rem, env(safe-area-inset-left));
    gap: 0.6rem;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem 0.75rem;
  }

  .section-header-left {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .section-journey-title {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    flex: 1;
  }

  .section-back-btn {
    font-size: 1rem;
    padding: 0.45rem 0.65rem 0.7rem;
  }

  .section-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .section-course-name {
    max-width: min(140px, 50vw);
  }

  .section-marker {
    width: 40px;
    height: 40px;
  }

  .section-progress-card {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 12px;
  }

  .section-progress-label {
    text-align: center;
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  .section-journey-title {
    font-size: 1.1rem;
  }

  .section-back-btn span {
    font-size: 0.95rem;
  }

  .section-logout-btn {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
  }

  .section-marker {
    width: 34px;
    height: 34px;
  }

  .section-marker-core {
    font-size: 0.75rem;
  }
}

/* —— Host exercise picker (Figma: Quizzes list) —— */

.exercise-screen {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

.exercise-scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.exercise-scene .course-toolbar,
.exercise-scene .exercise-page {
  position: relative;
  z-index: 2;
}

.exercise-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: blur(10px);
  -webkit-filter: blur(10px);
  transform: scale(1.08);
  transform-origin: center center;
}

.exercise-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  box-sizing: border-box;
}

.exercise-panel {
  width: min(560px, 100%);
  max-height: min(78vh, 720px);
  padding: 3px;
  border-radius: 36px;
  background: linear-gradient(135deg, #c084fc 0%, #f472b6 45%, #60a5fa 100%);
  box-shadow:
    0 18px 40px rgba(116, 60, 155, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  box-sizing: border-box;
}

.exercise-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: min(calc(78vh - 6px), 714px);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 33px;
  background:
    radial-gradient(circle at 20% 10%, rgba(253, 203, 255, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(147, 197, 253, 0.25) 0%, transparent 40%),
    linear-gradient(180deg, rgba(255, 252, 255, 0.98) 0%, rgba(252, 246, 255, 0.96) 100%);
  box-shadow: 0 2px 24px rgba(255, 255, 255, 0.65) inset;
  box-sizing: border-box;
  overflow: hidden;
}

.exercise-panel-header {
  flex-shrink: 0;
  margin-bottom: 0.85rem;
}

.exercise-page-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #f472b6 0%, #a855f7 55%, #9333ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 2px 0 #fff)
    drop-shadow(0 3px 0 #fff)
    drop-shadow(0 0 14px rgba(168, 85, 247, 0.18));
}

.exercise-context {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9ca3af;
}

.exercise-list-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}

.exercise-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.exercise-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 2px 8px rgba(116, 60, 155, 0.06),
    0 0 0 1px rgba(229, 231, 235, 0.9) inset;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.exercise-item:hover:not(.active) {
  transform: translateY(-1px);
  box-shadow:
    0 6px 16px rgba(116, 60, 155, 0.1),
    0 0 0 1px rgba(229, 231, 235, 0.9) inset;
}

.exercise-item.active {
  background: linear-gradient(90deg, #d946ef 0%, #9333ea 52%, #7c3aed 100%);
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.32);
}

.exercise-item-main {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
}

.exercise-item-num {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #d1d5db;
  line-height: 1.35;
}

.exercise-item.active .exercise-item-num {
  color: rgba(255, 255, 255, 0.92);
}

.exercise-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.exercise-item-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #e879a9;
  line-height: 1.25;
}

.exercise-item.active .exercise-item-title {
  color: #fff;
}

.exercise-item-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1.25;
}

.exercise-item-pts {
  flex-shrink: 0;
  font-size: 0.92rem;
  font-weight: 900;
  color: #fb923c;
  white-space: nowrap;
}

.exercise-item.active .exercise-item-pts {
  color: #fde047;
}

.exercise-empty {
  margin: 0;
  padding: 1.25rem 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #9ca3af;
}

.exercise-panel-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.exercise-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  width: 100%;
}

.exercise-cancel-btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  min-width: 110px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: #6b7280;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: rgba(107, 114, 128, 0.12);
  box-shadow: inset 0 0 0 1px rgba(107, 114, 128, 0.18);
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.exercise-cancel-btn:hover {
  background: rgba(107, 114, 128, 0.18);
  color: #4b5563;
}

.exercise-cancel-btn:active {
  transform: translateY(1px);
}

.exercise-status {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #9ca3af;
  min-height: 1.1rem;
}

.exercise-status:empty {
  display: none;
}

.exercise-error {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #dc2626;
  min-height: 0;
}

.exercise-error:empty {
  display: none;
}

.exercise-start-btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  min-width: 170px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: linear-gradient(180deg, #ffb84d 0%, #ff9f43 55%, #ff8c2a 100%);
  box-shadow:
    0 5px 0 #d97706,
    0 10px 22px rgba(255, 140, 42, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.exercise-start-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 6px 0 #d97706,
    0 12px 26px rgba(255, 140, 42, 0.42);
}

.exercise-start-btn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 #d97706,
    0 6px 14px rgba(255, 140, 42, 0.28);
}

.exercise-start-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Section-embedded quizzes list — all rows use purple gradient */
.exercise-list--section .exercise-item {
  background: linear-gradient(90deg, #c026d3 0%, #9333ea 55%, #7c3aed 100%);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.22);
}

.exercise-list--section .exercise-item:hover:not(.active) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

.exercise-list--section .exercise-item.active {
  background: linear-gradient(90deg, #7e22ce 0%, #6b21a8 52%, #581c87 100%);
  box-shadow: 0 10px 24px rgba(88, 28, 135, 0.38);
}

.exercise-list--section .exercise-item-num,
.exercise-list--section .exercise-item-title,
.exercise-list--section .exercise-item-sub {
  color: rgba(255, 255, 255, 0.95);
}

.exercise-list--section .exercise-item-sub {
  opacity: 0.88;
}

.exercise-list--section .exercise-item-pts {
  color: #fde047;
}

.exercise-list--section .exercise-item.active .exercise-item-pts {
  color: #fef08a;
}

@media (max-width: 640px) {
  .exercise-panel {
    width: 100%;
    max-height: min(82vh, 680px);
  }

  .exercise-panel-inner {
    padding: 1.1rem 1rem 1rem;
  }

  .exercise-item {
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
  }

  .exercise-item-title {
    font-size: 0.92rem;
  }

  .exercise-start-btn {
    width: 100%;
    min-width: 0;
  }

  .exercise-panel-footer {
    align-items: stretch;
  }
}

/* —— Host waiting room (Figma) —— */

.waiting-screen {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.waiting-scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.waiting-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: blur(2px);
  -webkit-filter: blur(2px);
  transform: scale(1.02);
  transform-origin: center center;
}

.waiting-float {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  animation: waiting-float 5s ease-in-out infinite;
}

.waiting-float--gift-1 {
  width: clamp(42px, 5vw, 58px);
  top: 18%;
  left: 42%;
  animation-delay: 0.2s;
}

.waiting-float--gift-2 {
  width: clamp(36px, 4.5vw, 50px);
  top: 62%;
  right: 18%;
  animation-delay: 1.4s;
}

.waiting-float--star-1 {
  width: clamp(44px, 5vw, 64px);
  top: 10%;
  right: 22%;
  animation-delay: 0.6s;
}

.waiting-float--star-2 {
  width: clamp(38px, 4.5vw, 54px);
  top: 48%;
  left: 8%;
  animation-delay: 2s;
}

.waiting-float--cloud {
  width: clamp(48px, 6vw, 68px);
  top: 28%;
  left: 28%;
  animation-delay: 1s;
}

@keyframes waiting-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(8deg);
  }
}

.waiting-page-title {
  position: absolute;
  top: max(1.25rem, env(safe-area-inset-top));
  left: max(1.5rem, env(safe-area-inset-left));
  z-index: 3;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1;
  -webkit-text-stroke: 2px rgba(168, 85, 247, 0.85);
  paint-order: stroke fill;
  text-shadow:
    0 3px 0 rgba(124, 58, 237, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.22);
}

.waiting-room-code-card {
  position: absolute;
  top: calc(max(1.25rem, env(safe-area-inset-top)) + clamp(2.75rem, 5vw, 3.75rem));
  left: max(1.25rem, env(safe-area-inset-left));
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: clamp(0.85rem, 1.6vw, 1.15rem) clamp(1rem, 2vw, 1.35rem);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 4px solid #ffb84d;
  box-shadow:
    0 0 0 3px rgba(255, 184, 77, 0.35),
    0 0 24px rgba(236, 72, 153, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.waiting-room-code-label {
  margin: 0;
  font-size: clamp(0.72rem, 1.1vw, 0.85rem);
  font-weight: 800;
  color: #9333ea;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.waiting-room-code-display {
  border: none;
  padding: 0.15rem 0.35rem;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: inset 0 0 0 2px rgba(234, 88, 12, 0.18);
}

.waiting-room-code-display:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 2px rgba(234, 88, 12, 0.28),
    0 4px 12px rgba(234, 88, 12, 0.18);
}

.waiting-room-code-display:active {
  transform: translateY(0);
}

.waiting-room-code-digits {
  display: block;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 900;
  color: #ea580c;
  letter-spacing: 0.22em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  padding-left: 0.22em;
}

.waiting-room-code-hint {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9ca3af;
  line-height: 1;
}

.waiting-timer {
  position: absolute;
  left: max(1.25rem, env(safe-area-inset-left));
  top: 50%;
  transform: translateY(-58%);
  z-index: 3;
}

.waiting-timer-ring {
  position: relative;
  width: clamp(150px, 18vw, 220px);
  height: clamp(150px, 18vw, 220px);
  border-radius: 50%;
  background: #fff;
  border: 10px solid #ffb84d;
  box-shadow:
    0 0 0 4px rgba(255, 184, 77, 0.35),
    0 14px 30px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.waiting-timer-watch {
  position: absolute;
  top: -18px;
  right: -8px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.waiting-timer-watch svg {
  width: 100%;
  height: 100%;
}

.waiting-timer-label {
  margin: 0;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 800;
  color: #c026d3;
  letter-spacing: 0.02em;
}

.waiting-timer-value {
  margin: 0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #ea580c;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.waiting-students-panel {
  position: absolute;
  top: 50%;
  right: max(1.25rem, env(safe-area-inset-right));
  transform: translateY(-52%);
  z-index: 3;
  width: min(62vw, 760px);
  max-height: min(72vh, 620px);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.65) inset,
    0 0 0 2px rgba(236, 72, 153, 0.45),
    0 0 28px rgba(217, 70, 239, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.16);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.waiting-scene-veil {
  display: none;
}

.waiting-students-panel-inner,
.waiting-footer-dock,
.waiting-dashboard-face {
  display: contents;
}

.waiting-students-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.waiting-students-heading {
  min-width: 0;
}

.waiting-students-title {
  margin: 0 0 0.2rem;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  -webkit-text-stroke: 2px rgba(192, 38, 211, 0.8);
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 rgba(168, 85, 247, 0.7),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

.waiting-students-subtitle {
  margin: 0;
  font-size: clamp(0.82rem, 1.2vw, 0.98rem);
  font-weight: 700;
  color: #9333ea;
  line-height: 1.35;
}

.waiting-students-count {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ec4899 0%, #db2777 100%);
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.28);
  line-height: 1;
  box-sizing: border-box;
}

.waiting-students-count-current {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 900;
  color: #fde047;
}

.waiting-students-count-sep,
.waiting-students-count-total {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.waiting-students-grid {
  list-style: none;
  padding: 0.15rem 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem 0.5rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}

.waiting-student {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.waiting-student-avatar {
  width: clamp(52px, 6vw, 68px);
  height: clamp(52px, 6vw, 68px);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
  background: linear-gradient(
    145deg,
    hsl(var(--waiting-avatar-hue, 270) 88% 72%),
    hsl(calc(var(--waiting-avatar-hue, 270) + 38) 82% 54%)
  );
}

.waiting-student-initials {
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  text-shadow: 0 2px 5px rgba(50, 20, 80, 0.28);
}

.waiting-student.connected .waiting-student-avatar {
  box-shadow:
    0 0 0 3px #2dd4bf,
    0 0 0 6px rgba(45, 212, 191, 0.28),
    0 8px 16px rgba(0, 0, 0, 0.14);
}

.waiting-student-avatar--placeholder {
  background: #d1d5db;
  filter: grayscale(1);
}

.waiting-student.pending {
  opacity: 0.42;
}

.waiting-student-name {
  width: 100%;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1f2937;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waiting-student.pending .waiting-student-name {
  color: #9ca3af;
}

.waiting-participant-status {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #9ca3af;
}

.waiting-error {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #dc2626;
}

.waiting-error:empty {
  display: none;
}

.waiting-wizard {
  position: absolute;
  left: max(-1%, env(safe-area-inset-left));
  bottom: max(4.5rem, calc(env(safe-area-inset-bottom) + 3.5rem));
  width: min(340px, 34vw);
  height: auto;
  pointer-events: none;
  z-index: 3;
}

.waiting-footer {
  position: absolute;
  left: max(1.25rem, env(safe-area-inset-left));
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.waiting-dashboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem 0.8rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #9ca3af 0%, #6b7280 100%);
  box-shadow:
    0 5px 0 #4b5563,
    0 10px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.waiting-dashboard-btn:hover {
  transform: translateY(-1px);
}

.waiting-dashboard-btn:active {
  transform: translateY(2px);
  box-shadow:
    0 3px 0 #4b5563,
    0 6px 14px rgba(0, 0, 0, 0.16);
}

.waiting-dashboard-icon {
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.waiting-start-session-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem 0.95rem;
  min-width: 200px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: linear-gradient(180deg, #ffb84d 0%, #ff9f43 55%, #ff8c2a 100%);
  box-shadow:
    0 6px 0 #d97706,
    0 12px 26px rgba(255, 140, 42, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.waiting-start-session-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 7px 0 #d97706,
    0 14px 28px rgba(255, 140, 42, 0.38);
}

.waiting-start-session-btn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    0 3px 0 #d97706,
    0 8px 18px rgba(255, 140, 42, 0.28);
}

.waiting-start-session-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.waiting-start-icon {
  display: block;
  width: 19px;
  height: 20px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.waiting-start-session-art {
  position: absolute;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transform-origin: center;
  pointer-events: none;
}

.waiting-start-session-art.is-playing {
  animation: waitingStartSessionArt 2.6s ease both;
}

.host-exercise-countdown {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    var(--transition-purple) 0%,
    var(--transition-lavender) 48%,
    var(--transition-pink) 100%
  );
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.host-exercise-countdown.is-playing {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.host-exercise-countdown-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.lango-countdown321 {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    var(--transition-purple) 0%,
    var(--transition-lavender) 48%,
    var(--transition-pink) 100%
  );
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.lango-countdown321.is-playing {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lango-countdown321-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

@keyframes waitingStartSessionArt {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }
  16%,
  78% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

@media (max-width: 1100px) {
  .waiting-students-panel {
    width: min(72vw, 680px);
  }

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

@media (max-width: 820px) {
  .waiting-page-title {
    position: relative;
    top: auto;
    left: auto;
    padding: max(1rem, env(safe-area-inset-top)) 1rem 0;
    text-align: center;
  }

  .waiting-room-code-card {
    position: relative;
    top: auto;
    left: auto;
    margin: 0.65rem auto 0;
  }

  .waiting-timer {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    display: flex;
    justify-content: center;
    padding: 0.75rem 0 0.25rem;
  }

  .waiting-students-panel {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: calc(100% - 2rem);
    max-height: none;
    margin: 0.75rem auto 0;
  }

  .waiting-wizard {
    display: none;
  }

  .waiting-scene {
    overflow-y: auto;
    padding-bottom: 5.5rem;
  }

  .waiting-footer {
    position: fixed;
  }
}

@media (max-width: 520px) {
  .waiting-students-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .waiting-start-session-btn {
    min-width: 0;
    flex: 1;
    padding-inline: 1.1rem;
  }

  .waiting-dashboard-btn {
    padding-inline: 0.95rem;
  }
}

/* Host app fixed 16:9 stage
   The host view is authored at 1920x1080 and scaled to fit any device. */
html:has(#app.lango-host),
body:has(#app.lango-host) {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body:has(#app.lango-host) {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  background: #111827;
  background-image: none;
}

#app.lango-host {
  --host-stage-scale: 1;
  width: 1920px;
  height: 1080px;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  position: fixed;
  left: 50%;
  top: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--host-stage-scale));
  transform-origin: center center;
  contain: layout paint size;
}

/* Legacy active-screen rules use min-height: 100vh with higher specificity.
   Keep the authored host canvas fixed so room code, content and footers scale as one unit. */
#app.lango-host:has(.screen.active) {
  height: 1080px;
  min-height: 1080px;
  max-height: 1080px;
}

#app.lango-host .host-utility-controls {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: calc(100% - 44px);
  pointer-events: none;
}

#app.lango-host .host-utility-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(116, 60, 155, 0.08) inset,
    0 14px 34px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#app.lango-host .host-utility-meta,
#app.lango-host .host-utility-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

#app.lango-host .host-utility-meta:not(:has(.course-class-label:not([hidden]):not(.is-empty))):not(:has(.host-persistent-room-code.is-visible)):not(:has(.host-online-count.is-visible)) {
  display: none;
}

#app.lango-host .host-sound-controls {
  position: relative;
  top: auto;
  right: auto;
  z-index: auto;
}

#app.lango-host .course-class-label,
#app.lango-host .host-persistent-room-code,
#app.lango-host .host-online-count {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  z-index: auto;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 8px 14px 8px 16px;
  border-radius: 999px;
  box-sizing: border-box;
  animation: none;
}

#app.lango-host .course-class-label:not([hidden]):not(.is-empty) {
  display: inline-flex;
  border: 1px solid rgba(177, 25, 128, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 244, 252, 0.94) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 8px 18px rgba(177, 25, 128, 0.12);
}

#app.lango-host .host-persistent-room-code.is-visible {
  display: inline-flex;
  border: 1px solid rgba(255, 159, 67, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 247, 237, 0.95) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 8px 18px rgba(255, 159, 67, 0.16);
}

#app.lango-host .course-class-label[hidden],
#app.lango-host .course-class-label.is-empty,
#app.lango-host .host-persistent-room-code:not(.is-visible),
#app.lango-host .host-online-count[hidden],
#app.lango-host .host-online-count:not(.is-visible) {
  display: none !important;
}

#app.lango-host .host-online-count.is-visible {
  display: inline-flex;
  border: 1px solid rgba(45, 212, 191, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 254, 255, 0.95) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 8px 18px rgba(45, 212, 191, 0.16);
}

#app.lango-host .course-class-label__eyebrow,
#app.lango-host .host-persistent-room-code__label,
#app.lango-host .host-online-count__eyebrow {
  flex-shrink: 0;
  color: #b11980;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

#app.lango-host .host-persistent-room-code__label {
  color: #c2410c;
}

#app.lango-host .host-online-count__eyebrow {
  color: #0f766e;
}

#app.lango-host .host-online-count__value {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  min-width: 0;
  font-family: "Nunito", sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(101deg, #14b8a6 0%, #0ea5e9 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#app.lango-host .host-online-count__sep {
  margin: 0 1px;
  opacity: 0.72;
}

#app.lango-host .course-class-label__name {
  display: block;
  max-width: 160px;
  overflow: hidden;
  color: #4c1d95;
  font-family: "Nunito", sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(101deg, #b11980 0%, #743c9b 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#app.lango-host .host-persistent-room-code__display {
  border: 0;
  border-radius: 999px;
  min-width: 0;
  padding: 7px 12px;
  color: #b11980;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.16);
  cursor: pointer;
  font: inherit;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms ease;
}

#app.lango-host .host-persistent-room-code__display:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(234, 88, 12, 0.2),
    0 8px 14px rgba(255, 159, 67, 0.18);
}

#app.lango-host .host-persistent-room-code__display:active {
  transform: translateY(1px);
}

#app.lango-host .host-persistent-room-code__display span {
  display: block;
  min-width: 72px;
  font-family: "Nunito", sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
}

#app.lango-host .host-persistent-room-code__hint {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#app.lango-host .host-utility-btn {
  width: auto;
  min-width: 0;
  height: 48px;
  padding: 0 16px 0 8px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: #fff;
  cursor: pointer;
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.08),
    inset 0 0 0 2px rgba(255, 255, 255, 0.42),
    0 6px 0 rgba(0, 0, 0, 0.14),
    0 10px 18px rgba(15, 23, 42, 0.14);
  transition:
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 200ms ease,
    filter 200ms ease;
}

#app.lango-host .host-utility-btn-face {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.12);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

#app.lango-host .host-utility-btn-label {
  position: relative;
  z-index: 1;
  max-width: none;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: left;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.22);
  white-space: nowrap;
  background: none;
}

#app.lango-host .host-settings-btn {
  position: relative;
  background: linear-gradient(180deg, #c4b5fd 0%, #8b5cf6 100%);
}

html:not(.lango-gsap-ready) #app.lango-host .host-settings-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

#app.lango-host .host-settings-btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 -1px 2px rgba(0, 0, 0, 0.1),
    inset 0 0 0 2px rgba(255, 255, 255, 0.42),
    0 3px 0 rgba(0, 0, 0, 0.14),
    0 6px 12px rgba(15, 23, 42, 0.12);
}

#app.lango-host .host-settings-btn:active .host-utility-btn-face {
  transform: none;
}

#app.lango-host .host-settings-icon {
  width: 20px;
  height: 20px;
  display: block;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill='%23fff' d='M12 8.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Z'/%3E%3Cpath fill='%23fff' d='M19.4 13.1c.04-.36.06-.73.06-1.1s-.02-.74-.06-1.1l2.04-1.58a.5.5 0 0 0 .12-.64l-1.93-3.34a.5.5 0 0 0-.6-.22l-2.4.96a8.2 8.2 0 0 0-1.9-1.1l-.36-2.55A.5.5 0 0 0 13.87 2h-3.74a.5.5 0 0 0-.5.43l-.36 2.55c-.68.27-1.32.63-1.9 1.1l-2.4-.96a.5.5 0 0 0-.6.22L2.44 8.68a.5.5 0 0 0 .12.64L4.6 10.9c-.04.36-.06.73-.06 1.1s.02.74.06 1.1L2.56 14.68a.5.5 0 0 0-.12.64l1.93 3.34a.5.5 0 0 0 .6.22l2.4-.96c.58.47 1.22.83 1.9 1.1l.36 2.55a.5.5 0 0 0 .5.43h3.74a.5.5 0 0 0 .5-.43l.36-2.55c.68-.27 1.32-.63 1.9-1.1l2.4.96a.5.5 0 0 0 .6-.22l1.93-3.34a.5.5 0 0 0-.12-.64L19.4 13.1Z' fill-opacity='.95'/%3E%3C/svg%3E");
}

#app.lango-host .settings-screen {
  position: relative;
}

#app.lango-host .settings-scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#app.lango-host .settings-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

#app.lango-host .settings-page {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 96px 80px 120px;
  box-sizing: border-box;
}

#app.lango-host .settings-panel {
  width: min(860px, 100%);
  padding: 36px 40px 40px;
  border-radius: 32px;
  border: 4px solid rgba(162, 89, 255, 0.35);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.55) inset,
    0 18px 40px rgba(0, 0, 0, 0.16);
  overflow: visible;
}

#app.lango-host .settings-panel-header {
  margin-bottom: 28px;
}

#app.lango-host .settings-page-title {
  margin: 0;
  color: #1f2937;
  font-family: "DM Sans", sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
}

#app.lango-host .settings-page-subtitle {
  margin: 10px 0 0;
  color: #64748b;
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

#app.lango-host .settings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
}

#app.lango-host .settings-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(236, 72, 153, 0.07);
  border: 2px solid rgba(236, 72, 153, 0.12);
  overflow: visible;
}

#app.lango-host .settings-card:has(.settings-language.is-open) {
  z-index: 6;
}

#app.lango-host .settings-card-copy {
  flex: 1;
  min-width: 0;
}

#app.lango-host .settings-card-title {
  margin: 0;
  color: #1f2937;
  font-family: "DM Sans", sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

#app.lango-host .settings-card-desc {
  margin: 8px 0 0;
  color: #64748b;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

#app.lango-host .settings-language {
  position: relative;
  flex: 0 0 auto;
  display: block;
  min-width: 240px;
  max-width: 300px;
  z-index: 5;
}

#app.lango-host .settings-language-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 14px 18px;
  border-radius: 18px;
  border: 2px solid rgba(162, 89, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 245, 255, 0.96) 100%);
  color: #1f2937;
  font-family: "Nunito", sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.65) inset,
    0 6px 16px rgba(124, 58, 237, 0.08);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

#app.lango-host .settings-language-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#app.lango-host .settings-language-caret {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  background: center / 20px 20px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23A259FF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform 180ms ease;
}

#app.lango-host .settings-language.is-open .settings-language-caret {
  transform: rotate(180deg);
}

#app.lango-host .settings-language-trigger:hover {
  border-color: rgba(162, 89, 255, 0.5);
}

#app.lango-host .settings-language-trigger:focus-visible,
#app.lango-host .settings-language.is-open .settings-language-trigger {
  outline: none;
  border-color: rgba(162, 89, 255, 0.72);
  box-shadow:
    0 0 0 3px rgba(162, 89, 255, 0.18),
    0 0 0 2px rgba(255, 255, 255, 0.65) inset,
    0 8px 18px rgba(124, 58, 237, 0.12);
}

#app.lango-host .settings-language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  z-index: 20;
  margin: 0;
  padding: 10px;
  list-style: none;
  border-radius: 20px;
  border: 2px solid rgba(162, 89, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 248, 255, 0.96) 100%);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.55) inset,
    0 18px 36px rgba(76, 29, 149, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-height: min(420px, 52vh);
  overflow: auto;
  animation: hostSettingsLanguageIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hostSettingsLanguageIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#app.lango-host .settings-language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #334155;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  transition:
    background 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

#app.lango-host .settings-language-option + .settings-language-option {
  margin-top: 4px;
}

#app.lango-host .settings-language-option:hover,
#app.lango-host .settings-language-option:focus {
  outline: none;
  background: rgba(162, 89, 255, 0.1);
  color: #5b21b6;
}

#app.lango-host .settings-language-option.is-selected {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(162, 89, 255, 0.16));
  color: #6d28d9;
  box-shadow: inset 0 0 0 1.5px rgba(162, 89, 255, 0.18);
}

#app.lango-host .settings-language-option-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(162, 89, 255, 0.12);
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    background 140ms ease;
}

#app.lango-host .settings-language-option.is-selected .settings-language-option-check {
  opacity: 1;
  transform: scale(1);
  background:
    center / 12px 12px no-repeat
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l5 5L19 7' stroke='%23A259FF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #f5e9ff 0%, #ebe0ff 100%);
  box-shadow: inset 0 0 0 1.5px rgba(162, 89, 255, 0.28);
}

#app.lango-host .settings-language-option-label {
  min-width: 0;
}

#app.lango-host .settings-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  cursor: pointer;
  transition: background 180ms ease;
}

#app.lango-host .settings-toggle.is-on {
  background: rgba(16, 185, 129, 0.16);
}

#app.lango-host .settings-toggle-track {
  position: relative;
  width: 64px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  transition: background 180ms ease;
}

#app.lango-host .settings-toggle.is-on .settings-toggle-track {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
}

#app.lango-host .settings-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

#app.lango-host .settings-toggle.is-on .settings-toggle-thumb {
  transform: translateX(30px);
}

#app.lango-host .settings-toggle-state {
  min-width: 36px;
  color: #334155;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

#app.lango-host .settings-toggle.is-on .settings-toggle-state {
  color: #047857;
}

#app.lango-host .settings-toolbar {
  position: absolute;
  left: 40px;
  bottom: 36px;
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  #app.lango-host .host-settings-btn,
  #app.lango-host .settings-toggle-thumb {
    transition: none;
  }
}

#app.lango-host .host-sound-mute-btn {
  position: relative;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
}

#app.lango-host .host-sound-mute-btn .host-utility-btn-face {
  background: rgba(255, 255, 255, 0.22);
}

#app.lango-host .host-sound-controls.is-menu-open .host-sound-mute-btn {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.08),
    inset 0 0 0 2px rgba(255, 255, 255, 0.5),
    0 8px 0 rgba(0, 0, 0, 0.12),
    0 12px 20px rgba(255, 159, 67, 0.28);
}

#app.lango-host .host-sound-mute-btn.is-partial-muted {
  background: linear-gradient(180deg, #fbbf77 0%, #f59a5a 100%);
}

html:not(.lango-gsap-ready) #app.lango-host .host-sound-mute-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

#app.lango-host .host-sound-mute-btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 -1px 2px rgba(0, 0, 0, 0.1),
    inset 0 0 0 2px rgba(255, 255, 255, 0.42),
    0 3px 0 rgba(0, 0, 0, 0.14),
    0 6px 12px rgba(15, 23, 42, 0.12);
}

#app.lango-host .host-sound-mute-btn:active .host-utility-btn-face {
  transform: none;
}

#app.lango-host .host-sound-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 248px;
  padding: 10px;
  border-radius: 18px;
  border: 3px solid rgba(162, 89, 255, 0.45);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.7) inset,
    0 10px 28px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.94);
  pointer-events: none;
  transition:
    opacity 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 240ms;
}

#app.lango-host .host-sound-controls.is-menu-open .host-sound-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#app.lango-host .host-sound-menu-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(236, 72, 153, 0.06);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 200ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

#app.lango-host .host-sound-controls.is-menu-open .host-sound-menu-row {
  opacity: 1;
  transform: translateY(0);
}

#app.lango-host .host-sound-controls.is-menu-open .host-sound-menu-row:nth-child(1) {
  transition-delay: 60ms;
}

#app.lango-host .host-sound-controls.is-menu-open .host-sound-menu-row:nth-child(2) {
  transition-delay: 110ms;
}

#app.lango-host .host-sound-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #1f2937;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  transition: background 160ms ease;
}

#app.lango-host .host-sound-menu-item:hover {
  background: rgba(236, 72, 153, 0.1);
}

#app.lango-host .host-sound-menu-item.is-muted {
  background: rgba(148, 163, 184, 0.12);
}

#app.lango-host .host-sound-menu-label {
  flex: 1;
  min-width: 0;
}

#app.lango-host .host-sound-menu-state {
  flex-shrink: 0;
  min-width: 52px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

#app.lango-host .host-sound-menu-item.is-muted .host-sound-menu-state {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
}

#app.lango-host .host-sound-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 8px;
  cursor: pointer;
}

#app.lango-host .host-sound-volume-label {
  flex-shrink: 0;
  min-width: 52px;
  color: #64748b;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#app.lango-host .host-sound-volume-slider {
  --host-sound-volume: 50%;
  flex: 1;
  min-width: 0;
  height: 16px;
  margin: 0;
  border-radius: 999px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

#app.lango-host .host-sound-volume-slider:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#app.lango-host .host-sound-volume-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #f97316 0%,
    #f97316 var(--host-sound-volume),
    rgba(148, 163, 184, 0.35) var(--host-sound-volume),
    rgba(148, 163, 184, 0.35) 100%
  );
}

#app.lango-host .host-sound-volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.2);
}

#app.lango-host .host-sound-volume-slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

#app.lango-host .host-sound-volume-slider::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: #f97316;
}

#app.lango-host .host-sound-volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  #app.lango-host .host-sound-mute-btn,
  #app.lango-host .host-sound-menu,
  #app.lango-host .host-sound-menu-row {
    transition: none;
  }

  #app.lango-host .host-sound-controls.is-menu-open .host-sound-mute-btn {
    transform: none;
  }

  #app.lango-host .host-sound-menu {
    opacity: 1;
    visibility: hidden;
    transform: none;
  }

  #app.lango-host .host-sound-controls.is-menu-open .host-sound-menu {
    visibility: visible;
  }

  #app.lango-host .host-sound-menu-row {
    opacity: 1;
    transform: none;
  }
}

#app.lango-host .host-sound-mute-icon {
  position: relative;
  width: 22px;
  height: 18px;
  display: block;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath fill='%23fff' d='M2 9h5.2L15 3v18l-7.8-6H2z'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' d='M18 8.2c1.3 1.1 2 2.4 2 3.8s-.7 2.7-2 3.8M21.2 5.4c2.3 1.8 3.6 4.2 3.6 6.6s-1.3 4.8-3.6 6.6'/%3E%3C/svg%3E");
}

#app.lango-host .host-sound-mute-icon::before {
  content: none;
}

#app.lango-host .host-sound-mute-icon::after {
  content: none;
  position: absolute;
}

#app.lango-host .host-sound-mute-btn.is-muted .host-sound-mute-icon::after {
  content: "";
  right: 1px;
  top: 11px;
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
  transform: rotate(-45deg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

#app.lango-host .screen.active {
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#app.lango-host .login-screen,
#app.lango-host .class-screen,
#app.lango-host .course-screen,
#app.lango-host .section-screen,
#app.lango-host .waiting-screen,
#app.lango-host .host-mcq-preview-screen,
#app.lango-host .host-mcq-screen,
#app.lango-host .host-video-screen {
  min-height: 0;
}

/* Host Buzz In exercise, based on Figma frame 157:2605. */
#app.lango-host .host-buzzin-screen {
  position: relative;
  overflow: hidden;
  background: #f5c842;
  color: #fff;
  font-family: "Nunito", sans-serif;
}

#app.lango-host .host-buzzin-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(7.5px);
  transform: scale(1.02);
}

#app.lango-host .host-buzzin-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1280px;
  height: 720px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  transform: translate(-50%, -50%) scale(1.5);
  transform-origin: center center;
}

#app.lango-host .host-buzzin-header {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#app.lango-host .host-buzzin-title {
  flex: 1 0 0;
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: 50px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.9px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  -webkit-text-stroke: 4px #c866da;
  paint-order: stroke fill;
}

#app.lango-host .host-buzzin-main {
  width: 100%;
  min-height: 0;
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

#app.lango-host .host-buzzin-question-card {
  position: relative;
  width: 800px;
  min-height: 377px;
  padding: 36px;
  border: 4px solid #fc7dba;
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(92deg, rgba(177, 25, 128, 0.8) 3%, rgba(116, 60, 155, 0.8) 89%);
  box-shadow:
    0 0 25px rgba(255, 105, 180, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}

#app.lango-host .host-buzzin-points {
  width: 100%;
  color: transparent;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 32px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.75px;
  text-align: center;
  text-shadow: 1.667px 1.667px 3.333px rgba(0, 0, 0, 0.3);
}

#app.lango-host .host-buzzin-question {
  width: 100%;
  margin: 0;
  color: #fff;
  font-family: "HK Grotesk", "Nunito", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
}

#app.lango-host .host-buzzin-image-wrap {
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
}

#app.lango-host .host-buzzin-image-wrap[hidden] {
  display: none;
}

#app.lango-host #screen-host-buzzin.has-image .host-buzzin-image {
  width: min(520px, 72%);
  max-height: min(240px, 32vh);
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

#app.lango-host #screen-host-buzzin.has-image .host-buzzin-question-card {
  min-height: 420px;
}

#app.lango-host #screen-host-buzzin.has-image .host-buzzin-sparkle {
  display: none;
}

#app.lango-host .host-buzzin-sparkle {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: #fde047;
  opacity: 0.7;
  filter: blur(2px);
}

#app.lango-host .host-buzzin-countdown {
  width: 165px;
  height: 165px;
  border: 15px solid #feca57;
  border-radius: 50%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow:
    0 0 10.417px rgba(255, 105, 180, 0.5),
    inset 0 0 8.333px rgba(255, 255, 255, 0.5);
}

#app.lango-host .host-buzzin-countdown[hidden] {
  display: none !important;
}

#app.lango-host .host-buzzin-join-status {
  margin: 0;
  min-height: 1.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

#app.lango-host .host-buzzin-join-status:empty {
  display: none;
}

#app.lango-host .host-buzzin-countdown span {
  color: #ff9f43;
  font-size: 100px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.75px;
  text-align: center;
  text-shadow:
    1.667px 1.667px 3.333px rgba(0, 0, 0, 0.3),
    0 2px 0 rgba(255, 255, 255, 0.9);
}

#app.lango-host .host-buzzin-prompt {
  position: relative;
  appearance: none;
  min-width: 480px;
  min-height: 132px;
  padding: 26px 46px 34px;
  border: 7px solid rgba(255, 255, 255, 0.45);
  border-radius: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  color: #fff;
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1.2px;
  text-shadow: 0 5px 0 rgba(174, 92, 25, 0.36);
  box-shadow:
    0 18px 0 #a85c23,
    0 24px 18px rgba(0, 0, 0, 0.35),
    inset 0 -4px 5px rgba(175, 82, 20, 0.22);
  cursor: default;
}

#app.lango-host .host-buzzin-prompt.is-ready:not(:disabled) {
  cursor: pointer;
  animation: hostBuzzinGetReadyAttention 1.35s ease-in-out infinite;
}

#app.lango-host .host-buzzin-prompt.is-ready:not(:disabled)::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 7px solid rgba(255, 255, 255, 0.92);
  border-radius: inherit;
  pointer-events: none;
  animation: hostBuzzinGetReadyRing 1.35s ease-out infinite;
}

#app.lango-host .host-buzzin-screen.is-starting-buzz .host-buzzin-prompt {
  animation: none;
}

#app.lango-host .host-buzzin-screen.is-starting-buzz .host-buzzin-prompt::after {
  animation: none;
  opacity: 0;
}

#app.lango-host .host-buzzin-start-burst {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
}

#app.lango-host .host-buzzin-start-burst__flash {
  position: absolute;
  width: min(72vw, 920px);
  height: min(72vw, 920px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(254, 202, 87, 0.85) 28%,
    rgba(255, 159, 67, 0.35) 58%,
    rgba(255, 159, 67, 0) 72%
  );
  mix-blend-mode: screen;
}

#app.lango-host .host-buzzin-start-burst__ring {
  position: absolute;
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  border: 10px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow:
    0 0 0 10px rgba(254, 202, 87, 0.35),
    0 0 40px rgba(255, 159, 67, 0.55);
}

#app.lango-host .host-buzzin-footer-icon--next {
  transform: rotate(180deg);
}

#app.lango-host .host-buzzin-empty-screen {
  position: relative;
  overflow: hidden;
  background: #f5c842;
  color: #fff;
  font-family: "Nunito", sans-serif;
}

#app.lango-host .host-buzzin-empty-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1280px;
  height: 720px;
  padding: 20px 20px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  transform: translate(-50%, -50%) scale(1.5);
  transform-origin: center center;
}

#app.lango-host .host-buzzin-empty-main {
  width: 100%;
  min-height: 0;
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#app.lango-host .host-buzzin-empty-card {
  position: relative;
  width: 100%;
  min-height: 545px;
  padding: 36px;
  border: 4px solid #fc7dba;
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  background: linear-gradient(272deg, rgba(116, 60, 155, 0.8) 2.8%, rgba(177, 25, 128, 0.8) 89%);
  box-shadow:
    0 0 25px rgba(255, 105, 180, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}

#app.lango-host .host-buzzin-empty-headline {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.9px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  -webkit-text-stroke: 4px #c866da;
  paint-order: stroke fill;
}

#app.lango-host .host-buzzin-empty-subhead {
  position: relative;
  z-index: 1;
  max-width: 768px;
  margin: 0;
  color: #fff;
  font-family: "HK Grotesk", "Nunito", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
}

#app.lango-host .host-buzzin-empty-character {
  position: absolute;
  left: 17px;
  bottom: 0;
  width: 382px;
  height: auto;
  max-height: 473px;
  object-fit: contain;
  object-position: left bottom;
  pointer-events: none;
}

#app.lango-host .host-buzzin-footer-btn--muted {
  mix-blend-mode: luminosity;
}

#screen-host-buzzin-empty.active.host-buzzin-empty-screen--enter .host-buzzin-title {
  animation: hostBuzzinFeedbackTitleIn 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

#screen-host-buzzin-empty.active.host-buzzin-empty-screen--enter .host-buzzin-empty-card {
  animation: hostBuzzinFeedbackLeaderboardIn 620ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

@media (prefers-reduced-motion: reduce) {
  #screen-host-buzzin-empty.active.host-buzzin-empty-screen--enter .host-buzzin-title,
  #screen-host-buzzin-empty.active.host-buzzin-empty-screen--enter .host-buzzin-empty-card {
    animation: none;
  }
}

html.lango-gsap-ready #screen-host-buzzin-empty.active.host-buzzin-empty-screen--enter .host-buzzin-title,
html.lango-gsap-ready #screen-host-buzzin-empty.active.host-buzzin-empty-screen--enter .host-buzzin-empty-card {
  animation: none !important;
}

#app.lango-host .host-buzzin-feedback-screen {
  position: relative;
  overflow: hidden;
  background: #f5c842;
  color: #fff;
  font-family: "Nunito", sans-serif;
}

#app.lango-host .host-buzzin-feedback-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1280px;
  height: 720px;
  padding: 20px 20px 120px;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  transform: translate(-50%, -50%) scale(1.5);
  transform-origin: center center;
}

#app.lango-host .host-buzzin-feedback-header {
  width: 100%;
  min-height: 68px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#app.lango-host .host-buzzin-feedback-title {
  margin: 0;
  flex: 1 0 0;
  min-width: 0;
  color: #fff;
  font-size: 50px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.9px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  -webkit-text-stroke: 4px #c866da;
  paint-order: stroke fill;
}

#app.lango-host .host-buzzin-feedback-layout {
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  min-height: 0;
}

#app.lango-host .host-buzzin-feedback-realtime {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 632px;
  padding: 10px 20px;
  border-radius: 30px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #344356;
  z-index: 3;
  overflow: hidden;
}

#app.lango-host .host-buzzin-feedback-realtime-header {
  padding: 10px;
  border-bottom: 0.5px solid #e2e1ee;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 0 0 auto;
}

#app.lango-host .host-buzzin-feedback-realtime-header span {
  color: #000;
  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: normal;
}

#app.lango-host .host-buzzin-feedback-chat {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 60, 155, 0.45) rgba(226, 225, 238, 0.8);
}

#app.lango-host .host-buzzin-feedback-chat::-webkit-scrollbar {
  width: 8px;
}

#app.lango-host .host-buzzin-feedback-chat::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(116, 60, 155, 0.45);
}

#app.lango-host .host-buzzin-feedback-chat-actions {
  flex: 0 0 auto;
  padding-top: 4px;
  border-top: 0.5px solid #e2e1ee;
}

#app.lango-host .host-buzzin-show-answer-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: linear-gradient(90deg, #a1268e 0%, #743c9b 100%);
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(116, 60, 155, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

#app.lango-host .host-buzzin-show-answer-btn__label {
  flex: 0 0 auto;
  font-weight: 900;
  white-space: nowrap;
}

#app.lango-host .host-buzzin-show-answer-btn__hint {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  opacity: 0.9;
  text-align: right;
}

#app.lango-host .host-buzzin-chat-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
}

#app.lango-host .host-buzzin-chat-row--student {
  justify-content: flex-end;
  gap: 12px;
}

#app.lango-host .host-buzzin-chat-row--student .host-buzzin-chat-avatar {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

#app.lango-host .host-buzzin-chat-row--student .host-buzzin-chat-bubble--answer {
  position: relative;
  z-index: 1;
  max-width: min(243px, calc(100% - 56px));
  flex: 0 1 auto;
}

#app.lango-host .host-buzzin-chat-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 4px;
  border: 1.333px solid #96e5dd;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6) 0%, rgba(174, 211, 255, 0.8) 50%, rgba(93, 167, 255, 1) 100%);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

#app.lango-host .host-buzzin-chat-avatar--teacher {
  padding: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #e8fbff 0%, #96e5dd 100%);
}

#app.lango-host .host-buzzin-chat-avatar--teacher img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#app.lango-host .host-buzzin-chat-bubble {
  padding: 10px;
  border-radius: 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
}

#app.lango-host .host-buzzin-chat-bubble p {
  margin: 0;
}

#app.lango-host .host-buzzin-chat-bubble--feedback p {
  white-space: pre-line;
}

#app.lango-host .host-buzzin-chat-bubble--question,
#app.lango-host .host-buzzin-chat-bubble--feedback {
  color: #344356;
  background: #fff;
  box-shadow: 0 12px 10px rgba(108, 106, 171, 0.06);
}

#app.lango-host .host-buzzin-chat-bubble--spoken {
  background: #fffaf3;
}

#app.lango-host .host-buzzin-chat-bubble--answer {
  color: #fff;
  background: linear-gradient(153deg, rgba(162, 89, 255, 0.85) 0%, rgba(255, 107, 107, 0.85) 100%);
  box-shadow: 0 8px 16px rgba(255, 140, 200, 0.35);
}

#app.lango-host .host-buzzin-chat-bubble--pending {
  opacity: 0.96;
}

#app.lango-host .host-buzzin-chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
}

#app.lango-host .host-buzzin-chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  animation: hostBuzzinTypingDot 1.2s ease-in-out infinite;
}

#app.lango-host .host-buzzin-chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

#app.lango-host .host-buzzin-chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes hostBuzzinTypingDot {
  0%,
  70%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

#app.lango-host .host-buzzin-chat-feedback-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}

#app.lango-host .host-buzzin-answer-verdict,
.buzzin-analysis .host-buzzin-answer-verdict {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

#app.lango-host .host-buzzin-answer-verdict--correct,
.buzzin-analysis .host-buzzin-answer-verdict--correct {
  background: linear-gradient(180deg, #45c937 0%, #2f9e28 100%);
  box-shadow: 0 4px 0 #1f7a1a;
}

#app.lango-host .host-buzzin-answer-verdict--incorrect,
.buzzin-analysis .host-buzzin-answer-verdict--incorrect {
  background: linear-gradient(180deg, #ff6b6b 0%, #e54848 100%);
  box-shadow: 0 4px 0 #b83232;
}

#app.lango-host .host-buzzin-answer-verdict--partial,
.buzzin-analysis .host-buzzin-answer-verdict--partial {
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  box-shadow: 0 4px 0 #c7771a;
  color: #5a3208;
}

#app.lango-host .host-buzzin-chat-bubble--scores {
  padding: 12px 10px 10px;
}

#app.lango-host .host-buzzin-chat-bubble--scores .buzzin-score-pie__chart {
  width: 68px;
  height: 68px;
}

#app.lango-host .host-buzzin-chat-bubble--scores .buzzin-score-pie__value {
  font-size: 16px;
}

#app.lango-host .host-buzzin-chat-bubble .buzzin-analysis-play {
  margin-top: 8px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #feca57, #ff9f43);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#app.lango-host .host-buzzin-chat-bubble .buzzin-analysis-play:hover {
  filter: brightness(1.06);
}

#app.lango-host .host-buzzin-chat-bubble--answer .buzzin-response-play {
  margin-top: 8px;
}

#app.lango-host .host-buzzin-feedback-leaderboard {
  position: absolute;
  box-sizing: border-box;
  left: 0;
  top: 0;
  width: 820px;
  min-height: 230px;
  height: 230px;
  padding: 15px 25px 28px;
  border: 10px solid rgba(162, 89, 255, 0.6);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(100px);
  box-shadow: 2px 4px 30px rgba(255, 177, 237, 1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: visible;
  z-index: 2;
}

#app.lango-host .host-buzzin-feedback-character {
  position: absolute;
  z-index: 1;
  left: 242px;
  top: 220px;
  width: 335px;
  height: 409px;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 16px 18px rgba(35, 22, 65, 0.22));
}

#app.lango-host .host-buzzin-feedback-leaderboard-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 0 0 auto;
  min-height: 57px;
}

#app.lango-host .host-buzzin-feedback-leaderboard-titles {
  text-align: center;
}

#app.lango-host .host-buzzin-feedback-leaderboard-title {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: 0.9px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  -webkit-text-stroke: 3px #c866da;
  paint-order: stroke fill;
}

#app.lango-host .host-buzzin-feedback-leaderboard-sub {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: normal;
  text-transform: capitalize;
  background: linear-gradient(-80deg, #743c9b 2.8%, #b11980 89%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

#app.lango-host .host-buzzin-feedback-winner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  margin-top: 0;
  padding: 0;
  overflow: visible;
}

#app.lango-host .host-buzzin-winner-card {
  position: relative;
  box-sizing: border-box;
  width: 221px;
  min-height: 106px;
  padding: 8px 16px;
  border: 4px solid #fc7dba;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  box-shadow: 2px 4px 30px rgba(255, 177, 237, 0.65);
  overflow: visible;
}

#app.lango-host .host-buzzin-winner-card.is-live {
  border-color: #fc7dba;
}

#app.lango-host .host-buzzin-winner-card .host-buzzin-chat-avatar {
  width: 62px;
  height: 62px;
  border-width: 4px;
  border-radius: 66px;
  padding: 10px;
  font-size: 18px;
  flex-shrink: 0;
}

#app.lango-host .host-buzzin-winner-medal {
  position: absolute;
  left: -15px;
  top: -8px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffd700, #ffb347);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#app.lango-host .host-buzzin-winner-live {
  position: absolute;
  top: -12px;
  right: 12px;
  min-width: 101px;
  height: 25px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #f33535;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
}

#app.lango-host .host-buzzin-winner-live-icon {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

#app.lango-host .host-buzzin-winner-copy {
  min-width: 0;
  flex: 1 0 0;
}

#app.lango-host .host-buzzin-winner-name {
  margin: 0;
  color: #000;
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.05;
}

#app.lango-host .host-buzzin-winner-time {
  margin: 4px 0 0;
  color: #888e96;
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

#app.lango-host .host-buzzin-winner-empty {
  margin: 0;
  color: #888e96;
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

#app.lango-host .host-buzzin-show-answer-btn:hover:not(:disabled) {
  filter: brightness(1.05);
}

#app.lango-host .host-buzzin-show-answer-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

#app.lango-host .host-buzzin-chat-bubble--answer-key {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(220, 239, 255, 0.96) 100%);
  color: #243041;
  border: 2px solid rgba(45, 115, 181, 0.35);
}

#app.lango-host .host-buzzin-chat-bubble--answer-key .host-buzzin-chat-bubble__label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2d73b5;
}

#app.lango-host .host-buzzin-feedback-status {
  margin: 0;
  color: #243041;
  font-weight: 800;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 12px rgba(255, 255, 255, 0.75);
}

@keyframes hostBuzzinPanelInLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hostBuzzinPanelInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hostBuzzinTitleIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hostBuzzinChatInLeft {
  from {
    opacity: 0;
    transform: translateX(-18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes hostBuzzinChatInRight {
  from {
    opacity: 0;
    transform: translateX(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes hostBuzzinWinnerEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hostBuzzinLivePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(243, 53, 53, 0);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(243, 53, 53, 0.45);
  }
}

@keyframes hostBuzzinSpeakingPulse {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

@keyframes hostBuzzinAnalyzingDots {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

#screen-host-buzzin-feedback.active.host-buzzin-feedback-screen--enter .host-buzzin-feedback-title {
  animation: hostBuzzinTitleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#screen-host-buzzin-feedback.active.host-buzzin-feedback-screen--enter .host-buzzin-feedback-leaderboard {
  animation: hostBuzzinPanelInLeft 0.58s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both;
}

#screen-host-buzzin-feedback.active.host-buzzin-feedback-screen--enter .host-buzzin-feedback-realtime {
  animation: hostBuzzinPanelInRight 0.58s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

#app.lango-host .host-buzzin-chat-row--enter.host-buzzin-chat-row--teacher {
  animation: hostBuzzinChatInLeft 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#app.lango-host .host-buzzin-chat-row--enter.host-buzzin-chat-row--student {
  animation: hostBuzzinChatInRight 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#app.lango-host .host-buzzin-winner-card--enter {
  animation: hostBuzzinWinnerEnter 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#app.lango-host .host-buzzin-winner-card.is-live .host-buzzin-winner-live {
  animation: hostBuzzinLivePulse 1.4s ease-in-out infinite;
}

#app.lango-host .host-buzzin-chat-bubble--pending {
  animation: hostBuzzinSpeakingPulse 1.2s ease-in-out infinite;
}

#app.lango-host .host-buzzin-chat-bubble--analyzing p {
  animation: hostBuzzinAnalyzingDots 1.1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  #screen-host-buzzin-feedback.active.host-buzzin-feedback-screen--enter .host-buzzin-feedback-title,
  #screen-host-buzzin-feedback.active.host-buzzin-feedback-screen--enter .host-buzzin-feedback-leaderboard,
  #screen-host-buzzin-feedback.active.host-buzzin-feedback-screen--enter .host-buzzin-feedback-realtime,
  #app.lango-host .host-buzzin-chat-row--enter,
  #app.lango-host .host-buzzin-winner-card--enter,
  #app.lango-host .host-buzzin-winner-card.is-live .host-buzzin-winner-live,
  #app.lango-host .host-buzzin-chat-bubble--pending,
  #app.lango-host .host-buzzin-chat-bubble--analyzing p {
    animation: none !important;
  }
}

html.lango-gsap-ready #screen-host-buzzin-feedback.active.host-buzzin-feedback-screen--enter .host-buzzin-feedback-title,
html.lango-gsap-ready #screen-host-buzzin-feedback.active.host-buzzin-feedback-screen--enter .host-buzzin-feedback-leaderboard,
html.lango-gsap-ready #screen-host-buzzin-feedback.active.host-buzzin-feedback-screen--enter .host-buzzin-feedback-realtime {
  animation: none !important;
}

#app.lango-host .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#app.lango-host .host-buzzin-footer {
  position: absolute;
  z-index: 6;
  left: 0;
  bottom: 0;
  width: 500px;
  height: 105px;
  padding: 0 30px;
  border-radius: 0 30px 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.8);
}

#app.lango-host .host-buzzin-footer--feedback {
  width: 831px;
  gap: 32px;
}

#app.lango-host .host-buzzin-footer-btn {
  flex-shrink: 0;
  min-width: 144px;
  height: 63px;
  padding: 13.5px 18px 19.5px;
  border: 0;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 27px;
  font-weight: 900;
  line-height: 30px;
  letter-spacing: 0.54px;
  text-transform: capitalize;
  white-space: nowrap;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
  box-shadow:
    inset 0 -3px 3px rgba(0, 0, 0, 0.1),
    inset 0 0 0 4.5px rgba(255, 255, 255, 0.5),
    0 9px 0 rgba(0, 0, 0, 0.2),
    0 3px 1.5px rgba(0, 0, 0, 0.25);
}

#app.lango-host .host-buzzin-footer-btn img {
  width: 36px;
  height: 36px;
}

#app.lango-host .host-buzzin-footer-btn--random {
  background: linear-gradient(180deg, #ff4346 0%, #fe57c9 100%);
}

#app.lango-host .host-buzzin-lucky-draw {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#app.lango-host .host-buzzin-lucky-draw[hidden] {
  display: none !important;
}

#app.lango-host .host-buzzin-lucky-draw:not([hidden]) {
  pointer-events: auto;
}

#app.lango-host .host-buzzin-lucky-draw__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 36, 0.42);
  backdrop-filter: blur(4px);
}

#app.lango-host .host-buzzin-lucky-draw__dialog {
  position: relative;
  z-index: 1;
  width: 420px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(42, 12, 72, 0.45);
  transform: scale(0.92);
  opacity: 0;
  animation: hostBuzzinLuckyDrawIn 320ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#app.lango-host .host-buzzin-lucky-draw__header {
  padding: 18px 24px 14px;
  background: #fff;
  text-align: center;
}

#app.lango-host .host-buzzin-lucky-draw__title {
  margin: 0;
  font-family: "Nunito", sans-serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.5px;
  color: transparent;
  background: linear-gradient(180deg, #d946ef 0%, #ec4899 55%, #a855f7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-stroke: 3px rgba(200, 102, 218, 0.85);
  paint-order: stroke fill;
}

#app.lango-host .host-buzzin-lucky-draw__body {
  min-height: 360px;
  padding: 28px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: linear-gradient(180deg, #8b3fd6 0%, #6d28b8 100%);
}

#app.lango-host .host-buzzin-lucky-draw__wheel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

#app.lango-host .host-buzzin-lucky-draw__wheel {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, #67e8f9 0%, #a78bfa 50%, #f472b6 100%);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
}

#app.lango-host .host-buzzin-lucky-draw__wheel.is-spinning {
  animation: hostBuzzinLuckyDrawSpin 900ms linear infinite;
}

#app.lango-host .host-buzzin-lucky-draw__wheel-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #f8fafc 0%, #cbd5e1 42%, #94a3b8 100%);
  box-shadow: inset 0 8px 18px rgba(255, 255, 255, 0.45), inset 0 -10px 20px rgba(15, 23, 42, 0.18);
}

#app.lango-host .host-buzzin-lucky-draw__wheel.is-revealed .host-buzzin-lucky-draw__wheel-face {
  background: transparent;
  box-shadow: none;
}

#app.lango-host .host-buzzin-lucky-draw__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    hsl(var(--lucky-avatar-hue, 270) 88% 72%) 0%,
    hsl(calc(var(--lucky-avatar-hue, 270) + 38) 82% 54%) 100%
  );
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.45);
  animation: hostBuzzinLuckyDrawReveal 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

#app.lango-host .host-buzzin-lucky-draw__name {
  margin: 0;
  min-height: 1.2em;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

#app.lango-host .host-buzzin-lucky-draw.is-revealed .host-buzzin-lucky-draw__name {
  animation: hostBuzzinLuckyDrawReveal 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

#app.lango-host .host-buzzin-chat-avatar--lucky {
  background: linear-gradient(
    145deg,
    hsl(var(--lucky-avatar-hue, 270) 88% 72%) 0%,
    hsl(calc(var(--lucky-avatar-hue, 270) + 38) 82% 54%) 100%
  );
}

#app.lango-host .host-buzzin-winner-card--lucky .host-buzzin-winner-medal,
#app.lango-host .host-buzzin-winner-card--lucky .host-buzzin-winner-time {
  display: none;
}

@keyframes hostBuzzinLuckyDrawIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes hostBuzzinLuckyDrawSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hostBuzzinLuckyDrawReveal {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #app.lango-host .host-buzzin-lucky-draw__dialog,
  #app.lango-host .host-buzzin-lucky-draw__wheel.is-spinning,
  #app.lango-host .host-buzzin-lucky-draw__avatar,
  #app.lango-host .host-buzzin-lucky-draw.is-revealed .host-buzzin-lucky-draw__name {
    animation: none;
  }

  #app.lango-host .host-buzzin-lucky-draw__dialog {
    opacity: 1;
    transform: none;
  }
}

@keyframes hostBuzzinGetReadyAttention {
  0%, 58%, 100% {
    filter: brightness(1);
    transform: translateX(0) scale(1);
  }
  64% {
    filter: brightness(1.22);
    transform: translateX(-4px) scale(1.045);
  }
  70% { transform: translateX(4px) scale(1.045); }
  76% { transform: translateX(-3px) scale(1.045); }
  82% { transform: translateX(3px) scale(1.045); }
  90% {
    filter: brightness(1.1);
    transform: translateX(0) scale(1.025);
  }
}

@keyframes hostBuzzinGetReadyRing {
  0%, 55% {
    opacity: 0;
    transform: scale(0.96);
  }
  65% { opacity: 0.9; }
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  #app.lango-host .host-buzzin-prompt.is-ready:not(:disabled),
  #app.lango-host .host-buzzin-prompt.is-ready:not(:disabled)::after {
    animation: none;
  }
}

#app.lango-host .host-buzzin-footer-icon--next {
  transform: rotate(180deg);
}

#app.lango-host .login-scene,
#app.lango-host .class-scene,
#app.lango-host .course-scene,
#app.lango-host .section-scene,
#app.lango-host .waiting-scene,
#app.lango-host .host-mcq-preview-screen,
#app.lango-host .host-mcq-screen,
#app.lango-host .host-video-screen {
  width: 100%;
  height: 100%;
  min-height: 0;
}

#app.lango-host .login-bg,
#app.lango-host .class-bg,
#app.lango-host .course-bg,
#app.lango-host .section-bg,
#app.lango-host .waiting-bg,
#app.lango-host .host-mcq-preview-bg,
#app.lango-host .host-mcq-bg,
#app.lango-host .host-video-bg {
  width: 100%;
  height: 100%;
}

#app.lango-host .host-mcq-preview-container,
#app.lango-host .host-mcq-container,
#app.lango-host .host-mcq-result-container {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1280px;
  height: 720px;
  min-height: 720px;
  margin: 0;
  transform: translate(-50%, -50%) scale(1.5);
  transform-origin: center center;
}

#app.lango-host .host-mcq-preview-footer {
  transform: scale(1.5);
  transform-origin: left bottom;
}

#app.lango-host .host-mcq-preview-progress {
  display: block;
}

#app.lango-host .host-mcq-countdown {
  top: 59px;
  right: 208px;
}

/* Fast MC quiz exercise, based on Figma frame 294:16807. */
#app.lango-host #screen-host-quiz-question.fast-mode .host-mcq-container {
  padding: 20px;
  gap: 0;
}

#app.lango-host #screen-host-quiz-question.fast-mode .host-mcq-progress {
  display: none;
}

#app.lango-host #screen-host-quiz-question.fast-mode .host-mcq-header {
  flex: 0 0 auto;
}

#app.lango-host #screen-host-quiz-question.fast-mode .host-mcq-title {
  flex: 1 0 0;
  min-width: 0;
  font-size: 50px;
  line-height: 1.12;
  letter-spacing: 0.9px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#app.lango-host #screen-host-quiz-question.fast-mode .host-mcq-main {
  width: 100%;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
}

#app.lango-host #screen-host-quiz-question.fast-mode .host-mcq-question-box {
  width: clamp(560px, 54vw, 800px);
  height: auto;
  min-height: 286px;
  max-height: min(58vh, 546px);
  padding: 36px;
  gap: 12px;
  justify-content: center;
  background: linear-gradient(91.39deg, rgba(177, 25, 128, 0.8) 10.96%, rgba(116, 60, 155, 0.8) 97.2%);
}

#app.lango-host #screen-host-quiz-question.fast-mode.text-short:not(.has-image) .host-mcq-question-box {
  width: clamp(520px, 44vw, 660px);
  min-height: 250px;
}

#app.lango-host #screen-host-quiz-question.fast-mode.text-medium:not(.has-image) .host-mcq-question-box {
  width: clamp(620px, 50vw, 760px);
  min-height: 318px;
}

#app.lango-host #screen-host-quiz-question.fast-mode.text-long:not(.has-image) .host-mcq-question-box {
  width: clamp(700px, 58vw, 880px);
  min-height: 390px;
}

#app.lango-host #screen-host-quiz-question.fast-mode.has-image .host-mcq-question-box {
  width: clamp(700px, 54vw, 800px);
  min-height: 500px;
  max-height: min(62vh, 560px);
}

#app.lango-host #screen-host-quiz-question.fast-mode .host-mcq-points {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  align-self: stretch;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0.75px;
  text-align: right;
}

#app.lango-host #screen-host-quiz-question.fast-mode .host-mcq-question {
  width: 100%;
  font-family: "HK Grotesk", "Nunito", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  overflow-wrap: anywhere;
}

#app.lango-host #screen-host-quiz-question.fast-mode.text-short:not(.has-image) .host-mcq-question {
  font-size: clamp(34px, 2.7vw, 46px);
  line-height: 1.13;
}

#app.lango-host #screen-host-quiz-question.fast-mode.text-long .host-mcq-question {
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.2;
}

#app.lango-host #screen-host-quiz-question.fast-mode .host-mcq-image-wrap {
  width: min(448px, 100%);
  height: auto;
  max-height: 283px;
  flex: 0 0 auto;
}

#app.lango-host #screen-host-quiz-question.fast-mode .host-mcq-image {
  width: min(448px, 100%);
  height: auto;
  max-height: 283px;
  aspect-ratio: 448 / 283;
  border-radius: 20px;
  object-fit: cover;
}

#app.lango-host #screen-host-quiz-question.fast-mode .host-mcq-options,
#app.lango-host #screen-host-quiz-question.fast-mode .host-mcq-status {
  display: none;
}

#app.lango-host #screen-host-quiz-question.fast-mode .host-mcq-countdown {
  position: absolute;
  left: 50%;
  right: auto;
  top: 562px;
  width: 95px;
  height: 95px;
  border-width: 15px;
  transform: translateX(-50%);
}

#app.lango-host #screen-host-quiz-question.fast-mode .host-mcq-countdown span {
  font-size: 48px;
  letter-spacing: 0.75px;
}

#app.lango-host #screen-host-quiz-question.fast-mode .host-mcq-footer {
  gap: 32px;
}

/* Host video exercise, based on Figma frame 117:15454. */
#app.lango-host .host-video-screen {
  position: relative;
  overflow: hidden;
  background: #f5c842;
  color: #fff;
  font-family: "Nunito", sans-serif;
}

#app.lango-host .host-video-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
}

#app.lango-host .host-video-container {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1280px;
  height: 720px;
  min-height: 720px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  transform: translate(-50%, -50%) scale(1.5);
  transform-origin: center center;
}

#app.lango-host .host-video-header {
  width: 100%;
  min-height: 58px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#app.lango-host .host-video-title {
  width: 537px;
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: 50px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.9px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#app.lango-host .host-video-subtitle {
  max-width: 640px;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.28);
}

#app.lango-host .host-video-subtitle:empty {
  display: none;
}

#app.lango-host .host-video-main {
  width: 100%;
  min-height: 0;
  flex: 1 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#app.lango-host .host-video-card {
  position: relative;
  padding: 34px 44px;
  border: 4px solid #fc7dba;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(91.63deg, rgba(177, 25, 128, 0.8) 10.96%, rgba(116, 60, 155, 0.8) 97.2%);
  box-shadow:
    0 0 25px rgba(255, 105, 180, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  transform: translateY(-36px);
}

#app.lango-host .host-video-sparkle {
  display: none;
}

#app.lango-host .host-video-frame {
  position: relative;
  width: 856px;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

#app.lango-host .host-video-player,
#app.lango-host .exercise-video.host-video-player {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  background: #000;
  object-fit: cover;
}

#app.lango-host .host-video-placeholder {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 219px;
  height: 219px;
  fill: #1f2937;
  opacity: 0.28;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

#app.lango-host .host-video-screen.has-video .host-video-placeholder {
  display: none;
}

#app.lango-host .host-video-captions {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 86px;
  z-index: 2;
  margin: 0;
  padding: 8px 14px;
  border-radius: 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.3px;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
  background: rgba(20, 12, 40, 0.55);
  pointer-events: none;
  white-space: pre-line;
  transition: bottom 180ms ease;
}

#app.lango-host .host-video-screen.is-playing:not(.controls-visible) .host-video-captions {
  bottom: 24px;
}

#app.lango-host .host-video-captions[hidden] {
  display: none;
}

#app.lango-host .host-video-controls {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  height: 54px;
  padding: 7px 12px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(177, 25, 128, 0.86) 0%, rgba(116, 60, 155, 0.86) 100%);
  box-shadow:
    0 8px 0 rgba(0, 0, 0, 0.18),
    0 2px 12px rgba(255, 105, 180, 0.45),
    inset 0 0 10px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 3;
}

#app.lango-host .host-video-screen.is-playing:not(.controls-visible) .host-video-controls {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

#app.lango-host .host-video-control-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  color: #fff;
  cursor: pointer;
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.1),
    inset 0 0 0 3px rgba(255, 255, 255, 0.5),
    0 5px 0 rgba(0, 0, 0, 0.18),
    0 2px 1px rgba(0, 0, 0, 0.25);
}

#app.lango-host .host-video-control-btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 -2px 2px rgba(0, 0, 0, 0.1),
    inset 0 0 0 3px rgba(255, 255, 255, 0.5),
    0 3px 0 rgba(0, 0, 0, 0.18),
    0 1px 1px rgba(0, 0, 0, 0.25);
}

#app.lango-host .host-video-play-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.16));
}

#app.lango-host .host-video-screen.is-playing .host-video-play-icon {
  width: 14px;
  height: 18px;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(#fff, #fff) left center / 5px 18px no-repeat,
    linear-gradient(#fff, #fff) right center / 5px 18px no-repeat;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.16));
}

#app.lango-host .host-video-time {
  min-width: 48px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.36px;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

#app.lango-host .host-video-scrubber {
  --host-video-progress: 0%;
  width: 100%;
  height: 18px;
  margin: 0;
  border-radius: 999px;
  flex: 1 1 auto;
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(90deg, #feca57 0 var(--host-video-progress), rgba(255, 255, 255, 0.46) var(--host-video-progress) 100%);
  cursor: pointer;
  outline: none;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.35);
}

#app.lango-host .host-video-scrubber::-webkit-slider-runnable-track {
  height: 18px;
  border-radius: 999px;
  background: transparent;
}

#app.lango-host .host-video-scrubber::-webkit-slider-thumb {
  width: 34px;
  height: 34px;
  margin-top: -8px;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(180deg, #ff7fca 0%, #fc7dba 100%);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.2),
    0 0 12px rgba(255, 105, 180, 0.75);
}

#app.lango-host .host-video-scrubber::-moz-range-track {
  height: 18px;
  border-radius: 999px;
  background: transparent;
}

#app.lango-host .host-video-scrubber::-moz-range-progress {
  height: 18px;
  border-radius: 999px;
  background: #feca57;
}

#app.lango-host .host-video-scrubber::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7fca 0%, #fc7dba 100%);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.2),
    0 0 12px rgba(255, 105, 180, 0.75);
}

#app.lango-host .host-video-text-btn {
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.3px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

#app.lango-host .host-video-text-btn:hover,
#app.lango-host .host-video-text-btn.is-active,
#app.lango-host .host-video-speed-wrap.is-open .host-video-speed-btn,
#app.lango-host .host-video-lang-wrap.is-open .host-video-lang-btn {
  background: rgba(254, 202, 87, 0.95);
  border-color: rgba(255, 255, 255, 0.8);
  color: #7a2f00;
  text-shadow: none;
}

#app.lango-host .host-video-text-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

#app.lango-host .host-video-speed-wrap {
  position: relative;
  flex: 0 0 auto;
}

#app.lango-host .host-video-lang-wrap {
  position: relative;
  flex: 0 0 auto;
}

#app.lango-host .host-video-speed-menu,
#app.lango-host .host-video-lang-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 88px;
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  background: linear-gradient(180deg, rgba(116, 60, 155, 0.96) 0%, rgba(80, 36, 120, 0.96) 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  z-index: 5;
}

#app.lango-host .host-video-speed-menu[hidden],
#app.lango-host .host-video-lang-menu[hidden] {
  display: none;
}

#app.lango-host .host-video-speed-option,
#app.lango-host .host-video-lang-option {
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

#app.lango-host .host-video-speed-option:hover,
#app.lango-host .host-video-speed-option.is-active,
#app.lango-host .host-video-lang-option:hover,
#app.lango-host .host-video-lang-option.is-active {
  background: rgba(254, 202, 87, 0.95);
  color: #7a2f00;
}

#app.lango-host .host-video-cc-btn {
  min-width: 52px;
  font-size: 14px;
}

#app.lango-host .host-video-volume-icon {
  position: relative;
  width: 26px;
  height: 22px;
  display: block;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath fill='%23fff' d='M2 9h5.2L15 3v18l-7.8-6H2z'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' d='M18 8.2c1.3 1.1 2 2.4 2 3.8s-.7 2.7-2 3.8M21.2 5.4c2.3 1.8 3.6 4.2 3.6 6.6s-1.3 4.8-3.6 6.6'/%3E%3C/svg%3E");
}

#app.lango-host .host-video-volume-icon::before {
  content: none;
}

#app.lango-host .host-video-volume-icon::after {
  content: none;
  position: absolute;
}

#app.lango-host .host-video-screen.is-muted .host-video-volume-icon::after {
  content: "";
  right: 1px;
  top: 10px;
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
  transform: rotate(-45deg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

#app.lango-host .host-video-footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 639px;
  height: 105px;
  padding: 0 30px;
  border-radius: 0 30px 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  background: rgba(255, 255, 255, 0.8);
}

#app.lango-host .host-video-footer-btn {
  min-width: 144px;
  height: 63px;
  padding: 13.5px 18px 19.5px;
  border: 0;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 27px;
  font-weight: 900;
  line-height: 30px;
  letter-spacing: 0.54px;
  text-transform: capitalize;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
  box-shadow:
    inset 0 -3px 3px rgba(0, 0, 0, 0.1),
    inset 0 0 0 4.5px rgba(255, 255, 255, 0.5),
    0 9px 0 rgba(0, 0, 0, 0.2),
    0 3px 1.5px rgba(0, 0, 0, 0.25);
}

#app.lango-host .host-video-footer-btn:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 -3px 3px rgba(0, 0, 0, 0.1),
    inset 0 0 0 4.5px rgba(255, 255, 255, 0.5),
    0 5px 0 rgba(0, 0, 0, 0.2),
    0 2px 1px rgba(0, 0, 0, 0.25);
}

#app.lango-host .host-video-footer-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

#app.lango-host .host-video-footer-icon--next {
  transform: rotate(180deg);
}

/* Waiting room Figma frame 117:15321, scaled from 1280x720 to the 1920x1080 host stage. */
#app.lango-host .waiting-scene {
  background: #1a1028;
}

#app.lango-host .waiting-scene-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 18% 58%, rgba(255, 184, 77, 0.16), transparent 58%),
    radial-gradient(ellipse 55% 70% at 78% 42%, rgba(177, 25, 128, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.12) 38%, rgba(15, 23, 42, 0.34) 100%);
}

#app.lango-host .waiting-float {
  z-index: 2;
  opacity: 0.72;
  filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.2));
}

#app.lango-host:has(#screen-waiting.active) .host-persistent-room-code,
#app.lango-host:has(#screen-waiting.active) .host-online-count {
  display: none !important;
}

@keyframes waiting-bg-drift {
  0% {
    transform: scale(1.03) translate3d(-6px, -4px, 0);
  }
  50% {
    transform: scale(1.04) translate3d(6px, 4px, 0);
  }
  100% {
    transform: scale(1.03) translate3d(-6px, -4px, 0);
  }
}

@keyframes waiting-title-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes waiting-timer-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.015);
  }
}

@keyframes waiting-watch-tick {
  0%,
  100% {
    transform: translateY(0) rotate(-7deg);
  }
  50% {
    transform: translateY(-8px) rotate(4deg);
  }
}

@keyframes waiting-soft-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#app.lango-host .waiting-bg {
  position: absolute;
  filter: blur(6px);
  -webkit-filter: blur(6px);
  transform: scale(1.04);
  animation: waiting-bg-drift 18s ease-in-out infinite;
}

#app.lango-host .waiting-page-title {
  left: 36px;
  top: 28px;
  z-index: 5;
  max-width: 720px;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: 0.5px;
  color: #fff;
  paint-order: stroke fill;
  -webkit-text-stroke: 5px rgba(177, 25, 128, 0.88);
  text-shadow:
    0 4px 0 rgba(116, 60, 155, 0.4),
    0 10px 22px rgba(15, 23, 42, 0.28);
  animation: waiting-title-float 5s ease-in-out infinite;
}

#app.lango-host .waiting-room-code-card {
  left: 36px;
  top: 118px;
  z-index: 6;
  min-width: 0;
  padding: 16px 22px 14px;
  border: 3px solid rgba(255, 184, 77, 0.95);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 247, 237, 0.94) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    0 0 0 6px rgba(255, 184, 77, 0.18),
    0 16px 32px rgba(234, 88, 12, 0.16);
}

#app.lango-host .waiting-room-code-body {
  display: flex;
  align-items: center;
  gap: 18px;
}

#app.lango-host .waiting-room-code-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 200px;
}

#app.lango-host .waiting-room-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-left: 18px;
  border-left: 2px solid rgba(255, 184, 77, 0.45);
}

#app.lango-host .waiting-room-qr {
  display: block;
  width: 108px;
  height: 108px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.12);
}

#app.lango-host .waiting-room-qr-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a3412;
  text-align: center;
  line-height: 1.2;
  max-width: 108px;
}

#app.lango-host .waiting-room-code-label {
  color: #c2410c;
  font-size: 13px;
  letter-spacing: 0.16em;
}

#app.lango-host .waiting-room-code-digits {
  font-family: "Nunito", sans-serif;
  font-size: 42px;
  letter-spacing: 0.16em;
  color: #ea580c;
}

#app.lango-host .waiting-room-code-hint {
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

#app.lango-host .waiting-timer {
  left: 190px;
  top: 334px;
  width: 745px;
  height: 640px;
  transform: none;
  z-index: 4;
}

#app.lango-host .waiting-timer-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 560px;
  height: 560px;
  padding: 28px;
  gap: 18px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, #ffe08a 0%, #feca57 42%, #ff9f43 100%) border-box;
  border: 22px solid transparent;
  box-shadow:
    0 0 0 10px rgba(254, 202, 87, 0.22),
    0 22px 48px rgba(193, 112, 18, 0.22),
    inset 0 0 28px rgba(255, 255, 255, 0.82);
  animation: waiting-timer-breathe 4.8s ease-in-out infinite;
}

#app.lango-host .waiting-timer-ring::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px rgba(255, 184, 77, 0.18);
  pointer-events: none;
}

#app.lango-host .waiting-timer-watch {
  width: 210px;
  height: 210px;
  right: -28px;
  top: -96px;
  transform: rotate(-7deg);
  transform-origin: 50% 65%;
  filter:
    drop-shadow(0 14px 18px rgba(193, 112, 18, 0.28))
    drop-shadow(0 0 18px rgba(255, 177, 80, 0.35));
  animation: waiting-watch-tick 3.6s ease-in-out infinite;
}

#app.lango-host .waiting-timer-label {
  position: relative;
  z-index: 1;
  font-family: "DM Sans", sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #b11980;
  background: linear-gradient(93deg, #b11980 10%, #743c9b 97%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#app.lango-host .waiting-timer-value {
  position: relative;
  z-index: 1;
  font-family: "Nunito", sans-serif;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  color: #ff9f43;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 3px 0 rgba(255, 255, 255, 0.85),
    0 8px 16px rgba(234, 88, 12, 0.22);
}

#app.lango-host .waiting-wizard {
  display: block;
  animation: waiting-soft-rise 700ms ease both;
}

#app.lango-host .waiting-students-panel {
  top: 118px;
  right: 30px;
  transform: none;
  display: flex;
  width: 1000px;
  height: 780px;
  max-height: none;
  padding: 10px;
  gap: 0;
  border: 0;
  border-radius: 56px;
  background: rgba(162, 89, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 18px 48px rgba(177, 25, 128, 0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: waiting-soft-rise 650ms ease 120ms both;
}

#app.lango-host .waiting-students-panel-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 36px 40px 32px;
  border-radius: 46px;
  background: linear-gradient(180deg, rgba(255, 252, 255, 0.96) 0%, rgba(255, 244, 252, 0.92) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 10px 28px rgba(116, 60, 155, 0.08);
  box-sizing: border-box;
  overflow: hidden;
}

html.lango-gsap-ready #app.lango-host .waiting-wizard,
html.lango-gsap-ready #app.lango-host .waiting-students-panel,
html.lango-gsap-ready #app.lango-host .waiting-room-code-card,
html.lango-gsap-ready #app.lango-host .waiting-timer,
html.lango-gsap-ready #app.lango-host .waiting-footer-dock {
  animation: none;
}

html.lango-gsap-ready #app.lango-host #screen-waiting.active:not(.is-gsap-entered) .waiting-wizard,
html.lango-gsap-ready #app.lango-host #screen-waiting.active:not(.is-gsap-entered) .waiting-students-panel,
html.lango-gsap-ready #app.lango-host #screen-waiting.active:not(.is-gsap-entered) .waiting-room-code-card,
html.lango-gsap-ready #app.lango-host #screen-waiting.active:not(.is-gsap-entered) .waiting-timer,
html.lango-gsap-ready #app.lango-host #screen-waiting.active:not(.is-gsap-entered) .waiting-footer-dock {
  opacity: 0;
}

#app.lango-host .waiting-students-header {
  margin: 0 0 22px;
  align-items: center;
  gap: 18px;
}

#app.lango-host .waiting-students-title {
  margin: 0;
  color: #b11980;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0.4px;
  -webkit-text-fill-color: #b11980;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

#app.lango-host .waiting-students-subtitle {
  margin-top: 10px;
  max-width: 42ch;
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
  text-wrap: pretty;
  color: #7a3a72;
}

#app.lango-host .waiting-room-code-line {
  display: none;
}

#app.lango-host .waiting-students-count-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

#app.lango-host .waiting-students-count-label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9d4b92;
  line-height: 1;
}

#app.lango-host .waiting-students-online-note {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #ea580c;
  line-height: 1.2;
  text-align: right;
}

#app.lango-host .waiting-students-count {
  min-width: 148px;
  height: 72px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  gap: 6px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(52deg, #fc7dba 0%, #947af7 98%);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.45) inset,
    0 10px 18px rgba(177, 25, 128, 0.22);
}

#app.lango-host .waiting-students-count-current,
#app.lango-host .waiting-students-count-sep,
#app.lango-host .waiting-students-count-total {
  color: #fff;
  text-shadow: 0 2px 6px rgba(88, 28, 135, 0.28);
}

#app.lango-host .waiting-students-count-current {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

#app.lango-host .waiting-students-count-sep,
#app.lango-host .waiting-students-count-total {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.88;
  font-variant-numeric: tabular-nums;
}

#app.lango-host .waiting-students-grid {
  width: 100%;
  padding: 6px 10px 8px 0;
  grid-template-columns: repeat(var(--waiting-grid-cols, 6), minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: var(--waiting-grid-gap, 30px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
  justify-items: center;
  scrollbar-width: thin;
  scrollbar-color: #c084fc rgba(255, 177, 237, 0.28);
}

#app.lango-host .waiting-students-grid::-webkit-scrollbar {
  width: 12px;
}

#app.lango-host .waiting-students-grid::-webkit-scrollbar-track {
  margin: 10px 0;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 177, 237, 0.22) 0%,
      rgba(196, 181, 253, 0.28) 100%
    );
  box-shadow: inset 0 0 0 1px rgba(162, 89, 255, 0.12);
}

#app.lango-host .waiting-students-grid::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #fc7dba 0%, #a259ff 55%, #8b5cf6 100%)
      padding-box;
  background-clip: padding-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 4px 10px rgba(162, 89, 255, 0.28);
}

#app.lango-host .waiting-students-grid::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, #ff8ec8 0%, #b57bff 55%, #9b6cff 100%)
      padding-box;
  background-clip: padding-box;
}

#app.lango-host .waiting-students-grid::-webkit-scrollbar-thumb:active {
  background:
    linear-gradient(180deg, #f472b6 0%, #9333ea 100%)
      padding-box;
  background-clip: padding-box;
}

#app.lango-host .waiting-student {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: calc(
    var(--waiting-avatar-size, 112px) + var(--waiting-item-gap, 10px) + var(--waiting-name-block, 40px) + 18px
  );
  overflow: visible;
}

#app.lango-host .waiting-student-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--waiting-item-gap, 10px);
  width: 100%;
  max-width: calc(var(--waiting-avatar-size, 112px) + 48px);
  padding: 10px 8px 12px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 244, 252, 0.2) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background 220ms ease,
    box-shadow 220ms ease;
}

#app.lango-host .waiting-student.connected .waiting-student-shell {
  background: linear-gradient(180deg, rgba(236, 254, 255, 0.8) 0%, rgba(255, 255, 255, 0.42) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(45, 212, 191, 0.22),
    0 10px 18px rgba(15, 118, 110, 0.08);
}

#app.lango-host .waiting-student.connected:hover .waiting-student-shell {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(45, 212, 191, 0.3),
    0 14px 24px rgba(15, 118, 110, 0.12);
}

#app.lango-host .waiting-student-avatar {
  position: relative;
  width: var(--waiting-avatar-size, 112px);
  height: var(--waiting-avatar-size, 112px);
  max-width: 100%;
  padding: var(--waiting-avatar-padding, 12px);
  border: 4px solid rgba(148, 163, 184, 0.45);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 32% 28%,
    rgba(255, 255, 255, 0.82),
    hsl(var(--waiting-avatar-hue, 270) 72% 72%) 42%,
    hsl(calc(var(--waiting-avatar-hue, 270) + 34) 68% 54%)
  );
  box-shadow:
    inset 0 -6px 10px rgba(15, 23, 42, 0.12),
    inset 0 4px 8px rgba(255, 255, 255, 0.35),
    0 8px 14px rgba(116, 60, 155, 0.12);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, border-color 220ms ease;
}

#app.lango-host .waiting-student-shine {
  position: absolute;
  left: 14%;
  top: 12%;
  width: 42%;
  height: 28%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

#app.lango-host .waiting-student-presence {
  position: absolute;
  right: 4px;
  bottom: 6px;
  width: calc(var(--waiting-avatar-size, 112px) * 0.22);
  height: calc(var(--waiting-avatar-size, 112px) * 0.22);
  border: 3px solid #fff;
  border-radius: 50%;
  background: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
}

#app.lango-host .waiting-student-presence.is-online {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  box-shadow:
    0 0 0 3px rgba(16, 185, 129, 0.18),
    0 2px 6px rgba(15, 23, 42, 0.16);
}

#app.lango-host .waiting-student-avatar--placeholder {
  background: linear-gradient(180deg, #e5e7eb 0%, #d1d5db 100%);
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: none;
}

#app.lango-host .waiting-student.connected .waiting-student-avatar {
  border-color: #2dd4bf;
  box-shadow:
    0 0 0 4px rgba(45, 212, 191, 0.22),
    inset 0 -6px 10px rgba(15, 23, 42, 0.1),
    inset 0 4px 8px rgba(255, 255, 255, 0.4),
    0 10px 16px rgba(15, 118, 110, 0.14);
}

#app.lango-host .waiting-student.connected:hover .waiting-student-avatar {
  transform: translateY(-2px) scale(1.03);
}

#app.lango-host .waiting-student-initials {
  position: relative;
  z-index: 1;
  font-family: "Nunito", sans-serif;
  font-size: calc(var(--waiting-avatar-size, 112px) * 0.32);
  font-weight: 900;
  letter-spacing: 0.02em;
}

#app.lango-host .waiting-student.pending .waiting-student-avatar {
  border-style: dashed;
  filter: saturate(0.55) brightness(1.05);
  opacity: 0.88;
}

#app.lango-host .waiting-student.pending .waiting-student-shell {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.72) 0%, rgba(241, 245, 249, 0.35) 100%);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

#app.lango-host .waiting-student-name {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--waiting-name-block, 40px);
  max-width: calc(var(--waiting-avatar-size, 112px) + 36px);
  margin: 0;
  padding: 0 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: "Nunito", "DM Sans", sans-serif;
  font-size: var(--waiting-name-size, 18px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #334155;
  text-align: center;
  text-transform: none;
  text-shadow: none;
}

#app.lango-host .waiting-student.connected .waiting-student-name {
  color: #0f766e;
}

#app.lango-host .waiting-student.pending .waiting-student-name {
  color: #64748b;
  font-weight: 700;
}

#app.lango-host .waiting-footer {
  left: 36px;
  right: auto;
  bottom: 28px;
  top: auto;
  width: auto;
  height: auto;
  padding: 0;
  gap: 0;
  justify-content: flex-start;
  border-radius: 0;
  background: transparent;
}

#app.lango-host .waiting-footer-dock {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 0 1px rgba(116, 60, 155, 0.08) inset,
    0 16px 32px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#app.lango-host .waiting-dashboard-btn,
#app.lango-host .waiting-start-session-btn {
  min-height: 64px;
  padding: 0 28px;
  border-radius: 999px;
  gap: 12px;
  font-family: "Nunito", sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  transition:
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 200ms ease,
    box-shadow 200ms ease;
}

#app.lango-host .waiting-dashboard-btn {
  color: #4c1d95;
  background: linear-gradient(180deg, #f5e9ff 0%, #e9d5ff 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.7),
    0 6px 0 rgba(124, 58, 237, 0.22),
    0 10px 16px rgba(88, 28, 135, 0.16);
}

#app.lango-host .waiting-dashboard-face {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 2px 6px rgba(88, 28, 135, 0.28);
}

#app.lango-host .waiting-dashboard-icon {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

#app.lango-host .waiting-start-session-btn {
  min-width: 220px;
  color: #fff;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  box-shadow:
    inset 0 -3px 3px rgba(0, 0, 0, 0.1),
    inset 0 0 0 4px rgba(255, 255, 255, 0.5),
    0 8px 0 rgba(217, 119, 6, 0.85),
    0 12px 20px rgba(255, 140, 42, 0.28);
}

#app.lango-host .waiting-dashboard-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

#app.lango-host .waiting-start-session-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

#app.lango-host .waiting-dashboard-icon,
#app.lango-host .waiting-start-icon {
  width: 22px;
  height: 22px;
}

@media (prefers-reduced-motion: reduce) {
  #app.lango-host .waiting-bg,
  #app.lango-host .waiting-page-title,
  #app.lango-host .waiting-timer-ring,
  #app.lango-host .waiting-timer-watch,
  #app.lango-host .waiting-wizard,
  #app.lango-host .waiting-students-panel {
    animation: none;
  }
}

/* Select course Figma frame 102:7099, scaled from 1280x720 to the 1920x1080 host stage. */
#app.lango-host .course-screen {
  color: #fff;
}

#app.lango-host .course-scene {
  display: block;
  background: #f5c842;
}

#app.lango-host .course-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(7.5px);
  -webkit-backdrop-filter: blur(7.5px);
  pointer-events: none;
}

#app.lango-host .course-bg {
  filter: blur(7.5px);
  -webkit-filter: blur(7.5px);
  transform: scale(1.04);
}

#app.lango-host .course-decor {
  z-index: 2;
}

#app.lango-host .course-decor--star {
  width: 75px;
  right: 191px;
  top: 646px;
}

#app.lango-host .course-decor--sparkle-1 {
  width: 76px;
  left: 1440px;
  top: 669px;
}

#app.lango-host .course-decor--sparkle-2 {
  width: 76px;
  left: 600px;
  top: 849px;
}

#app.lango-host .course-page {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 30px;
  display: block;
  background: transparent;
}

#app.lango-host .course-panel {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  background: transparent;
}

#app.lango-host .course-panel-header {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 363px;
  margin: 0;
  padding: 0;
  text-align: center;
}

#app.lango-host .course-panel-header::before {
  content: "Continue journey";
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Nunito", sans-serif;
  font-size: 54px;
  font-weight: 900;
  line-height: 60px;
  letter-spacing: 1.35px;
  color: #fff;
  text-shadow:
    3px 3px 0 rgba(177, 25, 128, 0.85),
    -1.5px 1.5px 0 rgba(177, 25, 128, 0.85),
    0 3px 6px rgba(0, 0, 0, 0.3);
}

#app.lango-host .course-quest-track,
#app.lango-host .course-count-badge {
  display: none;
}

#app.lango-host .course-step {
  position: absolute;
  left: 50%;
  top: 142px;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 45px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: capitalize;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

#app.lango-host .course-page-title {
  position: absolute;
  left: 50%;
  top: 208px;
  transform: translateX(-50%);
  margin: 0;
  width: max-content;
  max-width: 1100px;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 75px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 1.35px;
  text-align: center;
  background: none;
  -webkit-text-fill-color: #fff;
  -webkit-text-stroke: 5px rgba(177, 25, 128, 0.7);
  paint-order: stroke fill;
  filter: none;
  text-shadow:
    3px 3px 6px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(255, 177, 237, 0.95);
}

#app.lango-host .course-grid-scroll {
  position: absolute;
  left: 0;
  right: 0;
  top: 350px;
  bottom: 120px;
  width: 100%;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#app.lango-host .course-grid-scroll::-webkit-scrollbar {
  display: none;
}

#app.lango-host .course-grid {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, 500px);
  align-content: start;
  justify-content: space-around;
  gap: 45px;
}

#app.lango-host .course-grid--count-1,
#app.lango-host .course-grid--count-2,
#app.lango-host .course-grid--count-3,
#app.lango-host .course-grid--count-4,
#app.lango-host .course-grid--count-5,
#app.lango-host .course-grid--count-6,
#app.lango-host .course-grid--count-many {
  grid-template-columns: repeat(3, 500px);
  max-width: none;
}

#app.lango-host .course-grid--count-1 {
  justify-content: center;
}

#app.lango-host .course-grid--count-2 {
  justify-content: center;
}

#app.lango-host .course-grid--count-2 {
  gap: 45px;
}

#app.lango-host .course-grid--count-4,
#app.lango-host .course-grid--count-5,
#app.lango-host .course-grid--count-6,
#app.lango-host .course-grid--count-many {
  justify-content: space-between;
}

#app.lango-host .course-grid--count-5 .course-pick-card:nth-child(n) {
  grid-column: auto;
}

#app.lango-host .course-pick-card {
  width: 500px;
  height: 532px;
  min-height: 0;
  padding: 28px;
  border: 12px solid rgba(162, 89, 255, 0.6);
  border-radius: 45px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 3px 6px 45px #ffb1ed;
  backdrop-filter: blur(150px);
  -webkit-backdrop-filter: blur(150px);
}

#app.lango-host .course-pick-card:hover {
  transform: translateY(-6px);
  box-shadow: 3px 12px 54px rgba(255, 177, 237, 0.95);
}

#app.lango-host .course-pick-card.active {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(252, 125, 186, 0.85);
}

#app.lango-host .course-pick-card-inner {
  height: auto;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

#app.lango-host .course-pick-thumb {
  height: 220px;
  aspect-ratio: auto;
  border-radius: 26px;
  object-fit: cover;
}

#app.lango-host .course-pick-body {
  padding: 0;
  gap: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#app.lango-host .course-pick-title {
  margin: 0;
  width: 100%;
  color: #ff9f43;
  font-family: "Nunito", sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 1.35px;
  text-align: center;
  text-shadow:
    1.5px 1.5px 3px rgba(0, 0, 0, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.9);
}

#app.lango-host .course-pick-desc {
  max-width: 100%;
  margin: 0;
  color: #b11980;
  font-family: "Nunito", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 1.35px;
  text-align: center;
  flex: 0 0 auto;
}

#app.lango-host .course-pick-level {
  margin: 0;
  color: #344356;
  font-family: "Nunito", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 1.35px;
  text-align: center;
}

#app.lango-host .course-pick-stars {
  display: none;
}

#app.lango-host .course-pick-select {
  width: 100%;
  height: 62px;
  min-height: 62px;
  margin-top: 8px;
  padding: 11px 20px 18px;
  border-radius: 150px;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 30px;
  letter-spacing: 0.6px;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  box-shadow:
    inset 0 -3px 3px rgba(0, 0, 0, 0.1),
    inset 0 0 0 4.5px rgba(255, 255, 255, 0.5),
    0 12px 0 rgba(0, 0, 0, 0.2),
    0 4.5px 1.5px rgba(0, 0, 0, 0.25);
}

#app.lango-host .course-pick-select:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 -3px 3px rgba(0, 0, 0, 0.1),
    inset 0 0 0 4.5px rgba(255, 255, 255, 0.5),
    0 6px 0 rgba(0, 0, 0, 0.2),
    0 3px 1.5px rgba(0, 0, 0, 0.25);
}

#app.lango-host .course-status,
#app.lango-host .course-error {
  position: absolute;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

#app.lango-host .course-toolbar {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 975px;
  width: 639px;
  height: 105px;
  margin: 0;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 0 30px 30px 0;
  background: rgba(255, 255, 255, 0.8);
}

#app.lango-host .course-toolbar-actions,
#app.lango-host .course-toolbar-logout {
  display: none;
}

#app.lango-host .course-toolbar-back {
  min-height: 63px;
  padding: 13.5px 18px 19.5px;
  border-radius: 150px;
  gap: 12px;
  font-size: 27px;
  line-height: 30px;
  letter-spacing: 0.54px;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  box-shadow:
    inset 0 -3px 3px rgba(0, 0, 0, 0.1),
    inset 0 0 0 4.5px rgba(255, 255, 255, 0.5),
    0 9px 0 rgba(0, 0, 0, 0.2),
    0 3px 1.5px rgba(0, 0, 0, 0.25);
}

#app.lango-host .course-toolbar-back .class-back-icon {
  width: 36px;
  height: 36px;
}

#app.lango-host:has(#screen-section.active) .course-toolbar {
  width: 430px;
  height: 88px;
  top: 992px;
  padding: 0 24px;
  border-radius: 0 26px 26px 0;
}

#app.lango-host:has(#screen-section.active) .course-toolbar-back {
  min-height: 54px;
  padding: 10px 16px 15px;
  gap: 10px;
  font-size: 24px;
  line-height: 28px;
}

#app.lango-host:has(#screen-section.active) .course-toolbar-back .class-back-icon {
  width: 32px;
  height: 32px;
}

#app.lango-host #host-quiz-results-bars {
  display: none !important;
}

/* Section road picker, based on Figma frame 225:43149. Island art is intentionally omitted. */
#app.lango-host .section-screen {
  color: #fff;
}

#app.lango-host .section-scene {
  display: block;
  background: #f5c842;
}

#app.lango-host .section-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: none;
}

#app.lango-host .section-bg {
  filter: blur(6px);
  -webkit-filter: blur(6px);
  transform: scale(1.035);
}

#app.lango-host #screen-section .course-panel-header::before {
  content: "Continue journey";
}

#app.lango-host #screen-section .course-step,
#app.lango-host #screen-section .course-page-title,
#app.lango-host #screen-section .course-count-badge {
  display: none;
}

#app.lango-host #screen-section .course-grid-scroll {
  top: 0;
  bottom: 105px;
  overflow: hidden;
}

#app.lango-host .section-current-progress {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 7;
  width: 520px;
  min-height: 122px;
  padding: 14px 22px;
  border: 4px solid rgba(184, 128, 255, 0.82);
  border-radius: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  font-family: "Nunito", sans-serif;
  background: linear-gradient(96deg, #b11980 0%, #743c9b 100%);
  box-shadow:
    0 0 18px rgba(255, 177, 237, 0.92),
    inset 0 0 8px rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
  transform: translateX(-50%);
  overflow: hidden;
  animation: sectionProgressFloat 4.8s ease-in-out infinite;
}

#app.lango-host .section-current-progress[hidden] {
  display: none;
}

@property --section-current-progress {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

#app.lango-host .section-current-progress-ring {
  --section-current-progress: 0deg;
  position: relative;
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #fff 0 32%, transparent 33%),
    conic-gradient(from -42deg, #ff9f43 0deg, #feca57 var(--section-current-progress), transparent var(--section-current-progress) 360deg),
    #fff;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));
  transition: --section-current-progress 680ms cubic-bezier(0.2, 0.9, 0.22, 1);
  animation: sectionProgressRingGlow 2.6s ease-in-out infinite;
}

#app.lango-host .section-current-progress-ring::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: inherit;
  background: #fff;
}

#app.lango-host .section-current-progress-ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, 0.72) 42%, transparent 64%);
  opacity: 0.35;
  transform: rotate(-22deg) translateX(-44%);
  animation: sectionProgressShine 2.8s ease-in-out infinite;
  pointer-events: none;
}

#app.lango-host .section-current-progress-pct {
  position: relative;
  z-index: 2;
  color: #ff9f43;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    2px 2px 2px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.9);
}

#app.lango-host .section-current-progress-label {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.3),
    0 0 7px rgba(177, 25, 128, 0.55);
}

#app.lango-host .section-current-progress--updated {
  animation:
    sectionProgressPop 520ms cubic-bezier(0.2, 0.9, 0.22, 1),
    sectionProgressFloat 4.8s ease-in-out 520ms infinite;
}

@keyframes sectionProgressFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

@keyframes sectionProgressPop {
  0% {
    transform: translateX(-50%) scale(0.98);
    box-shadow:
      0 0 10px rgba(255, 177, 237, 0.7),
      inset 0 0 8px rgba(255, 255, 255, 0.5);
  }
  55% {
    transform: translateX(-50%) scale(1.025);
    box-shadow:
      0 0 28px rgba(255, 204, 245, 1),
      inset 0 0 12px rgba(255, 255, 255, 0.68);
  }
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow:
      0 0 18px rgba(255, 177, 237, 0.92),
      inset 0 0 8px rgba(255, 255, 255, 0.5);
  }
}

@keyframes sectionProgressRingGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.22));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(254, 202, 87, 0.42));
  }
}

@keyframes sectionProgressShine {
  0%,
  35% {
    transform: rotate(-22deg) translateX(-54%);
    opacity: 0;
  }
  55% {
    opacity: 0.48;
  }
  100% {
    transform: rotate(-22deg) translateX(54%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #app.lango-host .section-current-progress,
  #app.lango-host .section-current-progress--updated,
  #app.lango-host .section-current-progress-ring,
  #app.lango-host .section-current-progress-ring::after {
    animation: none;
  }

  #app.lango-host .section-current-progress-ring {
    transition: none;
  }
}

#app.lango-host .section-road {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

#app.lango-host .section-road-shell {
  position: absolute;
  inset: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 260px 120px 300px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 110px,
    #000 calc(100% - 110px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 110px,
    #000 calc(100% - 110px),
    transparent 100%
  );
}

#app.lango-host .section-road-shell::-webkit-scrollbar {
  display: none;
}

#app.lango-host .section-road-heading {
  position: absolute;
  left: 50%;
  top: 142px;
  z-index: 4;
  width: min(980px, calc(100% - 480px));
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

#app.lango-host .section-road-kicker,
#app.lango-host .section-road-subtitle {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
  line-height: 1.12;
  text-transform: capitalize;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

#app.lango-host .section-road-kicker {
  font-size: 45px;
}

#app.lango-host .section-road-title {
  margin: 14px 0 0;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 75px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 1.35px;
  text-align: center;
  -webkit-text-stroke: 5px rgba(177, 25, 128, 0.7);
  paint-order: stroke fill;
  text-shadow:
    3px 3px 6px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(255, 177, 237, 0.95);
}

#app.lango-host .section-road-subtitle {
  margin-top: 12px;
  color: #344356;
  font-size: 27px;
  text-shadow: none;
}

#app.lango-host .section-road-map {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

#app.lango-host .section-road-track {
  --section-step: 440px;
  --section-island-size: 280px;
  --section-card-width: var(--section-island-size);
  position: relative;
  width: max(100%, var(--road-track-width));
  min-width: var(--section-card-width);
  height: 680px;
}

#app.lango-host .section-road-bridge {
  position: absolute;
  left: var(--bridge-x);
  top: 100px;
  width: 360px;
  height: 255px;
}

#app.lango-host .section-road-svg {
  position: absolute;
  display: block;
  height: auto;
  z-index: 2;
  filter:
    drop-shadow(0 14px 12px rgba(124, 80, 37, 0.18))
    drop-shadow(0 0 8px rgba(255, 248, 218, 0.48));
}

#app.lango-host .section-road-svg--one {
  left: 0;
  top: 0;
  width: 360px;
  transform: scaleX(-1);
}

#app.lango-host .section-road-svg--two {
  left: 0;
  top: 0;
  width: 360px;
}

#app.lango-host .section-road-path {
  display: none;
}

#app.lango-host .section-road-path path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

#app.lango-host .section-road-path-shadow {
  stroke: rgba(126, 80, 44, 0.24);
  stroke-width: 52;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translate(0, 3px);
}

#app.lango-host .section-road-path-base {
  stroke: #f5d28b;
  stroke-width: 38;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#app.lango-host .section-road-path-highlight {
  stroke: rgba(255, 245, 198, 0.86);
  stroke-width: 11;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 0.01 5.5;
}

#app.lango-host .section-road-nodes {
  position: absolute;
  inset: 0;
  z-index: 3;
}

#app.lango-host .section-road-card {
  position: absolute;
  left: var(--section-x);
  top: 0;
  width: var(--section-card-width);
  color: #344356;
  font-family: "Nunito", sans-serif;
}

#app.lango-host .section-road-card:nth-child(even) {
  top: 180px;
}

#app.lango-host .section-road-pin {
  display: none;
}

#app.lango-host .section-road-pin-ring,
#app.lango-host .section-road-pin-core {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

#app.lango-host .section-road-pin-ring {
  background: #fff;
  border: 9px solid #feca57;
  box-shadow:
    0 0 18px rgba(255, 105, 180, 0.45),
    inset 0 0 10px rgba(255, 255, 255, 0.5);
}

#app.lango-host .section-road-pin-core {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff9f43;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.85);
}

#app.lango-host .section-road-content {
  position: relative;
  min-height: var(--section-island-size);
  padding: 0;
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 180ms ease, filter 180ms ease;
}

#app.lango-host .section-road-card.active .section-road-content {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 12px 18px rgba(112, 68, 150, 0.25));
}

#app.lango-host .section-road-card--empty {
  opacity: 1;
}

#app.lango-host .course-pick-card--locked {
  opacity: 0.72;
  filter: grayscale(0.35);
}

#app.lango-host .section-road-card--locked {
  opacity: 1;
  filter: none;
}

#app.lango-host .course-pick-select--locked,
#app.lango-host .section-road-card--locked .course-pick-select {
  cursor: not-allowed;
  background: rgba(120, 120, 120, 0.35);
  border-color: rgba(120, 120, 120, 0.55);
  color: rgba(255, 255, 255, 0.85);
}

.exercise-item--locked {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.exercise-item--locked .exercise-item-pts {
  color: var(--muted);
}

.exercise-item--completed:not(.active) {
  border-color: #c4c3dd;
}

.exercise-item--completed .exercise-item-pts {
  color: #f9c47a;
  font-weight: 900;
}

#app.lango-host .section-road-thumb {
  display: block;
  width: var(--section-island-size);
  height: var(--section-island-size);
  border: 0;
  border-radius: 36px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 12px 12px rgba(52, 67, 86, 0.2));
}

#app.lango-host .section-road-thumb-button {
  position: relative;
  width: var(--section-island-size);
  height: var(--section-island-size);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transform-origin: 50% 70%;
  transition:
    transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

#app.lango-host .section-road-thumb-button:hover:not(:disabled) {
  z-index: 2;
  transform: translateY(-10px) scale(1.07);
  filter:
    brightness(1.06)
    drop-shadow(0 16px 16px rgba(112, 68, 150, 0.3));
}

#app.lango-host .section-road-thumb-button:active:not(:disabled) {
  transform: translateY(5px) scale(0.94);
  filter:
    brightness(0.96)
    drop-shadow(0 5px 6px rgba(52, 67, 86, 0.2));
  transition-duration: 70ms;
}

#app.lango-host .section-road-thumb-button.is-pressed:not(:disabled) {
  animation: section-road-thumb-press 160ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes section-road-thumb-press {
  0% {
    transform: translateY(-7px) scale(1.06);
    filter: brightness(1.05) drop-shadow(0 14px 14px rgba(112, 68, 150, 0.28));
  }
  48% {
    transform: translateY(8px) scale(0.9);
    filter: brightness(0.93) drop-shadow(0 3px 4px rgba(52, 67, 86, 0.18));
  }
  100% {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.02) drop-shadow(0 10px 10px rgba(112, 68, 150, 0.22));
  }
}

#app.lango-host .section-road-thumb-button:focus-visible {
  outline: 6px solid #feca57;
  outline-offset: 5px;
}

#app.lango-host .section-road-thumb-button:disabled {
  cursor: not-allowed;
}

#app.lango-host .section-road-thumb-button:disabled .section-road-thumb {
  opacity: 0.58;
  filter: grayscale(1) drop-shadow(0 10px 10px rgba(52, 67, 86, 0.14));
}

#app.lango-host .section-road-lock {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  border: 5px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(52, 67, 86, 0.82);
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.35);
  transform: translate(-50%, -50%);
}

#app.lango-host .section-road-lock svg {
  width: 43px;
  height: 43px;
  fill: currentColor;
}

#app.lango-host .section-road-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 64px;
  font-weight: 900;
  background:
    linear-gradient(180deg, #f6c34a 0%, #e38a2b 58%, #c96a1c 100%);
  box-shadow:
    inset 0 -10px 0 rgba(120, 52, 8, 0.18),
    0 12px 12px rgba(52, 67, 86, 0.2);
}

#app.lango-host .section-road-copy {
  width: 100%;
  min-width: 0;
  text-align: center;
}

#app.lango-host .section-road-label,
#app.lango-host .section-road-card-title,
#app.lango-host .section-road-meta {
  margin: 0;
}

#app.lango-host .section-road-label {
  color: #b11980;
  font-family: "DM Sans", sans-serif;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.15;
}

#app.lango-host .section-road-card-title {
  margin-top: 6px;
  color: #ff9f43;
  font-size: 33px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.45px;
  text-shadow:
    1.5px 1.5px 3px rgba(0, 0, 0, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.9);
  overflow-wrap: anywhere;
}

#app.lango-host .section-road-meta {
  margin-top: 8px;
  color: #344356;
  font-family: "DM Sans", sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
}

#app.lango-host .section-road-button {
  width: 204px;
  min-height: 70px;
  margin-top: 0;
  padding: 13px 24px 19px;
  border: 0;
  border-radius: 150px;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 36px;
  letter-spacing: 0.45px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  box-shadow:
    inset 0 -3px 3px rgba(0, 0, 0, 0.1),
    inset 0 0 0 5px rgba(255, 255, 255, 0.5),
    0 10px 0 rgba(77, 86, 97, 0.24),
    0 4px 2px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

#app.lango-host .section-road-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.2);
}

#app.lango-host .section-road-button:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    inset 0 -3px 3px rgba(0, 0, 0, 0.1),
    inset 0 0 0 4px rgba(255, 255, 255, 0.5),
    0 4px 0 rgba(0, 0, 0, 0.2),
    0 2px 1.5px rgba(0, 0, 0, 0.25);
}

/* Section quiz picker Figma frame 294:7159, scaled from 500x689 to the 1920x1080 host stage. */
#app.lango-host .section-exercise-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  padding: 30px 50px 30px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

#app.lango-host .section-exercise-overlay:not([hidden]) {
  pointer-events: auto;
}

#app.lango-host .section-exercise-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 39, 58, 0.72);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

#app.lango-host .section-exercise-panel {
  width: 780px;
  height: 1034px;
  max-width: none;
  flex: 0 0 auto;
  padding: 0;
  align-items: stretch;
  animation: section-panel-slide-in 260ms ease;
}

#app.lango-host .section-exercise-overlay.is-closing .section-exercise-backdrop {
  animation: section-backdrop-out 260ms ease forwards;
}

#app.lango-host .section-exercise-overlay.is-closing .section-exercise-panel {
  animation: section-panel-slide-out 260ms ease forwards;
}

#app.lango-host .section-exercise-panel-card,
#app.lango-host .section-exercise-panel .exercise-panel {
  width: 750px;
  height: 1034px;
  max-height: none;
  padding: 0;
  border: 15px solid rgba(162, 89, 255, 0.6);
  border-radius: 75px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 3px 6px 45px #ffb1ed;
  backdrop-filter: blur(150px);
  -webkit-backdrop-filter: blur(150px);
  overflow: hidden;
}

#app.lango-host .section-exercise-panel .exercise-panel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 30px;
  gap: 24px;
  border-radius: 60px;
  background:
    linear-gradient(180deg, rgba(255, 247, 254, 0.96) 0%, rgba(239, 245, 255, 0.96) 100%);
  box-shadow: none;
}

#app.lango-host .section-exercise-panel .exercise-panel-header {
  margin: 0;
  width: 100%;
}

#app.lango-host .section-exercise-panel .exercise-page-title {
  margin: 0;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1.35px;
  background: none;
  -webkit-text-fill-color: #fff;
  -webkit-text-stroke: 5px rgba(162, 89, 255, 0.75);
  paint-order: stroke fill;
  filter: none;
  text-shadow:
    3px 3px 6px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(255, 177, 237, 0.7);
}

#app.lango-host .section-exercise-panel .exercise-list-scroll {
  width: 100%;
  max-width: 100%;
  height: 818px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0 230px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(162, 89, 255, 0.35) transparent;
  box-sizing: border-box;
}

#app.lango-host .section-exercise-panel .exercise-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  width: 100%;
}

#app.lango-host .section-exercise-panel .exercise-list--section .exercise-item,
#app.lango-host .section-exercise-panel .exercise-item {
  width: 100%;
  max-width: 100%;
  min-height: 111px;
  padding: 15px 52px 15px 15px;
  border: 3px solid #c4c3dd;
  border-radius: 30px;
  gap: 18px;
  background: #fff;
  opacity: 0.52;
  box-shadow: 0 6px 3px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

#app.lango-host .section-exercise-panel .exercise-list--section .exercise-item--completed:not(.active),
#app.lango-host .section-exercise-panel .exercise-item--completed:not(.active) {
  opacity: 1;
  background: linear-gradient(to right, #b19cd9, #dda0dd);
  border-color: #c4c3dd;
}

#app.lango-host .section-exercise-panel .exercise-item--completed .exercise-item-num {
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

#app.lango-host .section-exercise-panel .exercise-item--completed .exercise-item-title {
  color: #9b6fb3;
  -webkit-text-fill-color: #9b6fb3;
  -webkit-text-stroke: 4px #fff;
  paint-order: stroke fill;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#app.lango-host .section-exercise-panel .exercise-item--completed .exercise-item-sub {
  color: rgba(155, 111, 179, 0.92);
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
}

#app.lango-host .section-exercise-panel .exercise-item--completed .exercise-item-pts {
  opacity: 0.88;
}

#app.lango-host .section-exercise-panel .exercise-list--section .exercise-item.active,
#app.lango-host .section-exercise-panel .exercise-item.active {
  opacity: 1;
  background: linear-gradient(101deg, #b11980 2.8%, #743c9b 89%);
  box-shadow: 0 6px 3px rgba(0, 0, 0, 0.25);
}

#app.lango-host .section-exercise-panel .exercise-item:hover:not(.active) {
  transform: translateY(-3px);
  opacity: 0.72;
  box-shadow: 0 9px 8px rgba(0, 0, 0, 0.22);
}

#app.lango-host .section-exercise-panel .exercise-item-main {
  gap: 18px;
  align-items: flex-start;
}

#app.lango-host .section-exercise-panel .exercise-item-num,
#app.lango-host .section-exercise-panel .exercise-item-title,
#app.lango-host .section-exercise-panel .exercise-item-pts {
  font-family: "Nunito", sans-serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 1.35px;
}

#app.lango-host .section-exercise-panel .exercise-item-num {
  color: #6b6b6b;
}

#app.lango-host .section-exercise-panel .exercise-list--section .exercise-item.active .exercise-item-num,
#app.lango-host .section-exercise-panel .exercise-list--section .exercise-item.active .exercise-item-title {
  color: #fff;
}

#app.lango-host .section-exercise-panel .exercise-item-text {
  gap: 6px;
}

#app.lango-host .section-exercise-panel .exercise-list--section .exercise-item-title,
#app.lango-host .section-exercise-panel .exercise-item-title {
  color: #8d4acb;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

#app.lango-host .section-exercise-panel .exercise-list--section .exercise-item-sub,
#app.lango-host .section-exercise-panel .exercise-item-sub {
  color: #6b6b6b;
  font-family: "Nunito", sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 1.35px;
  opacity: 1;
}

#app.lango-host .section-exercise-panel .exercise-list--section .exercise-item.active .exercise-item-sub {
  color: rgba(255, 255, 255, 0.92);
}

#app.lango-host .section-exercise-panel .exercise-list--section .exercise-item-pts,
#app.lango-host .section-exercise-panel .exercise-item-pts {
  position: relative;
  isolation: isolate;
  display: inline-block;
  align-self: center;
  min-width: 140px;
  text-align: center;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: #ff9f43;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.28));
}

#app.lango-host .section-exercise-panel .exercise-item--locked .exercise-item-pts {
  background: none;
  -webkit-text-fill-color: var(--muted);
  color: var(--muted);
  -webkit-text-stroke: 0;
  filter: none;
  opacity: 0.72;
}

#app.lango-host .section-exercise-panel .exercise-item--mc .exercise-item-main,
#app.lango-host .section-exercise-panel .exercise-item--video .exercise-item-main,
#app.lango-host .section-exercise-panel .exercise-item--buzzin .exercise-item-main,
#app.lango-host .section-exercise-panel .exercise-item--fastmc .exercise-item-main,
#app.lango-host .section-exercise-panel .exercise-item--image-assignment .exercise-item-main,
#app.lango-host .section-exercise-panel .exercise-item--voice-assignment .exercise-item-main {
  align-items: center;
}

#app.lango-host .section-exercise-panel .exercise-item-lottie {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  margin-right: 12px;
  pointer-events: none;
}

#app.lango-host .section-exercise-panel .exercise-item--mc .exercise-item-lottie {
  transform: scale(1.28);
  transform-origin: center;
}

#app.lango-host .section-exercise-panel .exercise-item-lottie svg {
  width: 100%;
  height: 100%;
}

#app.lango-host .section-exercise-panel .exercise-item--skeleton {
  pointer-events: none;
  cursor: default;
  opacity: 1;
  border-color: rgba(196, 195, 221, 0.55);
  background: linear-gradient(101deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 236, 255, 0.95) 100%);
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.12);
  animation: exercise-skel-pulse 1.4s ease-in-out infinite;
  animation-delay: calc(var(--sk-i, 0) * 90ms);
}

#app.lango-host .section-exercise-panel .exercise-item--skeleton:hover {
  transform: none;
  opacity: 1;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.12);
}

#app.lango-host .section-exercise-panel .exercise-skel-icon,
#app.lango-host .section-exercise-panel .exercise-skel-line {
  display: block;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(177, 156, 217, 0.22) 0%,
    rgba(221, 160, 221, 0.42) 42%,
    rgba(177, 156, 217, 0.22) 84%
  );
  background-size: 200% 100%;
  animation: course-shimmer 1.25s linear infinite;
}

#app.lango-host .section-exercise-panel .exercise-skel-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  flex-shrink: 0;
}

#app.lango-host .section-exercise-panel .exercise-skel-line--title {
  width: min(320px, 48%);
  height: 28px;
}

#app.lango-host .section-exercise-panel .exercise-skel-line--sub {
  width: min(220px, 34%);
  height: 22px;
  opacity: 0.85;
}

#app.lango-host .section-exercise-panel .exercise-skel-line--pts {
  width: 110px;
  height: 28px;
  align-self: center;
  flex-shrink: 0;
}

#app.lango-host .section-exercise-panel .exercise-item--reveal {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
}

#app.lango-host .section-exercise-panel .exercise-item--reveal.is-in {
  animation: exercise-item-reveal 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--reveal-i, 0) * 55ms);
}

@keyframes exercise-skel-pulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@keyframes exercise-item-reveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: var(--reveal-opacity, 1);
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #app.lango-host .section-exercise-panel .exercise-item--skeleton,
  #app.lango-host .section-exercise-panel .exercise-skel-icon,
  #app.lango-host .section-exercise-panel .exercise-skel-line,
  #app.lango-host .section-exercise-panel .exercise-item--reveal.is-in {
    animation: none !important;
  }

  #app.lango-host .section-exercise-panel .exercise-item--reveal,
  #app.lango-host .section-exercise-panel .exercise-item--reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

#app.lango-host .section-exercise-panel .exercise-panel-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 210px;
  margin: 0;
  padding: 68px 30px 30px;
  gap: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #e8e8e8 74%);
  border-radius: 0 0 66px 66px;
}

#app.lango-host .section-exercise-panel .exercise-load-status {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(520px, calc(100% - 80px));
  padding: 10px 18px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid rgba(162, 89, 255, 0.22);
  box-shadow: 0 8px 18px rgba(116, 60, 155, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
}

#app.lango-host .section-exercise-panel .exercise-load-status[hidden] {
  display: none !important;
}

#app.lango-host .section-exercise-panel .exercise-load-status-track {
  position: relative;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(162, 89, 255, 0.14);
}

#app.lango-host .section-exercise-panel .exercise-load-status-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b11980 0%, #a259ff 55%, #ff9f43 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(162, 89, 255, 0.35);
  transition: width 220ms ease;
}

#app.lango-host .section-exercise-panel .exercise-load-status.is-active:not(.has-progress) .exercise-load-status-fill {
  width: 38%;
  animation:
    exercise-load-indeterminate 1.15s ease-in-out infinite,
    course-shimmer 1.2s linear infinite;
}

#app.lango-host .section-exercise-panel .exercise-load-status.has-progress .exercise-load-status-fill {
  animation: course-shimmer 1.2s linear infinite;
}

#app.lango-host .section-exercise-panel .exercise-status,
#app.lango-host .section-exercise-panel .exercise-error {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  width: auto;
  margin: 0;
  color: #6b4f8b;
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
}

#app.lango-host .section-exercise-panel .exercise-error {
  position: absolute;
  left: 60px;
  right: 60px;
  top: 16px;
  color: #dc2626;
}

#app.lango-host .section-exercise-panel .exercise-status:empty {
  display: none;
}

@keyframes exercise-load-indeterminate {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(280%);
  }
}

@media (prefers-reduced-motion: reduce) {
  #app.lango-host .section-exercise-panel .exercise-load-status-fill {
    animation: none !important;
    transition: none;
  }
}

#app.lango-host .section-exercise-panel .exercise-panel-actions {
  height: 90px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 27px;
}

#app.lango-host .section-exercise-panel .exercise-cancel-btn {
  width: 210px;
  flex: 0 0 210px;
  height: 75px;
  min-width: 0;
  padding: 0;
  border-radius: 999px;
  color: #6b7280;
  font-family: "Nunito", sans-serif;
  font-size: 28px;
  font-weight: 900;
  background: #e5e7f0;
  box-shadow:
    inset 0 0 0 3px rgba(107, 114, 128, 0.12),
    0 3px 2px rgba(0, 0, 0, 0.08);
}

#app.lango-host .section-exercise-panel .exercise-start-btn {
  width: 430px;
  flex: 0 0 430px;
  min-width: 0;
  min-height: 90px;
  padding: 14px 32px 24px;
  border-radius: 150px;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.56px;
  text-align: center;
  white-space: normal;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  box-shadow:
    inset 0 -3px 3px rgba(0, 0, 0, 0.1),
    inset 0 0 0 4.5px rgba(255, 255, 255, 0.5),
    0 12px 0 rgba(0, 0, 0, 0.2),
    0 4.5px 1.5px rgba(0, 0, 0, 0.25);
}

#app.lango-host .section-exercise-panel .exercise-start-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow:
    inset 0 -3px 3px rgba(0, 0, 0, 0.1),
    inset 0 0 0 4.5px rgba(255, 255, 255, 0.5),
    0 15px 0 rgba(0, 0, 0, 0.18),
    0 8px 10px rgba(0, 0, 0, 0.16);
}

/* Shared host chrome buttons: glass dock + lavender secondary + orange 3D primary. */
#app.lango-host .host-btn-dock,
#app.lango-host .waiting-footer-dock,
#app.lango-host .course-toolbar,
#app.lango-host .settings-toolbar,
#app.lango-host .host-mcq-preview-footer,
#app.lango-host .host-mcq-footer:not(.host-mcq-result-footer),
#app.lango-host .host-video-footer,
#app.lango-host .host-buzzin-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: auto;
  height: auto;
  min-height: 84px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(116, 60, 155, 0.08) inset,
    0 16px 32px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#app.lango-host .class-login-dock,
#app.lango-host .course-toolbar,
#app.lango-host .settings-toolbar,
#app.lango-host .host-mcq-preview-footer,
#app.lango-host .host-mcq-footer:not(.host-mcq-result-footer),
#app.lango-host .host-video-footer,
#app.lango-host .host-buzzin-footer {
  position: absolute;
  z-index: 6;
  left: 36px;
  right: auto;
  top: auto;
  bottom: 28px;
  transform: none;
  transform-origin: initial;
}

#app.lango-host .class-login-dock {
  z-index: 10;
}

#app.lango-host .class-screen .class-login-btn {
  position: static;
  left: auto;
  bottom: auto;
  padding: 0 28px;
  font-size: 26px;
}

#app.lango-host .waiting-dashboard-btn,
#app.lango-host .waiting-start-session-btn,
#app.lango-host .class-back-btn,
#app.lango-host .exercise-cancel-btn,
#app.lango-host .exercise-start-btn,
#app.lango-host .host-mcq-preview-footer-btn,
#app.lango-host .host-mcq-footer-btn,
#app.lango-host .host-video-footer-btn,
#app.lango-host .host-buzzin-footer-btn,
#app.lango-host #screen-host-fast-results .host-fast-result-button,
#app.lango-host #btn-host-quiz-done,
#app.lango-host .host-leaderboard__next {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-family: "Nunito", sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  text-shadow: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 200ms ease,
    box-shadow 200ms ease,
    opacity 200ms ease;
}

#app.lango-host .class-back-btn::before {
  content: none;
  display: none;
}

#app.lango-host .waiting-dashboard-btn,
#app.lango-host .class-back-btn,
#app.lango-host .exercise-cancel-btn,
#app.lango-host .host-mcq-preview-footer-btn,
#app.lango-host .host-mcq-footer-btn,
#app.lango-host .host-video-footer-btn,
#app.lango-host .host-buzzin-footer-btn,
#app.lango-host #screen-host-fast-results .host-fast-result-button--back,
#app.lango-host #btn-host-quiz-done {
  color: #4c1d95;
  background: linear-gradient(180deg, #f5e9ff 0%, #e9d5ff 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.7),
    0 6px 0 rgba(124, 58, 237, 0.22),
    0 10px 16px rgba(88, 28, 135, 0.16);
}

#app.lango-host .waiting-start-session-btn,
#app.lango-host .exercise-start-btn,
#app.lango-host .host-mcq-preview-next-btn,
#app.lango-host .host-mcq-next-btn,
#app.lango-host #btn-host-video-next-exercise,
#app.lango-host #btn-host-buzzin-done,
#app.lango-host #btn-host-buzzin-feedback-done,
#app.lango-host #btn-host-buzzin-empty-done,
#app.lango-host #screen-host-fast-results .host-fast-result-button--next,
#app.lango-host .host-leaderboard__next {
  color: #fff;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  box-shadow:
    inset 0 -3px 3px rgba(0, 0, 0, 0.1),
    inset 0 0 0 4px rgba(255, 255, 255, 0.5),
    0 8px 0 rgba(217, 119, 6, 0.85),
    0 12px 20px rgba(255, 140, 42, 0.28);
}

#app.lango-host #screen-host-fast-results .host-fast-result-button--next[hidden],
#app.lango-host .host-leaderboard__next[hidden] {
  display: none !important;
}

#app.lango-host .host-btn-face,
#app.lango-host .waiting-dashboard-face {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 2px 6px rgba(88, 28, 135, 0.28);
}

#app.lango-host .host-btn-face img,
#app.lango-host .host-btn-icon,
#app.lango-host .waiting-dashboard-icon,
#app.lango-host .class-back-btn .class-back-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

#app.lango-host .host-btn-icon--next,
#app.lango-host .host-mcq-preview-footer-icon--next,
#app.lango-host .host-video-footer-icon--next,
#app.lango-host .host-buzzin-footer-icon--next,
#app.lango-host .host-fast-result-next-icon {
  width: 22px;
  height: 22px;
  transform: rotate(180deg);
  filter: brightness(0) invert(1);
}

#app.lango-host .waiting-dashboard-btn:hover,
#app.lango-host .class-back-btn:hover,
#app.lango-host .exercise-cancel-btn:hover,
#app.lango-host .host-mcq-preview-footer-btn:hover:not(:disabled),
#app.lango-host .host-mcq-footer-btn:hover:not(:disabled),
#app.lango-host .host-video-footer-btn:hover,
#app.lango-host .host-buzzin-footer-btn:hover,
#app.lango-host #screen-host-fast-results .host-fast-result-button:hover,
#app.lango-host #btn-host-quiz-done:hover,
#app.lango-host .waiting-start-session-btn:hover:not(:disabled),
#app.lango-host .exercise-start-btn:hover:not(:disabled),
#app.lango-host .host-mcq-preview-next-btn:hover:not(:disabled),
#app.lango-host .host-mcq-next-btn:hover:not(:disabled),
#app.lango-host .host-leaderboard__next:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

#app.lango-host .waiting-start-session-btn:hover:not(:disabled),
#app.lango-host .exercise-start-btn:hover:not(:disabled),
#app.lango-host .host-mcq-preview-next-btn:hover:not(:disabled),
#app.lango-host .host-mcq-next-btn:hover:not(:disabled),
#app.lango-host #btn-host-video-next-exercise:hover:not(:disabled),
#app.lango-host #btn-host-buzzin-done:hover:not(:disabled),
#app.lango-host #btn-host-buzzin-feedback-done:hover:not(:disabled),
#app.lango-host #btn-host-buzzin-empty-done:hover:not(:disabled),
#app.lango-host #screen-host-fast-results .host-fast-result-button--next:hover:not(:disabled),
#app.lango-host .host-leaderboard__next:hover:not(:disabled) {
  filter: brightness(1.04);
}

#app.lango-host .waiting-start-session-btn:disabled,
#app.lango-host .exercise-start-btn:disabled,
#app.lango-host .host-mcq-preview-next-btn:disabled,
#app.lango-host .host-mcq-next-btn:disabled {
  cursor: default;
  opacity: 0.55;
  filter: none;
  transform: none;
}

#app.lango-host .host-mcq-next-btn {
  cursor: pointer;
}

#app.lango-host .host-buzzin-footer-btn--random {
  background: linear-gradient(180deg, #f5e9ff 0%, #e9d5ff 100%);
  color: #4c1d95;
}

#app.lango-host .host-buzzin-footer-btn--muted {
  mix-blend-mode: normal;
  opacity: 1;
}

#app.lango-host .course-toolbar-back,
#app.lango-host:has(#screen-section.active) .course-toolbar,
#app.lango-host:has(#screen-section.active) .course-toolbar-back {
  width: auto;
  height: auto;
  min-height: 64px;
  padding: 0 28px;
  font-size: 26px;
  line-height: 1;
}

#app.lango-host .course-toolbar-back .class-back-icon,
#app.lango-host:has(#screen-section.active) .course-toolbar-back .class-back-icon,
#app.lango-host .host-buzzin-footer-btn img,
#app.lango-host .host-video-footer-icon {
  width: 22px;
  height: 22px;
}

#app.lango-host:has(#screen-section.active) .course-toolbar {
  width: auto;
  height: auto;
  min-height: 84px;
  top: auto;
  padding: 10px;
  border-radius: 999px;
}

#app.lango-host .section-exercise-panel .exercise-panel-actions {
  height: auto;
  min-height: 84px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 0 0 1px rgba(116, 60, 155, 0.06) inset,
    0 10px 22px rgba(116, 60, 155, 0.08);
}

#app.lango-host .section-exercise-panel .exercise-cancel-btn,
#app.lango-host .section-exercise-panel .exercise-start-btn {
  height: auto;
  min-height: 64px;
  padding: 0 28px;
  font-size: 26px;
}

#app.lango-host .section-exercise-panel .exercise-cancel-btn {
  width: auto;
  flex: 0 0 auto;
  min-width: 168px;
}

#app.lango-host .section-exercise-panel .exercise-start-btn {
  width: auto;
  flex: 1 1 auto;
  min-width: 240px;
  white-space: normal;
  color: #fff;
  background: linear-gradient(180deg, #feca57 0%, #ff9f43 100%);
  box-shadow:
    inset 0 -3px 3px rgba(0, 0, 0, 0.1),
    inset 0 0 0 4px rgba(255, 255, 255, 0.5),
    0 8px 0 rgba(217, 119, 6, 0.85),
    0 12px 20px rgba(255, 140, 42, 0.28);
}

#app.lango-host .section-exercise-panel .exercise-start-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    inset 0 -3px 3px rgba(0, 0, 0, 0.1),
    inset 0 0 0 4px rgba(255, 255, 255, 0.5),
    0 10px 0 rgba(217, 119, 6, 0.85),
    0 14px 22px rgba(255, 140, 42, 0.28);
}

#app.lango-host #screen-host-quiz-question .host-mcq-status {
  position: absolute;
  left: 50%;
  bottom: 124px;
  z-index: 5;
  width: auto;
  min-width: 280px;
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
}

#app.lango-host .host-mcq-result-footer {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  justify-content: space-between;
}

#app.lango-host #screen-host-quiz-results .host-mcq-result-footer .host-mcq-footer-btn,
#app.lango-host #screen-host-quiz-results .host-mcq-result-footer .host-mcq-next-btn {
  min-height: 70px;
  padding: 6px 22px 4px;
  font-size: 28px;
}

#app.lango-host .host-mcq-result-footer .host-btn-face {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

#app.lango-host .host-mcq-result-footer .host-btn-icon {
  width: 16px;
  height: 16px;
}

#app.lango-host #screen-host-fast-results .host-fast-result-footer {
  gap: 14px;
}

@media (prefers-reduced-motion: reduce) {
  #app.lango-host .waiting-dashboard-btn,
  #app.lango-host .waiting-start-session-btn,
  #app.lango-host .class-back-btn,
  #app.lango-host .exercise-cancel-btn,
  #app.lango-host .exercise-start-btn,
  #app.lango-host .host-mcq-preview-footer-btn,
  #app.lango-host .host-mcq-footer-btn,
  #app.lango-host .host-video-footer-btn,
  #app.lango-host .host-buzzin-footer-btn,
  #app.lango-host #screen-host-fast-results .host-fast-result-button,
  #app.lango-host #btn-host-quiz-done,
  #app.lango-host .host-leaderboard__next {
    transition: none;
  }
}
